@mintplayer/web-components 1.0.0 → 1.2.0
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/a11y/index.mjs +2 -56
- package/calendar/index.mjs +2 -363
- package/checkbox/index.mjs +4 -0
- package/checkbox/src/components/index.d.ts +2 -0
- package/checkbox/src/components/mp-checkbox.d.ts +69 -0
- package/checkbox/src/index.d.ts +2 -0
- package/chunks/color-C4VT0EL7.mjs +847 -0
- package/chunks/form-check.styles-jBlHetYX.mjs +151 -0
- package/chunks/live-announcer-CZDTKulf.mjs +58 -0
- package/chunks/mp-calendar.element-UC68iDbi.mjs +365 -0
- package/chunks/mp-checkbox-BokLL7BS.mjs +211 -0
- package/chunks/mp-datatable-Con0yQue.mjs +1125 -0
- package/chunks/mp-pagination-BGxsawFL.mjs +326 -0
- package/chunks/mp-select-BDS1-YGn.mjs +254 -0
- package/chunks/mp-splitter-C8cGCmac.mjs +633 -0
- package/chunks/mp-tab-page-D1b4x-y2.mjs +414 -0
- package/chunks/mp-timepicker.element-BwEiwX92.mjs +428 -0
- package/chunks/mp-toggle-button-dLZNDUVz.mjs +534 -0
- package/chunks/mp-treeview-Bfq4_IVW.mjs +474 -0
- package/code-snippet/index.mjs +16 -13
- package/datatable/index.mjs +7 -0
- package/datatable/src/components/index.d.ts +2 -0
- package/datatable/src/components/mp-datatable.d.ts +260 -0
- package/datatable/src/index.d.ts +6 -0
- package/datatable/src/sort/compute-next-sort.d.ts +18 -0
- package/datatable/src/sort/index.d.ts +3 -0
- package/datatable/src/sort/sort-rows.d.ts +6 -0
- package/datatable/src/styles/datatable.styles.d.ts +2 -0
- package/datatable/src/styles/index.d.ts +1 -0
- package/datatable/src/types/column-def.d.ts +41 -0
- package/datatable/src/types/index.d.ts +2 -0
- package/datatable/src/types/tree.d.ts +42 -0
- package/datepicker/index.mjs +240 -0
- package/datepicker/src/index.d.ts +1 -0
- package/datepicker/src/mp-datepicker.element.d.ts +94 -0
- package/datepicker/src/mp-datepicker.element.template.d.ts +2 -0
- package/datetime-picker/index.mjs +427 -0
- package/datetime-picker/src/index.d.ts +1 -0
- package/datetime-picker/src/mp-datetime-picker.element.d.ts +174 -0
- package/datetime-picker/src/mp-datetime-picker.element.template.d.ts +2 -0
- package/dock/index.mjs +2402 -0
- package/dock/src/components/index.d.ts +1 -0
- package/dock/src/components/mint-dock-manager.element.d.ts +313 -0
- package/dock/src/components/mint-dock-manager.element.template.d.ts +2 -0
- package/dock/src/index.d.ts +2 -0
- package/dock/src/types/dock-layout.d.ts +65 -0
- package/dock/src/types/index.d.ts +1 -0
- package/file-manager/index.mjs +1263 -0
- package/file-manager/src/components/index.d.ts +2 -0
- package/file-manager/src/components/mp-file-manager.d.ts +320 -0
- package/file-manager/src/index.d.ts +5 -0
- package/file-manager/src/styles/file-manager.styles.d.ts +2 -0
- package/file-manager/src/styles/index.d.ts +1 -0
- package/file-manager/src/types/file-system-node.d.ts +24 -0
- package/file-manager/src/types/index.d.ts +3 -0
- package/file-manager/src/types/messages.d.ts +43 -0
- package/multi-range/index.mjs +407 -0
- package/multi-range/src/index.d.ts +2 -0
- package/multi-range/src/mint-multi-range.element.d.ts +124 -0
- package/multi-range/src/mint-multi-range.element.template.d.ts +2 -0
- package/multi-range/src/types/multi-range-orientation.d.ts +1 -0
- package/otp-input/index.mjs +362 -0
- package/otp-input/src/index.d.ts +4 -0
- package/otp-input/src/mint-otp-input.element.d.ts +134 -0
- package/otp-input/src/mint-otp-input.element.template.d.ts +2 -0
- package/otp-input/src/types/otp-input-case.d.ts +1 -0
- package/otp-input/src/types/otp-input-size.d.ts +1 -0
- package/otp-input/src/types/otp-input-type.d.ts +1 -0
- package/overlay/index.mjs +260 -0
- package/overlay/src/index.d.ts +2 -0
- package/overlay/src/overlay-controller.d.ts +205 -0
- package/package.json +1 -1
- package/pagination/index.mjs +5 -0
- package/pagination/src/components/index.d.ts +2 -0
- package/pagination/src/components/mp-pagination.d.ts +95 -0
- package/pagination/src/index.d.ts +2 -0
- package/pagination/src/styles/index.d.ts +1 -0
- package/pagination/src/styles/pagination.styles.d.ts +2 -0
- package/query-builder/index.mjs +3720 -0
- package/query-builder/src/context.d.ts +14 -0
- package/query-builder/src/dnd/drag-controller.d.ts +69 -0
- package/query-builder/src/index.d.ts +23 -0
- package/query-builder/src/model/default-tree.d.ts +7 -0
- package/query-builder/src/model/editor.d.ts +15 -0
- package/query-builder/src/model/errors.d.ts +6 -0
- package/query-builder/src/model/expression.d.ts +22 -0
- package/query-builder/src/model/field-def.d.ts +17 -0
- package/query-builder/src/model/messages.d.ts +17 -0
- package/query-builder/src/model/operator-overrides.d.ts +21 -0
- package/query-builder/src/model/operators.d.ts +8 -0
- package/query-builder/src/model/saved-query.d.ts +6 -0
- package/query-builder/src/model/sort.d.ts +9 -0
- package/query-builder/src/model/tree-ops.d.ts +56 -0
- package/query-builder/src/mp-query-builder.element.d.ts +158 -0
- package/query-builder/src/mp-query-builder.element.template.d.ts +2 -0
- package/query-builder/src/mp-query-condition.element.d.ts +44 -0
- package/query-builder/src/mp-query-condition.element.template.d.ts +2 -0
- package/query-builder/src/mp-query-group.element.d.ts +52 -0
- package/query-builder/src/mp-query-group.element.template.d.ts +2 -0
- package/query-builder/src/mp-query-subquery.element.d.ts +37 -0
- package/query-builder/src/mp-query-subquery.element.template.d.ts +2 -0
- package/query-builder/src/preview/render-expression.d.ts +23 -0
- package/query-builder/src/value-editors/builtin-editors.d.ts +6 -0
- package/query-builder/src/visitor/visit-tree.d.ts +29 -0
- package/query-builder/src/visitor/visitor-types.d.ts +15 -0
- package/radio/index.mjs +162 -0
- package/radio/src/components/index.d.ts +2 -0
- package/radio/src/components/mp-radio.d.ts +63 -0
- package/radio/src/index.d.ts +2 -0
- package/ribbon/index.mjs +3151 -0
- package/ribbon/src/index.d.ts +10 -0
- package/ribbon/src/items/index.d.ts +15 -0
- package/ribbon/src/items/mp-ribbon-button.element.d.ts +10 -0
- package/ribbon/src/items/mp-ribbon-checkbox.element.d.ts +11 -0
- package/ribbon/src/items/mp-ribbon-color-picker.element.d.ts +12 -0
- package/ribbon/src/items/mp-ribbon-combobox.element.d.ts +19 -0
- package/ribbon/src/items/mp-ribbon-dropdown-button.element.d.ts +16 -0
- package/ribbon/src/items/mp-ribbon-gallery-item.element.d.ts +15 -0
- package/ribbon/src/items/mp-ribbon-gallery.element.d.ts +11 -0
- package/ribbon/src/items/mp-ribbon-group-button.element.d.ts +18 -0
- package/ribbon/src/items/mp-ribbon-item-base.d.ts +68 -0
- package/ribbon/src/items/mp-ribbon-menu-item.element.d.ts +13 -0
- package/ribbon/src/items/mp-ribbon-menu-separator.element.d.ts +6 -0
- package/ribbon/src/items/mp-ribbon-split-button.element.d.ts +23 -0
- package/ribbon/src/items/mp-ribbon-template-item.element.d.ts +12 -0
- package/ribbon/src/items/mp-ribbon-toggle-button.element.d.ts +12 -0
- package/ribbon/src/mp-quick-access-toolbar.element.d.ts +35 -0
- package/ribbon/src/mp-ribbon-contextual-tab-set.element.d.ts +18 -0
- package/ribbon/src/mp-ribbon-group.element.d.ts +59 -0
- package/ribbon/src/mp-ribbon-tab.element.d.ts +72 -0
- package/ribbon/src/mp-ribbon.element.d.ts +211 -0
- package/ribbon/src/types/ribbon.types.d.ts +4 -0
- package/scheduler/index.mjs +3567 -0
- package/scheduler/src/components/mp-scheduler.d.ts +238 -0
- package/scheduler/src/drag/drag-manager.d.ts +90 -0
- package/scheduler/src/drag/drag-preview.d.ts +42 -0
- package/scheduler/src/drag/drag-state-machine.d.ts +102 -0
- package/scheduler/src/drag/drag-types.d.ts +104 -0
- package/scheduler/src/drag/index.d.ts +4 -0
- package/scheduler/src/events/event-types.d.ts +58 -0
- package/scheduler/src/events/index.d.ts +2 -0
- package/scheduler/src/events/scheduler-event-emitter.d.ts +52 -0
- package/scheduler/src/index.d.ts +6 -0
- package/scheduler/src/input/index.d.ts +2 -0
- package/scheduler/src/input/input-handler.d.ts +105 -0
- package/scheduler/src/input/pointer-event.d.ts +39 -0
- package/scheduler/src/state/scheduler-state.d.ts +189 -0
- package/scheduler/src/styles/scheduler.styles.d.ts +2 -0
- package/scheduler/src/views/base-view.d.ts +87 -0
- package/scheduler/src/views/day-view.d.ts +25 -0
- package/scheduler/src/views/index.d.ts +6 -0
- package/scheduler/src/views/month-view.d.ts +27 -0
- package/scheduler/src/views/timeline-view.d.ts +23 -0
- package/scheduler/src/views/week-view.d.ts +28 -0
- package/scheduler/src/views/year-view.d.ts +25 -0
- package/scheduler-core/index.mjs +174 -0
- package/scheduler-core/src/index.d.ts +3 -0
- package/scheduler-core/src/models/drag-state.d.ts +43 -0
- package/scheduler-core/src/models/event.d.ts +111 -0
- package/scheduler-core/src/models/events.d.ts +108 -0
- package/scheduler-core/src/models/index.d.ts +7 -0
- package/scheduler-core/src/models/options.d.ts +88 -0
- package/scheduler-core/src/models/resource.d.ts +58 -0
- package/scheduler-core/src/models/time-slot.d.ts +31 -0
- package/scheduler-core/src/models/types.d.ts +20 -0
- package/scheduler-core/src/services/date.service.d.ts +140 -0
- package/scheduler-core/src/services/index.d.ts +4 -0
- package/scheduler-core/src/services/position.service.d.ts +35 -0
- package/scheduler-core/src/services/resource.service.d.ts +83 -0
- package/scheduler-core/src/services/timeline.service.d.ts +103 -0
- package/scheduler-core/src/utils/color.d.ts +24 -0
- package/scheduler-core/src/utils/dom.d.ts +54 -0
- package/scheduler-core/src/utils/id.d.ts +16 -0
- package/scheduler-core/src/utils/index.d.ts +3 -0
- package/select/index.mjs +4 -0
- package/select/src/components/index.d.ts +2 -0
- package/select/src/components/mp-select.d.ts +82 -0
- package/select/src/index.d.ts +2 -0
- package/splitter/index.mjs +10 -0
- package/splitter/src/components/index.d.ts +2 -0
- package/splitter/src/components/mp-splitter.d.ts +109 -0
- package/splitter/src/index.d.ts +11 -0
- package/splitter/src/input/index.d.ts +4 -0
- package/splitter/src/input/input-handler.d.ts +36 -0
- package/splitter/src/input/pointer-event.d.ts +9 -0
- package/splitter/src/managers/index.d.ts +2 -0
- package/splitter/src/managers/resize-manager.d.ts +13 -0
- package/splitter/src/state/index.d.ts +2 -0
- package/splitter/src/state/splitter-state.d.ts +24 -0
- package/splitter/src/styles/index.d.ts +1 -0
- package/splitter/src/styles/splitter.styles.d.ts +2 -0
- package/splitter/src/types/direction.d.ts +1 -0
- package/splitter/src/types/index.d.ts +5 -0
- package/splitter/src/types/panel-info.d.ts +6 -0
- package/splitter/src/types/point.d.ts +4 -0
- package/splitter/src/types/resize-operation.d.ts +13 -0
- package/tab-control/index.mjs +6 -0
- package/tab-control/src/components/index.d.ts +3 -0
- package/tab-control/src/components/mp-tab-control.d.ts +50 -0
- package/tab-control/src/components/mp-tab-page.d.ts +35 -0
- package/tab-control/src/index.d.ts +4 -0
- package/tab-control/src/styles/index.d.ts +1 -0
- package/tab-control/src/styles/tab-control.styles.d.ts +2 -0
- package/tab-control/src/types/index.d.ts +1 -0
- package/tab-control/src/types/tabs-position.d.ts +1 -0
- package/tile-manager/index.mjs +867 -0
- package/tile-manager/src/components/index.d.ts +2 -0
- package/tile-manager/src/components/mint-tile-manager.element.d.ts +204 -0
- package/tile-manager/src/components/mint-tile-manager.element.template.d.ts +2 -0
- package/tile-manager/src/index.d.ts +4 -0
- package/tile-manager/src/types/grid-rect.d.ts +12 -0
- package/tile-manager/src/types/index.d.ts +3 -0
- package/tile-manager/src/types/tile-layout-snapshot.d.ts +15 -0
- package/tile-manager/src/types/tile-position.d.ts +10 -0
- package/tile-manager/src/utils/index.d.ts +1 -0
- package/tile-manager/src/utils/pack.d.ts +24 -0
- package/timepicker/index.mjs +5 -0
- package/timepicker/src/index.d.ts +2 -0
- package/timepicker/src/mp-time-list.element.d.ts +76 -0
- package/timepicker/src/mp-time-list.element.template.d.ts +2 -0
- package/timepicker/src/mp-timepicker.element.d.ts +87 -0
- package/timepicker/src/mp-timepicker.element.template.d.ts +2 -0
- package/toggle-button/index.mjs +5 -0
- package/toggle-button/src/components/index.d.ts +2 -0
- package/toggle-button/src/components/mp-toggle-button.d.ts +50 -0
- package/toggle-button/src/index.d.ts +3 -0
- package/toggle-button/src/styles/index.d.ts +1 -0
- package/toggle-button/src/styles/toggle-button.styles.d.ts +2 -0
- package/treeview/index.mjs +5 -0
- package/treeview/src/components/index.d.ts +2 -0
- package/treeview/src/components/mp-treeview.d.ts +113 -0
- package/treeview/src/index.d.ts +4 -0
- package/treeview/src/styles/index.d.ts +1 -0
- package/treeview/src/styles/treeview.styles.d.ts +2 -0
- package/treeview/src/types/index.d.ts +1 -0
- package/treeview/src/types/tree-node.d.ts +14 -0
- package/custom-elements.json +0 -1774
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { SchedulerCustomEvent, EventDetail, TimeRange } from './event-types';
|
|
2
|
+
import { ViewType } from '@mintplayer/web-components/scheduler-core';
|
|
3
|
+
/**
|
|
4
|
+
* Handles dispatching custom events from the scheduler.
|
|
5
|
+
* Centralizes event emission logic for consistency.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SchedulerEventEmitter {
|
|
8
|
+
private readonly host;
|
|
9
|
+
constructor(host: HTMLElement);
|
|
10
|
+
/**
|
|
11
|
+
* Emit a scheduler custom event.
|
|
12
|
+
* The event will bubble up through the DOM.
|
|
13
|
+
*/
|
|
14
|
+
emit(event: SchedulerCustomEvent): void;
|
|
15
|
+
/**
|
|
16
|
+
* Emit an event-selected event. Fired both by mouse click and by keyboard
|
|
17
|
+
* Tab landing on an event (mouse-parity, PRD scheduler-keyboard-grid-nav D3).
|
|
18
|
+
*/
|
|
19
|
+
emitEventSelected(event: EventDetail<'event-selected'>['event'], originalEvent: Event): void;
|
|
20
|
+
/**
|
|
21
|
+
* Emit an event-dblclick event.
|
|
22
|
+
*/
|
|
23
|
+
emitEventDblClick(event: EventDetail<'event-dblclick'>['event'], originalEvent: Event): void;
|
|
24
|
+
/**
|
|
25
|
+
* Emit an `event-create` *request*. Per PRD scheduler-controlled-selection,
|
|
26
|
+
* the scheduler does not mutate its internal events list — the consumer
|
|
27
|
+
* receives the range and decides whether to construct an event from it.
|
|
28
|
+
*/
|
|
29
|
+
emitEventCreate(range: TimeRange, view: ViewType, originalEvent: Event, resourceId?: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* Emit an event-update event.
|
|
32
|
+
*/
|
|
33
|
+
emitEventUpdate(event: EventDetail<'event-update'>['event'], oldEvent: EventDetail<'event-update'>['oldEvent'], originalEvent: Event): void;
|
|
34
|
+
/**
|
|
35
|
+
* Emit an event-delete event.
|
|
36
|
+
*/
|
|
37
|
+
emitEventDelete(event: EventDetail<'event-delete'>['event']): void;
|
|
38
|
+
/**
|
|
39
|
+
* Emit a date-click event.
|
|
40
|
+
*/
|
|
41
|
+
emitDateClick(date: Date, originalEvent: Event): void;
|
|
42
|
+
/**
|
|
43
|
+
* Emit a view-change event.
|
|
44
|
+
*/
|
|
45
|
+
emitViewChange(view: EventDetail<'view-change'>['view'], date: EventDetail<'view-change'>['date']): void;
|
|
46
|
+
/**
|
|
47
|
+
* Emit a selection-change event. Carries both the single-event focus and
|
|
48
|
+
* the time-range selection — either may be null. Fires on every transition
|
|
49
|
+
* so consumers can react to the selection clearing without polling.
|
|
50
|
+
*/
|
|
51
|
+
emitSelectionChange(selectedEvent: EventDetail<'selection-change'>['selectedEvent'], range: TimeRange | null, view: ViewType, resourceId?: string): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { MpScheduler } from './components/mp-scheduler';
|
|
2
|
+
export { SchedulerStateManager, createInitialState } from './state/scheduler-state';
|
|
3
|
+
export type { SchedulerState } from './state/scheduler-state';
|
|
4
|
+
export * from './views';
|
|
5
|
+
export { schedulerStyles } from './styles/scheduler.styles';
|
|
6
|
+
export type { ViewType, DisplayMode, SchedulerEvent, SchedulerEventPart, Resource, ResourceGroup, SchedulerOptions, TimeSlot, PreviewEvent, DragState, } from '@mintplayer/web-components/scheduler-core';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { SchedulerEvent } from '@mintplayer/web-components/scheduler-core';
|
|
2
|
+
import { NormalizedPointerEvent } from './pointer-event';
|
|
3
|
+
import { PointerTarget } from '../drag/drag-types';
|
|
4
|
+
/**
|
|
5
|
+
* Callbacks for input handler events.
|
|
6
|
+
*/
|
|
7
|
+
export interface InputHandlerCallbacks {
|
|
8
|
+
/** Called when pointer goes down on a valid target */
|
|
9
|
+
onPointerDown: (pointer: NormalizedPointerEvent, target: PointerTarget, immediate?: boolean) => void;
|
|
10
|
+
/** Called when pointer moves (during drag) */
|
|
11
|
+
onPointerMove: (pointer: NormalizedPointerEvent) => void;
|
|
12
|
+
/** Called when pointer is released */
|
|
13
|
+
onPointerUp: (pointer: NormalizedPointerEvent) => void;
|
|
14
|
+
/** Called for click events (not drag) */
|
|
15
|
+
onClick: (pointer: NormalizedPointerEvent, target: PointerTarget) => void;
|
|
16
|
+
/** Called for double-click events */
|
|
17
|
+
onDoubleClick: (pointer: NormalizedPointerEvent, target: PointerTarget) => void;
|
|
18
|
+
/** Called when touch drag mode is activated (after hold) */
|
|
19
|
+
onTouchDragActivated?: () => void;
|
|
20
|
+
/** Called when touch drag mode is deactivated */
|
|
21
|
+
onTouchDragDeactivated?: () => void;
|
|
22
|
+
/** Called to get the scrollable container for panning */
|
|
23
|
+
getScrollContainer?: () => HTMLElement | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Configuration for the input handler.
|
|
27
|
+
*/
|
|
28
|
+
export interface InputHandlerConfig {
|
|
29
|
+
/** Shadow root to attach listeners to */
|
|
30
|
+
shadowRoot: ShadowRoot;
|
|
31
|
+
/** Function to get event by ID */
|
|
32
|
+
getEventById: (id: string) => SchedulerEvent | null;
|
|
33
|
+
/** Whether editing is enabled */
|
|
34
|
+
isEditable: () => boolean;
|
|
35
|
+
/** Whether selection is enabled */
|
|
36
|
+
isSelectable: () => boolean;
|
|
37
|
+
/** Touch hold duration in ms before drag activates (default: 500) */
|
|
38
|
+
touchHoldDuration?: number;
|
|
39
|
+
/** Movement threshold before touch hold is cancelled (default: 10) */
|
|
40
|
+
touchMoveThreshold?: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Unified input handler for mouse and touch events.
|
|
44
|
+
* Normalizes events and handles touch-specific behaviors (hold-to-drag).
|
|
45
|
+
*/
|
|
46
|
+
export declare class InputHandler {
|
|
47
|
+
private readonly config;
|
|
48
|
+
private readonly callbacks;
|
|
49
|
+
private touchHoldTimer;
|
|
50
|
+
private touchStartPosition;
|
|
51
|
+
private isTouchDragMode;
|
|
52
|
+
private touchHoldTarget;
|
|
53
|
+
private touchHoldPointer;
|
|
54
|
+
private isPanMode;
|
|
55
|
+
private panStartPosition;
|
|
56
|
+
private panStartScroll;
|
|
57
|
+
private panStartedOnEvent;
|
|
58
|
+
private savedBodyStyles;
|
|
59
|
+
private readonly boundHandleMouseDown;
|
|
60
|
+
private readonly boundHandleMouseMove;
|
|
61
|
+
private readonly boundHandleMouseUp;
|
|
62
|
+
private readonly boundHandleClick;
|
|
63
|
+
private readonly boundHandleDblClick;
|
|
64
|
+
private readonly boundHandleTouchStart;
|
|
65
|
+
private readonly boundHandleTouchMove;
|
|
66
|
+
private readonly boundHandleTouchEnd;
|
|
67
|
+
private readonly boundHandleTouchCancel;
|
|
68
|
+
constructor(config: InputHandlerConfig, callbacks: InputHandlerCallbacks);
|
|
69
|
+
/**
|
|
70
|
+
* Attach all event listeners.
|
|
71
|
+
*/
|
|
72
|
+
attach(): void;
|
|
73
|
+
/**
|
|
74
|
+
* Detach all event listeners.
|
|
75
|
+
*/
|
|
76
|
+
detach(): void;
|
|
77
|
+
/**
|
|
78
|
+
* Check if in touch drag mode.
|
|
79
|
+
*/
|
|
80
|
+
isInTouchDragMode(): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Analyze pointer target to determine what was clicked.
|
|
83
|
+
*/
|
|
84
|
+
analyzeTarget(element: HTMLElement): PointerTarget;
|
|
85
|
+
private handleMouseDown;
|
|
86
|
+
private handleMouseMove;
|
|
87
|
+
private handleMouseUp;
|
|
88
|
+
private handleClick;
|
|
89
|
+
private handleDblClick;
|
|
90
|
+
private handleTouchStart;
|
|
91
|
+
private handleTouchMove;
|
|
92
|
+
private handleTouchEnd;
|
|
93
|
+
private handleTouchCancel;
|
|
94
|
+
private activateTouchDragMode;
|
|
95
|
+
private cancelTouchHold;
|
|
96
|
+
private exitTouchDragMode;
|
|
97
|
+
private addTouchFeedback;
|
|
98
|
+
private removeTouchFeedback;
|
|
99
|
+
private triggerHapticFeedback;
|
|
100
|
+
private enterPanMode;
|
|
101
|
+
private exitPanMode;
|
|
102
|
+
private performPan;
|
|
103
|
+
private applyScrollBlock;
|
|
104
|
+
private removeScrollBlock;
|
|
105
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalized pointer event that abstracts mouse vs touch.
|
|
3
|
+
* Provides a single interface for all pointer-based interactions.
|
|
4
|
+
*/
|
|
5
|
+
export interface NormalizedPointerEvent {
|
|
6
|
+
/** Unique identifier for this pointer (0 for mouse, touch.identifier for touch) */
|
|
7
|
+
pointerId: number;
|
|
8
|
+
/** Type of pointer: 'mouse' or 'touch' */
|
|
9
|
+
pointerType: 'mouse' | 'touch';
|
|
10
|
+
/** Client X coordinate */
|
|
11
|
+
clientX: number;
|
|
12
|
+
/** Client Y coordinate */
|
|
13
|
+
clientY: number;
|
|
14
|
+
/** The original DOM event */
|
|
15
|
+
originalEvent: MouseEvent | TouchEvent;
|
|
16
|
+
/** Target element at pointer position */
|
|
17
|
+
target: HTMLElement;
|
|
18
|
+
/** Whether this is the primary pointer */
|
|
19
|
+
isPrimary: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a normalized pointer event from a mouse event.
|
|
23
|
+
*/
|
|
24
|
+
export declare function normalizeMouseEvent(event: MouseEvent): NormalizedPointerEvent;
|
|
25
|
+
/**
|
|
26
|
+
* Create a normalized pointer event from a touch event.
|
|
27
|
+
* Returns the first touch, or null if no touches.
|
|
28
|
+
*/
|
|
29
|
+
export declare function normalizeTouchEvent(event: TouchEvent): NormalizedPointerEvent | null;
|
|
30
|
+
/**
|
|
31
|
+
* Calculate distance between two positions.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getPointerDistance(pos1: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
}, pos2: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}): number;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { ViewType, SchedulerEvent, Resource, ResourceGroup, SchedulerOptions, PreviewEvent, DragState, TimeSlot } from '@mintplayer/web-components/scheduler-core';
|
|
2
|
+
/**
|
|
3
|
+
* Internal state for the scheduler web component
|
|
4
|
+
*/
|
|
5
|
+
export interface SchedulerState {
|
|
6
|
+
/** Current view type */
|
|
7
|
+
view: ViewType;
|
|
8
|
+
/** Current date (the date shown in the view) */
|
|
9
|
+
date: Date;
|
|
10
|
+
/** All events */
|
|
11
|
+
events: SchedulerEvent[];
|
|
12
|
+
/** Resources and resource groups */
|
|
13
|
+
resources: (Resource | ResourceGroup)[];
|
|
14
|
+
/** Configuration options */
|
|
15
|
+
options: SchedulerOptions;
|
|
16
|
+
/** Currently selected event */
|
|
17
|
+
selectedEvent: SchedulerEvent | null;
|
|
18
|
+
/** Currently hovered event */
|
|
19
|
+
hoveredEvent: SchedulerEvent | null;
|
|
20
|
+
/** Currently hovered time slot */
|
|
21
|
+
hoveredSlot: TimeSlot | null;
|
|
22
|
+
/** Current drag operation state */
|
|
23
|
+
dragState: DragState | null;
|
|
24
|
+
/** Preview event during drag operations */
|
|
25
|
+
previewEvent: PreviewEvent | null;
|
|
26
|
+
/** Collapsed resource group IDs */
|
|
27
|
+
collapsedGroups: Set<string>;
|
|
28
|
+
/** Whether mouse button is pressed */
|
|
29
|
+
isMouseDown: boolean;
|
|
30
|
+
/** Loading state */
|
|
31
|
+
isLoading: boolean;
|
|
32
|
+
/** Currently keyboard-focused cell. Drives roving tabindex inside the grid. */
|
|
33
|
+
focusedCell: TimeSlot | null;
|
|
34
|
+
/** Resource pinned to the focused cell (timeline view only). */
|
|
35
|
+
focusedResourceId: string | null;
|
|
36
|
+
/** The cell where the user first held Shift to begin a range selection. */
|
|
37
|
+
selectionAnchor: TimeSlot | null;
|
|
38
|
+
/** Current end-cell of the keyboard-driven selection. Range spans from the
|
|
39
|
+
* earliest cell.start to the latest cell.end across both anchor and extent. */
|
|
40
|
+
selectionExtent: TimeSlot | null;
|
|
41
|
+
/** Resource pinned at the anchor (timeline only); cross-resource selection is intentionally ignored (PRD D1). */
|
|
42
|
+
selectionResourceId: string | null;
|
|
43
|
+
/** ID of the event currently in keyboard move-mode (PRD §6.6). Drives `aria-pressed` on the event button. */
|
|
44
|
+
keyboardMoveEventId: string | null;
|
|
45
|
+
/**
|
|
46
|
+
* Keyboard-focused day on month-view, or first-of-month on year-view.
|
|
47
|
+
* Distinct from `focusedCell` (which carries a slot range), because month-
|
|
48
|
+
* and year-view cells aren't time slots — month cells are whole days, year
|
|
49
|
+
* cells are whole months.
|
|
50
|
+
*/
|
|
51
|
+
focusedDate: Date | null;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Create initial scheduler state
|
|
55
|
+
*/
|
|
56
|
+
export declare function createInitialState(options?: Partial<SchedulerOptions>): SchedulerState;
|
|
57
|
+
/**
|
|
58
|
+
* State update function type
|
|
59
|
+
*/
|
|
60
|
+
export type StateUpdater = (state: SchedulerState) => Partial<SchedulerState>;
|
|
61
|
+
/**
|
|
62
|
+
* State manager for the scheduler
|
|
63
|
+
*/
|
|
64
|
+
export declare class SchedulerStateManager {
|
|
65
|
+
private state;
|
|
66
|
+
private listeners;
|
|
67
|
+
constructor(initialOptions?: Partial<SchedulerOptions>);
|
|
68
|
+
/**
|
|
69
|
+
* Get current state
|
|
70
|
+
*/
|
|
71
|
+
getState(): SchedulerState;
|
|
72
|
+
/**
|
|
73
|
+
* Update state with partial update or updater function
|
|
74
|
+
*/
|
|
75
|
+
setState(update: Partial<SchedulerState> | StateUpdater): void;
|
|
76
|
+
/**
|
|
77
|
+
* Subscribe to state changes
|
|
78
|
+
*/
|
|
79
|
+
subscribe(listener: (state: SchedulerState) => void): () => void;
|
|
80
|
+
/**
|
|
81
|
+
* Notify all listeners of state change
|
|
82
|
+
*/
|
|
83
|
+
private notifyListeners;
|
|
84
|
+
/**
|
|
85
|
+
* Set the current view
|
|
86
|
+
*/
|
|
87
|
+
setView(view: ViewType): void;
|
|
88
|
+
/**
|
|
89
|
+
* Set the current date
|
|
90
|
+
*/
|
|
91
|
+
setDate(date: Date): void;
|
|
92
|
+
/**
|
|
93
|
+
* Set events
|
|
94
|
+
*/
|
|
95
|
+
setEvents(events: SchedulerEvent[]): void;
|
|
96
|
+
/**
|
|
97
|
+
* Add an event
|
|
98
|
+
*/
|
|
99
|
+
addEvent(event: SchedulerEvent): void;
|
|
100
|
+
/**
|
|
101
|
+
* Update an event
|
|
102
|
+
*/
|
|
103
|
+
updateEvent(event: SchedulerEvent): void;
|
|
104
|
+
/**
|
|
105
|
+
* Remove an event
|
|
106
|
+
*/
|
|
107
|
+
removeEvent(eventId: string): void;
|
|
108
|
+
/**
|
|
109
|
+
* Set resources
|
|
110
|
+
*/
|
|
111
|
+
setResources(resources: (Resource | ResourceGroup)[]): void;
|
|
112
|
+
/**
|
|
113
|
+
* Toggle resource group collapse
|
|
114
|
+
*/
|
|
115
|
+
toggleGroupCollapse(groupId: string): void;
|
|
116
|
+
/**
|
|
117
|
+
* Set selected event
|
|
118
|
+
*/
|
|
119
|
+
setSelectedEvent(event: SchedulerEvent | null): void;
|
|
120
|
+
/**
|
|
121
|
+
* Set hovered event
|
|
122
|
+
*/
|
|
123
|
+
setHoveredEvent(event: SchedulerEvent | null): void;
|
|
124
|
+
/**
|
|
125
|
+
* Set hovered slot
|
|
126
|
+
*/
|
|
127
|
+
setHoveredSlot(slot: TimeSlot | null): void;
|
|
128
|
+
/**
|
|
129
|
+
* Start a drag operation
|
|
130
|
+
*/
|
|
131
|
+
startDrag(dragState: DragState): void;
|
|
132
|
+
/**
|
|
133
|
+
* Update drag operation
|
|
134
|
+
*/
|
|
135
|
+
updateDrag(currentSlot: TimeSlot, preview: PreviewEvent): void;
|
|
136
|
+
/**
|
|
137
|
+
* End drag operation
|
|
138
|
+
*/
|
|
139
|
+
endDrag(): void;
|
|
140
|
+
/**
|
|
141
|
+
* Set mouse down state
|
|
142
|
+
*/
|
|
143
|
+
setMouseDown(isMouseDown: boolean): void;
|
|
144
|
+
/**
|
|
145
|
+
* Set loading state
|
|
146
|
+
*/
|
|
147
|
+
setLoading(isLoading: boolean): void;
|
|
148
|
+
/**
|
|
149
|
+
* Update options
|
|
150
|
+
*/
|
|
151
|
+
setOptions(options: Partial<SchedulerOptions>): void;
|
|
152
|
+
/**
|
|
153
|
+
* Navigate to next period
|
|
154
|
+
*/
|
|
155
|
+
next(): void;
|
|
156
|
+
/**
|
|
157
|
+
* Navigate to previous period
|
|
158
|
+
*/
|
|
159
|
+
prev(): void;
|
|
160
|
+
/**
|
|
161
|
+
* Navigate to today
|
|
162
|
+
*/
|
|
163
|
+
today(): void;
|
|
164
|
+
/**
|
|
165
|
+
* Navigate to a specific date
|
|
166
|
+
*/
|
|
167
|
+
gotoDate(date: Date): void;
|
|
168
|
+
/**
|
|
169
|
+
* Move the keyboard focus to a cell. Setting `clearSelection` (default)
|
|
170
|
+
* also drops any active range selection — used for plain Arrow nav, where
|
|
171
|
+
* Shift would have stayed held to keep the range alive.
|
|
172
|
+
*/
|
|
173
|
+
setFocusedCell(cell: TimeSlot | null, resourceId?: string | null, clearSelection?: boolean): void;
|
|
174
|
+
/**
|
|
175
|
+
* Begin or extend a range selection. Anchor is set on first call (when
|
|
176
|
+
* Shift is first held), pinned at the *previously-focused* cell. Extent
|
|
177
|
+
* moves with each subsequent Shift+Arrow.
|
|
178
|
+
*/
|
|
179
|
+
extendSelection(extent: TimeSlot, resourceId?: string | null): void;
|
|
180
|
+
/**
|
|
181
|
+
* Clear any active range selection without touching the focused cell.
|
|
182
|
+
*/
|
|
183
|
+
clearSelection(): void;
|
|
184
|
+
/**
|
|
185
|
+
* Move the keyboard focus to a calendar date — used by month and year views
|
|
186
|
+
* (PRD scheduler-controlled-selection §5). Pass `null` to clear.
|
|
187
|
+
*/
|
|
188
|
+
setFocusedDate(date: Date | null): void;
|
|
189
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { SchedulerEvent, TimeSlot } from '@mintplayer/web-components/scheduler-core';
|
|
2
|
+
import { SchedulerState } from '../state/scheduler-state';
|
|
3
|
+
/**
|
|
4
|
+
* Build the descriptive aria-label for an event block. Used by every view.
|
|
5
|
+
* Format: "{title}, {start}–{end} on {resource}". Resource is omitted when
|
|
6
|
+
* the event has no resource or the caller doesn't have it (week/day views).
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatEventAriaLabel(event: SchedulerEvent, resourceTitle: string | null, timeFormat?: '12h' | '24h'): string;
|
|
9
|
+
/**
|
|
10
|
+
* Normalised selection range — covers anchor.start through extent.end (or
|
|
11
|
+
* the reverse if the user shift-arrowed backwards), with the resource pinned
|
|
12
|
+
* at the anchor (timeline only).
|
|
13
|
+
*/
|
|
14
|
+
export declare function selectionRange(state: SchedulerState): {
|
|
15
|
+
start: Date;
|
|
16
|
+
end: Date;
|
|
17
|
+
resourceId: string | null;
|
|
18
|
+
} | null;
|
|
19
|
+
/**
|
|
20
|
+
* Whether a slot's [start, end) interval intersects the active selection range.
|
|
21
|
+
* Used by every time-grid view to drive the `.selected` / aria-selected styling
|
|
22
|
+
* on slot DOM. Cross-day spans (D1) light up naturally because intersection
|
|
23
|
+
* holds for every slot inside the linear time-range.
|
|
24
|
+
*/
|
|
25
|
+
export declare function isSlotInSelection(slot: TimeSlot, state: SchedulerState, resourceId?: string | null): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Live-region announcement for a focused cell. Read after each Arrow nav.
|
|
28
|
+
* Includes weekday + date so screen readers don't lose the user across
|
|
29
|
+
* cross-day moves.
|
|
30
|
+
*/
|
|
31
|
+
export declare function formatCellAnnouncement(slot: TimeSlot, timeFormat?: '12h' | '24h', resourceTitle?: string | null): string;
|
|
32
|
+
/**
|
|
33
|
+
* Live-region announcement after Shift+Arrow grows or shrinks the range.
|
|
34
|
+
* Reads "Selection: {start time, day} to {end time, day}, {N} slots".
|
|
35
|
+
*/
|
|
36
|
+
export declare function formatSelectionAnnouncement(state: SchedulerState, slotDuration: number, timeFormat?: '12h' | '24h'): string;
|
|
37
|
+
/**
|
|
38
|
+
* Live-region announcement for an in-progress keyboard event move.
|
|
39
|
+
*/
|
|
40
|
+
export declare function formatMoveAnnouncement(start: Date, end: Date, timeFormat?: '12h' | '24h'): string;
|
|
41
|
+
/**
|
|
42
|
+
* Live-region announcement for an in-progress keyboard event resize. The
|
|
43
|
+
* `edge` field tells the user which side they're stretching, so they can
|
|
44
|
+
* tell Shift+ArrowDown (end edge) from Alt+Shift+ArrowDown (start edge).
|
|
45
|
+
*/
|
|
46
|
+
export declare function formatResizeAnnouncement(start: Date, end: Date, edge: 'start' | 'end', timeFormat?: '12h' | '24h'): string;
|
|
47
|
+
/**
|
|
48
|
+
* Base class for scheduler views
|
|
49
|
+
*/
|
|
50
|
+
export declare abstract class BaseView {
|
|
51
|
+
protected container: HTMLElement;
|
|
52
|
+
protected state: SchedulerState;
|
|
53
|
+
constructor(container: HTMLElement, state: SchedulerState);
|
|
54
|
+
/**
|
|
55
|
+
* Update the view with new state
|
|
56
|
+
*/
|
|
57
|
+
abstract update(state: SchedulerState): void;
|
|
58
|
+
/**
|
|
59
|
+
* Render the view
|
|
60
|
+
*/
|
|
61
|
+
abstract render(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Clean up the view
|
|
64
|
+
*/
|
|
65
|
+
abstract destroy(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Update the now indicator position (called every minute)
|
|
68
|
+
* Default implementation does nothing - override in views that have a now indicator
|
|
69
|
+
*/
|
|
70
|
+
updateNowIndicator(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Get the view's root element
|
|
73
|
+
*/
|
|
74
|
+
getElement(): HTMLElement;
|
|
75
|
+
/**
|
|
76
|
+
* Helper to create an element with classes
|
|
77
|
+
*/
|
|
78
|
+
protected createElement<K extends keyof HTMLElementTagNameMap>(tag: K, ...classes: string[]): HTMLElementTagNameMap[K];
|
|
79
|
+
/**
|
|
80
|
+
* Helper to set data attributes
|
|
81
|
+
*/
|
|
82
|
+
protected setData(element: HTMLElement, data: Record<string, string | number>): void;
|
|
83
|
+
/**
|
|
84
|
+
* Helper to clear container
|
|
85
|
+
*/
|
|
86
|
+
protected clearContainer(): void;
|
|
87
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseView } from './base-view';
|
|
2
|
+
import { SchedulerState } from '../state/scheduler-state';
|
|
3
|
+
/**
|
|
4
|
+
* Day view renderer
|
|
5
|
+
*/
|
|
6
|
+
export declare class DayView extends BaseView {
|
|
7
|
+
private eventsContainer;
|
|
8
|
+
private slotElements;
|
|
9
|
+
private dayColumn;
|
|
10
|
+
render(): void;
|
|
11
|
+
/**
|
|
12
|
+
* Apply roving tabindex + aria-selected + `.selected` class to each cached
|
|
13
|
+
* slot element based on focusedCell and selection range.
|
|
14
|
+
*/
|
|
15
|
+
private updateCellFocusAndSelection;
|
|
16
|
+
private renderEvents;
|
|
17
|
+
private createEventElement;
|
|
18
|
+
private renderNowIndicator;
|
|
19
|
+
updateNowIndicator(): void;
|
|
20
|
+
update(state: SchedulerState): void;
|
|
21
|
+
private optionsRequireRerender;
|
|
22
|
+
private updateGreyedSlots;
|
|
23
|
+
private renderPreviewEvent;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseView } from './base-view';
|
|
2
|
+
import { SchedulerState } from '../state/scheduler-state';
|
|
3
|
+
/**
|
|
4
|
+
* Month view renderer
|
|
5
|
+
*/
|
|
6
|
+
export declare class MonthView extends BaseView {
|
|
7
|
+
private dayCells;
|
|
8
|
+
render(): void;
|
|
9
|
+
/**
|
|
10
|
+
* Build a `YYYY-MM-DD` key from a Date using *local* components. Using
|
|
11
|
+
* `toISOString()` here would shift the key in any non-UTC timezone (a
|
|
12
|
+
* local midnight on May 12 in CEST is May 11 22:00 UTC), and the resulting
|
|
13
|
+
* cell IDs would not match the visible day numbers.
|
|
14
|
+
*/
|
|
15
|
+
static dayKey(d: Date): string;
|
|
16
|
+
private createDayCell;
|
|
17
|
+
/**
|
|
18
|
+
* Apply roving tabindex based on `state.focusedDate`. The grid must always
|
|
19
|
+
* have exactly one tab-reachable cell, so when no date is focused yet we
|
|
20
|
+
* fall back to today (if visible) or the first day of the displayed month.
|
|
21
|
+
*/
|
|
22
|
+
private updateDayCellFocus;
|
|
23
|
+
private renderEvents;
|
|
24
|
+
update(state: SchedulerState): void;
|
|
25
|
+
private optionsRequireRerender;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseView } from './base-view';
|
|
2
|
+
import { SchedulerState } from '../state/scheduler-state';
|
|
3
|
+
/**
|
|
4
|
+
* Timeline view renderer
|
|
5
|
+
*/
|
|
6
|
+
export declare class TimelineView extends BaseView {
|
|
7
|
+
private rowElements;
|
|
8
|
+
private slotWidth;
|
|
9
|
+
render(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Apply roving tabindex + aria-selected + `.selected` class to each
|
|
12
|
+
* timeline-slot element. Selection is constrained to the resource pinned
|
|
13
|
+
* at the anchor (PRD D1: cross-resource selection ignored).
|
|
14
|
+
*/
|
|
15
|
+
private updateCellFocusAndSelection;
|
|
16
|
+
private createResourceRow;
|
|
17
|
+
private renderEvents;
|
|
18
|
+
private createEventElement;
|
|
19
|
+
update(state: SchedulerState): void;
|
|
20
|
+
private optionsRequireRerender;
|
|
21
|
+
private updateGreyedSlots;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseView } from './base-view';
|
|
2
|
+
import { SchedulerState } from '../state/scheduler-state';
|
|
3
|
+
/**
|
|
4
|
+
* Week view renderer
|
|
5
|
+
*/
|
|
6
|
+
export declare class WeekView extends BaseView {
|
|
7
|
+
private dayColumns;
|
|
8
|
+
private eventElements;
|
|
9
|
+
private slotElements;
|
|
10
|
+
render(): void;
|
|
11
|
+
update(state: SchedulerState): void;
|
|
12
|
+
/**
|
|
13
|
+
* Apply roving tabindex and aria-selected to each cached slot element. Also
|
|
14
|
+
* toggles the `.selected` class so the existing `.scheduler-time-slot.selected`
|
|
15
|
+
* styling lights up cells in the keyboard-driven range. A linear time-range
|
|
16
|
+
* selection (PRD D1) lights up every slot whose [start, end) intersects
|
|
17
|
+
* the range, including across day boundaries on week view.
|
|
18
|
+
*/
|
|
19
|
+
private updateCellFocusAndSelection;
|
|
20
|
+
private optionsRequireRerender;
|
|
21
|
+
private renderEvents;
|
|
22
|
+
private createEventElement;
|
|
23
|
+
private renderPreviewEvent;
|
|
24
|
+
private updateGreyedSlots;
|
|
25
|
+
private renderNowIndicator;
|
|
26
|
+
updateNowIndicator(): void;
|
|
27
|
+
destroy(): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseView } from './base-view';
|
|
2
|
+
import { SchedulerState } from '../state/scheduler-state';
|
|
3
|
+
/**
|
|
4
|
+
* Year view renderer
|
|
5
|
+
*/
|
|
6
|
+
export declare class YearView extends BaseView {
|
|
7
|
+
/** Cache of `.scheduler-year-month` cards keyed by `YYYY-MM`. */
|
|
8
|
+
private monthCards;
|
|
9
|
+
render(): void;
|
|
10
|
+
/**
|
|
11
|
+
* Build a `YYYY-MM` key from a Date, which is the unit of focus on year
|
|
12
|
+
* view (PRD scheduler-controlled-selection §5.2 — year cells are months,
|
|
13
|
+
* not days).
|
|
14
|
+
*/
|
|
15
|
+
private static monthKey;
|
|
16
|
+
private createMonthCard;
|
|
17
|
+
/**
|
|
18
|
+
* Apply roving tabindex based on `state.focusedDate`'s month. Year-view's
|
|
19
|
+
* focus unit is a month, so we strip down `focusedDate` to its `YYYY-MM`
|
|
20
|
+
* key. Falls back to the displayed year's first month if no focus yet.
|
|
21
|
+
*/
|
|
22
|
+
private updateMonthCardFocus;
|
|
23
|
+
update(state: SchedulerState): void;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
}
|