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

feat(ui5-calendar): introduce new component. #2424

Merged
merged 31 commits into from
Nov 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4ae812f
feat(ui5-calendar): component is no public and can be used standalone.
unazko Oct 30, 2020
a8cea25
feat(ui5-calendar): component is no public and can be used standalone.
unazko Nov 1, 2020
166375f
Merge branch 'master' of https://github.com/unazko/ui5-webcomponents …
unazko Nov 2, 2020
ce65ff8
Merge branch 'master' of https://github.com/unazko/ui5-webcomponents …
unazko Nov 4, 2020
7fcdf3d
feat(ui5-calendar): component is no public and can be used standalone
unazko Nov 10, 2020
4fb3b30
feat(ui5-calendar): component is no public and can be used standalone.
unazko Nov 10, 2020
e247bc8
Merge branch 'master' of https://github.com/unazko/ui5-webcomponents …
unazko Nov 10, 2020
eb8d8bf
Fixed lint errors
unazko Nov 10, 2020
5f25f27
Commented code is removed.
unazko Nov 11, 2020
12e00f0
Calendar navigation in the Calendar is now compliant with the specifi…
unazko Nov 11, 2020
ed99156
Lint errors fixed.
unazko Nov 11, 2020
001a656
- Calendar test page is improved.
unazko Nov 12, 2020
f8ba38e
Playground sample is added.
unazko Nov 12, 2020
fe9c039
- Default value is now used for the DayPicker and Calendar
unazko Nov 16, 2020
10fd067
Merge branch 'master' of https://github.com/unazko/ui5-webcomponents …
unazko Nov 16, 2020
271c33b
An issue with DateRangePicker is now fixed.
unazko Nov 16, 2020
d145da7
The DateRangePicker selected range is applied again
unazko Nov 16, 2020
7373c9a
Merge branch 'master' of https://github.com/unazko/ui5-webcomponents …
unazko Nov 19, 2020
bf9c7ff
Documenation recommendations are applied.
unazko Nov 19, 2020
9f736df
Merge branch 'master' of https://github.com/unazko/ui5-webcomponents …
unazko Nov 20, 2020
86a5e81
- Getters are created for the picker DOM elements.
unazko Nov 20, 2020
d20e693
Merge branch 'master' of https://github.com/unazko/ui5-webcomponents …
unazko Nov 24, 2020
0801850
Empty new line is removed from the "CalendarSelection" file.
unazko Nov 25, 2020
4bba3a0
Lint erros fixed.
unazko Nov 25, 2020
b7d4848
Lint erros fixed.
unazko Nov 25, 2020
591d94f
- Separate methods are created for the picker componets,
unazko Nov 25, 2020
9891406
feat(ui5-calendar): stand alone usage
unazko Nov 25, 2020
0870009
feat(ui5-calendar): component can be used standalone
unazko Nov 26, 2020
82eaace
feat(ui5-calendar): component can be used stand alone
unazko Nov 26, 2020
a687c2b
- ui5-calendar "selected-dates-change" event detail description
unazko Nov 29, 2020
042b3a8
- empty tab on the end of a line is deleted.
unazko Nov 29, 2020
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
17 changes: 17 additions & 0 deletions packages/base/src/types/CalendarSelection.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import DataType from "./DataType.js";

const CalendarSelections = {
Single: "Single",
Multiple: "Multiple",
Range: "Range",
};

class CalendarSelection extends DataType {
static isValid(value) {
return !!CalendarSelections[value];
}
}

CalendarSelection.generateTypeAcessors(CalendarSelections);

export default CalendarSelection;
5 changes: 4 additions & 1 deletion packages/main/src/Calendar.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<div
class="{{classes.main}}"
style="{{styles.main}} "
@keydown={{_onkeydown}}
@keydown={{_onkeydown}}
@focusout={{_onfocusout}}
>

<ui5-calendar-header
Expand All @@ -16,6 +17,7 @@
._isNextButtonDisabled="{{_header._isNextButtonDisabled}}"
._isPrevButtonDisabled="{{_header._isPrevButtonDisabled}}"
._isMonthButtonHidden="{{_header._isMonthButtonHidden}}"
._tabIndex="{{_header.tabIndex}}"
></ui5-calendar-header>

<div id="{{_id}}-content">
Expand All @@ -26,6 +28,7 @@
.selectedDates="{{_oMonth.selectedDates}}"
._hidden="{{_oMonth._hidden}}"
.primaryCalendarType="{{_oMonth.primaryCalendarType}}"
.selection="{{_oMonth.selection}}"
.minDate="{{_oMonth.minDate}}"
.maxDate="{{_oMonth.maxDate}}"
timestamp="{{_oMonth.timestamp}}"
Expand Down
Loading