Skip to content

feat(panel): add DatePicker and export Combobox for add-ons - #2604

Open
TheAaronLawrence wants to merge 1 commit into
lunarphp:2.xfrom
TheAaronLawrence:feat/panel-date-picker
Open

feat(panel): add DatePicker and export Combobox for add-ons#2604
TheAaronLawrence wants to merge 1 commit into
lunarphp:2.xfrom
TheAaronLawrence:feat/panel-date-picker

Conversation

@TheAaronLawrence

Copy link
Copy Markdown
Contributor

What

Adds a DatePicker component to the panel and exports it (plus the existing Combobox) from the public add-on surface so add-on pages can use them.

  • DatePicker — a reka-ui based date + time picker (minute granularity, calendar popover), styled with the panel's tokens. Its public v-model is a zoneless YYYY-MM-DDTHH:mm string, matching a native datetime-local input, so callers keep that contract.
  • Combobox — the existing searchable select was internal-only; it is now exported (with its ComboboxOption type) so add-ons can reuse it instead of rebuilding one.
  • Exported via ui.ts (→ window.LunarPanelUI) and the @lunarphp/panel barrel.
  • Adds @internationalized/date as a panel devDependency (required by reka-ui's date components).

Why

Add-ons building forms had no date picker and no searchable select available from @lunarphp/panel — the panel's own record pickers and date handling are internal. This fills those two gaps on the public component surface.

Notes

  • Compiled public/build assets are not included; they need rebuilding on release.
  • Adds DatePicker.test.ts covering segment rendering, the datetime-local string conversion, and unparseable-value handling.

Add a reka-ui based DatePicker (date + time, minute granularity) to the panel
component surface, exported via ui.ts and the @lunarphp/panel barrel so add-on
pages can use it. The public v-model is a zoneless YYYY-MM-DDTHH:mm string,
matching a native datetime-local input.

Also export the existing Combobox (and its ComboboxOption type), previously
internal-only, so add-ons can reuse the panel's searchable select.

Adds @internationalized/date as a panel devDependency, required by reka-ui's
date components.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant