• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

coreui / coreui-pro / 35891915920
95%
main: 94%

Build:
Build:
LAST BUILD BRANCH: feat/calendar-cell-names-v6
DEFAULT BRANCH: main
Ran 23 Sep 2026 04:55PM UTC
Jobs 1
Files 76
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Sep 2026 04:53PM UTC coverage: 94.461% (+0.001%) from 94.46%
35891915920

push

github

web-flow
refactor(Calendar): type the date and time family's options and state (#1398)

`CalendarConfig` published `selectionType` as `string` and the Calendar
constructor and `setConfig` took any object, so `new Calendar(el, {
selectionType: 'weeks' })` compiled; `dayFormat`, `monthFormat` and
`yearFormat` also advertised a function that `DefaultType` rejects. The
options now carry the value sets the calendar handles (`SelectionTypes`,
the Intl option values, `DisabledDate | DisabledDate[] | null`), the
constructor and `setConfig` take `Partial<CalendarConfig>`, and the
`render*Cell` options take the `meta` the calendar passes, typed as the
exported `CalendarCellMeta` and `CalendarDayCellMeta`. The view is
`ViewTypes`, which drops the casts on its reads. `getOrCreateInstance`
is inherited and still takes any config.

The config types of Calendar, DatePicker, DateRangePicker, TimePicker,
DateInput, TimeInput and DateRangeInput are exported, as fourteen other
plugins already do; DateInput and TimeInput get named types, and
DateRangeInput types `disabledDates`, `format` and `type` like DateInput.
The pickers' `calendarOptions` and `inputOptions` take those types. The
picker types describe the pickers' own options, not the ones they pass on
to their field and calendar by name.

SectionInput's protected state and key handlers are typed, the
typed-digit and typed-letter results share one `SectionEntry` type,
`setConfig` takes `ComponentConfig | null`, and the `as any` casts go:
`aria-value*` attributes get `String(...)` and `aria-selected` gets
`'true'`. Popup's `isShown`, `isMobile`, `hide`, `toggle` and
`_updatePosition` return what they return, `placement` is Floating UI's
`Placement`, and the focus trap is typed.

The type test against the emitted declarations imports the seven config
types and rejects a wrong value for each narrowed option, through the
constructor and `setConfig` for `selectionType`.

6001 of 6619 branches covered (90.66%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 5 files covered. (100.0%)

11103 of 11488 relevant lines covered (96.65%)

597.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 35891915920.1 23 Sep 2026 04:55PM UTC 76
94.46
GitHub Action Run
Source Files on build 35891915920
  • Tree
  • List 76
  • Changed 10
  • Source Changed 10
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35891915920
  • 11ab89de on github
  • Prev Build on v6-dev (#35887881462)
  • Next Build on v6-dev (#35903802942)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc