@fullcalendar/core 7.0.0-beta.0 → 7.0.0-beta.1
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 +7 -7
- package/index.global.js +228 -146
- package/index.global.min.js +2 -2
- package/index.js +8 -8
- package/internal-common.cjs +147 -65
- package/internal-common.d.ts +50 -27
- package/internal-common.js +144 -61
- package/internal.cjs +4 -5
- package/internal.d.ts +1 -1
- package/internal.js +1 -1
- 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/preact.d.ts +6 -0
package/internal-common.js
CHANGED
|
@@ -4276,12 +4276,12 @@ function sliceEventStore(eventStore, eventUiBases, framingRange, nextDayThreshol
|
|
|
4276
4276
|
function hasBgRendering(def) {
|
|
4277
4277
|
return def.ui.display === 'background' || def.ui.display === 'inverse-background';
|
|
4278
4278
|
}
|
|
4279
|
-
function
|
|
4280
|
-
el.
|
|
4279
|
+
function setElEventRange(el, eventRange) {
|
|
4280
|
+
el.fcEventRange = eventRange;
|
|
4281
4281
|
}
|
|
4282
|
-
function
|
|
4283
|
-
return el.
|
|
4284
|
-
el.parentNode.
|
|
4282
|
+
function getElEventRange(el) {
|
|
4283
|
+
return el.fcEventRange ||
|
|
4284
|
+
el.parentNode.fcEventRange || // for the harness
|
|
4285
4285
|
null;
|
|
4286
4286
|
}
|
|
4287
4287
|
// event ui computation
|
|
@@ -4301,7 +4301,7 @@ function compileEventUi(eventDef, eventUiBases) {
|
|
|
4301
4301
|
}
|
|
4302
4302
|
function sortEventSegs(segs, eventOrderSpecs) {
|
|
4303
4303
|
let objs = segs.map(buildSegCompareObj);
|
|
4304
|
-
objs.sort((obj0, obj1) => compareByFieldSpecs(obj0, obj1, eventOrderSpecs));
|
|
4304
|
+
objs.sort((obj0, obj1) => compareByFieldSpecs(obj0, obj1, eventOrderSpecs)); // !!!
|
|
4305
4305
|
return objs.map((c) => c._seg);
|
|
4306
4306
|
}
|
|
4307
4307
|
// returns a object with all primitive props that can be compared
|
|
@@ -4314,29 +4314,23 @@ function buildSegCompareObj(seg) {
|
|
|
4314
4314
|
return Object.assign(Object.assign(Object.assign({}, eventDef.extendedProps), eventDef), { id: eventDef.publicId, start,
|
|
4315
4315
|
end, duration: end - start, allDay: Number(eventDef.allDay), _seg: seg });
|
|
4316
4316
|
}
|
|
4317
|
-
function
|
|
4317
|
+
function computeEventRangeDraggable(eventRange, context) {
|
|
4318
4318
|
let { pluginHooks } = context;
|
|
4319
4319
|
let transformers = pluginHooks.isDraggableTransformers;
|
|
4320
|
-
let { def, ui } =
|
|
4320
|
+
let { def, ui } = eventRange;
|
|
4321
4321
|
let val = ui.startEditable;
|
|
4322
4322
|
for (let transformer of transformers) {
|
|
4323
4323
|
val = transformer(val, def, ui, context);
|
|
4324
4324
|
}
|
|
4325
4325
|
return val;
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4328
|
-
return seg.isStart && seg.eventRange.ui.durationEditable && context.options.eventResizableFromStart;
|
|
4329
|
-
}
|
|
4330
|
-
function computeSegEndResizable(seg, context) {
|
|
4331
|
-
return seg.isEnd && seg.eventRange.ui.durationEditable;
|
|
4332
|
-
}
|
|
4333
|
-
function buildSegTimeText(seg, timeFormat, context, defaultDisplayEventTime, // defaults to true
|
|
4327
|
+
function buildEventRangeTimeText(eventRange, timeFormat, context, defaultDisplayEventTime, // defaults to true
|
|
4334
4328
|
defaultDisplayEventEnd, // defaults to true
|
|
4335
4329
|
startOverride, endOverride) {
|
|
4336
4330
|
let { dateEnv, options } = context;
|
|
4337
4331
|
let { displayEventTime, displayEventEnd } = options;
|
|
4338
|
-
let eventDef =
|
|
4339
|
-
let eventInstance =
|
|
4332
|
+
let eventDef = eventRange.def;
|
|
4333
|
+
let eventInstance = eventRange.instance;
|
|
4340
4334
|
if (displayEventTime == null) {
|
|
4341
4335
|
displayEventTime = defaultDisplayEventTime !== false;
|
|
4342
4336
|
}
|
|
@@ -4345,8 +4339,8 @@ startOverride, endOverride) {
|
|
|
4345
4339
|
}
|
|
4346
4340
|
let wholeEventStart = eventInstance.range.start;
|
|
4347
4341
|
let wholeEventEnd = eventInstance.range.end;
|
|
4348
|
-
let segStart = startOverride ||
|
|
4349
|
-
let segEnd = endOverride ||
|
|
4342
|
+
let segStart = startOverride || eventRange.range.start;
|
|
4343
|
+
let segEnd = endOverride || eventRange.range.end;
|
|
4350
4344
|
let isStartDay = startOfDay(wholeEventStart).valueOf() === startOfDay(segStart).valueOf();
|
|
4351
4345
|
let isEndDay = startOfDay(addMs(wholeEventEnd, -1)).valueOf() === startOfDay(addMs(segEnd, -1)).valueOf();
|
|
4352
4346
|
if (displayEventTime && !eventDef.allDay && (isStartDay || isEndDay)) {
|
|
@@ -4364,8 +4358,8 @@ startOverride, endOverride) {
|
|
|
4364
4358
|
}
|
|
4365
4359
|
return '';
|
|
4366
4360
|
}
|
|
4367
|
-
function
|
|
4368
|
-
let segRange =
|
|
4361
|
+
function getEventRangeMeta(eventRange, todayRange, nowDate) {
|
|
4362
|
+
let segRange = eventRange.range;
|
|
4369
4363
|
return {
|
|
4370
4364
|
isPast: segRange.end <= (nowDate || todayRange.start),
|
|
4371
4365
|
isFuture: segRange.start >= (nowDate || todayRange.end),
|
|
@@ -4415,8 +4409,8 @@ function buildEventRangeKey(eventRange) {
|
|
|
4415
4409
|
: `${eventRange.def.defId}:${eventRange.range.start.toISOString()}`;
|
|
4416
4410
|
// inverse-background events don't have specific instances. TODO: better solution
|
|
4417
4411
|
}
|
|
4418
|
-
function
|
|
4419
|
-
let { def, instance } =
|
|
4412
|
+
function getEventRangeAnchorAttrs(eventRange, context) {
|
|
4413
|
+
let { def, instance } = eventRange;
|
|
4420
4414
|
let { url } = def;
|
|
4421
4415
|
if (url) {
|
|
4422
4416
|
return { href: url };
|
|
@@ -6111,6 +6105,99 @@ class DayTableModel {
|
|
|
6111
6105
|
}
|
|
6112
6106
|
}
|
|
6113
6107
|
|
|
6108
|
+
const WHEEL_EVENT_NAMES = 'wheel mousewheel DomMouseScroll MozMousePixelScroll'.split(' ');
|
|
6109
|
+
/*
|
|
6110
|
+
Fires:
|
|
6111
|
+
- scrollStart (always user)
|
|
6112
|
+
- scroll
|
|
6113
|
+
- scrollEnd (always user)
|
|
6114
|
+
|
|
6115
|
+
NOTE: detection is complicated (w/ touch and wheel) because ScrollerSyncer needs to know about it,
|
|
6116
|
+
but are we sure we can't just ignore programmatic scrollTo() calls with a flag? and determine the
|
|
6117
|
+
the scroll-master simply by who was the newest scroller? Does passive:true do things asynchronously?
|
|
6118
|
+
*/
|
|
6119
|
+
class ScrollListener {
|
|
6120
|
+
constructor(el) {
|
|
6121
|
+
this.el = el;
|
|
6122
|
+
this.emitter = new Emitter();
|
|
6123
|
+
this.isScrolling = false;
|
|
6124
|
+
this.isTouching = false; // user currently has finger down?
|
|
6125
|
+
this.isRecentlyWheeled = false;
|
|
6126
|
+
this.isRecentlyScrolled = false;
|
|
6127
|
+
this.wheelWaiter = new DelayedRunner(this._handleWheelWaited.bind(this));
|
|
6128
|
+
this.scrollWaiter = new DelayedRunner(this._handleScrollWaited.bind(this));
|
|
6129
|
+
// Handlers
|
|
6130
|
+
// ----------------------------------------------------------------------------------------------
|
|
6131
|
+
this.handleScroll = () => {
|
|
6132
|
+
this.startScroll();
|
|
6133
|
+
this.emitter.trigger('scroll', this.isRecentlyWheeled, this.isTouching);
|
|
6134
|
+
this.isRecentlyScrolled = true;
|
|
6135
|
+
this.scrollWaiter.request(500);
|
|
6136
|
+
};
|
|
6137
|
+
// will fire *before* the scroll event is fired (might not cause a scroll)
|
|
6138
|
+
this.handleWheel = () => {
|
|
6139
|
+
this.isRecentlyWheeled = true;
|
|
6140
|
+
this.wheelWaiter.request(500);
|
|
6141
|
+
};
|
|
6142
|
+
// will fire *before* the scroll event is fired (might not cause a scroll)
|
|
6143
|
+
this.handleTouchStart = () => {
|
|
6144
|
+
this.isTouching = true;
|
|
6145
|
+
};
|
|
6146
|
+
this.handleTouchEnd = () => {
|
|
6147
|
+
this.isTouching = false;
|
|
6148
|
+
// if the user ended their touch, and the scroll area wasn't moving,
|
|
6149
|
+
// we consider this to be the end of the scroll.
|
|
6150
|
+
if (!this.isRecentlyScrolled) {
|
|
6151
|
+
this.endScroll(); // won't fire if already ended
|
|
6152
|
+
}
|
|
6153
|
+
};
|
|
6154
|
+
el.addEventListener('scroll', this.handleScroll);
|
|
6155
|
+
el.addEventListener('touchstart', this.handleTouchStart, { passive: true });
|
|
6156
|
+
el.addEventListener('touchend', this.handleTouchEnd);
|
|
6157
|
+
for (let eventName of WHEEL_EVENT_NAMES) {
|
|
6158
|
+
el.addEventListener(eventName, this.handleWheel, { passive: true });
|
|
6159
|
+
}
|
|
6160
|
+
}
|
|
6161
|
+
destroy() {
|
|
6162
|
+
let { el } = this;
|
|
6163
|
+
el.removeEventListener('scroll', this.handleScroll);
|
|
6164
|
+
el.removeEventListener('touchstart', this.handleTouchStart, { passive: true });
|
|
6165
|
+
el.removeEventListener('touchend', this.handleTouchEnd);
|
|
6166
|
+
for (let eventName of WHEEL_EVENT_NAMES) {
|
|
6167
|
+
el.removeEventListener(eventName, this.handleWheel, { passive: true });
|
|
6168
|
+
}
|
|
6169
|
+
}
|
|
6170
|
+
// Start / Stop
|
|
6171
|
+
// ----------------------------------------------------------------------------------------------
|
|
6172
|
+
startScroll() {
|
|
6173
|
+
if (!this.isScrolling) {
|
|
6174
|
+
this.isScrolling = true;
|
|
6175
|
+
this.emitter.trigger('scrollStart', this.isRecentlyWheeled, this.isTouching);
|
|
6176
|
+
}
|
|
6177
|
+
}
|
|
6178
|
+
endScroll() {
|
|
6179
|
+
if (this.isScrolling) {
|
|
6180
|
+
this.emitter.trigger('scrollEnd');
|
|
6181
|
+
this.isScrolling = false;
|
|
6182
|
+
this.isRecentlyScrolled = true;
|
|
6183
|
+
this.isRecentlyWheeled = false;
|
|
6184
|
+
this.scrollWaiter.clear();
|
|
6185
|
+
this.wheelWaiter.clear();
|
|
6186
|
+
}
|
|
6187
|
+
}
|
|
6188
|
+
_handleScrollWaited() {
|
|
6189
|
+
this.isRecentlyScrolled = false;
|
|
6190
|
+
// only end the scroll if not currently touching.
|
|
6191
|
+
// if touching, the scrolling will end later, on touchend.
|
|
6192
|
+
if (!this.isTouching) {
|
|
6193
|
+
this.endScroll(); // won't fire if already ended
|
|
6194
|
+
}
|
|
6195
|
+
}
|
|
6196
|
+
_handleWheelWaited() {
|
|
6197
|
+
this.isRecentlyWheeled = false;
|
|
6198
|
+
}
|
|
6199
|
+
}
|
|
6200
|
+
|
|
6114
6201
|
class Scroller extends DateComponent {
|
|
6115
6202
|
constructor() {
|
|
6116
6203
|
super(...arguments);
|
|
@@ -6130,6 +6217,7 @@ class Scroller extends DateComponent {
|
|
|
6130
6217
|
}
|
|
6131
6218
|
componentDidMount() {
|
|
6132
6219
|
const el = this.elRef.current; // TODO: make dynamic with useEffect
|
|
6220
|
+
this.listener = new ScrollListener(el);
|
|
6133
6221
|
this.disconnectSize = watchSize(el, (contentWidth, contentHeight) => {
|
|
6134
6222
|
const { props, context } = this;
|
|
6135
6223
|
const bottomScrollbarWidth = el.offsetHeight - el.clientHeight;
|
|
@@ -6160,13 +6248,20 @@ class Scroller extends DateComponent {
|
|
|
6160
6248
|
});
|
|
6161
6249
|
}
|
|
6162
6250
|
componentWillUnmount() {
|
|
6251
|
+
const { props } = this;
|
|
6163
6252
|
this.disconnectSize();
|
|
6253
|
+
this.listener.destroy();
|
|
6254
|
+
setRef(props.widthRef, null);
|
|
6255
|
+
setRef(props.heightRef, null);
|
|
6256
|
+
setRef(props.bottomScrollbarWidthRef, null);
|
|
6257
|
+
setRef(props.rightScrollbarWidthRef, null);
|
|
6258
|
+
setRef(props.leftScrollbarWidthRef, null);
|
|
6259
|
+
}
|
|
6260
|
+
endScroll() {
|
|
6261
|
+
this.listener.endScroll();
|
|
6164
6262
|
}
|
|
6165
6263
|
// Public API
|
|
6166
6264
|
// -----------------------------------------------------------------------------------------------
|
|
6167
|
-
get el() {
|
|
6168
|
-
return this.elRef.current;
|
|
6169
|
-
}
|
|
6170
6265
|
get x() {
|
|
6171
6266
|
const { isRtl } = this.context;
|
|
6172
6267
|
const el = this.elRef.current;
|
|
@@ -6186,6 +6281,12 @@ class Scroller extends DateComponent {
|
|
|
6186
6281
|
setNormalizedScrollX(el, isRtl, x);
|
|
6187
6282
|
}
|
|
6188
6283
|
}
|
|
6284
|
+
addScrollEndListener(handler) {
|
|
6285
|
+
this.listener.emitter.on('scrollEnd', handler);
|
|
6286
|
+
}
|
|
6287
|
+
removeScrollEndListener(handler) {
|
|
6288
|
+
this.listener.emitter.off('scrollEnd', handler);
|
|
6289
|
+
}
|
|
6189
6290
|
}
|
|
6190
6291
|
// Public API
|
|
6191
6292
|
// -------------------------------------------------------------------------------------------------
|
|
@@ -6680,38 +6781,20 @@ function buildDayRange(date) {
|
|
|
6680
6781
|
return { start, end };
|
|
6681
6782
|
}
|
|
6682
6783
|
|
|
6683
|
-
class ScrollResponder {
|
|
6684
|
-
constructor(_handleScroll) {
|
|
6685
|
-
this._handleScroll = _handleScroll;
|
|
6686
|
-
this.handleScroll = (scroll) => {
|
|
6687
|
-
this.queuedScroll = scroll;
|
|
6688
|
-
this.drain();
|
|
6689
|
-
};
|
|
6690
|
-
}
|
|
6691
|
-
drain() {
|
|
6692
|
-
if (this.queuedScroll) {
|
|
6693
|
-
if (this._handleScroll(this.queuedScroll)) {
|
|
6694
|
-
this.queuedScroll = undefined;
|
|
6695
|
-
}
|
|
6696
|
-
}
|
|
6697
|
-
}
|
|
6698
|
-
}
|
|
6699
|
-
|
|
6700
6784
|
class EventContainer extends BaseComponent {
|
|
6701
6785
|
constructor() {
|
|
6702
6786
|
super(...arguments);
|
|
6703
6787
|
this.handleEl = (el) => {
|
|
6704
6788
|
this.el = el;
|
|
6705
6789
|
if (el) {
|
|
6706
|
-
|
|
6790
|
+
setElEventRange(el, this.props.eventRange);
|
|
6707
6791
|
}
|
|
6708
6792
|
};
|
|
6709
6793
|
}
|
|
6710
6794
|
render() {
|
|
6711
6795
|
const { props, context } = this;
|
|
6712
6796
|
const { options } = context;
|
|
6713
|
-
const {
|
|
6714
|
-
const { eventRange } = seg;
|
|
6797
|
+
const { eventRange } = props;
|
|
6715
6798
|
const { ui } = eventRange;
|
|
6716
6799
|
const renderProps = {
|
|
6717
6800
|
event: new EventImpl(context, eventRange.def, eventRange.instance),
|
|
@@ -6720,12 +6803,12 @@ class EventContainer extends BaseComponent {
|
|
|
6720
6803
|
textColor: ui.textColor,
|
|
6721
6804
|
backgroundColor: ui.backgroundColor,
|
|
6722
6805
|
borderColor: ui.borderColor,
|
|
6723
|
-
isDraggable: !props.disableDragging &&
|
|
6724
|
-
isStartResizable: !props.disableResizing &&
|
|
6725
|
-
isEndResizable: !props.disableResizing &&
|
|
6806
|
+
isDraggable: !props.disableDragging && computeEventRangeDraggable(eventRange, context),
|
|
6807
|
+
isStartResizable: !props.disableResizing && props.isStart && eventRange.ui.durationEditable && options.eventResizableFromStart,
|
|
6808
|
+
isEndResizable: !props.disableResizing && props.isEnd && eventRange.ui.durationEditable,
|
|
6726
6809
|
isMirror: Boolean(props.isDragging || props.isResizing || props.isDateSelecting),
|
|
6727
|
-
isStart: Boolean(
|
|
6728
|
-
isEnd: Boolean(
|
|
6810
|
+
isStart: Boolean(props.isStart),
|
|
6811
|
+
isEnd: Boolean(props.isEnd),
|
|
6729
6812
|
isPast: Boolean(props.isPast),
|
|
6730
6813
|
isFuture: Boolean(props.isFuture),
|
|
6731
6814
|
isToday: Boolean(props.isToday),
|
|
@@ -6735,13 +6818,13 @@ class EventContainer extends BaseComponent {
|
|
|
6735
6818
|
};
|
|
6736
6819
|
return (createElement(ContentContainer, Object.assign({}, props /* contains children */, { elRef: this.handleEl, elClasses: [
|
|
6737
6820
|
...getEventClassNames(renderProps),
|
|
6738
|
-
...
|
|
6821
|
+
...eventRange.ui.classNames,
|
|
6739
6822
|
...(props.elClasses || []),
|
|
6740
6823
|
], renderProps: renderProps, generatorName: "eventContent", customGenerator: options.eventContent, defaultGenerator: props.defaultGenerator, classNameGenerator: options.eventClassNames, didMount: options.eventDidMount, willUnmount: options.eventWillUnmount })));
|
|
6741
6824
|
}
|
|
6742
6825
|
componentDidUpdate(prevProps) {
|
|
6743
|
-
if (this.el && this.props.
|
|
6744
|
-
|
|
6826
|
+
if (this.el && this.props.eventRange !== prevProps.eventRange) {
|
|
6827
|
+
setElEventRange(this.el, this.props.eventRange);
|
|
6745
6828
|
}
|
|
6746
6829
|
}
|
|
6747
6830
|
}
|
|
@@ -6751,14 +6834,14 @@ class StandardEvent extends BaseComponent {
|
|
|
6751
6834
|
render() {
|
|
6752
6835
|
let { props, context } = this;
|
|
6753
6836
|
let { options } = context;
|
|
6754
|
-
let {
|
|
6755
|
-
let { ui } =
|
|
6837
|
+
let { eventRange } = props;
|
|
6838
|
+
let { ui } = eventRange;
|
|
6756
6839
|
let timeFormat = options.eventTimeFormat || props.defaultTimeFormat;
|
|
6757
|
-
let timeText =
|
|
6840
|
+
let timeText = buildEventRangeTimeText(eventRange, timeFormat, context, props.defaultDisplayEventTime, props.defaultDisplayEventEnd, props.startOverride, props.endOverride);
|
|
6758
6841
|
return (createElement(EventContainer, Object.assign({}, props /* includes elRef */, { elTag: "a", elStyle: {
|
|
6759
6842
|
borderColor: ui.borderColor,
|
|
6760
6843
|
backgroundColor: ui.backgroundColor,
|
|
6761
|
-
}, elAttrs:
|
|
6844
|
+
}, elAttrs: getEventRangeAnchorAttrs(eventRange, context), defaultGenerator: renderInnerContent$1, timeText: timeText }), (InnerContent, eventContentArg) => (createElement(Fragment, null,
|
|
6762
6845
|
createElement(InnerContent, { elTag: "div", elClasses: ['fc-event-inner'], elStyle: { color: eventContentArg.textColor } }),
|
|
6763
6846
|
Boolean(eventContentArg.isStartResizable) && (createElement("div", { className: "fc-event-resizer fc-event-resizer-start" })),
|
|
6764
6847
|
Boolean(eventContentArg.isEndResizable) && (createElement("div", { className: "fc-event-resizer fc-event-resizer-end" }))))));
|
|
@@ -6784,8 +6867,8 @@ const NowIndicatorContainer = (props) => (createElement(ViewContextType.Consumer
|
|
|
6784
6867
|
class BgEvent extends BaseComponent {
|
|
6785
6868
|
render() {
|
|
6786
6869
|
let { props } = this;
|
|
6787
|
-
let {
|
|
6788
|
-
return (createElement(EventContainer, { elTag: "div", elClasses: ['fc-bg-event'], elStyle: { backgroundColor:
|
|
6870
|
+
let { eventRange } = props;
|
|
6871
|
+
return (createElement(EventContainer, { elTag: "div", elClasses: ['fc-bg-event'], elStyle: { backgroundColor: eventRange.ui.backgroundColor }, defaultGenerator: renderInnerContent, eventRange: eventRange, isStart: props.isStart, isEnd: props.isEnd, timeText: "", isDragging: false, isResizing: false, isDateSelecting: false, isSelected: false, isPast: props.isPast, isFuture: props.isFuture, isToday: props.isToday, disableDragging: true, disableResizing: true }));
|
|
6789
6872
|
}
|
|
6790
6873
|
}
|
|
6791
6874
|
function renderInnerContent(props) {
|
|
@@ -7233,4 +7316,4 @@ class CustomRenderingStore extends Store {
|
|
|
7233
7316
|
}
|
|
7234
7317
|
}
|
|
7235
7318
|
|
|
7236
|
-
export { EventImpl as $, memoizeObjArg as A, BaseComponent as B, ContentContainer as C, DelayedRunner as D, isPropsEqual as E, Emitter as F, getInitialDate as G, rangeContainsMarker as H, createEmptyEventStore as I, reduceCurrentDate as J, reduceEventStore as K, rezoneEventStoreDates as L, mergeRawOptions as M, BASE_OPTION_REFINERS as N, CALENDAR_LISTENER_REFINERS as O, CALENDAR_OPTION_REFINERS as P, COMPLEX_OPTION_COMPARATORS as Q, VIEW_OPTION_REFINERS as R, DateEnv as S, Theme as T, DateProfileGenerator as U, ViewContextType as V, createEventUi as W, parseBusinessHours as X, Interaction as Y,
|
|
7319
|
+
export { EventImpl as $, memoizeObjArg as A, BaseComponent as B, ContentContainer as C, DelayedRunner as D, isPropsEqual as E, Emitter as F, getInitialDate as G, rangeContainsMarker as H, createEmptyEventStore as I, reduceCurrentDate as J, reduceEventStore as K, rezoneEventStoreDates as L, mergeRawOptions as M, BASE_OPTION_REFINERS as N, CALENDAR_LISTENER_REFINERS as O, CALENDAR_OPTION_REFINERS as P, COMPLEX_OPTION_COMPARATORS as Q, VIEW_OPTION_REFINERS as R, DateEnv as S, Theme as T, DateProfileGenerator as U, ViewContextType as V, createEventUi as W, parseBusinessHours as X, Interaction as Y, getElEventRange as Z, elementClosest as _, mapHash as a, getSlotClassNames as a$, listenBySelector as a0, listenToHoverBySelector as a1, PureComponent as a2, buildViewContext as a3, parseInteractionSettings as a4, interactionSettingsStore as a5, getNow as a6, getIsHeightAuto as a7, CalendarImpl as a8, flushSync as a9, removeExact as aA, memoizeArraylike as aB, memoizeHashlike as aC, intersectRects as aD, pointInsideRect as aE, constrainPoint as aF, getRectCenter as aG, diffPoints as aH, translateRect as aI, compareObjs as aJ, collectFromHash as aK, findElements as aL, findDirectChildren as aM, removeElement as aN, applyStyle as aO, elementMatches as aP, getEventTargetViaRoot as aQ, getUniqueDomId as aR, parseClassNames as aS, fracToCssDim as aT, mergeEventStores as aU, getRelevantEvents as aV, eventTupleToStore as aW, combineEventUis as aX, Splitter as aY, getDayClassNames as aZ, getDateMeta as a_, CalendarRoot as aa, RenderId as ab, ensureElHasStyles as ac, applyStyleProp as ad, sliceEventStore as ae, JsonRequestError as af, createContext as ag, refineProps as ah, createEventInstance as ai, parseEventDef as aj, refineEventDef as ak, padStart as al, isInt as am, parseFieldSpecs as an, compareByFieldSpecs as ao, flexibleCompare as ap, preventSelection as aq, allowSelection as ar, preventContextMenu as as, allowContextMenu as at, compareNumbers as au, enableCursor as av, disableCursor as aw, computeVisibleDayRange as ax, isMultiDayRange as ay, diffDates as az, buildViewClassNames as b, setNormalizedScrollX as b$, setStateDimMap as b0, isDimMapsEqual as b1, isDimsEqual as b2, watchSize as b3, watchWidth as b4, watchHeight as b5, afterSize as b6, buildNavLinkAttrs as b7, preventDefault as b8, whenTransitionDone as b9, wholeDivideDurations as bA, formatIsoTimeString as bB, formatDayString as bC, buildIsoString as bD, formatIsoMonthStr as bE, NamedTimeZoneImpl as bF, parse as bG, SegHierarchy as bH, buildEntryKey as bI, getEntrySpanEnd as bJ, binarySearch as bK, groupIntersectingEntries as bL, intersectSpans as bM, interactionSettingsToStore as bN, ElementDragging as bO, config as bP, parseDragMeta as bQ, DaySeriesModel as bR, hasBgRendering as bS, buildEventRangeTimeText as bT, sortEventSegs as bU, getEventRangeMeta as bV, buildEventRangeKey as bW, getEventRangeAnchorAttrs as bX, DayTableModel as bY, Scroller as bZ, getNormalizedScrollX as b_, computeInnerRect as ba, computeEdges as bb, getClippingParents as bc, computeRect as bd, rangesEqual as be, rangesIntersect as bf, rangeContainsRange as bg, PositionCache as bh, ScrollController as bi, ElementScrollController as bj, WindowScrollController as bk, DateComponent as bl, isDateSpansEqual as bm, addMs as bn, addWeeks as bo, diffWeeks as bp, diffWholeWeeks as bq, diffDayAndTime as br, diffDays as bs, isValidDate as bt, asCleanDays as bu, multiplyDuration as bv, addDurations as bw, asRoughMinutes as bx, asRoughSeconds as by, asRoughMs as bz, greatestDurationDenominator as c, Slicer as c0, applyMutationToEventStore as c1, isPropsValid as c2, isInteractionValid as c3, isDateSelectionValid as c4, setRef as c5, getStickyFooterScrollbar as c6, getStickyHeaderDates as c7, getScrollerSyncerClass as c8, getScrollbarWidths as c9, RefMap as ca, getIsRtlScrollbarOnLeft as cb, NowTimer as cc, StandardEvent as cd, NowIndicatorContainer as ce, DayCellContainer as cf, hasCustomDayCellContent as cg, EventContainer as ch, renderFill as ci, BgEvent as cj, WeekNumberContainer as ck, MoreLinkContainer as cl, computeEarliestSegStart as cm, ViewContainer as cn, triggerDateSelect as co, getDefaultEventEnd as cp, injectStyles as cq, buildElAttrs as cr, CustomRenderingStore as cs, createDuration as d, BASE_OPTION_DEFAULTS as e, arrayToHash as f, guid as g, filterHash as h, isArraysEqual as i, buildEventSourceRefiners as j, formatWithOrdinals as k, buildRangeApiWithTimeZone as l, mergeProps as m, identity as n, intersectRanges as o, parseEventSource as p, startOfDay as q, requestJson as r, subtractDurations as s, addDays as t, unpromisify as u, hashValuesToArray as v, buildEventApis as w, createFormatter as x, diffWholeDays as y, memoize as z };
|
package/internal.cjs
CHANGED
|
@@ -35,7 +35,6 @@ exports.NowTimer = internalCommon.NowTimer;
|
|
|
35
35
|
exports.PositionCache = internalCommon.PositionCache;
|
|
36
36
|
exports.RefMap = internalCommon.RefMap;
|
|
37
37
|
exports.ScrollController = internalCommon.ScrollController;
|
|
38
|
-
exports.ScrollResponder = internalCommon.ScrollResponder;
|
|
39
38
|
exports.Scroller = internalCommon.Scroller;
|
|
40
39
|
exports.SegHierarchy = internalCommon.SegHierarchy;
|
|
41
40
|
exports.Slicer = internalCommon.Slicer;
|
|
@@ -64,9 +63,9 @@ exports.buildElAttrs = internalCommon.buildElAttrs;
|
|
|
64
63
|
exports.buildEntryKey = internalCommon.buildEntryKey;
|
|
65
64
|
exports.buildEventApis = internalCommon.buildEventApis;
|
|
66
65
|
exports.buildEventRangeKey = internalCommon.buildEventRangeKey;
|
|
66
|
+
exports.buildEventRangeTimeText = internalCommon.buildEventRangeTimeText;
|
|
67
67
|
exports.buildIsoString = internalCommon.buildIsoString;
|
|
68
68
|
exports.buildNavLinkAttrs = internalCommon.buildNavLinkAttrs;
|
|
69
|
-
exports.buildSegTimeText = internalCommon.buildSegTimeText;
|
|
70
69
|
exports.collectFromHash = internalCommon.collectFromHash;
|
|
71
70
|
exports.combineEventUis = internalCommon.combineEventUis;
|
|
72
71
|
exports.compareByFieldSpecs = internalCommon.compareByFieldSpecs;
|
|
@@ -108,8 +107,10 @@ exports.getClippingParents = internalCommon.getClippingParents;
|
|
|
108
107
|
exports.getDateMeta = internalCommon.getDateMeta;
|
|
109
108
|
exports.getDayClassNames = internalCommon.getDayClassNames;
|
|
110
109
|
exports.getDefaultEventEnd = internalCommon.getDefaultEventEnd;
|
|
111
|
-
exports.
|
|
110
|
+
exports.getElEventRange = internalCommon.getElEventRange;
|
|
112
111
|
exports.getEntrySpanEnd = internalCommon.getEntrySpanEnd;
|
|
112
|
+
exports.getEventRangeAnchorAttrs = internalCommon.getEventRangeAnchorAttrs;
|
|
113
|
+
exports.getEventRangeMeta = internalCommon.getEventRangeMeta;
|
|
113
114
|
exports.getEventTargetViaRoot = internalCommon.getEventTargetViaRoot;
|
|
114
115
|
exports.getIsHeightAuto = internalCommon.getIsHeightAuto;
|
|
115
116
|
exports.getIsRtlScrollbarOnLeft = internalCommon.getIsRtlScrollbarOnLeft;
|
|
@@ -118,8 +119,6 @@ exports.getRectCenter = internalCommon.getRectCenter;
|
|
|
118
119
|
exports.getRelevantEvents = internalCommon.getRelevantEvents;
|
|
119
120
|
exports.getScrollbarWidths = internalCommon.getScrollbarWidths;
|
|
120
121
|
exports.getScrollerSyncerClass = internalCommon.getScrollerSyncerClass;
|
|
121
|
-
exports.getSegAnchorAttrs = internalCommon.getSegAnchorAttrs;
|
|
122
|
-
exports.getSegMeta = internalCommon.getSegMeta;
|
|
123
122
|
exports.getSlotClassNames = internalCommon.getSlotClassNames;
|
|
124
123
|
exports.getStickyFooterScrollbar = internalCommon.getStickyFooterScrollbar;
|
|
125
124
|
exports.getStickyHeaderDates = internalCommon.getStickyHeaderDates;
|
package/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { dn as Action, aC as BASE_OPTION_DEFAULTS, dQ as BaseComponent, aw as BaseOptionRefiners, ax as BaseOptionsRefined,
|
|
1
|
+
export { dn as Action, aC as BASE_OPTION_DEFAULTS, dQ as BaseComponent, aw as BaseOptionRefiners, ax as BaseOptionsRefined, e9 as BgEvent, dq as CalendarContentProps, dp as CalendarContext, cj as CalendarData, C as CalendarImpl, aB as CalendarListenerRefiners, dr as CalendarRoot, dL as Constraint, eq as ContentContainer, w as CustomContentGenerator, er as CustomRendering, ak as CustomRenderingStore, ci as DateComponent, cK as DateEnv, cM as DateFormatter, cq as DateMarker, bO as DateMeta, eg as DatePointTransform, cl as DateProfile, cm as DateProfileGenerator, c3 as DateRange, co as DateSpan, eh as DateSpanTransform, e4 as DayCellContainer, ds as DaySeriesModel, dC as DayTableCell, dD as DayTableModel, dS as DelayedRunner, av as Dictionary, x as DidMountHandler, dk as DragMeta, dj as DragMetaInput, en as ElProps, dg as ElementDragging, cb as ElementScrollController, c2 as Emitter, e7 as EventContainer, aF as EventDef, aG as EventDefHash, df as EventDropTransformers, el as EventImpl, aH as EventInstance, aI as EventInstanceHash, dt as EventInteractionState, dJ as EventMutation, aK as EventRefined, aM as EventRefiners, ch as EventSegUiInteractionState, cU as EventSourceDef, cV as EventSourceRefined, cW as EventSourceRefiners, bA as EventStore, aL as EventTuple, bG as EventUi, bF as EventUiHash, dc as Hit, au as Identity, ep as InnerContainerFunc, d8 as Interaction, d6 as InteractionSettings, d7 as InteractionSettingsStore, b8 as MemoiseArrayFunc, b7 as MemoizeHashFunc, e6 as MinimalEventProps, ec as MoreLinkContainer, e1 as MountArg, cS as NamedTimeZoneImpl, e3 as NowIndicatorContainer, e0 as NowTimer, aQ as OrderSpec, b as PluginDef, be as Point, db as PointerDragEvent, c9 as PositionCache, az as RawOptionsFromRefiners, bd as Rect, di as RecurringType, d_ as RefMap, aA as RefinedOptionsFromRefiners, ca as ScrollController, dE as Scroller, dX as ScrollerInterface, dY as ScrollerSyncerInterface, cg as Seg, cZ as SegEntry, c$ as SegGroup, d0 as SegHierarchy, c_ as SegInsertion, cY as SegRect, cX as SegSpan, dH as SlicedProps, dI as Slicer, bJ as SplittableProps, bK as Splitter, e2 as StandardEvent, cd as Theme, cN as VerboseFormattingArg, ef as ViewContainer, ee as ViewContainerProps, ce as ViewContext, cf as ViewContextType, ay as ViewOptionsRefined, ck as ViewProps, dm as ViewPropsTransformer, cn as ViewSpec, eb as WeekNumberContainer, ea as WeekNumberContainerProps, W as WillUnmountHandler, cc as WindowScrollController, cr as addDays, cE as addDurations, ct as addMs, cu as addWeeks, bV as afterSize, aZ as allowContextMenu, aX as allowSelection, dK as applyMutationToEventStore, bt as applyStyle, cC as asCleanDays, cF as asRoughMinutes, cH as asRoughMs, cG as asRoughSeconds, d3 as binarySearch, eo as buildElAttrs, d1 as buildEntryKey, em as buildEventApis, dA as buildEventRangeKey, dx as buildEventRangeTimeText, cQ as buildIsoString, bW as buildNavLinkAttrs, bp as collectFromHash, bH as combineEventUis, aU as compareByFieldSpecs, a_ as compareNumbers, bo as compareObjs, ed as computeEarliestSegStart, b_ as computeEdges, bZ as computeInnerRect, c0 as computeRect, b2 as computeVisibleDayRange, dh as config, bh as constrainPoint, cB as createDuration, bB as createEmptyEventStore, aJ as createEventInstance, bI as createEventUi, cL as createFormatter, dd as dateSelectionJoinTransformer, b4 as diffDates, cy as diffDayAndTime, cz as diffDays, bj as diffPoints, cv as diffWeeks, cx as diffWholeDays, cw as diffWholeWeeks, b0 as disableCursor, bv as elementClosest, bu as elementMatches, a$ as enableCursor, de as eventDragMutationMassager, bE as eventTupleToStore, bm as filterHash, br as findDirectChildren, bq as findElements, aV as flexibleCompare, cP as formatDayString, cR as formatIsoMonthStr, cO as formatIsoTimeString, bz as fracToCssDim, b$ as getClippingParents, bM as getDateMeta, bL as getDayClassNames, ej as getDefaultEventEnd, dw as getElEventRange, d2 as getEntrySpanEnd, dB as getEventRangeAnchorAttrs, dz as getEventRangeMeta, bw as getEventTargetViaRoot, dV as getIsHeightAuto, d$ as getIsRtlScrollbarOnLeft, dF as getNormalizedScrollX, bi as getRectCenter, bD as getRelevantEvents, dZ as getScrollbarWidths, dW as getScrollerSyncerClass, bN as getSlotClassNames, dT as getStickyFooterScrollbar, dU as getStickyHeaderDates, bx as getUniqueDomId, cJ as greatestDurationDenominator, d4 as groupIntersectingEntries, b1 as guid, dv as hasBgRendering, e5 as hasCustomDayCellContent, aD as identity, ek as injectStyles, da as interactionSettingsStore, d9 as interactionSettingsToStore, c5 as intersectRanges, bf as intersectRects, d5 as intersectSpans, b6 as isArraysEqual, dO as isDateSelectionValid, cp as isDateSpansEqual, bQ as isDimMapsEqual, bR as isDimsEqual, aS as isInt, dN as isInteractionValid, b3 as isMultiDayRange, bn as isPropsEqual, dM as isPropsValid, cA as isValidDate, bl as mapHash, b9 as memoize, bb as memoizeArraylike, bc as memoizeHashlike, ba as memoizeObjArg, bC as mergeEventStores, cD as multiplyDuration, aR as padStart, aP as parseBusinessHours, by as parseClassNames, dl as parseDragMeta, aN as parseEventDef, aT as parseFieldSpecs, cT as parseMarker, bg as pointInsideRect, aY as preventContextMenu, bX as preventDefault, aW as preventSelection, c4 as rangeContainsMarker, c8 as rangeContainsRange, c6 as rangesEqual, c7 as rangesIntersect, aO as refineEventDef, aE as refineProps, bs as removeElement, b5 as removeExact, e8 as renderFill, dP as requestJson, dG as setNormalizedScrollX, dR as setRef, bP as setStateDimMap, du as sliceEventStore, dy as sortEventSegs, cs as startOfDay, bk as translateRect, ei as triggerDateSelect, c1 as unpromisify, bU as watchHeight, bS as watchSize, bT as watchWidth, bY as whenTransitionDone, cI as wholeDivideDurations } from './internal-common.js';
|
|
2
2
|
import 'preact';
|
|
3
3
|
import './preact.js';
|
|
4
4
|
import './index.js';
|
package/internal.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { e as BASE_OPTION_DEFAULTS, B as BaseComponent,
|
|
1
|
+
export { e as BASE_OPTION_DEFAULTS, B as BaseComponent, cj as BgEvent, a8 as CalendarImpl, aa as CalendarRoot, C as ContentContainer, cs as CustomRenderingStore, bl as DateComponent, S as DateEnv, U as DateProfileGenerator, cf as DayCellContainer, bR as DaySeriesModel, bY as DayTableModel, D as DelayedRunner, bO as ElementDragging, bj as ElementScrollController, F as Emitter, ch as EventContainer, $ as EventImpl, Y as Interaction, cl as MoreLinkContainer, bF as NamedTimeZoneImpl, ce as NowIndicatorContainer, cc as NowTimer, bh as PositionCache, ca as RefMap, bi as ScrollController, bZ as Scroller, bH as SegHierarchy, c0 as Slicer, aY as Splitter, cd as StandardEvent, T as Theme, cn as ViewContainer, V as ViewContextType, ck as WeekNumberContainer, bk as WindowScrollController, t as addDays, bw as addDurations, bn as addMs, bo as addWeeks, b6 as afterSize, at as allowContextMenu, ar as allowSelection, c1 as applyMutationToEventStore, aO as applyStyle, bu as asCleanDays, bx as asRoughMinutes, bz as asRoughMs, by as asRoughSeconds, bK as binarySearch, cr as buildElAttrs, bI as buildEntryKey, w as buildEventApis, bW as buildEventRangeKey, bT as buildEventRangeTimeText, bD as buildIsoString, b7 as buildNavLinkAttrs, aK as collectFromHash, aX as combineEventUis, ao as compareByFieldSpecs, au as compareNumbers, aJ as compareObjs, cm as computeEarliestSegStart, bb as computeEdges, ba as computeInnerRect, bd as computeRect, ax as computeVisibleDayRange, bP as config, aF as constrainPoint, d as createDuration, I as createEmptyEventStore, ai as createEventInstance, W as createEventUi, x as createFormatter, az as diffDates, br as diffDayAndTime, bs as diffDays, aH as diffPoints, bp as diffWeeks, y as diffWholeDays, bq as diffWholeWeeks, aw as disableCursor, _ as elementClosest, aP as elementMatches, av as enableCursor, aW as eventTupleToStore, h as filterHash, aM as findDirectChildren, aL as findElements, ap as flexibleCompare, bC as formatDayString, bE as formatIsoMonthStr, bB as formatIsoTimeString, aT as fracToCssDim, bc as getClippingParents, a_ as getDateMeta, aZ as getDayClassNames, cp as getDefaultEventEnd, Z as getElEventRange, bJ as getEntrySpanEnd, bX as getEventRangeAnchorAttrs, bV as getEventRangeMeta, aQ as getEventTargetViaRoot, a7 as getIsHeightAuto, cb as getIsRtlScrollbarOnLeft, b_ as getNormalizedScrollX, aG as getRectCenter, aV as getRelevantEvents, c9 as getScrollbarWidths, c8 as getScrollerSyncerClass, a$ as getSlotClassNames, c6 as getStickyFooterScrollbar, c7 as getStickyHeaderDates, aR as getUniqueDomId, c as greatestDurationDenominator, bL as groupIntersectingEntries, g as guid, bS as hasBgRendering, cg as hasCustomDayCellContent, n as identity, cq as injectStyles, a5 as interactionSettingsStore, bN as interactionSettingsToStore, o as intersectRanges, aD as intersectRects, bM as intersectSpans, i as isArraysEqual, c4 as isDateSelectionValid, bm as isDateSpansEqual, b1 as isDimMapsEqual, b2 as isDimsEqual, am as isInt, c3 as isInteractionValid, ay as isMultiDayRange, E as isPropsEqual, c2 as isPropsValid, bt as isValidDate, a as mapHash, z as memoize, aB as memoizeArraylike, aC as memoizeHashlike, A as memoizeObjArg, aU as mergeEventStores, bv as multiplyDuration, al as padStart, X as parseBusinessHours, aS as parseClassNames, bQ as parseDragMeta, aj as parseEventDef, an as parseFieldSpecs, bG as parseMarker, aE as pointInsideRect, as as preventContextMenu, b8 as preventDefault, aq as preventSelection, H as rangeContainsMarker, bg as rangeContainsRange, be as rangesEqual, bf as rangesIntersect, ak as refineEventDef, ah as refineProps, aN as removeElement, aA as removeExact, ci as renderFill, r as requestJson, b$ as setNormalizedScrollX, c5 as setRef, b0 as setStateDimMap, ae as sliceEventStore, bU as sortEventSegs, q as startOfDay, aI as translateRect, co as triggerDateSelect, u as unpromisify, b5 as watchHeight, b3 as watchSize, b4 as watchWidth, b9 as whenTransitionDone, bA as wholeDivideDurations } from './internal-common.js';
|
|
2
2
|
import 'preact';
|
|
3
3
|
import 'preact/compat';
|
package/locales/af.global.js
CHANGED
package/locales/af.global.min.js
CHANGED
package/locales/ar-dz.global.js
CHANGED
package/locales/ar-kw.global.js
CHANGED
package/locales/ar-ly.global.js
CHANGED
package/locales/ar-ma.global.js
CHANGED
package/locales/ar-sa.global.js
CHANGED
package/locales/ar-tn.global.js
CHANGED
package/locales/ar.global.js
CHANGED
package/locales/ar.global.min.js
CHANGED
package/locales/az.global.js
CHANGED
package/locales/az.global.min.js
CHANGED
package/locales/bg.global.js
CHANGED
package/locales/bg.global.min.js
CHANGED
package/locales/bn.global.js
CHANGED
package/locales/bn.global.min.js
CHANGED