ui-kit-ck-consultant 0.5.209 → 0.5.212
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/dist/index.css +1 -21
- package/dist/index.js +114 -87
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +114 -87
- package/dist/index.modern.js.map +1 -1
- package/package.json +23 -24
- package/dist/expertloupe~balyfBDB.svg +0 -74
package/dist/index.css
CHANGED
@@ -466,9 +466,6 @@
|
|
466
466
|
._1Fq5R::-moz-placeholder, ._1XBGF::-moz-placeholder {
|
467
467
|
color: var(--gray);
|
468
468
|
}
|
469
|
-
._1Fq5R:-ms-input-placeholder, ._1XBGF:-ms-input-placeholder {
|
470
|
-
color: var(--gray);
|
471
|
-
}
|
472
469
|
._1Fq5R::placeholder,
|
473
470
|
._1XBGF::placeholder {
|
474
471
|
color: var(--gray);
|
@@ -547,9 +544,6 @@
|
|
547
544
|
._3--n1::-moz-placeholder, ._1gP7a::-moz-placeholder {
|
548
545
|
color: var(--gray);
|
549
546
|
}
|
550
|
-
._3--n1:-ms-input-placeholder, ._1gP7a:-ms-input-placeholder {
|
551
|
-
color: var(--gray);
|
552
|
-
}
|
553
547
|
._3--n1::placeholder,
|
554
548
|
._1gP7a::placeholder {
|
555
549
|
color: var(--gray);
|
@@ -604,10 +598,6 @@
|
|
604
598
|
color: var(--gray);
|
605
599
|
}
|
606
600
|
|
607
|
-
._1DiO5:-ms-input-placeholder {
|
608
|
-
color: var(--gray);
|
609
|
-
}
|
610
|
-
|
611
601
|
._1DiO5::placeholder {
|
612
602
|
color: var(--gray);
|
613
603
|
}
|
@@ -666,9 +656,6 @@
|
|
666
656
|
._6hnFm::-moz-placeholder {
|
667
657
|
color: var(--gray);
|
668
658
|
}
|
669
|
-
._6hnFm:-ms-input-placeholder {
|
670
|
-
color: var(--gray);
|
671
|
-
}
|
672
659
|
._6hnFm::placeholder {
|
673
660
|
color: var(--gray);
|
674
661
|
}
|
@@ -704,7 +691,6 @@
|
|
704
691
|
font-size: 16px;
|
705
692
|
-webkit-user-select: none;
|
706
693
|
-moz-user-select: none;
|
707
|
-
-ms-user-select: none;
|
708
694
|
user-select: none;
|
709
695
|
color: var(--black);
|
710
696
|
min-height: 26px;
|
@@ -766,7 +752,6 @@
|
|
766
752
|
font-size: 16px;
|
767
753
|
-webkit-user-select: none;
|
768
754
|
-moz-user-select: none;
|
769
|
-
-ms-user-select: none;
|
770
755
|
user-select: none;
|
771
756
|
color: var(--black);
|
772
757
|
min-height: 26px;
|
@@ -2375,7 +2360,6 @@
|
|
2375
2360
|
-webkit-touch-callout: none;
|
2376
2361
|
-webkit-user-select: none;
|
2377
2362
|
-moz-user-select: none;
|
2378
|
-
-ms-user-select: none;
|
2379
2363
|
user-select: none;
|
2380
2364
|
margin: auto;
|
2381
2365
|
display: inline-block;
|
@@ -2472,8 +2456,7 @@
|
|
2472
2456
|
color: var(--primary-color);
|
2473
2457
|
-webkit-touch-callout: none; /* iOS Safari */
|
2474
2458
|
-webkit-user-select: none; /* Safari */ /* Konqueror HTML */
|
2475
|
-
-moz-user-select: none; /* Old versions of Firefox */
|
2476
|
-
-ms-user-select: none; /* Internet Explorer/Edge */
|
2459
|
+
-moz-user-select: none; /* Old versions of Firefox */ /* Internet Explorer/Edge */
|
2477
2460
|
user-select: none; /* Non-prefixed version, currently
|
2478
2461
|
supported by Chrome, Edge, Opera and Firefox */
|
2479
2462
|
}
|
@@ -2742,7 +2725,6 @@
|
|
2742
2725
|
-webkit-touch-callout: none;
|
2743
2726
|
-webkit-user-select: none;
|
2744
2727
|
-moz-user-select: none;
|
2745
|
-
-ms-user-select: none;
|
2746
2728
|
user-select: none;
|
2747
2729
|
}
|
2748
2730
|
|
@@ -2788,7 +2770,6 @@
|
|
2788
2770
|
-webkit-touch-callout: none;
|
2789
2771
|
-webkit-user-select: none;
|
2790
2772
|
-moz-user-select: none;
|
2791
|
-
-ms-user-select: none;
|
2792
2773
|
user-select: none;
|
2793
2774
|
cursor: pointer;
|
2794
2775
|
}
|
@@ -2903,7 +2884,6 @@
|
|
2903
2884
|
-webkit-touch-callout: none;
|
2904
2885
|
-webkit-user-select: none;
|
2905
2886
|
-moz-user-select: none;
|
2906
|
-
-ms-user-select: none;
|
2907
2887
|
user-select: none;
|
2908
2888
|
margin-right: auto;
|
2909
2889
|
}
|
package/dist/index.js
CHANGED
@@ -14,7 +14,7 @@ var Cookies = _interopDefault(require('universal-cookie'));
|
|
14
14
|
var Holidays = _interopDefault(require('date-holidays'));
|
15
15
|
|
16
16
|
function _extends() {
|
17
|
-
_extends = Object.assign
|
17
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
18
18
|
for (var i = 1; i < arguments.length; i++) {
|
19
19
|
var source = arguments[i];
|
20
20
|
|
@@ -27,7 +27,6 @@ function _extends() {
|
|
27
27
|
|
28
28
|
return target;
|
29
29
|
};
|
30
|
-
|
31
30
|
return _extends.apply(this, arguments);
|
32
31
|
}
|
33
32
|
|
@@ -39,11 +38,10 @@ function _inheritsLoose(subClass, superClass) {
|
|
39
38
|
}
|
40
39
|
|
41
40
|
function _setPrototypeOf(o, p) {
|
42
|
-
_setPrototypeOf = Object.setPrototypeOf
|
41
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
43
42
|
o.__proto__ = p;
|
44
43
|
return o;
|
45
44
|
};
|
46
|
-
|
47
45
|
return _setPrototypeOf(o, p);
|
48
46
|
}
|
49
47
|
|
@@ -3363,7 +3361,8 @@ var Chips = /*#__PURE__*/function (_Component) {
|
|
3363
3361
|
var _this2 = this;
|
3364
3362
|
|
3365
3363
|
return /*#__PURE__*/React__default.createElement("div", {
|
3366
|
-
className: classNames$1(style$r.component)
|
3364
|
+
className: classNames$1(style$r.component, this.props.className),
|
3365
|
+
style: this.props.style
|
3367
3366
|
}, /*#__PURE__*/React__default.createElement("div", {
|
3368
3367
|
className: classNames$1(style$r['display-chips'])
|
3369
3368
|
}, this.state.chipsList.length > 0 ? this.state.chipsList.map(function (chips, idx) {
|
@@ -3635,8 +3634,10 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
3635
3634
|
className: classNames$1(style$t.space)
|
3636
3635
|
}) : /*#__PURE__*/React__default.createElement(Fragment, null), this.props.icon ? this.props.icon : /*#__PURE__*/React__default.createElement(Fragment, null)), /*#__PURE__*/React__default.createElement("div", {
|
3637
3636
|
className: dropdownMenuClass
|
3638
|
-
}, this.props.data.map(function (element) {
|
3639
|
-
return /*#__PURE__*/React__default.createElement("span",
|
3637
|
+
}, this.props.data.map(function (element, key) {
|
3638
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
3639
|
+
key: key
|
3640
|
+
}, element.title);
|
3640
3641
|
})));
|
3641
3642
|
};
|
3642
3643
|
|
@@ -4021,7 +4022,18 @@ var Gauge = /*#__PURE__*/function (_React$Component) {
|
|
4021
4022
|
|
4022
4023
|
return /*#__PURE__*/React__default.createElement("div", {
|
4023
4024
|
className: this.props.className
|
4024
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
4025
|
+
}, this.props.onEdit ? /*#__PURE__*/React__default.createElement("span", {
|
4026
|
+
style: {
|
4027
|
+
display: 'inline-block',
|
4028
|
+
fontSize: '14px',
|
4029
|
+
fontWeight: 'bold',
|
4030
|
+
color: 'var(--blue)',
|
4031
|
+
marginBottom: '16px',
|
4032
|
+
cursor: 'pointer',
|
4033
|
+
textDecoration: 'underline'
|
4034
|
+
},
|
4035
|
+
onClick: this.props.onEdit
|
4036
|
+
}, this.props.title) : /*#__PURE__*/React__default.createElement("span", {
|
4025
4037
|
style: {
|
4026
4038
|
display: 'inline-block',
|
4027
4039
|
fontSize: '14px',
|
@@ -4190,8 +4202,9 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4190
4202
|
|
4191
4203
|
function map(arr, fn) {
|
4192
4204
|
var res = [],
|
4193
|
-
i
|
4194
|
-
|
4205
|
+
i,
|
4206
|
+
arrLen = arr.length;
|
4207
|
+
for (i = 0; i < arrLen; ++i) {
|
4195
4208
|
res.push(fn(arr[i], i));
|
4196
4209
|
}
|
4197
4210
|
return res;
|
@@ -4320,7 +4333,10 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4320
4333
|
updateInProgress = false;
|
4321
4334
|
|
4322
4335
|
function copyConfig(to, from) {
|
4323
|
-
var i,
|
4336
|
+
var i,
|
4337
|
+
prop,
|
4338
|
+
val,
|
4339
|
+
momentPropertiesLen = momentProperties.length;
|
4324
4340
|
|
4325
4341
|
if (!isUndefined(from._isAMomentObject)) {
|
4326
4342
|
to._isAMomentObject = from._isAMomentObject;
|
@@ -4353,8 +4369,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4353
4369
|
to._locale = from._locale;
|
4354
4370
|
}
|
4355
4371
|
|
4356
|
-
if (
|
4357
|
-
for (i = 0; i <
|
4372
|
+
if (momentPropertiesLen > 0) {
|
4373
|
+
for (i = 0; i < momentPropertiesLen; i++) {
|
4358
4374
|
prop = momentProperties[i];
|
4359
4375
|
val = from[prop];
|
4360
4376
|
if (!isUndefined(val)) {
|
@@ -4409,8 +4425,9 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4409
4425
|
var args = [],
|
4410
4426
|
arg,
|
4411
4427
|
i,
|
4412
|
-
key
|
4413
|
-
|
4428
|
+
key,
|
4429
|
+
argLen = arguments.length;
|
4430
|
+
for (i = 0; i < argLen; i++) {
|
4414
4431
|
arg = '';
|
4415
4432
|
if (typeof arguments[i] === 'object') {
|
4416
4433
|
arg += '\n[' + i + '] ';
|
@@ -4560,7 +4577,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4560
4577
|
);
|
4561
4578
|
}
|
4562
4579
|
|
4563
|
-
var formattingTokens =
|
4580
|
+
var formattingTokens =
|
4581
|
+
/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
4564
4582
|
localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
|
4565
4583
|
formatFunctions = {},
|
4566
4584
|
formatTokenFunctions = {};
|
@@ -4864,8 +4882,9 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4864
4882
|
if (typeof units === 'object') {
|
4865
4883
|
units = normalizeObjectUnits(units);
|
4866
4884
|
var prioritized = getPrioritizedUnits(units),
|
4867
|
-
i
|
4868
|
-
|
4885
|
+
i,
|
4886
|
+
prioritizedLen = prioritized.length;
|
4887
|
+
for (i = 0; i < prioritizedLen; i++) {
|
4869
4888
|
this[prioritized[i].unit](units[prioritized[i].unit]);
|
4870
4889
|
}
|
4871
4890
|
} else {
|
@@ -4895,7 +4914,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4895
4914
|
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
|
4896
4915
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
4897
4916
|
// includes scottish gaelic two word and hyphenated months
|
4898
|
-
matchWord =
|
4917
|
+
matchWord =
|
4918
|
+
/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
4899
4919
|
regexes;
|
4900
4920
|
|
4901
4921
|
regexes = {};
|
@@ -4921,15 +4941,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4921
4941
|
return regexEscape(
|
4922
4942
|
s
|
4923
4943
|
.replace('\\', '')
|
4924
|
-
.replace(
|
4925
|
-
|
4926
|
-
p1,
|
4927
|
-
|
4928
|
-
|
4929
|
-
|
4930
|
-
) {
|
4931
|
-
return p1 || p2 || p3 || p4;
|
4932
|
-
})
|
4944
|
+
.replace(
|
4945
|
+
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
4946
|
+
function (matched, p1, p2, p3, p4) {
|
4947
|
+
return p1 || p2 || p3 || p4;
|
4948
|
+
}
|
4949
|
+
)
|
4933
4950
|
);
|
4934
4951
|
}
|
4935
4952
|
|
@@ -4941,7 +4958,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4941
4958
|
|
4942
4959
|
function addParseToken(token, callback) {
|
4943
4960
|
var i,
|
4944
|
-
func = callback
|
4961
|
+
func = callback,
|
4962
|
+
tokenLen;
|
4945
4963
|
if (typeof token === 'string') {
|
4946
4964
|
token = [token];
|
4947
4965
|
}
|
@@ -4950,7 +4968,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4950
4968
|
array[callback] = toInt(input);
|
4951
4969
|
};
|
4952
4970
|
}
|
4953
|
-
|
4971
|
+
tokenLen = token.length;
|
4972
|
+
for (i = 0; i < tokenLen; i++) {
|
4954
4973
|
tokens[token[i]] = func;
|
4955
4974
|
}
|
4956
4975
|
}
|
@@ -5061,12 +5080,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
5061
5080
|
|
5062
5081
|
// LOCALES
|
5063
5082
|
|
5064
|
-
var defaultLocaleMonths =
|
5065
|
-
'
|
5066
|
-
|
5067
|
-
|
5068
|
-
|
5069
|
-
|
5083
|
+
var defaultLocaleMonths =
|
5084
|
+
'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
5085
|
+
'_'
|
5086
|
+
),
|
5087
|
+
defaultLocaleMonthsShort =
|
5088
|
+
'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
5070
5089
|
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
5071
5090
|
defaultMonthsShortRegex = matchWord,
|
5072
5091
|
defaultMonthsRegex = matchWord;
|
@@ -5508,14 +5527,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
5508
5527
|
addRegexToken('W', match1to2);
|
5509
5528
|
addRegexToken('WW', match1to2, match2);
|
5510
5529
|
|
5511
|
-
addWeekParseToken(
|
5512
|
-
|
5513
|
-
week,
|
5514
|
-
|
5515
|
-
|
5516
|
-
)
|
5517
|
-
week[token.substr(0, 1)] = toInt(input);
|
5518
|
-
});
|
5530
|
+
addWeekParseToken(
|
5531
|
+
['w', 'ww', 'W', 'WW'],
|
5532
|
+
function (input, week, config, token) {
|
5533
|
+
week[token.substr(0, 1)] = toInt(input);
|
5534
|
+
}
|
5535
|
+
);
|
5519
5536
|
|
5520
5537
|
// HELPERS
|
5521
5538
|
|
@@ -5640,9 +5657,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
5640
5657
|
return ws.slice(n, 7).concat(ws.slice(0, n));
|
5641
5658
|
}
|
5642
5659
|
|
5643
|
-
var defaultLocaleWeekdays =
|
5644
|
-
'_'
|
5645
|
-
),
|
5660
|
+
var defaultLocaleWeekdays =
|
5661
|
+
'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
5646
5662
|
defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
5647
5663
|
defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
5648
5664
|
defaultWeekdaysRegex = matchWord,
|
@@ -6190,6 +6206,11 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6190
6206
|
return globalLocale;
|
6191
6207
|
}
|
6192
6208
|
|
6209
|
+
function isLocaleNameSane(name) {
|
6210
|
+
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
6211
|
+
return name.match('^[^/\\\\]*$') != null;
|
6212
|
+
}
|
6213
|
+
|
6193
6214
|
function loadLocale(name) {
|
6194
6215
|
var oldLocale = null,
|
6195
6216
|
aliasedRequire;
|
@@ -6198,7 +6219,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6198
6219
|
locales[name] === undefined &&
|
6199
6220
|
'object' !== 'undefined' &&
|
6200
6221
|
module &&
|
6201
|
-
module.exports
|
6222
|
+
module.exports &&
|
6223
|
+
isLocaleNameSane(name)
|
6202
6224
|
) {
|
6203
6225
|
try {
|
6204
6226
|
oldLocale = globalLocale._abbr;
|
@@ -6415,8 +6437,10 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6415
6437
|
|
6416
6438
|
// iso 8601 regex
|
6417
6439
|
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
6418
|
-
var extendedIsoRegex =
|
6419
|
-
|
6440
|
+
var extendedIsoRegex =
|
6441
|
+
/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
6442
|
+
basicIsoRegex =
|
6443
|
+
/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
6420
6444
|
tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
|
6421
6445
|
isoDates = [
|
6422
6446
|
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
|
@@ -6447,7 +6471,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6447
6471
|
],
|
6448
6472
|
aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
|
6449
6473
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
6450
|
-
rfc2822 =
|
6474
|
+
rfc2822 =
|
6475
|
+
/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
|
6451
6476
|
obsOffsets = {
|
6452
6477
|
UT: 0,
|
6453
6478
|
GMT: 0,
|
@@ -6470,12 +6495,13 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6470
6495
|
allowTime,
|
6471
6496
|
dateFormat,
|
6472
6497
|
timeFormat,
|
6473
|
-
tzFormat
|
6498
|
+
tzFormat,
|
6499
|
+
isoDatesLen = isoDates.length,
|
6500
|
+
isoTimesLen = isoTimes.length;
|
6474
6501
|
|
6475
6502
|
if (match) {
|
6476
6503
|
getParsingFlags(config).iso = true;
|
6477
|
-
|
6478
|
-
for (i = 0, l = isoDates.length; i < l; i++) {
|
6504
|
+
for (i = 0, l = isoDatesLen; i < l; i++) {
|
6479
6505
|
if (isoDates[i][1].exec(match[1])) {
|
6480
6506
|
dateFormat = isoDates[i][0];
|
6481
6507
|
allowTime = isoDates[i][2] !== false;
|
@@ -6487,7 +6513,7 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6487
6513
|
return;
|
6488
6514
|
}
|
6489
6515
|
if (match[3]) {
|
6490
|
-
for (i = 0, l =
|
6516
|
+
for (i = 0, l = isoTimesLen; i < l; i++) {
|
6491
6517
|
if (isoTimes[i][1].exec(match[3])) {
|
6492
6518
|
// match[2] should be 'T' or space
|
6493
6519
|
timeFormat = (match[2] || ' ') + isoTimes[i][0];
|
@@ -6867,12 +6893,13 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6867
6893
|
skipped,
|
6868
6894
|
stringLength = string.length,
|
6869
6895
|
totalParsedInputLength = 0,
|
6870
|
-
era
|
6896
|
+
era,
|
6897
|
+
tokenLen;
|
6871
6898
|
|
6872
6899
|
tokens =
|
6873
6900
|
expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
6874
|
-
|
6875
|
-
for (i = 0; i <
|
6901
|
+
tokenLen = tokens.length;
|
6902
|
+
for (i = 0; i < tokenLen; i++) {
|
6876
6903
|
token = tokens[i];
|
6877
6904
|
parsedInput = (string.match(getParseRegexForToken(token, config)) ||
|
6878
6905
|
[])[0];
|
@@ -6967,15 +6994,16 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6967
6994
|
i,
|
6968
6995
|
currentScore,
|
6969
6996
|
validFormatFound,
|
6970
|
-
bestFormatIsValid = false
|
6997
|
+
bestFormatIsValid = false,
|
6998
|
+
configfLen = config._f.length;
|
6971
6999
|
|
6972
|
-
if (
|
7000
|
+
if (configfLen === 0) {
|
6973
7001
|
getParsingFlags(config).invalidFormat = true;
|
6974
7002
|
config._d = new Date(NaN);
|
6975
7003
|
return;
|
6976
7004
|
}
|
6977
7005
|
|
6978
|
-
for (i = 0; i <
|
7006
|
+
for (i = 0; i < configfLen; i++) {
|
6979
7007
|
currentScore = 0;
|
6980
7008
|
validFormatFound = false;
|
6981
7009
|
tempConfig = copyConfig({}, config);
|
@@ -7216,7 +7244,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7216
7244
|
function isDurationValid(m) {
|
7217
7245
|
var key,
|
7218
7246
|
unitHasDecimal = false,
|
7219
|
-
i
|
7247
|
+
i,
|
7248
|
+
orderLen = ordering.length;
|
7220
7249
|
for (key in m) {
|
7221
7250
|
if (
|
7222
7251
|
hasOwnProp(m, key) &&
|
@@ -7229,7 +7258,7 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7229
7258
|
}
|
7230
7259
|
}
|
7231
7260
|
|
7232
|
-
for (i = 0; i <
|
7261
|
+
for (i = 0; i < orderLen; ++i) {
|
7233
7262
|
if (m[ordering[i]]) {
|
7234
7263
|
if (unitHasDecimal) {
|
7235
7264
|
return false; // only allow non-integers for smallest unit
|
@@ -7554,7 +7583,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7554
7583
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
7555
7584
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
7556
7585
|
// and further modified to allow for strings containing both week and day
|
7557
|
-
isoRegex =
|
7586
|
+
isoRegex =
|
7587
|
+
/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
7558
7588
|
|
7559
7589
|
function createDuration(input, key) {
|
7560
7590
|
var duration = input,
|
@@ -7775,9 +7805,10 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7775
7805
|
'ms',
|
7776
7806
|
],
|
7777
7807
|
i,
|
7778
|
-
property
|
7808
|
+
property,
|
7809
|
+
propertyLen = properties.length;
|
7779
7810
|
|
7780
|
-
for (i = 0; i <
|
7811
|
+
for (i = 0; i < propertyLen; i += 1) {
|
7781
7812
|
property = properties[i];
|
7782
7813
|
propertyTest = propertyTest || hasOwnProp(input, property);
|
7783
7814
|
}
|
@@ -8400,19 +8431,17 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
8400
8431
|
addRegexToken('NNNN', matchEraName);
|
8401
8432
|
addRegexToken('NNNNN', matchEraNarrow);
|
8402
8433
|
|
8403
|
-
addParseToken(
|
8404
|
-
|
8405
|
-
array,
|
8406
|
-
|
8407
|
-
|
8408
|
-
|
8409
|
-
|
8410
|
-
|
8411
|
-
|
8412
|
-
} else {
|
8413
|
-
getParsingFlags(config).invalidEra = input;
|
8434
|
+
addParseToken(
|
8435
|
+
['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
|
8436
|
+
function (input, array, config, token) {
|
8437
|
+
var era = config._locale.erasParse(input, token, config._strict);
|
8438
|
+
if (era) {
|
8439
|
+
getParsingFlags(config).era = era;
|
8440
|
+
} else {
|
8441
|
+
getParsingFlags(config).invalidEra = input;
|
8442
|
+
}
|
8414
8443
|
}
|
8415
|
-
|
8444
|
+
);
|
8416
8445
|
|
8417
8446
|
addRegexToken('y', matchUnsigned);
|
8418
8447
|
addRegexToken('yy', matchUnsigned);
|
@@ -8704,14 +8733,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
8704
8733
|
addRegexToken('GGGGG', match1to6, match6);
|
8705
8734
|
addRegexToken('ggggg', match1to6, match6);
|
8706
8735
|
|
8707
|
-
addWeekParseToken(
|
8708
|
-
|
8709
|
-
week,
|
8710
|
-
|
8711
|
-
|
8712
|
-
)
|
8713
|
-
week[token.substr(0, 2)] = toInt(input);
|
8714
|
-
});
|
8736
|
+
addWeekParseToken(
|
8737
|
+
['gggg', 'ggggg', 'GGGG', 'GGGGG'],
|
8738
|
+
function (input, week, config, token) {
|
8739
|
+
week[token.substr(0, 2)] = toInt(input);
|
8740
|
+
}
|
8741
|
+
);
|
8715
8742
|
|
8716
8743
|
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
8717
8744
|
week[token] = hooks.parseTwoDigitYear(input);
|
@@ -9734,7 +9761,7 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
9734
9761
|
|
9735
9762
|
//! moment.js
|
9736
9763
|
|
9737
|
-
hooks.version = '2.29.
|
9764
|
+
hooks.version = '2.29.3';
|
9738
9765
|
|
9739
9766
|
setHookCallback(createLocal);
|
9740
9767
|
|