@micromerce/formbuilder-react 1.0.863 → 1.0.864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves the dynamic `@today` default-value token of a date control into an
|
|
3
|
+
* absolute `yyyy-MM-dd` date string, evaluated against the current local date
|
|
4
|
+
* on every render (so it always reflects the actual current day).
|
|
5
|
+
*
|
|
6
|
+
* "@today" -> today
|
|
7
|
+
* "@today+N" -> N days after today
|
|
8
|
+
* "@today-N" -> N days before today
|
|
9
|
+
*
|
|
10
|
+
* Any value that is not a `@today` token (a static date, a `#{...}` control
|
|
11
|
+
* reference, `undefined`) is returned unchanged so existing `defaultValue`
|
|
12
|
+
* behaviour keeps working.
|
|
13
|
+
*/
|
|
14
|
+
declare const resolveDateDefault: (defaultValue?: string) => string | undefined;
|
|
15
|
+
export default resolveDateDefault;
|