date-picker-svelte
Advanced tools
Comparing version 2.1.1 to 2.2.0
# Changelog | ||
## 2.2.0 - 2022 Sep 6 | ||
- Add `disabled` property | ||
## 2.1.1 - 2022 Aug 15 | ||
@@ -4,0 +7,0 @@ - Fix broken month dropdown on Firefox |
@@ -6,4 +6,4 @@ export function isLeapYear(year) { | ||
const feb = isLeapYear(year) ? 29 : 28; | ||
const monthLenghts = [31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; | ||
return monthLenghts[month]; | ||
const monthLengths = [31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; | ||
return monthLengths[month]; | ||
} | ||
@@ -10,0 +10,0 @@ export function toText(date, formatTokens) { |
@@ -10,2 +10,3 @@ import { SvelteComponentTyped } from "svelte"; | ||
/** Whether the text is valid */ valid?: boolean | undefined; | ||
/** Disable the input **/ disabled?: boolean | undefined; | ||
/** Format string */ format?: string | undefined; | ||
@@ -12,0 +13,0 @@ /** Locale object for internationalization */ locale?: Locale | undefined; |
{ | ||
"name": "date-picker-svelte", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Date and time picker for Svelte", | ||
"type": "module", | ||
"devDependencies": { | ||
"@sveltejs/adapter-static": "1.0.0-next.38", | ||
"@sveltejs/kit": "1.0.0-next.399", | ||
"@typescript-eslint/eslint-plugin": "^5.31.0", | ||
"@typescript-eslint/parser": "^5.31.0", | ||
"@sveltejs/adapter-static": "1.0.0-next.39", | ||
"@sveltejs/kit": "1.0.0-next.405", | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"babel-jest": "^28.1.3", | ||
"date-fns": "^2.29.1", | ||
"eslint": "^8.20.0", | ||
"eslint": "^8.22.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
@@ -20,3 +20,3 @@ "eslint-plugin-svelte3": "^4.0.0", | ||
"prettier-plugin-svelte": "^2.7.0", | ||
"sass": "^1.54.0", | ||
"sass": "^1.54.4", | ||
"svelte": "^3.49.0", | ||
@@ -29,3 +29,3 @@ "svelte-check": "^2.8.0", | ||
"typescript": "^4.7.4", | ||
"vite": "^3.0.4" | ||
"vite": "^3.0.7" | ||
}, | ||
@@ -32,0 +32,0 @@ "license": "MIT", |
@@ -7,3 +7,2 @@ # Date Picker Svelte | ||
[![test](https://github.com/probablykasper/date-picker-svelte/actions/workflows/test.yml/badge.svg)](https://github.com/probablykasper/date-picker-svelte/actions/workflows/test.yml) | ||
[![codecov](https://codecov.io/gh/probablykasper/date-picker-svelte/branch/master/graph/badge.svg?token=8C7BMY92PA)](https://codecov.io/gh/probablykasper/date-picker-svelte) | ||
@@ -10,0 +9,0 @@ Date and time picker for Svelte |
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
38115
375
77