@limetech/lime-elements 36.3.0-next.14 → 36.3.0-next.15
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-d7a8d40d.js → dateFormatter-5353def7.js} +227 -141
- package/dist/cjs/limel-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +9 -3
- package/dist/collection/components/chip-set/chip-set.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/dateFormatter.js +7 -3
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
- package/dist/collection/components/date-picker/pickers/Picker.js +11 -2
- package/dist/collection/components/file/file.js +1 -1
- package/dist/collection/components/snackbar/snackbar.js +1 -1
- package/dist/esm/{dateFormatter-784c3334.js → dateFormatter-e13137e8.js} +227 -141
- package/dist/esm/limel-date-picker.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +9 -3
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-d512656b.entry.js → p-7fb5f651.entry.js} +1 -1
- package/dist/lime-elements/{p-73df4d83.js → p-9900c44b.js} +5 -3
- package/dist/lime-elements/{p-c4a89055.entry.js → p-aec225e5.entry.js} +1 -1
- package/dist/types/components/date-picker/date.types.d.ts +1 -1
- package/dist/types/components/date-picker/dateFormatter.d.ts +3 -2
- package/dist/types/components/date-picker/pickers/Picker.d.ts +3 -0
- package/package.json +6 -6
|
@@ -63,6 +63,89 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
63
63
|
})));
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
+
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
67
|
+
(function (global, factory) {
|
|
68
|
+
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
69
|
+
factory(global.moment);
|
|
70
|
+
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
71
|
+
//! moment.js locale configuration
|
|
72
|
+
|
|
73
|
+
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
74
|
+
var format = {
|
|
75
|
+
m: ['eine Minute', 'einer Minute'],
|
|
76
|
+
h: ['eine Stunde', 'einer Stunde'],
|
|
77
|
+
d: ['ein Tag', 'einem Tag'],
|
|
78
|
+
dd: [number + ' Tage', number + ' Tagen'],
|
|
79
|
+
w: ['eine Woche', 'einer Woche'],
|
|
80
|
+
M: ['ein Monat', 'einem Monat'],
|
|
81
|
+
MM: [number + ' Monate', number + ' Monaten'],
|
|
82
|
+
y: ['ein Jahr', 'einem Jahr'],
|
|
83
|
+
yy: [number + ' Jahre', number + ' Jahren'],
|
|
84
|
+
};
|
|
85
|
+
return withoutSuffix ? format[key][0] : format[key][1];
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
var de = moment.defineLocale('de', {
|
|
89
|
+
months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split(
|
|
90
|
+
'_'
|
|
91
|
+
),
|
|
92
|
+
monthsShort:
|
|
93
|
+
'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),
|
|
94
|
+
monthsParseExact: true,
|
|
95
|
+
weekdays:
|
|
96
|
+
'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split(
|
|
97
|
+
'_'
|
|
98
|
+
),
|
|
99
|
+
weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
|
|
100
|
+
weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
|
|
101
|
+
weekdaysParseExact: true,
|
|
102
|
+
longDateFormat: {
|
|
103
|
+
LT: 'HH:mm',
|
|
104
|
+
LTS: 'HH:mm:ss',
|
|
105
|
+
L: 'DD.MM.YYYY',
|
|
106
|
+
LL: 'D. MMMM YYYY',
|
|
107
|
+
LLL: 'D. MMMM YYYY HH:mm',
|
|
108
|
+
LLLL: 'dddd, D. MMMM YYYY HH:mm',
|
|
109
|
+
},
|
|
110
|
+
calendar: {
|
|
111
|
+
sameDay: '[heute um] LT [Uhr]',
|
|
112
|
+
sameElse: 'L',
|
|
113
|
+
nextDay: '[morgen um] LT [Uhr]',
|
|
114
|
+
nextWeek: 'dddd [um] LT [Uhr]',
|
|
115
|
+
lastDay: '[gestern um] LT [Uhr]',
|
|
116
|
+
lastWeek: '[letzten] dddd [um] LT [Uhr]',
|
|
117
|
+
},
|
|
118
|
+
relativeTime: {
|
|
119
|
+
future: 'in %s',
|
|
120
|
+
past: 'vor %s',
|
|
121
|
+
s: 'ein paar Sekunden',
|
|
122
|
+
ss: '%d Sekunden',
|
|
123
|
+
m: processRelativeTime,
|
|
124
|
+
mm: '%d Minuten',
|
|
125
|
+
h: processRelativeTime,
|
|
126
|
+
hh: '%d Stunden',
|
|
127
|
+
d: processRelativeTime,
|
|
128
|
+
dd: processRelativeTime,
|
|
129
|
+
w: processRelativeTime,
|
|
130
|
+
ww: '%d Wochen',
|
|
131
|
+
M: processRelativeTime,
|
|
132
|
+
MM: processRelativeTime,
|
|
133
|
+
y: processRelativeTime,
|
|
134
|
+
yy: processRelativeTime,
|
|
135
|
+
},
|
|
136
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
137
|
+
ordinal: '%d.',
|
|
138
|
+
week: {
|
|
139
|
+
dow: 1, // Monday is the first day of the week.
|
|
140
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
return de;
|
|
145
|
+
|
|
146
|
+
})));
|
|
147
|
+
});
|
|
148
|
+
|
|
66
149
|
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
67
150
|
(function (global, factory) {
|
|
68
151
|
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
@@ -194,146 +277,6 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
194
277
|
})));
|
|
195
278
|
});
|
|
196
279
|
|
|
197
|
-
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
198
|
-
(function (global, factory) {
|
|
199
|
-
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
200
|
-
factory(global.moment);
|
|
201
|
-
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
202
|
-
//! moment.js locale configuration
|
|
203
|
-
|
|
204
|
-
var nb = moment.defineLocale('nb', {
|
|
205
|
-
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
|
|
206
|
-
'_'
|
|
207
|
-
),
|
|
208
|
-
monthsShort:
|
|
209
|
-
'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
|
210
|
-
monthsParseExact: true,
|
|
211
|
-
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
|
212
|
-
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
|
213
|
-
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
|
214
|
-
weekdaysParseExact: true,
|
|
215
|
-
longDateFormat: {
|
|
216
|
-
LT: 'HH:mm',
|
|
217
|
-
LTS: 'HH:mm:ss',
|
|
218
|
-
L: 'DD.MM.YYYY',
|
|
219
|
-
LL: 'D. MMMM YYYY',
|
|
220
|
-
LLL: 'D. MMMM YYYY [kl.] HH:mm',
|
|
221
|
-
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
|
|
222
|
-
},
|
|
223
|
-
calendar: {
|
|
224
|
-
sameDay: '[i dag kl.] LT',
|
|
225
|
-
nextDay: '[i morgen kl.] LT',
|
|
226
|
-
nextWeek: 'dddd [kl.] LT',
|
|
227
|
-
lastDay: '[i går kl.] LT',
|
|
228
|
-
lastWeek: '[forrige] dddd [kl.] LT',
|
|
229
|
-
sameElse: 'L',
|
|
230
|
-
},
|
|
231
|
-
relativeTime: {
|
|
232
|
-
future: 'om %s',
|
|
233
|
-
past: '%s siden',
|
|
234
|
-
s: 'noen sekunder',
|
|
235
|
-
ss: '%d sekunder',
|
|
236
|
-
m: 'ett minutt',
|
|
237
|
-
mm: '%d minutter',
|
|
238
|
-
h: 'en time',
|
|
239
|
-
hh: '%d timer',
|
|
240
|
-
d: 'en dag',
|
|
241
|
-
dd: '%d dager',
|
|
242
|
-
w: 'en uke',
|
|
243
|
-
ww: '%d uker',
|
|
244
|
-
M: 'en måned',
|
|
245
|
-
MM: '%d måneder',
|
|
246
|
-
y: 'ett år',
|
|
247
|
-
yy: '%d år',
|
|
248
|
-
},
|
|
249
|
-
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
250
|
-
ordinal: '%d.',
|
|
251
|
-
week: {
|
|
252
|
-
dow: 1, // Monday is the first day of the week.
|
|
253
|
-
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
254
|
-
},
|
|
255
|
-
});
|
|
256
|
-
|
|
257
|
-
return nb;
|
|
258
|
-
|
|
259
|
-
})));
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
263
|
-
(function (global, factory) {
|
|
264
|
-
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
265
|
-
factory(global.moment);
|
|
266
|
-
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
267
|
-
//! moment.js locale configuration
|
|
268
|
-
|
|
269
|
-
var sv = moment.defineLocale('sv', {
|
|
270
|
-
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
|
|
271
|
-
'_'
|
|
272
|
-
),
|
|
273
|
-
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
|
274
|
-
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
|
275
|
-
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
|
|
276
|
-
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
|
|
277
|
-
longDateFormat: {
|
|
278
|
-
LT: 'HH:mm',
|
|
279
|
-
LTS: 'HH:mm:ss',
|
|
280
|
-
L: 'YYYY-MM-DD',
|
|
281
|
-
LL: 'D MMMM YYYY',
|
|
282
|
-
LLL: 'D MMMM YYYY [kl.] HH:mm',
|
|
283
|
-
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
|
|
284
|
-
lll: 'D MMM YYYY HH:mm',
|
|
285
|
-
llll: 'ddd D MMM YYYY HH:mm',
|
|
286
|
-
},
|
|
287
|
-
calendar: {
|
|
288
|
-
sameDay: '[Idag] LT',
|
|
289
|
-
nextDay: '[Imorgon] LT',
|
|
290
|
-
lastDay: '[Igår] LT',
|
|
291
|
-
nextWeek: '[På] dddd LT',
|
|
292
|
-
lastWeek: '[I] dddd[s] LT',
|
|
293
|
-
sameElse: 'L',
|
|
294
|
-
},
|
|
295
|
-
relativeTime: {
|
|
296
|
-
future: 'om %s',
|
|
297
|
-
past: 'för %s sedan',
|
|
298
|
-
s: 'några sekunder',
|
|
299
|
-
ss: '%d sekunder',
|
|
300
|
-
m: 'en minut',
|
|
301
|
-
mm: '%d minuter',
|
|
302
|
-
h: 'en timme',
|
|
303
|
-
hh: '%d timmar',
|
|
304
|
-
d: 'en dag',
|
|
305
|
-
dd: '%d dagar',
|
|
306
|
-
M: 'en månad',
|
|
307
|
-
MM: '%d månader',
|
|
308
|
-
y: 'ett år',
|
|
309
|
-
yy: '%d år',
|
|
310
|
-
},
|
|
311
|
-
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
|
|
312
|
-
ordinal: function (number) {
|
|
313
|
-
var b = number % 10,
|
|
314
|
-
output =
|
|
315
|
-
~~((number % 100) / 10) === 1
|
|
316
|
-
? ':e'
|
|
317
|
-
: b === 1
|
|
318
|
-
? ':a'
|
|
319
|
-
: b === 2
|
|
320
|
-
? ':a'
|
|
321
|
-
: b === 3
|
|
322
|
-
? ':e'
|
|
323
|
-
: ':e';
|
|
324
|
-
return number + output;
|
|
325
|
-
},
|
|
326
|
-
week: {
|
|
327
|
-
dow: 1, // Monday is the first day of the week.
|
|
328
|
-
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
329
|
-
},
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
return sv;
|
|
333
|
-
|
|
334
|
-
})));
|
|
335
|
-
});
|
|
336
|
-
|
|
337
280
|
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
338
281
|
(function (global, factory) {
|
|
339
282
|
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
@@ -449,6 +392,71 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
449
392
|
})));
|
|
450
393
|
});
|
|
451
394
|
|
|
395
|
+
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
396
|
+
(function (global, factory) {
|
|
397
|
+
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
398
|
+
factory(global.moment);
|
|
399
|
+
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
400
|
+
//! moment.js locale configuration
|
|
401
|
+
|
|
402
|
+
var nb = moment.defineLocale('nb', {
|
|
403
|
+
months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split(
|
|
404
|
+
'_'
|
|
405
|
+
),
|
|
406
|
+
monthsShort:
|
|
407
|
+
'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
|
|
408
|
+
monthsParseExact: true,
|
|
409
|
+
weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
|
|
410
|
+
weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'),
|
|
411
|
+
weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'),
|
|
412
|
+
weekdaysParseExact: true,
|
|
413
|
+
longDateFormat: {
|
|
414
|
+
LT: 'HH:mm',
|
|
415
|
+
LTS: 'HH:mm:ss',
|
|
416
|
+
L: 'DD.MM.YYYY',
|
|
417
|
+
LL: 'D. MMMM YYYY',
|
|
418
|
+
LLL: 'D. MMMM YYYY [kl.] HH:mm',
|
|
419
|
+
LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm',
|
|
420
|
+
},
|
|
421
|
+
calendar: {
|
|
422
|
+
sameDay: '[i dag kl.] LT',
|
|
423
|
+
nextDay: '[i morgen kl.] LT',
|
|
424
|
+
nextWeek: 'dddd [kl.] LT',
|
|
425
|
+
lastDay: '[i går kl.] LT',
|
|
426
|
+
lastWeek: '[forrige] dddd [kl.] LT',
|
|
427
|
+
sameElse: 'L',
|
|
428
|
+
},
|
|
429
|
+
relativeTime: {
|
|
430
|
+
future: 'om %s',
|
|
431
|
+
past: '%s siden',
|
|
432
|
+
s: 'noen sekunder',
|
|
433
|
+
ss: '%d sekunder',
|
|
434
|
+
m: 'ett minutt',
|
|
435
|
+
mm: '%d minutter',
|
|
436
|
+
h: 'en time',
|
|
437
|
+
hh: '%d timer',
|
|
438
|
+
d: 'en dag',
|
|
439
|
+
dd: '%d dager',
|
|
440
|
+
w: 'en uke',
|
|
441
|
+
ww: '%d uker',
|
|
442
|
+
M: 'en måned',
|
|
443
|
+
MM: '%d måneder',
|
|
444
|
+
y: 'ett år',
|
|
445
|
+
yy: '%d år',
|
|
446
|
+
},
|
|
447
|
+
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
448
|
+
ordinal: '%d.',
|
|
449
|
+
week: {
|
|
450
|
+
dow: 1, // Monday is the first day of the week.
|
|
451
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
452
|
+
},
|
|
453
|
+
});
|
|
454
|
+
|
|
455
|
+
return nb;
|
|
456
|
+
|
|
457
|
+
})));
|
|
458
|
+
});
|
|
459
|
+
|
|
452
460
|
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
453
461
|
(function (global, factory) {
|
|
454
462
|
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
@@ -559,6 +567,81 @@ _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
|
559
567
|
})));
|
|
560
568
|
});
|
|
561
569
|
|
|
570
|
+
_commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
571
|
+
(function (global, factory) {
|
|
572
|
+
typeof _commonjsHelpers.commonjsRequire === 'function' ? factory(moment.moment) :
|
|
573
|
+
factory(global.moment);
|
|
574
|
+
}(_commonjsHelpers.commonjsGlobal, (function (moment) {
|
|
575
|
+
//! moment.js locale configuration
|
|
576
|
+
|
|
577
|
+
var sv = moment.defineLocale('sv', {
|
|
578
|
+
months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split(
|
|
579
|
+
'_'
|
|
580
|
+
),
|
|
581
|
+
monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),
|
|
582
|
+
weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'),
|
|
583
|
+
weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'),
|
|
584
|
+
weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'),
|
|
585
|
+
longDateFormat: {
|
|
586
|
+
LT: 'HH:mm',
|
|
587
|
+
LTS: 'HH:mm:ss',
|
|
588
|
+
L: 'YYYY-MM-DD',
|
|
589
|
+
LL: 'D MMMM YYYY',
|
|
590
|
+
LLL: 'D MMMM YYYY [kl.] HH:mm',
|
|
591
|
+
LLLL: 'dddd D MMMM YYYY [kl.] HH:mm',
|
|
592
|
+
lll: 'D MMM YYYY HH:mm',
|
|
593
|
+
llll: 'ddd D MMM YYYY HH:mm',
|
|
594
|
+
},
|
|
595
|
+
calendar: {
|
|
596
|
+
sameDay: '[Idag] LT',
|
|
597
|
+
nextDay: '[Imorgon] LT',
|
|
598
|
+
lastDay: '[Igår] LT',
|
|
599
|
+
nextWeek: '[På] dddd LT',
|
|
600
|
+
lastWeek: '[I] dddd[s] LT',
|
|
601
|
+
sameElse: 'L',
|
|
602
|
+
},
|
|
603
|
+
relativeTime: {
|
|
604
|
+
future: 'om %s',
|
|
605
|
+
past: 'för %s sedan',
|
|
606
|
+
s: 'några sekunder',
|
|
607
|
+
ss: '%d sekunder',
|
|
608
|
+
m: 'en minut',
|
|
609
|
+
mm: '%d minuter',
|
|
610
|
+
h: 'en timme',
|
|
611
|
+
hh: '%d timmar',
|
|
612
|
+
d: 'en dag',
|
|
613
|
+
dd: '%d dagar',
|
|
614
|
+
M: 'en månad',
|
|
615
|
+
MM: '%d månader',
|
|
616
|
+
y: 'ett år',
|
|
617
|
+
yy: '%d år',
|
|
618
|
+
},
|
|
619
|
+
dayOfMonthOrdinalParse: /\d{1,2}(\:e|\:a)/,
|
|
620
|
+
ordinal: function (number) {
|
|
621
|
+
var b = number % 10,
|
|
622
|
+
output =
|
|
623
|
+
~~((number % 100) / 10) === 1
|
|
624
|
+
? ':e'
|
|
625
|
+
: b === 1
|
|
626
|
+
? ':a'
|
|
627
|
+
: b === 2
|
|
628
|
+
? ':a'
|
|
629
|
+
: b === 3
|
|
630
|
+
? ':e'
|
|
631
|
+
: ':e';
|
|
632
|
+
return number + output;
|
|
633
|
+
},
|
|
634
|
+
week: {
|
|
635
|
+
dow: 1, // Monday is the first day of the week.
|
|
636
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
637
|
+
},
|
|
638
|
+
});
|
|
639
|
+
|
|
640
|
+
return sv;
|
|
641
|
+
|
|
642
|
+
})));
|
|
643
|
+
});
|
|
644
|
+
|
|
562
645
|
class DateFormatter {
|
|
563
646
|
constructor(language = 'en') {
|
|
564
647
|
this.language = language;
|
|
@@ -576,7 +659,10 @@ class DateFormatter {
|
|
|
576
659
|
return null;
|
|
577
660
|
}
|
|
578
661
|
getLanguage() {
|
|
579
|
-
|
|
662
|
+
if (this.language === 'no') {
|
|
663
|
+
return 'nb';
|
|
664
|
+
}
|
|
665
|
+
return this.language;
|
|
580
666
|
}
|
|
581
667
|
getDateFormat(type) {
|
|
582
668
|
return ({
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-287e25e0.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-5353def7.js');
|
|
9
9
|
const component = require('./component-ae3bfacf.js');
|
|
10
10
|
require('./_commonjsHelpers-0c557e26.js');
|
|
11
11
|
require('./moment-d1e35cdc.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-287e25e0.js');
|
|
6
6
|
const translations = require('./translations-ca7279bc.js');
|
|
7
7
|
const _commonjsHelpers = require('./_commonjsHelpers-0c557e26.js');
|
|
8
|
-
const dateFormatter = require('./dateFormatter-
|
|
8
|
+
const dateFormatter = require('./dateFormatter-5353def7.js');
|
|
9
9
|
const moment = require('./moment-d1e35cdc.js');
|
|
10
10
|
const device = require('./device-c5841113.js');
|
|
11
11
|
const eq = require('./eq-9a943b00.js');
|
|
@@ -6527,10 +6527,16 @@ class Picker {
|
|
|
6527
6527
|
});
|
|
6528
6528
|
}
|
|
6529
6529
|
getFlatpickrLang() {
|
|
6530
|
-
|
|
6530
|
+
if (this.language === 'nb') {
|
|
6531
|
+
return 'no';
|
|
6532
|
+
}
|
|
6533
|
+
return this.language;
|
|
6531
6534
|
}
|
|
6532
6535
|
getMomentLang() {
|
|
6533
|
-
|
|
6536
|
+
if (this.language === 'no') {
|
|
6537
|
+
return 'nb';
|
|
6538
|
+
}
|
|
6539
|
+
return this.language;
|
|
6534
6540
|
}
|
|
6535
6541
|
getPickerDate(selectedDates) {
|
|
6536
6542
|
return selectedDates[0] ? new Date(selectedDates[0].toJSON()) : null;
|
|
@@ -662,7 +662,7 @@ export class ChipSet {
|
|
|
662
662
|
"mutable": false,
|
|
663
663
|
"complexType": {
|
|
664
664
|
"original": "Languages",
|
|
665
|
-
"resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
665
|
+
"resolved": "\"da\" | \"de\" | \"en\" | \"fi\" | \"fr\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
666
666
|
"references": {
|
|
667
667
|
"Languages": {
|
|
668
668
|
"location": "import",
|
|
@@ -400,7 +400,7 @@ export class DatePicker {
|
|
|
400
400
|
"mutable": false,
|
|
401
401
|
"complexType": {
|
|
402
402
|
"original": "Languages",
|
|
403
|
-
"resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
403
|
+
"resolved": "\"da\" | \"de\" | \"en\" | \"fi\" | \"fr\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
404
404
|
"references": {
|
|
405
405
|
"Languages": {
|
|
406
406
|
"location": "import",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import 'moment/locale/da';
|
|
2
|
+
import 'moment/locale/de';
|
|
2
3
|
import 'moment/locale/fi';
|
|
3
|
-
import 'moment/locale/nb';
|
|
4
|
-
import 'moment/locale/sv';
|
|
5
4
|
import 'moment/locale/fr';
|
|
5
|
+
import 'moment/locale/nb';
|
|
6
6
|
import 'moment/locale/nl';
|
|
7
|
+
import 'moment/locale/sv';
|
|
7
8
|
import moment from 'moment/moment';
|
|
8
9
|
export class DateFormatter {
|
|
9
10
|
constructor(language = 'en') {
|
|
@@ -22,7 +23,10 @@ export class DateFormatter {
|
|
|
22
23
|
return null;
|
|
23
24
|
}
|
|
24
25
|
getLanguage() {
|
|
25
|
-
|
|
26
|
+
if (this.language === 'no') {
|
|
27
|
+
return 'nb';
|
|
28
|
+
}
|
|
29
|
+
return this.language;
|
|
26
30
|
}
|
|
27
31
|
getDateFormat(type) {
|
|
28
32
|
return ({
|
|
@@ -217,7 +217,7 @@ export class DatePickerCalendar {
|
|
|
217
217
|
"mutable": false,
|
|
218
218
|
"complexType": {
|
|
219
219
|
"original": "Languages",
|
|
220
|
-
"resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
220
|
+
"resolved": "\"da\" | \"de\" | \"en\" | \"fi\" | \"fr\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
221
221
|
"references": {
|
|
222
222
|
"Languages": {
|
|
223
223
|
"location": "import",
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import flatpickr from 'flatpickr';
|
|
2
2
|
import FlatpickrLanguages from 'flatpickr/dist/l10n';
|
|
3
3
|
import 'moment/locale/da';
|
|
4
|
+
import 'moment/locale/de';
|
|
4
5
|
import 'moment/locale/fi';
|
|
6
|
+
import 'moment/locale/fr';
|
|
5
7
|
import 'moment/locale/nb';
|
|
8
|
+
import 'moment/locale/nl';
|
|
6
9
|
import 'moment/locale/sv';
|
|
7
10
|
import moment from 'moment/moment';
|
|
8
11
|
import { isAndroidDevice, isIOSDevice } from '../../../util/device';
|
|
@@ -69,10 +72,16 @@ export class Picker {
|
|
|
69
72
|
});
|
|
70
73
|
}
|
|
71
74
|
getFlatpickrLang() {
|
|
72
|
-
|
|
75
|
+
if (this.language === 'nb') {
|
|
76
|
+
return 'no';
|
|
77
|
+
}
|
|
78
|
+
return this.language;
|
|
73
79
|
}
|
|
74
80
|
getMomentLang() {
|
|
75
|
-
|
|
81
|
+
if (this.language === 'no') {
|
|
82
|
+
return 'nb';
|
|
83
|
+
}
|
|
84
|
+
return this.language;
|
|
76
85
|
}
|
|
77
86
|
getPickerDate(selectedDates) {
|
|
78
87
|
return selectedDates[0] ? new Date(selectedDates[0].toJSON()) : null;
|
|
@@ -303,7 +303,7 @@ export class File {
|
|
|
303
303
|
"mutable": false,
|
|
304
304
|
"complexType": {
|
|
305
305
|
"original": "Languages",
|
|
306
|
-
"resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
306
|
+
"resolved": "\"da\" | \"de\" | \"en\" | \"fi\" | \"fr\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
307
307
|
"references": {
|
|
308
308
|
"Languages": {
|
|
309
309
|
"location": "import",
|
|
@@ -179,7 +179,7 @@ export class Snackbar {
|
|
|
179
179
|
"mutable": false,
|
|
180
180
|
"complexType": {
|
|
181
181
|
"original": "Languages",
|
|
182
|
-
"resolved": "\"da\" | \"en\" | \"fi\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
182
|
+
"resolved": "\"da\" | \"de\" | \"en\" | \"fi\" | \"fr\" | \"nb\" | \"nl\" | \"no\" | \"sv\"",
|
|
183
183
|
"references": {
|
|
184
184
|
"Languages": {
|
|
185
185
|
"location": "import",
|