|
83 | 83 | DatepickerMenu, |
84 | 84 | }, |
85 | 85 | props: { |
86 | | - uid: { type: String as PropType<string>, default: 'dp' }, // connected |
87 | | - is24: { type: Boolean as PropType<boolean>, default: true }, // connected |
88 | | - enableTimePicker: { type: Boolean as PropType<boolean>, default: true }, // connected |
89 | | - locale: { type: String as PropType<string>, default: 'en-US' }, // partially connected |
90 | | - range: { type: Boolean as PropType<boolean>, default: false }, // connected |
91 | | - modelValue: { type: [String, Date, Array] as PropType<string | Date>, default: null }, // connected |
92 | | - position: { type: String as PropType<OpenPosition>, default: OpenPosition.center }, // connected |
93 | | - placeholder: { type: String as PropType<string>, default: null }, // connected |
94 | | - weekNumbers: { type: Boolean as PropType<boolean>, default: false }, // connected |
95 | | - dark: { type: Boolean as PropType<boolean>, default: false }, // connected |
96 | | - hoursIncrement: { type: [String, Number] as PropType<string | number>, default: 1 }, // connected |
97 | | - minutesIncrement: { type: [String, Number] as PropType<string | number>, default: 1 }, // connected |
98 | | - hoursGridIncrement: { type: [String, Number] as PropType<string | number>, default: 1 }, // connected |
99 | | - minutesGridIncrement: { type: [String, Number] as PropType<string | number>, default: 5 }, // connected |
100 | | - minDate: { type: [Date, String] as PropType<Date | string>, default: null }, // connected |
101 | | - maxDate: { type: [Date, String] as PropType<Date | string>, default: null }, // connected |
102 | | - minTime: { type: Object as PropType<ITimeRange>, default: () => ({}) }, // connected |
103 | | - maxTime: { type: Object as PropType<ITimeRange>, default: () => ({}) }, // connected |
104 | | - weekStart: { type: [String, Number] as PropType<string | number>, default: 1 }, // connected |
105 | | - disabled: { type: Boolean as PropType<boolean>, default: false }, // connected |
106 | | - readonly: { type: Boolean as PropType<boolean>, default: false }, // connected |
107 | | - weekNumName: { type: String as PropType<string>, default: 'W' }, // connected |
| 86 | + uid: { type: String as PropType<string>, default: 'dp' }, |
| 87 | + is24: { type: Boolean as PropType<boolean>, default: true }, |
| 88 | + enableTimePicker: { type: Boolean as PropType<boolean>, default: true }, |
| 89 | + locale: { type: String as PropType<string>, default: 'en-US' }, |
| 90 | + range: { type: Boolean as PropType<boolean>, default: false }, |
| 91 | + modelValue: { type: [String, Date, Array] as PropType<string | Date>, default: null }, |
| 92 | + position: { type: String as PropType<OpenPosition>, default: OpenPosition.center }, |
| 93 | + placeholder: { type: String as PropType<string>, default: null }, |
| 94 | + weekNumbers: { type: Boolean as PropType<boolean>, default: false }, |
| 95 | + dark: { type: Boolean as PropType<boolean>, default: false }, |
| 96 | + hoursIncrement: { type: [String, Number] as PropType<string | number>, default: 1 }, |
| 97 | + minutesIncrement: { type: [String, Number] as PropType<string | number>, default: 1 }, |
| 98 | + hoursGridIncrement: { type: [String, Number] as PropType<string | number>, default: 1 }, |
| 99 | + minutesGridIncrement: { type: [String, Number] as PropType<string | number>, default: 5 }, |
| 100 | + minDate: { type: [Date, String] as PropType<Date | string>, default: null }, |
| 101 | + maxDate: { type: [Date, String] as PropType<Date | string>, default: null }, |
| 102 | + minTime: { type: Object as PropType<ITimeRange>, default: () => ({}) }, |
| 103 | + maxTime: { type: Object as PropType<ITimeRange>, default: () => ({}) }, |
| 104 | + weekStart: { type: [String, Number] as PropType<string | number>, default: 1 }, |
| 105 | + disabled: { type: Boolean as PropType<boolean>, default: false }, |
| 106 | + readonly: { type: Boolean as PropType<boolean>, default: false }, |
| 107 | + weekNumName: { type: String as PropType<string>, default: 'W' }, |
108 | 108 | format: { |
109 | 109 | type: [Object, Function] as PropType<FormatOptions | ((date: Date | Date[]) => string)>, |
110 | 110 | default: () => ({}), |
111 | | - }, // connected |
| 111 | + }, |
112 | 112 | previewFormat: { |
113 | 113 | type: [Object, Function] as PropType<FormatOptions | ((date: Date | Date[]) => string)>, |
114 | 114 | default: () => ({}), |
115 | | - }, // connected |
116 | | - inputClassName: { type: String as PropType<string>, default: null }, // connected |
117 | | - menuClassName: { type: String as PropType<string>, default: null }, // connected |
118 | | - calendarClassName: { type: String as PropType<string>, default: null }, // connected |
119 | | - calendarCellClassName: { type: String as PropType<string>, default: null }, // connected |
120 | | - hideInputIcon: { type: Boolean as PropType<boolean>, default: false }, // connected |
121 | | - state: { type: Boolean as PropType<boolean>, default: null }, // connected |
122 | | - clearable: { type: Boolean as PropType<boolean>, default: true }, // connected |
| 115 | + }, |
| 116 | + inputClassName: { type: String as PropType<string>, default: null }, |
| 117 | + menuClassName: { type: String as PropType<string>, default: null }, |
| 118 | + calendarClassName: { type: String as PropType<string>, default: null }, |
| 119 | + calendarCellClassName: { type: String as PropType<string>, default: null }, |
| 120 | + hideInputIcon: { type: Boolean as PropType<boolean>, default: false }, |
| 121 | + state: { type: Boolean as PropType<boolean>, default: null }, |
| 122 | + clearable: { type: Boolean as PropType<boolean>, default: true }, |
123 | 123 | calendarBorder: { type: Boolean as PropType<boolean>, default: false }, |
124 | | - closeOnScroll: { type: Boolean as PropType<boolean>, default: true }, // connected |
125 | | - autoApply: { type: Boolean as PropType<boolean>, default: false }, // connected |
126 | | - filters: { type: Object as PropType<IDateFilter>, default: () => ({}) }, // connected |
127 | | - disableMonthYearSelect: { type: Boolean as PropType<boolean>, default: false }, // connected |
128 | | - yearRange: { type: Array as PropType<number[]>, default: () => [2000, 2050] }, // connected, todo - at the end increase range |
129 | | - disabledDates: { type: Array as PropType<Date[] | string[]>, default: () => [] }, // connected |
130 | | - inline: { type: Boolean as PropType<boolean>, default: false }, // connected |
131 | | - selectText: { type: String as PropType<string>, default: 'Select' }, // connected |
132 | | - cancelText: { type: String as PropType<string>, default: 'Cancel' }, // connected |
| 124 | + closeOnScroll: { type: Boolean as PropType<boolean>, default: true }, |
| 125 | + autoApply: { type: Boolean as PropType<boolean>, default: false }, |
| 126 | + filters: { type: Object as PropType<IDateFilter>, default: () => ({}) }, |
| 127 | + disableMonthYearSelect: { type: Boolean as PropType<boolean>, default: false }, |
| 128 | + yearRange: { type: Array as PropType<number[]>, default: () => [1970, 2100] }, |
| 129 | + disabledDates: { type: Array as PropType<Date[] | string[]>, default: () => [] }, |
| 130 | + inline: { type: Boolean as PropType<boolean>, default: false }, |
| 131 | + selectText: { type: String as PropType<string>, default: 'Select' }, |
| 132 | + cancelText: { type: String as PropType<string>, default: 'Cancel' }, |
133 | 133 | }, |
134 | 134 | setup(props: RDatepickerProps, { emit }) { |
135 | 135 | const isOpen = ref(false); |
|
0 commit comments