@vonage/vivid-vue 3.2.2 → 3.3.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/dist/generated/components/VAccordion.d.ts +9 -44
- package/dist/generated/components/VAccordion.vue2.d.ts +45 -0
- package/dist/generated/components/VAccordion.vue3.d.ts +53 -0
- package/dist/generated/components/VAccordionItem.d.ts +9 -151
- package/dist/generated/components/VAccordionItem.vue2.d.ts +152 -0
- package/dist/generated/components/VAccordionItem.vue3.d.ts +160 -0
- package/dist/generated/components/VActionGroup.d.ts +9 -90
- package/dist/generated/components/VActionGroup.vue2.d.ts +91 -0
- package/dist/generated/components/VActionGroup.vue3.d.ts +98 -0
- package/dist/generated/components/VAvatar.d.ts +9 -116
- package/dist/generated/components/VAvatar.vue2.d.ts +117 -0
- package/dist/generated/components/VAvatar.vue3.d.ts +124 -0
- package/dist/generated/components/VBadge.d.ts +9 -119
- package/dist/generated/components/VBadge.vue2.d.ts +120 -0
- package/dist/generated/components/VBadge.vue3.d.ts +127 -0
- package/dist/generated/components/VBanner.d.ts +9 -107
- package/dist/generated/components/VBanner.vue2.d.ts +108 -0
- package/dist/generated/components/VBanner.vue3.d.ts +115 -0
- package/dist/generated/components/VBreadcrumb.d.ts +9 -27
- package/dist/generated/components/VBreadcrumb.vue2.d.ts +28 -0
- package/dist/generated/components/VBreadcrumb.vue3.d.ts +35 -0
- package/dist/generated/components/VBreadcrumbItem.d.ts +9 -156
- package/dist/generated/components/VBreadcrumbItem.vue2.d.ts +157 -0
- package/dist/generated/components/VBreadcrumbItem.vue3.d.ts +164 -0
- package/dist/generated/components/VButton.d.ts +9 -369
- package/dist/generated/components/VButton.vue2.d.ts +370 -0
- package/dist/generated/components/VButton.vue3.d.ts +377 -0
- package/dist/generated/components/VCalendar.d.ts +9 -109
- package/dist/generated/components/VCalendar.vue2.d.ts +110 -0
- package/dist/generated/components/VCalendar.vue3.d.ts +117 -0
- package/dist/generated/components/VCalendarEvent.d.ts +9 -132
- package/dist/generated/components/VCalendarEvent.vue2.d.ts +133 -0
- package/dist/generated/components/VCalendarEvent.vue3.d.ts +140 -0
- package/dist/generated/components/VCard.d.ts +9 -110
- package/dist/generated/components/VCard.vue2.d.ts +111 -0
- package/dist/generated/components/VCard.vue3.d.ts +118 -0
- package/dist/generated/components/VCheckbox.d.ts +9 -180
- package/dist/generated/components/VCheckbox.vue2.d.ts +181 -0
- package/dist/generated/components/VCheckbox.vue3.d.ts +189 -0
- package/dist/generated/components/VCombobox.d.ts +9 -223
- package/dist/generated/components/VCombobox.vue2.d.ts +224 -0
- package/dist/generated/components/VCombobox.vue3.d.ts +232 -0
- package/dist/generated/components/VDataGrid.d.ts +9 -36
- package/dist/generated/components/VDataGrid.vue2.d.ts +37 -0
- package/dist/generated/components/VDataGrid.vue3.d.ts +44 -0
- package/dist/generated/components/VDialog.d.ts +9 -122
- package/dist/generated/components/VDialog.vue2.d.ts +123 -0
- package/dist/generated/components/VDialog.vue3.d.ts +131 -0
- package/dist/generated/components/VDivider.d.ts +9 -57
- package/dist/generated/components/VDivider.vue2.d.ts +58 -0
- package/dist/generated/components/VDivider.vue3.d.ts +65 -0
- package/dist/generated/components/VFab.d.ts +9 -309
- package/dist/generated/components/VFab.vue2.d.ts +310 -0
- package/dist/generated/components/VFab.vue3.d.ts +317 -0
- package/dist/generated/components/VHeader.d.ts +9 -57
- package/dist/generated/components/VHeader.vue2.d.ts +58 -0
- package/dist/generated/components/VHeader.vue3.d.ts +65 -0
- package/dist/generated/components/VIcon.d.ts +9 -65
- package/dist/generated/components/VIcon.vue2.d.ts +66 -0
- package/dist/generated/components/VIcon.vue3.d.ts +73 -0
- package/dist/generated/components/VLayout.d.ts +9 -87
- package/dist/generated/components/VLayout.vue2.d.ts +103 -0
- package/dist/generated/components/VLayout.vue3.d.ts +110 -0
- package/dist/generated/components/VMenu.d.ts +9 -72
- package/dist/generated/components/VMenu.vue2.d.ts +73 -0
- package/dist/generated/components/VMenu.vue3.d.ts +80 -0
- package/dist/generated/components/VMenuItem.d.ts +9 -134
- package/dist/generated/components/VMenuItem.vue2.d.ts +135 -0
- package/dist/generated/components/VMenuItem.vue3.d.ts +144 -0
- package/dist/generated/components/VNav.d.ts +9 -28
- package/dist/generated/components/VNav.vue2.d.ts +29 -0
- package/dist/generated/components/VNav.vue3.d.ts +36 -0
- package/dist/generated/components/VNavDisclosure.d.ts +9 -69
- package/dist/generated/components/VNavDisclosure.vue2.d.ts +70 -0
- package/dist/generated/components/VNavDisclosure.vue3.d.ts +77 -0
- package/dist/generated/components/VNavItem.d.ts +9 -180
- package/dist/generated/components/VNavItem.vue2.d.ts +181 -0
- package/dist/generated/components/VNavItem.vue3.d.ts +188 -0
- package/dist/generated/components/VNote.d.ts +9 -68
- package/dist/generated/components/VNote.vue2.d.ts +69 -0
- package/dist/generated/components/VNote.vue3.d.ts +76 -0
- package/dist/generated/components/VNumberField.d.ts +9 -381
- package/dist/generated/components/VNumberField.vue2.d.ts +382 -0
- package/dist/generated/components/VNumberField.vue3.d.ts +390 -0
- package/dist/generated/components/VOption.d.ts +9 -124
- package/dist/generated/components/VOption.vue2.d.ts +125 -0
- package/dist/generated/components/VOption.vue3.d.ts +132 -0
- package/dist/generated/components/VPopup.d.ts +9 -132
- package/dist/generated/components/VPopup.vue2.d.ts +133 -0
- package/dist/generated/components/VPopup.vue3.d.ts +140 -0
- package/dist/generated/components/VProgress.d.ts +9 -114
- package/dist/generated/components/VProgress.vue2.d.ts +115 -0
- package/dist/generated/components/VProgress.vue3.d.ts +122 -0
- package/dist/generated/components/VProgressRing.d.ts +9 -105
- package/dist/generated/components/VProgressRing.vue2.d.ts +106 -0
- package/dist/generated/components/VProgressRing.vue3.d.ts +113 -0
- package/dist/generated/components/VRadio.d.ts +9 -180
- package/dist/generated/components/VRadio.vue2.d.ts +181 -0
- package/dist/generated/components/VRadio.vue3.d.ts +189 -0
- package/dist/generated/components/VRadioGroup.d.ts +9 -119
- package/dist/generated/components/VRadioGroup.vue2.d.ts +120 -0
- package/dist/generated/components/VRadioGroup.vue3.d.ts +128 -0
- package/dist/generated/components/VSelect.d.ts +9 -237
- package/dist/generated/components/VSelect.vue2.d.ts +238 -0
- package/dist/generated/components/VSelect.vue3.d.ts +246 -0
- package/dist/generated/components/VSideDrawer.d.ts +9 -87
- package/dist/generated/components/VSideDrawer.vue2.d.ts +88 -0
- package/dist/generated/components/VSideDrawer.vue3.d.ts +95 -0
- package/dist/generated/components/VSlider.d.ts +9 -217
- package/dist/generated/components/VSlider.vue2.d.ts +218 -0
- package/dist/generated/components/VSlider.vue3.d.ts +226 -0
- package/dist/generated/components/VSwitch.d.ts +9 -51
- package/dist/generated/components/VSwitch.vue2.d.ts +52 -0
- package/dist/generated/components/VSwitch.vue3.d.ts +59 -0
- package/dist/generated/components/VTab.d.ts +9 -107
- package/dist/generated/components/VTab.vue2.d.ts +108 -0
- package/dist/generated/components/VTab.vue3.d.ts +115 -0
- package/dist/generated/components/VTabPanel.d.ts +9 -27
- package/dist/generated/components/VTabPanel.vue2.d.ts +28 -0
- package/dist/generated/components/VTabPanel.vue3.d.ts +35 -0
- package/dist/generated/components/VTabs.d.ts +9 -72
- package/dist/generated/components/VTabs.vue2.d.ts +73 -0
- package/dist/generated/components/VTabs.vue3.d.ts +81 -0
- package/dist/generated/components/VTag.d.ts +9 -164
- package/dist/generated/components/VTag.vue2.d.ts +165 -0
- package/dist/generated/components/VTag.vue3.d.ts +172 -0
- package/dist/generated/components/VTagGroup.d.ts +9 -27
- package/dist/generated/components/VTagGroup.vue2.d.ts +28 -0
- package/dist/generated/components/VTagGroup.vue3.d.ts +35 -0
- package/dist/generated/components/VTextArea.d.ts +9 -96
- package/dist/generated/components/VTextArea.vue2.d.ts +28 -0
- package/dist/generated/components/VTextArea.vue3.d.ts +35 -0
- package/dist/generated/components/VTextField.d.ts +9 -381
- package/dist/generated/components/VTextField.vue2.d.ts +382 -0
- package/dist/generated/components/VTextField.vue3.d.ts +390 -0
- package/dist/generated/components/VTooltip.d.ts +9 -149
- package/dist/generated/components/VTooltip.vue2.d.ts +72 -0
- package/dist/generated/components/VTooltip.vue3.d.ts +79 -0
- package/dist/generated/components/VTreeItem.d.ts +9 -104
- package/dist/generated/components/VTreeItem.vue2.d.ts +105 -0
- package/dist/generated/components/VTreeItem.vue3.d.ts +114 -0
- package/dist/generated/components/VTreeView.d.ts +9 -44
- package/dist/generated/components/VTreeView.vue2.d.ts +45 -0
- package/dist/generated/components/VTreeView.vue3.d.ts +52 -0
- package/dist/index.es.js +114 -132
- package/dist/index.umd.js +1 -1
- package/dist/web-types.json +15 -94
- package/package.json +6 -3
|
@@ -1,110 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ariaCurrent: {
|
|
11
|
-
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* The date within a week of choice.
|
|
16
|
-
* Accepts any parameter acceptable by the `Date()` constructor.
|
|
17
|
-
*/
|
|
18
|
-
datetime: {
|
|
19
|
-
type: PropType<string | Date>;
|
|
20
|
-
default: undefined;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* The day to show as the first within a work week.
|
|
24
|
-
* Accepts either Sunday or Monday
|
|
25
|
-
* Calendar will - programmatically - default to Monday if not specified
|
|
26
|
-
*
|
|
27
|
-
* (only applicable for views of more than a single day)
|
|
28
|
-
*/
|
|
29
|
-
startDay: {
|
|
30
|
-
type: PropType<"sunday" | "monday">;
|
|
31
|
-
default: undefined;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* A locale string or array of locale strings that contain one or more language or locale tags.
|
|
35
|
-
* If you include more than one locale string,
|
|
36
|
-
* list them in descending order of priority so that the first entry is the preferred locale.
|
|
37
|
-
* If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
38
|
-
* This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
39
|
-
* e.g. en-US | en-US, he-IL
|
|
40
|
-
*/
|
|
41
|
-
locales: {
|
|
42
|
-
type: PropType<string | string[]>;
|
|
43
|
-
default: undefined;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* The convention of displayed time in which the day runs from midnight to midnight and is divided into 24 or 12 hours.
|
|
47
|
-
* Unless provided, choice will be set according to local time preference (e.g. US = 12, IL = 24)
|
|
48
|
-
*/
|
|
49
|
-
hour12: {
|
|
50
|
-
type: PropType<boolean>;
|
|
51
|
-
default: undefined;
|
|
52
|
-
};
|
|
53
|
-
}, {
|
|
54
|
-
componentName: import("vue").Ref<string>;
|
|
55
|
-
element: import("vue").Ref<Calendar | null>;
|
|
56
|
-
}, import("vue").Data, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "focus" | "blur" | "keydown" | "keyup" | "input")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
-
/**
|
|
58
|
-
* Indicates the element that represents the current item within a container or set of related elements.
|
|
59
|
-
*/
|
|
60
|
-
ariaCurrent: {
|
|
61
|
-
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
62
|
-
default: undefined;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* The date within a week of choice.
|
|
66
|
-
* Accepts any parameter acceptable by the `Date()` constructor.
|
|
67
|
-
*/
|
|
68
|
-
datetime: {
|
|
69
|
-
type: PropType<string | Date>;
|
|
70
|
-
default: undefined;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* The day to show as the first within a work week.
|
|
74
|
-
* Accepts either Sunday or Monday
|
|
75
|
-
* Calendar will - programmatically - default to Monday if not specified
|
|
76
|
-
*
|
|
77
|
-
* (only applicable for views of more than a single day)
|
|
78
|
-
*/
|
|
79
|
-
startDay: {
|
|
80
|
-
type: PropType<"sunday" | "monday">;
|
|
81
|
-
default: undefined;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* A locale string or array of locale strings that contain one or more language or locale tags.
|
|
85
|
-
* If you include more than one locale string,
|
|
86
|
-
* list them in descending order of priority so that the first entry is the preferred locale.
|
|
87
|
-
* If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
88
|
-
* This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
89
|
-
* e.g. en-US | en-US, he-IL
|
|
90
|
-
*/
|
|
91
|
-
locales: {
|
|
92
|
-
type: PropType<string | string[]>;
|
|
93
|
-
default: undefined;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* The convention of displayed time in which the day runs from midnight to midnight and is divided into 24 or 12 hours.
|
|
97
|
-
* Unless provided, choice will be set according to local time preference (e.g. US = 12, IL = 24)
|
|
98
|
-
*/
|
|
99
|
-
hour12: {
|
|
100
|
-
type: PropType<boolean>;
|
|
101
|
-
default: undefined;
|
|
102
|
-
};
|
|
103
|
-
}>>, {
|
|
104
|
-
ariaCurrent: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
105
|
-
datetime: string | Date;
|
|
106
|
-
startDay: "sunday" | "monday";
|
|
107
|
-
locales: string | string[];
|
|
108
|
-
hour12: boolean;
|
|
109
|
-
}>;
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import VCalendarVue2 from './VCalendar.vue2';
|
|
3
|
+
import VCalendarVue3 from './VCalendar.vue3';
|
|
4
|
+
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
type VNodeData = VNode["data"];
|
|
7
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false;
|
|
8
|
+
type VueVersion = IsAny<VNodeData> extends true ? 'v3' : 'v2';
|
|
9
|
+
declare const _default: VueVersion extends 'v2' ? typeof VCalendarVue2 : typeof VCalendarVue3;
|
|
110
10
|
export default _default;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { Calendar } from '@vonage/vivid/lib/calendar/calendar';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for calendar
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: import("vue/types/v3-define-component").DefineComponent<{
|
|
7
|
+
/**
|
|
8
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
9
|
+
*/
|
|
10
|
+
ariaCurrent: {
|
|
11
|
+
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The date within a week of choice.
|
|
16
|
+
* Accepts any parameter acceptable by the `Date()` constructor.
|
|
17
|
+
*/
|
|
18
|
+
datetime: {
|
|
19
|
+
type: PropType<string | Date>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The day to show as the first within a work week.
|
|
24
|
+
* Accepts either Sunday or Monday
|
|
25
|
+
* Calendar will - programmatically - default to Monday if not specified
|
|
26
|
+
*
|
|
27
|
+
* (only applicable for views of more than a single day)
|
|
28
|
+
*/
|
|
29
|
+
startDay: {
|
|
30
|
+
type: PropType<"sunday" | "monday">;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A locale string or array of locale strings that contain one or more language or locale tags.
|
|
35
|
+
* If you include more than one locale string,
|
|
36
|
+
* list them in descending order of priority so that the first entry is the preferred locale.
|
|
37
|
+
* If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
38
|
+
* This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
39
|
+
* e.g. en-US | en-US, he-IL
|
|
40
|
+
*/
|
|
41
|
+
locales: {
|
|
42
|
+
type: PropType<string | string[]>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The convention of displayed time in which the day runs from midnight to midnight and is divided into 24 or 12 hours.
|
|
47
|
+
* Unless provided, choice will be set according to local time preference (e.g. US = 12, IL = 24)
|
|
48
|
+
*/
|
|
49
|
+
hour12: {
|
|
50
|
+
type: PropType<boolean>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
componentName: import("vue").Ref<string>;
|
|
55
|
+
element: import("vue").Ref<Calendar | null>;
|
|
56
|
+
}, import("vue").Data, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "focus" | "blur" | "keydown" | "keyup" | "input")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
/**
|
|
58
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
59
|
+
*/
|
|
60
|
+
ariaCurrent: {
|
|
61
|
+
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The date within a week of choice.
|
|
66
|
+
* Accepts any parameter acceptable by the `Date()` constructor.
|
|
67
|
+
*/
|
|
68
|
+
datetime: {
|
|
69
|
+
type: PropType<string | Date>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* The day to show as the first within a work week.
|
|
74
|
+
* Accepts either Sunday or Monday
|
|
75
|
+
* Calendar will - programmatically - default to Monday if not specified
|
|
76
|
+
*
|
|
77
|
+
* (only applicable for views of more than a single day)
|
|
78
|
+
*/
|
|
79
|
+
startDay: {
|
|
80
|
+
type: PropType<"sunday" | "monday">;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* A locale string or array of locale strings that contain one or more language or locale tags.
|
|
85
|
+
* If you include more than one locale string,
|
|
86
|
+
* list them in descending order of priority so that the first entry is the preferred locale.
|
|
87
|
+
* If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
88
|
+
* This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
89
|
+
* e.g. en-US | en-US, he-IL
|
|
90
|
+
*/
|
|
91
|
+
locales: {
|
|
92
|
+
type: PropType<string | string[]>;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* The convention of displayed time in which the day runs from midnight to midnight and is divided into 24 or 12 hours.
|
|
97
|
+
* Unless provided, choice will be set according to local time preference (e.g. US = 12, IL = 24)
|
|
98
|
+
*/
|
|
99
|
+
hour12: {
|
|
100
|
+
type: PropType<boolean>;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
}>>, {
|
|
104
|
+
ariaCurrent: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
105
|
+
datetime: string | Date;
|
|
106
|
+
startDay: "sunday" | "monday";
|
|
107
|
+
locales: string | string[];
|
|
108
|
+
hour12: boolean;
|
|
109
|
+
}>;
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { Calendar } from '@vonage/vivid/lib/calendar/calendar';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for calendar
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
/**
|
|
8
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
9
|
+
*/
|
|
10
|
+
ariaCurrent: {
|
|
11
|
+
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The date within a week of choice.
|
|
16
|
+
* Accepts any parameter acceptable by the `Date()` constructor.
|
|
17
|
+
*/
|
|
18
|
+
datetime: {
|
|
19
|
+
type: PropType<string | Date>;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The day to show as the first within a work week.
|
|
24
|
+
* Accepts either Sunday or Monday
|
|
25
|
+
* Calendar will - programmatically - default to Monday if not specified
|
|
26
|
+
*
|
|
27
|
+
* (only applicable for views of more than a single day)
|
|
28
|
+
*/
|
|
29
|
+
startDay: {
|
|
30
|
+
type: PropType<"sunday" | "monday">;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A locale string or array of locale strings that contain one or more language or locale tags.
|
|
35
|
+
* If you include more than one locale string,
|
|
36
|
+
* list them in descending order of priority so that the first entry is the preferred locale.
|
|
37
|
+
* If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
38
|
+
* This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
39
|
+
* e.g. en-US | en-US, he-IL
|
|
40
|
+
*/
|
|
41
|
+
locales: {
|
|
42
|
+
type: PropType<string | string[]>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The convention of displayed time in which the day runs from midnight to midnight and is divided into 24 or 12 hours.
|
|
47
|
+
* Unless provided, choice will be set according to local time preference (e.g. US = 12, IL = 24)
|
|
48
|
+
*/
|
|
49
|
+
hour12: {
|
|
50
|
+
type: PropType<boolean>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
componentName: import("vue").Ref<string>;
|
|
55
|
+
element: import("vue").Ref<Calendar | null>;
|
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "focus" | "blur" | "keydown" | "keyup" | "input")[], "click" | "focus" | "blur" | "keydown" | "keyup" | "input", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
/**
|
|
58
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
59
|
+
*/
|
|
60
|
+
ariaCurrent: {
|
|
61
|
+
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The date within a week of choice.
|
|
66
|
+
* Accepts any parameter acceptable by the `Date()` constructor.
|
|
67
|
+
*/
|
|
68
|
+
datetime: {
|
|
69
|
+
type: PropType<string | Date>;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* The day to show as the first within a work week.
|
|
74
|
+
* Accepts either Sunday or Monday
|
|
75
|
+
* Calendar will - programmatically - default to Monday if not specified
|
|
76
|
+
*
|
|
77
|
+
* (only applicable for views of more than a single day)
|
|
78
|
+
*/
|
|
79
|
+
startDay: {
|
|
80
|
+
type: PropType<"sunday" | "monday">;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* A locale string or array of locale strings that contain one or more language or locale tags.
|
|
85
|
+
* If you include more than one locale string,
|
|
86
|
+
* list them in descending order of priority so that the first entry is the preferred locale.
|
|
87
|
+
* If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
88
|
+
* This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
|
|
89
|
+
* e.g. en-US | en-US, he-IL
|
|
90
|
+
*/
|
|
91
|
+
locales: {
|
|
92
|
+
type: PropType<string | string[]>;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* The convention of displayed time in which the day runs from midnight to midnight and is divided into 24 or 12 hours.
|
|
97
|
+
* Unless provided, choice will be set according to local time preference (e.g. US = 12, IL = 24)
|
|
98
|
+
*/
|
|
99
|
+
hour12: {
|
|
100
|
+
type: PropType<boolean>;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
}>> & {
|
|
104
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
ariaCurrent: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
112
|
+
datetime: string | Date;
|
|
113
|
+
startDay: "sunday" | "monday";
|
|
114
|
+
locales: string | string[];
|
|
115
|
+
hour12: boolean;
|
|
116
|
+
}>;
|
|
117
|
+
export default _default;
|
|
@@ -1,133 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
ariaCurrent: {
|
|
11
|
-
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
12
|
-
default: undefined;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* the heading of the event
|
|
16
|
-
*/
|
|
17
|
-
heading: {
|
|
18
|
-
type: PropType<string>;
|
|
19
|
-
default: undefined;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* the description of the event
|
|
23
|
-
*/
|
|
24
|
-
description: {
|
|
25
|
-
type: PropType<string>;
|
|
26
|
-
default: undefined;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* The connotation the calendar event should have.
|
|
30
|
-
*/
|
|
31
|
-
connotation: {
|
|
32
|
-
type: PropType<"accent" | "cta" | "success" | "alert" | "warning" | "information" | "announcement">;
|
|
33
|
-
default: undefined;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* The appearance the calendar event should have.
|
|
37
|
-
*/
|
|
38
|
-
appearance: {
|
|
39
|
-
type: PropType<"filled" | "duotone" | "subtle">;
|
|
40
|
-
default: undefined;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* sets card display precendence and indentation
|
|
44
|
-
*/
|
|
45
|
-
overlapCount: {
|
|
46
|
-
type: PropType<number>;
|
|
47
|
-
default: undefined;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* time of day event starts
|
|
51
|
-
*/
|
|
52
|
-
start: {
|
|
53
|
-
type: PropType<number>;
|
|
54
|
-
default: undefined;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* event's time duration in hours
|
|
58
|
-
*/
|
|
59
|
-
duration: {
|
|
60
|
-
type: PropType<number>;
|
|
61
|
-
default: undefined;
|
|
62
|
-
};
|
|
63
|
-
}, {
|
|
64
|
-
componentName: import("vue").Ref<string>;
|
|
65
|
-
element: import("vue").Ref<CalendarEvent | null>;
|
|
66
|
-
}, import("vue").Data, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "focus" | "blur" | "keydown" | "keyup" | "input")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
-
/**
|
|
68
|
-
* Indicates the element that represents the current item within a container or set of related elements.
|
|
69
|
-
*/
|
|
70
|
-
ariaCurrent: {
|
|
71
|
-
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
72
|
-
default: undefined;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* the heading of the event
|
|
76
|
-
*/
|
|
77
|
-
heading: {
|
|
78
|
-
type: PropType<string>;
|
|
79
|
-
default: undefined;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* the description of the event
|
|
83
|
-
*/
|
|
84
|
-
description: {
|
|
85
|
-
type: PropType<string>;
|
|
86
|
-
default: undefined;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* The connotation the calendar event should have.
|
|
90
|
-
*/
|
|
91
|
-
connotation: {
|
|
92
|
-
type: PropType<"accent" | "cta" | "success" | "alert" | "warning" | "information" | "announcement">;
|
|
93
|
-
default: undefined;
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* The appearance the calendar event should have.
|
|
97
|
-
*/
|
|
98
|
-
appearance: {
|
|
99
|
-
type: PropType<"filled" | "duotone" | "subtle">;
|
|
100
|
-
default: undefined;
|
|
101
|
-
};
|
|
102
|
-
/**
|
|
103
|
-
* sets card display precendence and indentation
|
|
104
|
-
*/
|
|
105
|
-
overlapCount: {
|
|
106
|
-
type: PropType<number>;
|
|
107
|
-
default: undefined;
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* time of day event starts
|
|
111
|
-
*/
|
|
112
|
-
start: {
|
|
113
|
-
type: PropType<number>;
|
|
114
|
-
default: undefined;
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* event's time duration in hours
|
|
118
|
-
*/
|
|
119
|
-
duration: {
|
|
120
|
-
type: PropType<number>;
|
|
121
|
-
default: undefined;
|
|
122
|
-
};
|
|
123
|
-
}>>, {
|
|
124
|
-
ariaCurrent: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
125
|
-
heading: string;
|
|
126
|
-
appearance: "filled" | "duotone" | "subtle";
|
|
127
|
-
connotation: "accent" | "cta" | "success" | "alert" | "warning" | "information" | "announcement";
|
|
128
|
-
description: string;
|
|
129
|
-
overlapCount: number;
|
|
130
|
-
start: number;
|
|
131
|
-
duration: number;
|
|
132
|
-
}>;
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import VCalendarEventVue2 from './VCalendarEvent.vue2';
|
|
3
|
+
import VCalendarEventVue3 from './VCalendarEvent.vue3';
|
|
4
|
+
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
type VNodeData = VNode["data"];
|
|
7
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false;
|
|
8
|
+
type VueVersion = IsAny<VNodeData> extends true ? 'v3' : 'v2';
|
|
9
|
+
declare const _default: VueVersion extends 'v2' ? typeof VCalendarEventVue2 : typeof VCalendarEventVue3;
|
|
133
10
|
export default _default;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import type { CalendarEvent } from '@vonage/vivid/lib/calendar-event/calendar-event';
|
|
3
|
+
/**
|
|
4
|
+
* Base class for calendar-event
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: import("vue/types/v3-define-component").DefineComponent<{
|
|
7
|
+
/**
|
|
8
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
9
|
+
*/
|
|
10
|
+
ariaCurrent: {
|
|
11
|
+
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* the heading of the event
|
|
16
|
+
*/
|
|
17
|
+
heading: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* the description of the event
|
|
23
|
+
*/
|
|
24
|
+
description: {
|
|
25
|
+
type: PropType<string>;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The connotation the calendar event should have.
|
|
30
|
+
*/
|
|
31
|
+
connotation: {
|
|
32
|
+
type: PropType<"accent" | "cta" | "success" | "alert" | "warning" | "information" | "announcement">;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The appearance the calendar event should have.
|
|
37
|
+
*/
|
|
38
|
+
appearance: {
|
|
39
|
+
type: PropType<"filled" | "duotone" | "subtle">;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* sets card display precendence and indentation
|
|
44
|
+
*/
|
|
45
|
+
overlapCount: {
|
|
46
|
+
type: PropType<number>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* time of day event starts
|
|
51
|
+
*/
|
|
52
|
+
start: {
|
|
53
|
+
type: PropType<number>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* event's time duration in hours
|
|
58
|
+
*/
|
|
59
|
+
duration: {
|
|
60
|
+
type: PropType<number>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
componentName: import("vue").Ref<string>;
|
|
65
|
+
element: import("vue").Ref<CalendarEvent | null>;
|
|
66
|
+
}, import("vue").Data, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("click" | "focus" | "blur" | "keydown" | "keyup" | "input")[], string, Readonly<import("vue").ExtractPropTypes<{
|
|
67
|
+
/**
|
|
68
|
+
* Indicates the element that represents the current item within a container or set of related elements.
|
|
69
|
+
*/
|
|
70
|
+
ariaCurrent: {
|
|
71
|
+
type: PropType<"page" | "step" | "location" | "date" | "time" | "true" | "false">;
|
|
72
|
+
default: undefined;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* the heading of the event
|
|
76
|
+
*/
|
|
77
|
+
heading: {
|
|
78
|
+
type: PropType<string>;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* the description of the event
|
|
83
|
+
*/
|
|
84
|
+
description: {
|
|
85
|
+
type: PropType<string>;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* The connotation the calendar event should have.
|
|
90
|
+
*/
|
|
91
|
+
connotation: {
|
|
92
|
+
type: PropType<"accent" | "cta" | "success" | "alert" | "warning" | "information" | "announcement">;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* The appearance the calendar event should have.
|
|
97
|
+
*/
|
|
98
|
+
appearance: {
|
|
99
|
+
type: PropType<"filled" | "duotone" | "subtle">;
|
|
100
|
+
default: undefined;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* sets card display precendence and indentation
|
|
104
|
+
*/
|
|
105
|
+
overlapCount: {
|
|
106
|
+
type: PropType<number>;
|
|
107
|
+
default: undefined;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* time of day event starts
|
|
111
|
+
*/
|
|
112
|
+
start: {
|
|
113
|
+
type: PropType<number>;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* event's time duration in hours
|
|
118
|
+
*/
|
|
119
|
+
duration: {
|
|
120
|
+
type: PropType<number>;
|
|
121
|
+
default: undefined;
|
|
122
|
+
};
|
|
123
|
+
}>>, {
|
|
124
|
+
ariaCurrent: "page" | "step" | "location" | "date" | "time" | "true" | "false";
|
|
125
|
+
heading: string;
|
|
126
|
+
appearance: "filled" | "duotone" | "subtle";
|
|
127
|
+
connotation: "accent" | "cta" | "success" | "alert" | "warning" | "information" | "announcement";
|
|
128
|
+
description: string;
|
|
129
|
+
overlapCount: number;
|
|
130
|
+
start: number;
|
|
131
|
+
duration: number;
|
|
132
|
+
}>;
|
|
133
|
+
export default _default;
|