@fewangsit/wangsvue 1.5.199-alpha.0 → 1.5.199-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/components/calendar/BaseCalendar.vue.d.ts +50 -0
- package/components/calendar/Calendar.vue.d.ts +430 -5
- package/components/checkbox/Checkbox.vue.d.ts +4 -8
- package/components/editor/CodeSnippetAdapter.vue.d.ts +24 -0
- package/components/editor/MentionSection.vue.d.ts +24 -0
- package/components/filtercontainer/helpers/formatDateTimeRange.helper.d.ts +7 -0
- package/components/overlaypanel/OverlayPanel.vue.d.ts +9 -12
- package/components/ts-helpers.d.ts +1 -0
- package/config/index.d.ts +2 -1
- package/package.json +1 -1
- package/plugins/WangsVue.d.ts +18 -2
- package/style.css +1 -1
- package/wangsvue.es.js +29317 -30836
- package/wangsvue.system.js +132 -144
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CalendarProps } from './Calendar.vue.d';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
incrementicon?(_: {}): any;
|
|
4
|
+
incrementicon?(_: {}): any;
|
|
5
|
+
decrementicon?(_: {}): any;
|
|
6
|
+
decrementicon?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarProps>, {
|
|
9
|
+
selectionMode: string;
|
|
10
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (date: Date | Date[]) => void;
|
|
12
|
+
"update:epochTimeMillis": (millis?: number | number[]) => void;
|
|
13
|
+
monthChange: (event: import('./Calendar.vue.d').CalendarMonthChangeEvent) => void;
|
|
14
|
+
yearChange: (event: import('./Calendar.vue.d').CalendarYearChangeEvent) => void;
|
|
15
|
+
dateSelect: (date: Date | Date[]) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarProps>, {
|
|
17
|
+
selectionMode: string;
|
|
18
|
+
}>>> & {
|
|
19
|
+
"onUpdate:modelValue"?: (date: Date | Date[]) => any;
|
|
20
|
+
"onUpdate:epochTimeMillis"?: (millis?: number | number[]) => any;
|
|
21
|
+
onMonthChange?: (event: import('./Calendar.vue.d').CalendarMonthChangeEvent) => any;
|
|
22
|
+
onYearChange?: (event: import('./Calendar.vue.d').CalendarYearChangeEvent) => any;
|
|
23
|
+
onDateSelect?: (date: Date | Date[]) => any;
|
|
24
|
+
}, {
|
|
25
|
+
selectionMode: "range" | "single";
|
|
26
|
+
}, {}>;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithDefaults<P, D> = {
|
|
30
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
+
default: D[K];
|
|
32
|
+
}> : P[K];
|
|
33
|
+
};
|
|
34
|
+
type __VLS_Prettify<T> = {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} & {};
|
|
37
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
|
+
type __VLS_TypePropsToOption<T> = {
|
|
44
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
45
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
46
|
+
} : {
|
|
47
|
+
type: import('vue').PropType<T[K]>;
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -1,41 +1,374 @@
|
|
|
1
|
+
import { TransitionProps } from 'vue';
|
|
1
2
|
import { CustomValidation } from '../form/Form.vue.d';
|
|
2
3
|
import { ClassComponent } from '../ts-helpers';
|
|
3
4
|
|
|
5
|
+
export interface CalendarLocaleConfig {
|
|
6
|
+
defaultPlaceholder: string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Error message displayed when no selection has been made.
|
|
10
|
+
*
|
|
11
|
+
* This message can include placeholders:
|
|
12
|
+
* - `{label}`: Replaced with the value of `props.label`.
|
|
13
|
+
* - `{formattedLabel}`: Replaced with the value of `props.label` formatted with an appropriate article (a/an).
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // If `props.label` is 'Date', the error message will be:
|
|
17
|
+
* '{label} must be picked' - 'Date must be picked'
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // If `props.label` is 'Audit Date', the error message will be:
|
|
21
|
+
* 'You must pick {formattedLabel}' - 'You must pick an Audit date'
|
|
22
|
+
*/
|
|
23
|
+
emptyInvalidText?: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The cancel button when props.showTime or showButton
|
|
27
|
+
*
|
|
28
|
+
* @default 'Cancel'
|
|
29
|
+
*/
|
|
30
|
+
cancelFooterButtonLabel?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The apply button when props.showTime or showButton
|
|
34
|
+
*
|
|
35
|
+
* @default 'Apply'
|
|
36
|
+
*/
|
|
37
|
+
applyFooterButtonLabel?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type CalendarPresetOptionMethodType = (
|
|
41
|
+
options: Partial<CalendarPresetMethodOptions>,
|
|
42
|
+
) => CalendarPresetAttributes;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Defines the possible transition types for Calendar.
|
|
46
|
+
*/
|
|
47
|
+
export type CalendarPresetTransitionType =
|
|
48
|
+
| {
|
|
49
|
+
transition?: TransitionProps;
|
|
50
|
+
}
|
|
51
|
+
| ((options: CalendarPresetMethodOptions) => TransitionProps)
|
|
52
|
+
| undefined;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Options passed to methods for pass-through properties.
|
|
56
|
+
*/
|
|
57
|
+
export interface CalendarPresetMethodOptions {
|
|
58
|
+
instance: any;
|
|
59
|
+
props: CalendarProps;
|
|
60
|
+
state: CalendarState;
|
|
61
|
+
context: Partial<CalendarContext>;
|
|
62
|
+
attrs: any;
|
|
63
|
+
parent: any;
|
|
64
|
+
global: object | undefined;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Attributes for Calendar pass-through customization.
|
|
69
|
+
*/
|
|
70
|
+
export interface CalendarPresetAttributes {
|
|
71
|
+
class?: any;
|
|
72
|
+
style?: any;
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Defines the structure for Calendar pass-through class options.
|
|
78
|
+
* Used in preset.
|
|
79
|
+
*/
|
|
80
|
+
export interface CalendarPresetOptions {
|
|
81
|
+
root?: CalendarPresetOptionMethodType;
|
|
82
|
+
input?: CalendarPresetOptionMethodType;
|
|
83
|
+
inputicon?: CalendarPresetAttributes;
|
|
84
|
+
dropdownbutton?: {
|
|
85
|
+
root?: CalendarPresetAttributes;
|
|
86
|
+
};
|
|
87
|
+
panel?: CalendarPresetOptionMethodType;
|
|
88
|
+
datepickerMask?: CalendarPresetAttributes;
|
|
89
|
+
header?: CalendarPresetOptionMethodType;
|
|
90
|
+
previousbutton?: CalendarPresetOptionMethodType;
|
|
91
|
+
title?: CalendarPresetOptionMethodType;
|
|
92
|
+
monthTitle?: CalendarPresetAttributes;
|
|
93
|
+
yearTitle?: CalendarPresetOptionMethodType;
|
|
94
|
+
nextbutton?: CalendarPresetOptionMethodType;
|
|
95
|
+
table?: CalendarPresetAttributes;
|
|
96
|
+
tableheadercell?: CalendarPresetAttributes;
|
|
97
|
+
tablebodyrow?: CalendarPresetAttributes;
|
|
98
|
+
weekheader?: CalendarPresetAttributes;
|
|
99
|
+
weeknumber?: CalendarPresetAttributes;
|
|
100
|
+
weekday?: CalendarPresetAttributes;
|
|
101
|
+
day?: CalendarPresetAttributes;
|
|
102
|
+
weeklabelcontainer?: CalendarPresetOptionMethodType;
|
|
103
|
+
daylabel?: CalendarPresetOptionMethodType;
|
|
104
|
+
monthpicker?: CalendarPresetAttributes;
|
|
105
|
+
month?: CalendarPresetOptionMethodType;
|
|
106
|
+
yearpicker?: CalendarPresetAttributes;
|
|
107
|
+
year?: CalendarPresetOptionMethodType;
|
|
108
|
+
timepicker?: CalendarPresetAttributes;
|
|
109
|
+
separatorcontainer?: CalendarPresetAttributes;
|
|
110
|
+
separator?: CalendarPresetAttributes;
|
|
111
|
+
hourpicker?: CalendarPresetAttributes;
|
|
112
|
+
timepickerlabel?: CalendarPresetAttributes;
|
|
113
|
+
minutepicker?: CalendarPresetAttributes;
|
|
114
|
+
secondPicker?: CalendarPresetAttributes;
|
|
115
|
+
incrementbutton?: CalendarPresetAttributes;
|
|
116
|
+
incrementicon?: CalendarPresetAttributes;
|
|
117
|
+
decrementbutton?: CalendarPresetAttributes;
|
|
118
|
+
decrementicon?: CalendarPresetAttributes;
|
|
119
|
+
container?: CalendarPresetAttributes;
|
|
120
|
+
groupcontainer?: CalendarPresetAttributes;
|
|
121
|
+
group?: CalendarPresetAttributes;
|
|
122
|
+
buttonbar?: CalendarPresetAttributes;
|
|
123
|
+
todaybutton?: {
|
|
124
|
+
root?: CalendarPresetAttributes;
|
|
125
|
+
};
|
|
126
|
+
clearbutton?: {
|
|
127
|
+
root?: CalendarPresetAttributes;
|
|
128
|
+
};
|
|
129
|
+
transition?: {
|
|
130
|
+
enterFromClass?: string;
|
|
131
|
+
enterActiveClass?: string;
|
|
132
|
+
leaveActiveClass?: string;
|
|
133
|
+
leaveToClass?: string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Represents the current state of the Calendar component.
|
|
139
|
+
*/
|
|
140
|
+
export interface CalendarState {
|
|
141
|
+
currentView: CalendarProps['view'];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Defines current month options.
|
|
146
|
+
*/
|
|
147
|
+
export interface CalendarMonthOptions {
|
|
148
|
+
/**
|
|
149
|
+
* Month index.
|
|
150
|
+
*/
|
|
151
|
+
value: number;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Selectable state of the month.
|
|
155
|
+
*/
|
|
156
|
+
selectable: boolean;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Defines current year options.
|
|
161
|
+
*/
|
|
162
|
+
export interface CalendarYearOptions {
|
|
163
|
+
/**
|
|
164
|
+
* Year value.
|
|
165
|
+
*/
|
|
166
|
+
value: number;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Selectable state of the year.
|
|
170
|
+
*/
|
|
171
|
+
selectable: boolean;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface CalendarDate {
|
|
175
|
+
/**
|
|
176
|
+
* Current date.
|
|
177
|
+
*/
|
|
178
|
+
day: number;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Current month state.
|
|
182
|
+
*/
|
|
183
|
+
month: number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Current year state.
|
|
187
|
+
*/
|
|
188
|
+
year: number;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Current today state of the calendar's day.
|
|
192
|
+
*/
|
|
193
|
+
today: boolean;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Selectable state of the day.
|
|
197
|
+
*/
|
|
198
|
+
selectable: boolean;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Wether the day is on other month than currently shown
|
|
202
|
+
*/
|
|
203
|
+
otherMonth: boolean;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Provides contextual information for the Calendar component.
|
|
208
|
+
*/
|
|
209
|
+
export interface CalendarContext {
|
|
210
|
+
/**
|
|
211
|
+
* Current date.
|
|
212
|
+
*/
|
|
213
|
+
date: CalendarDate;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Current today state of the calendar's day.
|
|
217
|
+
* @defaultValue false
|
|
218
|
+
*/
|
|
219
|
+
today: boolean;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Current other month state of the calendar's day.
|
|
223
|
+
*/
|
|
224
|
+
otherMonth: boolean;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Current selected state of the calendar's day or month or year.
|
|
228
|
+
* @defaultValue false
|
|
229
|
+
*/
|
|
230
|
+
selected: boolean;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Current date is the first selected on range selection
|
|
234
|
+
*/
|
|
235
|
+
firstSelected: boolean;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Current date is the last selected on range selection
|
|
239
|
+
*/
|
|
240
|
+
lastSelected: boolean;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Current disabled state of the calendar's day or month or year.
|
|
244
|
+
* @defaultValue false
|
|
245
|
+
*/
|
|
246
|
+
disabled: boolean;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Current month state.
|
|
250
|
+
*/
|
|
251
|
+
month: CalendarMonthOptions;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Current month index state.
|
|
255
|
+
*/
|
|
256
|
+
monthIndex: number;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Current year state.
|
|
260
|
+
*/
|
|
261
|
+
year: CalendarYearOptions;
|
|
262
|
+
}
|
|
263
|
+
|
|
4
264
|
/**
|
|
5
265
|
* Calendar component props
|
|
6
266
|
*/
|
|
7
267
|
export interface CalendarProps {
|
|
8
268
|
/**
|
|
9
|
-
*
|
|
269
|
+
* Bound value of the component.
|
|
270
|
+
* Supports single or multiple date selection.
|
|
271
|
+
*
|
|
272
|
+
* Used with `v-model`.
|
|
273
|
+
* @defaultValue null
|
|
10
274
|
*/
|
|
11
|
-
modelValue?:
|
|
275
|
+
modelValue?: Date | Date[] | null;
|
|
276
|
+
|
|
12
277
|
/**
|
|
13
|
-
*
|
|
278
|
+
* Initial date value for pre-filling forms.
|
|
279
|
+
* Typically used for editing existing records.
|
|
280
|
+
*
|
|
281
|
+
* Accepts epoch timestamps in milliseconds.
|
|
282
|
+
*
|
|
283
|
+
* It will only watch for changes once.
|
|
14
284
|
*/
|
|
15
285
|
dateValue?: number | number[];
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* Epoch time in milliseconds representing the selected date(s).
|
|
289
|
+
*
|
|
290
|
+
* Can be used with `v-model:epochTimeMillis` or attaching listener 'onUpdate:epochTimeMillis',
|
|
291
|
+
* but the calendar wont update its state when this prop value changed from parent.
|
|
292
|
+
*
|
|
293
|
+
* If you need to achieve two way data binding, use v-model instead. {@link modelValue}
|
|
294
|
+
*/
|
|
295
|
+
epochTimeMillis?: number | number[];
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Defines the format in which the field value is handled.
|
|
299
|
+
* - `'date'` returns a `Date` object.
|
|
300
|
+
* - `'millis'` returns an epoch timestamp in milliseconds.
|
|
301
|
+
*
|
|
302
|
+
* @default millis
|
|
303
|
+
*/
|
|
304
|
+
valueFormat?: 'date' | 'millis';
|
|
305
|
+
|
|
16
306
|
/**
|
|
17
307
|
* Display label on top of Date Input.
|
|
18
308
|
*/
|
|
19
309
|
label?: string;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* The input placeholder
|
|
313
|
+
* @default - The value on locale config {@link CalendarLocaleConfig.defaultPlaceholder}
|
|
314
|
+
*/
|
|
20
315
|
placeholder?: string;
|
|
21
316
|
disabled?: boolean;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Make the calendar states readonly.
|
|
320
|
+
* If true, calendar will not allow user interaction with it. But user can view currently selected date and time.
|
|
321
|
+
*
|
|
322
|
+
* @default false
|
|
323
|
+
*/
|
|
324
|
+
readonly?: boolean;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Identifier of the underlying input element.
|
|
328
|
+
*/
|
|
329
|
+
inputId?: string | undefined;
|
|
330
|
+
|
|
22
331
|
/**
|
|
23
332
|
* Whether single date or date range model value.
|
|
24
333
|
*
|
|
25
334
|
* @default 'single'
|
|
335
|
+
* @deprecated use selectionMode
|
|
26
336
|
*/
|
|
27
337
|
mode?: 'range' | 'single';
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Whether single date or date range model value.
|
|
341
|
+
*
|
|
342
|
+
* @default 'single'
|
|
343
|
+
*/
|
|
344
|
+
selectionMode?: 'range' | 'single';
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Whether to hide the overlay on date selection when showTime is enabled.
|
|
348
|
+
* @defaultValue false
|
|
349
|
+
*/
|
|
350
|
+
hideOnDateTimeSelect?: boolean | undefined;
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Whether to hide the overlay on date selection is completed when selectionMode is range.
|
|
354
|
+
* @defaultValue true - when showButtons and showTime false
|
|
355
|
+
* @defaultValue false - when showButtons and showTime true
|
|
356
|
+
*/
|
|
357
|
+
hideOnRangeSelection?: boolean | undefined;
|
|
358
|
+
|
|
28
359
|
/**
|
|
29
360
|
* Type of view to display.
|
|
30
361
|
* @defaultValue date
|
|
31
362
|
*/
|
|
32
363
|
view?: 'date' | 'month' | 'year' | undefined;
|
|
364
|
+
|
|
33
365
|
/**
|
|
34
366
|
* Wheter show year picker or not
|
|
35
367
|
*
|
|
36
368
|
* @default true
|
|
37
369
|
*/
|
|
38
370
|
showYear?: boolean;
|
|
371
|
+
|
|
39
372
|
/**
|
|
40
373
|
* Show button Apply and cancel on footer.
|
|
41
374
|
*
|
|
@@ -44,74 +377,166 @@ export interface CalendarProps {
|
|
|
44
377
|
* @default false;
|
|
45
378
|
*/
|
|
46
379
|
showButtons?: boolean;
|
|
380
|
+
|
|
47
381
|
/**
|
|
48
382
|
* Enable Validator using vee-validate. Combine with TSForm that handle form validation.
|
|
49
383
|
*/
|
|
50
384
|
useValidator?: boolean;
|
|
385
|
+
|
|
51
386
|
/**
|
|
52
387
|
* When used as field in From Validation using TSForm,
|
|
53
388
|
* specify the unique field name, match with your needs for API request.
|
|
54
389
|
*/
|
|
55
390
|
fieldName?: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Show information to user about the field.
|
|
394
|
+
*/
|
|
395
|
+
fieldInfo?: string;
|
|
396
|
+
|
|
56
397
|
/**
|
|
57
398
|
* Whether this field should be filled or not.
|
|
58
399
|
*/
|
|
59
400
|
mandatory?: boolean;
|
|
401
|
+
|
|
60
402
|
/**
|
|
61
403
|
* Show the text (opsional)
|
|
62
404
|
*
|
|
63
405
|
* @default true if mandatory true
|
|
64
406
|
*/
|
|
65
407
|
showOptionalText?: boolean;
|
|
408
|
+
|
|
66
409
|
/**
|
|
67
410
|
* Sets the invalid state.
|
|
68
411
|
*/
|
|
69
412
|
invalid?: boolean;
|
|
413
|
+
|
|
70
414
|
/**
|
|
71
415
|
* Set the custom validator message.
|
|
72
416
|
* By default each field has preserved with its validator message, you don't need to worrying about the message.
|
|
73
417
|
*/
|
|
74
|
-
validatorMessage?: string
|
|
418
|
+
validatorMessage?: string | CustomValidation<'empty'>;
|
|
419
|
+
|
|
75
420
|
/**
|
|
76
421
|
* Set custom validation message for certain condition
|
|
422
|
+
*
|
|
423
|
+
* @deprecated - use validatorMessage {@link validatorMessage}
|
|
77
424
|
*/
|
|
78
425
|
customValidation?: CustomValidation;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Format of the date. Defaults to PrimeVue Locale configuration.
|
|
429
|
+
*/
|
|
430
|
+
dateFormat?: string | undefined;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Specifies hour format.
|
|
434
|
+
* @defaultValue 24
|
|
435
|
+
*/
|
|
436
|
+
hourFormat?: '12' | '24' | undefined;
|
|
437
|
+
|
|
79
438
|
/**
|
|
80
439
|
* Defines the calendar to use hour picker.
|
|
81
440
|
*/
|
|
82
441
|
showTime?: boolean;
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* Separator of time selector.
|
|
445
|
+
* @defaultValue :
|
|
446
|
+
*/
|
|
447
|
+
timeSeparator?: string | undefined;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Hours to change per step.
|
|
451
|
+
* @defaultValue 1
|
|
452
|
+
*/
|
|
453
|
+
stepHour?: number | undefined;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Minutes to change per step.
|
|
457
|
+
* @defaultValue 1
|
|
458
|
+
*/
|
|
459
|
+
stepMinute?: number | undefined;
|
|
460
|
+
|
|
83
461
|
/**
|
|
84
462
|
* Formats the hour picker to 12 hour format.
|
|
85
463
|
* @default true
|
|
464
|
+
*
|
|
465
|
+
* @deprecated use {@link hourFormat}
|
|
86
466
|
*/
|
|
87
467
|
useTimeFormat?: boolean;
|
|
468
|
+
|
|
88
469
|
/**
|
|
89
470
|
* The minimum selectable date.
|
|
90
471
|
*/
|
|
91
472
|
minDate?: Date | undefined;
|
|
473
|
+
|
|
92
474
|
/**
|
|
93
475
|
* The maximum selectable date.
|
|
94
476
|
*/
|
|
95
477
|
maxDate?: Date | undefined;
|
|
478
|
+
|
|
96
479
|
/**
|
|
97
480
|
* The maximum selectable year.
|
|
98
481
|
*
|
|
99
482
|
* The full year: 2020
|
|
483
|
+
* @todo Support number, currently only support 'current'
|
|
100
484
|
*/
|
|
101
485
|
maxYear?: 'current' | number | undefined;
|
|
486
|
+
|
|
102
487
|
/**
|
|
103
488
|
* The maximum selectable months.
|
|
104
489
|
*
|
|
105
490
|
* Number 0-11
|
|
491
|
+
*
|
|
492
|
+
* @todo Support number, currently only support 'current'
|
|
106
493
|
*/
|
|
107
494
|
maxMonth?: 'current' | number | undefined;
|
|
108
495
|
}
|
|
109
496
|
|
|
497
|
+
/**
|
|
498
|
+
* Custom Calendar month change event.
|
|
499
|
+
* @see {@link CalendarEmits.monthChange}
|
|
500
|
+
*/
|
|
501
|
+
export interface CalendarMonthChangeEvent {
|
|
502
|
+
/**
|
|
503
|
+
* New month.
|
|
504
|
+
*/
|
|
505
|
+
month: number;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* New year.
|
|
509
|
+
*/
|
|
510
|
+
year: number;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Custom Calendar year change event.
|
|
515
|
+
* @see {@link CalendarEmits.yearChange}
|
|
516
|
+
*/
|
|
517
|
+
export interface CalendarYearChangeEvent {
|
|
518
|
+
/**
|
|
519
|
+
* New month.
|
|
520
|
+
*/
|
|
521
|
+
month: number;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* New year.
|
|
525
|
+
*/
|
|
526
|
+
year: number;
|
|
527
|
+
}
|
|
528
|
+
|
|
110
529
|
/**
|
|
111
530
|
* Calendar component emits
|
|
112
531
|
*/
|
|
113
532
|
export type CalendarEmits = {
|
|
114
|
-
'update:modelValue': [
|
|
533
|
+
'update:modelValue': [
|
|
534
|
+
date: Date | Array<Date> | Array<Date | null> | undefined | null,
|
|
535
|
+
];
|
|
536
|
+
'update:epochTimeMillis': [millis?: number | number[]];
|
|
537
|
+
'monthChange': [event: CalendarMonthChangeEvent];
|
|
538
|
+
'yearChange': [event: CalendarYearChangeEvent];
|
|
539
|
+
'dateSelect': [date: Date | Date[]];
|
|
115
540
|
};
|
|
116
541
|
|
|
117
542
|
/**
|
|
@@ -11,7 +11,6 @@ import { PassThroughOptions } from '../passthrough';
|
|
|
11
11
|
import {
|
|
12
12
|
ClassComponent,
|
|
13
13
|
GlobalComponentConstructor,
|
|
14
|
-
Nullable,
|
|
15
14
|
PassThrough,
|
|
16
15
|
} from '../ts-helpers';
|
|
17
16
|
|
|
@@ -100,11 +99,6 @@ export interface CheckboxState {
|
|
|
100
99
|
[key: string]: any;
|
|
101
100
|
}
|
|
102
101
|
|
|
103
|
-
export type CheckboxModelValue =
|
|
104
|
-
| Nullable<boolean>
|
|
105
|
-
| Record<string, any>
|
|
106
|
-
| Record<string, any>[];
|
|
107
|
-
|
|
108
102
|
/**
|
|
109
103
|
* Defines valid properties in Checkbox component.
|
|
110
104
|
*/
|
|
@@ -115,8 +109,10 @@ export interface CheckboxProps {
|
|
|
115
109
|
value?: any;
|
|
116
110
|
/**
|
|
117
111
|
* Value binding of the checkbox.
|
|
112
|
+
*
|
|
113
|
+
* The value is vary depends on the {@link trueValue}, {@link falseValue}, {@link binary}
|
|
118
114
|
*/
|
|
119
|
-
modelValue?:
|
|
115
|
+
modelValue?: any;
|
|
120
116
|
/**
|
|
121
117
|
* The checkbox label.
|
|
122
118
|
*/
|
|
@@ -289,7 +285,7 @@ export type CheckboxEmits = {
|
|
|
289
285
|
* Emitted when the value changes.
|
|
290
286
|
* @param {*} value - New value.
|
|
291
287
|
*/
|
|
292
|
-
'update:modelValue': [value:
|
|
288
|
+
'update:modelValue': [value: any];
|
|
293
289
|
/**
|
|
294
290
|
* Callback to invoke on value change.
|
|
295
291
|
* @param {Event} event - Browser event.
|
|
@@ -31,6 +31,18 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
31
31
|
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
34
|
+
view: {
|
|
35
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
34
46
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
47
|
editor: {
|
|
36
48
|
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
@@ -64,5 +76,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
64
76
|
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
65
77
|
required: true;
|
|
66
78
|
};
|
|
79
|
+
view: {
|
|
80
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
innerDecorations: {
|
|
84
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
HTMLAttributes: {
|
|
88
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
67
91
|
}>>, {}, {}>;
|
|
68
92
|
export default _default;
|
|
@@ -31,6 +31,18 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
31
31
|
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
34
|
+
view: {
|
|
35
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
innerDecorations: {
|
|
39
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
HTMLAttributes: {
|
|
43
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
34
46
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
47
|
editor: {
|
|
36
48
|
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["editor"]>;
|
|
@@ -64,5 +76,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
64
76
|
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["deleteNode"]>;
|
|
65
77
|
required: true;
|
|
66
78
|
};
|
|
79
|
+
view: {
|
|
80
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["view"]>;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
innerDecorations: {
|
|
84
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["innerDecorations"]>;
|
|
85
|
+
required: true;
|
|
86
|
+
};
|
|
87
|
+
HTMLAttributes: {
|
|
88
|
+
type: import('vue').PropType<import('@tiptap/vue-3').NodeViewProps["HTMLAttributes"]>;
|
|
89
|
+
required: true;
|
|
90
|
+
};
|
|
67
91
|
}>>, {}, {}>;
|
|
68
92
|
export default _default;
|