From 64a9f5bee17abfb50f901f84d050ec121ccadffe Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 15 Mar 2021 13:04:19 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 6 +++++- Library/_res/BDFDB.data.json | 2 ++ Library/_res/BDFDB.raw.css | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index da9ecc131d..9d988adccf 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -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 () { diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index ace4d87042..964226ec1a 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -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"], diff --git a/Library/_res/BDFDB.raw.css b/Library/_res/BDFDB.raw.css index 2780243b29..8d6e62020d 100644 --- a/Library/_res/BDFDB.raw.css +++ b/Library/_res/BDFDB.raw.css @@ -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;