@forcecalendar/interface 1.0.36 → 1.0.38
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/force-calendar-interface.esm.js +2 -2
- package/dist/force-calendar-interface.esm.js.map +1 -1
- package/dist/force-calendar-interface.umd.js +2 -2
- package/dist/force-calendar-interface.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ForceCalendar.js +2 -1
- package/src/index.js +0 -6
package/package.json
CHANGED
|
@@ -854,10 +854,11 @@ export class ForceCalendar extends BaseComponent {
|
|
|
854
854
|
switch (view) {
|
|
855
855
|
case 'month':
|
|
856
856
|
return DateUtils.formatDate(date, 'month', locale);
|
|
857
|
-
case 'week':
|
|
857
|
+
case 'week': {
|
|
858
858
|
const weekStart = DateUtils.startOfWeek(date);
|
|
859
859
|
const weekEnd = DateUtils.endOfWeek(date);
|
|
860
860
|
return DateUtils.formatDateRange(weekStart, weekEnd, locale);
|
|
861
|
+
}
|
|
861
862
|
case 'day':
|
|
862
863
|
return DateUtils.formatDate(date, 'long', locale);
|
|
863
864
|
default:
|
package/src/index.js
CHANGED
|
@@ -24,9 +24,3 @@ export { DayViewRenderer } from './renderers/DayViewRenderer.js';
|
|
|
24
24
|
// Components
|
|
25
25
|
import './components/ForceCalendar.js';
|
|
26
26
|
export { ForceCalendar } from './components/ForceCalendar.js';
|
|
27
|
-
|
|
28
|
-
// Auto-register main component if in browser environment
|
|
29
|
-
if (typeof window !== 'undefined' && typeof customElements !== 'undefined') {
|
|
30
|
-
// The ForceCalendar component self-registers
|
|
31
|
-
console.log('Force Calendar Interface loading...');
|
|
32
|
-
}
|