@rebilly/revel 4.21.3 → 5.0.0
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/CHANGELOG.md +22 -47
- package/README.md +23 -14
- package/dist/common/date-picker-compat.d.ts +1 -0
- package/dist/common/datetime-formats.d.ts +28 -0
- package/dist/common/helpers/debounce.d.ts +2 -0
- package/dist/common/helpers/deep-clone.d.ts +2 -0
- package/dist/common/helpers/format-date.d.ts +4 -0
- package/dist/common/helpers/index.d.ts +6 -0
- package/dist/common/helpers/is-object.d.ts +2 -0
- package/dist/common/helpers/kebab-case.d.ts +2 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/r-avatar/r-avatar.vue.d.ts +86 -0
- package/dist/components/r-badge/r-badge.vue.d.ts +40 -0
- package/dist/components/r-button/r-button.vue.d.ts +195 -0
- package/dist/components/r-button-group/r-button-group.vue.d.ts +18 -0
- package/dist/components/r-checkbox/r-checkbox.vue.d.ts +148 -0
- package/dist/components/r-date-input/calendar-presets.d.ts +36 -0
- package/dist/components/r-date-input/r-calendar.vue.d.ts +159 -0
- package/dist/components/r-date-input/r-date-input.vue.d.ts +297 -0
- package/dist/components/r-date-input/r-date-range-button-group.vue.d.ts +167 -0
- package/dist/components/r-date-input/r-range-calendar.vue.d.ts +211 -0
- package/dist/components/r-date-input/shared-calendar-options.d.ts +64 -0
- package/dist/components/r-date-input/types.d.ts +8 -0
- package/dist/components/r-date-input/v-calendar.es.d.ts +459 -0
- package/dist/components/r-file-upload/r-file-upload.vue.d.ts +68 -0
- package/dist/components/r-grid/columnTypes/badge.vue.d.ts +42 -0
- package/dist/components/r-grid/columnTypes/date.vue.d.ts +25 -0
- package/dist/components/r-grid/columnTypes/index.d.ts +93 -0
- package/dist/components/r-grid/columnTypes/numeric.vue.d.ts +24 -0
- package/dist/components/r-grid/columnTypes/text.vue.d.ts +26 -0
- package/dist/components/r-grid/columnTypes/types.d.ts +24 -0
- package/dist/components/r-grid/helpers/color-generator.d.ts +4 -0
- package/dist/components/r-grid/r-grid.vue.d.ts +196 -0
- package/dist/components/r-icon/r-icon-sprites.d.ts +128 -0
- package/dist/components/r-icon/r-icon.vue.d.ts +61 -0
- package/dist/components/r-icon-button/r-icon-button.vue.d.ts +133 -0
- package/dist/components/r-img/r-img.vue.d.ts +96 -0
- package/dist/components/r-input/r-input.vue.d.ts +411 -0
- package/dist/components/r-loader/r-loader.vue.d.ts +55 -0
- package/dist/components/r-modal/r-modal.vue.d.ts +132 -0
- package/dist/components/r-month-picker/months.d.ts +1 -0
- package/dist/components/r-month-picker/r-month-picker.vue.d.ts +122 -0
- package/dist/components/r-pagination/r-pagination.vue.d.ts +97 -0
- package/dist/components/r-pagination/types.d.ts +8 -0
- package/dist/components/r-pagination-control/r-pagination-control.vue.d.ts +33 -0
- package/dist/components/r-popper/r-popper.vue.d.ts +275 -0
- package/dist/components/r-radio/r-radio.vue.d.ts +132 -0
- package/dist/components/r-repeater/r-repeater.vue.d.ts +58 -0
- package/dist/components/r-select/async-extension.d.ts +91 -0
- package/dist/components/r-select/r-select.vue.d.ts +733 -0
- package/dist/components/r-select/types.d.ts +29 -0
- package/dist/components/r-tabs/r-tab.vue.d.ts +70 -0
- package/dist/components/r-tabs/r-tabs.vue.d.ts +6983 -0
- package/dist/components/r-tabs/types.d.ts +23 -0
- package/dist/components/r-tile/r-tile.vue.d.ts +2 -0
- package/dist/components/r-toast/default-error-handler.d.ts +4 -0
- package/dist/components/r-toast/r-toast-manager.d.ts +17 -0
- package/dist/components/r-toast/r-toast.vue.d.ts +141 -0
- package/dist/components/r-toast/types.d.ts +19 -0
- package/dist/components/r-toggle/r-toggle.vue.d.ts +69 -0
- package/dist/directives/index.d.ts +8 -0
- package/dist/directives/r-click-outside/r-click-outside.d.ts +10 -0
- package/dist/directives/r-content/r-content.d.ts +9 -0
- package/dist/directives/r-fs-exclude.d.ts +7 -0
- package/dist/directives/r-lazy.d.ts +5 -0
- package/dist/directives/r-tooltip/r-tooltip.d.ts +12 -0
- package/dist/index.d.ts +20 -0
- package/dist/playground/Playground-copyme.vue.d.ts +2 -0
- package/dist/playground/main.d.ts +1 -0
- package/dist/revel.mjs +5577 -4744
- package/dist/revel.umd.js +115 -115
- package/dist/style.css +1 -1
- package/dist/styles/config.d.ts +32 -0
- package/dist/styles/index.d.ts +5 -0
- package/dist/styles/tokens.d.ts +130 -0
- package/dist/types.d.ts +24 -0
- package/package.json +107 -85
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { DateRange } from './types';
|
|
3
|
+
import type { Optional, ValidationState } from '../../types';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
/**
|
|
6
|
+
* Label for the date picker
|
|
7
|
+
*/
|
|
8
|
+
label: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Unique id of the date picker
|
|
14
|
+
*/
|
|
15
|
+
id: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: () => string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* A text to describe the date picker
|
|
21
|
+
*/
|
|
22
|
+
caption: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Used to specify selected dates
|
|
28
|
+
* @model
|
|
29
|
+
*/
|
|
30
|
+
modelValue: {
|
|
31
|
+
type: (StringConstructor | ObjectConstructor | DateConstructor)[];
|
|
32
|
+
default: () => Date;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Disable
|
|
36
|
+
*/
|
|
37
|
+
disabled: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Validation result sent by Vuelidate
|
|
43
|
+
*/
|
|
44
|
+
validate: {
|
|
45
|
+
type: PropType<ValidationState>;
|
|
46
|
+
default: null;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Time zone
|
|
50
|
+
*/
|
|
51
|
+
timezone: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Available dates
|
|
57
|
+
*/
|
|
58
|
+
availableDates: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
default: null;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Columns
|
|
64
|
+
*/
|
|
65
|
+
columns: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Time picker used by RDateRangeButtonGroup to include time in ranges
|
|
71
|
+
*/
|
|
72
|
+
timePicker: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Time picker
|
|
78
|
+
*/
|
|
79
|
+
placeholder: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Min date
|
|
85
|
+
*/
|
|
86
|
+
minDate: {
|
|
87
|
+
type: (StringConstructor | ObjectConstructor | DateConstructor)[];
|
|
88
|
+
default: null;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Max date
|
|
92
|
+
*/
|
|
93
|
+
maxDate: {
|
|
94
|
+
type: (StringConstructor | ObjectConstructor | DateConstructor)[];
|
|
95
|
+
default: null;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Type
|
|
99
|
+
*/
|
|
100
|
+
type: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
default: string;
|
|
103
|
+
validator: (type: string) => boolean;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Define if the time format is 24H
|
|
107
|
+
*/
|
|
108
|
+
is24hr: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Placement
|
|
114
|
+
*/
|
|
115
|
+
placement: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* v-calendar uses Internationalization API by default but we can explicitly specify a locale with this prop
|
|
121
|
+
* See https://vcalendar.io/i18n.html#string-locales
|
|
122
|
+
*/
|
|
123
|
+
locale: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: null;
|
|
126
|
+
};
|
|
127
|
+
}, unknown, unknown, {
|
|
128
|
+
isInvalid(): boolean;
|
|
129
|
+
isDateRange(): boolean;
|
|
130
|
+
commonAttrs(): {
|
|
131
|
+
id: string;
|
|
132
|
+
name: string;
|
|
133
|
+
minDate: string | Record<string, any> | Date;
|
|
134
|
+
maxDate: string | Record<string, any> | Date;
|
|
135
|
+
columns: number;
|
|
136
|
+
placement: string;
|
|
137
|
+
timePicker: boolean;
|
|
138
|
+
timezone: string;
|
|
139
|
+
is24hr: boolean;
|
|
140
|
+
availableDates: Record<string, any>;
|
|
141
|
+
placeholder: string;
|
|
142
|
+
popoverVisibility: string;
|
|
143
|
+
disabled: boolean;
|
|
144
|
+
locale: Optional<string>;
|
|
145
|
+
};
|
|
146
|
+
modelConfig(): {
|
|
147
|
+
timeAdjust: string;
|
|
148
|
+
} | {
|
|
149
|
+
timeAdjust?: undefined;
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
onValueUpdate(date: DateRange): void;
|
|
153
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
154
|
+
/**
|
|
155
|
+
* Label for the date picker
|
|
156
|
+
*/
|
|
157
|
+
label: {
|
|
158
|
+
type: StringConstructor;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Unique id of the date picker
|
|
163
|
+
*/
|
|
164
|
+
id: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: () => string;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* A text to describe the date picker
|
|
170
|
+
*/
|
|
171
|
+
caption: {
|
|
172
|
+
type: StringConstructor;
|
|
173
|
+
default: null;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Used to specify selected dates
|
|
177
|
+
* @model
|
|
178
|
+
*/
|
|
179
|
+
modelValue: {
|
|
180
|
+
type: (StringConstructor | ObjectConstructor | DateConstructor)[];
|
|
181
|
+
default: () => Date;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Disable
|
|
185
|
+
*/
|
|
186
|
+
disabled: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Validation result sent by Vuelidate
|
|
192
|
+
*/
|
|
193
|
+
validate: {
|
|
194
|
+
type: PropType<ValidationState>;
|
|
195
|
+
default: null;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Time zone
|
|
199
|
+
*/
|
|
200
|
+
timezone: {
|
|
201
|
+
type: StringConstructor;
|
|
202
|
+
default: string;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Available dates
|
|
206
|
+
*/
|
|
207
|
+
availableDates: {
|
|
208
|
+
type: ObjectConstructor;
|
|
209
|
+
default: null;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Columns
|
|
213
|
+
*/
|
|
214
|
+
columns: {
|
|
215
|
+
type: NumberConstructor;
|
|
216
|
+
default: number;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Time picker used by RDateRangeButtonGroup to include time in ranges
|
|
220
|
+
*/
|
|
221
|
+
timePicker: {
|
|
222
|
+
type: BooleanConstructor;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Time picker
|
|
227
|
+
*/
|
|
228
|
+
placeholder: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
default: string;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Min date
|
|
234
|
+
*/
|
|
235
|
+
minDate: {
|
|
236
|
+
type: (StringConstructor | ObjectConstructor | DateConstructor)[];
|
|
237
|
+
default: null;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* Max date
|
|
241
|
+
*/
|
|
242
|
+
maxDate: {
|
|
243
|
+
type: (StringConstructor | ObjectConstructor | DateConstructor)[];
|
|
244
|
+
default: null;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* Type
|
|
248
|
+
*/
|
|
249
|
+
type: {
|
|
250
|
+
type: StringConstructor;
|
|
251
|
+
default: string;
|
|
252
|
+
validator: (type: string) => boolean;
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* Define if the time format is 24H
|
|
256
|
+
*/
|
|
257
|
+
is24hr: {
|
|
258
|
+
type: BooleanConstructor;
|
|
259
|
+
default: boolean;
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* Placement
|
|
263
|
+
*/
|
|
264
|
+
placement: {
|
|
265
|
+
type: StringConstructor;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* v-calendar uses Internationalization API by default but we can explicitly specify a locale with this prop
|
|
270
|
+
* See https://vcalendar.io/i18n.html#string-locales
|
|
271
|
+
*/
|
|
272
|
+
locale: {
|
|
273
|
+
type: StringConstructor;
|
|
274
|
+
default: null;
|
|
275
|
+
};
|
|
276
|
+
}>> & {
|
|
277
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
278
|
+
}, {
|
|
279
|
+
columns: number;
|
|
280
|
+
id: string;
|
|
281
|
+
type: string;
|
|
282
|
+
caption: string;
|
|
283
|
+
label: string;
|
|
284
|
+
placeholder: string;
|
|
285
|
+
disabled: boolean;
|
|
286
|
+
modelValue: string | Record<string, any> | Date;
|
|
287
|
+
validate: ValidationState;
|
|
288
|
+
placement: string;
|
|
289
|
+
timezone: string;
|
|
290
|
+
is24hr: boolean;
|
|
291
|
+
timePicker: boolean;
|
|
292
|
+
availableDates: Record<string, any>;
|
|
293
|
+
minDate: string | Record<string, any> | Date;
|
|
294
|
+
maxDate: string | Record<string, any> | Date;
|
|
295
|
+
locale: string;
|
|
296
|
+
}>;
|
|
297
|
+
export default _default;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { Moment } from 'moment';
|
|
3
|
+
import { type CalendarPresetLabel, type CalendarPreset } from './calendar-presets';
|
|
4
|
+
import type { DateRange } from './types';
|
|
5
|
+
import type { Voidable } from '../../types';
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: PropType<string | DateRange>;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
calendarToggle: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
default: () => () => undefined;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Specify if the date range picker is disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
timePicker: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Specify if there are presets shown
|
|
28
|
+
*/
|
|
29
|
+
showPresets: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
placeholder: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Specify the timezone
|
|
39
|
+
*/
|
|
40
|
+
timezone: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Define if the time format is 24H
|
|
46
|
+
*/
|
|
47
|
+
is24hr: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
}, unknown, unknown, {
|
|
52
|
+
isMobile(): boolean;
|
|
53
|
+
calendarPresets(): {
|
|
54
|
+
readonly today: "today";
|
|
55
|
+
readonly yesterday: "yesterday";
|
|
56
|
+
readonly thisWeek: "thisWeek";
|
|
57
|
+
readonly lastWeek: "lastWeek";
|
|
58
|
+
readonly last30Days: "last30Days";
|
|
59
|
+
readonly thisMonth: "thisMonth";
|
|
60
|
+
readonly lastMonth: "lastMonth";
|
|
61
|
+
readonly last3Months: "last3Months";
|
|
62
|
+
readonly last6Months: "last6Months";
|
|
63
|
+
readonly thisYear: "thisYear";
|
|
64
|
+
readonly lastYear: "lastYear";
|
|
65
|
+
};
|
|
66
|
+
calendarPresetsPeriods(): Record<"today" | "yesterday" | "thisWeek" | "lastWeek" | "last30Days" | "thisMonth" | "lastMonth" | "last3Months" | "last6Months" | "thisYear" | "lastYear", import("./calendar-presets").CalendarPresetPeriod>;
|
|
67
|
+
calendarPresetsPeriodsList(): [string, import("./calendar-presets").CalendarPresetPeriod][];
|
|
68
|
+
isValidDatesPeriod(): boolean;
|
|
69
|
+
isRelative(): boolean;
|
|
70
|
+
selectedRelativeParams(): import("./calendar-presets").CalendarPresetPeriod | DateRange | {
|
|
71
|
+
start: string;
|
|
72
|
+
end: string;
|
|
73
|
+
} | {
|
|
74
|
+
relativeFilterValue: string;
|
|
75
|
+
start: Moment;
|
|
76
|
+
end: Moment;
|
|
77
|
+
presetName: string;
|
|
78
|
+
presetLabel: "Today" | "Yesterday" | "This week" | "Last week" | "Last 30 days" | "This month" | "Last month" | "Last 3 months" | "Last 6 months" | "This year" | "Last year";
|
|
79
|
+
} | null;
|
|
80
|
+
isRelativePreset(): boolean | null;
|
|
81
|
+
selectedPeriod(): {
|
|
82
|
+
start: string | Date | Moment;
|
|
83
|
+
end: string | Date | Moment;
|
|
84
|
+
isRelative: boolean;
|
|
85
|
+
relativeFilterValue: import("../../types").Nullable<string>;
|
|
86
|
+
presetName: string;
|
|
87
|
+
presetLabel: string;
|
|
88
|
+
} | {
|
|
89
|
+
start: string | Date | Moment;
|
|
90
|
+
end: string | Date | Moment;
|
|
91
|
+
} | null;
|
|
92
|
+
selectedDate(): {
|
|
93
|
+
start: string | Date | Moment;
|
|
94
|
+
end: string | Date | Moment;
|
|
95
|
+
} | {
|
|
96
|
+
start: null;
|
|
97
|
+
end: null;
|
|
98
|
+
} | null;
|
|
99
|
+
selectedDateLabel(): string | null;
|
|
100
|
+
}, {
|
|
101
|
+
getPresetLabel(presetName: CalendarPresetLabel): "Today" | "Yesterday" | "This week" | "Last week" | "Last 30 days" | "This month" | "Last month" | "Last 3 months" | "Last 6 months" | "This year" | "Last year";
|
|
102
|
+
getFormattedPresetPeriod(presetName: CalendarPreset): string;
|
|
103
|
+
validateDatesPeriod(period: Voidable<Moment | string | Date>): boolean;
|
|
104
|
+
toggle(name: string): void;
|
|
105
|
+
parsePeriod(period: string | DateRange): import("./calendar-presets").CalendarPresetPeriod | DateRange | {
|
|
106
|
+
start: string;
|
|
107
|
+
end: string;
|
|
108
|
+
} | null;
|
|
109
|
+
relativeFilterChange(presetName: CalendarPresetLabel): void;
|
|
110
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "preset-select"[], "preset-select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
111
|
+
modelValue: {
|
|
112
|
+
type: PropType<string | DateRange>;
|
|
113
|
+
default: null;
|
|
114
|
+
};
|
|
115
|
+
calendarToggle: {
|
|
116
|
+
type: FunctionConstructor;
|
|
117
|
+
default: () => () => undefined;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Specify if the date range picker is disabled
|
|
121
|
+
*/
|
|
122
|
+
disabled: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
timePicker: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Specify if there are presets shown
|
|
132
|
+
*/
|
|
133
|
+
showPresets: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
placeholder: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Specify the timezone
|
|
143
|
+
*/
|
|
144
|
+
timezone: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Define if the time format is 24H
|
|
150
|
+
*/
|
|
151
|
+
is24hr: {
|
|
152
|
+
type: BooleanConstructor;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
}>> & {
|
|
156
|
+
"onPreset-select"?: ((...args: any[]) => any) | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
placeholder: string;
|
|
159
|
+
disabled: boolean;
|
|
160
|
+
modelValue: string | DateRange;
|
|
161
|
+
timezone: string;
|
|
162
|
+
is24hr: boolean;
|
|
163
|
+
calendarToggle: Function;
|
|
164
|
+
timePicker: boolean;
|
|
165
|
+
showPresets: boolean;
|
|
166
|
+
}>;
|
|
167
|
+
export default _default;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import moment from 'moment';
|
|
3
|
+
import type { DateRange } from './types';
|
|
4
|
+
import type { ValidationState } from '../../types';
|
|
5
|
+
declare const _default: import("vue").DefineComponent<{
|
|
6
|
+
/**
|
|
7
|
+
* Used to specify selected dates
|
|
8
|
+
* @model
|
|
9
|
+
*/
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: PropType<string | Date | DateRange<Date | moment.Moment>>;
|
|
12
|
+
default: () => Date;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Disable
|
|
16
|
+
*/
|
|
17
|
+
disabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Validation result sent by Vuelidate
|
|
23
|
+
*/
|
|
24
|
+
validate: {
|
|
25
|
+
type: PropType<ValidationState>;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Define if the time format is 24H
|
|
30
|
+
*/
|
|
31
|
+
is24hr: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Time picker
|
|
37
|
+
*/
|
|
38
|
+
timePicker: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Time zone
|
|
44
|
+
*/
|
|
45
|
+
timezone: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Placeholder
|
|
51
|
+
*/
|
|
52
|
+
placeholder: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
}, {
|
|
57
|
+
themeStyles: {
|
|
58
|
+
wrapper: {
|
|
59
|
+
background: string;
|
|
60
|
+
borderRadius: string;
|
|
61
|
+
boxShadow: string;
|
|
62
|
+
border: string;
|
|
63
|
+
fontFamily: string;
|
|
64
|
+
};
|
|
65
|
+
header: {
|
|
66
|
+
padding: string;
|
|
67
|
+
};
|
|
68
|
+
headerTitle: {
|
|
69
|
+
fontSize: string;
|
|
70
|
+
lineHeight: string;
|
|
71
|
+
fontFamily: string;
|
|
72
|
+
fontWeight: string;
|
|
73
|
+
color: string;
|
|
74
|
+
};
|
|
75
|
+
weekdays: {
|
|
76
|
+
fontSize: string;
|
|
77
|
+
lineHeight: string;
|
|
78
|
+
color: string;
|
|
79
|
+
fontWeight: string;
|
|
80
|
+
};
|
|
81
|
+
dayCell: {
|
|
82
|
+
backgroundColor: string;
|
|
83
|
+
};
|
|
84
|
+
dayContent: {
|
|
85
|
+
fontSize: string;
|
|
86
|
+
lineHeight: string;
|
|
87
|
+
color: string;
|
|
88
|
+
width: string;
|
|
89
|
+
height: string;
|
|
90
|
+
};
|
|
91
|
+
dayContentHover: {
|
|
92
|
+
backgroundColor: string;
|
|
93
|
+
};
|
|
94
|
+
verticalDivider: {
|
|
95
|
+
borderLeft: string;
|
|
96
|
+
};
|
|
97
|
+
bars: {
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
};
|
|
100
|
+
tintColor: string;
|
|
101
|
+
};
|
|
102
|
+
popoverConfigs: {
|
|
103
|
+
placement: {};
|
|
104
|
+
visibility: string;
|
|
105
|
+
modifiers: {
|
|
106
|
+
name: string;
|
|
107
|
+
options: {
|
|
108
|
+
allowedAutoPlacements: string[];
|
|
109
|
+
fallbackPlacements: string[];
|
|
110
|
+
};
|
|
111
|
+
}[];
|
|
112
|
+
};
|
|
113
|
+
masks: {
|
|
114
|
+
input: string;
|
|
115
|
+
};
|
|
116
|
+
dragSelectAttributes: {
|
|
117
|
+
popover: {
|
|
118
|
+
visibility: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
modelConfig: {
|
|
122
|
+
start?: undefined;
|
|
123
|
+
end?: undefined;
|
|
124
|
+
} | {
|
|
125
|
+
start: {
|
|
126
|
+
timeAdjust: string;
|
|
127
|
+
};
|
|
128
|
+
end: {
|
|
129
|
+
timeAdjust: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
}, unknown, {
|
|
133
|
+
prepareValueDropdown(): {
|
|
134
|
+
start: string | Date;
|
|
135
|
+
end: string | Date;
|
|
136
|
+
isRelative: boolean;
|
|
137
|
+
relativeFilterValue: import("../../types").Nullable<string>;
|
|
138
|
+
} | null;
|
|
139
|
+
prepareValueDatepicker(): {
|
|
140
|
+
start: undefined;
|
|
141
|
+
end: undefined;
|
|
142
|
+
} | {
|
|
143
|
+
start: Date;
|
|
144
|
+
end: Date;
|
|
145
|
+
} | null;
|
|
146
|
+
mode(): "date" | "dateTime";
|
|
147
|
+
}, {
|
|
148
|
+
onPeriodInput(period: DateRange): void;
|
|
149
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
150
|
+
/**
|
|
151
|
+
* Used to specify selected dates
|
|
152
|
+
* @model
|
|
153
|
+
*/
|
|
154
|
+
modelValue: {
|
|
155
|
+
type: PropType<string | Date | DateRange<Date | moment.Moment>>;
|
|
156
|
+
default: () => Date;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Disable
|
|
160
|
+
*/
|
|
161
|
+
disabled: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Validation result sent by Vuelidate
|
|
167
|
+
*/
|
|
168
|
+
validate: {
|
|
169
|
+
type: PropType<ValidationState>;
|
|
170
|
+
default: null;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Define if the time format is 24H
|
|
174
|
+
*/
|
|
175
|
+
is24hr: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Time picker
|
|
181
|
+
*/
|
|
182
|
+
timePicker: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: boolean;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Time zone
|
|
188
|
+
*/
|
|
189
|
+
timezone: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Placeholder
|
|
195
|
+
*/
|
|
196
|
+
placeholder: {
|
|
197
|
+
type: StringConstructor;
|
|
198
|
+
default: string;
|
|
199
|
+
};
|
|
200
|
+
}>> & {
|
|
201
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
placeholder: string;
|
|
204
|
+
disabled: boolean;
|
|
205
|
+
modelValue: string | Date | DateRange<Date | moment.Moment>;
|
|
206
|
+
validate: ValidationState;
|
|
207
|
+
timezone: string;
|
|
208
|
+
is24hr: boolean;
|
|
209
|
+
timePicker: boolean;
|
|
210
|
+
}>;
|
|
211
|
+
export default _default;
|