@limetech/lime-elements 35.0.0-next.36 → 35.0.0-next.37
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/cjs/{dateFormatter-26eac73a.js → dateFormatter-34b77ead.js} +37 -31
- package/dist/cjs/limel-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/{moment-d287c0ed.js → moment-5c6581b7.js} +94 -79
- package/dist/esm/{dateFormatter-c9b41548.js → dateFormatter-ed618478.js} +37 -31
- package/dist/esm/limel-date-picker.entry.js +2 -2
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/{moment-8dadd938.js → moment-29c213b7.js} +94 -79
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-2ff40ce6.js +3 -0
- package/dist/lime-elements/{p-65752bdd.entry.js → p-5b7a8c61.entry.js} +1 -1
- package/dist/lime-elements/{p-d4cc95c7.entry.js → p-716a6acd.entry.js} +1 -1
- package/dist/lime-elements/{p-e1928c0e.js → p-72e03943.js} +1 -1
- package/dist/lime-elements/{p-2a5ae357.entry.js → p-eae8c615.entry.js} +1 -1
- package/dist/types/components/form/fields/array-field.d.ts +0 -1
- package/dist/types/components/form/fields/object-field.d.ts +2 -2
- package/package.json +13 -13
- package/dist/lime-elements/p-a397bab7.js +0 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
|
|
4
|
-
const moment = require('./moment-
|
|
4
|
+
const moment = require('./moment-5c6581b7.js');
|
|
5
5
|
|
|
6
6
|
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
7
7
|
(function (global, factory) {
|
|
@@ -70,9 +70,10 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
70
70
|
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
71
71
|
//! moment.js locale configuration
|
|
72
72
|
|
|
73
|
-
var numbersPast =
|
|
74
|
-
' '
|
|
75
|
-
|
|
73
|
+
var numbersPast =
|
|
74
|
+
'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
|
|
75
|
+
' '
|
|
76
|
+
),
|
|
76
77
|
numbersFuture = [
|
|
77
78
|
'nolla',
|
|
78
79
|
'yhden',
|
|
@@ -134,12 +135,14 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
134
135
|
months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
|
|
135
136
|
'_'
|
|
136
137
|
),
|
|
137
|
-
monthsShort:
|
|
138
|
-
'
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
138
|
+
monthsShort:
|
|
139
|
+
'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
|
|
140
|
+
'_'
|
|
141
|
+
),
|
|
142
|
+
weekdays:
|
|
143
|
+
'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
|
|
144
|
+
'_'
|
|
145
|
+
),
|
|
143
146
|
weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
|
|
144
147
|
weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
|
|
145
148
|
longDateFormat: {
|
|
@@ -202,9 +205,8 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
202
205
|
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
|
|
203
206
|
'_'
|
|
204
207
|
),
|
|
205
|
-
monthsShort:
|
|
206
|
-
'_'
|
|
207
|
-
),
|
|
208
|
+
monthsShort:
|
|
209
|
+
'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
|
208
210
|
monthsParseExact: true,
|
|
209
211
|
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
|
210
212
|
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
|
@@ -339,9 +341,12 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
339
341
|
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
340
342
|
//! moment.js locale configuration
|
|
341
343
|
|
|
342
|
-
var monthsStrictRegex =
|
|
343
|
-
|
|
344
|
-
|
|
344
|
+
var monthsStrictRegex =
|
|
345
|
+
/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
|
|
346
|
+
monthsShortStrictRegex =
|
|
347
|
+
/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,
|
|
348
|
+
monthsRegex =
|
|
349
|
+
/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,
|
|
345
350
|
monthsParse = [
|
|
346
351
|
/^janv/i,
|
|
347
352
|
/^févr/i,
|
|
@@ -361,9 +366,10 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
361
366
|
months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split(
|
|
362
367
|
'_'
|
|
363
368
|
),
|
|
364
|
-
monthsShort:
|
|
365
|
-
'
|
|
366
|
-
|
|
369
|
+
monthsShort:
|
|
370
|
+
'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split(
|
|
371
|
+
'_'
|
|
372
|
+
),
|
|
367
373
|
monthsRegex: monthsRegex,
|
|
368
374
|
monthsShortRegex: monthsRegex,
|
|
369
375
|
monthsStrictRegex: monthsStrictRegex,
|
|
@@ -450,12 +456,10 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
450
456
|
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
451
457
|
//! moment.js locale configuration
|
|
452
458
|
|
|
453
|
-
var monthsShortWithDots =
|
|
454
|
-
'_'
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
'_'
|
|
458
|
-
),
|
|
459
|
+
var monthsShortWithDots =
|
|
460
|
+
'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
|
|
461
|
+
monthsShortWithoutDots =
|
|
462
|
+
'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
|
459
463
|
monthsParse = [
|
|
460
464
|
/^jan/i,
|
|
461
465
|
/^feb/i,
|
|
@@ -470,7 +474,8 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
470
474
|
/^nov/i,
|
|
471
475
|
/^dec/i,
|
|
472
476
|
],
|
|
473
|
-
monthsRegex =
|
|
477
|
+
monthsRegex =
|
|
478
|
+
/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
|
|
474
479
|
|
|
475
480
|
var nl = moment.defineLocale('nl', {
|
|
476
481
|
months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split(
|
|
@@ -488,16 +493,17 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
488
493
|
|
|
489
494
|
monthsRegex: monthsRegex,
|
|
490
495
|
monthsShortRegex: monthsRegex,
|
|
491
|
-
monthsStrictRegex:
|
|
492
|
-
|
|
496
|
+
monthsStrictRegex:
|
|
497
|
+
/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,
|
|
498
|
+
monthsShortStrictRegex:
|
|
499
|
+
/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
|
|
493
500
|
|
|
494
501
|
monthsParse: monthsParse,
|
|
495
502
|
longMonthsParse: monthsParse,
|
|
496
503
|
shortMonthsParse: monthsParse,
|
|
497
504
|
|
|
498
|
-
weekdays:
|
|
499
|
-
'_'
|
|
500
|
-
),
|
|
505
|
+
weekdays:
|
|
506
|
+
'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
|
|
501
507
|
weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'),
|
|
502
508
|
weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'),
|
|
503
509
|
weekdaysParseExact: true,
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-2a28697b.js');
|
|
6
6
|
const randomString = require('./random-string-4c3b7f1c.js');
|
|
7
7
|
const device = require('./device-c5841113.js');
|
|
8
|
-
const dateFormatter = require('./dateFormatter-
|
|
8
|
+
const dateFormatter = require('./dateFormatter-34b77ead.js');
|
|
9
9
|
const component = require('./component-ae3bfacf.js');
|
|
10
10
|
require('./_commonjsHelpers-0c557e26.js');
|
|
11
|
-
require('./moment-
|
|
11
|
+
require('./moment-5c6581b7.js');
|
|
12
12
|
require('./component-67144c1c.js');
|
|
13
13
|
require('./component-cf490570.js');
|
|
14
14
|
require('./ponyfill-98ca4766.js');
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-2a28697b.js');
|
|
6
6
|
const translations = require('./translations-5a8d7f6c.js');
|
|
7
7
|
const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
|
|
8
|
-
const dateFormatter = require('./dateFormatter-
|
|
9
|
-
const moment = require('./moment-
|
|
8
|
+
const dateFormatter = require('./dateFormatter-34b77ead.js');
|
|
9
|
+
const moment = require('./moment-5c6581b7.js');
|
|
10
10
|
const device = require('./device-c5841113.js');
|
|
11
11
|
const eq = require('./eq-9a943b00.js');
|
|
12
12
|
const isArrayLike$1 = require('./isArrayLike-ac53bdac.js');
|
|
@@ -12,7 +12,7 @@ const _assignValue$1 = require('./_assignValue-c9fc3712.js');
|
|
|
12
12
|
const isObject$3 = require('./isObject-e28b7997.js');
|
|
13
13
|
const isObjectLike$1 = require('./isObjectLike-3e3f0cba.js');
|
|
14
14
|
const _arrayIncludesWith$1 = require('./_arrayIncludesWith-36a6fafb.js');
|
|
15
|
-
const moment = require('./moment-
|
|
15
|
+
const moment = require('./moment-5c6581b7.js');
|
|
16
16
|
const multiple = require('./multiple-8fab83eb.js');
|
|
17
17
|
const randomString = require('./random-string-4c3b7f1c.js');
|
|
18
18
|
require('./eq-9a943b00.js');
|
|
@@ -72,8 +72,9 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
72
72
|
|
|
73
73
|
function map(arr, fn) {
|
|
74
74
|
var res = [],
|
|
75
|
-
i
|
|
76
|
-
|
|
75
|
+
i,
|
|
76
|
+
arrLen = arr.length;
|
|
77
|
+
for (i = 0; i < arrLen; ++i) {
|
|
77
78
|
res.push(fn(arr[i], i));
|
|
78
79
|
}
|
|
79
80
|
return res;
|
|
@@ -202,7 +203,10 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
202
203
|
updateInProgress = false;
|
|
203
204
|
|
|
204
205
|
function copyConfig(to, from) {
|
|
205
|
-
var i,
|
|
206
|
+
var i,
|
|
207
|
+
prop,
|
|
208
|
+
val,
|
|
209
|
+
momentPropertiesLen = momentProperties.length;
|
|
206
210
|
|
|
207
211
|
if (!isUndefined(from._isAMomentObject)) {
|
|
208
212
|
to._isAMomentObject = from._isAMomentObject;
|
|
@@ -235,8 +239,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
235
239
|
to._locale = from._locale;
|
|
236
240
|
}
|
|
237
241
|
|
|
238
|
-
if (
|
|
239
|
-
for (i = 0; i <
|
|
242
|
+
if (momentPropertiesLen > 0) {
|
|
243
|
+
for (i = 0; i < momentPropertiesLen; i++) {
|
|
240
244
|
prop = momentProperties[i];
|
|
241
245
|
val = from[prop];
|
|
242
246
|
if (!isUndefined(val)) {
|
|
@@ -291,8 +295,9 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
291
295
|
var args = [],
|
|
292
296
|
arg,
|
|
293
297
|
i,
|
|
294
|
-
key
|
|
295
|
-
|
|
298
|
+
key,
|
|
299
|
+
argLen = arguments.length;
|
|
300
|
+
for (i = 0; i < argLen; i++) {
|
|
296
301
|
arg = '';
|
|
297
302
|
if (typeof arguments[i] === 'object') {
|
|
298
303
|
arg += '\n[' + i + '] ';
|
|
@@ -442,7 +447,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
442
447
|
);
|
|
443
448
|
}
|
|
444
449
|
|
|
445
|
-
var formattingTokens =
|
|
450
|
+
var formattingTokens =
|
|
451
|
+
/(\[[^\[]*\])|(\\)?([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,
|
|
446
452
|
localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
|
|
447
453
|
formatFunctions = {},
|
|
448
454
|
formatTokenFunctions = {};
|
|
@@ -746,8 +752,9 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
746
752
|
if (typeof units === 'object') {
|
|
747
753
|
units = normalizeObjectUnits(units);
|
|
748
754
|
var prioritized = getPrioritizedUnits(units),
|
|
749
|
-
i
|
|
750
|
-
|
|
755
|
+
i,
|
|
756
|
+
prioritizedLen = prioritized.length;
|
|
757
|
+
for (i = 0; i < prioritizedLen; i++) {
|
|
751
758
|
this[prioritized[i].unit](units[prioritized[i].unit]);
|
|
752
759
|
}
|
|
753
760
|
} else {
|
|
@@ -777,7 +784,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
777
784
|
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
|
|
778
785
|
// any word (or two) characters or numbers including two/three word month in arabic.
|
|
779
786
|
// includes scottish gaelic two word and hyphenated months
|
|
780
|
-
matchWord =
|
|
787
|
+
matchWord =
|
|
788
|
+
/[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,
|
|
781
789
|
regexes;
|
|
782
790
|
|
|
783
791
|
regexes = {};
|
|
@@ -803,15 +811,12 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
803
811
|
return regexEscape(
|
|
804
812
|
s
|
|
805
813
|
.replace('\\', '')
|
|
806
|
-
.replace(
|
|
807
|
-
|
|
808
|
-
p1,
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
) {
|
|
813
|
-
return p1 || p2 || p3 || p4;
|
|
814
|
-
})
|
|
814
|
+
.replace(
|
|
815
|
+
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
|
816
|
+
function (matched, p1, p2, p3, p4) {
|
|
817
|
+
return p1 || p2 || p3 || p4;
|
|
818
|
+
}
|
|
819
|
+
)
|
|
815
820
|
);
|
|
816
821
|
}
|
|
817
822
|
|
|
@@ -823,7 +828,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
823
828
|
|
|
824
829
|
function addParseToken(token, callback) {
|
|
825
830
|
var i,
|
|
826
|
-
func = callback
|
|
831
|
+
func = callback,
|
|
832
|
+
tokenLen;
|
|
827
833
|
if (typeof token === 'string') {
|
|
828
834
|
token = [token];
|
|
829
835
|
}
|
|
@@ -832,7 +838,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
832
838
|
array[callback] = toInt(input);
|
|
833
839
|
};
|
|
834
840
|
}
|
|
835
|
-
|
|
841
|
+
tokenLen = token.length;
|
|
842
|
+
for (i = 0; i < tokenLen; i++) {
|
|
836
843
|
tokens[token[i]] = func;
|
|
837
844
|
}
|
|
838
845
|
}
|
|
@@ -943,12 +950,12 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
943
950
|
|
|
944
951
|
// LOCALES
|
|
945
952
|
|
|
946
|
-
var defaultLocaleMonths =
|
|
947
|
-
'
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
953
|
+
var defaultLocaleMonths =
|
|
954
|
+
'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
|
955
|
+
'_'
|
|
956
|
+
),
|
|
957
|
+
defaultLocaleMonthsShort =
|
|
958
|
+
'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
|
952
959
|
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
|
953
960
|
defaultMonthsShortRegex = matchWord,
|
|
954
961
|
defaultMonthsRegex = matchWord;
|
|
@@ -1390,14 +1397,12 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
1390
1397
|
addRegexToken('W', match1to2);
|
|
1391
1398
|
addRegexToken('WW', match1to2, match2);
|
|
1392
1399
|
|
|
1393
|
-
addWeekParseToken(
|
|
1394
|
-
|
|
1395
|
-
week,
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
)
|
|
1399
|
-
week[token.substr(0, 1)] = toInt(input);
|
|
1400
|
-
});
|
|
1400
|
+
addWeekParseToken(
|
|
1401
|
+
['w', 'ww', 'W', 'WW'],
|
|
1402
|
+
function (input, week, config, token) {
|
|
1403
|
+
week[token.substr(0, 1)] = toInt(input);
|
|
1404
|
+
}
|
|
1405
|
+
);
|
|
1401
1406
|
|
|
1402
1407
|
// HELPERS
|
|
1403
1408
|
|
|
@@ -1522,9 +1527,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
1522
1527
|
return ws.slice(n, 7).concat(ws.slice(0, n));
|
|
1523
1528
|
}
|
|
1524
1529
|
|
|
1525
|
-
var defaultLocaleWeekdays =
|
|
1526
|
-
'_'
|
|
1527
|
-
),
|
|
1530
|
+
var defaultLocaleWeekdays =
|
|
1531
|
+
'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
|
1528
1532
|
defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
|
1529
1533
|
defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
|
1530
1534
|
defaultWeekdaysRegex = matchWord,
|
|
@@ -2072,6 +2076,11 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2072
2076
|
return globalLocale;
|
|
2073
2077
|
}
|
|
2074
2078
|
|
|
2079
|
+
function isLocaleNameSane(name) {
|
|
2080
|
+
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
|
2081
|
+
return name.match('^[^/\\\\]*$') != null;
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2075
2084
|
function loadLocale(name) {
|
|
2076
2085
|
var oldLocale = null,
|
|
2077
2086
|
aliasedRequire;
|
|
@@ -2080,7 +2089,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2080
2089
|
locales[name] === undefined &&
|
|
2081
2090
|
'object' !== 'undefined' &&
|
|
2082
2091
|
module &&
|
|
2083
|
-
module.exports
|
|
2092
|
+
module.exports &&
|
|
2093
|
+
isLocaleNameSane(name)
|
|
2084
2094
|
) {
|
|
2085
2095
|
try {
|
|
2086
2096
|
oldLocale = globalLocale._abbr;
|
|
@@ -2297,8 +2307,10 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2297
2307
|
|
|
2298
2308
|
// iso 8601 regex
|
|
2299
2309
|
// 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)
|
|
2300
|
-
var extendedIsoRegex =
|
|
2301
|
-
|
|
2310
|
+
var extendedIsoRegex =
|
|
2311
|
+
/^\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)?)?$/,
|
|
2312
|
+
basicIsoRegex =
|
|
2313
|
+
/^\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)?)?$/,
|
|
2302
2314
|
tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
|
|
2303
2315
|
isoDates = [
|
|
2304
2316
|
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -2329,7 +2341,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2329
2341
|
],
|
|
2330
2342
|
aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
|
|
2331
2343
|
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
|
2332
|
-
rfc2822 =
|
|
2344
|
+
rfc2822 =
|
|
2345
|
+
/^(?:(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}))$/,
|
|
2333
2346
|
obsOffsets = {
|
|
2334
2347
|
UT: 0,
|
|
2335
2348
|
GMT: 0,
|
|
@@ -2352,12 +2365,13 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2352
2365
|
allowTime,
|
|
2353
2366
|
dateFormat,
|
|
2354
2367
|
timeFormat,
|
|
2355
|
-
tzFormat
|
|
2368
|
+
tzFormat,
|
|
2369
|
+
isoDatesLen = isoDates.length,
|
|
2370
|
+
isoTimesLen = isoTimes.length;
|
|
2356
2371
|
|
|
2357
2372
|
if (match) {
|
|
2358
2373
|
getParsingFlags(config).iso = true;
|
|
2359
|
-
|
|
2360
|
-
for (i = 0, l = isoDates.length; i < l; i++) {
|
|
2374
|
+
for (i = 0, l = isoDatesLen; i < l; i++) {
|
|
2361
2375
|
if (isoDates[i][1].exec(match[1])) {
|
|
2362
2376
|
dateFormat = isoDates[i][0];
|
|
2363
2377
|
allowTime = isoDates[i][2] !== false;
|
|
@@ -2369,7 +2383,7 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2369
2383
|
return;
|
|
2370
2384
|
}
|
|
2371
2385
|
if (match[3]) {
|
|
2372
|
-
for (i = 0, l =
|
|
2386
|
+
for (i = 0, l = isoTimesLen; i < l; i++) {
|
|
2373
2387
|
if (isoTimes[i][1].exec(match[3])) {
|
|
2374
2388
|
// match[2] should be 'T' or space
|
|
2375
2389
|
timeFormat = (match[2] || ' ') + isoTimes[i][0];
|
|
@@ -2749,12 +2763,13 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2749
2763
|
skipped,
|
|
2750
2764
|
stringLength = string.length,
|
|
2751
2765
|
totalParsedInputLength = 0,
|
|
2752
|
-
era
|
|
2766
|
+
era,
|
|
2767
|
+
tokenLen;
|
|
2753
2768
|
|
|
2754
2769
|
tokens =
|
|
2755
2770
|
expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
|
2756
|
-
|
|
2757
|
-
for (i = 0; i <
|
|
2771
|
+
tokenLen = tokens.length;
|
|
2772
|
+
for (i = 0; i < tokenLen; i++) {
|
|
2758
2773
|
token = tokens[i];
|
|
2759
2774
|
parsedInput = (string.match(getParseRegexForToken(token, config)) ||
|
|
2760
2775
|
[])[0];
|
|
@@ -2849,15 +2864,16 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
2849
2864
|
i,
|
|
2850
2865
|
currentScore,
|
|
2851
2866
|
validFormatFound,
|
|
2852
|
-
bestFormatIsValid = false
|
|
2867
|
+
bestFormatIsValid = false,
|
|
2868
|
+
configfLen = config._f.length;
|
|
2853
2869
|
|
|
2854
|
-
if (
|
|
2870
|
+
if (configfLen === 0) {
|
|
2855
2871
|
getParsingFlags(config).invalidFormat = true;
|
|
2856
2872
|
config._d = new Date(NaN);
|
|
2857
2873
|
return;
|
|
2858
2874
|
}
|
|
2859
2875
|
|
|
2860
|
-
for (i = 0; i <
|
|
2876
|
+
for (i = 0; i < configfLen; i++) {
|
|
2861
2877
|
currentScore = 0;
|
|
2862
2878
|
validFormatFound = false;
|
|
2863
2879
|
tempConfig = copyConfig({}, config);
|
|
@@ -3098,7 +3114,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3098
3114
|
function isDurationValid(m) {
|
|
3099
3115
|
var key,
|
|
3100
3116
|
unitHasDecimal = false,
|
|
3101
|
-
i
|
|
3117
|
+
i,
|
|
3118
|
+
orderLen = ordering.length;
|
|
3102
3119
|
for (key in m) {
|
|
3103
3120
|
if (
|
|
3104
3121
|
hasOwnProp(m, key) &&
|
|
@@ -3111,7 +3128,7 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3111
3128
|
}
|
|
3112
3129
|
}
|
|
3113
3130
|
|
|
3114
|
-
for (i = 0; i <
|
|
3131
|
+
for (i = 0; i < orderLen; ++i) {
|
|
3115
3132
|
if (m[ordering[i]]) {
|
|
3116
3133
|
if (unitHasDecimal) {
|
|
3117
3134
|
return false; // only allow non-integers for smallest unit
|
|
@@ -3436,7 +3453,8 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3436
3453
|
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
|
3437
3454
|
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
|
3438
3455
|
// and further modified to allow for strings containing both week and day
|
|
3439
|
-
isoRegex =
|
|
3456
|
+
isoRegex =
|
|
3457
|
+
/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
|
3440
3458
|
|
|
3441
3459
|
function createDuration(input, key) {
|
|
3442
3460
|
var duration = input,
|
|
@@ -3657,9 +3675,10 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
3657
3675
|
'ms',
|
|
3658
3676
|
],
|
|
3659
3677
|
i,
|
|
3660
|
-
property
|
|
3678
|
+
property,
|
|
3679
|
+
propertyLen = properties.length;
|
|
3661
3680
|
|
|
3662
|
-
for (i = 0; i <
|
|
3681
|
+
for (i = 0; i < propertyLen; i += 1) {
|
|
3663
3682
|
property = properties[i];
|
|
3664
3683
|
propertyTest = propertyTest || hasOwnProp(input, property);
|
|
3665
3684
|
}
|
|
@@ -4282,19 +4301,17 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4282
4301
|
addRegexToken('NNNN', matchEraName);
|
|
4283
4302
|
addRegexToken('NNNNN', matchEraNarrow);
|
|
4284
4303
|
|
|
4285
|
-
addParseToken(
|
|
4286
|
-
|
|
4287
|
-
array,
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
} else {
|
|
4295
|
-
getParsingFlags(config).invalidEra = input;
|
|
4304
|
+
addParseToken(
|
|
4305
|
+
['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
|
|
4306
|
+
function (input, array, config, token) {
|
|
4307
|
+
var era = config._locale.erasParse(input, token, config._strict);
|
|
4308
|
+
if (era) {
|
|
4309
|
+
getParsingFlags(config).era = era;
|
|
4310
|
+
} else {
|
|
4311
|
+
getParsingFlags(config).invalidEra = input;
|
|
4312
|
+
}
|
|
4296
4313
|
}
|
|
4297
|
-
|
|
4314
|
+
);
|
|
4298
4315
|
|
|
4299
4316
|
addRegexToken('y', matchUnsigned);
|
|
4300
4317
|
addRegexToken('yy', matchUnsigned);
|
|
@@ -4586,14 +4603,12 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
4586
4603
|
addRegexToken('GGGGG', match1to6, match6);
|
|
4587
4604
|
addRegexToken('ggggg', match1to6, match6);
|
|
4588
4605
|
|
|
4589
|
-
addWeekParseToken(
|
|
4590
|
-
|
|
4591
|
-
week,
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
)
|
|
4595
|
-
week[token.substr(0, 2)] = toInt(input);
|
|
4596
|
-
});
|
|
4606
|
+
addWeekParseToken(
|
|
4607
|
+
['gggg', 'ggggg', 'GGGG', 'GGGGG'],
|
|
4608
|
+
function (input, week, config, token) {
|
|
4609
|
+
week[token.substr(0, 2)] = toInt(input);
|
|
4610
|
+
}
|
|
4611
|
+
);
|
|
4597
4612
|
|
|
4598
4613
|
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
|
4599
4614
|
week[token] = hooks.parseTwoDigitYear(input);
|
|
@@ -5616,7 +5631,7 @@ var moment = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
5616
5631
|
|
|
5617
5632
|
//! moment.js
|
|
5618
5633
|
|
|
5619
|
-
hooks.version = '2.29.
|
|
5634
|
+
hooks.version = '2.29.2';
|
|
5620
5635
|
|
|
5621
5636
|
setHookCallback(createLocal);
|
|
5622
5637
|
|