@fullcalendar/core 6.1.10 → 6.1.12
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/index.cjs +2 -2
- package/index.global.js +43 -40
- package/index.global.min.js +2 -2
- package/index.js +2 -2
- package/internal-common.cjs +40 -37
- package/internal-common.d.ts +3 -3
- package/internal-common.js +40 -37
- package/locales/af.global.js +1 -1
- package/locales/af.global.min.js +1 -1
- package/locales/ar-dz.global.js +1 -1
- package/locales/ar-dz.global.min.js +1 -1
- package/locales/ar-kw.global.js +1 -1
- package/locales/ar-kw.global.min.js +1 -1
- package/locales/ar-ly.global.js +1 -1
- package/locales/ar-ly.global.min.js +1 -1
- package/locales/ar-ma.global.js +1 -1
- package/locales/ar-ma.global.min.js +1 -1
- package/locales/ar-sa.global.js +1 -1
- package/locales/ar-sa.global.min.js +1 -1
- package/locales/ar-tn.global.js +1 -1
- package/locales/ar-tn.global.min.js +1 -1
- package/locales/ar.global.js +1 -1
- package/locales/ar.global.min.js +1 -1
- package/locales/az.global.js +1 -1
- package/locales/az.global.min.js +1 -1
- package/locales/bg.global.js +1 -1
- package/locales/bg.global.min.js +1 -1
- package/locales/bn.global.js +1 -1
- package/locales/bn.global.min.js +1 -1
- package/locales/bs.global.js +1 -1
- package/locales/bs.global.min.js +1 -1
- package/locales/ca.global.js +1 -1
- package/locales/ca.global.min.js +1 -1
- package/locales/cs.global.js +1 -1
- package/locales/cs.global.min.js +1 -1
- package/locales/cy.global.js +1 -1
- package/locales/cy.global.min.js +1 -1
- package/locales/da.global.js +1 -1
- package/locales/da.global.min.js +1 -1
- package/locales/de-at.global.js +1 -1
- package/locales/de-at.global.min.js +1 -1
- package/locales/de.global.js +1 -1
- package/locales/de.global.min.js +1 -1
- package/locales/el.global.js +1 -1
- package/locales/el.global.min.js +1 -1
- package/locales/en-au.global.js +1 -1
- package/locales/en-au.global.min.js +1 -1
- package/locales/en-gb.global.js +1 -1
- package/locales/en-gb.global.min.js +1 -1
- package/locales/en-nz.global.js +1 -1
- package/locales/en-nz.global.min.js +1 -1
- package/locales/eo.global.js +1 -1
- package/locales/eo.global.min.js +1 -1
- package/locales/es-us.global.js +1 -1
- package/locales/es-us.global.min.js +1 -1
- package/locales/es.global.js +1 -1
- package/locales/es.global.min.js +1 -1
- package/locales/et.global.js +1 -1
- package/locales/et.global.min.js +1 -1
- package/locales/eu.global.js +1 -1
- package/locales/eu.global.min.js +1 -1
- package/locales/fa.global.js +1 -1
- package/locales/fa.global.min.js +1 -1
- package/locales/fi.global.js +1 -1
- package/locales/fi.global.min.js +1 -1
- package/locales/fr-ca.global.js +1 -1
- package/locales/fr-ca.global.min.js +1 -1
- package/locales/fr-ch.global.js +1 -1
- package/locales/fr-ch.global.min.js +1 -1
- package/locales/fr.global.js +1 -1
- package/locales/fr.global.min.js +1 -1
- package/locales/gl.global.js +1 -1
- package/locales/gl.global.min.js +1 -1
- package/locales/he.global.js +1 -1
- package/locales/he.global.min.js +1 -1
- package/locales/hi.global.js +1 -1
- package/locales/hi.global.min.js +1 -1
- package/locales/hr.global.js +1 -1
- package/locales/hr.global.min.js +1 -1
- package/locales/hu.global.js +1 -1
- package/locales/hu.global.min.js +1 -1
- package/locales/hy-am.global.js +1 -1
- package/locales/hy-am.global.min.js +1 -1
- package/locales/id.global.js +1 -1
- package/locales/id.global.min.js +1 -1
- package/locales/is.global.js +1 -1
- package/locales/is.global.min.js +1 -1
- package/locales/it.global.js +1 -1
- package/locales/it.global.min.js +1 -1
- package/locales/ja.global.js +1 -1
- package/locales/ja.global.min.js +1 -1
- package/locales/ka.global.js +1 -1
- package/locales/ka.global.min.js +1 -1
- package/locales/kk.global.js +1 -1
- package/locales/kk.global.min.js +1 -1
- package/locales/km.global.js +1 -1
- package/locales/km.global.min.js +1 -1
- package/locales/ko.global.js +1 -1
- package/locales/ko.global.min.js +1 -1
- package/locales/ku.global.js +1 -1
- package/locales/ku.global.min.js +1 -1
- package/locales/lb.global.js +1 -1
- package/locales/lb.global.min.js +1 -1
- package/locales/lt.global.js +1 -1
- package/locales/lt.global.min.js +1 -1
- package/locales/lv.global.js +1 -1
- package/locales/lv.global.min.js +1 -1
- package/locales/mk.global.js +1 -1
- package/locales/mk.global.min.js +1 -1
- package/locales/ms.global.js +1 -1
- package/locales/ms.global.min.js +1 -1
- package/locales/nb.global.js +1 -1
- package/locales/nb.global.min.js +1 -1
- package/locales/ne.global.js +1 -1
- package/locales/ne.global.min.js +1 -1
- package/locales/nl.global.js +1 -1
- package/locales/nl.global.min.js +1 -1
- package/locales/nn.global.js +1 -1
- package/locales/nn.global.min.js +1 -1
- package/locales/pl.global.js +1 -1
- package/locales/pl.global.min.js +1 -1
- package/locales/pt-br.global.js +1 -1
- package/locales/pt-br.global.min.js +1 -1
- package/locales/pt.global.js +1 -1
- package/locales/pt.global.min.js +1 -1
- package/locales/ro.global.js +1 -1
- package/locales/ro.global.min.js +1 -1
- package/locales/ru.global.js +1 -1
- package/locales/ru.global.min.js +1 -1
- package/locales/si-lk.global.js +1 -1
- package/locales/si-lk.global.min.js +1 -1
- package/locales/sk.global.js +1 -1
- package/locales/sk.global.min.js +1 -1
- package/locales/sl.global.js +1 -1
- package/locales/sl.global.min.js +1 -1
- package/locales/sm.global.js +1 -1
- package/locales/sm.global.min.js +1 -1
- package/locales/sq.global.js +1 -1
- package/locales/sq.global.min.js +1 -1
- package/locales/sr-cyrl.global.js +1 -1
- package/locales/sr-cyrl.global.min.js +1 -1
- package/locales/sr.global.js +1 -1
- package/locales/sr.global.min.js +1 -1
- package/locales/sv.global.js +1 -1
- package/locales/sv.global.min.js +1 -1
- package/locales/ta-in.global.js +1 -1
- package/locales/ta-in.global.min.js +1 -1
- package/locales/th.global.js +1 -1
- package/locales/th.global.min.js +1 -1
- package/locales/tr.global.js +1 -1
- package/locales/tr.global.min.js +1 -1
- package/locales/ug.global.js +1 -1
- package/locales/ug.global.min.js +1 -1
- package/locales/uk.global.js +1 -1
- package/locales/uk.global.min.js +1 -1
- package/locales/uz-cy.global.js +1 -1
- package/locales/uz-cy.global.min.js +1 -1
- package/locales/uz.global.js +1 -1
- package/locales/uz.global.min.js +1 -1
- package/locales/vi.global.js +1 -1
- package/locales/vi.global.min.js +1 -1
- package/locales/zh-cn.global.js +1 -1
- package/locales/zh-cn.global.min.js +1 -1
- package/locales/zh-tw.global.js +1 -1
- package/locales/zh-tw.global.min.js +1 -1
- package/locales-all.global.js +1 -1
- package/locales-all.global.min.js +1 -1
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -1911,7 +1911,7 @@ class CalendarContent extends internalCommon.PureComponent {
|
|
|
1911
1911
|
let viewContext = this.buildViewContext(props.viewSpec, props.viewApi, props.options, props.dateProfileGenerator, props.dateEnv, props.theme, props.pluginHooks, props.dispatch, props.getCurrentData, props.emitter, props.calendarApi, this.registerInteractiveComponent, this.unregisterInteractiveComponent);
|
|
1912
1912
|
let viewLabelId = (toolbarConfig.header && toolbarConfig.header.hasTitle)
|
|
1913
1913
|
? this.state.viewLabelId
|
|
1914
|
-
:
|
|
1914
|
+
: undefined;
|
|
1915
1915
|
return (preact.createElement(internalCommon.ViewContextType.Provider, { value: viewContext },
|
|
1916
1916
|
toolbarConfig.header && (preact.createElement(Toolbar, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: toolbarConfig.header, titleId: viewLabelId }, toolbarProps))),
|
|
1917
1917
|
preact.createElement(ViewHarness, { liquid: viewVGrow, height: viewHeight, aspectRatio: viewAspectRatio, labeledById: viewLabelId },
|
|
@@ -2139,7 +2139,7 @@ function sliceEvents(props, allDay) {
|
|
|
2139
2139
|
return internalCommon.sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;
|
|
2140
2140
|
}
|
|
2141
2141
|
|
|
2142
|
-
const version = '6.1.
|
|
2142
|
+
const version = '6.1.12';
|
|
2143
2143
|
|
|
2144
2144
|
exports.JsonRequestError = internalCommon.JsonRequestError;
|
|
2145
2145
|
exports.Calendar = Calendar;
|
package/index.global.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
FullCalendar Core v6.1.
|
|
2
|
+
FullCalendar Core v6.1.12
|
|
3
3
|
Docs & License: https://fullcalendar.io
|
|
4
4
|
(c) 2023 Adam Shaw
|
|
5
5
|
*/
|
|
@@ -15,7 +15,9 @@ var FullCalendar = (function (exports) {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
function ensureElHasStyles(el) {
|
|
18
|
-
if (el.isConnected
|
|
18
|
+
if (el.isConnected && // sometimes true if SSR system simulates DOM
|
|
19
|
+
el.getRootNode // sometimes undefined if SSR system simulates DOM
|
|
20
|
+
) {
|
|
19
21
|
registerStylesRoot(el.getRootNode());
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -2671,10 +2673,10 @@ var FullCalendar = (function (exports) {
|
|
|
2671
2673
|
function computeRect(el) {
|
|
2672
2674
|
let rect = el.getBoundingClientRect();
|
|
2673
2675
|
return {
|
|
2674
|
-
left: rect.left + window.
|
|
2675
|
-
top: rect.top + window.
|
|
2676
|
-
right: rect.right + window.
|
|
2677
|
-
bottom: rect.bottom + window.
|
|
2676
|
+
left: rect.left + window.scrollX,
|
|
2677
|
+
top: rect.top + window.scrollY,
|
|
2678
|
+
right: rect.right + window.scrollX,
|
|
2679
|
+
bottom: rect.bottom + window.scrollY,
|
|
2678
2680
|
};
|
|
2679
2681
|
}
|
|
2680
2682
|
function computeClippedClientRect(el) {
|
|
@@ -2938,16 +2940,16 @@ var FullCalendar = (function (exports) {
|
|
|
2938
2940
|
}
|
|
2939
2941
|
class WindowScrollController extends ScrollController {
|
|
2940
2942
|
getScrollTop() {
|
|
2941
|
-
return window.
|
|
2943
|
+
return window.scrollY;
|
|
2942
2944
|
}
|
|
2943
2945
|
getScrollLeft() {
|
|
2944
|
-
return window.
|
|
2946
|
+
return window.scrollX;
|
|
2945
2947
|
}
|
|
2946
2948
|
setScrollTop(n) {
|
|
2947
|
-
window.scroll(window.
|
|
2949
|
+
window.scroll(window.scrollX, n);
|
|
2948
2950
|
}
|
|
2949
2951
|
setScrollLeft(n) {
|
|
2950
|
-
window.scroll(n, window.
|
|
2952
|
+
window.scroll(n, window.scrollY);
|
|
2951
2953
|
}
|
|
2952
2954
|
getScrollWidth() {
|
|
2953
2955
|
return document.documentElement.scrollWidth;
|
|
@@ -4274,7 +4276,7 @@ var FullCalendar = (function (exports) {
|
|
|
4274
4276
|
function getSegMeta(seg, todayRange, nowDate) {
|
|
4275
4277
|
let segRange = seg.eventRange.range;
|
|
4276
4278
|
return {
|
|
4277
|
-
isPast: segRange.end
|
|
4279
|
+
isPast: segRange.end <= (nowDate || todayRange.start),
|
|
4278
4280
|
isFuture: segRange.start >= (nowDate || todayRange.end),
|
|
4279
4281
|
isToday: todayRange && rangeContainsMarker(todayRange, segRange.start),
|
|
4280
4282
|
};
|
|
@@ -4818,8 +4820,8 @@ var FullCalendar = (function (exports) {
|
|
|
4818
4820
|
|
|
4819
4821
|
class SegHierarchy {
|
|
4820
4822
|
constructor(getEntryThickness = (entry) => {
|
|
4821
|
-
//
|
|
4822
|
-
return entry.thickness;
|
|
4823
|
+
// if no thickness known, assume 1 (if 0, so small it always fits)
|
|
4824
|
+
return entry.thickness || 1;
|
|
4823
4825
|
}) {
|
|
4824
4826
|
this.getEntryThickness = getEntryThickness;
|
|
4825
4827
|
// settings
|
|
@@ -4842,51 +4844,45 @@ var FullCalendar = (function (exports) {
|
|
|
4842
4844
|
let insertion = this.findInsertion(entry);
|
|
4843
4845
|
if (this.isInsertionValid(insertion, entry)) {
|
|
4844
4846
|
this.insertEntryAt(entry, insertion);
|
|
4845
|
-
return 1;
|
|
4846
4847
|
}
|
|
4847
|
-
|
|
4848
|
+
else {
|
|
4849
|
+
this.handleInvalidInsertion(insertion, entry, hiddenEntries);
|
|
4850
|
+
}
|
|
4848
4851
|
}
|
|
4849
4852
|
isInsertionValid(insertion, entry) {
|
|
4850
4853
|
return (this.maxCoord === -1 || insertion.levelCoord + this.getEntryThickness(entry) <= this.maxCoord) &&
|
|
4851
4854
|
(this.maxStackCnt === -1 || insertion.stackCnt < this.maxStackCnt);
|
|
4852
4855
|
}
|
|
4853
|
-
// returns number of new entries inserted
|
|
4854
4856
|
handleInvalidInsertion(insertion, entry, hiddenEntries) {
|
|
4855
4857
|
if (this.allowReslicing && insertion.touchingEntry) {
|
|
4856
|
-
|
|
4858
|
+
const hiddenEntry = Object.assign(Object.assign({}, entry), { span: intersectSpans(entry.span, insertion.touchingEntry.span) });
|
|
4859
|
+
hiddenEntries.push(hiddenEntry);
|
|
4860
|
+
this.splitEntry(entry, insertion.touchingEntry, hiddenEntries);
|
|
4861
|
+
}
|
|
4862
|
+
else {
|
|
4863
|
+
hiddenEntries.push(entry);
|
|
4857
4864
|
}
|
|
4858
|
-
hiddenEntries.push(entry);
|
|
4859
|
-
return 0;
|
|
4860
4865
|
}
|
|
4866
|
+
/*
|
|
4867
|
+
Does NOT add what hit the `barrier` into hiddenEntries. Should already be done.
|
|
4868
|
+
*/
|
|
4861
4869
|
splitEntry(entry, barrier, hiddenEntries) {
|
|
4862
|
-
let partCnt = 0;
|
|
4863
|
-
let splitHiddenEntries = [];
|
|
4864
4870
|
let entrySpan = entry.span;
|
|
4865
4871
|
let barrierSpan = barrier.span;
|
|
4866
4872
|
if (entrySpan.start < barrierSpan.start) {
|
|
4867
|
-
|
|
4873
|
+
this.insertEntry({
|
|
4868
4874
|
index: entry.index,
|
|
4869
4875
|
thickness: entry.thickness,
|
|
4870
4876
|
span: { start: entrySpan.start, end: barrierSpan.start },
|
|
4871
|
-
},
|
|
4877
|
+
}, hiddenEntries);
|
|
4872
4878
|
}
|
|
4873
4879
|
if (entrySpan.end > barrierSpan.end) {
|
|
4874
|
-
|
|
4880
|
+
this.insertEntry({
|
|
4875
4881
|
index: entry.index,
|
|
4876
4882
|
thickness: entry.thickness,
|
|
4877
4883
|
span: { start: barrierSpan.end, end: entrySpan.end },
|
|
4878
|
-
},
|
|
4884
|
+
}, hiddenEntries);
|
|
4879
4885
|
}
|
|
4880
|
-
if (partCnt) {
|
|
4881
|
-
hiddenEntries.push({
|
|
4882
|
-
index: entry.index,
|
|
4883
|
-
thickness: entry.thickness,
|
|
4884
|
-
span: intersectSpans(barrierSpan, entrySpan), // guaranteed to intersect
|
|
4885
|
-
}, ...splitHiddenEntries);
|
|
4886
|
-
return partCnt;
|
|
4887
|
-
}
|
|
4888
|
-
hiddenEntries.push(entry);
|
|
4889
|
-
return 0;
|
|
4890
4886
|
}
|
|
4891
4887
|
insertEntryAt(entry, insertion) {
|
|
4892
4888
|
let { entriesByLevel, levelCoords } = this;
|
|
@@ -4901,6 +4897,9 @@ var FullCalendar = (function (exports) {
|
|
|
4901
4897
|
}
|
|
4902
4898
|
this.stackCnts[buildEntryKey(entry)] = insertion.stackCnt;
|
|
4903
4899
|
}
|
|
4900
|
+
/*
|
|
4901
|
+
does not care about limits
|
|
4902
|
+
*/
|
|
4904
4903
|
findInsertion(newEntry) {
|
|
4905
4904
|
let { levelCoords, entriesByLevel, strictOrder, stackCnts } = this;
|
|
4906
4905
|
let levelCnt = levelCoords.length;
|
|
@@ -4910,7 +4909,7 @@ var FullCalendar = (function (exports) {
|
|
|
4910
4909
|
let touchingEntry = null;
|
|
4911
4910
|
let stackCnt = 0;
|
|
4912
4911
|
for (let trackingLevel = 0; trackingLevel < levelCnt; trackingLevel += 1) {
|
|
4913
|
-
|
|
4912
|
+
const trackingCoord = levelCoords[trackingLevel];
|
|
4914
4913
|
// if the current level is past the placed entry, we have found a good empty space and can stop.
|
|
4915
4914
|
// if strictOrder, keep finding more lateral intersections.
|
|
4916
4915
|
if (!strictOrder && trackingCoord >= candidateCoord + this.getEntryThickness(newEntry)) {
|
|
@@ -5139,10 +5138,14 @@ var FullCalendar = (function (exports) {
|
|
|
5139
5138
|
forPrint: false,
|
|
5140
5139
|
};
|
|
5141
5140
|
this.handleBeforePrint = () => {
|
|
5142
|
-
|
|
5141
|
+
flushSync(() => {
|
|
5142
|
+
this.setState({ forPrint: true });
|
|
5143
|
+
});
|
|
5143
5144
|
};
|
|
5144
5145
|
this.handleAfterPrint = () => {
|
|
5145
|
-
|
|
5146
|
+
flushSync(() => {
|
|
5147
|
+
this.setState({ forPrint: false });
|
|
5148
|
+
});
|
|
5146
5149
|
};
|
|
5147
5150
|
}
|
|
5148
5151
|
render() {
|
|
@@ -9604,7 +9607,7 @@ var FullCalendar = (function (exports) {
|
|
|
9604
9607
|
let viewContext = this.buildViewContext(props.viewSpec, props.viewApi, props.options, props.dateProfileGenerator, props.dateEnv, props.theme, props.pluginHooks, props.dispatch, props.getCurrentData, props.emitter, props.calendarApi, this.registerInteractiveComponent, this.unregisterInteractiveComponent);
|
|
9605
9608
|
let viewLabelId = (toolbarConfig.header && toolbarConfig.header.hasTitle)
|
|
9606
9609
|
? this.state.viewLabelId
|
|
9607
|
-
:
|
|
9610
|
+
: undefined;
|
|
9608
9611
|
return (y(ViewContextType.Provider, { value: viewContext },
|
|
9609
9612
|
toolbarConfig.header && (y(Toolbar, Object.assign({ ref: this.headerRef, extraClassName: "fc-header-toolbar", model: toolbarConfig.header, titleId: viewLabelId }, toolbarProps))),
|
|
9610
9613
|
y(ViewHarness, { liquid: viewVGrow, height: viewHeight, aspectRatio: viewAspectRatio, labeledById: viewLabelId },
|
|
@@ -9832,7 +9835,7 @@ var FullCalendar = (function (exports) {
|
|
|
9832
9835
|
return sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;
|
|
9833
9836
|
}
|
|
9834
9837
|
|
|
9835
|
-
const version = '6.1.
|
|
9838
|
+
const version = '6.1.12';
|
|
9836
9839
|
|
|
9837
9840
|
exports.Calendar = Calendar;
|
|
9838
9841
|
exports.Internal = internal;
|