1.0.21 • Published 2 years ago

@vladislav_sss/modsen_date_picker v1.0.21

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Description

daypicker rangepicker

Basic and extensible Javascript Date Picker library for working with different types of calendars. Includes DayPicker and RangePicker components.

  • Supports the ability to jump to a user-specified date in the calendar.
  • Supports the ability to add a list of tasks when double-clicking on a specific day and save them in localStorage.
  • Supports the ability to switch to the previous/next week/month/year.
  • Supports the ability to select minimum and maximum calendar dates.
  • The ability to hide/show weekends and highlight holidays in a different color is supported.
  • Supports selection of calendar type (by year, week and month).
  • Supports range selection for the calendar.
  • In the RangePicker component, the first calendar provides start date selection both when you click and when you enter data in the DateSelector component's panel. Similarly for the end date of the period in the second calendar. This provides the user with more convenient functionality for viewing the selected period and changing it. This library is extensible, so in the future the resulting range can be used for specific purposes of a particular application.

Overview

Installation

npm i @vladislav_sss/modsen_date_picker

yarn add @vladislav_sss/modsen_date_picker

Components:

<RangePicker />
<DayPicker />

Props DayPicker:

  form: 'year' | 'month' | 'week';
  title: string;
  isWeekendsOn: boolean;
  isWeekStartsOnMonday: boolean;
  isClearButtonVisible: boolean;
  holidaysColor: string;
  minDate: Date;
  maxDate: Date;

Props RangePicker:

  form: 'year' | 'month' | 'week';
  isWeekendsOn: boolean;
  isWeekStartsOnMonday: boolean;
  isClearButtonVisible: boolean;
  holidaysColor: string;
  minDate: Date;
  maxDate: Date;
  isRangeCalendarOpen: boolean;
  rangeStartDate: Date;
  rangeEndDate: Date;
  defaultRangeDate: Date;
1.0.21

2 years ago

1.0.20

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago