c-date-range: a From/To input for pairs of data source parameters

Aperta
#797 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

First read issue #794, which this component depends on, then inspect the existing c-input and c-datetime-picker components to understand their binding and date constraints. Define and test the pair binding, open-ended dates, inclusive or exclusive end behavior, layouts, clear control, and fixed-width format; done means each listed behavior works together.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Data sources commonly take a pair of date parameters (CreatedFrom / CreatedTo, FromDate / ToDate), and filtering by them means two c-inputs or c-datetime-pickers plus hand-written checks that the end is not before the start. A c-date-range component would cover it:

  • Binds the pair, either as :model with the two property names or as v-model:from / v-model:to.
  • Keeps the To picker's min at the From date, and takes min / max for both.
  • An option for whether the end date is included. An excluded end has to be at least the day after the start, and can show a hint saying so.
  • Either end can be left empty, so a filter can be open at one side.
  • A single label for the pair, drawn as one field with the two dates inside it, as well as the two-field layout with "From" and "To" labels.
  • A clear button for the pair whose space is reserved whether or not anything is set, so the field does not change width as a date is picked or cleared.
  • A fixed two-digit date format, so both dates are the same width.

Depends on #794 for showing "Start" / "End" in an empty date rather than its format.

Lingua principale
C#
Stelle
81
Fork
24
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di IntelliTect/Coalesce

Tutte le issue di IntelliTect/Coalesce

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.