Files
redash/client/app/components/dynamic-parameters/DynamicParameters.less
Gabriel Dutra cd4daf8823 Add Dynamic Values to Date and Date Range Parameters (#3904)
* Draft for Date Dynamic values

* Use value with prefix instead of specific attr

* Fix not possible to select static value

* Update antd version

* Cleanup and DateRangeParameter

* Dynamic DateTimeRange

* Add Dynamic options to Date Parameters

* UI refinements

* Add getDynamicValue function

* Add 'This' options and prevent text clipping

* Make allowClear available

* Update ScheduleDialog snapshot

* Add some protections and separate Date/DateRange

* Accept null values on date or daterange parameters

* Handle undefined values on Moment propType

* Move export to end of files

* Remove Today/Now option

* Update with Apply Changes

* Show name instead of value for dynamic values

* Add comment about supporting useCurrentDateTime

* Cypress Tests: Date Parameters

* Cypress Tests: Date Range Parameters

* Don't put null params in the url

* Add workaround comments to Cypress tests

Co-Authored-By: Ran Byron <ranbena@gmail.com>

* Fix Dynamic Value as default for global parameters

* Update Back to Static Value

* Add isValid to value on Date and DateRange inputs

* CR suggestions

* Fix Back to Static Value for Dates

* Update Dynamic Value Styling

* Fix failing Date tests

* Fix selectedDynamicValue

* Parameter spec: Remove date range clickThrough

* Add transition

* Fix failing Cypress tests

* Back with 'width: auto'

* Check value is valid on Back to Static value

* CR

* Update Date Range width
2019-07-26 22:40:13 +03:00

31 lines
576 B
Plaintext

@import '../../assets/less/inc/variables';
.redash-datepicker {
.ant-calendar-picker-clear {
right: 35px;
background: transparent;
}
&.date-range-input {
transition: width 100ms ease-in-out;
}
&.dynamic-value {
& ::placeholder {
color: @text-color !important;
}
&.date-range-input {
.ant-calendar-range-picker-input {
width: 100%;
text-align: left;
}
.ant-calendar-range-picker-separator,
.ant-calendar-range-picker-input:not(:first-child) {
display: none;
}
}
}
}