vanilla-calendar-picker
Advanced tools
Comparing version 2.11.1 to 2.11.2
@@ -1,2 +0,2 @@ | ||
import { ISettings } from '../types'; | ||
import { IPartialSettings } from '../types'; | ||
import { VanillaCalendar } from '../vanilla-calendar'; | ||
@@ -10,3 +10,3 @@ | ||
export declare function mergeDeep(target: any, ...sources: any[]): any; | ||
export declare function changeSetting<T extends keyof ISettings, K extends Partial<ISettings[T]>>(self: VanillaCalendar, option: T, value: K): void; | ||
export declare function changeSetting<T extends keyof IPartialSettings, K extends Partial<IPartialSettings[T]>>(self: VanillaCalendar, option: T, value: K): void; | ||
//# sourceMappingURL=changeSetting.d.ts.map |
@@ -36,3 +36,3 @@ import { default as classes } from './classes'; | ||
*/ | ||
edgesOnly: boolean; | ||
edgesOnly?: boolean; | ||
/** This parameter disables all days and can be useful when using `settings.range.enabled` */ | ||
@@ -114,2 +114,15 @@ disableAllDays: boolean; | ||
} | ||
export interface IPartialSettings { | ||
/** This parameter sets the language localization of the calendar. */ | ||
lang: string; | ||
/** | ||
* This parameter sets the start of the week in accordance with the international standard ISO 8601. | ||
* If set to `'false'`, the week will start on Sunday; otherwise, it starts on Monday. | ||
*/ | ||
iso8601: boolean; | ||
range: Partial<IRange>; | ||
selection: Partial<ISelection>; | ||
selected: Partial<ISelected>; | ||
visibility: Partial<IVisibility>; | ||
} | ||
export interface ILocale { | ||
@@ -164,10 +177,3 @@ months: string[] | []; | ||
sanitizer?: (dirtyHtml: string) => unknown; | ||
settings?: Partial<{ | ||
lang: string; | ||
iso8601: boolean; | ||
range: Partial<IRange>; | ||
selection: Partial<ISelection>; | ||
selected: Partial<ISelected>; | ||
visibility: Partial<IVisibility>; | ||
}>; | ||
settings?: Partial<IPartialSettings>; | ||
locale?: Partial<ILocale>; | ||
@@ -174,0 +180,0 @@ actions?: Partial<IActions>; |
import { default as DefaultOptionsCalendar } from './scripts/default'; | ||
import { IOptions, IReset, ISettings, IVanillaCalendar } from './types'; | ||
import { IOptions, IReset, IPartialSettings, IVanillaCalendar } from './types'; | ||
@@ -11,4 +11,4 @@ export declare class VanillaCalendar extends DefaultOptionsCalendar implements IVanillaCalendar { | ||
hide: () => void; | ||
changeSetting: <T extends keyof ISettings, K extends Partial<ISettings[T]>>(option: T, value: K) => void; | ||
changeSetting: <T extends keyof IPartialSettings, K extends Partial<IPartialSettings[T]>>(option: T, value: K) => void; | ||
} | ||
//# sourceMappingURL=vanilla-calendar.d.ts.map |
{ | ||
"name": "vanilla-calendar-picker", | ||
"version": "2.11.1", | ||
"version": "2.11.2", | ||
"description": "Vanilla Calendar is a versatile JavaScript date and time picker with TypeScript support, making it compatible with any JavaScript framework or library. It is designed to be lightweight, simple to use, and feature-rich without relying on external dependencies.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ghiscoding/vanilla-calendar-picker", |
@@ -1,2 +0,2 @@ | ||
import { ISettings } from '../types'; | ||
import { IPartialSettings } from '../types'; | ||
import { VanillaCalendar } from '../vanilla-calendar'; | ||
@@ -10,3 +10,3 @@ | ||
export declare function mergeDeep(target: any, ...sources: any[]): any; | ||
export declare function changeSetting<T extends keyof ISettings, K extends Partial<ISettings[T]>>(self: VanillaCalendar, option: T, value: K): void; | ||
export declare function changeSetting<T extends keyof IPartialSettings, K extends Partial<IPartialSettings[T]>>(self: VanillaCalendar, option: T, value: K): void; | ||
//# sourceMappingURL=changeSetting.d.ts.map |
@@ -36,3 +36,3 @@ import { default as classes } from './classes'; | ||
*/ | ||
edgesOnly: boolean; | ||
edgesOnly?: boolean; | ||
/** This parameter disables all days and can be useful when using `settings.range.enabled` */ | ||
@@ -114,2 +114,15 @@ disableAllDays: boolean; | ||
} | ||
export interface IPartialSettings { | ||
/** This parameter sets the language localization of the calendar. */ | ||
lang: string; | ||
/** | ||
* This parameter sets the start of the week in accordance with the international standard ISO 8601. | ||
* If set to `'false'`, the week will start on Sunday; otherwise, it starts on Monday. | ||
*/ | ||
iso8601: boolean; | ||
range: Partial<IRange>; | ||
selection: Partial<ISelection>; | ||
selected: Partial<ISelected>; | ||
visibility: Partial<IVisibility>; | ||
} | ||
export interface ILocale { | ||
@@ -164,10 +177,3 @@ months: string[] | []; | ||
sanitizer?: (dirtyHtml: string) => unknown; | ||
settings?: Partial<{ | ||
lang: string; | ||
iso8601: boolean; | ||
range: Partial<IRange>; | ||
selection: Partial<ISelection>; | ||
selected: Partial<ISelected>; | ||
visibility: Partial<IVisibility>; | ||
}>; | ||
settings?: Partial<IPartialSettings>; | ||
locale?: Partial<ILocale>; | ||
@@ -174,0 +180,0 @@ actions?: Partial<IActions>; |
import { default as DefaultOptionsCalendar } from './scripts/default'; | ||
import { IOptions, IReset, ISettings, IVanillaCalendar } from './types'; | ||
import { IOptions, IReset, IPartialSettings, IVanillaCalendar } from './types'; | ||
@@ -11,4 +11,4 @@ export declare class VanillaCalendar extends DefaultOptionsCalendar implements IVanillaCalendar { | ||
hide: () => void; | ||
changeSetting: <T extends keyof ISettings, K extends Partial<ISettings[T]>>(option: T, value: K) => void; | ||
changeSetting: <T extends keyof IPartialSettings, K extends Partial<IPartialSettings[T]>>(option: T, value: K) => void; | ||
} | ||
//# sourceMappingURL=vanilla-calendar.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
358065
1731
0