@fewangsit/wangsvue 1.5.199-alpha.6 → 1.5.199-alpha.8
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 +33 -0
- package/components/calendar/Calendar.vue.d.ts +3 -2
- package/components/form/Form.vue.d.ts +1 -2
- package/components/index.d.ts +1 -1
- package/package.json +1 -1
- package/wangsvue.es.js +4180 -4177
- package/wangsvue.system.js +56 -56
|
@@ -7,6 +7,17 @@ declare function __VLS_template(): {
|
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarProps>, {
|
|
9
9
|
selectionMode: string;
|
|
10
|
+
view: string;
|
|
11
|
+
mode: string;
|
|
12
|
+
showYear: boolean;
|
|
13
|
+
showOptionalText: any;
|
|
14
|
+
valueFormat: string;
|
|
15
|
+
hideOnRangeSelection: boolean;
|
|
16
|
+
hourFormat: string;
|
|
17
|
+
dateFormat: string;
|
|
18
|
+
stepHour: number;
|
|
19
|
+
stepMinute: number;
|
|
20
|
+
timeSeparator: string;
|
|
10
21
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
22
|
"update:modelValue": (date: Date | Date[]) => void;
|
|
12
23
|
"update:epochTimeMillis": (millis?: number | number[]) => void;
|
|
@@ -15,6 +26,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
15
26
|
dateSelect: (date: Date | Date[]) => void;
|
|
16
27
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CalendarProps>, {
|
|
17
28
|
selectionMode: string;
|
|
29
|
+
view: string;
|
|
30
|
+
mode: string;
|
|
31
|
+
showYear: boolean;
|
|
32
|
+
showOptionalText: any;
|
|
33
|
+
valueFormat: string;
|
|
34
|
+
hideOnRangeSelection: boolean;
|
|
35
|
+
hourFormat: string;
|
|
36
|
+
dateFormat: string;
|
|
37
|
+
stepHour: number;
|
|
38
|
+
stepMinute: number;
|
|
39
|
+
timeSeparator: string;
|
|
18
40
|
}>>> & {
|
|
19
41
|
"onUpdate:modelValue"?: (date: Date | Date[]) => any;
|
|
20
42
|
"onUpdate:epochTimeMillis"?: (millis?: number | number[]) => any;
|
|
@@ -22,7 +44,18 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
22
44
|
onYearChange?: (event: import('./Calendar.vue.d').CalendarYearChangeEvent) => any;
|
|
23
45
|
onDateSelect?: (date: Date | Date[]) => any;
|
|
24
46
|
}, {
|
|
47
|
+
dateFormat: string | undefined;
|
|
48
|
+
mode: "range" | "single";
|
|
49
|
+
view: "date" | "month" | "year" | undefined;
|
|
50
|
+
showOptionalText: boolean;
|
|
51
|
+
valueFormat: "date" | "millis";
|
|
25
52
|
selectionMode: "range" | "single";
|
|
53
|
+
hideOnRangeSelection: boolean | undefined;
|
|
54
|
+
showYear: boolean;
|
|
55
|
+
hourFormat: "12" | "24" | undefined;
|
|
56
|
+
timeSeparator: string | undefined;
|
|
57
|
+
stepHour: number | undefined;
|
|
58
|
+
stepMinute: number | undefined;
|
|
26
59
|
}, {}>;
|
|
27
60
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
28
61
|
export default _default;
|
|
@@ -270,6 +270,7 @@ export interface CalendarProps {
|
|
|
270
270
|
* Supports single or multiple date selection.
|
|
271
271
|
*
|
|
272
272
|
* Used with `v-model`.
|
|
273
|
+
* It should not be used with useValidator. v-model should only be used when the Calendar not used in form
|
|
273
274
|
* @defaultValue null
|
|
274
275
|
*/
|
|
275
276
|
modelValue?: Date | Date[] | null;
|
|
@@ -381,12 +382,12 @@ export interface CalendarProps {
|
|
|
381
382
|
showButtons?: boolean;
|
|
382
383
|
|
|
383
384
|
/**
|
|
384
|
-
* Enable Validator using vee-validate. Combine with
|
|
385
|
+
* Enable Validator using vee-validate. Combine with Form component that handle form validation.
|
|
385
386
|
*/
|
|
386
387
|
useValidator?: boolean;
|
|
387
388
|
|
|
388
389
|
/**
|
|
389
|
-
* When used as field in From Validation using
|
|
390
|
+
* When used as field in From Validation using Form component,
|
|
390
391
|
* specify the unique field name, match with your needs for API request.
|
|
391
392
|
*/
|
|
392
393
|
fieldName?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FieldContext, FieldState, GenericObject } from 'vee-validate';
|
|
2
2
|
import { Ref, Slot } from 'vue';
|
|
3
|
-
import { CheckboxModelValue } from '../checkbox/Checkbox.vue.d';
|
|
4
3
|
import {
|
|
5
4
|
ClassComponent,
|
|
6
5
|
GlobalComponentConstructor,
|
|
@@ -201,7 +200,7 @@ declare class Form extends ClassComponent<FormProps, FormSlots, FormEmits> {
|
|
|
201
200
|
/**
|
|
202
201
|
* Whether to keep the dialog remains visible or not after submit.
|
|
203
202
|
*/
|
|
204
|
-
stayAfterSubmit:
|
|
203
|
+
stayAfterSubmit: boolean;
|
|
205
204
|
|
|
206
205
|
/**
|
|
207
206
|
* Exposed function to clears the form fields.
|
package/components/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { default as TaskTable } from './tasktable/TaskTable.vue';
|
|
|
16
16
|
export { default as NotificationItem } from './notificationitem/NotificationItem.vue';
|
|
17
17
|
export { default as DialogImprovementTask } from './dialogimprovementtask/DialogImprovementTask.vue';
|
|
18
18
|
export { default as Comment } from './comment/Comment.vue';
|
|
19
|
+
export { default as Calendar } from '.././components/calendar/Calendar.vue';
|
|
19
20
|
export { default as Animation } from './animation/Animation.vue';
|
|
20
21
|
export { default as ApproverInfo } from './approverinfo/ApproverInfo.vue';
|
|
21
22
|
export { default as Badge } from './badge/Badge.vue';
|
|
@@ -29,7 +30,6 @@ export { default as ButtonRadio } from './buttonradio/ButtonRadio.vue';
|
|
|
29
30
|
export { default as ButtonSearch } from './buttonsearch/ButtonSearch.vue';
|
|
30
31
|
export { default as ButtonToggle } from './buttontoggle/ButtonToggle.vue';
|
|
31
32
|
export { default as ToggleSwitch } from './toggleswitch/ToggleSwitch.vue';
|
|
32
|
-
export { default as Calendar } from './calendar/Calendar.vue';
|
|
33
33
|
export { default as Card } from './card/Card.vue';
|
|
34
34
|
export { default as Checkbox } from './checkbox/Checkbox.vue';
|
|
35
35
|
export { default as CodeSnippet } from './codesnippet/CodeSnippet.vue';
|