@forcecalendar/interface 1.0.4 → 1.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forcecalendar/interface",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "Official interface layer for forceCalendar Core - Enterprise calendar components",
6
6
  "main": "dist/force-calendar-interface.umd.js",
@@ -414,6 +414,6 @@ export class EventForm extends BaseComponent {
414
414
  }
415
415
  }
416
416
 
417
- if (!customElements.get('fc-calendar-event-form')) {
418
- customElements.define('fc-calendar-event-form', EventForm);
417
+ if (!customElements.get('forcecal-event-form')) {
418
+ customElements.define('forcecal-event-form', EventForm);
419
419
  }
@@ -17,14 +17,14 @@ import { DayView } from './views/DayView.js';
17
17
  import { EventForm } from './EventForm.js'; // Import EventForm
18
18
 
19
19
  // Register view components
20
- if (!customElements.get('fc-calendar-month')) {
21
- customElements.define('fc-calendar-month', MonthView);
20
+ if (!customElements.get('forcecal-month')) {
21
+ customElements.define('forcecal-month', MonthView);
22
22
  }
23
- if (!customElements.get('fc-calendar-week')) {
24
- customElements.define('fc-calendar-week', WeekView);
23
+ if (!customElements.get('forcecal-week')) {
24
+ customElements.define('forcecal-week', WeekView);
25
25
  }
26
- if (!customElements.get('fc-calendar-day')) {
27
- customElements.define('fc-calendar-day', DayView);
26
+ if (!customElements.get('forcecal-day')) {
27
+ customElements.define('forcecal-day', DayView);
28
28
  }
29
29
  // EventForm is self-registering in its file
30
30
 
@@ -273,9 +273,9 @@ export class ForceCalendar extends BaseComponent {
273
273
  }
274
274
 
275
275
  /* Ensure view components have proper dimensions */
276
- fc-calendar-month,
277
- fc-calendar-week,
278
- fc-calendar-day {
276
+ forcecal-month,
277
+ forcecal-week,
278
+ forcecal-day {
279
279
  display: block;
280
280
  width: 100%;
281
281
  height: 100%;
@@ -415,7 +415,7 @@ export class ForceCalendar extends BaseComponent {
415
415
  `}
416
416
  </div>
417
417
 
418
- <fc-calendar-event-form id="event-modal"></fc-calendar-event-form>
418
+ <forcecal-event-form id="event-modal"></forcecal-event-form>
419
419
  </div>
420
420
  `;
421
421
  }
@@ -425,7 +425,7 @@ export class ForceCalendar extends BaseComponent {
425
425
  return '<div>Loading view...</div>';
426
426
  }
427
427
 
428
- const tagName = `fc-calendar-${this.currentView}`;
428
+ const tagName = `forcecal-${this.currentView}`;
429
429
  return `<${tagName} id="calendar-view"></${tagName}>`;
430
430
  }
431
431
 
@@ -585,6 +585,6 @@ export class ForceCalendar extends BaseComponent {
585
585
  }
586
586
 
587
587
  // Register component
588
- if (!customElements.get('fc-calendar')) {
589
- customElements.define('fc-calendar', ForceCalendar);
588
+ if (!customElements.get('forcecal-main')) {
589
+ customElements.define('forcecal-main', ForceCalendar);
590
590
  }