@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.
- package/angular-app/dependency-report.html +1 -1
- package/angular-app/npm-shrinkwrap.json +378 -384
- package/angular-app/package-lock.json +378 -384
- 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 +93 -89
- package/package-lock.json +93 -89
- 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.15.5-rc.
|
|
3
|
+
"version": "11.15.5-rc.267",
|
|
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.15.5-rc.
|
|
39
|
+
"@wavemaker/custom-widgets-m3": "11.15.5-rc.267",
|
|
40
40
|
"@wavemaker/focus-trap": "1.0.1",
|
|
41
|
-
"@wavemaker/foundation-css": "11.15.5-rc.
|
|
41
|
+
"@wavemaker/foundation-css": "11.15.5-rc.267",
|
|
42
42
|
"@wavemaker/nvd3": "1.8.16",
|
|
43
|
-
"@wavemaker/variables": "11.15.5-rc.
|
|
43
|
+
"@wavemaker/variables": "11.15.5-rc.267",
|
|
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.15.5-rc.
|
|
65
|
+
"@wavemaker/app-ng-runtime": "11.15.5-rc.267"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
|
|
@@ -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.
|
|
143167
|
+
//! version : 0.6.5
|
|
143168
143168
|
//! Copyright (c) JS Foundation and other contributors
|
|
143169
143169
|
//! license : MIT
|
|
143170
143170
|
//! github.com/moment/moment-timezone
|
|
@@ -143190,12 +143190,18 @@ function requireMomentTimezone$1 () {
|
|
|
143190
143190
|
// return moment;
|
|
143191
143191
|
// }
|
|
143192
143192
|
|
|
143193
|
-
var VERSION = "0.6.
|
|
143193
|
+
var VERSION = "0.6.5",
|
|
143194
143194
|
zones = {},
|
|
143195
143195
|
links = {},
|
|
143196
143196
|
countries = {},
|
|
143197
143197
|
names = {},
|
|
143198
143198
|
guesses = {},
|
|
143199
|
+
parsingInZone = false,
|
|
143200
|
+
parsingNow,
|
|
143201
|
+
parsingNowFunction,
|
|
143202
|
+
hasParsingNow = false,
|
|
143203
|
+
ignoreDefaultZoneForInput,
|
|
143204
|
+
hasIgnoredDefaultZoneInput = false,
|
|
143199
143205
|
cachedGuess;
|
|
143200
143206
|
|
|
143201
143207
|
if (!moment || typeof moment.version !== 'string') {
|
|
@@ -143367,17 +143373,16 @@ function requireMomentTimezone$1 () {
|
|
|
143367
143373
|
offsets = this.offsets,
|
|
143368
143374
|
untils = this.untils,
|
|
143369
143375
|
max = untils.length - 1,
|
|
143370
|
-
offset, offsetNext,
|
|
143376
|
+
offset, offsetNext, i;
|
|
143371
143377
|
|
|
143372
143378
|
for (i = 0; i < max; i++) {
|
|
143373
143379
|
offset = offsets[i];
|
|
143374
143380
|
offsetNext = offsets[i + 1];
|
|
143375
|
-
offsetPrev = offsets[i ? i - 1 : i];
|
|
143376
143381
|
|
|
143377
143382
|
if (offset < offsetNext && tz.moveAmbiguousForward) {
|
|
143378
143383
|
offset = offsetNext;
|
|
143379
|
-
} else if (offset >
|
|
143380
|
-
offset =
|
|
143384
|
+
} else if (offset > offsetNext && tz.moveInvalidForward) {
|
|
143385
|
+
offset = offsetNext;
|
|
143381
143386
|
}
|
|
143382
143387
|
|
|
143383
143388
|
if (target < untils[i] - (offset * 60000)) {
|
|
@@ -143402,6 +143407,15 @@ function requireMomentTimezone$1 () {
|
|
|
143402
143407
|
}
|
|
143403
143408
|
};
|
|
143404
143409
|
|
|
143410
|
+
var utcDefaultZone = new Zone();
|
|
143411
|
+
utcDefaultZone._set({
|
|
143412
|
+
name : 'UTC',
|
|
143413
|
+
abbrs : ['UTC'],
|
|
143414
|
+
untils : [Infinity],
|
|
143415
|
+
offsets : [0],
|
|
143416
|
+
population : 0
|
|
143417
|
+
});
|
|
143418
|
+
|
|
143405
143419
|
/************************************
|
|
143406
143420
|
Country object
|
|
143407
143421
|
************************************/
|
|
@@ -143739,6 +143753,85 @@ function requireMomentTimezone$1 () {
|
|
|
143739
143753
|
return !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);
|
|
143740
143754
|
}
|
|
143741
143755
|
|
|
143756
|
+
function isObjectInput (input) {
|
|
143757
|
+
var prop;
|
|
143758
|
+
|
|
143759
|
+
if (moment.isMoment(input) || input === null || Object.prototype.toString.call(input) !== '[object Object]') {
|
|
143760
|
+
return false;
|
|
143761
|
+
}
|
|
143762
|
+
if (Object.getOwnPropertyNames) {
|
|
143763
|
+
return Object.getOwnPropertyNames(input).length > 0;
|
|
143764
|
+
}
|
|
143765
|
+
for (prop in input) {
|
|
143766
|
+
if (Object.prototype.hasOwnProperty.call(input, prop)) {
|
|
143767
|
+
return true;
|
|
143768
|
+
}
|
|
143769
|
+
}
|
|
143770
|
+
return false;
|
|
143771
|
+
}
|
|
143772
|
+
|
|
143773
|
+
function parseWithZoneNow (args, name, stringInput) {
|
|
143774
|
+
var savedNow = moment.now,
|
|
143775
|
+
savedDefaultZone = moment.defaultZone,
|
|
143776
|
+
savedParsingInZone = parsingInZone,
|
|
143777
|
+
savedParsingNow = parsingNow,
|
|
143778
|
+
savedParsingNowFunction = parsingNowFunction,
|
|
143779
|
+
savedHasParsingNow = hasParsingNow,
|
|
143780
|
+
now,
|
|
143781
|
+
hasNow = false,
|
|
143782
|
+
zonedNow,
|
|
143783
|
+
wallNow,
|
|
143784
|
+
parsedDateParts,
|
|
143785
|
+
out;
|
|
143786
|
+
|
|
143787
|
+
if (!parsingInZone) {
|
|
143788
|
+
parsingNow = undefined;
|
|
143789
|
+
parsingNowFunction = savedNow;
|
|
143790
|
+
hasParsingNow = false;
|
|
143791
|
+
}
|
|
143792
|
+
parsingInZone = true;
|
|
143793
|
+
moment.now = function () {
|
|
143794
|
+
if (!hasNow) {
|
|
143795
|
+
if (!hasParsingNow) {
|
|
143796
|
+
parsingNow = parsingNowFunction.call(moment);
|
|
143797
|
+
hasParsingNow = true;
|
|
143798
|
+
}
|
|
143799
|
+
now = parsingNow;
|
|
143800
|
+
hasNow = true;
|
|
143801
|
+
zonedNow = moment.tz(now, name);
|
|
143802
|
+
wallNow = zonedNow.valueOf() + zonedNow.utcOffset() * 60000;
|
|
143803
|
+
}
|
|
143804
|
+
return wallNow;
|
|
143805
|
+
};
|
|
143806
|
+
if (stringInput) {
|
|
143807
|
+
moment.defaultZone = utcDefaultZone;
|
|
143808
|
+
}
|
|
143809
|
+
try {
|
|
143810
|
+
out = moment.utc.apply(null, args);
|
|
143811
|
+
if (stringInput && hasNow && out._a && out._tzm !== undefined) {
|
|
143812
|
+
parsedDateParts = out.parsingFlags().parsedDateParts;
|
|
143813
|
+
if (!parsedDateParts || parsedDateParts[0] == null || parsedDateParts[1] == null || parsedDateParts[2] == null) {
|
|
143814
|
+
moment.now = function () {
|
|
143815
|
+
return now;
|
|
143816
|
+
};
|
|
143817
|
+
moment.defaultZone = savedDefaultZone;
|
|
143818
|
+
out = moment.utc.apply(null, args);
|
|
143819
|
+
}
|
|
143820
|
+
}
|
|
143821
|
+
} finally {
|
|
143822
|
+
moment.now = savedNow;
|
|
143823
|
+
moment.defaultZone = savedDefaultZone;
|
|
143824
|
+
parsingInZone = savedParsingInZone;
|
|
143825
|
+
if (!savedParsingInZone) {
|
|
143826
|
+
parsingNow = savedParsingNow;
|
|
143827
|
+
parsingNowFunction = savedParsingNowFunction;
|
|
143828
|
+
hasParsingNow = savedHasParsingNow;
|
|
143829
|
+
}
|
|
143830
|
+
}
|
|
143831
|
+
|
|
143832
|
+
return out;
|
|
143833
|
+
}
|
|
143834
|
+
|
|
143742
143835
|
function logError (message) {
|
|
143743
143836
|
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
143744
143837
|
console.error(message);
|
|
@@ -143752,10 +143845,13 @@ function requireMomentTimezone$1 () {
|
|
|
143752
143845
|
function tz (input) {
|
|
143753
143846
|
var args = Array.prototype.slice.call(arguments, 0, -1),
|
|
143754
143847
|
name = arguments[arguments.length - 1],
|
|
143755
|
-
|
|
143756
|
-
|
|
143848
|
+
objectInput = isObjectInput(input),
|
|
143849
|
+
stringInput = args.length > 0 && typeof input === 'string',
|
|
143850
|
+
zone = objectInput || stringInput ? getZone(name) : null,
|
|
143851
|
+
out = objectInput && zone ? parseWithZoneNow(args, name) :
|
|
143852
|
+
stringInput && zone ? parseWithZoneNow(args, name, true) : moment.utc.apply(null, args);
|
|
143757
143853
|
|
|
143758
|
-
if (!moment.isMoment(input) && needsOffset(out) && (zone = getZone(name))) {
|
|
143854
|
+
if (!moment.isMoment(input) && needsOffset(out) && (zone || (!objectInput && (zone = getZone(name))))) {
|
|
143759
143855
|
out.add(zone.parse(out), 'minutes');
|
|
143760
143856
|
}
|
|
143761
143857
|
|
|
@@ -143795,10 +143891,49 @@ function requireMomentTimezone$1 () {
|
|
|
143795
143891
|
moment.tz = tz;
|
|
143796
143892
|
|
|
143797
143893
|
moment.defaultZone = null;
|
|
143894
|
+
var momentGetDefaultDateParts = moment._getDefaultDateParts;
|
|
143895
|
+
if (momentGetDefaultDateParts) {
|
|
143896
|
+
moment._getDefaultDateParts = function (config, now, forWeek) {
|
|
143897
|
+
var zone = moment.defaultZone,
|
|
143898
|
+
zonedNow,
|
|
143899
|
+
dateParts,
|
|
143900
|
+
savedIgnoredInput,
|
|
143901
|
+
savedHasIgnoredInput;
|
|
143902
|
+
forWeek = forWeek || config._isDefaultDatePartsForWeek;
|
|
143903
|
+
|
|
143904
|
+
if (parsingInZone && config._tzm === undefined) {
|
|
143905
|
+
zonedNow = new Date(now);
|
|
143906
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
143907
|
+
}
|
|
143908
|
+
|
|
143909
|
+
if (zone && !config._useUTC && config._tzm === undefined) {
|
|
143910
|
+
zonedNow = new Date(now - zone.utcOffset(now) * 60000);
|
|
143911
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
143912
|
+
}
|
|
143913
|
+
|
|
143914
|
+
if (forWeek && (config._useUTC || config._tzm !== undefined)) {
|
|
143915
|
+
savedIgnoredInput = ignoreDefaultZoneForInput;
|
|
143916
|
+
savedHasIgnoredInput = hasIgnoredDefaultZoneInput;
|
|
143917
|
+
ignoreDefaultZoneForInput = now;
|
|
143918
|
+
hasIgnoredDefaultZoneInput = true;
|
|
143919
|
+
try {
|
|
143920
|
+
dateParts = momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
143921
|
+
} finally {
|
|
143922
|
+
ignoreDefaultZoneForInput = savedIgnoredInput;
|
|
143923
|
+
hasIgnoredDefaultZoneInput = savedHasIgnoredInput;
|
|
143924
|
+
}
|
|
143925
|
+
return dateParts;
|
|
143926
|
+
}
|
|
143927
|
+
|
|
143928
|
+
return momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
143929
|
+
};
|
|
143930
|
+
}
|
|
143798
143931
|
|
|
143799
143932
|
moment.updateOffset = function (mom, keepTime) {
|
|
143800
|
-
var zone = moment.defaultZone,
|
|
143801
|
-
offset
|
|
143933
|
+
var zone = hasIgnoredDefaultZoneInput && ignoreDefaultZoneForInput === mom._i ? null : moment.defaultZone,
|
|
143934
|
+
offset,
|
|
143935
|
+
localTimestamp,
|
|
143936
|
+
normalizedTimestamp;
|
|
143802
143937
|
|
|
143803
143938
|
if (mom._z === undefined) {
|
|
143804
143939
|
if (zone && needsOffset(mom) && !mom._isUTC && mom.isValid()) {
|
|
@@ -143809,6 +143944,20 @@ function requireMomentTimezone$1 () {
|
|
|
143809
143944
|
}
|
|
143810
143945
|
if (mom._z) {
|
|
143811
143946
|
offset = mom._z.utcOffset(mom);
|
|
143947
|
+
if (keepTime) {
|
|
143948
|
+
// Resolve local times inside a forward gap using the configured
|
|
143949
|
+
// invalid-input policy before applying the new offset.
|
|
143950
|
+
localTimestamp = mom._d.valueOf();
|
|
143951
|
+
if (!mom._isUTC) {
|
|
143952
|
+
localTimestamp -= mom._d.getTimezoneOffset() * 60000;
|
|
143953
|
+
}
|
|
143954
|
+
if (mom._z.utcOffset(localTimestamp + offset * 60000) !== offset) {
|
|
143955
|
+
offset = mom._z.parse(localTimestamp);
|
|
143956
|
+
localTimestamp += offset * 60000;
|
|
143957
|
+
offset = mom._z.utcOffset(localTimestamp);
|
|
143958
|
+
normalizedTimestamp = localTimestamp - offset * 60000;
|
|
143959
|
+
}
|
|
143960
|
+
}
|
|
143812
143961
|
if (Math.abs(offset) < 16) {
|
|
143813
143962
|
offset = offset / 60;
|
|
143814
143963
|
}
|
|
@@ -143819,6 +143968,9 @@ function requireMomentTimezone$1 () {
|
|
|
143819
143968
|
} else {
|
|
143820
143969
|
mom.zone(offset, keepTime);
|
|
143821
143970
|
}
|
|
143971
|
+
if (normalizedTimestamp != null) {
|
|
143972
|
+
mom._d.setTime(normalizedTimestamp);
|
|
143973
|
+
}
|
|
143822
143974
|
}
|
|
143823
143975
|
};
|
|
143824
143976
|
|
|
@@ -200367,7 +200519,7 @@ function requireMomentTimezone () {
|
|
|
200367
200519
|
hasRequiredMomentTimezone = 1;
|
|
200368
200520
|
(function (module) {
|
|
200369
200521
|
//! moment-timezone.js
|
|
200370
|
-
//! version : 0.6.
|
|
200522
|
+
//! version : 0.6.5
|
|
200371
200523
|
//! Copyright (c) JS Foundation and other contributors
|
|
200372
200524
|
//! license : MIT
|
|
200373
200525
|
//! github.com/moment/moment-timezone
|
|
@@ -200393,12 +200545,18 @@ function requireMomentTimezone () {
|
|
|
200393
200545
|
// return moment;
|
|
200394
200546
|
// }
|
|
200395
200547
|
|
|
200396
|
-
var VERSION = "0.6.
|
|
200548
|
+
var VERSION = "0.6.5",
|
|
200397
200549
|
zones = {},
|
|
200398
200550
|
links = {},
|
|
200399
200551
|
countries = {},
|
|
200400
200552
|
names = {},
|
|
200401
200553
|
guesses = {},
|
|
200554
|
+
parsingInZone = false,
|
|
200555
|
+
parsingNow,
|
|
200556
|
+
parsingNowFunction,
|
|
200557
|
+
hasParsingNow = false,
|
|
200558
|
+
ignoreDefaultZoneForInput,
|
|
200559
|
+
hasIgnoredDefaultZoneInput = false,
|
|
200402
200560
|
cachedGuess;
|
|
200403
200561
|
|
|
200404
200562
|
if (!moment || typeof moment.version !== 'string') {
|
|
@@ -200570,17 +200728,16 @@ function requireMomentTimezone () {
|
|
|
200570
200728
|
offsets = this.offsets,
|
|
200571
200729
|
untils = this.untils,
|
|
200572
200730
|
max = untils.length - 1,
|
|
200573
|
-
offset, offsetNext,
|
|
200731
|
+
offset, offsetNext, i;
|
|
200574
200732
|
|
|
200575
200733
|
for (i = 0; i < max; i++) {
|
|
200576
200734
|
offset = offsets[i];
|
|
200577
200735
|
offsetNext = offsets[i + 1];
|
|
200578
|
-
offsetPrev = offsets[i ? i - 1 : i];
|
|
200579
200736
|
|
|
200580
200737
|
if (offset < offsetNext && tz.moveAmbiguousForward) {
|
|
200581
200738
|
offset = offsetNext;
|
|
200582
|
-
} else if (offset >
|
|
200583
|
-
offset =
|
|
200739
|
+
} else if (offset > offsetNext && tz.moveInvalidForward) {
|
|
200740
|
+
offset = offsetNext;
|
|
200584
200741
|
}
|
|
200585
200742
|
|
|
200586
200743
|
if (target < untils[i] - (offset * 60000)) {
|
|
@@ -200605,6 +200762,15 @@ function requireMomentTimezone () {
|
|
|
200605
200762
|
}
|
|
200606
200763
|
};
|
|
200607
200764
|
|
|
200765
|
+
var utcDefaultZone = new Zone();
|
|
200766
|
+
utcDefaultZone._set({
|
|
200767
|
+
name : 'UTC',
|
|
200768
|
+
abbrs : ['UTC'],
|
|
200769
|
+
untils : [Infinity],
|
|
200770
|
+
offsets : [0],
|
|
200771
|
+
population : 0
|
|
200772
|
+
});
|
|
200773
|
+
|
|
200608
200774
|
/************************************
|
|
200609
200775
|
Country object
|
|
200610
200776
|
************************************/
|
|
@@ -200942,6 +201108,85 @@ function requireMomentTimezone () {
|
|
|
200942
201108
|
return !!(m._a && (m._tzm === undefined) && !isUnixTimestamp);
|
|
200943
201109
|
}
|
|
200944
201110
|
|
|
201111
|
+
function isObjectInput (input) {
|
|
201112
|
+
var prop;
|
|
201113
|
+
|
|
201114
|
+
if (moment.isMoment(input) || input === null || Object.prototype.toString.call(input) !== '[object Object]') {
|
|
201115
|
+
return false;
|
|
201116
|
+
}
|
|
201117
|
+
if (Object.getOwnPropertyNames) {
|
|
201118
|
+
return Object.getOwnPropertyNames(input).length > 0;
|
|
201119
|
+
}
|
|
201120
|
+
for (prop in input) {
|
|
201121
|
+
if (Object.prototype.hasOwnProperty.call(input, prop)) {
|
|
201122
|
+
return true;
|
|
201123
|
+
}
|
|
201124
|
+
}
|
|
201125
|
+
return false;
|
|
201126
|
+
}
|
|
201127
|
+
|
|
201128
|
+
function parseWithZoneNow (args, name, stringInput) {
|
|
201129
|
+
var savedNow = moment.now,
|
|
201130
|
+
savedDefaultZone = moment.defaultZone,
|
|
201131
|
+
savedParsingInZone = parsingInZone,
|
|
201132
|
+
savedParsingNow = parsingNow,
|
|
201133
|
+
savedParsingNowFunction = parsingNowFunction,
|
|
201134
|
+
savedHasParsingNow = hasParsingNow,
|
|
201135
|
+
now,
|
|
201136
|
+
hasNow = false,
|
|
201137
|
+
zonedNow,
|
|
201138
|
+
wallNow,
|
|
201139
|
+
parsedDateParts,
|
|
201140
|
+
out;
|
|
201141
|
+
|
|
201142
|
+
if (!parsingInZone) {
|
|
201143
|
+
parsingNow = undefined;
|
|
201144
|
+
parsingNowFunction = savedNow;
|
|
201145
|
+
hasParsingNow = false;
|
|
201146
|
+
}
|
|
201147
|
+
parsingInZone = true;
|
|
201148
|
+
moment.now = function () {
|
|
201149
|
+
if (!hasNow) {
|
|
201150
|
+
if (!hasParsingNow) {
|
|
201151
|
+
parsingNow = parsingNowFunction.call(moment);
|
|
201152
|
+
hasParsingNow = true;
|
|
201153
|
+
}
|
|
201154
|
+
now = parsingNow;
|
|
201155
|
+
hasNow = true;
|
|
201156
|
+
zonedNow = moment.tz(now, name);
|
|
201157
|
+
wallNow = zonedNow.valueOf() + zonedNow.utcOffset() * 60000;
|
|
201158
|
+
}
|
|
201159
|
+
return wallNow;
|
|
201160
|
+
};
|
|
201161
|
+
if (stringInput) {
|
|
201162
|
+
moment.defaultZone = utcDefaultZone;
|
|
201163
|
+
}
|
|
201164
|
+
try {
|
|
201165
|
+
out = moment.utc.apply(null, args);
|
|
201166
|
+
if (stringInput && hasNow && out._a && out._tzm !== undefined) {
|
|
201167
|
+
parsedDateParts = out.parsingFlags().parsedDateParts;
|
|
201168
|
+
if (!parsedDateParts || parsedDateParts[0] == null || parsedDateParts[1] == null || parsedDateParts[2] == null) {
|
|
201169
|
+
moment.now = function () {
|
|
201170
|
+
return now;
|
|
201171
|
+
};
|
|
201172
|
+
moment.defaultZone = savedDefaultZone;
|
|
201173
|
+
out = moment.utc.apply(null, args);
|
|
201174
|
+
}
|
|
201175
|
+
}
|
|
201176
|
+
} finally {
|
|
201177
|
+
moment.now = savedNow;
|
|
201178
|
+
moment.defaultZone = savedDefaultZone;
|
|
201179
|
+
parsingInZone = savedParsingInZone;
|
|
201180
|
+
if (!savedParsingInZone) {
|
|
201181
|
+
parsingNow = savedParsingNow;
|
|
201182
|
+
parsingNowFunction = savedParsingNowFunction;
|
|
201183
|
+
hasParsingNow = savedHasParsingNow;
|
|
201184
|
+
}
|
|
201185
|
+
}
|
|
201186
|
+
|
|
201187
|
+
return out;
|
|
201188
|
+
}
|
|
201189
|
+
|
|
200945
201190
|
function logError (message) {
|
|
200946
201191
|
if (typeof console !== 'undefined' && typeof console.error === 'function') {
|
|
200947
201192
|
console.error(message);
|
|
@@ -200955,10 +201200,13 @@ function requireMomentTimezone () {
|
|
|
200955
201200
|
function tz (input) {
|
|
200956
201201
|
var args = Array.prototype.slice.call(arguments, 0, -1),
|
|
200957
201202
|
name = arguments[arguments.length - 1],
|
|
200958
|
-
|
|
200959
|
-
|
|
201203
|
+
objectInput = isObjectInput(input),
|
|
201204
|
+
stringInput = args.length > 0 && typeof input === 'string',
|
|
201205
|
+
zone = objectInput || stringInput ? getZone(name) : null,
|
|
201206
|
+
out = objectInput && zone ? parseWithZoneNow(args, name) :
|
|
201207
|
+
stringInput && zone ? parseWithZoneNow(args, name, true) : moment.utc.apply(null, args);
|
|
200960
201208
|
|
|
200961
|
-
if (!moment.isMoment(input) && needsOffset(out) && (zone = getZone(name))) {
|
|
201209
|
+
if (!moment.isMoment(input) && needsOffset(out) && (zone || (!objectInput && (zone = getZone(name))))) {
|
|
200962
201210
|
out.add(zone.parse(out), 'minutes');
|
|
200963
201211
|
}
|
|
200964
201212
|
|
|
@@ -200998,10 +201246,49 @@ function requireMomentTimezone () {
|
|
|
200998
201246
|
moment.tz = tz;
|
|
200999
201247
|
|
|
201000
201248
|
moment.defaultZone = null;
|
|
201249
|
+
var momentGetDefaultDateParts = moment._getDefaultDateParts;
|
|
201250
|
+
if (momentGetDefaultDateParts) {
|
|
201251
|
+
moment._getDefaultDateParts = function (config, now, forWeek) {
|
|
201252
|
+
var zone = moment.defaultZone,
|
|
201253
|
+
zonedNow,
|
|
201254
|
+
dateParts,
|
|
201255
|
+
savedIgnoredInput,
|
|
201256
|
+
savedHasIgnoredInput;
|
|
201257
|
+
forWeek = forWeek || config._isDefaultDatePartsForWeek;
|
|
201258
|
+
|
|
201259
|
+
if (parsingInZone && config._tzm === undefined) {
|
|
201260
|
+
zonedNow = new Date(now);
|
|
201261
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
201262
|
+
}
|
|
201263
|
+
|
|
201264
|
+
if (zone && !config._useUTC && config._tzm === undefined) {
|
|
201265
|
+
zonedNow = new Date(now - zone.utcOffset(now) * 60000);
|
|
201266
|
+
return [zonedNow.getUTCFullYear(), zonedNow.getUTCMonth(), zonedNow.getUTCDate()];
|
|
201267
|
+
}
|
|
201268
|
+
|
|
201269
|
+
if (forWeek && (config._useUTC || config._tzm !== undefined)) {
|
|
201270
|
+
savedIgnoredInput = ignoreDefaultZoneForInput;
|
|
201271
|
+
savedHasIgnoredInput = hasIgnoredDefaultZoneInput;
|
|
201272
|
+
ignoreDefaultZoneForInput = now;
|
|
201273
|
+
hasIgnoredDefaultZoneInput = true;
|
|
201274
|
+
try {
|
|
201275
|
+
dateParts = momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
201276
|
+
} finally {
|
|
201277
|
+
ignoreDefaultZoneForInput = savedIgnoredInput;
|
|
201278
|
+
hasIgnoredDefaultZoneInput = savedHasIgnoredInput;
|
|
201279
|
+
}
|
|
201280
|
+
return dateParts;
|
|
201281
|
+
}
|
|
201282
|
+
|
|
201283
|
+
return momentGetDefaultDateParts.call(this, config, now, forWeek);
|
|
201284
|
+
};
|
|
201285
|
+
}
|
|
201001
201286
|
|
|
201002
201287
|
moment.updateOffset = function (mom, keepTime) {
|
|
201003
|
-
var zone = moment.defaultZone,
|
|
201004
|
-
offset
|
|
201288
|
+
var zone = hasIgnoredDefaultZoneInput && ignoreDefaultZoneForInput === mom._i ? null : moment.defaultZone,
|
|
201289
|
+
offset,
|
|
201290
|
+
localTimestamp,
|
|
201291
|
+
normalizedTimestamp;
|
|
201005
201292
|
|
|
201006
201293
|
if (mom._z === undefined) {
|
|
201007
201294
|
if (zone && needsOffset(mom) && !mom._isUTC && mom.isValid()) {
|
|
@@ -201012,6 +201299,20 @@ function requireMomentTimezone () {
|
|
|
201012
201299
|
}
|
|
201013
201300
|
if (mom._z) {
|
|
201014
201301
|
offset = mom._z.utcOffset(mom);
|
|
201302
|
+
if (keepTime) {
|
|
201303
|
+
// Resolve local times inside a forward gap using the configured
|
|
201304
|
+
// invalid-input policy before applying the new offset.
|
|
201305
|
+
localTimestamp = mom._d.valueOf();
|
|
201306
|
+
if (!mom._isUTC) {
|
|
201307
|
+
localTimestamp -= mom._d.getTimezoneOffset() * 60000;
|
|
201308
|
+
}
|
|
201309
|
+
if (mom._z.utcOffset(localTimestamp + offset * 60000) !== offset) {
|
|
201310
|
+
offset = mom._z.parse(localTimestamp);
|
|
201311
|
+
localTimestamp += offset * 60000;
|
|
201312
|
+
offset = mom._z.utcOffset(localTimestamp);
|
|
201313
|
+
normalizedTimestamp = localTimestamp - offset * 60000;
|
|
201314
|
+
}
|
|
201315
|
+
}
|
|
201015
201316
|
if (Math.abs(offset) < 16) {
|
|
201016
201317
|
offset = offset / 60;
|
|
201017
201318
|
}
|
|
@@ -201022,6 +201323,9 @@ function requireMomentTimezone () {
|
|
|
201022
201323
|
} else {
|
|
201023
201324
|
mom.zone(offset, keepTime);
|
|
201024
201325
|
}
|
|
201326
|
+
if (normalizedTimestamp != null) {
|
|
201327
|
+
mom._d.setTime(normalizedTimestamp);
|
|
201328
|
+
}
|
|
201025
201329
|
}
|
|
201026
201330
|
};
|
|
201027
201331
|
|