SolidOS / SolidOS/solid-ui

DateTimeField min and max datetime offsets

オープン
#136 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@timbl がすでに取り組んでいます。

2019年12月16日 から。

enhancement
主要言語
TypeScript
スター
153
フォーク
46
平均マージ
1日 8時間
マージ済み PR(30日)
7

説明

User Story

As a Form Designer, I can optional set for the minimum and/or maximum datetimes based on an offset (in seconds) from now(), so I can define a valid datetime range around the current time.

Acceptance Criteria

  1. In a Form Model, the 'mindatetimeOffset' and/or 'maxdatetimeOffset' can be optionally defined for a DateTimeField. The offsets are specified in seconds.
  2. When the form is rendered, the valid date range is determined as:
    `(now - mindatetimeOffset) <= entered datetime <= (now + maxdatetimeOffset)
  3. If the entered datetime is outside of the valid datetime range, an error is displayed.

Example Form Model

ource: {Your WebID}

Dev Notes

  • If both a hardcoded and an offset datetime are provided (e.g., ui:maxValue and ui:maxdatetimeOffset), the hardcoded datetime takes precedence.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。