@innosolutions/inno-calendar 1.0.63 → 1.0.65
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/README.md +5 -5
- package/dist/{agenda-widget-DbqQHhyM.js → agenda-widget-CD_UoYWC.js} +245 -242
- package/dist/agenda-widget-CD_UoYWC.js.map +1 -0
- package/dist/agenda-widget-COxgmpv4.cjs +2 -0
- package/dist/agenda-widget-COxgmpv4.cjs.map +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/components/inno-calendar.d.ts +9 -7
- package/dist/components/inno-calendar.d.ts.map +1 -1
- package/dist/core/context/inno-calendar-provider.d.ts.map +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +165 -154
- package/dist/core/utils/index.d.ts +1 -0
- package/dist/core/utils/index.d.ts.map +1 -1
- package/dist/core/utils/view-storage.d.ts +64 -0
- package/dist/core/utils/view-storage.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +210 -199
- package/dist/position-utils-Do2ciBXl.cjs +2 -0
- package/dist/position-utils-Do2ciBXl.cjs.map +1 -0
- package/dist/{position-utils-DMVQFywD.js → position-utils-DpaKqYhO.js} +430 -346
- package/dist/position-utils-DpaKqYhO.js.map +1 -0
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/slot-selection-context-BlrL9b5P.cjs +2 -0
- package/dist/slot-selection-context-BlrL9b5P.cjs.map +1 -0
- package/dist/{slot-selection-context-CRstOosL.js → slot-selection-context-D3MW4WJ7.js} +159 -159
- package/dist/slot-selection-context-D3MW4WJ7.js.map +1 -0
- package/dist/{tailwind-calendar-CNhXkxzW.js → tailwind-calendar-CzbuXRmn.js} +65 -65
- package/dist/{tailwind-calendar-CNhXkxzW.js.map → tailwind-calendar-CzbuXRmn.js.map} +1 -1
- package/dist/{tailwind-calendar-VRvPJQwa.cjs → tailwind-calendar-smlkVdSq.cjs} +2 -2
- package/dist/{tailwind-calendar-VRvPJQwa.cjs.map → tailwind-calendar-smlkVdSq.cjs.map} +1 -1
- package/dist/{use-calendar-DkT1_V3j.cjs → use-calendar-Bd-d8oGj.cjs} +2 -2
- package/dist/{use-calendar-DkT1_V3j.cjs.map → use-calendar-Bd-d8oGj.cjs.map} +1 -1
- package/dist/{use-calendar-D8XaVe44.js → use-calendar-mU1joTwp.js} +53 -53
- package/dist/{use-calendar-D8XaVe44.js.map → use-calendar-mU1joTwp.js.map} +1 -1
- package/dist/{use-slot-selection-Dj_tWg1O.cjs → use-slot-selection-CCOSsRSh.cjs} +2 -2
- package/dist/{use-slot-selection-Dj_tWg1O.cjs.map → use-slot-selection-CCOSsRSh.cjs.map} +1 -1
- package/dist/{use-slot-selection-CWRk_17s.js → use-slot-selection-CauKdLYv.js} +3 -3
- package/dist/{use-slot-selection-CWRk_17s.js.map → use-slot-selection-CauKdLYv.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.mjs +120 -109
- package/dist/{week-view-DY167Wok.js → week-view-BQXIaSUZ.js} +3 -3
- package/dist/{week-view-DY167Wok.js.map → week-view-BQXIaSUZ.js.map} +1 -1
- package/dist/{week-view-C1Vu2ErD.cjs → week-view-xrKlAJos.cjs} +2 -2
- package/dist/{week-view-C1Vu2ErD.cjs.map → week-view-xrKlAJos.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/agenda-widget-BiZIpa3f.cjs +0 -2
- package/dist/agenda-widget-BiZIpa3f.cjs.map +0 -1
- package/dist/agenda-widget-DbqQHhyM.js.map +0 -1
- package/dist/position-utils-BQpbtF6N.cjs +0 -2
- package/dist/position-utils-BQpbtF6N.cjs.map +0 -1
- package/dist/position-utils-DMVQFywD.js.map +0 -1
- package/dist/slot-selection-context-CRstOosL.js.map +0 -1
- package/dist/slot-selection-context-DBCZI2Dn.cjs +0 -2
- package/dist/slot-selection-context-DBCZI2Dn.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -221,9 +221,9 @@ function CalendarContent() {
|
|
|
221
221
|
}
|
|
222
222
|
```
|
|
223
223
|
|
|
224
|
-
## Resource Views
|
|
224
|
+
## Resource & Timeline Views
|
|
225
225
|
|
|
226
|
-
The resource views (`resource-day`, `resource-week`) group events by resource and render one row per resource.
|
|
226
|
+
The resource-based views (`resource-day`, `resource-week`, `timeline-day`, `timeline-3day`, `timeline-week`) group events by resource and render one row per resource.
|
|
227
227
|
|
|
228
228
|
**Default flow** — resource rows are derived from the events: each unique resource referenced by an event (via `event.resourceId`, `event.data.user`, `event.user`, or `event.participants`) gets its own row. Resources without events are not shown.
|
|
229
229
|
|
|
@@ -232,7 +232,7 @@ The resource views (`resource-day`, `resource-week`) group events by resource an
|
|
|
232
232
|
```tsx
|
|
233
233
|
<InnoCalendar
|
|
234
234
|
events={events}
|
|
235
|
-
initialView="
|
|
235
|
+
initialView="timeline-week"
|
|
236
236
|
alwaysShowResources={[
|
|
237
237
|
{ id: "room-1", name: "Meeting Room A", avatar: "/rooms/a.jpg" },
|
|
238
238
|
{ id: "room-2", name: "Meeting Room B" },
|
|
@@ -240,9 +240,9 @@ The resource views (`resource-day`, `resource-week`) group events by resource an
|
|
|
240
240
|
/>
|
|
241
241
|
```
|
|
242
242
|
|
|
243
|
-
Each entry accepts the full `ICalendarUser` shape — at minimum `id` and `name` are needed to render the row header; `avatar` and `email` are optional. Updating the array re-renders the
|
|
243
|
+
Each entry accepts the full `ICalendarUser` shape — at minimum `id` and `name` are needed to render the row header; `avatar` and `email` are optional. Updating the array re-renders the view immediately.
|
|
244
244
|
|
|
245
|
-
This prop
|
|
245
|
+
This prop applies to all resource-based views (`resource-day`, `resource-week`, `timeline-day`, `timeline-3day`, `timeline-week`) and is ignored in `day`, `week`, `month`, `year`, and `agenda` views.
|
|
246
246
|
|
|
247
247
|
## Working Hours
|
|
248
248
|
|