@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.
- package/angular-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +333 -354
- package/angular-app/package-lock.json +333 -354
- package/angular-app/package.json +5 -5
- package/dependencies/pipe-provider.cjs.js +326 -22
- package/dependencies/transpilation-web.cjs.js +163 -11
- package/npm-shrinkwrap.json +80 -91
- package/package-lock.json +80 -91
- package/package.json +2 -2
package/angular-app/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wavemaker/angular-app",
|
|
3
|
-
"version": "11.14.1-
|
|
3
|
+
"version": "11.14.1-31.647762",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"ng": "ng",
|
|
6
6
|
"start": "./node_modules/.bin/ng serve",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"@fullcalendar/list": "6.1.18",
|
|
37
37
|
"@fullcalendar/timegrid": "6.1.18",
|
|
38
38
|
"@metrichor/jmespath": "0.3.1",
|
|
39
|
-
"@wavemaker/custom-widgets-m3": "11.14.1-
|
|
39
|
+
"@wavemaker/custom-widgets-m3": "11.14.1-31.647762",
|
|
40
40
|
"@wavemaker/focus-trap": "1.0.1",
|
|
41
|
-
"@wavemaker/foundation-css": "11.14.1-
|
|
41
|
+
"@wavemaker/foundation-css": "11.14.1-31.647762",
|
|
42
42
|
"@wavemaker/nvd3": "1.8.15",
|
|
43
|
-
"@wavemaker/variables": "11.14.1-
|
|
43
|
+
"@wavemaker/variables": "11.14.1-31.647762",
|
|
44
44
|
"@ztree/ztree_v3": "3.5.48",
|
|
45
45
|
"acorn": "^8.15.0",
|
|
46
46
|
"angular-imask": "7.6.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"tslib": "2.8.1",
|
|
63
63
|
"x2js": "3.4.4",
|
|
64
64
|
"zone.js": "0.15.1",
|
|
65
|
-
"@wavemaker/app-ng-runtime": "11.14.1-
|
|
65
|
+
"@wavemaker/app-ng-runtime": "11.14.1-31.647762"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
@@ -143132,7 +143132,7 @@ function requireMomentTimezone$1 () {
|
|
|
143132
143132
|
hasRequiredMomentTimezone$1 = 1;
|
|
143133
143133
|
(function (module) {
|
|
143134
143134
|
//! moment-timezone.js
|
|
143135
|
-
//! version : 0.6.
|
|
143135
|
+
//! version : 0.6.4
|
|
143136
143136
|
//! Copyright (c) JS Foundation and other contributors
|
|
143137
143137
|
//! license : MIT
|
|
143138
143138
|
//! github.com/moment/moment-timezone
|
|
@@ -143158,12 +143158,18 @@ function requireMomentTimezone$1 () {
|
|
|
143158
143158
|
// return moment;
|
|
143159
143159
|
// }
|
|
143160
143160
|
|
|
143161
|
-
var VERSION = "0.6.
|
|
143161
|
+
var VERSION = "0.6.4",
|
|
143162
143162
|
zones = {},
|
|
143163
143163
|
links = {},
|
|
143164
143164
|
countries = {},
|
|
143165
143165
|
names = {},
|
|
143166
143166
|
guesses = {},
|
|
143167
|
+
parsingInZone = false,
|
|
143168
|
+
parsingNow,
|
|
143169
|
+
parsingNowFunction,
|
|
143170
|
+
hasParsingNow = false,
|
|
143171
|
+
ignoreDefaultZoneForInput,
|
|
143172
|
+
hasIgnoredDefaultZoneInput = false,
|
|
143167
143173
|
cachedGuess;
|
|
143168
143174
|
|
|
143169
143175
|
if (!moment || typeof moment.version !== 'string') {
|
|
@@ -143335,17 +143341,16 @@ function requireMomentTimezone$1 () {
|
|
|
143335
143341
|
offsets = this.offsets,
|
|
143336
143342
|
untils = this.untils,
|
|
143337
143343
|
max = untils.length - 1,
|
|
143338
|
-
offset, offsetNext,
|
|
143344
|
+
offset, offsetNext, i;
|
|
143339
143345
|
|
|
143340
143346
|
for (i = 0; i < max; i++) {
|
|
143341
143347
|
offset = offsets[i];
|
|
143342
143348
|
offsetNext = offsets[i + 1];
|
|
143343
|
-
offsetPrev = offsets[i ? i - 1 : i];
|
|
143344
143349
|
|
|
143345
143350
|
if (offset < offsetNext && tz.moveAmbiguousForward) {
|
|
143346
143351
|
offset = offsetNext;
|
|
143347
|
-
} else if (offset >
|
|
143348
|
-
offset =
|
|
143352
|
+
} else if (offset > offsetNext && tz.moveInvalidForward) {
|
|
143353
|
+
offset = offsetNext;
|
|
143349
143354
|
}
|
|
143350
143355
|
|
|
143351
143356
|
if (target < untils[i] - (offset * 60000)) {
|
|
@@ -143370,6 +143375,15 @@ function requireMomentTimezone$1 () {
|
|
|
143370
143375
|
}
|
|
143371
143376
|
};
|
|
143372
143377
|
|
|
143378
|
+
var utcDefaultZone = new Zone();
|
|
143379
|
+
utcDefaultZone._set({
|
|
143380
|
+
name : 'UTC',
|
|
143381
|
+
abbrs : ['UTC'],
|
|
143382
|
+
untils : [Infinity],
|
|
143383
|
+
offsets : [0],
|
|
143384
|
+
population : 0
|
|
143385
|
+
});
|
|
143386
|
+
|
|
143373
143387
|
/************************************
|
|
143374
143388
|
Country object
|
|
143375
143389
|
************************************/
|
|
@@ -143707,6 +143721,85 @@ function requireMomentTimezone$1 () {
|
|
|
143707
143721
|
return !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);
|
|
143708
143722
|
}
|
|
143709
143723
|
|
|
143724
|
+
function isObjectInput (input) {
|
|
143725
|
+
var prop;
|
|
143726
|
+
|
|
143727
|
+
if (moment.isMoment(input) || input === null || Object.prototype.toString.call(input) !== '[object Object]') {
|
|
143728
|
+
return false;
|
|
143729
|
+
}
|
|
143730
|
+
if (Object.getOwnPropertyNames) {
|
|
143731
|
+
return Object.getOwnPropertyNames(input).length > 0;
|
|
143732
|
+
}
|
|
143733
|
+
for (prop in input) {
|
|
143734
|
+
if (Object.prototype.hasOwnProperty.call(input, prop)) {
|
|
143735
|
+
return true;
|
|
143736
|
+
}
|
|
143737
|
+
}
|
|
143738
|
+
return false;
|
|
143739
|
+
}
|
|
143740
|
+
|
|
143741
|
+
function parseWithZoneNow (args, name, stringInput) {
|
|
143742
|
+
var savedNow = moment.now,
|
|
143743
|
+
savedDefaultZone = moment.defaultZone,
|
|
143744
|
+
savedParsingInZone = parsingInZone,
|
|
143745
|
+
savedParsingNow = parsingNow,
|
|
143746
|
+
savedParsingNowFunction = parsingNowFunction,
|
|
143747
|
+
savedHasParsingNow = hasParsingNow,
|
|
143748
|
+
now,
|
|
143749
|
+
hasNow = false,
|
|
143750
|
+
zonedNow,
|
|
143751
|
+
wallNow,
|
|
143752
|
+
parsedDateParts,
|
|
143753
|
+
out;
|
|
143754
|
+
|
|
143755
|
+
if (!parsingInZone) {
|
|
143756
|
+
parsingNow = undefined;
|
|
143757
|
+
parsingNowFunction = savedNow;
|
|
143758
|
+
hasParsingNow = false;
|
|
143759
|
+
}
|
|
143760
|
+
parsingInZone = true;
|
|
143761
|
+
moment.now = function () {
|
|
143762
|
+
if (!hasNow) {
|
|
143763
|
+
if (!hasParsingNow) {
|
|
143764
|
+
parsingNow = parsingNowFunction.call(moment);
|
|
143765
|
+
hasParsingNow = true;
|
|
143766
|
+
}
|
|
143767
|
+
now = parsingNow;
|
|
143768
|
+
hasNow = true;
|
|
143769
|
+
zonedNow = moment.tz(now, name);
|
|
143770
|
+
wallNow = zonedNow.valueOf() + zonedNow.utcOffset() * 60000;
|
|
143771
|
+
}
|
|
143772
|
+
return wallNow;
|
|
143773
|
+
};
|
|
143774
|
+
if (stringInput) {
|
|
143775
|
+
moment.defaultZone = utcDefaultZone;
|
|
143776
|
+
}
|
|
143777
|
+
try {
|
|
143778
|
+
out = moment.utc.apply(null, args);
|
|
143779
|
+
if (stringInput && hasNow && out._a && out._tzm !== undefined) {
|
|
143780
|
+
parsedDateParts = out.parsingFlags().parsedDateParts;
|
|
143781
|
+
if (!parsedDateParts || parsedDateParts[0] == null || parsedDateParts[1] == null || parsedDateParts[2] == null) {
|
|
143782
|
+
moment.now = function () {
|
|
143783
|
+
return now;
|
|
143784
|
+
};
|
|
143785
|
+
moment.defaultZone = savedDefaultZone;
|
|
143786
|
+
out = moment.utc.apply(null, args);
|
|
143787
|
+
}
|
|
143788
|
+
}
|
|
143789
|
+
} finally {
|
|
143790
|
+
moment.now = savedNow;
|
|
143791
|
+
moment.defaultZone = savedDefaultZone;
|
|
143792
|
+
parsingInZone = savedParsingInZone;
|
|
143793
|
+
if (!savedParsingInZone) {
|
|
143794
|
+
parsingNow = savedParsingNow;
|
|
143795
|
+
parsingNowFunction = savedParsingNowFunction;
|
|
143796
|
+
hasParsingNow = savedHasParsingNow;
|
|
143797
|
+
}
|
|
143798
|
+
}
|
|
143799
|
+
|
|
143800
|
+
return out;
|
|
143801
|
+
}
|
|
143802
|
+
|
|
143710
143803
|
function logError (message) {
|
|
143711
143804
|
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
143712
143805
|
console.error(message);
|
|
@@ -143720,10 +143813,13 @@ function requireMomentTimezone$1 () {
|
|
|
143720
143813
|
function tz (input) {
|
|
143721
143814
|
var args = Array.prototype.slice.call(arguments, 0, -1),
|
|
143722
143815
|
name = arguments[arguments.length - 1],
|
|
143723
|
-
|
|
143724
|
-
|
|
143816
|
+
objectInput = isObjectInput(input),
|
|
143817
|
+
stringInput = args.length > 0 && typeof input === 'string',
|
|
143818
|
+
zone = objectInput || stringInput ? getZone(name) : null,
|
|
143819
|
+
out = objectInput && zone ? parseWithZoneNow(args, name) :
|
|
143820
|
+
stringInput && zone ? parseWithZoneNow(args, name, true) : moment.utc.apply(null, args);
|
|
143725
143821
|
|
|
143726
|
-
if (!moment.isMoment(input) && needsOffset(out) && (zone = getZone(name))) {
|
|
143822
|
+
if (!moment.isMoment(input) && needsOffset(out) && (zone || (!objectInput && (zone = getZone(name))))) {
|
|
143727
143823
|
out.add(zone.parse(out), 'minutes');
|
|
143728
143824
|
}
|
|
143729
143825
|
|
|
@@ -143763,10 +143859,49 @@ function requireMomentTimezone$1 () {
|
|
|
143763
143859
|
moment.tz = tz;
|
|
143764
143860
|
|
|
143765
143861
|
moment.defaultZone = null;
|
|
143862
|
+
var momentGetDefaultDateParts = moment._getDefaultDateParts;
|
|
143863
|
+
if (momentGetDefaultDateParts) {
|
|
143864
|
+
moment._getDefaultDateParts = function (config, now, forWeek) {
|
|
143865
|
+
var zone = moment.defaultZone,
|
|
143866
|
+
zonedNow,
|
|
143867
|
+
dateParts,
|
|
143868
|
+
savedIgnoredInput,
|
|
143869
|
+
savedHasIgnoredInput;
|
|
143870
|
+
forWeek = forWeek || config._isDefaultDatePartsForWeek;
|
|
143871
|
+
|
|
143872
|
+
if (parsingInZone && config._tzm === undefined) {
|
|
143873
|
+
zonedNow = new Date(now);
|
|
143874
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
143875
|
+
}
|
|
143876
|
+
|
|
143877
|
+
if (zone && !config._useUTC && config._tzm === undefined) {
|
|
143878
|
+
zonedNow = new Date(now - zone.utcOffset(now) * 60000);
|
|
143879
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
143880
|
+
}
|
|
143881
|
+
|
|
143882
|
+
if (forWeek && (config._useUTC || config._tzm !== undefined)) {
|
|
143883
|
+
savedIgnoredInput = ignoreDefaultZoneForInput;
|
|
143884
|
+
savedHasIgnoredInput = hasIgnoredDefaultZoneInput;
|
|
143885
|
+
ignoreDefaultZoneForInput = now;
|
|
143886
|
+
hasIgnoredDefaultZoneInput = true;
|
|
143887
|
+
try {
|
|
143888
|
+
dateParts = momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
143889
|
+
} finally {
|
|
143890
|
+
ignoreDefaultZoneForInput = savedIgnoredInput;
|
|
143891
|
+
hasIgnoredDefaultZoneInput = savedHasIgnoredInput;
|
|
143892
|
+
}
|
|
143893
|
+
return dateParts;
|
|
143894
|
+
}
|
|
143895
|
+
|
|
143896
|
+
return momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
143897
|
+
};
|
|
143898
|
+
}
|
|
143766
143899
|
|
|
143767
143900
|
moment.updateOffset = function (mom, keepTime) {
|
|
143768
|
-
var zone = moment.defaultZone,
|
|
143769
|
-
offset
|
|
143901
|
+
var zone = hasIgnoredDefaultZoneInput && ignoreDefaultZoneForInput === mom._i ? null : moment.defaultZone,
|
|
143902
|
+
offset,
|
|
143903
|
+
localTimestamp,
|
|
143904
|
+
normalizedTimestamp;
|
|
143770
143905
|
|
|
143771
143906
|
if (mom._z === undefined) {
|
|
143772
143907
|
if (zone && needsOffset(mom) && !mom._isUTC && mom.isValid()) {
|
|
@@ -143777,6 +143912,20 @@ function requireMomentTimezone$1 () {
|
|
|
143777
143912
|
}
|
|
143778
143913
|
if (mom._z) {
|
|
143779
143914
|
offset = mom._z.utcOffset(mom);
|
|
143915
|
+
if (keepTime) {
|
|
143916
|
+
// Resolve local times inside a forward gap using the configured
|
|
143917
|
+
// invalid-input policy before applying the new offset.
|
|
143918
|
+
localTimestamp = mom._d.valueOf();
|
|
143919
|
+
if (!mom._isUTC) {
|
|
143920
|
+
localTimestamp -= mom._d.getTimezoneOffset() * 60000;
|
|
143921
|
+
}
|
|
143922
|
+
if (mom._z.utcOffset(localTimestamp + offset * 60000) !== offset) {
|
|
143923
|
+
offset = mom._z.parse(localTimestamp);
|
|
143924
|
+
localTimestamp += offset * 60000;
|
|
143925
|
+
offset = mom._z.utcOffset(localTimestamp);
|
|
143926
|
+
normalizedTimestamp = localTimestamp - offset * 60000;
|
|
143927
|
+
}
|
|
143928
|
+
}
|
|
143780
143929
|
if (Math.abs(offset) < 16) {
|
|
143781
143930
|
offset = offset / 60;
|
|
143782
143931
|
}
|
|
@@ -143787,6 +143936,9 @@ function requireMomentTimezone$1 () {
|
|
|
143787
143936
|
} else {
|
|
143788
143937
|
mom.zone(offset, keepTime);
|
|
143789
143938
|
}
|
|
143939
|
+
if (normalizedTimestamp != null) {
|
|
143940
|
+
mom._d.setTime(normalizedTimestamp);
|
|
143941
|
+
}
|
|
143790
143942
|
}
|
|
143791
143943
|
};
|
|
143792
143944
|
|
|
@@ -200227,7 +200379,7 @@ function requireMomentTimezone () {
|
|
|
200227
200379
|
hasRequiredMomentTimezone = 1;
|
|
200228
200380
|
(function (module) {
|
|
200229
200381
|
//! moment-timezone.js
|
|
200230
|
-
//! version : 0.6.
|
|
200382
|
+
//! version : 0.6.4
|
|
200231
200383
|
//! Copyright (c) JS Foundation and other contributors
|
|
200232
200384
|
//! license : MIT
|
|
200233
200385
|
//! github.com/moment/moment-timezone
|
|
@@ -200253,12 +200405,18 @@ function requireMomentTimezone () {
|
|
|
200253
200405
|
// return moment;
|
|
200254
200406
|
// }
|
|
200255
200407
|
|
|
200256
|
-
var VERSION = "0.6.
|
|
200408
|
+
var VERSION = "0.6.4",
|
|
200257
200409
|
zones = {},
|
|
200258
200410
|
links = {},
|
|
200259
200411
|
countries = {},
|
|
200260
200412
|
names = {},
|
|
200261
200413
|
guesses = {},
|
|
200414
|
+
parsingInZone = false,
|
|
200415
|
+
parsingNow,
|
|
200416
|
+
parsingNowFunction,
|
|
200417
|
+
hasParsingNow = false,
|
|
200418
|
+
ignoreDefaultZoneForInput,
|
|
200419
|
+
hasIgnoredDefaultZoneInput = false,
|
|
200262
200420
|
cachedGuess;
|
|
200263
200421
|
|
|
200264
200422
|
if (!moment || typeof moment.version !== 'string') {
|
|
@@ -200430,17 +200588,16 @@ function requireMomentTimezone () {
|
|
|
200430
200588
|
offsets = this.offsets,
|
|
200431
200589
|
untils = this.untils,
|
|
200432
200590
|
max = untils.length - 1,
|
|
200433
|
-
offset, offsetNext,
|
|
200591
|
+
offset, offsetNext, i;
|
|
200434
200592
|
|
|
200435
200593
|
for (i = 0; i < max; i++) {
|
|
200436
200594
|
offset = offsets[i];
|
|
200437
200595
|
offsetNext = offsets[i + 1];
|
|
200438
|
-
offsetPrev = offsets[i ? i - 1 : i];
|
|
200439
200596
|
|
|
200440
200597
|
if (offset < offsetNext && tz.moveAmbiguousForward) {
|
|
200441
200598
|
offset = offsetNext;
|
|
200442
|
-
} else if (offset >
|
|
200443
|
-
offset =
|
|
200599
|
+
} else if (offset > offsetNext && tz.moveInvalidForward) {
|
|
200600
|
+
offset = offsetNext;
|
|
200444
200601
|
}
|
|
200445
200602
|
|
|
200446
200603
|
if (target < untils[i] - (offset * 60000)) {
|
|
@@ -200465,6 +200622,15 @@ function requireMomentTimezone () {
|
|
|
200465
200622
|
}
|
|
200466
200623
|
};
|
|
200467
200624
|
|
|
200625
|
+
var utcDefaultZone = new Zone();
|
|
200626
|
+
utcDefaultZone._set({
|
|
200627
|
+
name : 'UTC',
|
|
200628
|
+
abbrs : ['UTC'],
|
|
200629
|
+
untils : [Infinity],
|
|
200630
|
+
offsets : [0],
|
|
200631
|
+
population : 0
|
|
200632
|
+
});
|
|
200633
|
+
|
|
200468
200634
|
/************************************
|
|
200469
200635
|
Country object
|
|
200470
200636
|
************************************/
|
|
@@ -200802,6 +200968,85 @@ function requireMomentTimezone () {
|
|
|
200802
200968
|
return !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);
|
|
200803
200969
|
}
|
|
200804
200970
|
|
|
200971
|
+
function isObjectInput (input) {
|
|
200972
|
+
var prop;
|
|
200973
|
+
|
|
200974
|
+
if (moment.isMoment(input) || input === null || Object.prototype.toString.call(input) !== '[object Object]') {
|
|
200975
|
+
return false;
|
|
200976
|
+
}
|
|
200977
|
+
if (Object.getOwnPropertyNames) {
|
|
200978
|
+
return Object.getOwnPropertyNames(input).length > 0;
|
|
200979
|
+
}
|
|
200980
|
+
for (prop in input) {
|
|
200981
|
+
if (Object.prototype.hasOwnProperty.call(input, prop)) {
|
|
200982
|
+
return true;
|
|
200983
|
+
}
|
|
200984
|
+
}
|
|
200985
|
+
return false;
|
|
200986
|
+
}
|
|
200987
|
+
|
|
200988
|
+
function parseWithZoneNow (args, name, stringInput) {
|
|
200989
|
+
var savedNow = moment.now,
|
|
200990
|
+
savedDefaultZone = moment.defaultZone,
|
|
200991
|
+
savedParsingInZone = parsingInZone,
|
|
200992
|
+
savedParsingNow = parsingNow,
|
|
200993
|
+
savedParsingNowFunction = parsingNowFunction,
|
|
200994
|
+
savedHasParsingNow = hasParsingNow,
|
|
200995
|
+
now,
|
|
200996
|
+
hasNow = false,
|
|
200997
|
+
zonedNow,
|
|
200998
|
+
wallNow,
|
|
200999
|
+
parsedDateParts,
|
|
201000
|
+
out;
|
|
201001
|
+
|
|
201002
|
+
if (!parsingInZone) {
|
|
201003
|
+
parsingNow = undefined;
|
|
201004
|
+
parsingNowFunction = savedNow;
|
|
201005
|
+
hasParsingNow = false;
|
|
201006
|
+
}
|
|
201007
|
+
parsingInZone = true;
|
|
201008
|
+
moment.now = function () {
|
|
201009
|
+
if (!hasNow) {
|
|
201010
|
+
if (!hasParsingNow) {
|
|
201011
|
+
parsingNow = parsingNowFunction.call(moment);
|
|
201012
|
+
hasParsingNow = true;
|
|
201013
|
+
}
|
|
201014
|
+
now = parsingNow;
|
|
201015
|
+
hasNow = true;
|
|
201016
|
+
zonedNow = moment.tz(now, name);
|
|
201017
|
+
wallNow = zonedNow.valueOf() + zonedNow.utcOffset() * 60000;
|
|
201018
|
+
}
|
|
201019
|
+
return wallNow;
|
|
201020
|
+
};
|
|
201021
|
+
if (stringInput) {
|
|
201022
|
+
moment.defaultZone = utcDefaultZone;
|
|
201023
|
+
}
|
|
201024
|
+
try {
|
|
201025
|
+
out = moment.utc.apply(null, args);
|
|
201026
|
+
if (stringInput && hasNow && out._a && out._tzm !== undefined) {
|
|
201027
|
+
parsedDateParts = out.parsingFlags().parsedDateParts;
|
|
201028
|
+
if (!parsedDateParts || parsedDateParts[0] == null || parsedDateParts[1] == null || parsedDateParts[2] == null) {
|
|
201029
|
+
moment.now = function () {
|
|
201030
|
+
return now;
|
|
201031
|
+
};
|
|
201032
|
+
moment.defaultZone = savedDefaultZone;
|
|
201033
|
+
out = moment.utc.apply(null, args);
|
|
201034
|
+
}
|
|
201035
|
+
}
|
|
201036
|
+
} finally {
|
|
201037
|
+
moment.now = savedNow;
|
|
201038
|
+
moment.defaultZone = savedDefaultZone;
|
|
201039
|
+
parsingInZone = savedParsingInZone;
|
|
201040
|
+
if (!savedParsingInZone) {
|
|
201041
|
+
parsingNow = savedParsingNow;
|
|
201042
|
+
parsingNowFunction = savedParsingNowFunction;
|
|
201043
|
+
hasParsingNow = savedHasParsingNow;
|
|
201044
|
+
}
|
|
201045
|
+
}
|
|
201046
|
+
|
|
201047
|
+
return out;
|
|
201048
|
+
}
|
|
201049
|
+
|
|
200805
201050
|
function logError (message) {
|
|
200806
201051
|
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
200807
201052
|
console.error(message);
|
|
@@ -200815,10 +201060,13 @@ function requireMomentTimezone () {
|
|
|
200815
201060
|
function tz (input) {
|
|
200816
201061
|
var args = Array.prototype.slice.call(arguments, 0, -1),
|
|
200817
201062
|
name = arguments[arguments.length - 1],
|
|
200818
|
-
|
|
200819
|
-
|
|
201063
|
+
objectInput = isObjectInput(input),
|
|
201064
|
+
stringInput = args.length > 0 && typeof input === 'string',
|
|
201065
|
+
zone = objectInput || stringInput ? getZone(name) : null,
|
|
201066
|
+
out = objectInput && zone ? parseWithZoneNow(args, name) :
|
|
201067
|
+
stringInput && zone ? parseWithZoneNow(args, name, true) : moment.utc.apply(null, args);
|
|
200820
201068
|
|
|
200821
|
-
if (!moment.isMoment(input) && needsOffset(out) && (zone = getZone(name))) {
|
|
201069
|
+
if (!moment.isMoment(input) && needsOffset(out) && (zone || (!objectInput && (zone = getZone(name))))) {
|
|
200822
201070
|
out.add(zone.parse(out), 'minutes');
|
|
200823
201071
|
}
|
|
200824
201072
|
|
|
@@ -200858,10 +201106,49 @@ function requireMomentTimezone () {
|
|
|
200858
201106
|
moment.tz = tz;
|
|
200859
201107
|
|
|
200860
201108
|
moment.defaultZone = null;
|
|
201109
|
+
var momentGetDefaultDateParts = moment._getDefaultDateParts;
|
|
201110
|
+
if (momentGetDefaultDateParts) {
|
|
201111
|
+
moment._getDefaultDateParts = function (config, now, forWeek) {
|
|
201112
|
+
var zone = moment.defaultZone,
|
|
201113
|
+
zonedNow,
|
|
201114
|
+
dateParts,
|
|
201115
|
+
savedIgnoredInput,
|
|
201116
|
+
savedHasIgnoredInput;
|
|
201117
|
+
forWeek = forWeek || config._isDefaultDatePartsForWeek;
|
|
201118
|
+
|
|
201119
|
+
if (parsingInZone && config._tzm === undefined) {
|
|
201120
|
+
zonedNow = new Date(now);
|
|
201121
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
201122
|
+
}
|
|
201123
|
+
|
|
201124
|
+
if (zone && !config._useUTC && config._tzm === undefined) {
|
|
201125
|
+
zonedNow = new Date(now - zone.utcOffset(now) * 60000);
|
|
201126
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
201127
|
+
}
|
|
201128
|
+
|
|
201129
|
+
if (forWeek && (config._useUTC || config._tzm !== undefined)) {
|
|
201130
|
+
savedIgnoredInput = ignoreDefaultZoneForInput;
|
|
201131
|
+
savedHasIgnoredInput = hasIgnoredDefaultZoneInput;
|
|
201132
|
+
ignoreDefaultZoneForInput = now;
|
|
201133
|
+
hasIgnoredDefaultZoneInput = true;
|
|
201134
|
+
try {
|
|
201135
|
+
dateParts = momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
201136
|
+
} finally {
|
|
201137
|
+
ignoreDefaultZoneForInput = savedIgnoredInput;
|
|
201138
|
+
hasIgnoredDefaultZoneInput = savedHasIgnoredInput;
|
|
201139
|
+
}
|
|
201140
|
+
return dateParts;
|
|
201141
|
+
}
|
|
201142
|
+
|
|
201143
|
+
return momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
201144
|
+
};
|
|
201145
|
+
}
|
|
200861
201146
|
|
|
200862
201147
|
moment.updateOffset = function (mom, keepTime) {
|
|
200863
|
-
var zone = moment.defaultZone,
|
|
200864
|
-
offset
|
|
201148
|
+
var zone = hasIgnoredDefaultZoneInput && ignoreDefaultZoneForInput === mom._i ? null : moment.defaultZone,
|
|
201149
|
+
offset,
|
|
201150
|
+
localTimestamp,
|
|
201151
|
+
normalizedTimestamp;
|
|
200865
201152
|
|
|
200866
201153
|
if (mom._z === undefined) {
|
|
200867
201154
|
if (zone && needsOffset(mom) && !mom._isUTC && mom.isValid()) {
|
|
@@ -200872,6 +201159,20 @@ function requireMomentTimezone () {
|
|
|
200872
201159
|
}
|
|
200873
201160
|
if (mom._z) {
|
|
200874
201161
|
offset = mom._z.utcOffset(mom);
|
|
201162
|
+
if (keepTime) {
|
|
201163
|
+
// Resolve local times inside a forward gap using the configured
|
|
201164
|
+
// invalid-input policy before applying the new offset.
|
|
201165
|
+
localTimestamp = mom._d.valueOf();
|
|
201166
|
+
if (!mom._isUTC) {
|
|
201167
|
+
localTimestamp -= mom._d.getTimezoneOffset() * 60000;
|
|
201168
|
+
}
|
|
201169
|
+
if (mom._z.utcOffset(localTimestamp + offset * 60000) !== offset) {
|
|
201170
|
+
offset = mom._z.parse(localTimestamp);
|
|
201171
|
+
localTimestamp += offset * 60000;
|
|
201172
|
+
offset = mom._z.utcOffset(localTimestamp);
|
|
201173
|
+
normalizedTimestamp = localTimestamp - offset * 60000;
|
|
201174
|
+
}
|
|
201175
|
+
}
|
|
200875
201176
|
if (Math.abs(offset) < 16) {
|
|
200876
201177
|
offset = offset / 60;
|
|
200877
201178
|
}
|
|
@@ -200882,6 +201183,9 @@ function requireMomentTimezone () {
|
|
|
200882
201183
|
} else {
|
|
200883
201184
|
mom.zone(offset, keepTime);
|
|
200884
201185
|
}
|
|
201186
|
+
if (normalizedTimestamp != null) {
|
|
201187
|
+
mom._d.setTime(normalizedTimestamp);
|
|
201188
|
+
}
|
|
200885
201189
|
}
|
|
200886
201190
|
};
|
|
200887
201191
|
|