@fullcalendar/core 5.9.0 → 5.11.0

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/locales-all.js CHANGED
@@ -355,6 +355,11 @@ var l15 = {
355
355
  noEventsText: 'Ingen arrangementer at vise',
356
356
  };
357
357
 
358
+ function affix$1(buttonText) {
359
+ return (buttonText === 'Tag' || buttonText === 'Monat') ? 'r' :
360
+ buttonText === 'Jahr' ? 's' : ''
361
+ }
362
+
358
363
  var l16 = {
359
364
  code: 'de-at',
360
365
  week: {
@@ -372,12 +377,47 @@ var l16 = {
372
377
  list: 'Terminübersicht',
373
378
  },
374
379
  weekText: 'KW',
380
+ weekTextLong: 'Woche',
375
381
  allDayText: 'Ganztägig',
376
382
  moreLinkText: function(n) {
377
383
  return '+ weitere ' + n
378
384
  },
379
385
  noEventsText: 'Keine Ereignisse anzuzeigen',
380
- };
386
+ buttonHints: {
387
+ prev(buttonText) {
388
+ return `Vorherige${affix$1(buttonText)} ${buttonText}`
389
+ },
390
+ next(buttonText) {
391
+ return `Nächste${affix$1(buttonText)} ${buttonText}`
392
+ },
393
+ today(buttonText) {
394
+ // → Heute, Diese Woche, Dieser Monat, Dieses Jahr
395
+ if (buttonText === 'Tag') {
396
+ return 'Heute'
397
+ }
398
+ return `Diese${affix$1(buttonText)} ${buttonText}`
399
+ },
400
+ },
401
+ viewHint(buttonText) {
402
+ // → Tagesansicht, Wochenansicht, Monatsansicht, Jahresansicht
403
+ const glue = buttonText === 'Woche' ? 'n' : buttonText === 'Monat' ? 's' : 'es';
404
+ return buttonText + glue + 'ansicht'
405
+ },
406
+ navLinkHint: 'Gehe zu $0',
407
+ moreLinkHint(eventCnt) {
408
+ return 'Zeige ' + (eventCnt === 1 ?
409
+ 'ein weiteres Ereignis' :
410
+ eventCnt + ' weitere Ereignisse')
411
+ },
412
+ closeHint: 'Schließen',
413
+ timeHint: 'Uhrzeit',
414
+ eventHint: 'Ereignis',
415
+ };
416
+
417
+ function affix(buttonText) {
418
+ return (buttonText === 'Tag' || buttonText === 'Monat') ? 'r' :
419
+ buttonText === 'Jahr' ? 's' : ''
420
+ }
381
421
 
382
422
  var l17 = {
383
423
  code: 'de',
@@ -396,11 +436,41 @@ var l17 = {
396
436
  list: 'Terminübersicht',
397
437
  },
398
438
  weekText: 'KW',
439
+ weekTextLong: 'Woche',
399
440
  allDayText: 'Ganztägig',
400
441
  moreLinkText: function(n) {
401
442
  return '+ weitere ' + n
402
443
  },
403
444
  noEventsText: 'Keine Ereignisse anzuzeigen',
445
+ buttonHints: {
446
+ prev(buttonText) {
447
+ return `Vorherige${affix(buttonText)} ${buttonText}`
448
+ },
449
+ next(buttonText) {
450
+ return `Nächste${affix(buttonText)} ${buttonText}`
451
+ },
452
+ today(buttonText) {
453
+ // → Heute, Diese Woche, Dieser Monat, Dieses Jahr
454
+ if (buttonText === 'Tag') {
455
+ return 'Heute'
456
+ }
457
+ return `Diese${affix(buttonText)} ${buttonText}`
458
+ },
459
+ },
460
+ viewHint(buttonText) {
461
+ // → Tagesansicht, Wochenansicht, Monatsansicht, Jahresansicht
462
+ const glue = buttonText === 'Woche' ? 'n' : buttonText === 'Monat' ? 's' : 'es';
463
+ return buttonText + glue + 'ansicht'
464
+ },
465
+ navLinkHint: 'Gehe zu $0',
466
+ moreLinkHint(eventCnt) {
467
+ return 'Zeige ' + (eventCnt === 1 ?
468
+ 'ein weiteres Ereignis' :
469
+ eventCnt + ' weitere Ereignisse')
470
+ },
471
+ closeHint: 'Schließen',
472
+ timeHint: 'Uhrzeit',
473
+ eventHint: 'Ereignis',
404
474
  };
