@vonage/vivid-vue 4.21.1 → 4.22.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.
Files changed (126) hide show
  1. package/generated/components/VAccordion.types.d.ts +108 -0
  2. package/generated/components/VAccordionItem.types.d.ts +136 -0
  3. package/generated/components/VAccordionItem.vue2.d.ts +1 -1
  4. package/generated/components/VAccordionItem.vue3.d.ts +1 -1
  5. package/generated/components/VActionGroup.types.d.ts +101 -0
  6. package/generated/components/VAlert.types.d.ts +159 -0
  7. package/generated/components/VAlert.vue2.d.ts +1 -1
  8. package/generated/components/VAlert.vue3.d.ts +1 -1
  9. package/generated/components/VAudioPlayer.types.d.ts +115 -0
  10. package/generated/components/VAvatar.types.d.ts +115 -0
  11. package/generated/components/VAvatar.vue2.d.ts +1 -1
  12. package/generated/components/VAvatar.vue3.d.ts +1 -1
  13. package/generated/components/VBadge.types.d.ts +115 -0
  14. package/generated/components/VBadge.vue2.d.ts +1 -1
  15. package/generated/components/VBadge.vue3.d.ts +1 -1
  16. package/generated/components/VBanner.types.d.ts +101 -0
  17. package/generated/components/VBanner.vue2.d.ts +1 -1
  18. package/generated/components/VBanner.vue3.d.ts +1 -1
  19. package/generated/components/VBreadcrumb.types.d.ts +89 -0
  20. package/generated/components/VBreadcrumbItem.types.d.ts +126 -0
  21. package/generated/components/VButton.types.d.ts +224 -0
  22. package/generated/components/VButton.vue2.d.ts +1 -1
  23. package/generated/components/VButton.vue3.d.ts +1 -1
  24. package/generated/components/VCalendar.types.d.ts +120 -0
  25. package/generated/components/VCalendarEvent.types.d.ts +117 -0
  26. package/generated/components/VCard.types.d.ts +118 -0
  27. package/generated/components/VCard.vue2.d.ts +1 -1
  28. package/generated/components/VCard.vue3.d.ts +1 -1
  29. package/generated/components/VCheckbox.types.d.ts +185 -0
  30. package/generated/components/VCombobox.types.d.ts +200 -0
  31. package/generated/components/VCombobox.vue2.d.ts +1 -1
  32. package/generated/components/VCombobox.vue3.d.ts +1 -1
  33. package/generated/components/VDataGrid.types.d.ts +129 -0
  34. package/generated/components/VDataGridCell.types.d.ts +161 -0
  35. package/generated/components/VDataGridRow.types.d.ts +135 -0
  36. package/generated/components/VDatePicker.types.d.ts +155 -0
  37. package/generated/components/VDateRangePicker.types.d.ts +213 -0
  38. package/generated/components/VDateTimePicker.types.d.ts +183 -0
  39. package/generated/components/VDialPad.types.d.ts +195 -0
  40. package/generated/components/VDialog.types.d.ts +174 -0
  41. package/generated/components/VDialog.vue2.d.ts +1 -1
  42. package/generated/components/VDialog.vue3.d.ts +1 -1
  43. package/generated/components/VDivider.types.d.ts +97 -0
  44. package/generated/components/VEmptyState.types.d.ts +107 -0
  45. package/generated/components/VEmptyState.vue2.d.ts +1 -1
  46. package/generated/components/VEmptyState.vue3.d.ts +1 -1
  47. package/generated/components/VFab.types.d.ts +168 -0
  48. package/generated/components/VFab.vue2.d.ts +1 -1
  49. package/generated/components/VFab.vue3.d.ts +1 -1
  50. package/generated/components/VFilePicker.types.d.ts +172 -0
  51. package/generated/components/VHeader.types.d.ts +97 -0
  52. package/generated/components/VIcon.types.d.ts +100 -0
  53. package/generated/components/VIcon.vue2.d.ts +1 -1
  54. package/generated/components/VIcon.vue3.d.ts +1 -1
  55. package/generated/components/VLayout.types.d.ts +109 -0
  56. package/generated/components/VMenu.types.d.ts +141 -0
  57. package/generated/components/VMenuItem.types.d.ts +171 -0
  58. package/generated/components/VMenuItem.vue2.d.ts +1 -1
  59. package/generated/components/VMenuItem.vue3.d.ts +1 -1
  60. package/generated/components/VNav.types.d.ts +89 -0
  61. package/generated/components/VNavDisclosure.types.d.ts +122 -0
  62. package/generated/components/VNavDisclosure.vue2.d.ts +1 -1
  63. package/generated/components/VNavDisclosure.vue3.d.ts +1 -1
  64. package/generated/components/VNavItem.types.d.ts +143 -0
  65. package/generated/components/VNavItem.vue2.d.ts +1 -1
  66. package/generated/components/VNavItem.vue3.d.ts +1 -1
  67. package/generated/components/VNote.types.d.ts +100 -0
  68. package/generated/components/VNote.vue2.d.ts +1 -1
  69. package/generated/components/VNote.vue3.d.ts +1 -1
  70. package/generated/components/VNumberField.types.d.ts +219 -0
  71. package/generated/components/VNumberField.vue2.d.ts +1 -1
  72. package/generated/components/VNumberField.vue3.d.ts +1 -1
  73. package/generated/components/VOption.types.d.ts +126 -0
  74. package/generated/components/VOption.vue2.d.ts +16 -1
  75. package/generated/components/VOption.vue3.d.ts +16 -1
  76. package/generated/components/VPagination.types.d.ts +118 -0
  77. package/generated/components/VProgress.types.d.ts +117 -0
  78. package/generated/components/VProgressRing.types.d.ts +107 -0
  79. package/generated/components/VRadio.types.d.ts +153 -0
  80. package/generated/components/VRadioGroup.types.d.ts +140 -0
  81. package/generated/components/VRangeSlider.types.d.ts +238 -0
  82. package/generated/components/VRichTextEditor.types.d.ts +91 -0
  83. package/generated/components/VRichTextEditor.vue2.d.ts +2 -1
  84. package/generated/components/VRichTextEditor.vue3.d.ts +2 -1
  85. package/generated/components/VSearchableSelect.types.d.ts +216 -0
  86. package/generated/components/VSearchableSelect.vue2.d.ts +1 -1
  87. package/generated/components/VSearchableSelect.vue3.d.ts +1 -1
  88. package/generated/components/VSelect.types.d.ts +198 -0
  89. package/generated/components/VSelect.vue2.d.ts +1 -1
  90. package/generated/components/VSelect.vue3.d.ts +1 -1
  91. package/generated/components/VSelectableBox.types.d.ts +127 -0
  92. package/generated/components/VSideDrawer.types.d.ts +147 -0
  93. package/generated/components/VSlider.types.d.ts +180 -0
  94. package/generated/components/VSplitButton.types.d.ts +157 -0
  95. package/generated/components/VSplitButton.vue2.d.ts +1 -1
  96. package/generated/components/VSplitButton.vue3.d.ts +1 -1
  97. package/generated/components/VSwitch.types.d.ts +168 -0
  98. package/generated/components/VTab.types.d.ts +121 -0
  99. package/generated/components/VTab.vue2.d.ts +1 -1
  100. package/generated/components/VTab.vue3.d.ts +1 -1
  101. package/generated/components/VTabPanel.types.d.ts +89 -0
  102. package/generated/components/VTabs.types.d.ts +131 -0
  103. package/generated/components/VTag.types.d.ts +155 -0
  104. package/generated/components/VTag.vue2.d.ts +1 -1
  105. package/generated/components/VTag.vue3.d.ts +1 -1
  106. package/generated/components/VTagGroup.types.d.ts +89 -0
  107. package/generated/components/VTextArea.types.d.ts +213 -0
  108. package/generated/components/VTextField.types.d.ts +222 -0
  109. package/generated/components/VTextField.vue2.d.ts +1 -1
  110. package/generated/components/VTextField.vue3.d.ts +1 -1
  111. package/generated/components/VTimePicker.types.d.ts +167 -0
  112. package/generated/components/VToggletip.types.d.ts +109 -0
  113. package/generated/components/VTooltip.types.d.ts +100 -0
  114. package/generated/components/VTreeItem.types.d.ts +139 -0
  115. package/generated/components/VTreeItem.vue2.d.ts +1 -1
  116. package/generated/components/VTreeItem.vue3.d.ts +1 -1
  117. package/generated/components/VTreeView.types.d.ts +94 -0
  118. package/generated/components/VVideoPlayer.types.d.ts +155 -0
  119. package/generated/icons.d.ts +2 -0
  120. package/generated/types.d.ts +337 -0
  121. package/index.cjs +21 -7
  122. package/index.d.ts +1 -0
  123. package/index.js +21 -7
  124. package/package.json +2 -2
  125. package/utils/types.d.ts +7 -0
  126. package/web-types.json +34 -26
