@@ -20,7 +20,7 @@ import { UICompBuilder, withDefault } from "../../generators";
20
20
import { CommonNameConfig , depsConfig , withExposingConfigs } from "../../generators/withExposing" ;
21
21
import { formDataChildren , FormDataPropertyView } from "../formComp/formDataConstants" ;
22
22
import { styleControl } from "comps/controls/styleControl" ;
23
- import { DateTimeStyle , DateTimeStyleType , LabelStyle } from "comps/controls/styleControlConstants" ;
23
+ import { ComponentStyle , DateTimeStyle , DateTimeStyleType , LabelStyle } from "comps/controls/styleControlConstants" ;
24
24
import { withMethodExposing } from "../../generators/withMethodExposing" ;
25
25
import {
26
26
disabledPropertyView ,
@@ -76,6 +76,7 @@ const commonChildren = {
76
76
suffixIcon : withDefault ( IconControl , "/icon:regular/calendar" ) ,
77
77
...validationChildren ,
78
78
viewRef : RefControl < CommonPickerMethods > ,
79
+ field :styleControl ( ComponentStyle )
79
80
} ;
80
81
type CommonChildrenType = RecordConstructorToComp < typeof commonChildren > ;
81
82
@@ -166,7 +167,8 @@ export const datePickerControl = new UICompBuilder(childrenMap, (props) => {
166
167
return props . label ( {
167
168
required : props . required ,
168
169
style : props . style ,
169
- labelStyle :props . labelStyle ,
170
+ labelStyle : props . labelStyle ,
171
+ field :props . field ,
170
172
children : (
171
173
< DateUIView
172
174
viewRef = { props . viewRef }
@@ -253,6 +255,9 @@ export const datePickerControl = new UICompBuilder(childrenMap, (props) => {
253
255
< Section name = { sectionNames . labelStyle } >
254
256
{ children . labelStyle . getPropertyView ( ) }
255
257
</ Section >
258
+ < Section name = { sectionNames . field } >
259
+ { children . field . getPropertyView ( ) }
260
+ </ Section >
256
261
</ >
257
262
) }
258
263
</ >
@@ -319,6 +324,7 @@ export const dateRangeControl = (function () {
319
324
style : props . style ,
320
325
labelStyle :props . labelStyle ,
321
326
children : children ,
327
+ field :props . field ,
322
328
...( startResult . validateStatus !== "success"
323
329
? startResult
324
330
: endResult . validateStatus !== "success"
@@ -383,6 +389,9 @@ export const dateRangeControl = (function () {
383
389
< Section name = { sectionNames . labelStyle } >
384
390
{ children . labelStyle . getPropertyView ( ) }
385
391
</ Section >
392
+ < Section name = { sectionNames . field } >
393
+ { children . field . getPropertyView ( ) }
394
+ </ Section >
386
395
</ >
387
396
) }
388
397
0 commit comments