@vonage/vivid-react 2.10.72 → 2.10.73
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/VwcAccordion/package.json +1 -1
- package/VwcActionGroup/package.json +1 -1
- package/VwcBadge/package.json +1 -1
- package/VwcBanner/package.json +1 -1
- package/VwcButton/package.json +1 -1
- package/VwcButtonToggleGroup/package.json +1 -1
- package/VwcCalendar/package.json +1 -1
- package/VwcCalendarEvent/package.json +1 -1
- package/VwcCard/package.json +1 -1
- package/VwcCarousel/package.json +1 -1
- package/VwcCarouselItem/package.json +1 -1
- package/VwcCheckListItem/package.json +1 -1
- package/VwcCheckbox/package.json +1 -1
- package/VwcChip/package.json +1 -1
- package/VwcChipSet/package.json +1 -1
- package/VwcCircularProgress/package.json +1 -1
- package/VwcDataGrid/package.json +1 -1
- package/VwcDataGridColumn/package.json +1 -1
- package/VwcDatepicker/package.json +1 -1
- package/VwcDialog/package.json +1 -1
- package/VwcDrawer/package.json +1 -1
- package/VwcDropdown/package.json +1 -1
- package/VwcElevation/package.json +1 -1
- package/VwcEmptyState/package.json +1 -1
- package/VwcExpansionPanel/package.json +1 -1
- package/VwcFab/package.json +1 -1
- package/VwcFilePicker/package.json +1 -1
- package/VwcFormfield/package.json +1 -1
- package/VwcHelperMessage/package.json +1 -1
- package/VwcIcon/package.json +1 -1
- package/VwcIconButton/package.json +1 -1
- package/VwcIconButtonToggle/package.json +1 -1
- package/VwcKeypad/package.json +1 -1
- package/VwcLayout/package.json +1 -1
- package/VwcLinearProgress/package.json +1 -1
- package/VwcList/package.json +1 -1
- package/VwcListExpansionPanel/package.json +1 -1
- package/VwcListItem/package.json +1 -1
- package/VwcMenu/package.json +1 -1
- package/VwcNotchedOutline/package.json +1 -1
- package/VwcNote/package.json +1 -1
- package/VwcPagination/package.json +1 -1
- package/VwcPopup/package.json +1 -1
- package/VwcRadio/package.json +1 -1
- package/VwcRadioListItem/package.json +1 -1
- package/VwcSchemeSelect/package.json +1 -1
- package/VwcScrubBar/package.json +1 -1
- package/VwcSelect/package.json +1 -1
- package/VwcSideDrawer/package.json +1 -1
- package/VwcSlider/package.json +1 -1
- package/VwcSnackbar/package.json +1 -1
- package/VwcSurface/package.json +1 -1
- package/VwcSwitch/package.json +1 -1
- package/VwcTab/package.json +1 -1
- package/VwcTabBar/package.json +1 -1
- package/VwcTag/package.json +1 -1
- package/VwcText/package.json +1 -1
- package/VwcTextarea/package.json +1 -1
- package/VwcTextfield/package.json +1 -1
- package/VwcThemeSwitch/package.json +1 -1
- package/VwcTooltip/package.json +1 -1
- package/VwcTopAppBar/package.json +1 -1
- package/VwcTopAppBarFixed/package.json +1 -1
- package/index.js +8 -8
- package/package.json +16 -10
- package/types/index.d.ts +42 -6
- package/v3/VwcAccordion/package.json +2 -2
- package/v3/VwcAccordionItem/package.json +2 -2
- package/v3/VwcActionGroup/package.json +2 -2
- package/v3/VwcAlert/package.json +2 -2
- package/v3/VwcAvatar/package.json +2 -2
- package/v3/VwcBadge/package.json +2 -2
- package/v3/VwcBanner/package.json +2 -2
- package/v3/VwcBreadcrumb/package.json +2 -2
- package/v3/VwcBreadcrumbItem/package.json +2 -2
- package/v3/VwcButton/package.json +2 -2
- package/v3/VwcCalendar/package.json +2 -2
- package/v3/VwcCalendarEvent/package.json +2 -2
- package/v3/VwcCard/package.json +2 -2
- package/v3/VwcCheckbox/index.d.ts +2 -0
- package/v3/VwcCheckbox/index.js +17 -1
- package/v3/VwcCheckbox/package.json +2 -2
- package/v3/VwcCombobox/package.json +2 -2
- package/v3/VwcDataGrid/index.d.ts +1 -1
- package/v3/VwcDataGrid/index.js +4 -1
- package/v3/VwcDataGrid/package.json +2 -2
- package/v3/VwcDataGridCell/index.d.ts +4 -3
- package/v3/VwcDataGridCell/index.js +15 -3
- package/v3/VwcDataGridCell/package.json +2 -2
- package/v3/VwcDataGridRow/index.d.ts +1 -1
- package/v3/VwcDataGridRow/index.js +4 -1
- package/v3/VwcDataGridRow/package.json +2 -2
- package/v3/VwcDatePicker/index.d.ts +6 -6
- package/v3/VwcDatePicker/index.js +161 -100
- package/v3/VwcDatePicker/package.json +2 -2
- package/v3/VwcDatePickerBase/index.d.ts +29 -0
- package/v3/VwcDatePickerBase/index.js +248 -0
- package/v3/VwcDatePickerBase/package.json +11 -0
- package/v3/VwcDateRangePicker/index.d.ts +56 -0
- package/v3/VwcDateRangePicker/index.js +444 -0
- package/v3/VwcDateRangePicker/package.json +11 -0
- package/v3/VwcDialog/index.d.ts +2 -0
- package/v3/VwcDialog/index.js +18 -2
- package/v3/VwcDialog/package.json +2 -2
- package/v3/VwcDivider/package.json +2 -2
- package/v3/VwcElevation/package.json +2 -2
- package/v3/VwcEmptyState/package.json +2 -2
- package/v3/VwcFab/package.json +2 -2
- package/v3/VwcFilePicker/index.d.ts +4 -2
- package/v3/VwcFilePicker/index.js +62 -20
- package/v3/VwcFilePicker/package.json +2 -2
- package/v3/VwcFocus/package.json +2 -2
- package/v3/{VwcFormAssociatedDatePicker → VwcFormAssociatedFilePicker}/index.d.ts +4 -6
- package/v3/VwcFormAssociatedFilePicker/index.js +44 -0
- package/v3/VwcFormAssociatedFilePicker/package.json +11 -0
- package/v3/VwcHeader/package.json +2 -2
- package/v3/VwcIcon/package.json +2 -2
- package/v3/VwcLayout/package.json +2 -2
- package/v3/VwcListbox/package.json +2 -2
- package/v3/VwcMenu/index.d.ts +2 -0
- package/v3/VwcMenu/index.js +5 -1
- package/v3/VwcMenu/package.json +2 -2
- package/v3/VwcMenuItem/index.d.ts +4 -0
- package/v3/VwcMenuItem/index.js +37 -1
- package/v3/VwcMenuItem/package.json +2 -2
- package/v3/VwcNav/package.json +2 -2
- package/v3/VwcNavDisclosure/package.json +2 -2
- package/v3/VwcNavItem/package.json +2 -2
- package/v3/VwcNote/package.json +2 -2
- package/v3/VwcNumberField/index.d.ts +4 -0
- package/v3/VwcNumberField/index.js +33 -1
- package/v3/VwcNumberField/package.json +2 -2
- package/v3/{VwcListboxOption → VwcOption}/index.d.ts +3 -3
- package/v3/{VwcListboxOption → VwcOption}/index.js +5 -5
- package/v3/{VwcListboxOption → VwcOption}/package.json +2 -2
- package/v3/VwcPagination/package.json +2 -2
- package/v3/VwcPopup/package.json +2 -2
- package/v3/VwcProgress/index.d.ts +5 -3
- package/v3/VwcProgress/index.js +29 -4
- package/v3/VwcProgress/package.json +2 -2
- package/v3/VwcProgressRing/index.d.ts +2 -0
- package/v3/VwcProgressRing/index.js +17 -1
- package/v3/VwcProgressRing/package.json +2 -2
- package/v3/VwcRadio/index.d.ts +2 -0
- package/v3/VwcRadio/index.js +17 -1
- package/v3/VwcRadio/package.json +2 -2
- package/v3/VwcRadioGroup/package.json +2 -2
- package/v3/VwcSelect/index.d.ts +2 -1
- package/v3/VwcSelect/index.js +1 -1
- package/v3/VwcSelect/package.json +2 -2
- package/v3/VwcSelectableBox/index.d.ts +30 -0
- package/v3/VwcSelectableBox/index.js +197 -0
- package/v3/VwcSelectableBox/package.json +11 -0
- package/v3/VwcSideDrawer/index.d.ts +3 -1
- package/v3/VwcSideDrawer/index.js +11 -1
- package/v3/VwcSideDrawer/package.json +2 -2
- package/v3/VwcSlider/index.d.ts +6 -0
- package/v3/VwcSlider/index.js +60 -1
- package/v3/VwcSlider/package.json +2 -2
- package/v3/VwcSplitButton/package.json +2 -2
- package/v3/VwcSwitch/index.d.ts +1 -1
- package/v3/VwcSwitch/index.js +4 -1
- package/v3/VwcSwitch/package.json +2 -2
- package/v3/VwcTab/package.json +2 -2
- package/v3/VwcTabPanel/package.json +2 -2
- package/v3/VwcTabs/package.json +2 -2
- package/v3/VwcTag/package.json +2 -2
- package/v3/VwcTagGroup/index.d.ts +2 -1
- package/v3/VwcTagGroup/index.js +21 -1
- package/v3/VwcTagGroup/package.json +2 -2
- package/v3/VwcTextAnchor/package.json +2 -2
- package/v3/VwcTextArea/index.d.ts +1 -1
- package/v3/VwcTextArea/index.js +11 -0
- package/v3/VwcTextArea/package.json +2 -2
- package/v3/VwcTextField/index.js +24 -0
- package/v3/VwcTextField/package.json +2 -2
- package/v3/VwcToggletip/package.json +2 -2
- package/v3/VwcTooltip/package.json +2 -2
- package/v3/VwcTreeItem/package.json +2 -2
- package/v3/VwcTreeView/package.json +2 -2
- package/v3/VwcFormAssociatedDatePicker/index.js +0 -52
- package/v3/VwcFormAssociatedDatePicker/package.json +0 -11
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* DO NOT EDIT THIS FILE. IT IS GENERATED
|
|
3
|
+
*/
|
|
4
|
+
/*
|
|
5
|
+
Code in this file were generated using following JSON:
|
|
6
|
+
{
|
|
7
|
+
"kind": "class",
|
|
8
|
+
"description": "Base class for date-picker",
|
|
9
|
+
"name": "DatePickerBase",
|
|
10
|
+
"cssProperties": [
|
|
11
|
+
{
|
|
12
|
+
"name": "--vvd-date-picker-accent-primary",
|
|
13
|
+
"default": "var(--vvd-color-canvas-text)"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "--vvd-date-picker-accent-faint",
|
|
17
|
+
"default": "var(--vvd-color-neutral-50)"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "--vvd-date-picker-accent-soft",
|
|
21
|
+
"default": "var(--vvd-color-neutral-100)"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "--vvd-date-picker-accent-dim",
|
|
25
|
+
"default": "var(--vvd-color-neutral-200)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "--vvd-date-picker-accent-pale",
|
|
29
|
+
"default": "var(--vvd-color-neutral-300)"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"members": [
|
|
33
|
+
{
|
|
34
|
+
"kind": "field",
|
|
35
|
+
"name": "label",
|
|
36
|
+
"type": {
|
|
37
|
+
"text": "string"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"kind": "field",
|
|
42
|
+
"name": "min",
|
|
43
|
+
"type": {
|
|
44
|
+
"text": "string"
|
|
45
|
+
},
|
|
46
|
+
"description": "The earliest accepted date of the date-picker.",
|
|
47
|
+
"privacy": "public",
|
|
48
|
+
"default": "''"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "field",
|
|
52
|
+
"name": "max",
|
|
53
|
+
"type": {
|
|
54
|
+
"text": "string"
|
|
55
|
+
},
|
|
56
|
+
"description": "The latest accepted date of the date-picker.",
|
|
57
|
+
"privacy": "public",
|
|
58
|
+
"default": "''"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"kind": "field",
|
|
62
|
+
"name": "initialValue",
|
|
63
|
+
"type": {
|
|
64
|
+
"text": "string"
|
|
65
|
+
},
|
|
66
|
+
"description": "The initial value of the date-picker.",
|
|
67
|
+
"privacy": "public"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"kind": "field",
|
|
71
|
+
"name": "currentValue",
|
|
72
|
+
"type": {
|
|
73
|
+
"text": "string"
|
|
74
|
+
},
|
|
75
|
+
"description": "The current value of the date-picker.",
|
|
76
|
+
"privacy": "public"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"kind": "field",
|
|
80
|
+
"name": "readOnly",
|
|
81
|
+
"type": {
|
|
82
|
+
"text": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"default": "false",
|
|
85
|
+
"description": "Whether the date-picker is readonly.",
|
|
86
|
+
"privacy": "public"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"kind": "method",
|
|
90
|
+
"name": "#getFocusableEls"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"kind": "method",
|
|
94
|
+
"name": "_adjustSelectedMonthToEnsureVisibilityOf",
|
|
95
|
+
"privacy": "protected",
|
|
96
|
+
"parameters": [
|
|
97
|
+
{
|
|
98
|
+
"name": "date",
|
|
99
|
+
"type": {
|
|
100
|
+
"text": "DateStr"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"kind": "method",
|
|
107
|
+
"name": "#isMonthAfterValidRange",
|
|
108
|
+
"parameters": [
|
|
109
|
+
{
|
|
110
|
+
"name": "month",
|
|
111
|
+
"type": {
|
|
112
|
+
"text": "Month"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"kind": "method",
|
|
119
|
+
"name": "#isMonthBeforeValidRange",
|
|
120
|
+
"parameters": [
|
|
121
|
+
{
|
|
122
|
+
"name": "month",
|
|
123
|
+
"type": {
|
|
124
|
+
"text": "Month"
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"kind": "field",
|
|
131
|
+
"name": "#onFocusIn",
|
|
132
|
+
"privacy": "private"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"kind": "field",
|
|
136
|
+
"name": "#onFocusOut",
|
|
137
|
+
"privacy": "private"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"kind": "method",
|
|
141
|
+
"name": "_getCustomValidationError",
|
|
142
|
+
"privacy": "protected",
|
|
143
|
+
"return": {
|
|
144
|
+
"type": {
|
|
145
|
+
"text": "string | null"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"kind": "field",
|
|
151
|
+
"name": "#dismissOnClickOutside",
|
|
152
|
+
"privacy": "private"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "field",
|
|
156
|
+
"name": "#isClosingPopup",
|
|
157
|
+
"privacy": "private",
|
|
158
|
+
"type": {
|
|
159
|
+
"text": "boolean"
|
|
160
|
+
},
|
|
161
|
+
"default": "false"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"kind": "method",
|
|
165
|
+
"name": "#openPopupIfPossible"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"kind": "method",
|
|
169
|
+
"name": "_getSelectedDates",
|
|
170
|
+
"privacy": "protected",
|
|
171
|
+
"return": {
|
|
172
|
+
"type": {
|
|
173
|
+
"text": "DateStr[]"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"kind": "field",
|
|
179
|
+
"name": "value",
|
|
180
|
+
"type": {
|
|
181
|
+
"text": "string"
|
|
182
|
+
},
|
|
183
|
+
"default": "''"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
"attributes": [
|
|
187
|
+
{
|
|
188
|
+
"type": {
|
|
189
|
+
"text": "string"
|
|
190
|
+
},
|
|
191
|
+
"description": "The earliest accepted date of the date-picker.",
|
|
192
|
+
"default": "''",
|
|
193
|
+
"fieldName": "min"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"type": {
|
|
197
|
+
"text": "string"
|
|
198
|
+
},
|
|
199
|
+
"description": "The latest accepted date of the date-picker.",
|
|
200
|
+
"default": "''",
|
|
201
|
+
"fieldName": "max"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "value",
|
|
205
|
+
"type": {
|
|
206
|
+
"text": "string"
|
|
207
|
+
},
|
|
208
|
+
"description": "The initial value of the date-picker.",
|
|
209
|
+
"fieldName": "initialValue"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"name": "current-value",
|
|
213
|
+
"type": {
|
|
214
|
+
"text": "string"
|
|
215
|
+
},
|
|
216
|
+
"description": "The current value of the date-picker.",
|
|
217
|
+
"fieldName": "currentValue"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "readonly",
|
|
221
|
+
"type": {
|
|
222
|
+
"text": "boolean"
|
|
223
|
+
},
|
|
224
|
+
"default": "false",
|
|
225
|
+
"description": "Whether the date-picker is readonly.",
|
|
226
|
+
"fieldName": "readOnly"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"superclass": {
|
|
230
|
+
"name": "FormAssociatedDatePickerBase",
|
|
231
|
+
"module": "/libs/components/src/shared/date-picker/date-picker-base.form-associated"
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
*/
|
|
235
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
236
|
+
import { registerDatePickerBase } from '@vonage/vivid'
|
|
237
|
+
|
|
238
|
+
registerDatePickerBase('vvd3')
|
|
239
|
+
|
|
240
|
+
const VwcDatePickerBase = wrapper(`vvd3-date-picker-base`, {
|
|
241
|
+
events: [],
|
|
242
|
+
attributes: [],
|
|
243
|
+
properties: ['label', 'min', 'max', 'initialValue', 'currentValue', 'readOnly', 'value']
|
|
244
|
+
})
|
|
245
|
+
|
|
246
|
+
VwcDatePickerBase.displayName = 'VwcDatePickerBase'
|
|
247
|
+
|
|
248
|
+
export default VwcDatePickerBase
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
/** Base class for date-range-picker
|
|
3
|
+
* For more info on this Vivid element please visit https://vivid.deno.dev/components/date-range-picker
|
|
4
|
+
* @param {string} initialStart - The initial start value. This value sets the `start` property
|
|
5
|
+
only when the `start` property has not been explicitly set. **attribute** `start`
|
|
6
|
+
* @param {string} initialEnd - The initial end value. This value sets the `end` property
|
|
7
|
+
only when the `end` property has not been explicitly set. **attribute** `end`
|
|
8
|
+
* @param {string} start - The start value of the date range.
|
|
9
|
+
* @param {string} end - The end value of the date range.
|
|
10
|
+
* @param {string} currentStart - The current start value of the element. This property serves as a mechanism
|
|
11
|
+
to set the `start` property through both property assignment and the
|
|
12
|
+
.setAttribute() method. This is useful for setting the field's value
|
|
13
|
+
in UI libraries that bind data through the .setAttribute() API
|
|
14
|
+
and don't support IDL attribute binding. **attribute** `current-start`
|
|
15
|
+
* @param {string} currentEnd - The current end value of the element. This property serves as a mechanism
|
|
16
|
+
to set the `end` property through both property assignment and the
|
|
17
|
+
.setAttribute() method. This is useful for setting the field's value
|
|
18
|
+
in UI libraries that bind data through the .setAttribute() API
|
|
19
|
+
and don't support IDL attribute binding. **attribute** `current-end`
|
|
20
|
+
* @param setFormValue
|
|
21
|
+
* @param {string} label
|
|
22
|
+
* @param {string} min - The earliest accepted date of the date-picker. **attribute** `min`
|
|
23
|
+
* @param {string} max - The latest accepted date of the date-picker.
|
|
24
|
+
* @param {string} initialValue - The initial value of the date-picker. **attribute** `value`
|
|
25
|
+
* @param {string} currentValue - The current value of the date-picker. **attribute** `current-value`
|
|
26
|
+
* @param {boolean} readOnly - Whether the date-picker is readonly. **attribute** `readonly`
|
|
27
|
+
* @param {string} value
|
|
28
|
+
*/
|
|
29
|
+
declare const VwcDateRangePicker: {
|
|
30
|
+
(props: {
|
|
31
|
+
(event: SyntheticEvent): void;
|
|
32
|
+
(event: SyntheticEvent): void;
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
slot?: string | undefined;
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
style?: React.CSSProperties | undefined;
|
|
37
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
38
|
+
onInput: start | null;
|
|
39
|
+
initialStart?: string | undefined;
|
|
40
|
+
initialEnd?: string | undefined;
|
|
41
|
+
start?: string | undefined;
|
|
42
|
+
end?: string | undefined;
|
|
43
|
+
currentStart?: string | undefined;
|
|
44
|
+
currentEnd?: string | undefined;
|
|
45
|
+
setFormValue?: any;
|
|
46
|
+
label?: string | undefined;
|
|
47
|
+
min?: string | undefined;
|
|
48
|
+
max?: string | undefined;
|
|
49
|
+
initialValue?: string | undefined;
|
|
50
|
+
currentValue?: string | undefined;
|
|
51
|
+
readOnly?: boolean | undefined;
|
|
52
|
+
value?: string | undefined;
|
|
53
|
+
}): JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
export default VwcDateRangePicker;
|