@coreui/vue-pro 4.10.4 → 5.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/calendar/CCalendar.d.ts +58 -32
- package/dist/components/calendar/utils.d.ts +11 -4
- package/dist/components/close-button/CCloseButton.d.ts +9 -0
- package/dist/components/date-picker/CDatePicker.d.ts +89 -0
- package/dist/components/date-range-picker/CDateRangePicker.d.ts +89 -0
- package/dist/components/dropdown/CDropdown.d.ts +13 -28
- package/dist/components/dropdown/CDropdownToggle.d.ts +19 -9
- package/dist/components/dropdown/types.d.ts +15 -0
- package/dist/components/dropdown/utils.d.ts +6 -0
- package/dist/components/form/CFormInput.d.ts +6 -18
- package/dist/components/modal/CModal.d.ts +19 -0
- package/dist/components/multi-select/CMultiSelect.d.ts +1 -1
- package/dist/components/multi-select/CMultiSelectSelection.d.ts +1 -1
- package/dist/components/multi-select/types.d.ts +2 -2
- package/dist/components/multi-select/utils.d.ts +2 -2
- package/dist/components/offcanvas/COffcanvas.d.ts +9 -0
- package/dist/components/progress/CProgress.d.ts +102 -3
- package/dist/components/progress/CProgressStacked.d.ts +10 -0
- package/dist/components/progress/index.d.ts +2 -1
- package/dist/components/smart-table/CSmartTable.d.ts +0 -4
- package/dist/components/smart-table/CSmartTableBody.d.ts +12 -1
- package/dist/components/smart-table/types.d.ts +2 -2
- package/dist/components/smart-table/utils.d.ts +4 -2
- package/dist/composables/index.d.ts +3 -1
- package/dist/composables/useDebouncedCallback.d.ts +1 -0
- package/dist/index.es.js +1142 -2823
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1143 -2821
- package/dist/index.js.map +1 -1
- package/package.json +14 -14
- package/src/components/breadcrumb/CBreadcrumb.ts +1 -0
- package/src/components/button/CButton.ts +5 -5
- package/src/components/calendar/CCalendar.ts +444 -179
- package/src/components/calendar/utils.ts +93 -55
- package/src/components/carousel/CCarousel.ts +2 -5
- package/src/components/close-button/CCloseButton.ts +5 -0
- package/src/components/date-picker/CDatePicker.ts +43 -0
- package/src/components/date-range-picker/CDateRangePicker.ts +140 -126
- package/src/components/date-range-picker/utils.ts +2 -2
- package/src/components/dropdown/CDropdown.ts +23 -43
- package/src/components/dropdown/CDropdownMenu.ts +4 -19
- package/src/components/dropdown/CDropdownToggle.ts +44 -38
- package/src/components/dropdown/types.ts +11 -0
- package/src/components/dropdown/utils.ts +71 -0
- package/src/components/form/CFormCheck.ts +1 -1
- package/src/components/modal/CModal.ts +15 -1
- package/src/components/multi-select/CMultiSelect.ts +68 -62
- package/src/components/multi-select/CMultiSelectOptions.ts +1 -1
- package/src/components/multi-select/CMultiSelectSelection.ts +14 -13
- package/src/components/multi-select/types.ts +2 -2
- package/src/components/multi-select/utils.ts +5 -5
- package/src/components/navbar/CNavbar.ts +1 -1
- package/src/components/offcanvas/COffcanvas.ts +6 -0
- package/src/components/picker/CPicker.ts +7 -22
- package/src/components/progress/CProgress.ts +67 -9
- package/src/components/progress/CProgressBar.ts +4 -6
- package/src/components/progress/CProgressStacked.ts +19 -0
- package/src/components/progress/index.ts +3 -1
- package/src/components/sidebar/CSidebar.ts +1 -1
- package/src/components/smart-table/CSmartTable.ts +17 -12
- package/src/components/smart-table/CSmartTableBody.ts +30 -31
- package/src/components/smart-table/CSmartTableHead.ts +34 -11
- package/src/components/smart-table/types.ts +2 -2
- package/src/components/smart-table/utils.ts +41 -5
- package/src/components/time-picker/CTimePicker.ts +34 -63
- package/src/components/tooltip/CTooltip.ts +1 -1
- package/src/components/widgets/CWidgetStatsA.ts +1 -3
- package/src/components/widgets/CWidgetStatsB.ts +2 -4
- package/src/components/widgets/CWidgetStatsC.ts +2 -2
- package/src/components/widgets/CWidgetStatsD.ts +1 -1
- package/src/components/widgets/CWidgetStatsE.ts +1 -1
- package/src/components/widgets/CWidgetStatsF.ts +1 -1
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.ts.snap +1 -1
- package/src/composables/index.ts +3 -1
- package/src/composables/useColorModes.ts +63 -0
- package/src/composables/useDebouncedCallback.ts +16 -0
- package/src/utils/getRTLPlacement.ts +1 -1
- package/src/utils/isObjectInArray.ts +1 -1
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
Several quick start options are available:
|
|
48
48
|
|
|
49
|
-
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/
|
|
49
|
+
- [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v5.0.0-alpha.1.zip)
|
|
50
50
|
- Clone the repo: `git clone https://github.com/coreui/coreui-vue-pro.git`
|
|
51
51
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue-pro`
|
|
52
52
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue-pro`
|
|
@@ -3,9 +3,7 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
3
3
|
/**
|
|
4
4
|
* Default date of the component
|
|
5
5
|
*/
|
|
6
|
-
calendarDate:
|
|
7
|
-
type: (StringConstructor | DateConstructor)[];
|
|
8
|
-
};
|
|
6
|
+
calendarDate: PropType<string | Date | null>;
|
|
9
7
|
/**
|
|
10
8
|
* The number of calendars that render on desktop devices.
|
|
11
9
|
*/
|
|
@@ -34,9 +32,7 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
34
32
|
/**
|
|
35
33
|
* Initial selected to date (range).
|
|
36
34
|
*/
|
|
37
|
-
endDate:
|
|
38
|
-
type: (StringConstructor | DateConstructor)[];
|
|
39
|
-
};
|
|
35
|
+
endDate: PropType<string | Date | null>;
|
|
40
36
|
/**
|
|
41
37
|
* Sets the day of start week.
|
|
42
38
|
* - 0 - Sunday,
|
|
@@ -61,15 +57,11 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
61
57
|
/**
|
|
62
58
|
* Max selectable date.
|
|
63
59
|
*/
|
|
64
|
-
maxDate:
|
|
65
|
-
type: (StringConstructor | DateConstructor)[];
|
|
66
|
-
};
|
|
60
|
+
maxDate: PropType<string | Date | null>;
|
|
67
61
|
/**
|
|
68
62
|
* Min selectable date.
|
|
69
63
|
*/
|
|
70
|
-
minDate:
|
|
71
|
-
type: (StringConstructor | DateConstructor)[];
|
|
72
|
-
};
|
|
64
|
+
minDate: PropType<string | Date | null>;
|
|
73
65
|
/**
|
|
74
66
|
* Show arrows navigation.
|
|
75
67
|
*/
|
|
@@ -97,6 +89,16 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
97
89
|
* @since 4.9.0
|
|
98
90
|
*/
|
|
99
91
|
selectAdjacementDays: BooleanConstructor;
|
|
92
|
+
/**
|
|
93
|
+
* Specify the type of date selection as day, week, month, or year.
|
|
94
|
+
*
|
|
95
|
+
* @since 5.0.0-alpha.1
|
|
96
|
+
*/
|
|
97
|
+
selectionType: {
|
|
98
|
+
type: PropType<"day" | "week" | "month" | "year">;
|
|
99
|
+
default: string;
|
|
100
|
+
validator: (value: string) => boolean;
|
|
101
|
+
};
|
|
100
102
|
/**
|
|
101
103
|
* Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
|
|
102
104
|
*
|
|
@@ -106,12 +108,16 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
106
108
|
type: BooleanConstructor;
|
|
107
109
|
default: boolean;
|
|
108
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Set whether to display week numbers in the calendar.
|
|
113
|
+
*
|
|
114
|
+
* @since 5.0.0-alpha.1
|
|
115
|
+
*/
|
|
116
|
+
showWeekNumber: BooleanConstructor;
|
|
109
117
|
/**
|
|
110
118
|
* Initial selected date.
|
|
111
119
|
*/
|
|
112
|
-
startDate:
|
|
113
|
-
type: (StringConstructor | DateConstructor)[];
|
|
114
|
-
};
|
|
120
|
+
startDate: PropType<string | Date | null>;
|
|
115
121
|
/**
|
|
116
122
|
* Set length or format of day name.
|
|
117
123
|
*
|
|
@@ -122,15 +128,19 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
122
128
|
default: number;
|
|
123
129
|
validator: (value: string | number) => boolean;
|
|
124
130
|
};
|
|
131
|
+
/**
|
|
132
|
+
* Label displayed over week numbers in the calendar.
|
|
133
|
+
*
|
|
134
|
+
* @since 5.0.0-alpha.1
|
|
135
|
+
*/
|
|
136
|
+
weekNumbersLabel: StringConstructor;
|
|
125
137
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
126
138
|
[key: string]: any;
|
|
127
|
-
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
139
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("date-hover" | "calendar-date-change" | "start-date-change" | "end-date-change")[], "date-hover" | "calendar-date-change" | "start-date-change" | "end-date-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
128
140
|
/**
|
|
129
141
|
* Default date of the component
|
|
130
142
|
*/
|
|
131
|
-
calendarDate:
|
|
132
|
-
type: (StringConstructor | DateConstructor)[];
|
|
133
|
-
};
|
|
143
|
+
calendarDate: PropType<string | Date | null>;
|
|
134
144
|
/**
|
|
135
145
|
* The number of calendars that render on desktop devices.
|
|
136
146
|
*/
|
|
@@ -159,9 +169,7 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
159
169
|
/**
|
|
160
170
|
* Initial selected to date (range).
|
|
161
171
|
*/
|
|
162
|
-
endDate:
|
|
163
|
-
type: (StringConstructor | DateConstructor)[];
|
|
164
|
-
};
|
|
172
|
+
endDate: PropType<string | Date | null>;
|
|
165
173
|
/**
|
|
166
174
|
* Sets the day of start week.
|
|
167
175
|
* - 0 - Sunday,
|
|
@@ -186,15 +194,11 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
186
194
|
/**
|
|
187
195
|
* Max selectable date.
|
|
188
196
|
*/
|
|
189
|
-
maxDate:
|
|
190
|
-
type: (StringConstructor | DateConstructor)[];
|
|
191
|
-
};
|
|
197
|
+
maxDate: PropType<string | Date | null>;
|
|
192
198
|
/**
|
|
193
199
|
* Min selectable date.
|
|
194
200
|
*/
|
|
195
|
-
minDate:
|
|
196
|
-
type: (StringConstructor | DateConstructor)[];
|
|
197
|
-
};
|
|
201
|
+
minDate: PropType<string | Date | null>;
|
|
198
202
|
/**
|
|
199
203
|
* Show arrows navigation.
|
|
200
204
|
*/
|
|
@@ -222,6 +226,16 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
222
226
|
* @since 4.9.0
|
|
223
227
|
*/
|
|
224
228
|
selectAdjacementDays: BooleanConstructor;
|
|
229
|
+
/**
|
|
230
|
+
* Specify the type of date selection as day, week, month, or year.
|
|
231
|
+
*
|
|
232
|
+
* @since 5.0.0-alpha.1
|
|
233
|
+
*/
|
|
234
|
+
selectionType: {
|
|
235
|
+
type: PropType<"day" | "week" | "month" | "year">;
|
|
236
|
+
default: string;
|
|
237
|
+
validator: (value: string) => boolean;
|
|
238
|
+
};
|
|
225
239
|
/**
|
|
226
240
|
* Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
|
|
227
241
|
*
|
|
@@ -231,12 +245,16 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
231
245
|
type: BooleanConstructor;
|
|
232
246
|
default: boolean;
|
|
233
247
|
};
|
|
248
|
+
/**
|
|
249
|
+
* Set whether to display week numbers in the calendar.
|
|
250
|
+
*
|
|
251
|
+
* @since 5.0.0-alpha.1
|
|
252
|
+
*/
|
|
253
|
+
showWeekNumber: BooleanConstructor;
|
|
234
254
|
/**
|
|
235
255
|
* Initial selected date.
|
|
236
256
|
*/
|
|
237
|
-
startDate:
|
|
238
|
-
type: (StringConstructor | DateConstructor)[];
|
|
239
|
-
};
|
|
257
|
+
startDate: PropType<string | Date | null>;
|
|
240
258
|
/**
|
|
241
259
|
* Set length or format of day name.
|
|
242
260
|
*
|
|
@@ -247,8 +265,14 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
247
265
|
default: number;
|
|
248
266
|
validator: (value: string | number) => boolean;
|
|
249
267
|
};
|
|
268
|
+
/**
|
|
269
|
+
* Label displayed over week numbers in the calendar.
|
|
270
|
+
*
|
|
271
|
+
* @since 5.0.0-alpha.1
|
|
272
|
+
*/
|
|
273
|
+
weekNumbersLabel: StringConstructor;
|
|
250
274
|
}>> & {
|
|
251
|
-
"
|
|
275
|
+
"onDate-hover"?: ((...args: any[]) => any) | undefined;
|
|
252
276
|
"onCalendar-date-change"?: ((...args: any[]) => any) | undefined;
|
|
253
277
|
"onStart-date-change"?: ((...args: any[]) => any) | undefined;
|
|
254
278
|
"onEnd-date-change"?: ((...args: any[]) => any) | undefined;
|
|
@@ -262,7 +286,9 @@ declare const CCalendar: import("vue").DefineComponent<{
|
|
|
262
286
|
range: boolean;
|
|
263
287
|
selectEndDate: boolean;
|
|
264
288
|
selectAdjacementDays: boolean;
|
|
289
|
+
selectionType: "day" | "week" | "month" | "year";
|
|
265
290
|
showAdjacementDays: boolean;
|
|
291
|
+
showWeekNumber: boolean;
|
|
266
292
|
weekdayFormat: string | number | Function;
|
|
267
293
|
}, {}>;
|
|
268
294
|
export { CCalendar };
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
+
export declare const convertIsoWeekToDate: (isoWeek: string) => Date;
|
|
2
|
+
export declare const convertToDateObject: (date: Date | string | null, selectionType?: 'day' | 'week' | 'month' | 'year') => Date;
|
|
1
3
|
export declare const convertToLocalDate: (d: Date, locale: string, options?: {}) => string;
|
|
2
4
|
export declare const convertToLocalTime: (d: Date, locale: string, options?: {}) => string;
|
|
3
5
|
export declare const createGroupsInArray: <T>(arr: T[], numberOfGroups: number) => T[][];
|
|
6
|
+
export declare const getCalendarDate: (calendarDate: Date, order: number, view: 'days' | 'months' | 'years') => Date;
|
|
4
7
|
export declare const getCurrentYear: () => number;
|
|
5
8
|
export declare const getCurrentMonth: () => number;
|
|
6
|
-
export declare const
|
|
9
|
+
export declare const getDateBySelectionType: (date: Date | null, selectionType: 'day' | 'week' | 'month' | 'year') => string | Date | null;
|
|
7
10
|
export declare const getMonthName: (month: number, locale: string) => string;
|
|
8
11
|
export declare const getMonthsNames: (locale: string) => string[];
|
|
9
12
|
export declare const getYears: (year: number) => number[];
|
|
13
|
+
export declare const getWeekNumber: (date: Date) => number;
|
|
10
14
|
export declare const getMonthDetails: (year: number, month: number, firstDayOfWeek: number) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
weekNumber?: number | undefined;
|
|
16
|
+
days: {
|
|
17
|
+
date: Date;
|
|
18
|
+
month: string;
|
|
19
|
+
}[];
|
|
20
|
+
}[];
|
|
14
21
|
export declare const isDisableDateInRange: (startDate?: Date | null, endDate?: Date | null, dates?: Date[] | Date[][] | (Date | Date[])[]) => boolean;
|
|
15
22
|
export declare const isDateDisabled: (date: Date, min?: Date | null, max?: Date | null, dates?: Date[] | Date[][] | (Date | Date[])[]) => boolean | undefined;
|
|
16
23
|
export declare const isDateInRange: (date: Date, start: Date | null, end: Date | null) => boolean | null;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const CCloseButton: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* Invert the default color.
|
|
4
|
+
*/
|
|
5
|
+
dark: BooleanConstructor;
|
|
2
6
|
/**
|
|
3
7
|
* Toggle the disabled state for the component.
|
|
4
8
|
*/
|
|
@@ -10,6 +14,10 @@ export declare const CCloseButton: import("vue").DefineComponent<{
|
|
|
10
14
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
15
|
[key: string]: any;
|
|
12
16
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
/**
|
|
18
|
+
* Invert the default color.
|
|
19
|
+
*/
|
|
20
|
+
dark: BooleanConstructor;
|
|
13
21
|
/**
|
|
14
22
|
* Toggle the disabled state for the component.
|
|
15
23
|
*/
|
|
@@ -21,6 +29,7 @@ export declare const CCloseButton: import("vue").DefineComponent<{
|
|
|
21
29
|
}>> & {
|
|
22
30
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
23
31
|
}, {
|
|
32
|
+
dark: boolean;
|
|
24
33
|
disabled: boolean;
|
|
25
34
|
white: boolean;
|
|
26
35
|
}, {}>;
|
|
@@ -156,6 +156,27 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
156
156
|
* Toggle the readonly state for the component.
|
|
157
157
|
*/
|
|
158
158
|
inputReadOnly: BooleanConstructor;
|
|
159
|
+
/**
|
|
160
|
+
* Custom function to format the selected date into a string according to a custom format.
|
|
161
|
+
*
|
|
162
|
+
* @since v5.0.0-alpha.4
|
|
163
|
+
*/
|
|
164
|
+
inputDateFormat: FunctionConstructor;
|
|
165
|
+
/**
|
|
166
|
+
* Custom function to parse the input value into a valid Date object.
|
|
167
|
+
*
|
|
168
|
+
* @since v5.0.0-alpha.4
|
|
169
|
+
*/
|
|
170
|
+
inputDateParse: FunctionConstructor;
|
|
171
|
+
/**
|
|
172
|
+
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
173
|
+
*
|
|
174
|
+
* @since v5.0.0-alpha.4
|
|
175
|
+
*/
|
|
176
|
+
inputOnChangeDelay: {
|
|
177
|
+
type: NumberConstructor;
|
|
178
|
+
default: number;
|
|
179
|
+
};
|
|
159
180
|
/**
|
|
160
181
|
* Sets the default locale for components. If not set, it is inherited from the navigator.language.
|
|
161
182
|
*/
|
|
@@ -201,6 +222,16 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
201
222
|
* @since 4.9.0
|
|
202
223
|
*/
|
|
203
224
|
selectAdjacementDays: BooleanConstructor;
|
|
225
|
+
/**
|
|
226
|
+
* Specify the type of date selection as day, week, month, or year.
|
|
227
|
+
*
|
|
228
|
+
* @since 5.0.0-alpha.1
|
|
229
|
+
*/
|
|
230
|
+
selectionType: {
|
|
231
|
+
type: PropType<"day" | "week" | "month" | "year">;
|
|
232
|
+
default: string;
|
|
233
|
+
validator: (value: string) => boolean;
|
|
234
|
+
};
|
|
204
235
|
/**
|
|
205
236
|
* Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
|
|
206
237
|
*
|
|
@@ -210,6 +241,12 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
210
241
|
type: BooleanConstructor;
|
|
211
242
|
default: boolean;
|
|
212
243
|
};
|
|
244
|
+
/**
|
|
245
|
+
* Set whether to display week numbers in the calendar.
|
|
246
|
+
*
|
|
247
|
+
* @since 5.0.0-alpha.1
|
|
248
|
+
*/
|
|
249
|
+
showWeekNumber: BooleanConstructor;
|
|
213
250
|
/**
|
|
214
251
|
* Size the component small or large.
|
|
215
252
|
*
|
|
@@ -234,6 +271,12 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
234
271
|
default: number;
|
|
235
272
|
validator: (value: string | number) => boolean;
|
|
236
273
|
};
|
|
274
|
+
/**
|
|
275
|
+
* Label displayed over week numbers in the calendar.
|
|
276
|
+
*
|
|
277
|
+
* @since 5.0.0-alpha.1
|
|
278
|
+
*/
|
|
279
|
+
weekNumbersLabel: StringConstructor;
|
|
237
280
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
238
281
|
[key: string]: any;
|
|
239
282
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("date-change" | "update:date")[], "date-change" | "update:date", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -393,6 +436,27 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
393
436
|
* Toggle the readonly state for the component.
|
|
394
437
|
*/
|
|
395
438
|
inputReadOnly: BooleanConstructor;
|
|
439
|
+
/**
|
|
440
|
+
* Custom function to format the selected date into a string according to a custom format.
|
|
441
|
+
*
|
|
442
|
+
* @since v5.0.0-alpha.4
|
|
443
|
+
*/
|
|
444
|
+
inputDateFormat: FunctionConstructor;
|
|
445
|
+
/**
|
|
446
|
+
* Custom function to parse the input value into a valid Date object.
|
|
447
|
+
*
|
|
448
|
+
* @since v5.0.0-alpha.4
|
|
449
|
+
*/
|
|
450
|
+
inputDateParse: FunctionConstructor;
|
|
451
|
+
/**
|
|
452
|
+
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
453
|
+
*
|
|
454
|
+
* @since v5.0.0-alpha.4
|
|
455
|
+
*/
|
|
456
|
+
inputOnChangeDelay: {
|
|
457
|
+
type: NumberConstructor;
|
|
458
|
+
default: number;
|
|
459
|
+
};
|
|
396
460
|
/**
|
|
397
461
|
* Sets the default locale for components. If not set, it is inherited from the navigator.language.
|
|
398
462
|
*/
|
|
@@ -438,6 +502,16 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
438
502
|
* @since 4.9.0
|
|
439
503
|
*/
|
|
440
504
|
selectAdjacementDays: BooleanConstructor;
|
|
505
|
+
/**
|
|
506
|
+
* Specify the type of date selection as day, week, month, or year.
|
|
507
|
+
*
|
|
508
|
+
* @since 5.0.0-alpha.1
|
|
509
|
+
*/
|
|
510
|
+
selectionType: {
|
|
511
|
+
type: PropType<"day" | "week" | "month" | "year">;
|
|
512
|
+
default: string;
|
|
513
|
+
validator: (value: string) => boolean;
|
|
514
|
+
};
|
|
441
515
|
/**
|
|
442
516
|
* Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
|
|
443
517
|
*
|
|
@@ -447,6 +521,12 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
447
521
|
type: BooleanConstructor;
|
|
448
522
|
default: boolean;
|
|
449
523
|
};
|
|
524
|
+
/**
|
|
525
|
+
* Set whether to display week numbers in the calendar.
|
|
526
|
+
*
|
|
527
|
+
* @since 5.0.0-alpha.1
|
|
528
|
+
*/
|
|
529
|
+
showWeekNumber: BooleanConstructor;
|
|
450
530
|
/**
|
|
451
531
|
* Size the component small or large.
|
|
452
532
|
*
|
|
@@ -471,6 +551,12 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
471
551
|
default: number;
|
|
472
552
|
validator: (value: string | number) => boolean;
|
|
473
553
|
};
|
|
554
|
+
/**
|
|
555
|
+
* Label displayed over week numbers in the calendar.
|
|
556
|
+
*
|
|
557
|
+
* @since 5.0.0-alpha.1
|
|
558
|
+
*/
|
|
559
|
+
weekNumbersLabel: StringConstructor;
|
|
474
560
|
}>> & {
|
|
475
561
|
"onDate-change"?: ((...args: any[]) => any) | undefined;
|
|
476
562
|
"onUpdate:date"?: ((...args: any[]) => any) | undefined;
|
|
@@ -482,7 +568,9 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
482
568
|
navigation: boolean;
|
|
483
569
|
navYearFirst: boolean;
|
|
484
570
|
selectAdjacementDays: boolean;
|
|
571
|
+
selectionType: "day" | "week" | "month" | "year";
|
|
485
572
|
showAdjacementDays: boolean;
|
|
573
|
+
showWeekNumber: boolean;
|
|
486
574
|
weekdayFormat: string | number | Function;
|
|
487
575
|
footer: boolean;
|
|
488
576
|
cancelButton: string | boolean;
|
|
@@ -496,6 +584,7 @@ declare const CDatePicker: import("vue").DefineComponent<{
|
|
|
496
584
|
indicator: boolean;
|
|
497
585
|
inputReadOnly: boolean;
|
|
498
586
|
placeholder: string;
|
|
587
|
+
inputOnChangeDelay: number;
|
|
499
588
|
timepicker: boolean;
|
|
500
589
|
}, {}>;
|
|
501
590
|
export { CDatePicker };
|
|
@@ -184,6 +184,27 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
184
184
|
* Toggle the readonly state for the component.
|
|
185
185
|
*/
|
|
186
186
|
inputReadOnly: BooleanConstructor;
|
|
187
|
+
/**
|
|
188
|
+
* Custom function to format the selected date into a string according to a custom format.
|
|
189
|
+
*
|
|
190
|
+
* @since v5.0.0-alpha.4
|
|
191
|
+
*/
|
|
192
|
+
inputDateFormat: FunctionConstructor;
|
|
193
|
+
/**
|
|
194
|
+
* Custom function to parse the input value into a valid Date object.
|
|
195
|
+
*
|
|
196
|
+
* @since v5.0.0-alpha.4
|
|
197
|
+
*/
|
|
198
|
+
inputDateParse: FunctionConstructor;
|
|
199
|
+
/**
|
|
200
|
+
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
201
|
+
*
|
|
202
|
+
* @since v5.0.0-alpha.4
|
|
203
|
+
*/
|
|
204
|
+
inputOnChangeDelay: {
|
|
205
|
+
type: NumberConstructor;
|
|
206
|
+
default: number;
|
|
207
|
+
};
|
|
187
208
|
/**
|
|
188
209
|
* Set component validation state to invalid.
|
|
189
210
|
*
|
|
@@ -261,6 +282,16 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
261
282
|
* @since 4.9.0
|
|
262
283
|
*/
|
|
263
284
|
selectAdjacementDays: BooleanConstructor;
|
|
285
|
+
/**
|
|
286
|
+
* Specify the type of date selection as day, week, month, or year.
|
|
287
|
+
*
|
|
288
|
+
* @since 5.0.0-alpha.1
|
|
289
|
+
*/
|
|
290
|
+
selectionType: {
|
|
291
|
+
type: PropType<"day" | "week" | "month" | "year">;
|
|
292
|
+
default: string;
|
|
293
|
+
validator: (value: string) => boolean;
|
|
294
|
+
};
|
|
264
295
|
/**
|
|
265
296
|
* Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
|
|
266
297
|
*
|
|
@@ -270,6 +301,12 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
270
301
|
type: BooleanConstructor;
|
|
271
302
|
default: boolean;
|
|
272
303
|
};
|
|
304
|
+
/**
|
|
305
|
+
* Set whether to display week numbers in the calendar.
|
|
306
|
+
*
|
|
307
|
+
* @since 5.0.0-alpha.1
|
|
308
|
+
*/
|
|
309
|
+
showWeekNumber: BooleanConstructor;
|
|
273
310
|
/**
|
|
274
311
|
* Default icon or character character that separates two dates.
|
|
275
312
|
*/
|
|
@@ -366,6 +403,12 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
366
403
|
default: number;
|
|
367
404
|
validator: (value: string | number) => boolean;
|
|
368
405
|
};
|
|
406
|
+
/**
|
|
407
|
+
* Label displayed over week numbers in the calendar.
|
|
408
|
+
*
|
|
409
|
+
* @since 5.0.0-alpha.1
|
|
410
|
+
*/
|
|
411
|
+
weekNumbersLabel: StringConstructor;
|
|
369
412
|
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
370
413
|
[key: string]: any;
|
|
371
414
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show" | "start-date-change" | "end-date-change" | "update:start-date" | "update:end-date")[], "hide" | "show" | "start-date-change" | "end-date-change" | "update:start-date" | "update:end-date", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -553,6 +596,27 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
553
596
|
* Toggle the readonly state for the component.
|
|
554
597
|
*/
|
|
555
598
|
inputReadOnly: BooleanConstructor;
|
|
599
|
+
/**
|
|
600
|
+
* Custom function to format the selected date into a string according to a custom format.
|
|
601
|
+
*
|
|
602
|
+
* @since v5.0.0-alpha.4
|
|
603
|
+
*/
|
|
604
|
+
inputDateFormat: FunctionConstructor;
|
|
605
|
+
/**
|
|
606
|
+
* Custom function to parse the input value into a valid Date object.
|
|
607
|
+
*
|
|
608
|
+
* @since v5.0.0-alpha.4
|
|
609
|
+
*/
|
|
610
|
+
inputDateParse: FunctionConstructor;
|
|
611
|
+
/**
|
|
612
|
+
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
613
|
+
*
|
|
614
|
+
* @since v5.0.0-alpha.4
|
|
615
|
+
*/
|
|
616
|
+
inputOnChangeDelay: {
|
|
617
|
+
type: NumberConstructor;
|
|
618
|
+
default: number;
|
|
619
|
+
};
|
|
556
620
|
/**
|
|
557
621
|
* Set component validation state to invalid.
|
|
558
622
|
*
|
|
@@ -630,6 +694,16 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
630
694
|
* @since 4.9.0
|
|
631
695
|
*/
|
|
632
696
|
selectAdjacementDays: BooleanConstructor;
|
|
697
|
+
/**
|
|
698
|
+
* Specify the type of date selection as day, week, month, or year.
|
|
699
|
+
*
|
|
700
|
+
* @since 5.0.0-alpha.1
|
|
701
|
+
*/
|
|
702
|
+
selectionType: {
|
|
703
|
+
type: PropType<"day" | "week" | "month" | "year">;
|
|
704
|
+
default: string;
|
|
705
|
+
validator: (value: string) => boolean;
|
|
706
|
+
};
|
|
633
707
|
/**
|
|
634
708
|
* Set whether to display dates in adjacent months (non-selectable) at the start and end of the current month.
|
|
635
709
|
*
|
|
@@ -639,6 +713,12 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
639
713
|
type: BooleanConstructor;
|
|
640
714
|
default: boolean;
|
|
641
715
|
};
|
|
716
|
+
/**
|
|
717
|
+
* Set whether to display week numbers in the calendar.
|
|
718
|
+
*
|
|
719
|
+
* @since 5.0.0-alpha.1
|
|
720
|
+
*/
|
|
721
|
+
showWeekNumber: BooleanConstructor;
|
|
642
722
|
/**
|
|
643
723
|
* Default icon or character character that separates two dates.
|
|
644
724
|
*/
|
|
@@ -735,6 +815,12 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
735
815
|
default: number;
|
|
736
816
|
validator: (value: string | number) => boolean;
|
|
737
817
|
};
|
|
818
|
+
/**
|
|
819
|
+
* Label displayed over week numbers in the calendar.
|
|
820
|
+
*
|
|
821
|
+
* @since 5.0.0-alpha.1
|
|
822
|
+
*/
|
|
823
|
+
weekNumbersLabel: StringConstructor;
|
|
738
824
|
}>> & {
|
|
739
825
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
740
826
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
@@ -755,7 +841,9 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
755
841
|
range: boolean;
|
|
756
842
|
selectEndDate: boolean;
|
|
757
843
|
selectAdjacementDays: boolean;
|
|
844
|
+
selectionType: "day" | "week" | "month" | "year";
|
|
758
845
|
showAdjacementDays: boolean;
|
|
846
|
+
showWeekNumber: boolean;
|
|
759
847
|
weekdayFormat: string | number | Function;
|
|
760
848
|
required: boolean;
|
|
761
849
|
footer: boolean;
|
|
@@ -773,6 +861,7 @@ declare const CDateRangePicker: import("vue").DefineComponent<{
|
|
|
773
861
|
inputReadOnly: boolean;
|
|
774
862
|
placeholder: string | string[];
|
|
775
863
|
closeOnSelect: boolean;
|
|
864
|
+
inputOnChangeDelay: number;
|
|
776
865
|
separator: boolean;
|
|
777
866
|
timepicker: boolean;
|
|
778
867
|
todayButton: string | boolean;
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import type { Placement } from '@popperjs/core';
|
|
3
3
|
import type { Triggers } from '../../types';
|
|
4
|
-
export type Directions = 'start' | 'end';
|
|
5
|
-
export type Breakpoints = {
|
|
6
|
-
xs: Directions;
|
|
7
|
-
} | {
|
|
8
|
-
sm: Directions;
|
|
9
|
-
} | {
|
|
10
|
-
md: Directions;
|
|
11
|
-
} | {
|
|
12
|
-
lg: Directions;
|
|
13
|
-
} | {
|
|
14
|
-
xl: Directions;
|
|
15
|
-
} | {
|
|
16
|
-
xxl: Directions;
|
|
17
|
-
};
|
|
18
|
-
export type Alignments = Directions | Breakpoints;
|
|
19
4
|
declare const CDropdown: import("vue").DefineComponent<{
|
|
20
5
|
/**
|
|
21
6
|
* Set aligment of dropdown menu.
|
|
@@ -24,17 +9,17 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
24
9
|
*/
|
|
25
10
|
alignment: {
|
|
26
11
|
type: PropType<string | {
|
|
27
|
-
xs: Directions;
|
|
12
|
+
xs: import("./types").Directions;
|
|
28
13
|
} | {
|
|
29
|
-
sm: Directions;
|
|
14
|
+
sm: import("./types").Directions;
|
|
30
15
|
} | {
|
|
31
|
-
md: Directions;
|
|
16
|
+
md: import("./types").Directions;
|
|
32
17
|
} | {
|
|
33
|
-
lg: Directions;
|
|
18
|
+
lg: import("./types").Directions;
|
|
34
19
|
} | {
|
|
35
|
-
xl: Directions;
|
|
20
|
+
xl: import("./types").Directions;
|
|
36
21
|
} | {
|
|
37
|
-
xxl: Directions;
|
|
22
|
+
xxl: import("./types").Directions;
|
|
38
23
|
}>;
|
|
39
24
|
validator: (value: string | any) => boolean;
|
|
40
25
|
};
|
|
@@ -125,17 +110,17 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
125
110
|
*/
|
|
126
111
|
alignment: {
|
|
127
112
|
type: PropType<string | {
|
|
128
|
-
xs: Directions;
|
|
113
|
+
xs: import("./types").Directions;
|
|
129
114
|
} | {
|
|
130
|
-
sm: Directions;
|
|
115
|
+
sm: import("./types").Directions;
|
|
131
116
|
} | {
|
|
132
|
-
md: Directions;
|
|
117
|
+
md: import("./types").Directions;
|
|
133
118
|
} | {
|
|
134
|
-
lg: Directions;
|
|
119
|
+
lg: import("./types").Directions;
|
|
135
120
|
} | {
|
|
136
|
-
xl: Directions;
|
|
121
|
+
xl: import("./types").Directions;
|
|
137
122
|
} | {
|
|
138
|
-
xxl: Directions;
|
|
123
|
+
xxl: import("./types").Directions;
|
|
139
124
|
}>;
|
|
140
125
|
validator: (value: string | any) => boolean;
|
|
141
126
|
};
|
|
@@ -219,8 +204,8 @@ declare const CDropdown: import("vue").DefineComponent<{
|
|
|
219
204
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
220
205
|
}, {
|
|
221
206
|
visible: boolean;
|
|
222
|
-
disabled: boolean;
|
|
223
207
|
dark: boolean;
|
|
208
|
+
disabled: boolean;
|
|
224
209
|
variant: string;
|
|
225
210
|
placement: Placement;
|
|
226
211
|
offset: unknown[];
|