@wavemaker/angular-codegen 11.15.5-rc.262 → 11.15.5-rc.267

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.
@@ -49692,7 +49692,7 @@ function requireMomentTimezone () {
49692
49692
  hasRequiredMomentTimezone = 1;
49693
49693
  (function (module) {
49694
49694
  //! moment-timezone.js
49695
- //! version : 0.6.3
49695
+ //! version : 0.6.5
49696
49696
  //! Copyright (c) JS Foundation and other contributors
49697
49697
  //! license : MIT
49698
49698
  //! github.com/moment/moment-timezone
@@ -49718,12 +49718,18 @@ function requireMomentTimezone () {
49718
49718
  // return moment;
49719
49719
  // }
49720
49720
 
49721
- var VERSION = "0.6.3",
49721
+ var VERSION = "0.6.5",
49722
49722
  zones = {},
49723
49723
  links = {},
49724
49724
  countries = {},
49725
49725
  names = {},
49726
49726
  guesses = {},
49727
+ parsingInZone = false,
49728
+ parsingNow,
49729
+ parsingNowFunction,
49730
+ hasParsingNow = false,
49731
+ ignoreDefaultZoneForInput,
49732
+ hasIgnoredDefaultZoneInput = false,
49727
49733
  cachedGuess;
49728
49734
 
49729
49735
  if (!moment || typeof moment.version !== 'string') {
@@ -49895,17 +49901,16 @@ function requireMomentTimezone () {
49895
49901
  offsets = this.offsets,
49896
49902
  untils = this.untils,
49897
49903
  max = untils.length - 1,
49898
- offset, offsetNext, offsetPrev, i;
49904
+ offset, offsetNext, i;
49899
49905
 
49900
49906
  for (i = 0; i < max; i++) {
49901
49907
  offset = offsets[i];
49902
49908
  offsetNext = offsets[i + 1];
49903
- offsetPrev = offsets[i ? i - 1 : i];
49904
49909
 
49905
49910
  if (offset < offsetNext && tz.moveAmbiguousForward) {
49906
49911
  offset = offsetNext;
49907
- } else if (offset > offsetPrev && tz.moveInvalidForward) {
49908
- offset = offsetPrev;
49912
+ } else if (offset > offsetNext && tz.moveInvalidForward) {
49913
+ offset = offsetNext;
49909
49914
  }
49910
49915
 
49911
49916
  if (target < untils[i] - (offset * 60000)) {
@@ -49930,6 +49935,15 @@ function requireMomentTimezone () {
49930
49935
  }
49931
49936
  };
49932
49937
 
49938
+ var utcDefaultZone = new Zone();
49939
+ utcDefaultZone._set({
49940
+ name : 'UTC',
49941
+ abbrs : ['UTC'],
49942
+ untils : [Infinity],
49943
+ offsets : [0],
49944
+ population : 0
49945
+ });
49946
+
49933
49947
  /************************************
49934
49948
  Country object
49935
49949
  ************************************/
@@ -50267,6 +50281,85 @@ function requireMomentTimezone () {
50267
50281
  return !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);
50268
50282
  }
50269
50283
 
50284
+ function isObjectInput (input) {
50285
+ var prop;
50286
+
50287
+ if (moment.isMoment(input) || input === null || Object.prototype.toString.call(input) !== '[object Object]') {
50288
+ return false;
50289
+ }
50290
+ if (Object.getOwnPropertyNames) {
50291
+ return Object.getOwnPropertyNames(input).length > 0;
50292
+ }
50293
+ for (prop in input) {
50294
+ if (Object.prototype.hasOwnProperty.call(input, prop)) {
50295
+ return true;
50296
+ }
50297
+ }
50298
+ return false;
50299
+ }
50300
+
50301
+ function parseWithZoneNow (args, name, stringInput) {
50302
+ var savedNow = moment.now,
50303
+ savedDefaultZone = moment.defaultZone,
50304
+ savedParsingInZone = parsingInZone,
50305
+ savedParsingNow = parsingNow,
50306
+ savedParsingNowFunction = parsingNowFunction,
50307
+ savedHasParsingNow = hasParsingNow,
50308
+ now,
50309
+ hasNow = false,
50310
+ zonedNow,
50311
+ wallNow,
50312
+ parsedDateParts,
50313
+ out;
50314
+
50315
+ if (!parsingInZone) {
50316
+ parsingNow = undefined;
50317
+ parsingNowFunction = savedNow;
50318
+ hasParsingNow = false;
50319
+ }
50320
+ parsingInZone = true;
50321
+ moment.now = function () {
50322
+ if (!hasNow) {
50323
+ if (!hasParsingNow) {
50324
+ parsingNow = parsingNowFunction.call(moment);
50325
+ hasParsingNow = true;
50326
+ }
50327
+ now = parsingNow;
50328
+ hasNow = true;
50329
+ zonedNow = moment.tz(now, name);
50330
+ wallNow = zonedNow.valueOf() + zonedNow.utcOffset() * 60000;
50331
+ }
50332
+ return wallNow;
50333
+ };
50334
+ if (stringInput) {
50335
+ moment.defaultZone = utcDefaultZone;
50336
+ }
50337
+ try {
50338
+ out = moment.utc.apply(null, args);
50339
+ if (stringInput && hasNow && out._a && out._tzm !== undefined) {
50340
+ parsedDateParts = out.parsingFlags().parsedDateParts;
50341
+ if (!parsedDateParts || parsedDateParts[0] == null || parsedDateParts[1] == null || parsedDateParts[2] == null) {
50342
+ moment.now = function () {
50343
+ return now;
50344
+ };
50345
+ moment.defaultZone = savedDefaultZone;
50346
+ out = moment.utc.apply(null, args);
50347
+ }
50348
+ }
50349
+ } finally {
50350
+ moment.now = savedNow;
50351
+ moment.defaultZone = savedDefaultZone;
50352
+ parsingInZone = savedParsingInZone;
50353
+ if (!savedParsingInZone) {
50354
+ parsingNow = savedParsingNow;
50355
+ parsingNowFunction = savedParsingNowFunction;
50356
+ hasParsingNow = savedHasParsingNow;
50357
+ }
50358
+ }
50359
+
50360
+ return out;
50361
+ }
50362
+
50270
50363
  function logError (message) {
50271
50364
  if (typeof console !== 'undefined' && typeof console.error === 'function') {
50272
50365
  console.error(message);
@@ -50280,10 +50373,13 @@ function requireMomentTimezone () {
50280
50373
  function tz (input) {
50281
50374
  var args = Array.prototype.slice.call(arguments, 0, -1),
50282
50375
  name = arguments[arguments.length - 1],
50283
- out = moment.utc.apply(null, args),
50284
- zone;
50376
+ objectInput = isObjectInput(input),
50377
+ stringInput = args.length > 0 && typeof input === 'string',
50378
+ zone = objectInput || stringInput ? getZone(name) : null,
50379
+ out = objectInput && zone ? parseWithZoneNow(args, name) :
50380
+ stringInput && zone ? parseWithZoneNow(args, name, true) : moment.utc.apply(null, args);
50285
50381
 
50286
- if (!moment.isMoment(input) && needsOffset(out) && (zone = getZone(name))) {
50382
+ if (!moment.isMoment(input) && needsOffset(out) && (zone || (!objectInput && (zone = getZone(name))))) {
50287
50383
  out.add(zone.parse(out), 'minutes');
50288
50384
  }
50289
50385
 
@@ -50323,10 +50419,49 @@ function requireMomentTimezone () {
50323
50419
  moment.tz = tz;
50324
50420
 
50325
50421
  moment.defaultZone = null;
50422
+ var momentGetDefaultDateParts = moment._getDefaultDateParts;
50423
+ if (momentGetDefaultDateParts) {
50424
+ moment._getDefaultDateParts = function (config, now, forWeek) {
50425
+ var zone = moment.defaultZone,
50426
+ zonedNow,
50427
+ dateParts,
50428
+ savedIgnoredInput,
50429
+ savedHasIgnoredInput;
50430
+ forWeek = forWeek || config._isDefaultDatePartsForWeek;
50431
+
50432
+ if (parsingInZone && config._tzm === undefined) {
50433
+ zonedNow = new Date(now);
50434
+ return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
50435
+ }
50436
+
50437
+ if (zone && !config._useUTC && config._tzm === undefined) {
50438
+ zonedNow = new Date(now - zone.utcOffset(now) * 60000);
50439
+ return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
50440
+ }
50441
+
50442
+ if (forWeek && (config._useUTC || config._tzm !== undefined)) {
50443
+ savedIgnoredInput = ignoreDefaultZoneForInput;
50444
+ savedHasIgnoredInput = hasIgnoredDefaultZoneInput;
50445
+ ignoreDefaultZoneForInput = now;
50446
+ hasIgnoredDefaultZoneInput = true;
50447
+ try {
50448
+ dateParts = momentGetDefaultDateParts.call(this, config, now, forWeek);
50449
+ } finally {
50450
+ ignoreDefaultZoneForInput = savedIgnoredInput;
50451
+ hasIgnoredDefaultZoneInput = savedHasIgnoredInput;
50452
+ }
50453
+ return dateParts;
50454
+ }
50455
+
50456
+ return momentGetDefaultDateParts.call(this, config, now, forWeek);
50457
+ };
50458
+ }
50326
50459
 
50327
50460
  moment.updateOffset = function (mom, keepTime) {
50328
- var zone = moment.defaultZone,
50329
- offset;
50461
+ var zone = hasIgnoredDefaultZoneInput && ignoreDefaultZoneForInput === mom._i ? null : moment.defaultZone,
50462
+ offset,
50463
+ localTimestamp,
50464
+ normalizedTimestamp;
50330
50465
 
50331
50466
  if (mom._z === undefined) {
50332
50467
  if (zone && needsOffset(mom) && !mom._isUTC && mom.isValid()) {
@@ -50337,6 +50472,20 @@ function requireMomentTimezone () {
50337
50472
  }
50338
50473
  if (mom._z) {
50339
50474
  offset = mom._z.utcOffset(mom);
50475
+ if (keepTime) {
50476
+ // Resolve local times inside a forward gap using the configured
50477
+ // invalid-input policy before applying the new offset.
50478
+ localTimestamp = mom._d.valueOf();
50479
+ if (!mom._isUTC) {
50480
+ localTimestamp -= mom._d.getTimezoneOffset() * 60000;
50481
+ }
50482
+ if (mom._z.utcOffset(localTimestamp + offset * 60000) !== offset) {
50483
+ offset = mom._z.parse(localTimestamp);
50484
+ localTimestamp += offset * 60000;
50485
+ offset = mom._z.utcOffset(localTimestamp);
50486
+ normalizedTimestamp = localTimestamp - offset * 60000;
50487
+ }
50488
+ }
50340
50489
  if (Math.abs(offset) < 16) {
50341
50490
  offset = offset / 60;
50342
50491
  }
@@ -50347,6 +50496,9 @@ function requireMomentTimezone () {
50347
50496
  } else {
50348
50497
  mom.zone(offset, keepTime);
50349
50498
  }
50499
+ if (normalizedTimestamp != null) {
50500
+ mom._d.setTime(normalizedTimestamp);
50501
+ }
50350
50502
  }
50351
50503
  };
50352
50504