123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- 'use strict';
-
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
-
- var _timestamp = require('./timestamp');
-
- exports.default = {
- base: {
- start: {
- type: String,
- validate: _timestamp.validateTimestamp,
- default: function _default() {
- return (0, _timestamp.parseDate)(new Date()).date;
- }
- },
- end: {
- type: String,
- validate: _timestamp.validateTimestamp,
- default: '0000-00-00'
- },
- weekdays: {
- type: Array,
- default: function _default() {
- return [0, 1, 2, 3, 4, 5, 6];
- }
- },
- hideHeader: {
- type: Boolean,
- default: false
- },
- shortWeekdays: {
- type: Boolean,
- default: true
- },
- weekdayFormat: {
- type: Function,
- default: null
- },
- dayFormat: {
- type: Function,
- default: null
- },
- locale: {
- type: String,
- default: 'en-us'
- }
- },
- intervals: {
- maxDays: {
- type: Number,
- default: 7
- },
- shortIntervals: {
- type: Boolean,
- default: true
- },
- intervalHeight: {
- type: [Number, String],
- default: 40,
- validate: validateNumber
- },
- intervalMinutes: {
- type: [Number, String],
- default: 60,
- validate: validateNumber
- },
- firstInterval: {
- type: [Number, String],
- default: 0,
- validate: validateNumber
- },
- intervalCount: {
- type: [Number, String],
- default: 24,
- validate: validateNumber
- },
- intervalFormat: {
- type: Function,
- default: null
- },
- intervalStyle: {
- type: Function,
- default: null
- },
- showIntervalLabel: {
- type: Function,
- default: null
- }
- },
- weeks: {
- minWeeks: {
- validate: validateNumber,
- default: 1
- },
- shortMonths: {
- type: Boolean,
- default: true
- },
- showMonthOnFirst: {
- type: Boolean,
- default: true
- },
- monthFormat: {
- type: Function,
- default: null
- }
- },
- calendar: {
- type: {
- type: String,
- default: 'month'
- },
- value: {
- type: String,
- validate: _timestamp.validateTimestamp
- }
- }
- };
-
- function validateNumber(input) {
- return isFinite(parseInt(input));
- }
- //# sourceMappingURL=props.js.map
|