date-picker-svelte
Advanced tools
Comparing version 1.0.0 to 1.1.0
# Changelog | ||
## 1.1.0 - 2021 Oct 19 | ||
- Add `Escape` shortcut for closing DatePicker popup | ||
- Add `Enter` shortcut for opening/closing DatePicker popup | ||
## 1.0.0 - 2021 Oct 6 | ||
@@ -4,0 +8,0 @@ - Replace all `any` types |
@@ -10,2 +10,3 @@ import type { FormatToken } from './parse'; | ||
}; | ||
export declare function getMonthDays(year: number, month: number): CalendarDay[]; | ||
export declare function getCalendarDays(value: Date, weekStartsOn: number): CalendarDay[]; |
@@ -21,3 +21,3 @@ export function isLeapYear(year) { | ||
} | ||
function getMonthDays(year, month) { | ||
export function getMonthDays(year, month) { | ||
const monthLength = getMonthLength(year, month); | ||
@@ -24,0 +24,0 @@ const days = []; |
@@ -12,7 +12,3 @@ export declare type Locale = { | ||
export declare function getLocaleDefaults(): InnerLocale; | ||
export declare function getInnerLocale(locale?: Locale): { | ||
weekdays: string[]; | ||
months: string[]; | ||
weekStartsOn: number; | ||
}; | ||
export declare function getInnerLocale(locale?: Locale): InnerLocale; | ||
declare type DateFnsLocale = { | ||
@@ -19,0 +15,0 @@ options?: { |
{ | ||
"name": "date-picker-svelte", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Date and time picker for Svelte", | ||
"type": "module", | ||
"devDependencies": { | ||
"@sveltejs/adapter-static": "^1.0.0-next.20", | ||
"@sveltejs/kit": "^1.0.0-next.180", | ||
"@typescript-eslint/eslint-plugin": "^4.33.0", | ||
"@typescript-eslint/parser": "^4.33.0", | ||
"@sveltejs/adapter-static": "^1.0.0-next.21", | ||
"@sveltejs/kit": "^1.0.0-next.186", | ||
"@typescript-eslint/eslint-plugin": "^5.1.0", | ||
"@typescript-eslint/parser": "^5.1.0", | ||
"babel-jest": "^27.3.0", | ||
"date-fns": "^2.25.0", | ||
"eslint": "^7.32.0", | ||
"eslint": "^8.0.1", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-svelte3": "^3.2.1", | ||
"jest": "^27.3.0", | ||
"mdsvex": "^0.9.8", | ||
"prettier": "^2.4.1", | ||
"prettier-plugin-svelte": "^2.4.0", | ||
"sass": "^1.42.1", | ||
"svelte": "^3.43.1", | ||
"svelte-check": "^2.2.6", | ||
"sass": "^1.43.2", | ||
"svelte": "^3.44.0", | ||
"svelte-check": "^2.2.7", | ||
"svelte-preprocess": "^4.9.8", | ||
"svelte2tsx": "^0.4.7", | ||
"ts-jest": "^27.0.7", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.4.3" | ||
"typescript": "^4.4.4" | ||
}, | ||
@@ -48,2 +51,12 @@ "license": "MIT", | ||
], | ||
"jest": { | ||
"transform": { | ||
"^.+\\.ts$": "ts-jest", | ||
"^.+\\.js$": "babel-jest" | ||
}, | ||
"moduleFileExtensions": [ | ||
"js", | ||
"ts" | ||
] | ||
}, | ||
"prettier": { | ||
@@ -50,0 +63,0 @@ "printWidth": 100, |
# Date Picker Svelte | ||
Date and time picker for Svelte | ||
Supports theming, custom formats, internationalization and autopunctuation (e.g typing "20201111111111" gives you "2020-11-11 11:11:11" with the default format) | ||
[![License](https://img.shields.io/npm/l/date-picker-svelte.svg)](LICENSE) | ||
@@ -12,6 +7,13 @@ [![NPM Version](https://img.shields.io/npm/v/date-picker-svelte.svg)](https://npmjs.com/package/date-picker-svelte) | ||
[Demo](https://date-picker-svelte.kasper.space/demo) | ||
Date and time picker for Svelte | ||
[Documentation](https://date-picker-svelte.kasper.space/docs) | ||
Features: | ||
- Theming | ||
- Custom formats | ||
- Internationalization (i18n) | ||
- Autopunctuation (e.g typing "20201111111111" gives you "2020-11-11 11:11:11" with the default format) | ||
- Keyboard shortcuts | ||
[Demo](https://date-picker-svelte.kasper.space/demo) • [Documentation](https://date-picker-svelte.kasper.space/docs) • [REPL](https://svelte.dev/repl/044911429c4b4e659362518d9a5deaae?version=3) | ||
![](Screenshot.png) | ||
@@ -18,0 +20,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32094
77
21
362