@forcecalendar/interface 1.0.48 → 1.0.50

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.48",
3
+ "version": "1.0.50",
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",
@@ -34,7 +34,6 @@ export class ForceCalendar extends BaseComponent {
34
34
  this.stateManager = null;
35
35
  this.currentView = null;
36
36
  this._hasRendered = false; // Track if initial render is complete
37
- this._cachedStyles = null; // Cache styles to avoid recreation
38
37
  this._busUnsubscribers = [];
39
38
  }
40
39
 
@@ -222,6 +222,7 @@ export class BaseViewRenderer {
222
222
  const startMinutes = start.getHours() * 60 + start.getMinutes();
223
223
  const durationMinutes = Math.max((end - start) / (1000 * 60), compact ? 20 : 30);
224
224
  const color = this.getEventColor(event);
225
+ const textColor = this.getContrastingTextColor(color);
225
226
 
226
227
  const padding = compact ? '4px 8px' : '8px 12px';
227
228
  const fontSize = compact ? '11px' : '13px';
@@ -247,7 +248,7 @@ export class BaseViewRenderer {
247
248
  left: ${leftPx}; width: ${widthCalc};
248
249
  background-color: ${color}; border-radius: ${borderRadius};
249
250
  padding: ${padding}; font-size: ${fontSize};
250
- font-weight: 500; color: white; overflow: hidden;
251
+ font-weight: 500; color: ${textColor}; overflow: hidden;
251
252
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
252
253
  cursor: pointer; z-index: 5;">
253
254
  <div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">