ui-kit-ck-consultant 0.5.211 → 0.5.214
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 +108 -89
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +108 -89
- 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
|
|
@@ -281,6 +279,7 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
|
|
281
279
|
}, "*") : '') : '', /*#__PURE__*/React__default.createElement("div", {
|
282
280
|
className: style$2.form_input_container_icon
|
283
281
|
}, /*#__PURE__*/React__default.createElement("div", null, this.props.children), /*#__PURE__*/React__default.createElement("input", {
|
282
|
+
style: this.props.styleInput,
|
284
283
|
className: style$2.form_input_icon,
|
285
284
|
type: this.props.type,
|
286
285
|
placeholder: this.props.placeholder,
|
@@ -304,6 +303,7 @@ var FormInput = /*#__PURE__*/function (_React$Component) {
|
|
304
303
|
}, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
|
305
304
|
className: "red"
|
306
305
|
}, "*") : '') : '', /*#__PURE__*/React__default.createElement("input", {
|
306
|
+
style: this.props.styleInput,
|
307
307
|
className: style$2.form_input,
|
308
308
|
type: this.props.type,
|
309
309
|
placeholder: this.props.placeholder,
|
@@ -389,9 +389,10 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
|
|
389
389
|
}, this.props.title, ' ', this.props.required ? /*#__PURE__*/React__default.createElement("span", {
|
390
390
|
className: "red"
|
391
391
|
}, "*") : '') : '', this.props.ignore !== true ? /*#__PURE__*/React__default.createElement("select", {
|
392
|
+
style: this.props.styleInput,
|
392
393
|
className: style$5.form_select,
|
393
394
|
onChange: this.props.onChange,
|
394
|
-
value: this.props.value ? this.props.value :
|
395
|
+
value: this.props.value ? this.props.value : 'DEFAULT',
|
395
396
|
name: this.props.name,
|
396
397
|
required: this.props.required,
|
397
398
|
disabled: this.props.disabled,
|
@@ -406,9 +407,10 @@ var FormSelect = /*#__PURE__*/function (_React$Component) {
|
|
406
407
|
disabled: element.disabled ? element.disabled : false
|
407
408
|
}, element.text);
|
408
409
|
}) : '') : /*#__PURE__*/React__default.createElement("select", {
|
410
|
+
style: this.props.styleInput,
|
409
411
|
className: style$5.form_select,
|
410
412
|
onChange: this.props.onChange,
|
411
|
-
value: this.props.value ? this.props.value :
|
413
|
+
value: this.props.value ? this.props.value : 'DEFAULT',
|
412
414
|
name: this.props.name,
|
413
415
|
required: this.props.required,
|
414
416
|
disabled: this.props.disabled
|
@@ -3090,7 +3092,7 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3090
3092
|
|
3091
3093
|
reader.readAsDataURL(file);
|
3092
3094
|
} else {
|
3093
|
-
alert(
|
3095
|
+
alert("Fichier trop volumineux - Taille maxium " + _this.props.maxFileSize + "Mo");
|
3094
3096
|
_this.currentFile += 1;
|
3095
3097
|
|
3096
3098
|
_this.nextFile(files);
|
@@ -3188,7 +3190,7 @@ var DropzoneMultiple = /*#__PURE__*/function (_React$Component) {
|
|
3188
3190
|
className: classNames$1(style$o.dropzone_multiple_items)
|
3189
3191
|
}), !_this2.state.files.length ? /*#__PURE__*/React__default.createElement("span", {
|
3190
3192
|
className: classNames$1(style$o.background_text)
|
3191
|
-
}, "Glisser et d\xE9poser vos fichiers ou cliquer pour en s\xE9lectionner...", ' ', _this2.props.extensions ? "Formats accept\xE9s : " + _this2.props.extensions.join(', ') : '') : null, /*#__PURE__*/React__default.createElement("input", getInputProps()), _this2.state.files.map(function (file, idx) {
|
3193
|
+
}, "Glisser et d\xE9poser vos fichiers ou cliquer pour en s\xE9lectionner...", ' ', _this2.props.extensions ? "Formats accept\xE9s : " + _this2.props.extensions.join(', ') : '', "$", _this2.props.maxFileSize ? " - Taille maximale " + _this2.props.maxFileSize + "Mo" : '') : null, /*#__PURE__*/React__default.createElement("input", getInputProps()), _this2.state.files.map(function (file, idx) {
|
3192
3194
|
return _this2.getFileComponent(idx);
|
3193
3195
|
})));
|
3194
3196
|
});
|
@@ -3636,8 +3638,10 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
3636
3638
|
className: classNames$1(style$t.space)
|
3637
3639
|
}) : /*#__PURE__*/React__default.createElement(Fragment, null), this.props.icon ? this.props.icon : /*#__PURE__*/React__default.createElement(Fragment, null)), /*#__PURE__*/React__default.createElement("div", {
|
3638
3640
|
className: dropdownMenuClass
|
3639
|
-
}, this.props.data.map(function (element) {
|
3640
|
-
return /*#__PURE__*/React__default.createElement("span",
|
3641
|
+
}, this.props.data.map(function (element, key) {
|
3642
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
3643
|
+
key: key
|
3644
|
+
}, element.title);
|
3641
3645
|
})));
|
3642
3646
|
};
|
3643
3647
|
|
@@ -4202,8 +4206,9 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4202
4206
|
|
4203
4207
|
function map(arr, fn) {
|
4204
4208
|
var res = [],
|
4205
|
-
i
|
4206
|
-
|
4209
|
+
i,
|
4210
|
+
arrLen = arr.length;
|
4211
|
+
for (i = 0; i < arrLen; ++i) {
|
4207
4212
|
res.push(fn(arr[i], i));
|
4208
4213
|
}
|
4209
4214
|
return res;
|
@@ -4332,7 +4337,10 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4332
4337
|
updateInProgress = false;
|
4333
4338
|
|
4334
4339
|
function copyConfig(to, from) {
|
4335
|
-
var i,
|
4340
|
+
var i,
|
4341
|
+
prop,
|
4342
|
+
val,
|
4343
|
+
momentPropertiesLen = momentProperties.length;
|
4336
4344
|
|
4337
4345
|
if (!isUndefined(from._isAMomentObject)) {
|
4338
4346
|
to._isAMomentObject = from._isAMomentObject;
|
@@ -4365,8 +4373,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4365
4373
|
to._locale = from._locale;
|
4366
4374
|
}
|
4367
4375
|
|
4368
|
-
if (
|
4369
|
-
for (i = 0; i <
|
4376
|
+
if (momentPropertiesLen > 0) {
|
4377
|
+
for (i = 0; i < momentPropertiesLen; i++) {
|
4370
4378
|
prop = momentProperties[i];
|
4371
4379
|
val = from[prop];
|
4372
4380
|
if (!isUndefined(val)) {
|
@@ -4421,8 +4429,9 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4421
4429
|
var args = [],
|
4422
4430
|
arg,
|
4423
4431
|
i,
|
4424
|
-
key
|
4425
|
-
|
4432
|
+
key,
|
4433
|
+
argLen = arguments.length;
|
4434
|
+
for (i = 0; i < argLen; i++) {
|
4426
4435
|
arg = '';
|
4427
4436
|
if (typeof arguments[i] === 'object') {
|
4428
4437
|
arg += '\n[' + i + '] ';
|
@@ -4572,7 +4581,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4572
4581
|
);
|
4573
4582
|
}
|
4574
4583
|
|
4575
|
-
var formattingTokens =
|
4584
|
+
var formattingTokens =
|
4585
|
+
/(\[[^\[]*\])|(\\)?([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,
|
4576
4586
|
localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
|
4577
4587
|
formatFunctions = {},
|
4578
4588
|
formatTokenFunctions = {};
|
@@ -4876,8 +4886,9 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4876
4886
|
if (typeof units === 'object') {
|
4877
4887
|
units = normalizeObjectUnits(units);
|
4878
4888
|
var prioritized = getPrioritizedUnits(units),
|
4879
|
-
i
|
4880
|
-
|
4889
|
+
i,
|
4890
|
+
prioritizedLen = prioritized.length;
|
4891
|
+
for (i = 0; i < prioritizedLen; i++) {
|
4881
4892
|
this[prioritized[i].unit](units[prioritized[i].unit]);
|
4882
4893
|
}
|
4883
4894
|
} else {
|
@@ -4907,7 +4918,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4907
4918
|
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
|
4908
4919
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
4909
4920
|
// includes scottish gaelic two word and hyphenated months
|
4910
|
-
matchWord =
|
4921
|
+
matchWord =
|
4922
|
+
/[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,
|
4911
4923
|
regexes;
|
4912
4924
|
|
4913
4925
|
regexes = {};
|
@@ -4933,15 +4945,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4933
4945
|
return regexEscape(
|
4934
4946
|
s
|
4935
4947
|
.replace('\\', '')
|
4936
|
-
.replace(
|
4937
|
-
|
4938
|
-
p1,
|
4939
|
-
|
4940
|
-
|
4941
|
-
|
4942
|
-
) {
|
4943
|
-
return p1 || p2 || p3 || p4;
|
4944
|
-
})
|
4948
|
+
.replace(
|
4949
|
+
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
4950
|
+
function (matched, p1, p2, p3, p4) {
|
4951
|
+
return p1 || p2 || p3 || p4;
|
4952
|
+
}
|
4953
|
+
)
|
4945
4954
|
);
|
4946
4955
|
}
|
4947
4956
|
|
@@ -4953,7 +4962,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4953
4962
|
|
4954
4963
|
function addParseToken(token, callback) {
|
4955
4964
|
var i,
|
4956
|
-
func = callback
|
4965
|
+
func = callback,
|
4966
|
+
tokenLen;
|
4957
4967
|
if (typeof token === 'string') {
|
4958
4968
|
token = [token];
|
4959
4969
|
}
|
@@ -4962,7 +4972,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
4962
4972
|
array[callback] = toInt(input);
|
4963
4973
|
};
|
4964
4974
|
}
|
4965
|
-
|
4975
|
+
tokenLen = token.length;
|
4976
|
+
for (i = 0; i < tokenLen; i++) {
|
4966
4977
|
tokens[token[i]] = func;
|
4967
4978
|
}
|
4968
4979
|
}
|
@@ -5073,12 +5084,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
5073
5084
|
|
5074
5085
|
// LOCALES
|
5075
5086
|
|
5076
|
-
var defaultLocaleMonths =
|
5077
|
-
'
|
5078
|
-
|
5079
|
-
|
5080
|
-
|
5081
|
-
|
5087
|
+
var defaultLocaleMonths =
|
5088
|
+
'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
5089
|
+
'_'
|
5090
|
+
),
|
5091
|
+
defaultLocaleMonthsShort =
|
5092
|
+
'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
5082
5093
|
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
5083
5094
|
defaultMonthsShortRegex = matchWord,
|
5084
5095
|
defaultMonthsRegex = matchWord;
|
@@ -5520,14 +5531,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
5520
5531
|
addRegexToken('W', match1to2);
|
5521
5532
|
addRegexToken('WW', match1to2, match2);
|
5522
5533
|
|
5523
|
-
addWeekParseToken(
|
5524
|
-
|
5525
|
-
week,
|
5526
|
-
|
5527
|
-
|
5528
|
-
)
|
5529
|
-
week[token.substr(0, 1)] = toInt(input);
|
5530
|
-
});
|
5534
|
+
addWeekParseToken(
|
5535
|
+
['w', 'ww', 'W', 'WW'],
|
5536
|
+
function (input, week, config, token) {
|
5537
|
+
week[token.substr(0, 1)] = toInt(input);
|
5538
|
+
}
|
5539
|
+
);
|
5531
5540
|
|
5532
5541
|
// HELPERS
|
5533
5542
|
|
@@ -5652,9 +5661,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
5652
5661
|
return ws.slice(n, 7).concat(ws.slice(0, n));
|
5653
5662
|
}
|
5654
5663
|
|
5655
|
-
var defaultLocaleWeekdays =
|
5656
|
-
'_'
|
5657
|
-
),
|
5664
|
+
var defaultLocaleWeekdays =
|
5665
|
+
'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
5658
5666
|
defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
5659
5667
|
defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
5660
5668
|
defaultWeekdaysRegex = matchWord,
|
@@ -6202,6 +6210,11 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6202
6210
|
return globalLocale;
|
6203
6211
|
}
|
6204
6212
|
|
6213
|
+
function isLocaleNameSane(name) {
|
6214
|
+
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
6215
|
+
return name.match('^[^/\\\\]*$') != null;
|
6216
|
+
}
|
6217
|
+
|
6205
6218
|
function loadLocale(name) {
|
6206
6219
|
var oldLocale = null,
|
6207
6220
|
aliasedRequire;
|
@@ -6210,7 +6223,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6210
6223
|
locales[name] === undefined &&
|
6211
6224
|
'object' !== 'undefined' &&
|
6212
6225
|
module &&
|
6213
|
-
module.exports
|
6226
|
+
module.exports &&
|
6227
|
+
isLocaleNameSane(name)
|
6214
6228
|
) {
|
6215
6229
|
try {
|
6216
6230
|
oldLocale = globalLocale._abbr;
|
@@ -6427,8 +6441,10 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6427
6441
|
|
6428
6442
|
// iso 8601 regex
|
6429
6443
|
// 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)
|
6430
|
-
var extendedIsoRegex =
|
6431
|
-
|
6444
|
+
var extendedIsoRegex =
|
6445
|
+
/^\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)?)?$/,
|
6446
|
+
basicIsoRegex =
|
6447
|
+
/^\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)?)?$/,
|
6432
6448
|
tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
|
6433
6449
|
isoDates = [
|
6434
6450
|
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
|
@@ -6459,7 +6475,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6459
6475
|
],
|
6460
6476
|
aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
|
6461
6477
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
6462
|
-
rfc2822 =
|
6478
|
+
rfc2822 =
|
6479
|
+
/^(?:(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}))$/,
|
6463
6480
|
obsOffsets = {
|
6464
6481
|
UT: 0,
|
6465
6482
|
GMT: 0,
|
@@ -6482,12 +6499,13 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6482
6499
|
allowTime,
|
6483
6500
|
dateFormat,
|
6484
6501
|
timeFormat,
|
6485
|
-
tzFormat
|
6502
|
+
tzFormat,
|
6503
|
+
isoDatesLen = isoDates.length,
|
6504
|
+
isoTimesLen = isoTimes.length;
|
6486
6505
|
|
6487
6506
|
if (match) {
|
6488
6507
|
getParsingFlags(config).iso = true;
|
6489
|
-
|
6490
|
-
for (i = 0, l = isoDates.length; i < l; i++) {
|
6508
|
+
for (i = 0, l = isoDatesLen; i < l; i++) {
|
6491
6509
|
if (isoDates[i][1].exec(match[1])) {
|
6492
6510
|
dateFormat = isoDates[i][0];
|
6493
6511
|
allowTime = isoDates[i][2] !== false;
|
@@ -6499,7 +6517,7 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6499
6517
|
return;
|
6500
6518
|
}
|
6501
6519
|
if (match[3]) {
|
6502
|
-
for (i = 0, l =
|
6520
|
+
for (i = 0, l = isoTimesLen; i < l; i++) {
|
6503
6521
|
if (isoTimes[i][1].exec(match[3])) {
|
6504
6522
|
// match[2] should be 'T' or space
|
6505
6523
|
timeFormat = (match[2] || ' ') + isoTimes[i][0];
|
@@ -6879,12 +6897,13 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6879
6897
|
skipped,
|
6880
6898
|
stringLength = string.length,
|
6881
6899
|
totalParsedInputLength = 0,
|
6882
|
-
era
|
6900
|
+
era,
|
6901
|
+
tokenLen;
|
6883
6902
|
|
6884
6903
|
tokens =
|
6885
6904
|
expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
6886
|
-
|
6887
|
-
for (i = 0; i <
|
6905
|
+
tokenLen = tokens.length;
|
6906
|
+
for (i = 0; i < tokenLen; i++) {
|
6888
6907
|
token = tokens[i];
|
6889
6908
|
parsedInput = (string.match(getParseRegexForToken(token, config)) ||
|
6890
6909
|
[])[0];
|
@@ -6979,15 +6998,16 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
6979
6998
|
i,
|
6980
6999
|
currentScore,
|
6981
7000
|
validFormatFound,
|
6982
|
-
bestFormatIsValid = false
|
7001
|
+
bestFormatIsValid = false,
|
7002
|
+
configfLen = config._f.length;
|
6983
7003
|
|
6984
|
-
if (
|
7004
|
+
if (configfLen === 0) {
|
6985
7005
|
getParsingFlags(config).invalidFormat = true;
|
6986
7006
|
config._d = new Date(NaN);
|
6987
7007
|
return;
|
6988
7008
|
}
|
6989
7009
|
|
6990
|
-
for (i = 0; i <
|
7010
|
+
for (i = 0; i < configfLen; i++) {
|
6991
7011
|
currentScore = 0;
|
6992
7012
|
validFormatFound = false;
|
6993
7013
|
tempConfig = copyConfig({}, config);
|
@@ -7228,7 +7248,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7228
7248
|
function isDurationValid(m) {
|
7229
7249
|
var key,
|
7230
7250
|
unitHasDecimal = false,
|
7231
|
-
i
|
7251
|
+
i,
|
7252
|
+
orderLen = ordering.length;
|
7232
7253
|
for (key in m) {
|
7233
7254
|
if (
|
7234
7255
|
hasOwnProp(m, key) &&
|
@@ -7241,7 +7262,7 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7241
7262
|
}
|
7242
7263
|
}
|
7243
7264
|
|
7244
|
-
for (i = 0; i <
|
7265
|
+
for (i = 0; i < orderLen; ++i) {
|
7245
7266
|
if (m[ordering[i]]) {
|
7246
7267
|
if (unitHasDecimal) {
|
7247
7268
|
return false; // only allow non-integers for smallest unit
|
@@ -7566,7 +7587,8 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7566
7587
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
7567
7588
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
7568
7589
|
// and further modified to allow for strings containing both week and day
|
7569
|
-
isoRegex =
|
7590
|
+
isoRegex =
|
7591
|
+
/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
7570
7592
|
|
7571
7593
|
function createDuration(input, key) {
|
7572
7594
|
var duration = input,
|
@@ -7787,9 +7809,10 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
7787
7809
|
'ms',
|
7788
7810
|
],
|
7789
7811
|
i,
|
7790
|
-
property
|
7812
|
+
property,
|
7813
|
+
propertyLen = properties.length;
|
7791
7814
|
|
7792
|
-
for (i = 0; i <
|
7815
|
+
for (i = 0; i < propertyLen; i += 1) {
|
7793
7816
|
property = properties[i];
|
7794
7817
|
propertyTest = propertyTest || hasOwnProp(input, property);
|
7795
7818
|
}
|
@@ -8412,19 +8435,17 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
8412
8435
|
addRegexToken('NNNN', matchEraName);
|
8413
8436
|
addRegexToken('NNNNN', matchEraNarrow);
|
8414
8437
|
|
8415
|
-
addParseToken(
|
8416
|
-
|
8417
|
-
array,
|
8418
|
-
|
8419
|
-
|
8420
|
-
|
8421
|
-
|
8422
|
-
|
8423
|
-
|
8424
|
-
} else {
|
8425
|
-
getParsingFlags(config).invalidEra = input;
|
8438
|
+
addParseToken(
|
8439
|
+
['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
|
8440
|
+
function (input, array, config, token) {
|
8441
|
+
var era = config._locale.erasParse(input, token, config._strict);
|
8442
|
+
if (era) {
|
8443
|
+
getParsingFlags(config).era = era;
|
8444
|
+
} else {
|
8445
|
+
getParsingFlags(config).invalidEra = input;
|
8446
|
+
}
|
8426
8447
|
}
|
8427
|
-
|
8448
|
+
);
|
8428
8449
|
|
8429
8450
|
addRegexToken('y', matchUnsigned);
|
8430
8451
|
addRegexToken('yy', matchUnsigned);
|
@@ -8716,14 +8737,12 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
8716
8737
|
addRegexToken('GGGGG', match1to6, match6);
|
8717
8738
|
addRegexToken('ggggg', match1to6, match6);
|
8718
8739
|
|
8719
|
-
addWeekParseToken(
|
8720
|
-
|
8721
|
-
week,
|
8722
|
-
|
8723
|
-
|
8724
|
-
)
|
8725
|
-
week[token.substr(0, 2)] = toInt(input);
|
8726
|
-
});
|
8740
|
+
addWeekParseToken(
|
8741
|
+
['gggg', 'ggggg', 'GGGG', 'GGGGG'],
|
8742
|
+
function (input, week, config, token) {
|
8743
|
+
week[token.substr(0, 2)] = toInt(input);
|
8744
|
+
}
|
8745
|
+
);
|
8727
8746
|
|
8728
8747
|
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
8729
8748
|
week[token] = hooks.parseTwoDigitYear(input);
|
@@ -9746,7 +9765,7 @@ var moment = createCommonjsModule(function (module, exports) {
|
|
9746
9765
|
|
9747
9766
|
//! moment.js
|
9748
9767
|
|
9749
|
-
hooks.version = '2.29.
|
9768
|
+
hooks.version = '2.29.3';
|
9750
9769
|
|
9751
9770
|
setHookCallback(createLocal);
|
9752
9771
|
|