This commit is contained in:
Mirco Wittrien 2021-03-15 13:04:19 +01:00
parent 0e1da6a5f6
commit 64a9f5bee1
3 changed files with 14 additions and 2 deletions

View File

@ -5701,6 +5701,10 @@ module.exports = (_ => {
dateString: input.props.dateString,
timeString: input.props.timeString
}, new Date((new Date()) - (1000*60*60*24*2)))
}),
input.props.suffix && BDFDB.ReactUtils.createElement("div", {
className: BDFDB.disCN.dateinputpreviewsuffix,
children: typeof input.props.suffix == "function" ? input.props.suffix(input) : input.props.suffix,
})
].filter(n => n)
});
@ -5709,7 +5713,7 @@ module.exports = (_ => {
]
})
]
}), "onChange", "label", "formatString", "dateString", "timeString", "noPreview", "prefix"));
}), "onChange", "label", "formatString", "dateString", "timeString", "noPreview", "prefix", "suffix"));
}
};
InternalComponents.LibraryComponents.DateInput.getDefaultString = function () {

View File

@ -540,6 +540,7 @@
"dateInputInner": "dateInputInner-ORXFwT",
"dateInputPreview": "dateInputPreview-lG5sMM",
"dateInputPreviewPrefix": "dateInputPreviewPrefix-6Fww21",
"dateInputPreviewSuffix": "dateInputPreviewSuffix-f4Sr32",
"dateInputWrapper": "dateInputWrapper-6tQOYp",
"dev": "dev-A7f2Rx",
"favButtonContainer": "favbutton-8Fzu45",
@ -1742,6 +1743,7 @@
"dateinputinner": ["BDFDB", "dateInputInner"],
"dateinputpreview": ["BDFDB", "dateInputPreview"],
"dateinputpreviewprefix": ["BDFDB", "dateInputPreviewPrefix"],
"dateinputpreviewsuffix": ["BDFDB", "dateInputPreviewSuffix"],
"dateinputwrapper": ["BDFDB", "dateInputWrapper"],
"defaultcolor": ["Text", "defaultColor"],
"description": ["FormText", "description"],

View File

@ -668,9 +668,15 @@ img:not([src]), img[src=""], img[src="null"] {
margin-top: 8px;
font-weight: normal;
}
[REPLACE_CLASS_dateinputpreviewprefix],
[REPLACE_CLASS_dateinputpreviewsuffix] {
font-weight: 600;
}
[REPLACE_CLASS_dateinputpreviewprefix] {
margin-right: 6px;
font-weight: 600;
}
[REPLACE_CLASS_dateinputpreviewsuffix] {
margin-left: 6px;
}
[REPLACE_CLASS_dateinputfield] {
flex: 1 1 auto;