@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/dist/force-calendar-interface.esm.js +10 -10
- package/dist/force-calendar-interface.esm.js.map +1 -1
- package/dist/force-calendar-interface.umd.js +7 -7
- package/dist/force-calendar-interface.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/EventForm.js +2 -2
- package/src/components/ForceCalendar.js +13 -13
|
@@ -6941,10 +6941,10 @@ class et extends S {
|
|
|
6941
6941
|
this._cleanupFocusTrap && this._cleanupFocusTrap(), window.removeEventListener("keydown", this._handleKeyDown);
|
|
6942
6942
|
}
|
|
6943
6943
|
}
|
|
6944
|
-
customElements.get("
|
|
6945
|
-
customElements.get("
|
|
6946
|
-
customElements.get("
|
|
6947
|
-
customElements.get("
|
|
6944
|
+
customElements.get("forcecal-event-form") || customElements.define("forcecal-event-form", et);
|
|
6945
|
+
customElements.get("forcecal-month") || customElements.define("forcecal-month", J);
|
|
6946
|
+
customElements.get("forcecal-week") || customElements.define("forcecal-week", X);
|
|
6947
|
+
customElements.get("forcecal-day") || customElements.define("forcecal-day", tt);
|
|
6948
6948
|
class st extends S {
|
|
6949
6949
|
static get observedAttributes() {
|
|
6950
6950
|
return ["view", "date", "locale", "timezone", "week-starts-on", "height"];
|
|
@@ -7152,9 +7152,9 @@ class st extends S {
|
|
|
7152
7152
|
}
|
|
7153
7153
|
|
|
7154
7154
|
/* Ensure view components have proper dimensions */
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7155
|
+
forcecal-month,
|
|
7156
|
+
forcecal-week,
|
|
7157
|
+
forcecal-day {
|
|
7158
7158
|
display: block;
|
|
7159
7159
|
width: 100%;
|
|
7160
7160
|
height: 100%;
|
|
@@ -7288,14 +7288,14 @@ class st extends S {
|
|
|
7288
7288
|
`}
|
|
7289
7289
|
</div>
|
|
7290
7290
|
|
|
7291
|
-
<
|
|
7291
|
+
<forcecal-event-form id="event-modal"></forcecal-event-form>
|
|
7292
7292
|
</div>
|
|
7293
7293
|
`;
|
|
7294
7294
|
}
|
|
7295
7295
|
renderView() {
|
|
7296
7296
|
if (!this.currentView)
|
|
7297
7297
|
return "<div>Loading view...</div>";
|
|
7298
|
-
const t = `
|
|
7298
|
+
const t = `forcecal-${this.currentView}`;
|
|
7299
7299
|
return `<${t} id="calendar-view"></${t}>`;
|
|
7300
7300
|
}
|
|
7301
7301
|
afterRender() {
|
|
@@ -7400,7 +7400,7 @@ class st extends S {
|
|
|
7400
7400
|
this.stateManager && this.stateManager.destroy(), g.clear(), super.cleanup();
|
|
7401
7401
|
}
|
|
7402
7402
|
}
|
|
7403
|
-
customElements.get("
|
|
7403
|
+
customElements.get("forcecal-main") || customElements.define("forcecal-main", st);
|
|
7404
7404
|
typeof window < "u" && typeof customElements < "u" && console.log("Force Calendar Interface loading...");
|
|
7405
7405
|
export {
|
|
7406
7406
|
S as BaseComponent,
|