fullcalendar 6.1.1 → 6.1.3

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.global.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- FullCalendar Standard Bundle v6.1.1
2
+ FullCalendar Standard Bundle v6.1.3
3
3
  Docs & License: https://fullcalendar.io/docs/initialize-globals
4
4
  (c) 2023 Adam Shaw
5
5
  */
@@ -2392,20 +2392,20 @@ var FullCalendar = (function (exports) {
2392
2392
  useDefault = true;
2393
2393
  }
2394
2394
  else {
2395
- if (options.handleCustomRendering) { // non-Preact (likely React)
2396
- currentGeneratorMeta = customGeneratorRes;
2395
+ const isObject = customGeneratorRes && typeof customGeneratorRes === 'object'; // non-null
2396
+ if (isObject && ('html' in customGeneratorRes)) {
2397
+ attrs.dangerouslySetInnerHTML = { __html: customGeneratorRes.html };
2397
2398
  }
2398
- else { // preact or { html, domNodes }
2399
- const isObject = typeof customGeneratorRes === 'object';
2400
- if (isObject && ('html' in customGeneratorRes)) {
2401
- attrs.dangerouslySetInnerHTML = { __html: customGeneratorRes.html };
2402
- }
2403
- else if (isObject && ('domNodes' in customGeneratorRes)) {
2404
- queuedDomNodes = Array.prototype.slice.call(customGeneratorRes.domNodes);
2405
- }
2406
- else {
2407
- innerContent = customGeneratorRes;
2408
- }
2399
+ else if (isObject && ('domNodes' in customGeneratorRes)) {
2400
+ queuedDomNodes = Array.prototype.slice.call(customGeneratorRes.domNodes);
2401
+ }
2402
+ else if (!isObject && typeof customGeneratorRes !== 'function') {
2403
+ // primitive value (like string or number)
2404
+ innerContent = customGeneratorRes;
2405
+ }
2406
+ else {
2407
+ // an exotic object for handleCustomRendering
2408
+ currentGeneratorMeta = customGeneratorRes;
2409
2409
  }
2410
2410
  }
2411
2411
  }
@@ -2437,8 +2437,8 @@ var FullCalendar = (function (exports) {
2437
2437
  if (handleCustomRendering) {
2438
2438
  const generatorMeta = (_a = this.currentGeneratorMeta) !== null && _a !== void 0 ? _a : customRenderingMetaMap === null || customRenderingMetaMap === void 0 ? void 0 : customRenderingMetaMap[props.generatorName];
2439
2439
  if (generatorMeta) {
2440
- handleCustomRendering(Object.assign({ id: this.id, isActive, containerEl: this.base, reportNewContainerEl: this.handleEl, // for customRenderingReplacesEl
2441
- generatorMeta }, props));
2440
+ handleCustomRendering(Object.assign(Object.assign({ id: this.id, isActive, containerEl: this.base, reportNewContainerEl: this.handleEl, // for customRenderingReplacesEl
2441
+ generatorMeta }, props), { elClasses: props.elClasses.filter(isTruthy) }));
2442
2442
  }
2443
2443
  }
2444
2444
  }
@@ -2484,6 +2484,9 @@ var FullCalendar = (function (exports) {
2484
2484
  }
2485
2485
  return attrs;
2486
2486
  }
2487
+ function isTruthy(val) {
2488
+ return Boolean(val);
2489
+ }
2487
2490
 
2488
2491
  const RenderId = createContext(0);
2489
2492
 
@@ -8676,6 +8679,7 @@ var FullCalendar = (function (exports) {
8676
8679
  sourceId: unfoundSources[0].sourceId,
8677
8680
  rawEvents: inputs[0],
8678
8681
  });
8682
+ return;
8679
8683
  }
8680
8684
  let newInputs = [];
8681
8685
  for (let input of inputs) {
@@ -9768,7 +9772,7 @@ var FullCalendar = (function (exports) {
9768
9772
  return sliceEventStore(props.eventStore, props.eventUiBases, props.dateProfile.activeRange, allDay ? props.nextDayThreshold : null).fg;
9769
9773
  }
9770
9774
 
9771
- const version = '6.1.1';
9775
+ const version = '6.1.3';
9772
9776
 
9773
9777
  config.touchMouseIgnoreWait = 500;
9774
9778
  let ignoreMouseDepth = 0;
@@ -12079,9 +12083,14 @@ var FullCalendar = (function (exports) {
12079
12083
  let { options } = context;
12080
12084
  let { date, dateProfile } = props;
12081
12085
  // TODO: memoize this?
12082
- let isMonthStart = props.showDayNumber &&
12083
- dateProfile.currentRangeUnit !== 'month' && (dateProfile.currentRange.start.valueOf() === date.valueOf() ||
12084
- date.getUTCDate() === 1);
12086
+ const { currentRange } = dateProfile;
12087
+ const isMonthStart = props.showDayNumber &&
12088
+ context.viewSpec.singleUnit !== 'month' && // NOT a single-month
12089
+ Boolean(
12090
+ // first date in current view?
12091
+ date.valueOf() === currentRange.start.valueOf() ||
12092
+ // a month-start that's within the current range?
12093
+ (date.getUTCDate() === 1 && date.valueOf() < currentRange.end.valueOf()));
12085
12094
  return (h(DayCellContainer, { elTag: "td", elRef: this.handleRootEl, elClasses: [
12086
12095
  'fc-daygrid-day',
12087
12096
  ...(props.extraClassNames || []),