All Projects → TIOvOIT → praecox-datepicker

TIOvOIT / praecox-datepicker

Licence: MIT license
A date picker built with Svelte.Simple and flexible, supporting functions such as single selection, multiple selection, disabling, and marking.

Programming Languages

Svelte
593 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to praecox-datepicker

Blazor.PersianDatePicker
A free JavaScript Jalali (Persian) and Gregorian (Miladi) dual datepicker library for Blazor applications
Stars: ✭ 40 (-39.39%)
Mutual labels:  datepicker, datepicker-component, calendar-component
react-calendar
A no dependencies, lightweight and feature-rich ⚡ calendar component for react.
Stars: ✭ 68 (+3.03%)
Mutual labels:  datepicker, datepicker-component, calendar-component
vue2-persian-datepicker
A vue component that provides datepicker for persian developers
Stars: ✭ 100 (+51.52%)
Mutual labels:  datepicker, datepicker-component
imrc-datetime-picker
(Improved) React component datetime picker by momentjs 📆
Stars: ✭ 21 (-68.18%)
Mutual labels:  datepicker, datepicker-component
vue-persian-datepicker
A datepicker component for select Persian date
Stars: ✭ 23 (-65.15%)
Mutual labels:  datepicker, datepicker-component
ic-datepicker
Angular (2+) datepicker component
Stars: ✭ 27 (-59.09%)
Mutual labels:  datepicker, datepicker-component
ionic4-datepicker
Ionic 4 Datepicker component
Stars: ✭ 78 (+18.18%)
Mutual labels:  datepicker, datepicker-component
Vue Functional Calendar
Vue.js Functional Calendar | Component/Package
Stars: ✭ 314 (+375.76%)
Mutual labels:  datepicker, calendar-component
Primedatepicker
PrimeDatePicker is a tool that provides picking a single day, multiple days, and a range of days.
Stars: ✭ 292 (+342.42%)
Mutual labels:  datepicker, calendar-component
Svelte Calendar
A lightweight datepicker with neat animations and a unique UX.
Stars: ✭ 279 (+322.73%)
Mutual labels:  datepicker, calendar-component
Vue Calendar
🏆 基于 vue 2.0 开发的轻量,高性能日历组件
Stars: ✭ 828 (+1154.55%)
Mutual labels:  datepicker, calendar-component
Calendarview
An Easy to Use Calendar for iOS (Swift 5.0)
Stars: ✭ 429 (+550%)
Mutual labels:  datepicker, calendar-component
Date Picker
Duet Date Picker is an open source version of Duet Design System’s accessible date picker. Try live example at https://duetds.github.io/date-picker/
Stars: ✭ 1,325 (+1907.58%)
Mutual labels:  datepicker, calendar-component
Calendarview
A highly customizable calendar library for Android, powered by RecyclerView.
Stars: ✭ 2,862 (+4236.36%)
Mutual labels:  datepicker
datepickertimeline
Linear date picker for Jetpack compose
Stars: ✭ 43 (-34.85%)
Mutual labels:  datepicker
Vuejs Datepicker
A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
Stars: ✭ 2,529 (+3731.82%)
Mutual labels:  datepicker
Vue Bootstrap Datetimepicker
Vue.js component for eonasdan bootstrap datetimepicker
Stars: ✭ 221 (+234.85%)
Mutual labels:  datepicker
svelte-popper
🍿🔗Official Svelte wrapper for Popper - the positioning library
Stars: ✭ 27 (-59.09%)
Mutual labels:  svelte-component
nativescript-datetimepicker
Plugin with date and time picking fields
Stars: ✭ 26 (-60.61%)
Mutual labels:  datepicker
Datepicker
Get a date with JavaScript! A datepicker with no dependencies.
Stars: ✭ 212 (+221.21%)
Mutual labels:  datepicker

Praecox-datepicker

A date picker built with Svelte.Simple and flexible, supporting functions such as single selection, multiple selection, disabling, and marking.

Screenshot

Theme
theme

Demo

Preview Multiple disabled Custom styles

Install

npm install --save praecox-datepicker

Usage

import Datepicker from "praecox-datepicker";
<Datepicker />

Props

Props Type Default Description
nowDate Date new Date() Current date
lang "en" | "zh" | "ru" | "ro" |"es" | "de" | "it" | "el" "en" Language
viewDate Date nowDate Current view date
pickerRule "single" | "range" | "free" "single" Date picker mode
disabled Date Array [] Disable date. When the value type is not an array, the length is not 2, and a single disabled mode is adopted. If it is 2 and the first value is smaller than the second value, it is a range disabled mode; when the value of Array[0] is an array , Can be disabled multiple times
selected string | Array [] Selected date, supports two-way binding, can be used to bind external results Issues
marked Date Array [] Date marked
weekNameMode "weekShortAbbreviation" | "weekAbbreviation" | "weekFullName" "weekAbbreviation"
monthNameMode "monthAbbreviation" | "monthFullName" "monthFullName"
theme "light" | "dark" "light"
reSelected boolean false When the range is selected, the value can be reset Issues
finishBtn boolean true Used to control whether finishBtn is displayed
reloadDisabled function undefined External function that get used to reload the disabled array on Next/Prev action
pickerDone boolean false Binding with the Finish button to increase UE and facilitate control of the display, if finishBtn prop is false, do not use this prop.

Built-in function

import Datepicker, {
  formatDatestamp,
  getNextYearAndMonth,
  getPrevYearAndMonth,
  getThisMonthData,
  testDaysInTheMonth,
  testLeapYear,
  testSolarMonthOf31Days,
  thisMonthHasManyWeek,
  theDayOfTheWeek,
} from "praecox-datepicker";

Custom styles

List of custom style variable names

--praecox-calendar-custom-width: 330px;
--praecox-calendar-custom-height: 310px;
--praecox-calendar-custom-inner-width: 310px;
--praecox-calendar-custom-inner-height: 220px;
--praecox-calendar-custom-head-height: 48px;
--praecox-calendar-custom-icon-size: 20px;
--praecox-calendar-custom-border-radius: 3px;
--praecox-calendar-custom-font-family: sans-serif;
--praecox-calendar-custom-number-font-family: "Open Sans", sans-serif;

--praecox-calendar-custom-main-color: #0060df;
--praecox-calendar-custom-main-color-hover: #0a84ff;
--praecox-calendar-custom-main-color-active: #0060df;
--praecox-calendar-custom-focused-color: #12bc00;
--praecox-calendar-custom-adjunctive-color: rgba(0, 96, 223, 0.1);
--praecox-calendar-custom-secondary-color: rgba(0, 96, 223, 0.2);
--praecox-calendar-custom-selected-color: #002275;

--praecox-calendar-custom-weekend-color: #f9f9fa;
--praecox-calendar-custom-outsidemonth-color: #b1b1b3;
--praecox-calendar-custom-overbackground-color: #f5f8ff;

--praecox-calendar-custom-font-main-color: #181818;
--praecox-calendar-custom-font-disabled-color: #d7d7db;
--praecox-calendar-custom-font-secondary-color: #b1b1b3;

--praecox-calendar-custom-background: #ffffff;
--praecox-calendar-custom-background-hover: #f5f8ff;
--praecox-calendar-custom-border: 1px solid #ededf0;
--praecox-calendar-custom-boxshadow: 0px 1px solid #ededf0;

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].