405
475
 
406
476
  var l18 = {
@@ -430,6 +500,16 @@ var l19 = {
430
500
  dow: 1, // Monday is the first day of the week.
431
501
  doy: 4, // The week that contains Jan 4th is the first week of the year.
432
502
  },
503
+ buttonHints: {
504
+ prev: 'Previous $0',
505
+ next: 'Next $0',
506
+ today: 'This $0',
507
+ },
508
+ viewHint: '$0 view',
509
+ navLinkHint: 'Go to $0',
510
+ moreLinkHint(eventCnt) {
511
+ return `Show ${eventCnt} more event${eventCnt === 1 ? '' : 's'}`
512
+ },
433
513
  };
434
514
 
435
515
  var l20 = {
@@ -438,6 +518,16 @@ var l20 = {
438
518
  dow: 1, // Monday is the first day of the week.
439
519
  doy: 4, // The week that contains Jan 4th is the first week of the year.
440
520
  },
521
+ buttonHints: {
522
+ prev: 'Previous $0',
523
+ next: 'Next $0',
524
+ today: 'This $0',
525
+ },
526
+ viewHint: '$0 view',
527
+ navLinkHint: 'Go to $0',
528
+ moreLinkHint(eventCnt) {
529
+ return `Show ${eventCnt} more event${eventCnt === 1 ? '' : 's'}`
530
+ },
441
531
  };
442
532
 
443
533
  var l21 = {
@@ -446,6 +536,16 @@ var l21 = {
446
536
  dow: 1, // Monday is the first day of the week.
447
537
  doy: 4, // The week that contains Jan 4th is the first week of the year.
448
538
  },
539
+ buttonHints: {
540
+ prev: 'Previous $0',
541
+ next: 'Next $0',
542
+ today: 'This $0',
543
+ },
544
+ viewHint: '$0 view',
545
+ navLinkHint: 'Go to $0',
546
+ moreLinkHint(eventCnt) {
547
+ return `Show ${eventCnt} more event${eventCnt === 1 ? '' : 's'}`
548
+ },
449
549
  };
450
550
 
451
551
  var l22 = {
@@ -505,10 +605,29 @@ var l24 = {
505
605
  day: 'Día',
506
606
  list: 'Agenda',
507
607
  },
608
+ buttonHints: {
609
+ prev: '$0 antes',
610
+ next: '$0 siguiente',
611
+ today(buttonText) {
612
+ return (buttonText === 'Día') ? 'Hoy' :
613
+ ((buttonText === 'Semana') ? 'Esta' : 'Este') + ' ' + buttonText.toLocaleLowerCase()
614
+ },
615
+ },
616
+ viewHint(buttonText) {
617
+ return 'Vista ' + (buttonText === 'Semana' ? 'de la' : 'del') + ' ' + buttonText.toLocaleLowerCase()
618
+ },
508
619
  weekText: 'Sm',
620
+ weekTextLong: 'Semana',
509
621
  allDayText: 'Todo el día',
510
622
  moreLinkText: 'más',
623
+ moreLinkHint(eventCnt) {
624
+ return `Mostrar ${eventCnt} eventos más`
625
+ },
511
626
  noEventsText: 'No hay eventos para mostrar',
627
+ navLinkHint: 'Ir al $0',
628
+ closeHint: 'Cerrar',
629
+ timeHint: 'La hora',
630
+ eventHint: 'Evento',
512
631
  };
513
632
 
514
633
  var l25 = {
@@ -1105,9 +1224,20 @@ var l52 = {
1105
1224
  list: 'Agenda',
1106
1225
  },
1107
1226
  weekText: 'Uke',
1227
+ weekTextLong: 'Uke',
1108
1228
  allDayText: 'Hele dagen',
1109
1229
  moreLinkText: 'til',
1110
1230
  noEventsText: 'Ingen hendelser å vise',
1231
+ buttonHints: {
1232
+ prev: 'Forrige $0',
1233
+ next: 'Neste $0',
1234
+ today: 'Nåværende $0',
1235
+ },
1236
+ viewHint: '$0 visning',
1237
+ navLinkHint: 'Gå til $0',
1238
+ moreLinkHint(eventCnt) {
1239
+ return `Vis ${eventCnt} flere hendelse${eventCnt === 1 ? '' : 'r'}`
1240
+ },
1111
1241
  };
1112
1242
 
1113
1243
  var l53 = {
@@ -1281,6 +1411,27 @@ var l60 = {
1281
1411
  };
1282
1412
 
1283
1413
  var l61 = {
1414
+ code: 'si-lk',
1415
+ week: {
1416
+ dow: 1, // Monday is the first day of the week.
1417
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
1418
+ },
1419
+ buttonText: {
1420
+ prev: 'පෙර',
1421
+ next: 'පසු',
1422
+ today: 'අද',
1423
+ month: 'මාසය',
1424
+ week: 'සතිය',
1425
+ day: 'දවස',
1426
+ list: 'ලැයිස්තුව',
1427
+ },
1428
+ weekText: 'සති',
1429
+ allDayText: 'සියලු',
1430
+ moreLinkText: 'තවත්',
1431
+ noEventsText: 'මුකුත් නැත',
1432
+ };
1433
+
1434
+ var l62 = {
1284
1435
  code: 'sk',
1285
1436
  week: {
1286
1437
  dow: 1, // Monday is the first day of the week.
@@ -1303,7 +1454,7 @@ var l61 = {
1303
1454
  noEventsText: 'Žiadne akcie na zobrazenie',
1304
1455
  };
1305
1456
 
1306
- var l62 = {
1457
+ var l63 = {
1307
1458
  code: 'sl',
1308
1459
  week: {
1309
1460
  dow: 1, // Monday is the first day of the week.
@@ -1324,7 +1475,7 @@ var l62 = {
1324
1475
  noEventsText: 'Ni dogodkov za prikaz',
1325
1476
  };
1326
1477
 
1327
- var l63 = {
1478
+ var l64 = {
1328
1479
  code: 'sm',
1329
1480
  buttonText: {
1330
1481
  prev: 'Talu ai',
@@ -1341,7 +1492,7 @@ var l63 = {
1341
1492
  noEventsText: 'Leai ni mea na tutupu',
1342
1493
  };
1343
1494
 
1344
- var l64 = {
1495
+ var l65 = {
1345
1496
  code: 'sq',
1346
1497
  week: {
1347
1498
  dow: 1, // Monday is the first day of the week.
@@ -1364,7 +1515,7 @@ var l64 = {
1364
1515
  noEventsText: 'Nuk ka evente për të shfaqur',
1365
1516
  };
1366
1517
 
1367
- var l65 = {
1518
+ var l66 = {
1368
1519
  code: 'sr-cyrl',
1369
1520
  week: {
1370
1521
  dow: 1, // Monday is the first day of the week.
@@ -1387,7 +1538,7 @@ var l65 = {
1387
1538
  noEventsText: 'Нема догађаја за приказ',
1388
1539
  };
1389
1540
 
1390
- var l66 = {
1541
+ var l67 = {
1391
1542
  code: 'sr',
1392
1543
  week: {
1393
1544
  dow: 1, // Monday is the first day of the week.
@@ -1410,7 +1561,7 @@ var l66 = {
1410
1561
  noEventsText: 'Nеma događaja za prikaz',
1411
1562
  };
1412
1563
 
1413
- var l67 = {
1564
+ var l68 = {
1414
1565
  code: 'sv',
1415
1566
  week: {
1416
1567
  dow: 1, // Monday is the first day of the week.
@@ -1425,13 +1576,33 @@ var l67 = {
1425
1576
  day: 'Dag',
1426
1577
  list: 'Program',
1427
1578
  },
1579
+ buttonHints: {
1580
+ prev(buttonText) {
1581
+ return `Föregående ${buttonText.toLocaleLowerCase()}`
1582
+ },
1583
+ next(buttonText) {
1584
+ return `Nästa ${buttonText.toLocaleLowerCase()}`
1585
+ },
1586
+ today(buttonText) {
1587
+ return (buttonText === 'Program' ? 'Detta' : 'Denna') + ' ' + buttonText.toLocaleLowerCase()
1588
+ },
1589
+ },
1590
+ viewHint: '$0 vy',
1591
+ navLinkHint: 'Gå till $0',
1592
+ moreLinkHint(eventCnt) {
1593
+ return `Visa ytterligare ${eventCnt} händelse${eventCnt === 1 ? '' : 'r'}`
1594
+ },
1428
1595
  weekText: 'v.',
1596
+ weekTextLong: 'Vecka',
1429
1597
  allDayText: 'Heldag',
1430
1598
  moreLinkText: 'till',
1431
1599
  noEventsText: 'Inga händelser att visa',
1600
+ closeHint: 'Stäng',
1601
+ timeHint: 'Klockan',
1602
+ eventHint: 'Händelse',
1432
1603
  };
1433
1604
 
1434
- var l68 = {
1605
+ var l69 = {
1435
1606
  code: 'ta-in',
1436
1607
  week: {
1437
1608
  dow: 1, // Monday is the first day of the week.
@@ -1454,7 +1625,7 @@ var l68 = {
1454
1625
  noEventsText: 'காண்பிக்க நிகழ்வுகள் இல்லை',
1455
1626
  };
1456
1627
 
1457
- var l69 = {
1628
+ var l70 = {
1458
1629
  code: 'th',
1459
1630
  week: {
1460
1631
  dow: 1, // Monday is the first day of the week.
@@ -1478,7 +1649,7 @@ var l69 = {
1478
1649
  noEventsText: 'ไม่มีกิจกรรมที่จะแสดง',
1479
1650
  };
1480
1651
 
1481
- var l70 = {
1652
+ var l71 = {
1482
1653
  code: 'tr',
1483
1654
  week: {
1484
1655
  dow: 1, // Monday is the first day of the week.
@@ -1499,7 +1670,7 @@ var l70 = {
1499
1670
  noEventsText: 'Gösterilecek etkinlik yok',
1500
1671
  };
1501
1672
 
1502
- var l71 = {
1673
+ var l72 = {
1503
1674
  code: 'ug',
1504
1675
  buttonText: {
1505
1676
  month: 'ئاي',
@@ -1510,7 +1681,7 @@ var l71 = {
1510
1681
  allDayText: 'پۈتۈن كۈن',
1511
1682
  };
1512
1683
 
1513
- var l72 = {
1684
+ var l73 = {
1514
1685
  code: 'uk',
1515
1686
  week: {
1516
1687
  dow: 1, // Monday is the first day of the week.
@@ -1533,7 +1704,7 @@ var l72 = {
1533
1704
  noEventsText: 'Немає подій для відображення',
1534
1705
  };
1535
1706
 
1536
- var l73 = {
1707
+ var l74 = {
1537
1708
  code: 'uz',
1538
1709
  buttonText: {
1539
1710
  month: 'Oy',
@@ -1548,7 +1719,7 @@ var l73 = {
1548
1719
  noEventsText: "Ko'rsatish uchun voqealar yo'q",
1549
1720
  };
1550
1721
 
1551
- var l74 = {
1722
+ var l75 = {
1552
1723
  code: 'vi',
1553
1724
  week: {
1554
1725
  dow: 1, // Monday is the first day of the week.
@@ -1571,7 +1742,7 @@ var l74 = {
1571
1742
  noEventsText: 'Không có sự kiện để hiển thị',
1572
1743
  };
1573
1744
 
1574
- var l75 = {
1745
+ var l76 = {
1575
1746
  code: 'zh-cn',
1576
1747
  week: {
1577
1748
  // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
@@ -1595,7 +1766,7 @@ var l75 = {
1595
1766
  noEventsText: '没有事件显示',
1596
1767
  };
1597
1768
 
1598
- var l76 = {
1769
+ var l77 = {
1599
1770
  code: 'zh-tw',
1600
1771
  buttonText: {
1601
1772
  prev: '上月',
@@ -1615,7 +1786,7 @@ var l76 = {
1615
1786
  /* eslint max-len: off */
1616
1787
 
1617
1788
  var localesAll = [
1618
- l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, l41, l42, l43, l44, l45, l46, l47, l48, l49, l50, l51, l52, l53, l54, l55, l56, l57, l58, l59, l60, l61, l62, l63, l64, l65, l66, l67, l68, l69, l70, l71, l72, l73, l74, l75, l76,
1789
+ l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15, l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, l26, l27, l28, l29, l30, l31, l32, l33, l34, l35, l36, l37, l38, l39, l40, l41, l42, l43, l44, l45, l46, l47, l48, l49, l50, l51, l52, l53, l54, l55, l56, l57, l58, l59, l60, l61, l62, l63, l64, l65, l66, l67, l68, l69, l70, l71, l72, l73, l74, l75, l76, l77,
1619
1790
  ];
1620
1791
 
1621
1792
  exports.default = localesAll;
package/main.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- FullCalendar v5.9.0
2
+ FullCalendar v5.10.2
3
3
  Docs & License: https://fullcalendar.io/
4
4
  (c) 2021 Adam Shaw
5
5
  */
@@ -36,12 +36,14 @@ var Calendar = /** @class */ (function (_super) {
36
36
  if (_this.isRendering) {
37
37
  _this.isRendered = true;
38
38
  var currentData_1 = _this.currentData;
39
- common.render(common.createElement(common.CalendarRoot, { options: currentData_1.calendarOptions, theme: currentData_1.theme, emitter: currentData_1.emitter }, function (classNames, height, isHeightAuto, forPrint) {
40
- _this.setClassNames(classNames);
41
- _this.setHeight(height);
42
- return (common.createElement(common.CustomContentRenderContext.Provider, { value: _this.customContentRenderId },
43
- common.createElement(common.CalendarContent, tslib.__assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData_1))));
44
- }), _this.el);
39
+ common.flushSync(function () {
40
+ common.render(common.createElement(common.CalendarRoot, { options: currentData_1.calendarOptions, theme: currentData_1.theme, emitter: currentData_1.emitter }, function (classNames, height, isHeightAuto, forPrint) {
41
+ _this.setClassNames(classNames);
42
+ _this.setHeight(height);
43
+ return (common.createElement(common.CustomContentRenderContext.Provider, { value: _this.customContentRenderId },
44
+ common.createElement(common.CalendarContent, tslib.__assign({ isHeightAuto: isHeightAuto, forPrint: forPrint }, currentData_1))));
45
+ }), _this.el);
46
+ });
45
47
  }
46
48
  else if (_this.isRendered) {
47
49
  _this.isRendered = false;
@@ -49,7 +51,6 @@ var Calendar = /** @class */ (function (_super) {
49
51
  _this.setClassNames([]);
50
52
  _this.setHeight('');
51
53
  }
52
- common.flushToDom();
53
54
  };
54
55
  _this.el = el;
55
56
  _this.renderRunner = new common.DelayedRunner(_this.handleRenderRequest);
@@ -87,8 +88,10 @@ var Calendar = /** @class */ (function (_super) {
87
88
  }
88
89
  };
89
90
  Calendar.prototype.updateSize = function () {
90
- _super.prototype.updateSize.call(this);
91
- common.flushToDom();
91
+ var _this = this;
92
+ common.flushSync(function () {
93
+ _super.prototype.updateSize.call(_this);
94
+ });
92
95
  };
93
96
  Calendar.prototype.batchRendering = function (func) {
94
97
  this.renderRunner.pause('batchRendering');