@calendrix/angular 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +63 -2
- package/fesm2022/calendrix-angular.mjs +2190 -0
- package/fesm2022/calendrix-angular.mjs.map +1 -0
- package/package.json +52 -3
- package/styles.css +532 -0
- package/types/calendrix-angular.d.ts +477 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendrix-angular.mjs","sources":["../../../projects/calendrix-angular/src/lib/props-directive.ts","../../../projects/calendrix-angular/src/lib/calendar.ts","../../../projects/calendrix-angular/src/lib/popover.ts","../../../projects/calendrix-angular/src/lib/date-picker.ts","../../../projects/calendrix-angular/src/lib/time-field.ts","../../../projects/calendrix-angular/src/lib/date-time-picker.ts","../../../projects/calendrix-angular/src/public-api.ts","../../../projects/calendrix-angular/src/calendrix-angular.ts"],"sourcesContent":["import { DestroyRef, Directive, ElementRef, Renderer2, effect, inject, input } from '@angular/core';\nimport { normalizeAttributes, type AttributeValue, type ElementProps } from '@calendrix/core';\n\ntype Handler = (event: Event) => void;\n\n/**\n * Applies what a prop getter of the core returns (`{ attrs, handlers }`) to an element:\n * the attributes, and the handlers as event listeners. Set `calendrixHandlers` to false to apply\n * only the attributes, when the component handles the events itself.\n */\n@Directive({ selector: '[calendrixProps]' })\nexport class CalendrixPropsDirective {\n readonly props = input<ElementProps<object> | null | undefined>(undefined, {\n alias: 'calendrixProps',\n });\n readonly handlers = input(true, { alias: 'calendrixHandlers' });\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private applied = new Set<string>();\n private latest: Record<string, Handler | undefined> = {};\n private readonly listeners = new Map<string, () => void>();\n\n constructor() {\n effect(() => {\n const props = this.props();\n this.applyAttributes(props?.attrs ?? {});\n\n // A listener is added once per event; it calls the newest handler.\n this.latest = this.handlers()\n ? ((props?.handlers ?? {}) as Record<string, Handler | undefined>)\n : {};\n for (const name of Object.keys(this.latest)) {\n if (this.listeners.has(name)) continue;\n this.listeners.set(\n name,\n this.renderer.listen(this.element, name, (event: Event) => this.latest[name]?.(event)),\n );\n }\n });\n\n inject(DestroyRef).onDestroy(() => {\n for (const stop of this.listeners.values()) stop();\n });\n }\n\n private applyAttributes(attrs: Record<string, AttributeValue>): void {\n const text = normalizeAttributes(attrs);\n for (const [name, value] of Object.entries(text)) {\n this.renderer.setAttribute(this.element, name, value);\n }\n for (const name of this.applied) {\n if (!(name in text)) this.renderer.removeAttribute(this.element, name);\n }\n this.applied = new Set(Object.keys(text));\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterEveryRender,\n booleanAttribute,\n forwardRef,\n computed,\n effect,\n inject,\n input,\n model,\n output,\n signal,\n type OnInit,\n} from '@angular/core';\nimport {\n createCalendar,\n type CalendarDate,\n type CalendarOptions,\n type ElementProps,\n type SelectionMode,\n type SelectionValue,\n} from '@calendrix/core';\nimport { NG_VALUE_ACCESSOR, type ControlValueAccessor } from '@angular/forms';\nimport { CalendrixPropsDirective } from './props-directive';\n\nconst COLUMNS = 3;\n\nconst cellKey = (date: CalendarDate) => `${date.year}-${date.month}-${date.day}`;\n\nfunction chunk<T>(items: readonly T[], size: number): T[][] {\n const rows: T[][] = [];\n for (let i = 0; i < items.length; i += size) rows.push(items.slice(i, i + size));\n return rows;\n}\n\n/**\n * A month calendar with the ARIA grid pattern. The month and the year in the header are buttons:\n * they open a grid of months and a page of years. `visibleMonths` shows up to three months side\n * by side, and `selection` picks one day, a range or many days. It has no styles of its own: use\n * the `calendrix-*` classes and the `data-*` attributes. Use `[(value)]` to read and set the value.\n */\n@Component({\n selector: 'calendrix-calendar',\n imports: [NgTemplateOutlet, CalendrixPropsDirective],\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendrixCalendar), multi: true },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n class=\"calendrix-calendar\"\n [calendrixProps]=\"view().root\"\n [calendrixHandlers]=\"false\"\n [attr.data-view]=\"view().state.view\"\n [attr.data-months]=\"view().multi ? view().state.visibleMonths : null\"\n (keydown)=\"onRootKeydown($event)\"\n (focusout)=\"onFocusOut($event)\"\n >\n @if (view().multi) {\n <div class=\"calendrix-panels\" (pointerleave)=\"onPointerLeave()\">\n @for (g of view().grids; track g.key) {\n <div class=\"calendrix-panel\">\n <ng-container\n [ngTemplateOutlet]=\"header\"\n [ngTemplateOutletContext]=\"{ $implicit: g }\"\n ></ng-container>\n <ng-container\n [ngTemplateOutlet]=\"dayGrid\"\n [ngTemplateOutletContext]=\"{ $implicit: g }\"\n ></ng-container>\n </div>\n }\n </div>\n } @else {\n @if (view().grids[0]; as g) {\n <ng-container\n [ngTemplateOutlet]=\"header\"\n [ngTemplateOutletContext]=\"{ $implicit: g }\"\n ></ng-container>\n\n @if (view().state.view === 'days') {\n <ng-container\n [ngTemplateOutlet]=\"dayGrid\"\n [ngTemplateOutletContext]=\"{ $implicit: g }\"\n ></ng-container>\n } @else {\n <div\n class=\"calendrix-grid\"\n [attr.data-view]=\"view().state.view\"\n [calendrixProps]=\"view().gridProps\"\n [calendrixHandlers]=\"false\"\n (keydown)=\"onGridKeydown($event)\"\n >\n @if (view().state.view === 'months') {\n @for (row of view().monthRows; track $index) {\n <div role=\"row\" class=\"calendrix-row\">\n @for (item of row; track item.cell.month) {\n <div\n class=\"calendrix-month\"\n [calendrixProps]=\"item.props\"\n [calendrixHandlers]=\"false\"\n (click)=\"switchView(item.props)\"\n >\n {{ item.cell.label }}\n </div>\n }\n </div>\n }\n } @else {\n @for (row of view().yearRows; track $index) {\n <div role=\"row\" class=\"calendrix-row\">\n @for (item of row; track item.cell.year) {\n <div\n class=\"calendrix-year\"\n [calendrixProps]=\"item.props\"\n [calendrixHandlers]=\"false\"\n (click)=\"switchView(item.props)\"\n >\n {{ item.cell.label }}\n </div>\n }\n </div>\n }\n }\n </div>\n }\n }\n }\n </div>\n\n <ng-template #header let-g>\n <div class=\"calendrix-header\">\n @if (g.index === 0) {\n <button type=\"button\" class=\"calendrix-nav calendrix-prev\" [calendrixProps]=\"view().prev\">\n <svg\n class=\"calendrix-chevron\"\n aria-hidden=\"true\"\n focusable=\"false\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M10 3 5 8l5 5\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </button>\n\n <div class=\"calendrix-title\" aria-live=\"polite\">\n @if (view().state.view !== 'years') {\n <button\n type=\"button\"\n class=\"calendrix-title-button calendrix-month-button\"\n [calendrixProps]=\"view().monthButton\"\n [calendrixHandlers]=\"false\"\n (click)=\"switchView(view().monthButton)\"\n >\n {{ view().state.monthName }}\n </button>\n }\n <button\n type=\"button\"\n class=\"calendrix-title-button calendrix-year-button\"\n [calendrixProps]=\"view().yearButton\"\n [calendrixHandlers]=\"false\"\n (click)=\"switchView(view().yearButton)\"\n >\n {{ view().state.view === 'years' ? view().state.yearsLabel : view().state.yearLabel }}\n </button>\n </div>\n } @else {\n <span class=\"calendrix-nav-spacer\" aria-hidden=\"true\"></span>\n <div class=\"calendrix-title\">\n <span class=\"calendrix-title-text\">{{ g.grid.monthName }}</span>\n <span class=\"calendrix-title-text\">{{ g.grid.yearLabel }}</span>\n </div>\n }\n\n @if (g.isLast) {\n <button type=\"button\" class=\"calendrix-nav calendrix-next\" [calendrixProps]=\"view().next\">\n <svg\n class=\"calendrix-chevron\"\n aria-hidden=\"true\"\n focusable=\"false\"\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M6 3l5 5-5 5\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n </button>\n } @else {\n <span class=\"calendrix-nav-spacer\" aria-hidden=\"true\"></span>\n }\n </div>\n </ng-template>\n\n <ng-template #dayGrid let-g>\n <div\n class=\"calendrix-grid\"\n data-view=\"days\"\n [calendrixProps]=\"g.props\"\n [calendrixHandlers]=\"false\"\n (keydown)=\"onGridKeydown($event)\"\n (pointerleave)=\"onGridPointerLeave()\"\n >\n <div role=\"row\" class=\"calendrix-weekdays\">\n @for (label of view().state.weekdayLabels; track label.long) {\n <div role=\"columnheader\" class=\"calendrix-weekday\" [attr.aria-label]=\"label.long\">\n {{ label.short }}\n </div>\n }\n </div>\n @for (week of g.weeks; track $index) {\n <div\n role=\"row\"\n class=\"calendrix-week\"\n [attr.aria-hidden]=\"isEmptyWeek(week) ? 'true' : null\"\n >\n @for (day of week; track day.key) {\n @if (day.props) {\n <div\n class=\"calendrix-day\"\n [calendrixProps]=\"day.props\"\n (pointerenter)=\"calendar.previewTo(day.cell.date)\"\n >\n {{ day.cell.label }}\n </div>\n } @else {\n <!-- With several months every day shows once: the days of the other months stay empty. -->\n <div role=\"presentation\" class=\"calendrix-day-empty\"></div>\n }\n }\n </div>\n }\n </div>\n </ng-template>\n `,\n})\nexport class CalendrixCalendar<M extends SelectionMode = 'single'>\n implements OnInit, ControlValueAccessor\n{\n /** One day (default), a range with a start and an end, or any number of separate days. */\n readonly selection = input<M>('single' as M);\n /** The selection. Use `[(value)]`. The type follows `selection`. */\n readonly value = model<SelectionValue<M>>();\n readonly defaultValue = input<SelectionValue<M>>();\n\n readonly system = input<CalendarOptions<M>['system']>();\n readonly locale = input<CalendarOptions<M>['locale']>();\n readonly direction = input<CalendarOptions<M>['direction']>();\n readonly weekStart = input<CalendarOptions<M>['weekStart']>();\n readonly plugins = input<CalendarOptions<M>['plugins']>();\n\n readonly focusedDate = input<CalendarDate>();\n readonly focusedDateChange = output<CalendarDate>();\n\n /** How many months are shown at once: 1 (default), 2 or 3. */\n readonly visibleMonths = input<number>();\n readonly allowUnavailableInRange = input<boolean>();\n readonly maxSelected = input<number>();\n\n readonly minDate = input<CalendarDate>();\n readonly maxDate = input<CalendarDate>();\n readonly isDateUnavailable = input<(date: CalendarDate) => boolean>();\n\n readonly labels = input<CalendarOptions<M>['labels']>();\n readonly timeZone = input<string>();\n readonly now = input<() => Date>();\n /** The user cannot change anything (ADR 0022). A form can also disable the calendar. */\n readonly disabledInput = input(false, { alias: 'disabled', transform: booleanAttribute });\n\n /**\n * Created again in `ngOnInit`, when the inputs are known: the core reads some options (`now`,\n * `timeZone`, `defaultValue`, `focusedDate`) only when it is created.\n */\n protected calendar = createCalendar<M>({});\n /** The snapshot of the core: the same object until something changes. */\n protected readonly state = signal(this.calendar.getState());\n private unsubscribe: () => void = () => undefined;\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** The last `focusRequest` of the core that this component has seen (see `CalendarState`). */\n private seenFocusRequest = 0;\n\n private readonly handleChange = (next: SelectionValue<M>) => {\n this.value.set(next);\n this.onChangeFn(next);\n };\n private readonly handleFocusedDate = (date: CalendarDate) => this.focusedDateChange.emit(date);\n\n private readonly options = computed<Partial<CalendarOptions<M>>>(() => ({\n selection: this.selection(),\n value: this.value(),\n defaultValue: this.defaultValue(),\n system: this.system(),\n locale: this.locale(),\n direction: this.direction(),\n weekStart: this.weekStart(),\n plugins: this.plugins(),\n focusedDate: this.focusedDate(),\n visibleMonths: this.visibleMonths(),\n allowUnavailableInRange: this.allowUnavailableInRange(),\n maxSelected: this.maxSelected(),\n minDate: this.minDate(),\n maxDate: this.maxDate(),\n isDateUnavailable: this.isDateUnavailable(),\n labels: this.labels(),\n timeZone: this.timeZone(),\n now: this.now(),\n disabled: this.disabled(),\n onChange: this.handleChange,\n onFocusedDateChange: this.handleFocusedDate,\n }));\n\n /** Everything the template needs, computed once for each state. */\n protected readonly view = computed(() => {\n const state = this.state();\n const calendar = this.calendar;\n const multi = state.view === 'days' && state.visibleMonths > 1;\n const lastIndex = state.grids.length - 1;\n\n return {\n state,\n multi,\n root: calendar.getRootProps(),\n gridProps: calendar.getGridProps(),\n prev: calendar.getPrevButtonProps(),\n next: calendar.getNextButtonProps(),\n monthButton: calendar.getMonthButtonProps(),\n yearButton: calendar.getYearButtonProps(),\n grids: state.grids.map((grid, index) => ({\n grid,\n index,\n key: `${grid.year}-${grid.month}`,\n props: calendar.getGridProps(index),\n isLast: state.view !== 'days' || index === lastIndex,\n weeks: grid.weeks.map((week) =>\n week.map((cell) => ({\n cell,\n key: cellKey(cell.date),\n // `null` marks a day of another month, left empty when several months are shown.\n props: multi && cell.isOutsideMonth ? null : calendar.getDayProps(cell.date),\n })),\n ),\n })),\n monthRows: chunk(\n state.months.map((cell) => ({ cell, props: calendar.getMonthProps(cell.month) })),\n COLUMNS,\n ),\n yearRows: chunk(\n state.years.map((cell) => ({ cell, props: calendar.getYearProps(cell.year) })),\n COLUMNS,\n ),\n };\n });\n\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n this.unsubscribe();\n this.calendar.destroy();\n });\n\n effect(() => this.calendar.setOptions(this.options()));\n\n afterEveryRender(() => {\n const request = this.state().focusRequest;\n if (request === this.seenFocusRequest) return;\n this.seenFocusRequest = request;\n this.focusFocusedCell();\n });\n }\n\n ngOnInit(): void {\n this.calendar.destroy();\n this.calendar = createCalendar<M>(this.options());\n this.unsubscribe = this.calendar.subscribe(() => this.state.set(this.calendar.getState()));\n this.state.set(this.calendar.getState());\n }\n\n // ControlValueAccessor: a form writes the value in and hears about changes made by the user.\n private onChangeFn: (value: SelectionValue<M>) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n private readonly formDisabled = signal(false);\n /** Disabled by the `disabled` input or by the form. */\n protected readonly disabled = computed(() => this.disabledInput() || this.formDisabled());\n\n writeValue(value: unknown): void {\n // null or undefined from a form (a reset, a new control) means empty.\n this.value.set((value ?? (this.selection() === 'multiple' ? [] : null)) as SelectionValue<M>);\n }\n\n registerOnChange(fn: (value: SelectionValue<M>) => void): void {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n /** The control is touched when the focus leaves the whole calendar, not between its cells. */\n protected onFocusOut(event: FocusEvent): void {\n if (!this.host.nativeElement.contains(event.relatedTarget as Node | null)) this.onTouchedFn();\n }\n\n private focusFocusedCell(): void {\n this.host.nativeElement.querySelector<HTMLElement>('[role=\"grid\"] [tabindex=\"0\"]')?.focus();\n }\n\n protected onGridKeydown(event: KeyboardEvent): void {\n // A handled key gives a new `focusRequest`; the hook in the constructor moves the focus.\n this.calendar.handleKeyDown(event);\n }\n\n /** Escape leaves the months or the years from anywhere in the calendar, also from a button. */\n protected onRootKeydown(event: KeyboardEvent): void {\n if (\n event.key !== 'Escape' ||\n event.defaultPrevented ||\n this.calendar.getState().view === 'days'\n ) {\n return;\n }\n event.preventDefault();\n this.calendar.setView('days');\n }\n\n /** Buttons and cells that change the view: the core asks for the focus to move to the grid. */\n protected switchView(props: ElementProps<{ click: () => void }>): void {\n props.handlers.click();\n }\n\n protected onPointerLeave(): void {\n this.calendar.previewTo(null);\n }\n\n /** With several months a week of only other months' days has no cell: it is hidden from assistive technology. */\n protected isEmptyWeek(week: readonly { readonly props?: unknown }[]): boolean {\n return week.every((day) => !day.props);\n }\n\n protected onGridPointerLeave(): void {\n if (!this.view().multi) this.calendar.previewTo(null);\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n afterNextRender,\n inject,\n input,\n output,\n type OnInit,\n} from '@angular/core';\nimport {\n autoUpdate,\n computePosition,\n flip,\n offset,\n shift,\n size,\n type Placement,\n} from '@floating-ui/dom';\n\nexport type PopoverDismissReason = 'outside' | 'escape';\n\nconst TABBABLE =\n 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\n/**\n * Turns an element into a popover anchored to another element:\n * `<div [calendrixPopover]=\"anchorElement\" (dismiss)=\"close()\">…</div>`.\n *\n * It moves the element to the end of `<body>` (unless `[portal]=\"false\"`), keeps it next to the\n * anchor (flip, shift, size, auto update), keeps Tab inside it, moves the focus into it when it\n * opens, and emits `dismiss` for a press outside and for Escape. It never closes by itself and\n * never returns the focus: the owner does both (see ADR 0013).\n */\n@Directive({\n selector: '[calendrixPopover]',\n host: {\n class: 'calendrix-popover',\n tabindex: '-1',\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class CalendrixPopover implements OnInit {\n /** The element the popover is placed next to. A press inside it is not an outside press. */\n readonly anchor = input.required<HTMLElement>({ alias: 'calendrixPopover' });\n /** Move the popover to `<body>`. Default: true. */\n readonly portal = input(true);\n readonly placement = input<Placement>('bottom-start');\n readonly dismiss = output<PopoverDismissReason>();\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly document = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n\n constructor() {\n afterNextRender(() => {\n const target =\n this.element.querySelector<HTMLElement>('[role=\"grid\"] [tabindex=\"0\"]') ?? this.element;\n target.focus();\n });\n }\n\n ngOnInit(): void {\n const element = this.element;\n const portaled = this.portal();\n if (portaled) {\n // The theme of an ancestor does not reach a popover in the body (ADR 0026).\n const theme = this.anchor().closest('[data-theme]')?.getAttribute('data-theme');\n if (theme) element.setAttribute('data-theme', theme);\n this.document.body.appendChild(element);\n }\n\n // Fixed positioning, so a scrolling ancestor of the anchor cannot clip or offset the popover.\n element.style.position = 'fixed';\n element.style.left = '0px';\n element.style.top = '0px';\n\n const anchor = this.anchor();\n const update = () => {\n void computePosition(anchor, element, {\n strategy: 'fixed',\n placement: this.placement(),\n middleware: [\n offset(4),\n flip(),\n shift({ padding: 8 }),\n size({\n padding: 8,\n apply: ({ availableHeight }) => {\n element.style.maxHeight = `${Math.max(120, Math.floor(availableHeight))}px`;\n element.style.overflowY = 'auto';\n },\n }),\n ],\n }).then(({ x, y }) => {\n element.style.left = `${Math.round(x)}px`;\n element.style.top = `${Math.round(y)}px`;\n });\n };\n const stopAutoUpdate = autoUpdate(anchor, element, update);\n\n const onPointerDown = (event: Event) => {\n const target = event.target as Node | null;\n if (!target || element.contains(target) || anchor.contains(target)) return;\n this.dismiss.emit('outside');\n };\n this.document.addEventListener('pointerdown', onPointerDown, true);\n\n // Escape closes the popover from anywhere, even when a click left the focus on the page. A\n // layer inside that used the key first (the month or year view of the calendar) has already\n // called `preventDefault`.\n const onKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Escape' || event.defaultPrevented) return;\n event.preventDefault();\n this.dismiss.emit('escape');\n };\n this.document.addEventListener('keydown', onKeyDown);\n\n this.destroyRef.onDestroy(() => {\n stopAutoUpdate();\n this.document.removeEventListener('pointerdown', onPointerDown, true);\n this.document.removeEventListener('keydown', onKeyDown);\n // Angular only removes the nodes it still finds in the host view, not an element we moved.\n if (portaled) element.remove();\n });\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n if (event.key !== 'Tab') return;\n\n const items = Array.from(this.element.querySelectorAll<HTMLElement>(TABBABLE));\n if (items.length === 0) {\n event.preventDefault();\n this.element.focus();\n return;\n }\n const first = items[0] as HTMLElement;\n const last = items[items.length - 1] as HTMLElement;\n const active = this.document.activeElement;\n if (event.shiftKey && (active === first || active === this.element)) {\n event.preventDefault();\n last.focus();\n } else if (!event.shiftKey && active === last) {\n event.preventDefault();\n first.focus();\n }\n }\n}\n","import type { ElementRef } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n Injector,\n forwardRef,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n untracked,\n viewChild,\n type OnInit,\n} from '@angular/core';\nimport {\n convertDate,\n formatDate,\n formatDateRange,\n formatSelection,\n isDateSelectable,\n isEmptySelection,\n isRangeSelectable,\n parseDate,\n parseDateRange,\n pickerLabelsFor,\n registerCalendar,\n toSystem,\n type CalendarDate,\n type CalendarOptions,\n type CalendarSystem,\n type PickerLabels,\n type Selection,\n type SelectionMode,\n type SelectionValue,\n} from '@calendrix/core';\nimport { NG_VALUE_ACCESSOR, type ControlValueAccessor } from '@angular/forms';\nimport { CalendrixCalendar } from './calendar';\nimport { CalendrixPopover, type PopoverDismissReason } from './popover';\n\nexport type DatePickerLabels = Partial<PickerLabels> & {\n /** The text of a long list of days in `multiple` mode. Default: \"5 dates\" (built in for en, fa, de). */\n datesSelected?: (count: number) => string;\n};\n\nlet nextDialogId = 0;\n\n/**\n * A text input and a popover with a calendar, for one day, a range or many days (no time: see\n * `DateTimePicker`). A day or a range can be typed or picked; a list of days is picked, and the\n * input shows it as text. It has no styles of its own, see the `calendrix-*` classes.\n *\n * Use `[(value)]`, or `[defaultValue]` and `(valueChange)`. The type of the value follows\n * `selection`.\n */\n@Component({\n selector: 'calendrix-date-picker',\n imports: [CalendrixCalendar, CalendrixPopover],\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendrixDatePicker), multi: true },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"calendrix-picker\" #wrapper>\n <div class=\"calendrix-picker-field\">\n <input\n #input\n class=\"calendrix-input\"\n type=\"text\"\n dir=\"ltr\"\n autocomplete=\"off\"\n [attr.id]=\"inputId()\"\n [value]=\"text()\"\n [readOnly]=\"selection() === 'multiple'\"\n [placeholder]=\"placeholder() ?? samplePlaceholder()\"\n [disabled]=\"disabled()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event)\"\n (blur)=\"handleBlur()\"\n (keydown)=\"onInputKeydown($event)\"\n />\n @if (!disabled() && (!isEmpty() || text().trim() !== '')) {\n <button\n type=\"button\"\n class=\"calendrix-toggle calendrix-clear\"\n [attr.aria-label]=\"texts().clear\"\n (click)=\"clearAndFocus()\"\n >\n <svg aria-hidden=\"true\" focusable=\"false\" width=\"14\" height=\"14\" viewBox=\"0 0 14 14\">\n <path\n d=\"M3 3l8 8M11 3l-8 8\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n <button\n type=\"button\"\n class=\"calendrix-toggle\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"texts().openCalendar\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? dialogId : null\"\n [disabled]=\"disabled()\"\n (click)=\"open.set(!open())\"\n >\n <svg aria-hidden=\"true\" focusable=\"false\" width=\"18\" height=\"18\" viewBox=\"0 0 18 18\">\n <rect\n x=\"2.5\"\n y=\"3.5\"\n width=\"13\"\n height=\"12\"\n rx=\"2\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M2.5 7.5h13M6 2v3M12 2v3\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n </div>\n\n @if (open()) {\n <div\n role=\"dialog\"\n [id]=\"dialogId\"\n [attr.aria-label]=\"texts().dialog\"\n [calendrixPopover]=\"wrapper\"\n [portal]=\"portal()\"\n (dismiss)=\"onDismiss($event)\"\n >\n <calendrix-calendar\n [selection]=\"selection()\"\n [system]=\"system()\"\n [locale]=\"locale()\"\n [plugins]=\"plugins()\"\n [value]=\"shown()\"\n (valueChange)=\"onCalendarChange($event)\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [isDateUnavailable]=\"isDateUnavailable()\"\n [weekStart]=\"weekStart()\"\n [direction]=\"direction()\"\n [timeZone]=\"timeZone()\"\n [now]=\"now()\"\n [visibleMonths]=\"visibleMonths() ?? (selection() === 'range' ? 2 : 1)\"\n [allowUnavailableInRange]=\"allowUnavailableInRange()\"\n [maxSelected]=\"maxSelected()\"\n />\n <div class=\"calendrix-popover-footer\" data-actions-only=\"\">\n <div class=\"calendrix-actions\">\n <button type=\"button\" class=\"calendrix-action\" (click)=\"resetValue()\">\n {{ texts().clear }}\n </button>\n <button\n type=\"button\"\n class=\"calendrix-action calendrix-action-primary\"\n (click)=\"close(true)\"\n >\n {{ texts().done }}\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n `,\n})\nexport class CalendrixDatePicker<M extends SelectionMode = 'single'>\n implements OnInit, ControlValueAccessor\n{\n /** One day (default), a range with a start and an end, or any number of separate days. */\n readonly selection = input<M>('single' as M);\n /** The selection. Use `[(value)]`. The type follows `selection`. */\n readonly value = model<SelectionValue<M>>();\n readonly defaultValue = input<SelectionValue<M>>();\n\n /** Calendar system shown and understood when typing. Default: 'gregory'. */\n readonly system = input<CalendarSystem>('gregory');\n /** BCP 47 locale for names, numerals and the order of a typed date. Default: 'en-US'. */\n readonly locale = input('en-US');\n /** Plugins register calendar systems, for example `persianPlugin`. */\n readonly plugins = input<CalendarOptions['plugins']>();\n\n readonly minDate = input<CalendarDate>();\n readonly maxDate = input<CalendarDate>();\n readonly isDateUnavailable = input<(date: CalendarDate) => boolean>();\n /** First day of the week, 0 is Sunday. Default: from the locale. */\n readonly weekStart = input<CalendarOptions['weekStart']>();\n /** Default: from the locale. */\n readonly direction = input<CalendarOptions['direction']>();\n readonly timeZone = input<string>();\n readonly now = input<() => Date>();\n\n /** How many months the calendar shows. Default: 2 for `range`, 1 otherwise. */\n readonly visibleMonths = input<number>();\n /** Range: allow a range that contains unavailable days. Default: true. */\n readonly allowUnavailableInRange = input<boolean>();\n /** Multiple: the most days that can be selected. Default: no limit. */\n readonly maxSelected = input<number>();\n /**\n * Close the popover when the selection is complete: a picked day, or the second day of a range.\n * Default: true, except for `multiple`.\n */\n readonly closeOnSelect = input<boolean>();\n\n readonly labels = input<DatePickerLabels>();\n readonly placeholder = input<string>();\n readonly disabledInput = input(false, { alias: 'disabled', transform: booleanAttribute });\n /** The `id` of the text input, for a `<label for>`. */\n readonly inputId = input<string>();\n /** Render the popover in `<body>` (default). Use `[portal]=\"false\"` to render it next to the input. */\n readonly portal = input(true, { transform: booleanAttribute });\n\n protected readonly open = signal(false);\n protected readonly text = signal('');\n private readonly touched = signal(false);\n protected readonly dialogId = `calendrix-dialog-${nextDialogId++}`;\n\n private readonly inputElement = viewChild.required<ElementRef<HTMLInputElement>>('input');\n private readonly injector = inject(Injector);\n /** True while the value is changing because the user typed it: the text must stay as typed. */\n private typing = false;\n\n private readonly empty = computed(\n () => (this.selection() === 'multiple' ? [] : null) as SelectionValue<M>,\n );\n\n /** The value as the parent gave it, or the default (and the empty value) until a first change. */\n private readonly current = computed(() => {\n const value = this.value();\n return (\n value !== undefined ? value : (this.defaultValue() ?? this.empty())\n ) as SelectionValue<M>;\n });\n\n /** The selection in the calendar system on screen. */\n protected readonly shown = computed(() => {\n this.registerPlugins();\n return toSystem(this.current() as Selection, this.system()) as SelectionValue<M>;\n });\n\n private readonly valueKey = computed(() => this.format(this.shown() as Selection));\n protected readonly isEmpty = computed(() => isEmptySelection(this.current() as Selection));\n protected readonly texts = computed(() => pickerLabelsFor(this.locale(), this.labels(), 'date'));\n\n protected readonly invalid = computed(\n () =>\n this.selection() !== 'multiple' &&\n this.touched() &&\n this.text().trim() !== '' &&\n this.parse(this.text()) === null,\n );\n\n protected readonly samplePlaceholder = computed(() => {\n this.registerPlugins();\n const system = this.system();\n const locale = this.locale();\n const sample = convertDate({ system: 'gregory', year: 2026, month: 10, day: 14 }, system);\n const sampleEnd = convertDate({ system: 'gregory', year: 2026, month: 10, day: 21 }, system);\n switch (this.selection()) {\n case 'range':\n return formatDateRange({ start: sample, end: sampleEnd }, locale);\n case 'multiple':\n return '';\n default:\n return formatDate(sample, locale);\n }\n });\n\n constructor() {\n // A change that did not come from typing (the parent, a pick in the calendar, Clear) rewrites the text.\n effect(() => {\n const key = this.valueKey();\n untracked(() => {\n if (this.typing) {\n this.typing = false;\n return;\n }\n this.text.set(key);\n });\n });\n }\n\n ngOnInit(): void {\n this.text.set(this.valueKey());\n }\n\n // ControlValueAccessor: a form writes the value in and hears about changes made by the user.\n private onChangeFn: (value: SelectionValue<M>) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n private readonly formDisabled = signal(false);\n /** Disabled by the `disabled` input or by the form. */\n protected readonly disabled = computed(() => this.disabledInput() || this.formDisabled());\n\n writeValue(value: unknown): void {\n // null or undefined from a form (a reset, a new control) means empty.\n this.value.set((value ?? this.empty()) as SelectionValue<M>);\n }\n\n registerOnChange(fn: (value: SelectionValue<M>) => void): void {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n /** Typing a date in a calendar from a plugin works before the popover has ever been opened. */\n private registerPlugins(): void {\n for (const plugin of this.plugins() ?? []) {\n for (const calendar of plugin.calendars ?? []) registerCalendar(calendar);\n }\n }\n\n private format(selection: Selection): string {\n return formatSelection(selection, this.locale(), this.labels()?.datesSelected);\n }\n\n /** A typed text: one date, or a range. A list of days is not typed. */\n private parse(text: string): Selection {\n this.registerPlugins();\n const options = { locale: this.locale(), system: this.system() };\n const parsed =\n this.selection() === 'range' ? parseDateRange(text, options) : parseDate(text, options);\n if (parsed === null) return null;\n\n // A date the user could not pick in the calendar is not a value either (ADR 0025).\n const limits = {\n minDate: this.minDate(),\n maxDate: this.maxDate(),\n isDateUnavailable: this.isDateUnavailable(),\n plugins: this.plugins(),\n locale: options.locale,\n system: options.system,\n allowUnavailableInRange: this.allowUnavailableInRange(),\n };\n if (Array.isArray(parsed)) return parsed;\n if ('start' in parsed) return isRangeSelectable(parsed, limits) ? parsed : null;\n return isDateSelectable(parsed, limits) ? parsed : null;\n }\n\n private commit(next: Selection): void {\n this.value.set(next as SelectionValue<M>);\n this.onChangeFn(next as SelectionValue<M>);\n }\n\n /** The flag only covers the render caused by typing. A later change from the parent updates the text. */\n private markTyping(): void {\n this.typing = true;\n afterNextRender(\n () => {\n this.typing = false;\n },\n { injector: this.injector },\n );\n }\n\n protected onInput(event: Event): void {\n this.handleText((event.target as HTMLInputElement).value);\n }\n\n private handleText(next: string): void {\n this.text.set(next);\n if (next.trim() === '') {\n if (!this.isEmpty()) {\n this.markTyping();\n this.commit(this.empty() as Selection);\n }\n return;\n }\n const parsed = this.parse(next);\n if (!parsed) return;\n if (this.format(parsed) !== this.valueKey()) this.markTyping();\n this.commit(parsed);\n }\n\n protected handleBlur(): void {\n this.touched.set(true);\n if (!this.open()) this.onTouchedFn();\n // A valid text is written the standard way once the user is done typing.\n const text = this.text();\n if (this.selection() !== 'multiple' && text.trim() !== '' && this.parse(text)) {\n this.text.set(this.valueKey());\n }\n }\n\n protected onInputKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.open.set(true);\n } else if (\n this.selection() === 'multiple' &&\n (event.key === 'Delete' || event.key === 'Backspace')\n ) {\n event.preventDefault();\n this.resetValue();\n }\n }\n\n protected resetValue(): void {\n this.commit(this.empty() as Selection);\n this.text.set('');\n }\n\n protected clearAndFocus(): void {\n this.resetValue();\n this.inputElement().nativeElement.focus();\n }\n\n /** Close the popover, and give the focus back to the input when `returnFocus` is true. */\n protected close(returnFocus: boolean): void {\n this.open.set(false);\n this.onTouchedFn();\n if (returnFocus) this.inputElement().nativeElement.focus();\n }\n\n protected onDismiss(reason: PopoverDismissReason): void {\n if (reason === 'escape') {\n this.close(true);\n } else {\n this.open.set(false);\n this.onTouchedFn();\n }\n }\n\n protected onCalendarChange(next: SelectionValue<M> | undefined): void {\n if (next === undefined) return;\n this.commit(next as Selection);\n const closes = this.closeOnSelect() ?? this.selection() !== 'multiple';\n if (closes && !isEmptySelection(next as Selection)) this.close(true);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n afterEveryRender,\n booleanAttribute,\n forwardRef,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n type OnInit,\n} from '@angular/core';\nimport {\n createTimeField,\n type HourCycle,\n type TimeFieldLabels,\n type TimeFieldOptions,\n type TimeSegmentType,\n type TimeValue,\n} from '@calendrix/core';\nimport { NG_VALUE_ACCESSOR, type ControlValueAccessor } from '@angular/forms';\nimport { CalendrixPropsDirective } from './props-directive';\n\n/**\n * A time input made of segments (hour, minute, optional seconds, AM/PM). Each segment is a\n * spinbutton: type digits, or use the up and down arrow keys. It has no styles of its own: use the\n * `calendrix-*` classes. Use `[(value)]` to read and set the time.\n */\n@Component({\n selector: 'calendrix-time-field',\n imports: [CalendrixPropsDirective],\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => CalendrixTimeField), multi: true },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div\n class=\"calendrix-time-field\"\n [calendrixProps]=\"view().root\"\n [calendrixHandlers]=\"false\"\n (focusout)=\"onFocusOut($event)\"\n >\n @for (item of view().segments; track item.segment.type) {\n @if (item.separator) {\n <span class=\"calendrix-separator\" aria-hidden=\"true\">:</span>\n }\n <span\n class=\"calendrix-segment\"\n [calendrixProps]=\"item.props\"\n [calendrixHandlers]=\"false\"\n (keydown)=\"onKeydown(item.segment.type, $event)\"\n (beforeinput)=\"onBeforeInput(item.segment.type, $event)\"\n (input)=\"onInput(item.segment.type, $event)\"\n (focus)=\"field.focusSegment(item.segment.type)\"\n >{{ item.segment.text }}</span\n >\n }\n </div>\n `,\n})\nexport class CalendrixTimeField implements OnInit, ControlValueAccessor {\n /** The time. Use `[(value)]`. `null` means an empty field. */\n readonly value = model<TimeValue | null>();\n readonly defaultValue = input<TimeValue | null>();\n\n /** BCP 47 locale for numerals and the AM/PM text. Default: 'en-US'. */\n readonly locale = input<string>();\n /** 12 or 24. Default: the locale's own habit. */\n readonly hourCycle = input<HourCycle>();\n /** Show a seconds segment. Default: false. */\n readonly showSeconds = input<boolean>();\n /** Step of the up and down arrows. Default: 1. */\n readonly hourStep = input<number>();\n readonly minuteStep = input<number>();\n readonly secondStep = input<number>();\n /** Values outside this range are rejected. */\n readonly minTime = input<TimeValue>();\n readonly maxTime = input<TimeValue>();\n readonly labels = input<Partial<TimeFieldLabels>>();\n /** The user cannot change anything (ADR 0022). A form can also disable the field. */\n readonly disabledInput = input(false, { alias: 'disabled', transform: booleanAttribute });\n\n /** Created again in `ngOnInit`: the core reads some options only when it is created. */\n protected field = createTimeField({});\n protected readonly state = signal(this.field.getState());\n private unsubscribe: () => void = () => undefined;\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** The last `focusRequest` of the core that this component has seen (see `TimeFieldState`). */\n private seenFocusRequest = 0;\n\n private readonly handleChange = (next: TimeValue | null) => {\n this.value.set(next);\n this.onChangeFn(next);\n };\n\n private readonly options = computed<TimeFieldOptions>(() => ({\n value: this.value(),\n defaultValue: this.defaultValue(),\n locale: this.locale(),\n hourCycle: this.hourCycle(),\n showSeconds: this.showSeconds(),\n hourStep: this.hourStep(),\n minuteStep: this.minuteStep(),\n secondStep: this.secondStep(),\n minTime: this.minTime(),\n maxTime: this.maxTime(),\n labels: this.labels(),\n disabled: this.disabled(),\n onChange: this.handleChange,\n }));\n\n protected readonly view = computed(() => {\n const state = this.state();\n return {\n root: this.field.getRootProps(),\n segments: state.segments.map((segment) => ({\n segment,\n props: this.field.getSegmentProps(segment.type),\n separator: segment.type === 'minute' || segment.type === 'second',\n })),\n };\n });\n\n constructor() {\n inject(DestroyRef).onDestroy(() => {\n this.unsubscribe();\n this.field.destroy();\n });\n\n effect(() => this.field.setOptions(this.options()));\n\n afterEveryRender(() => {\n const request = this.state().focusRequest;\n if (request === this.seenFocusRequest) return;\n this.seenFocusRequest = request;\n const type = this.state().activeSegment;\n if (!type) return;\n this.host.nativeElement.querySelector<HTMLElement>(`[data-segment=\"${type}\"]`)?.focus();\n });\n }\n\n ngOnInit(): void {\n this.field.destroy();\n this.field = createTimeField(this.options());\n this.unsubscribe = this.field.subscribe(() => this.state.set(this.field.getState()));\n this.state.set(this.field.getState());\n }\n\n // ControlValueAccessor: a form writes the time in and hears about changes made by the user.\n private onChangeFn: (value: TimeValue | null) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n private readonly formDisabled = signal(false);\n /** Disabled by the `disabled` input or by the form. */\n protected readonly disabled = computed(() => this.disabledInput() || this.formDisabled());\n\n writeValue(value: unknown): void {\n // null or undefined from a form (a reset, a new control) means an empty field.\n this.value.set((value ?? null) as TimeValue | null);\n }\n\n registerOnChange(fn: (value: TimeValue | null) => void): void {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n /** The control is touched when the focus leaves the whole field, not between its segments. */\n protected onFocusOut(event: FocusEvent): void {\n if (!this.host.nativeElement.contains(event.relatedTarget as Node | null)) this.onTouchedFn();\n }\n\n protected onKeydown(type: TimeSegmentType, event: KeyboardEvent): void {\n // Typing that completes a segment gives a new `focusRequest`; the hook above moves the focus.\n this.field.handleKeyDown(type, event);\n }\n\n /** Text from an on-screen keyboard (ADR 0024). */\n protected onBeforeInput(type: TimeSegmentType, event: Event): void {\n this.field.handleBeforeInput(type, event as InputEvent);\n }\n\n /**\n * A composition cannot be cancelled: the browser has written into the segment. Write the text of\n * the state back into the same text node (Angular keeps that node).\n */\n protected onInput(type: TimeSegmentType, event: Event): void {\n if (!(event as InputEvent).isComposing) return;\n const text = this.state().segments.find((segment) => segment.type === type)?.text;\n const node = (event.currentTarget as HTMLElement).firstChild;\n if (text !== undefined && node?.nodeType === Node.TEXT_NODE) (node as Text).data = text;\n }\n}\n","import type { ElementRef } from '@angular/core';\nimport {\n ChangeDetectionStrategy,\n Component,\n Injector,\n forwardRef,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n model,\n signal,\n untracked,\n viewChild,\n type OnInit,\n} from '@angular/core';\nimport {\n convertDate,\n formatDateTime,\n formatDateTimeRange,\n isDateSelectable,\n isRangeSelectable,\n isTimeSelectable,\n parseDateTime,\n parseDateTimeRange,\n pickerLabelsFor,\n registerCalendar,\n stickEndToStart,\n type CalendarDate,\n type CalendarOptions,\n type CalendarSystem,\n type DateRange,\n type DateTimeMode,\n type DateTimePickerValue,\n type DateTimeRange,\n type DateTimeValue,\n type HourCycle,\n type PickerLabels,\n type TimeValue,\n} from '@calendrix/core';\nimport { NG_VALUE_ACCESSOR, type ControlValueAccessor } from '@angular/forms';\nimport { CalendrixCalendar } from './calendar';\nimport { CalendrixPopover, type PopoverDismissReason } from './popover';\nimport { CalendrixTimeField } from './time-field';\n\nconst MIDNIGHT: TimeValue = { hour: 0, minute: 0, second: 0 };\n\n/** The two shapes the picker works with inside; the public type follows `selection`. */\ntype Value = DateTimeValue | DateTimeRange | null;\nconst isRange = (value: Value): value is DateTimeRange => value !== null && 'start' in value;\n\nlet nextDialogId = 0;\n\n/**\n * A text input and a popover with a calendar and a time field. The user can type a date and a\n * time or pick them; the value is the same `{ date, time }` the core uses (no time zone: see\n * `toInstant`). With `selection=\"range\"` the value is `{ start, end }`, each with a date and a\n * time, and the popover has two time fields (ADR 0023). It has no styles of its own, see the\n * `calendrix-*` classes.\n *\n * Use `[(value)]`, or `[defaultValue]` and `(valueChange)`. The type of the value follows\n * `selection`.\n */\n@Component({\n selector: 'calendrix-date-time-picker',\n imports: [CalendrixCalendar, CalendrixTimeField, CalendrixPopover],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => CalendrixDateTimePicker),\n multi: true,\n },\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"calendrix-picker\" #wrapper>\n <div class=\"calendrix-picker-field\">\n <input\n #input\n class=\"calendrix-input\"\n type=\"text\"\n dir=\"ltr\"\n autocomplete=\"off\"\n [attr.id]=\"inputId()\"\n [value]=\"text()\"\n [placeholder]=\"placeholder() ?? samplePlaceholder()\"\n [disabled]=\"disabled()\"\n [attr.aria-invalid]=\"invalid() ? 'true' : null\"\n (input)=\"onInput($event)\"\n (blur)=\"handleBlur()\"\n (keydown)=\"onInputKeydown($event)\"\n />\n @if (!disabled() && (hasValue() || text().trim() !== '')) {\n <button\n type=\"button\"\n class=\"calendrix-toggle calendrix-clear\"\n [attr.aria-label]=\"texts().clear\"\n (click)=\"clearAndFocus()\"\n >\n <svg aria-hidden=\"true\" focusable=\"false\" width=\"14\" height=\"14\" viewBox=\"0 0 14 14\">\n <path\n d=\"M3 3l8 8M11 3l-8 8\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n }\n <button\n type=\"button\"\n class=\"calendrix-toggle\"\n aria-haspopup=\"dialog\"\n [attr.aria-label]=\"texts().openCalendar\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? dialogId : null\"\n [disabled]=\"disabled()\"\n (click)=\"open.set(!open())\"\n >\n <svg aria-hidden=\"true\" focusable=\"false\" width=\"18\" height=\"18\" viewBox=\"0 0 18 18\">\n <rect\n x=\"2.5\"\n y=\"3.5\"\n width=\"13\"\n height=\"12\"\n rx=\"2\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n />\n <path\n d=\"M2.5 7.5h13M6 2v3M12 2v3\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n />\n </svg>\n </button>\n </div>\n\n @if (open()) {\n <div\n role=\"dialog\"\n [id]=\"dialogId\"\n [attr.aria-label]=\"texts().dialog\"\n [calendrixPopover]=\"wrapper\"\n [portal]=\"portal()\"\n (dismiss)=\"onDismiss($event)\"\n >\n @if (isRangeMode()) {\n <calendrix-calendar\n [selection]=\"'range'\"\n [system]=\"system()\"\n [locale]=\"locale()\"\n [plugins]=\"plugins()\"\n [value]=\"calendarRange()\"\n (valueChange)=\"pickRange($event)\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [isDateUnavailable]=\"isDateUnavailable()\"\n [weekStart]=\"weekStart()\"\n [direction]=\"direction()\"\n [visibleMonths]=\"visibleMonths() ?? 2\"\n [timeZone]=\"timeZone()\"\n [now]=\"now()\"\n />\n } @else {\n <calendrix-calendar\n [system]=\"system()\"\n [locale]=\"locale()\"\n [plugins]=\"plugins()\"\n [value]=\"shownPoint()?.date ?? null\"\n (valueChange)=\"pickDate($event)\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [isDateUnavailable]=\"isDateUnavailable()\"\n [weekStart]=\"weekStart()\"\n [direction]=\"direction()\"\n [visibleMonths]=\"visibleMonths()\"\n [timeZone]=\"timeZone()\"\n [now]=\"now()\"\n />\n }\n <div class=\"calendrix-popover-footer\">\n @if (isRangeMode()) {\n <div class=\"calendrix-time-range\">\n <div class=\"calendrix-time-row\">\n <span class=\"calendrix-time-label\" aria-hidden=\"true\">{{\n texts().startTime\n }}</span>\n <calendrix-time-field\n [locale]=\"locale()\"\n [hourCycle]=\"hourCycle()\"\n [showSeconds]=\"showSeconds()\"\n [hourStep]=\"hourStep()\"\n [minuteStep]=\"minuteStep()\"\n [secondStep]=\"secondStep()\"\n [minTime]=\"minTime()\"\n [maxTime]=\"maxTime()\"\n [labels]=\"startLabels()\"\n [value]=\"shownRange() ? shownRange()!.start.time : draftStart()\"\n (valueChange)=\"pickTime('start', $event)\"\n />\n </div>\n <div class=\"calendrix-time-row\">\n <span class=\"calendrix-time-label\" aria-hidden=\"true\">{{ texts().endTime }}</span>\n <calendrix-time-field\n [locale]=\"locale()\"\n [hourCycle]=\"hourCycle()\"\n [showSeconds]=\"showSeconds()\"\n [hourStep]=\"hourStep()\"\n [minuteStep]=\"minuteStep()\"\n [secondStep]=\"secondStep()\"\n [minTime]=\"minTime()\"\n [maxTime]=\"maxTime()\"\n [labels]=\"endLabels()\"\n [value]=\"shownRange() ? shownRange()!.end.time : draftEnd()\"\n (valueChange)=\"pickTime('end', $event)\"\n />\n </div>\n </div>\n } @else {\n <calendrix-time-field\n [locale]=\"locale()\"\n [hourCycle]=\"hourCycle()\"\n [showSeconds]=\"showSeconds()\"\n [hourStep]=\"hourStep()\"\n [minuteStep]=\"minuteStep()\"\n [secondStep]=\"secondStep()\"\n [minTime]=\"minTime()\"\n [maxTime]=\"maxTime()\"\n [value]=\"shownPoint() ? shownPoint()!.time : draftStart()\"\n (valueChange)=\"pickTime('start', $event)\"\n />\n }\n <div class=\"calendrix-actions\">\n <button type=\"button\" class=\"calendrix-action\" (click)=\"clear()\">\n {{ texts().clear }}\n </button>\n <button\n type=\"button\"\n class=\"calendrix-action calendrix-action-primary\"\n (click)=\"close(true)\"\n >\n {{ texts().done }}\n </button>\n </div>\n </div>\n </div>\n }\n </div>\n `,\n})\nexport class CalendrixDateTimePicker<M extends DateTimeMode = 'single'>\n implements OnInit, ControlValueAccessor\n{\n /** One date and time (default), or a range with a start and an end, each with a time. */\n readonly selection = input<M>('single' as M);\n /** The picked value. Use `[(value)]`. The type follows `selection`. `null` means nothing. */\n readonly value = model<DateTimePickerValue<M>>();\n readonly defaultValue = input<DateTimePickerValue<M>>();\n\n /** Calendar system shown and understood when typing. Default: 'gregory'. */\n readonly system = input<CalendarSystem>('gregory');\n /** BCP 47 locale for names, numerals and the order of a typed date. Default: 'en-US'. */\n readonly locale = input('en-US');\n /** 12 or 24. Default: the locale's own habit. */\n readonly hourCycle = input<HourCycle>();\n readonly showSeconds = input<boolean>();\n /** Step of the up and down arrows in the time field. Default: 1. */\n readonly hourStep = input<number>();\n readonly minuteStep = input<number>();\n readonly secondStep = input<number>();\n /** Times outside this range are rejected. A picked date starts at `minTime`. */\n readonly minTime = input<TimeValue>();\n readonly maxTime = input<TimeValue>();\n\n readonly minDate = input<CalendarDate>();\n readonly maxDate = input<CalendarDate>();\n /** First day of the week, 0 is Sunday. Default: from the locale. */\n readonly weekStart = input<CalendarOptions['weekStart']>();\n /** Default: from the locale. */\n readonly direction = input<CalendarOptions['direction']>();\n /** How many months the calendar shows: 1 (default; 2 for `range`), 2 or 3. */\n readonly visibleMonths = input<number>();\n readonly isDateUnavailable = input<(date: CalendarDate) => boolean>();\n /** Plugins register calendar systems, for example `persianPlugin`. */\n readonly plugins = input<CalendarOptions['plugins']>();\n readonly timeZone = input<string>();\n readonly now = input<() => Date>();\n\n readonly labels = input<Partial<PickerLabels>>();\n readonly placeholder = input<string>();\n readonly disabledInput = input(false, { alias: 'disabled', transform: booleanAttribute });\n /** The `id` of the text input, for a `<label for>`. */\n readonly inputId = input<string>();\n /**\n * Render the popover in `<body>` (default). Use `[portal]=\"false\"` to render it next to the\n * input instead. The `data-theme` of an ancestor does not reach a portaled popover.\n */\n readonly portal = input(true, { transform: booleanAttribute });\n\n protected readonly open = signal(false);\n protected readonly text = signal('');\n /**\n * A time chosen before any date. It becomes part of the value when a date is picked. In\n * `single` mode `draftStart` is the only one; in `range` mode there is one for each end.\n */\n protected readonly draftStart = signal<TimeValue | null>(null);\n protected readonly draftEnd = signal<TimeValue | null>(null);\n private readonly touched = signal(false);\n protected readonly dialogId = `calendrix-dialog-${nextDialogId++}`;\n\n private readonly inputElement = viewChild.required<ElementRef<HTMLInputElement>>('input');\n private readonly injector = inject(Injector);\n /** True while the value is changing because the user typed it: the text must stay as typed. */\n private typing = false;\n\n protected readonly isRangeMode = computed(() => this.selection() === 'range');\n\n /** The value as the parent gave it, or the default until a first change. */\n private readonly current = computed<Value>(() => {\n const value = this.value() as Value | undefined;\n return value !== undefined ? value : ((this.defaultValue() as Value | undefined) ?? null);\n });\n\n private inSystem(point: DateTimeValue): DateTimeValue {\n return { date: convertDate(point.date, this.system()), time: point.time };\n }\n\n /** The value in the calendar system on screen. */\n private readonly shown = computed<Value>(() => {\n this.registerPlugins();\n const value = this.current();\n if (value === null) return null;\n return isRange(value)\n ? { start: this.inSystem(value.start), end: this.inSystem(value.end) }\n : this.inSystem(value);\n });\n protected readonly shownPoint = computed<DateTimeValue | null>(() => {\n const shown = this.shown();\n return shown !== null && !isRange(shown) ? shown : null;\n });\n protected readonly shownRange = computed<DateTimeRange | null>(() => {\n const shown = this.shown();\n return shown !== null && isRange(shown) ? shown : null;\n });\n /** The dates of a complete range, for the calendar. */\n protected readonly calendarRange = computed<DateRange | null>(() => {\n const range = this.shownRange();\n return range ? { start: range.start.date, end: range.end.date } : null;\n });\n\n private readonly valueKey = computed(() => this.format(this.shown()));\n\n protected readonly texts = computed(() => pickerLabelsFor(this.locale(), this.labels()));\n protected readonly startLabels = computed(() => ({ time: this.texts().startTime }));\n protected readonly endLabels = computed(() => ({ time: this.texts().endTime }));\n protected readonly hasValue = computed(() => this.current() !== null);\n\n protected readonly invalid = computed(\n () => this.touched() && this.text().trim() !== '' && this.parse(this.text()) === null,\n );\n\n protected readonly samplePlaceholder = computed(() => {\n this.registerPlugins();\n const start: DateTimeValue = {\n date: convertDate({ system: 'gregory', year: 2026, month: 10, day: 14 }, this.system()),\n time: { hour: 9, minute: 30, second: 0 },\n };\n const end: DateTimeValue = {\n date: convertDate({ system: 'gregory', year: 2026, month: 10, day: 21 }, this.system()),\n time: { hour: 17, minute: 0, second: 0 },\n };\n return this.format(this.isRangeMode() ? { start, end } : start);\n });\n\n constructor() {\n // A change that did not come from typing (the parent, a pick in the calendar, Clear) rewrites the text.\n effect(() => {\n const key = this.valueKey();\n untracked(() => {\n if (this.typing) {\n this.typing = false;\n return;\n }\n this.text.set(key);\n });\n });\n }\n\n ngOnInit(): void {\n this.text.set(this.valueKey());\n }\n\n // ControlValueAccessor: a form writes the value in and hears about changes made by the user.\n private onChangeFn: (value: DateTimePickerValue<M>) => void = () => undefined;\n private onTouchedFn: () => void = () => undefined;\n private readonly formDisabled = signal(false);\n /** Disabled by the `disabled` input or by the form. */\n protected readonly disabled = computed(() => this.disabledInput() || this.formDisabled());\n\n writeValue(value: unknown): void {\n // null or undefined from a form (a reset, a new control) means empty.\n this.value.set((value ?? null) as DateTimePickerValue<M>);\n }\n\n registerOnChange(fn: (value: DateTimePickerValue<M>) => void): void {\n this.onChangeFn = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouchedFn = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.formDisabled.set(isDisabled);\n }\n\n /** Typing a date in a calendar from a plugin works before the popover has ever been opened. */\n private registerPlugins(): void {\n for (const plugin of this.plugins() ?? []) {\n for (const calendar of plugin.calendars ?? []) registerCalendar(calendar);\n }\n }\n\n private format(next: Value): string {\n if (next === null) return '';\n const options = {\n locale: this.locale(),\n hourCycle: this.hourCycle(),\n seconds: this.showSeconds(),\n };\n return isRange(next) ? formatDateTimeRange(next, options) : formatDateTime(next, options);\n }\n\n private parse(text: string): Value {\n this.registerPlugins();\n const options = { locale: this.locale(), system: this.system() };\n const parsed = this.isRangeMode()\n ? parseDateTimeRange(text, options)\n : parseDateTime(text, options);\n if (parsed === null) return null;\n\n // A date or a time that the user could not pick is not a value either (ADR 0025).\n const limits = {\n minDate: this.minDate(),\n maxDate: this.maxDate(),\n isDateUnavailable: this.isDateUnavailable(),\n plugins: this.plugins(),\n locale: options.locale,\n system: options.system,\n minTime: this.minTime(),\n maxTime: this.maxTime(),\n };\n if (isRange(parsed)) {\n const dates = { start: parsed.start.date, end: parsed.end.date };\n return isRangeSelectable(dates, limits) &&\n isTimeSelectable(parsed.start.time, limits) &&\n isTimeSelectable(parsed.end.time, limits)\n ? parsed\n : null;\n }\n return isDateSelectable(parsed.date, limits) && isTimeSelectable(parsed.time, limits)\n ? parsed\n : null;\n }\n\n private commit(next: Value): void {\n this.value.set(next as DateTimePickerValue<M>);\n this.onChangeFn(next as DateTimePickerValue<M>);\n }\n\n /** The flag only covers the render caused by typing. A later change from the parent updates the text. */\n private markTyping(): void {\n this.typing = true;\n afterNextRender(\n () => {\n this.typing = false;\n },\n { injector: this.injector },\n );\n }\n\n protected onInput(event: Event): void {\n this.handleText((event.target as HTMLInputElement).value);\n }\n\n private handleText(next: string): void {\n this.text.set(next);\n if (next.trim() === '') {\n if (this.current() !== null) {\n this.markTyping();\n this.commit(null);\n }\n return;\n }\n const parsed = this.parse(next);\n if (!parsed) return;\n if (this.format(parsed) !== this.valueKey()) this.markTyping();\n this.commit(parsed);\n }\n\n protected handleBlur(): void {\n this.touched.set(true);\n if (!this.open()) this.onTouchedFn();\n // A valid text is written the standard way once the user is done typing.\n const text = this.text();\n if (text.trim() !== '' && this.parse(text)) this.text.set(this.valueKey());\n }\n\n protected onInputKeydown(event: KeyboardEvent): void {\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n this.open.set(true);\n }\n }\n\n private defaultTime(): TimeValue {\n return this.minTime() ?? MIDNIGHT;\n }\n\n protected pickDate(date: CalendarDate | null | undefined): void {\n if (date === undefined) return;\n if (date === null) {\n this.commit(null);\n return;\n }\n const time = this.shownPoint()?.time ?? this.draftStart() ?? this.defaultTime();\n this.commit({ date, time });\n }\n\n /** The second day of a range: the times are the ones already chosen, or the default. */\n protected pickRange(range: DateRange | null | undefined): void {\n if (range === undefined) return;\n if (range === null) {\n this.commit(null);\n return;\n }\n const shown = this.shownRange();\n this.commit(\n stickEndToStart({\n start: {\n date: range.start,\n time: shown?.start.time ?? this.draftStart() ?? this.defaultTime(),\n },\n end: {\n date: range.end,\n time: shown?.end.time ?? this.draftEnd() ?? this.defaultTime(),\n },\n }),\n );\n }\n\n protected pickTime(which: 'start' | 'end', time: TimeValue | null | undefined): void {\n if (time === undefined) return;\n // Clearing the time of a picked date puts it back to the start of the day.\n const next = time ?? this.defaultTime();\n const range = this.shownRange();\n const point = this.shownPoint();\n if (range) {\n this.commit(\n stickEndToStart({\n start: which === 'start' ? { ...range.start, time: next } : range.start,\n end: which === 'end' ? { ...range.end, time: next } : range.end,\n }),\n );\n } else if (point) {\n this.commit({ date: point.date, time: next });\n } else if (which === 'start') {\n this.draftStart.set(time);\n } else {\n this.draftEnd.set(time);\n }\n }\n\n protected clear(): void {\n this.draftStart.set(null);\n this.draftEnd.set(null);\n this.commit(null);\n this.text.set('');\n }\n\n protected clearAndFocus(): void {\n this.clear();\n this.inputElement().nativeElement.focus();\n }\n\n /** Close the popover, and give the focus back to the input when `returnFocus` is true. */\n protected close(returnFocus: boolean): void {\n this.open.set(false);\n this.onTouchedFn();\n if (returnFocus) this.inputElement().nativeElement.focus();\n }\n\n protected onDismiss(reason: PopoverDismissReason): void {\n if (reason === 'escape') {\n this.close(true);\n } else {\n this.open.set(false);\n this.onTouchedFn();\n }\n }\n}\n","/*\n * Public API Surface of @calendrix/angular\n */\n\nexport * from './lib/calendar';\nexport * from './lib/date-picker';\nexport * from './lib/date-time-picker';\nexport * from './lib/popover';\nexport * from './lib/props-directive';\nexport * from './lib/time-field';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["nextDialogId"],"mappings":";;;;;;;AAKA;;;;AAIG;MAEU,uBAAuB,CAAA;IACzB,KAAK,GAAG,KAAK,CAA0C,SAAS,6EACvE,KAAK,EAAE,gBAAgB,EAAA,CACvB;IACO,QAAQ,GAAG,KAAK,CAAC,IAAI,gFAAI,KAAK,EAAE,mBAAmB,EAAA,CAAG;AAE9C,IAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;AACnE,IAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC;AACrC,IAAA,OAAO,GAAG,IAAI,GAAG,EAAU;IAC3B,MAAM,GAAwC,EAAE;AACvC,IAAA,SAAS,GAAG,IAAI,GAAG,EAAsB;AAE1D,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE;YAC1B,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC;;AAGxC,YAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ;AACzB,mBAAI,KAAK,EAAE,QAAQ,IAAI,EAAE;kBACvB,EAAE;AACN,YAAA,KAAK,MAAM,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;AAC3C,gBAAA,IAAI,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmLT,EAAA,CAAA;AACF,iBAAA;ymFA6DkF,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC7T1F;;AAEG;;ACFH;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@calendrix/angular",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Angular components for calendrix: an accessible date and time picker with Persian (Jalali) and Gregorian support.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://afraz-saeed1986.github.io/calendar-kit/",
|
|
7
|
+
"bugs": "https://github.com/afraz-saeed1986/calendar-kit/issues",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/afraz-saeed1986/calendar-kit.git",
|
|
11
|
+
"directory": "packages/angular/projects/calendrix-angular"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"calendar",
|
|
15
|
+
"datepicker",
|
|
16
|
+
"date-picker",
|
|
17
|
+
"time-picker",
|
|
18
|
+
"persian",
|
|
19
|
+
"jalali",
|
|
20
|
+
"rtl",
|
|
21
|
+
"accessibility",
|
|
22
|
+
"angular"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"@angular/common": "^21.2.0 || ^22.0.0",
|
|
29
|
+
"@angular/core": "^21.2.0 || ^22.0.0",
|
|
30
|
+
"@calendrix/core": "^0.1.0",
|
|
31
|
+
"@angular/forms": "^21.2.0 || ^22.0.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@floating-ui/dom": "^1.7.0",
|
|
35
|
+
"tslib": "^2.3.0"
|
|
36
|
+
},
|
|
37
|
+
"exports": {
|
|
38
|
+
"./styles.css": {
|
|
39
|
+
"default": "./styles.css"
|
|
40
|
+
},
|
|
41
|
+
"./package.json": {
|
|
42
|
+
"default": "./package.json"
|
|
43
|
+
},
|
|
44
|
+
".": {
|
|
45
|
+
"types": "./types/calendrix-angular.d.ts",
|
|
46
|
+
"default": "./fesm2022/calendrix-angular.mjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"sideEffects": [
|
|
50
|
+
"*.css"
|
|
51
|
+
],
|
|
52
|
+
"module": "fesm2022/calendrix-angular.mjs",
|
|
53
|
+
"typings": "types/calendrix-angular.d.ts",
|
|
54
|
+
"type": "module"
|
|
6
55
|
}
|