-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8de0393
commit 7be8ef7
Showing
45 changed files
with
7,609 additions
and
77 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 147 additions & 0 deletions
147
stroom-app/src/main/resources/ui/css/CustomDatePicker.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
.CustomDatePicker { | ||
} | ||
.CustomDatePicker .gwt-ListBox { | ||
border: none; | ||
padding: 2px; | ||
} | ||
.CustomDatePicker .form-label { | ||
margin-top: 0.25rem; | ||
} | ||
.CustomDatePicker td, | ||
.customDatePickerMonthSelector td:focus { | ||
outline: none | ||
} | ||
|
||
.CustomDatePicker .cellOuter { | ||
width: 30px; | ||
height: 30px; | ||
display: flex; | ||
align-items: center; | ||
} | ||
.CustomDatePicker .cellInner { | ||
display: flex; | ||
align-items: center; | ||
flex-direction: column; | ||
width: 100%; | ||
} | ||
|
||
.customDatePickerDay, | ||
.customDatePickerWeekdayLabel, | ||
.customDatePickerWeekendLabel { | ||
outline: none; | ||
color: var(--text-color); | ||
} | ||
.customDatePickerWeekdayLabel, | ||
.customDatePickerWeekendLabel { | ||
cursor: default; | ||
} | ||
.customDatePickerDay { | ||
padding: 4px; | ||
cursor: pointer; | ||
border-radius: 2rem; | ||
border: 1px solid transparent; | ||
} | ||
.customDatePickerDayIsToday { | ||
color: var(--text-color); | ||
border: 1px solid var(--row__background-color--selected); | ||
} | ||
.customDatePickerDayIsWeekend { | ||
} | ||
.customDatePickerDayIsFiller { | ||
color: var(--text-color--disabled); | ||
/*color: transparent;*/ | ||
} | ||
.customDatePickerDayIsValue { | ||
background: var(--row__background-color--selected); | ||
border: 1px solid var(--row__background-color--selected); | ||
color: var(--row__text-color--selected); | ||
} | ||
.customDatePickerDayIsDisabled { | ||
color: var(--text-color--disabled); | ||
} | ||
|
||
td:hover .customDatePickerDay { | ||
background: var(--row__background-color--hovered); | ||
} | ||
td:hover .customDatePickerDayIsValue { | ||
background: var(--row__background-color--selected--hovered) !important; | ||
border: 1px solid var(--row__background-color--selected--hovered) !important; | ||
color: var(--row__text-color--selected) !important; | ||
} | ||
|
||
/* | ||
.customDatePickerDayIsHighlighted { | ||
background: var(--row__background-color--hovered); | ||
} | ||
.customDatePickerDayIsValueAndHighlighted { | ||
background: var(--row__background-color--selected--hovered) !important; | ||
border: 1px solid var(--row__background-color--selected--hovered) !important; | ||
color: var(--row__text-color--selected) !important; | ||
} | ||
.customDatePickerDayIsValue.customDatePickerDayIsHighlighted { | ||
background: var(--row__background-color--hovered); | ||
color: var(--text-color); | ||
} | ||
*/ | ||
|
||
.customDatePickerMonthSelector { | ||
} | ||
.customDatePickerYear, | ||
.customDatePickerMonth { | ||
display: flex; | ||
align-items: center; | ||
|
||
gap: 4px; | ||
padding: 0 2px; | ||
} | ||
.customDatePickerYear .icon-button, | ||
.customDatePickerMonth .icon-button { | ||
width: 26px; | ||
height: 26px; | ||
} | ||
.customDatePickerPreviousButton svg, | ||
.customDatePickerNextButton svg, | ||
.customDatePickerPreviousYearButton svg, | ||
.customDatePickerNextYearButton svg { | ||
color: var(--navigation__text-color); | ||
width: 10px; | ||
height: 10px; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
.customDatePickerDay,.customDatePickerWeekdayLabel,.customDatePickerWeekendLabel { | ||
|
||
} | ||
|
||
.DateTimeView-heading { | ||
color: var(--heading-color); | ||
font-weight: bold; | ||
font-size: 125%; | ||
padding-bottom: 0.3em; | ||
} | ||
|
||
.DateTimeView-right { | ||
padding-left: 1rem; | ||
} | ||
|
||
.customDatePickerMonth .SelectionBox, | ||
.customDatePickerYear .SelectionBox { | ||
flex-grow: 1; | ||
width: 5px; | ||
} | ||
|
||
.customDatePickerMonth .SelectionBox input, | ||
.customDatePickerYear .SelectionBox input { | ||
min-width: 5px; | ||
} | ||
|
||
.DateTimeView-date, | ||
.DateTimeView-time { | ||
padding: 5px 0 10px 0; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
stroom-core-client-widget/src/main/java/stroom/widget/datepicker/client/AbstractCell.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package stroom.widget.datepicker.client; | ||
|
||
import com.google.gwt.dom.client.Element; | ||
import com.google.gwt.user.client.DOM; | ||
import com.google.gwt.user.client.ui.Widget; | ||
|
||
public abstract class AbstractCell extends Widget { | ||
|
||
private final Element cellInner; | ||
|
||
public AbstractCell() { | ||
final Element cellOuter = DOM.createDiv(); | ||
cellOuter.setClassName("cellOuter"); | ||
cellInner = DOM.createDiv(); | ||
cellInner.setClassName("cellInner"); | ||
DOM.appendChild(cellOuter, cellInner); | ||
setElement(cellOuter); | ||
} | ||
|
||
protected void setText(String value) { | ||
cellInner.setInnerText(value); | ||
} | ||
} |
Oops, something went wrong.