@@ -0,0 +1,135 @@
1
+ import type { VwcDataGridRowElement } from '@vonage/vivid';
2
+ export interface VDataGridRowEvents {
3
+ /**
4
+ * Fires when the element loses focus.
5
+ */
6
+ blur: FocusEvent & {
7
+ /**
8
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
9
+ */
10
+ target: VwcDataGridRowElement;
11
+ currentTarget: VwcDataGridRowElement;
12
+ };
13
+ /**
14
+ * Event that fires when a cell is clicked
15
+ */
16
+ 'cell-click': CustomEvent<{
17
+ cell: HTMLElement;
18
+ row: HTMLElement;
19
+ isHeaderCell: boolean;
20
+ columnDataKey: string;
21
+ }> & {
22
+ /**
23
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
24
+ */
25
+ target: VwcDataGridRowElement;
26
+ currentTarget: VwcDataGridRowElement;
27
+ };
28
+ /**
29
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
30
+ */
31
+ click: MouseEvent & {
32
+ /**
33
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
34
+ */
35
+ target: VwcDataGridRowElement;
36
+ currentTarget: VwcDataGridRowElement;
37
+ };
38
+ /**
39
+ * Fires when the element receives focus.
40
+ */
41
+ focus: FocusEvent & {
42
+ /**
43
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
44
+ */
45
+ target: VwcDataGridRowElement;
46
+ currentTarget: VwcDataGridRowElement;
47
+ };
48
+ /**
49
+ * Fires when the value of an element has been changed.
50
+ */
51
+ input: Event & {
52
+ /**
53
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
54
+ */
55
+ target: VwcDataGridRowElement;
56
+ currentTarget: VwcDataGridRowElement;
57
+ };
58
+ /**
59
+ * Fires when a key is pressed.
60
+ */
61
+ keydown: KeyboardEvent & {
62
+ /**
63
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
64
+ */
65
+ target: VwcDataGridRowElement;
66
+ currentTarget: VwcDataGridRowElement;
67
+ };
68
+ /**
69
+ * Fires when a key is released.
70
+ */
71
+ keyup: KeyboardEvent & {
72
+ /**
73
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
74
+ */
75
+ target: VwcDataGridRowElement;
76
+ currentTarget: VwcDataGridRowElement;
77
+ };
78
+ /**
79
+ * Fires a custom 'row-focused' event when focus is on an element (usually a cell or its contents) in the row
80
+ */
81
+ 'row-focused': CustomEvent<HTMLElement> & {
82
+ /**
83
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
84
+ */
85
+ target: VwcDataGridRowElement;
86
+ currentTarget: VwcDataGridRowElement;
87
+ };
88
+ }
89
+ export interface VDataGridRowProps {
90
+ /**
91
+ * Indicates the selected status.
92
+ */
93
+ ariaSelected?: string;
94
+ /**
95
+ * String that gets applied to the the css gridTemplateColumns attribute for the row
96
+ * x
97
+ */
98
+ gridTemplateColumns?: string;
99
+ /**
100
+ * The type of row
101
+ */
102
+ rowType?: 'default' | 'header' | 'sticky-header';
103
+ /**
104
+ * Fires when the element loses focus.
105
+ */
106
+ onBlur?: (event: VDataGridRowEvents['blur']) => void;
107
+ /**
108
+ * Event that fires when a cell is clicked
109
+ */
110
+ onCellClick?: (event: VDataGridRowEvents['cell-click']) => void;
111
+ /**
112
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
113
+ */
114
+ onClick?: (event: VDataGridRowEvents['click']) => void;
115
+ /**
116
+ * Fires when the element receives focus.
117
+ */
118
+ onFocus?: (event: VDataGridRowEvents['focus']) => void;
119
+ /**
120
+ * Fires when the value of an element has been changed.
121
+ */
122
+ onInput?: (event: VDataGridRowEvents['input']) => void;
123
+ /**
124
+ * Fires when a key is pressed.
125
+ */
126
+ onKeydown?: (event: VDataGridRowEvents['keydown']) => void;
127
+ /**
128
+ * Fires when a key is released.
129
+ */
130
+ onKeyup?: (event: VDataGridRowEvents['keyup']) => void;
131
+ /**
132
+ * Fires a custom 'row-focused' event when focus is on an element (usually a cell or its contents) in the row
133
+ */
134
+ onRowFocused?: (event: VDataGridRowEvents['row-focused']) => void;
135
+ }
@@ -0,0 +1,155 @@
1
+ import type { VwcDatePickerElement } from '@vonage/vivid';
2
+ export interface VDatePickerEvents {
3
+ /**
4
+ * Fires when the element loses focus.
5
+ */
6
+ blur: FocusEvent & {
7
+ /**
8
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
9
+ */
10
+ target: VwcDatePickerElement;
11
+ currentTarget: VwcDatePickerElement;
12
+ };
13
+ /**
14
+ * Emitted when the date is changed by the user.
15
+ */
16
+ change: CustomEvent<undefined> & {
17
+ /**
18
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
19
+ */
20
+ target: VwcDatePickerElement;
21
+ currentTarget: VwcDatePickerElement;
22
+ };
23
+ /**
24
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
25
+ */
26
+ click: MouseEvent & {
27
+ /**
28
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
29
+ */
30
+ target: VwcDatePickerElement;
31
+ currentTarget: VwcDatePickerElement;
32
+ };
33
+ /**
34
+ * Fires when the element receives focus.
35
+ */
36
+ focus: FocusEvent & {
37
+ /**
38
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
39
+ */
40
+ target: VwcDatePickerElement;
41
+ currentTarget: VwcDatePickerElement;
42
+ };
43
+ /**
44
+ * Emitted when the date is changed by the user.
45
+ */
46
+ input: CustomEvent<undefined> & {
47
+ /**
48
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
49
+ */
50
+ target: VwcDatePickerElement;
51
+ currentTarget: VwcDatePickerElement;
52
+ };
53
+ /**
54
+ * Fires when a key is pressed.
55
+ */
56
+ keydown: KeyboardEvent & {
57
+ /**
58
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
59
+ */
60
+ target: VwcDatePickerElement;
61
+ currentTarget: VwcDatePickerElement;
62
+ };
63
+ /**
64
+ * Fires when a key is released.
65
+ */
66
+ keyup: KeyboardEvent & {
67
+ /**
68
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
69
+ */
70
+ target: VwcDatePickerElement;
71
+ currentTarget: VwcDatePickerElement;
72
+ };
73
+ /**
74
+ * Fires when the modelValue value changes
75
+ */
76
+ 'update:modelValue': string;
77
+ }
78
+ export interface VDatePickerProps {
79
+ /**
80
+ * Sets the element's disabled state. A disabled element will not be included during form submission.
81
+ */
82
+ disabled?: boolean;
83
+ /**
84
+ * The error text for the form element.
85
+ */
86
+ errorText?: string;
87
+ /**
88
+ * The initial value of the date-picker.
89
+ */
90
+ initialValue?: string;
91
+ /**
92
+ * The label for the form element.
93
+ */
94
+ label?: string;
95
+ /**
96
+ * The latest accepted date.
97
+ */
98
+ max?: string;
99
+ /**
100
+ * The earliest accepted date.
101
+ */
102
+ min?: string;
103
+ /**
104
+ * The name of the element. This element's value will be surfaced during form submission under the provided name.
105
+ */
106
+ name?: string;
107
+ /**
108
+ * Whether the date-picker is readonly.
109
+ */
110
+ readonly?: boolean;
111
+ /**
112
+ * Require the field to be completed prior to form submission.
113
+ */
114
+ required?: boolean;
115
+ /**
116
+ * The current value of the date-picker.
117
+ */
118
+ value?: string;
119
+ /**
120
+ * The current value of the date-picker.
121
+ */
122
+ modelValue?: string;
123
+ /**
124
+ * Fires when the element loses focus.
125
+ */
126
+ onBlur?: (event: VDatePickerEvents['blur']) => void;
127
+ /**
128
+ * Emitted when the date is changed by the user.
129
+ */
130
+ onChange?: (event: VDatePickerEvents['change']) => void;
131
+ /**
132
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
133
+ */
134
+ onClick?: (event: VDatePickerEvents['click']) => void;
135
+ /**
136
+ * Fires when the element receives focus.
137
+ */
138
+ onFocus?: (event: VDatePickerEvents['focus']) => void;
139
+ /**
140
+ * Emitted when the date is changed by the user.
141
+ */
142
+ onInput?: (event: VDatePickerEvents['input']) => void;
143
+ /**
144
+ * Fires when a key is pressed.
145
+ */
146
+ onKeydown?: (event: VDatePickerEvents['keydown']) => void;
147
+ /**
148
+ * Fires when a key is released.
149
+ */
150
+ onKeyup?: (event: VDatePickerEvents['keyup']) => void;
151
+ /**
152
+ * Fires when the modelValue value changes
153
+ */
154
+ 'onUpdate:modelValue'?: (event: VDatePickerEvents['update:modelValue']) => void;
155
+ }
@@ -0,0 +1,213 @@
1
+ import type { VwcDateRangePickerElement } from '@vonage/vivid';
2
+ export interface VDateRangePickerEvents {
3
+ /**
4
+ * Fires when the element loses focus.
5
+ */
6
+ blur: FocusEvent & {
7
+ /**
8
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
9
+ */
10
+ target: VwcDateRangePickerElement;
11
+ currentTarget: VwcDateRangePickerElement;
12
+ };
13
+ /**
14
+ * Emitted when either the start or end value changes
15
+ */
16
+ change: CustomEvent<undefined> & {
17
+ /**
18
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
19
+ */
20
+ target: VwcDateRangePickerElement;
21
+ currentTarget: VwcDateRangePickerElement;
22
+ };
23
+ /**
24
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
25
+ */
26
+ click: MouseEvent & {
27
+ /**
28
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
29
+ */
30
+ target: VwcDateRangePickerElement;
31
+ currentTarget: VwcDateRangePickerElement;
32
+ };
33
+ /**
34
+ * Fires when the element receives focus.
35
+ */
36
+ focus: FocusEvent & {
37
+ /**
38
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
39
+ */
40
+ target: VwcDateRangePickerElement;
41
+ currentTarget: VwcDateRangePickerElement;
42
+ };
43
+ /**
44
+ * Emitted when either the start or end value changes
45
+ */
46
+ input: CustomEvent<undefined> & {
47
+ /**
48
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
49
+ */
50
+ target: VwcDateRangePickerElement;
51
+ currentTarget: VwcDateRangePickerElement;
52
+ };
53
+ /**
54
+ * Event emitted when the end value changes
55
+ */
56
+ 'input:end': CustomEvent<undefined> & {
57
+ /**
58
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
59
+ */
60
+ target: VwcDateRangePickerElement;
61
+ currentTarget: VwcDateRangePickerElement;
62
+ };
63
+ /**
64
+ * Event emitted when the start value changes
65
+ */
66
+ 'input:start': CustomEvent<undefined> & {
67
+ /**
68
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
69
+ */
70
+ target: VwcDateRangePickerElement;
71
+ currentTarget: VwcDateRangePickerElement;
72
+ };
73
+ /**
74
+ * Fires when a key is pressed.
75
+ */
76
+ keydown: KeyboardEvent & {
77
+ /**
78
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
79
+ */
80
+ target: VwcDateRangePickerElement;
81
+ currentTarget: VwcDateRangePickerElement;
82
+ };
83
+ /**
84
+ * Fires when a key is released.
85
+ */
86
+ keyup: KeyboardEvent & {
87
+ /**
88
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
89
+ */
90
+ target: VwcDateRangePickerElement;
91
+ currentTarget: VwcDateRangePickerElement;
92
+ };
93
+ /**
94
+ * Fires when the end value changes
95
+ */
96
+ 'update:end': string;
97
+ /**
98
+ * Fires when the start value changes
99
+ */
100
+ 'update:start': string;
101
+ }
102
+ export interface VDateRangePickerProps {
103
+ /**
104
+ * Sets the element's disabled state. A disabled element will not be included during form submission.
105
+ */
106
+ disabled?: boolean;
107
+ /**
108
+ * The current end value of the element. This property serves as a mechanism
109
+ * to set the `end` property through both property assignment and the
110
+ * .setAttribute() method. This is useful for setting the field's value
111
+ * in UI libraries that bind data through the .setAttribute() API
112
+ * and don't support IDL attribute binding.
113
+ */
114
+ end?: string;
115
+ /**
116
+ * The error text for the form element.
117
+ */
118
+ errorText?: string;
119
+ /**
120
+ * The initial end value. This value sets the `end` property
121
+ * only when the `end` property has not been explicitly set.
122
+ */
123
+ initialEnd?: string;
124
+ /**
125
+ * The initial start value. This value sets the `start` property
126
+ * only when the `start` property has not been explicitly set.
127
+ */
128
+ initialStart?: string;
129
+ /**
130
+ * The initial value of the date-picker.
131
+ */
132
+ initialValue?: string;
133
+ /**
134
+ * The label for the form element.
135
+ */
136
+ label?: string;
137
+ /**
138
+ * The latest accepted date.
139
+ */
140
+ max?: string;
141
+ /**
142
+ * The earliest accepted date.
143
+ */
144
+ min?: string;
145
+ /**
146
+ * The name of the element. This element's value will be surfaced during form submission under the provided name.
147
+ */
148
+ name?: string;
149
+ /**
150
+ * Whether the date-picker is readonly.
151
+ */
152
+ readonly?: boolean;
153
+ /**
154
+ * Require the field to be completed prior to form submission.
155
+ */
156
+ required?: boolean;
157
+ /**
158
+ * The current start value of the element. This property serves as a mechanism
159
+ * to set the `start` property through both property assignment and the
160
+ * .setAttribute() method. This is useful for setting the field's value
161
+ * in UI libraries that bind data through the .setAttribute() API
162
+ * and don't support IDL attribute binding.
163
+ */
164
+ start?: string;
165
+ /**
166
+ * The current value of the date-picker.
167
+ */
168
+ value?: string;
169
+ /**
170
+ * Fires when the element loses focus.
171
+ */
172
+ onBlur?: (event: VDateRangePickerEvents['blur']) => void;
173
+ /**
174
+ * Emitted when either the start or end value changes
175
+ */
176
+ onChange?: (event: VDateRangePickerEvents['change']) => void;
177
+ /**
178
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
179
+ */
180
+ onClick?: (event: VDateRangePickerEvents['click']) => void;
181
+ /**
182
+ * Fires when the element receives focus.
183
+ */
184
+ onFocus?: (event: VDateRangePickerEvents['focus']) => void;
185
+ /**
186
+ * Emitted when either the start or end value changes
187
+ */
188
+ onInput?: (event: VDateRangePickerEvents['input']) => void;
189
+ /**
190
+ * Event emitted when the end value changes
191
+ */
192
+ 'onInput:end'?: (event: VDateRangePickerEvents['input:end']) => void;
193
+ /**
194
+ * Event emitted when the start value changes
195
+ */
196
+ 'onInput:start'?: (event: VDateRangePickerEvents['input:start']) => void;
197
+ /**
198
+ * Fires when a key is pressed.
199
+ */
200
+ onKeydown?: (event: VDateRangePickerEvents['keydown']) => void;
201
+ /**
202
+ * Fires when a key is released.
203
+ */
204
+ onKeyup?: (event: VDateRangePickerEvents['keyup']) => void;
205
+ /**
206
+ * Fires when the end value changes
207
+ */
208
+ 'onUpdate:end'?: (event: VDateRangePickerEvents['update:end']) => void;
209
+ /**
210
+ * Fires when the start value changes
211
+ */
212
+ 'onUpdate:start'?: (event: VDateRangePickerEvents['update:start']) => void;
213
+ }
@@ -0,0 +1,183 @@
1
+ import type { VwcDateTimePickerElement } from '@vonage/vivid';
2
+ export interface VDateTimePickerEvents {
3
+ /**
4
+ * Fires when the element loses focus.
5
+ */
6
+ blur: FocusEvent & {
7
+ /**
8
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
9
+ */
10
+ target: VwcDateTimePickerElement;
11
+ currentTarget: VwcDateTimePickerElement;
12
+ };
13
+ /**
14
+ * Emitted when the date is changed by the user.
15
+ */
16
+ change: CustomEvent<undefined> & {
17
+ /**
18
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
19
+ */
20
+ target: VwcDateTimePickerElement;
21
+ currentTarget: VwcDateTimePickerElement;
22
+ };
23
+ /**
24
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
25
+ */
26
+ click: MouseEvent & {
27
+ /**
28
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
29
+ */
30
+ target: VwcDateTimePickerElement;
31
+ currentTarget: VwcDateTimePickerElement;
32
+ };
33
+ /**
34
+ * Fires when the element receives focus.
35
+ */
36
+ focus: FocusEvent & {
37
+ /**
38
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
39
+ */
40
+ target: VwcDateTimePickerElement;
41
+ currentTarget: VwcDateTimePickerElement;
42
+ };
43
+ /**
44
+ * Emitted when the date is changed by the user.
45
+ */
46
+ input: CustomEvent<undefined> & {
47
+ /**
48
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
49
+ */
50
+ target: VwcDateTimePickerElement;
51
+ currentTarget: VwcDateTimePickerElement;
52
+ };
53
+ /**
54
+ * Fires when a key is pressed.
55
+ */
56
+ keydown: KeyboardEvent & {
57
+ /**
58
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
59
+ */
60
+ target: VwcDateTimePickerElement;
61
+ currentTarget: VwcDateTimePickerElement;
62
+ };
63
+ /**
64
+ * Fires when a key is released.
65
+ */
66
+ keyup: KeyboardEvent & {
67
+ /**
68
+ * @deprecated Target may not refer to component in some cases. Use currentTarget instead.
69
+ */
70
+ target: VwcDateTimePickerElement;
71
+ currentTarget: VwcDateTimePickerElement;
72
+ };
73
+ /**
74
+ * Fires when the modelValue value changes
75
+ */
76
+ 'update:modelValue': string;
77
+ }
78
+ export interface VDateTimePickerProps {
79
+ /**
80
+ * Forces a 12h or 24h clock to be used.
81
+ */
82
+ clock?: '12h' | '24h';
83
+ /**
84
+ * Sets the element's disabled state. A disabled element will not be included during form submission.
85
+ */
86
+ disabled?: boolean;
87
+ /**
88
+ * The error text for the form element.
89
+ */
90
+ errorText?: string;
91
+ /**
92
+ * The initial value of the date-picker.
93
+ */
94
+ initialValue?: string;
95
+ /**
96
+ * The label for the form element.
97
+ */
98
+ label?: string;
99
+ /**
100
+ * The latest accepted date-time.
101
+ */
102
+ max?: string;
103
+ /**
104
+ * The latest accepted time date of the date-time.
105
+ */
106
+ maxDate?: string;
107
+ /**
108
+ * The latest accepted time part of the date-time.
109
+ */
110
+ maxTime?: string;
111
+ /**
112
+ * The earliest accepted date-time.
113
+ */
114
+ min?: string;
115
+ /**
116
+ * The earliest accepted date part of the date-time.
117
+ */
118
+ minDate?: string;
119
+ /**
120
+ * The earliest accepted time part of the date-time.
121
+ */
122
+ minTime?: string;
123
+ /**
124
+ * Distance between presented minute options.
125
+ */
126
+ minutesStep?: number;
127
+ /**
128
+ * The name of the element. This element's value will be surfaced during form submission under the provided name.
129
+ */
130
+ name?: string;
131
+ /**
132
+ * Whether the date-picker is readonly.
133
+ */
134
+ readonly?: boolean;
135
+ /**
136
+ * Require the field to be completed prior to form submission.
137
+ */
138
+ required?: boolean;
139
+ /**
140
+ * Distance between presented seconds options. If null, seconds are not presented.
141
+ */
142
+ secondsStep?: number;
143
+ /**
144
+ * The current value of the date-picker.
145
+ */
146
+ value?: string;
147
+ /**
148
+ * The current value of the date-picker.
149
+ */
150
+ modelValue?: string;
151
+ /**
152
+ * Fires when the element loses focus.
153
+ */
154
+ onBlur?: (event: VDateTimePickerEvents['blur']) => void;
155
+ /**
156
+ * Emitted when the date is changed by the user.
157
+ */
158
+ onChange?: (event: VDateTimePickerEvents['change']) => void;
159
+ /**
160
+ * Fires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
161
+ */
162
+ onClick?: (event: VDateTimePickerEvents['click']) => void;
163
+ /**
164
+ * Fires when the element receives focus.
165
+ */
166
+ onFocus?: (event: VDateTimePickerEvents['focus']) => void;
167
+ /**
168
+ * Emitted when the date is changed by the user.
169
+ */
170
+ onInput?: (event: VDateTimePickerEvents['input']) => void;
171
+ /**
172
+ * Fires when a key is pressed.
173
+ */
174
+ onKeydown?: (event: VDateTimePickerEvents['keydown']) => void;
175
+ /**
176
+ * Fires when a key is released.
177
+ */
178
+ onKeyup?: (event: VDateTimePickerEvents['keyup']) => void;
179
+ /**
180
+ * Fires when the modelValue value changes
181
+ */
182
+ 'onUpdate:modelValue'?: (event: VDateTimePickerEvents['update:modelValue']) => void;
183
+ }