UNPKG

@limetech/lime-elements

Version:
17 lines (16 loc) 484 B
import weekSelectPlugin from 'flatpickr/dist/plugins/weekSelect/weekSelect'; import { Picker } from './picker'; export class WeekPicker extends Picker { constructor(language, change, dateFormat = '[w] W GGGG') { super(language, change, dateFormat); } getConfig(nativePicker) { const config = {}; if (!nativePicker) { config.plugins = [weekSelectPlugin()]; config.weekNumbers = true; } return config; } } //# sourceMappingURL=week-picker.js.map