| calendar-event-create-edit-selectors.mjs |
A selector is a function that reads a value from the Redux application state.
`sessionKey` selects one dialog's data from the document's shared store.
These selectors combine data into view models: objects with the values that
controls display.
`createSelector` keeps the previous result while its input values stay the
same. This is called memoization. The store observer compares the old and
new result by identity and skips controls whose selected result is unchanged.
|
17022 |
- |
| calendar-event-source-state.mjs |
A controlled error stored for a dialog route.
@typedef {object} CalendarEventSourceErrorData
@property {string} code - The error code.
|
5506 |
- |
| calendarEventCalendarSlice.mjs |
Initial calendar data and current permission for one dialog route.
A route is one request to create or edit an event. The route generation
changes when a new request replaces the old request in the same dialog.
@typedef {object} CalendarEventCalendarSource
@property {number} generation - The route number that owns this source data.
@property {?CalendarEventCalendarData} calendar - The initial calendar,
including an unavailable calendar that must still be displayed.
@property {boolean} canChange - Whether the route permits a calendar change.
The control also needs at least one allowed destination to be enabled.
|
10175 |
- |
| calendarEventCategorySlice.mjs |
Category options for each dialog in this document.
@typedef {object} CalendarEventCategorySliceState
@property {Record<string, CalendarEventCategoryOption[]>} sessions - Loaded
options keyed by the fixed dialog session key. A missing entry means that
options have not loaded or that the route has been cleared.
|
4634 |
- |
| calendarEventCreateEditSessionSlice.mjs |
Records dialog mode and operation progress in a Redux slice, one part of
the application state. This slice stores data; the Save function does the
calendar work. Draft field values live in calendarEventDraftSlice.mjs.
Callers dispatch actions to request changes. Each action has a `payload`
object with its inputs. The matching reducer below updates this slice.
`sessionKey` selects one dialog. `requestId` selects one Save attempt in that
dialog, so a late result cannot complete or release a replacement request.
|
9473 |
- |
| calendarEventDraftSlice.mjs |
Stores unsaved field values for each dialog. A Redux slice defines one part
of the application's state and the actions that change that part.
Callers dispatch an action, an object that names a change and carries its
data in `payload`. A reducer below applies that action to this slice. Redux
Toolkit uses Immer to record assignments and produce the next state. Code
outside a reducer must use actions instead of changing stored values.
`baseline` holds the starting values; `value` holds the current input.
`dirtySections` lists groups of fields whose input differs from the starting
values. `validation` holds field check results; updating input does not run
those checks. All stored values are plain data that can be copied as JSON.
Calendar objects and writes stay outside this slice.
|
14871 |
- |