Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EuiSuperDatePicker #1351

Merged
merged 42 commits into from
Dec 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b8bc8ca
super date picker component
nreese Dec 4, 2018
fcf1d8f
quick select
nreese Dec 4, 2018
f136b84
commonly used ranges
nreese Dec 4, 2018
d42a1b1
recently used
nreese Dec 4, 2018
325168f
cleanup quick_select_popover
nreese Dec 5, 2018
0aa79ef
refresh interval
nreese Dec 5, 2018
f0c9544
show date range
nreese Dec 5, 2018
e823450
relative date parsing
nreese Dec 5, 2018
c8f3339
clean up date_popover
nreese Dec 6, 2018
08fad42
relative
nreese Dec 6, 2018
4ee30fc
absolute tab
nreese Dec 6, 2018
9734df4
implement step forward and step backward
nreese Dec 6, 2018
4c3e3b6
add data-test-subjs needed for existing kibana functional tests
nreese Dec 6, 2018
78583b6
remove global date picker pattern, add comments about EuiSuperDatePic…
nreese Dec 6, 2018
c2fd0e8
change log
nreese Dec 6, 2018
412aa69
merge with master
nreese Dec 6, 2018
3e69d69
remove kibana file header
nreese Dec 6, 2018
f93e5d0
merge with master
nreese Dec 7, 2018
48294f5
only show pretty duration for commonly used ranges and relative to no…
nreese Dec 7, 2018
ebd5392
use full time unit name in pretty duration
nreese Dec 7, 2018
3a4aac0
pass roundUp to formatTimeString to ensure date button display is acc…
nreese Dec 7, 2018
db09dc2
index files for super_date_picker and prefix subcomponents with 'Eui'
nreese Dec 7, 2018
e6080ca
add isLoading prop to EuiSuperDatePicker
nreese Dec 7, 2018
e440d6d
add props documenation for callback functions
nreese Dec 7, 2018
a45a277
show 'next' relative ranges as pretty duration
nreese Dec 7, 2018
2ef5171
rename from and to -> start and end
nreese Dec 7, 2018
edb66cd
store previous quick select state
nreese Dec 7, 2018
61d2bbb
snapshot updates
nreese Dec 9, 2018
0b447b4
keep quick select popover open on next / previous time window arrow
nreese Dec 9, 2018
46afda5
merge with master
nreese Dec 10, 2018
b4a0f21
make pretty duration clickable, add paragraph to example
nreese Dec 10, 2018
3da620a
show tooltip when time changes
nreese Dec 10, 2018
0a0c770
allow setting relative unit when value is zero
nreese Dec 11, 2018
c4444cc
merge with master
nreese Dec 13, 2018
7f74ef7
updates from chandlerprall review
nreese Dec 13, 2018
759ecda
remove moment-timezone dependency, not needed
nreese Dec 13, 2018
b6bfe05
remove getDerivedStateFromProps from EuiSuperDatePicker, EuiAbsoluteT…
nreese Dec 14, 2018
d422196
Merge branch 'master' of github.com:elastic/eui into super_date_picker
nreese Dec 14, 2018
97bc872
move changelog message under master section
nreese Dec 14, 2018
df7fc4f
moved prop types to Wrapped component so they are usable in docs
nreese Dec 14, 2018
88236cb
check component is mounted for show and hide tooltip
nreese Dec 14, 2018
95100c9
update to datemath dependency with moment as peer
nreese Dec 15, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## [`master`](https://github.com/elastic/eui/tree/master)

- Added `DisambiguateSet` and `ExclusiveUnion` utility types ([#1368](https://github.com/elastic/eui/pull/1368))
- Added `EuiSuperDatePicker` component ([#1351](https://github.com/elastic/eui/pull/1351))

**Bug fixes**

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@elastic/datemath": "^5.0.2",
"@elastic/eslint-config-kibana": "^0.15.0",
"@types/classnames": "^2.2.6",
"@types/enzyme": "^3.1.13",
Expand Down Expand Up @@ -170,6 +171,7 @@
"yo": "^2.0.0"
},
"peerDependencies": {
"@elastic/datemath": "^5.0.2",
"moment": "^2.13.0",
"prop-types": "^15.5.0",
"react": "^16.3",
Expand Down
1 change: 0 additions & 1 deletion src-docs/src/theme_dark.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../src/theme_dark';
@import './components/guide_components';
@import './views/header/global_filter_group';
@import './views/date_picker/global_date_picker';
1 change: 0 additions & 1 deletion src-docs/src/theme_k6_dark.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../src/theme_k6_dark';
@import './components/guide_components';
@import './views/header/global_filter_group';
@import './views/date_picker/global_date_picker';
1 change: 0 additions & 1 deletion src-docs/src/theme_k6_light.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../src/theme_k6_light';
@import './components/guide_components';
@import './views/header/global_filter_group';
@import './views/date_picker/global_date_picker';
1 change: 0 additions & 1 deletion src-docs/src/theme_light.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../src/theme_light';
@import './components/guide_components';
@import './views/header/global_filter_group';
@import './views/date_picker/global_date_picker';
28 changes: 14 additions & 14 deletions src-docs/src/views/date_picker/date_picker_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
EuiLink,
EuiDatePicker,
EuiDatePickerRange,
EuiCallOut,
EuiSuperDatePicker,
} from '../../../../src/components';

import DatePicker from './date_picker';
Expand Down Expand Up @@ -58,9 +58,9 @@ import Utc from './utc';
const utcSource = require('!!raw-loader!./utc');
const utcHtml = renderToHtml(Utc);

import GlobalDatePicker from './global_date_picker';
const globalDatePickerSource = require('!!raw-loader!./global_date_picker');
const globalDatePickerHtml = renderToHtml(GlobalDatePicker);
import SuperDatePicker from './super_date_picker';
const superDatePickerSource = require('!!raw-loader!./super_date_picker');
const superDatePickerHtml = renderToHtml(SuperDatePicker);

export const DatePickerExample = {
title: 'DatePicker',
Expand Down Expand Up @@ -266,24 +266,24 @@ export const DatePickerExample = {
),
demo: <Classes />,
}, {
title: 'Global date picker',
title: 'Super date picker',
source: [{
type: GuideSectionTypes.JS,
code: globalDatePickerSource,
code: superDatePickerSource,
}, {
type: GuideSectionTypes.HTML,
code: globalDatePickerHtml,
code: superDatePickerHtml,
}],
text: (
<div>
<EuiCallOut color="warning" title="Demo of visual pattern only">
<p>
This documents a <strong>visual</strong> pattern for the eventual replacement of Kibana&apos;s
global date/time picker. It uses all EUI components with some custom styles.
</p>
</EuiCallOut>
<p>
<EuiCode>start</EuiCode> and <EuiCode>end</EuiCode> date times are passed as strings
in either datemath format (e.g.: now, now-15m, now-15m/m)
or as absolute date in the format <EuiCode>YYYY-MM-DDTHH:mm:ss.sssZ</EuiCode>
</p>
</div>
),
demo: <GlobalDatePicker />,
demo: <SuperDatePicker />,
props: { EuiSuperDatePicker },
}],
};
Loading