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(calendar): component implementation #153

Merged
merged 45 commits into from
Oct 23, 2018
Merged

feat(calendar): component implementation #153

merged 45 commits into from
Oct 23, 2018

Conversation

artyorsh
Copy link
Collaborator

@artyorsh artyorsh commented Oct 5, 2018

Short description of what this resolves:

  1. Calendar component implementation:
  • horizontal/vertical layout support
  • default/ranged selection support
  • custom day cells
  • bounding months
  • scrollTo* support
  1. Explorer app examples
  2. Documented ✅

Artur Yorsh added 30 commits October 5, 2018 13:08
* fix(calendar): selection optimizations - selection changes prop

* fix(calendar): selection optimizations with shouldComponentUpdate
* feat(calendar): apply styles
* feat(calendar/range): custom day render function

* feat(calendar): update example
* fix(calendar): no-state-initialized warning

* fix(calendar): day component key prop null-pointer
refactor(calendar): move props to types

refactor(calendar): rk-typed styles apply
@artyorsh artyorsh closed this Oct 22, 2018
@artyorsh artyorsh reopened this Oct 22, 2018
malashkevich
malashkevich previously approved these changes Oct 22, 2018
disabled: Text.propTypes.style,
}),
}),
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linebreak

navigate: PropTypes.func.isRequired,
}).isRequired,
};
static data = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linebreak

const { start, end } = weekRange;
return RkCalendarService.Date.isBetweenIncludingSafe(d, start, end);
};
const isWasSelected = isInWeek(props.selected.start);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasSelected

return RkCalendarService.Date.isBetweenIncludingSafe(d, start, end);
};
const isWasSelected = isInWeek(props.selected.start);
const isWillSelected = isInWeek(nextProps.selected.start);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change naming


function withBoundingMonths(weeks, activeMonth, isBounding, fallback) {
let boundedWeeks = weeks;
if (isShouldAddPrevBoundingMonth(boundedWeeks)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldAddPrevBoundingMonth

@malashkevich malashkevich merged commit 5daf561 into akveo:master Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants