Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(DatePicker): DatePicker implementation (unovue#674)
* feat(calendar): implemented DateField,Calendar and DatePicker components * feat(range-calendar): implemented range calendar * fix(range-calendar): remove console.log * feat(DateRangeField): implemented DateRangeField * fix(DateField): shallow copy initialSegments to keep them unchanged * chore(DateRangeField): remove unused functions from test file * fix(DateRangeField): fix issue where date was not updating from input * fix(DateField): adjust checks between dates for updating placeholder * feat(DateRangePicker): implement DateRangePicker * refactor(DateRangeField/DateField): remove duplicate functions * feat(DateField): separate DateField concerns into different files * refactor(DateField): refactor ARROW_UP & ARROW_DOWN incrementing and decrementing * fix(DateField): fix inconsistencies with previous value and edge case for filling in the day * chore(DatePicker/DateRangeField): rename variables * refactor(useDateFormatter): convert formatter to ref * refactor(Calendar): extract common functions for Calendar and RangeCalendar * refactor(RangeCalendar): use common functions in RangeCalendar * chore(DateField): minor code lint * refactor(DateField): move common functions into useDateField * refactor(DateRangeField): reuse common functions from useDateField * refactor(useDateFormatter): move utility to root * fix(RangeCalendarCell): add proper aria labels and conditions * refactor(Calendar/RangeCalendar): rename calendar day to cell trigger * feat(calendar): implement functions and utilities for generating year and decade * feat(Calendar): implement logic for different calendar views(month, year, decade) * chore(DateField): add TODO and make props in test optional * fix(constant): fix export for test * feat(RangeCalendar): adjust RangeCalendar for new calendar views * feat(Calendar): add year and month selection * chore: add .volar for neovim to load LSP * feat(RangeCalendar): add month and year view to RangeCalendar * fix(Calendar): adjust Calendar stories styling * fix(Calendar): add heading segment to exports * refactor(DatePicker/DateRangePicker): refactor pickers with calendar views * chore: add file for neoconf and neovim volar lsp * chore: update @internationalized/date lib * fix(DateField): set TZ to utility function * chore(Calendar): fix Calendar stories * chore(DateField): add story styling * chore(DatePicker): add story styling * fix(DatePicker): provide heading value from Calendar * fix(DateRangeField): add watchers for startValue and endValue * chore(DateRangePicker): add story styling * fix(DateRangePicker): pass heading value from RangeCalendar * chore(useDateFormatter): export explicit Formatter type * fix(jsdoc): return type in doc for custom types/interfaces * chore: generate jsdoc * chore: update jsdoc meta * chore: add documentation for props, events and slots * chore: update lockfile * chore(Calendar): add calendar doc scaffold * fix(histoire): update histoire vue plugin package version to match main * docs(Calendar/RangeCalendar): add documentation * chore: update lockfile * fix(RangeCalendar): fix heading value displaying [object Object] * chore: consistent styling across all calendar related stories * docs(DateField/DateRangeField): add docs * chore: add stylings for date fields * fix(DateRangeField): add class to label in story * docs(DatePicker/DateRangePicker): add docs * fix: minor tailwind focus style adjustments * fix: fix typing errors * fix(CalendarCellTrigger/RangeCalendarCellTrigger): remove is selected and add formatting for months * docs: add docs for useDateFormatter * docs: add credits * chore: add datepicker modules to namespaced * docs: add docs for date picker Close * fix(Popover): export Arrow props * fix(DatePicker/DateRangePicker): use arrow and close props from popover * docs: fix docs for date picker arrow and close * chore: exclude '@internationalized/date' in bundle as it would be an external deps * chore: tidy up export * chore: cleanup shared * chore: fix chunk function was replaced * fix: test * chore: merge with upstream * fix: remove pointer events none from stories * feat(Calendar): enable selection of dates outside the month * fix(useCalendar): prevent focus loss on select * fix(useCalendar): fix next page/prev page * refactor: remove all references to calendarView and HeadingSegment * fix: story styling for range calendar and picker * fix: styling on range calendar to match adobe spectrum * fix(Calendar): return new DateValue for placeholder * fix(DateField): return new DateValue for placeholder * chore: merge changes * fix: v-model value for DateField/Calendar * fix(useDateField): update hour on dayPeriod change * chore: add more stories * chore: add stories for custom popover month and year select * fix: placeholder values losing proxy * chore: add calendar stories * fix(Calendar): fix deselect error * fix(useCalendar): fix placeholder v-model ref error * fix: remove console.log * fix(RangeCalendar): fix placeholder v-model * fix(DateField): fix placeholder v-model * fix: remove second from hour granularity * fix(DateRangeField): fix placeholder v-model * fix(DateRangePicker): fix calendar story styling * fix: add back passive to placeholder * fix(Calendar): add SupportedLocale import * chore: remove log value * fix(Calendar/RangeCalendar): fix v-model losing date proxy * fix: set default props * docs: update docs * refactor: add back defaultValue * docs: update docs * chore: add stories * docs: run codegen * chore: add more stories * chore: rerun pnpm * fix: local pipeline caused by different timezone * fix: exclude story from bundling * docs: update example * chore: fix missing slotprops, default start not changing * fix: timezone not showing * docs: add demos --------- Co-authored-by: zernonia <[email protected]>
- Loading branch information