date-picker-svelte
Advanced tools
Comparing version 2.0.0 to 2.1.0
# Changelog | ||
## 2.1.0 - 2022 Jul 31 | ||
- Add `browseWithoutSelecting` property | ||
- Use well-supported `:focus` instead of `:focus-within` | ||
## 2.0.0 - 2021 Feb 17 | ||
- **Breaking**: Allow DateInput/DatePicker value to be `null` | ||
- **Breaking**: The value is now `null` by default | ||
- Use `rem` for sizing the DatePicker | ||
@@ -6,0 +11,0 @@ - Make the DatePicker slightly larger |
@@ -15,2 +15,3 @@ import { SvelteComponentTyped } from "svelte"; | ||
/** Close the date popup when a date is selected */ closeOnSelection?: boolean | undefined; | ||
/** Wait with updating the date until a date is selected */ browseWithoutSelecting?: boolean | undefined; | ||
}; | ||
@@ -17,0 +18,0 @@ events: { |
@@ -9,2 +9,3 @@ import { SvelteComponentTyped } from "svelte"; | ||
/** Locale object for internationalization */ locale?: Locale | undefined; | ||
/** Wait with updating the date until a date is selected */ browseWithoutSelecting?: boolean | undefined; | ||
}; | ||
@@ -11,0 +12,0 @@ events: { |
@@ -34,5 +34,4 @@ export function getLocaleDefaults() { | ||
export function localeFromDateFnsLocale(dateFnsLocale) { | ||
var _a; | ||
const locale = getLocaleDefaults(); | ||
if (typeof ((_a = dateFnsLocale === null || dateFnsLocale === void 0 ? void 0 : dateFnsLocale.options) === null || _a === void 0 ? void 0 : _a.weekStartsOn) === 'number') { | ||
if (typeof dateFnsLocale?.options?.weekStartsOn === 'number') { | ||
locale.weekStartsOn = dateFnsLocale.options.weekStartsOn; | ||
@@ -39,0 +38,0 @@ } |
{ | ||
"name": "date-picker-svelte", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Date and time picker for Svelte", | ||
"type": "module", | ||
"devDependencies": { | ||
"@sveltejs/adapter-static": "^1.0.0-next.28", | ||
"@sveltejs/kit": "^1.0.0-next.272", | ||
"@typescript-eslint/eslint-plugin": "^5.12.0", | ||
"@typescript-eslint/parser": "^5.12.0", | ||
"babel-jest": "^27.5.1", | ||
"date-fns": "^2.28.0", | ||
"eslint": "^8.9.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-svelte3": "^3.4.0", | ||
"jest": "^27.5.1", | ||
"mdsvex": "^0.10.5", | ||
"prettier": "^2.5.1", | ||
"prettier-plugin-svelte": "^2.6.0", | ||
"sass": "^1.49.7", | ||
"svelte": "^3.46.4", | ||
"svelte-check": "^2.4.5", | ||
"svelte-preprocess": "^4.10.3", | ||
"svelte2tsx": "^0.5.5", | ||
"ts-jest": "^27.1.3", | ||
"tslib": "^2.3.1", | ||
"typescript": "^4.5.5" | ||
"@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", | ||
"babel-jest": "^28.1.3", | ||
"date-fns": "^2.29.1", | ||
"eslint": "^8.20.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-svelte3": "^4.0.0", | ||
"jest": "^28.1.3", | ||
"mdsvex": "^0.10.6", | ||
"prettier": "^2.7.1", | ||
"prettier-plugin-svelte": "^2.7.0", | ||
"sass": "^1.54.0", | ||
"svelte": "^3.49.0", | ||
"svelte-check": "^2.8.0", | ||
"svelte-preprocess": "^4.10.7", | ||
"svelte2tsx": "^0.5.13", | ||
"ts-jest": "^28.0.7", | ||
"tslib": "^2.4.0", | ||
"typescript": "^4.7.4", | ||
"vite": "^3.0.4" | ||
}, | ||
@@ -65,8 +66,3 @@ "license": "MIT", | ||
"semi": false, | ||
"singleQuote": true, | ||
"htmlWhitespaceSensitivity": "strict", | ||
"svelteSortOrder": "options-scripts-markup-styles", | ||
"svelteStrictMode": false, | ||
"svelteAllowShorthand": true, | ||
"svelteIndentScriptAndStyle": true | ||
"singleQuote": true | ||
}, | ||
@@ -73,0 +69,0 @@ "exports": { |
@@ -29,3 +29,3 @@ import { getMonthLength } from './date-utils'; | ||
const matches = str.match(pattern); | ||
if (matches === null || matches === void 0 ? void 0 : matches[0]) { | ||
if (matches?.[0]) { | ||
str = str.slice(matches[0].length); | ||
@@ -32,0 +32,0 @@ const n = parseInt(matches[0]); |
Sorry, the diff of this file is not supported yet
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
38090
374
22