@wavemaker/angular-codegen 11.14.1-30.647738 → 11.14.1-31.647762

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.
@@ -49655,7 +49655,7 @@ function requireMomentTimezone () {
49655
49655
  hasRequiredMomentTimezone = 1;
49656
49656
  (function (module) {
49657
49657
  //! moment-timezone.js
49658
- //! version : 0.6.3
49658
+ //! version : 0.6.4
49659
49659
  //! Copyright (c) JS Foundation and other contributors
49660
49660
  //! license : MIT
49661
49661
  //! github.com/moment/moment-timezone
@@ -49681,12 +49681,18 @@ function requireMomentTimezone () {
49681
49681
  // return moment;
49682
49682
  // }
49683
49683
 
49684
- var VERSION = "0.6.3",
49684
+ var VERSION = "0.6.4",
49685
49685
  zones = {},
49686
49686
  links = {},
49687
49687
  countries = {},
49688
49688
  names = {},
49689
49689
  guesses = {},
49690
+ parsingInZone = false,
49691
+ parsingNow,
49692
+ parsingNowFunction,
49693
+ hasParsingNow = false,
49694
+ ignoreDefaultZoneForInput,
49695
+ hasIgnoredDefaultZoneInput = false,
49690
49696
  cachedGuess;
49691
49697
 
49692
49698
  if (!moment || typeof moment.version !== 'string') {
@@ -49858,17 +49864,16 @@ function requireMomentTimezone () {
49858
49864
  offsets = this.offsets,
49859
49865
  untils = this.untils,
49860
49866
  max = untils.length - 1,
49861
- offset, offsetNext, offsetPrev, i;
49867
+ offset, offsetNext, i;
49862
49868
 
49863
49869
  for (i = 0; i < max; i++) {
49864
49870
  offset = offsets[i];
49865
49871
  offsetNext = offsets[i + 1];
49866
- offsetPrev = offsets[i ? i - 1 : i];
49867
49872
 
49868
49873
  if (offset < offsetNext && tz.moveAmbiguousForward) {
49869
49874
  offset = offsetNext;
49870
- } else if (offset > offsetPrev && tz.moveInvalidForward) {
49871
- offset = offsetPrev;
49875
+ } else if (offset > offsetNext && tz.moveInvalidForward) {
49876
+ offset = offsetNext;
49872
49877
  }
49873
49878
 
49874
49879
  if (target < untils[i] - (offset * 60000)) {
@@ -49893,6 +49898,15 @@ function requireMomentTimezone () {
49893
49898
  }
49894
49899
  };
49895
49900
 
49901
+ var utcDefaultZone = new Zone();
49902
+ utcDefaultZone._set({
49903
+ name : 'UTC',
49904
+ abbrs : ['UTC'],
49905
+ untils : [Infinity],
49906
+ offsets : [0],
49907
+ population : 0
49908
+ });
49909
+
49896
49910
  /************************************
49897
49911
  Country object
49898
49912
  ************************************/
@@ -50230,6 +50244,85 @@ function requireMomentTimezone () {
50230
50244
  return !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);
50231
50245
  }
50232
50246
 
50247
+ function isObjectInput (input) {
50248
+ var prop;
50249
+
50250
+ if (moment.isMoment(input) || input === null || Object.prototype.toString.call(input) !== '[object Object]') {
50251
+ return false;
50252
+ }
50253
+ if (Object.getOwnPropertyNames) {
50254
+ return Object.getOwnPropertyNames(input).length > 0;
50255
+ }
50256
+ for (prop in input) {
50257
+ if (Object.prototype.hasOwnProperty.call(input, prop)) {
50258
+ return true;
50259
+ }
50260
+ }
50261
+ return false;
50262
+ }
50263
+
50264
+ function parseWithZoneNow (args, name, stringInput) {
50265
+ var savedNow = moment.now,
50266
+ savedDefaultZone = moment.defaultZone,
50267
+ savedParsingInZone = parsingInZone,
50268
+ savedParsingNow = parsingNow,
50269
+ savedParsingNowFunction = parsingNowFunction,
50270
+ savedHasParsingNow = hasParsingNow,
50271
+ now,
50272
+ hasNow = false,
50273
+ zonedNow,
50274
+ wallNow,
50275
+ parsedDateParts,
50276
+ out;
50277
+
50278
+ if (!parsingInZone) {
50279
+ parsingNow = undefined;
50280
+ parsingNowFunction = savedNow;
50281
+ hasParsingNow = false;
50282
+ }
50283
+ parsingInZone = true;
50284
+ moment.now = function () {
50285
+ if (!hasNow) {
50286
+ if (!hasParsingNow) {
50287
+ parsingNow = parsingNowFunction.call(moment);
50288
+ hasParsingNow = true;
50289
+ }
50290
+ now = parsingNow;
50291
+ hasNow = true;
50292
+ zonedNow = moment.tz(now, name);
50293
+ wallNow = zonedNow.valueOf() + zonedNow.utcOffset() * 60000;
50294
+ }
50295
+ return wallNow;
50296
+ };
50297
+ if (stringInput) {
50298
+ moment.defaultZone = utcDefaultZone;
50299
+ }
50300
+ try {
50301
+ out = moment.utc.apply(null, args);
50302
+ if (stringInput && hasNow && out._a && out._tzm !== undefined) {
50303
+ parsedDateParts = out.parsingFlags().parsedDateParts;
50304
+ if (!parsedDateParts || parsedDateParts[0] == null || parsedDateParts[1] == null || parsedDateParts[2] == null) {
50305
+ moment.now = function () {
50306
+ return now;
50307
+ };
50308
+ moment.defaultZone = savedDefaultZone;
50309
+ out = moment.utc.apply(null, args);
50310
+ }
50311
+ }
50312
+ } finally {
50313
+ moment.now = savedNow;
50314
+ moment.defaultZone = savedDefaultZone;
50315
+ parsingInZone = savedParsingInZone;
50316
+ if (!savedParsingInZone) {
50317
+ parsingNow = savedParsingNow;
50318
+ parsingNowFunction = savedParsingNowFunction;
50319
+ hasParsingNow = savedHasParsingNow;
50320
+ }
50321
+ }
50322
+
50323
+ return out;
50324
+ }
50325
+
50233
50326
  function logError (message) {
50234
50327
  if (typeof console !== 'undefined' && typeof console.error === 'function') {
50235
50328
  console.error(message);
@@ -50243,10 +50336,13 @@ function requireMomentTimezone () {
50243
50336
  function tz (input) {
50244
50337
  var args = Array.prototype.slice.call(arguments, 0, -1),
50245
50338
  name = arguments[arguments.length - 1],
50246
- out = moment.utc.apply(null, args),
50247
- zone;
50339
+ objectInput = isObjectInput(input),
50340
+ stringInput = args.length > 0 && typeof input === 'string',
50341
+ zone = objectInput || stringInput ? getZone(name) : null,
50342
+ out = objectInput && zone ? parseWithZoneNow(args, name) :
50343
+ stringInput && zone ? parseWithZoneNow(args, name, true) : moment.utc.apply(null, args);
50248
50344
 
50249
- if (!moment.isMoment(input) && needsOffset(out) && (zone = getZone(name))) {
50345
+ if (!moment.isMoment(input) && needsOffset(out) && (zone || (!objectInput && (zone = getZone(name))))) {
50250
50346
  out.add(zone.parse(out), 'minutes');
50251
50347
  }
50252
50348
 
@@ -50286,10 +50382,49 @@ function requireMomentTimezone () {
50286
50382
  moment.tz = tz;
50287
50383
 
50288
50384
  moment.defaultZone = null;
50385
+ var momentGetDefaultDateParts = moment._getDefaultDateParts;
50386
+ if (momentGetDefaultDateParts) {
50387
+ moment._getDefaultDateParts = function (config, now, forWeek) {
50388
+ var zone = moment.defaultZone,
50389
+ zonedNow,
50390
+ dateParts,
50391
+ savedIgnoredInput,
50392
+ savedHasIgnoredInput;
50393
+ forWeek = forWeek || config._isDefaultDatePartsForWeek;
50394
+
50395
+ if (parsingInZone && config._tzm === undefined) {
50396
+ zonedNow = new Date(now);
50397
+ return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
50398
+ }
50399
+
50400
+ if (zone && !config._useUTC && config._tzm === undefined) {
50401
+ zonedNow = new Date(now - zone.utcOffset(now) * 60000);
50402
+ return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
50403
+ }
50404
+
50405
+ if (forWeek && (config._useUTC || config._tzm !== undefined)) {
50406
+ savedIgnoredInput = ignoreDefaultZoneForInput;
50407
+ savedHasIgnoredInput = hasIgnoredDefaultZoneInput;
50408
+ ignoreDefaultZoneForInput = now;
50409
+ hasIgnoredDefaultZoneInput = true;
50410
+ try {
50411
+ dateParts = momentGetDefaultDateParts.call(this, config, now, forWeek);
50412
+ } finally {
50413
+ ignoreDefaultZoneForInput = savedIgnoredInput;
50414
+ hasIgnoredDefaultZoneInput = savedHasIgnoredInput;
50415
+ }
50416
+ return dateParts;
50417
+ }
50418
+
50419
+ return momentGetDefaultDateParts.call(this, config, now, forWeek);
50420
+ };
50421
+ }
50289
50422
 
50290
50423
  moment.updateOffset = function (mom, keepTime) {
50291
- var zone = moment.defaultZone,
50292
- offset;
50424
+ var zone = hasIgnoredDefaultZoneInput && ignoreDefaultZoneForInput === mom._i ? null : moment.defaultZone,
50425
+ offset,
50426
+ localTimestamp,
50427
+ normalizedTimestamp;
50293
50428
 
50294
50429
  if (mom._z === undefined) {
50295
50430
  if (zone && needsOffset(mom) && !mom._isUTC && mom.isValid()) {
@@ -50300,6 +50435,20 @@ function requireMomentTimezone () {
50300
50435
  }
50301
50436
  if (mom._z) {
50302
50437
  offset = mom._z.utcOffset(mom);
50438
+ if (keepTime) {
50439
+ // Resolve local times inside a forward gap using the configured
50440
+ // invalid-input policy before applying the new offset.
50441
+ localTimestamp = mom._d.valueOf();
50442
+ if (!mom._isUTC) {
50443
+ localTimestamp -= mom._d.getTimezoneOffset() * 60000;
50444
+ }
50445
+ if (mom._z.utcOffset(localTimestamp + offset * 60000) !== offset) {
50446
+ offset = mom._z.parse(localTimestamp);
50447
+ localTimestamp += offset * 60000;
50448
+ offset = mom._z.utcOffset(localTimestamp);
50449
+ normalizedTimestamp = localTimestamp - offset * 60000;
50450
+ }
50451
+ }
50303
50452
  if (Math.abs(offset) < 16) {
50304
50453
  offset = offset / 60;
50305
50454
  }
@@ -50310,6 +50459,9 @@ function requireMomentTimezone () {
50310
50459
  } else {
50311
50460
  mom.zone(offset, keepTime);
50312
50461
  }
50462
+ if (normalizedTimestamp != null) {
50463
+ mom._d.setTime(normalizedTimestamp);
50464
+ }
50313
50465
  }
50314
50466
  };
50315
50467