@vonage/vivid-react 2.10.71 → 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/README.md +54 -54
- package/VwcAccordion/package.json +2 -2
- package/VwcActionGroup/package.json +2 -2
- package/VwcBadge/package.json +2 -2
- package/VwcBanner/package.json +2 -2
- package/VwcButton/package.json +2 -2
- package/VwcButtonToggleGroup/package.json +2 -2
- package/VwcCalendar/package.json +2 -2
- package/VwcCalendarEvent/package.json +2 -2
- package/VwcCard/package.json +2 -2
- package/VwcCarousel/package.json +2 -2
- package/VwcCarouselItem/package.json +2 -2
- package/VwcCheckListItem/package.json +2 -2
- package/VwcCheckbox/package.json +2 -2
- package/VwcChip/package.json +2 -2
- package/VwcChipSet/package.json +2 -2
- package/VwcCircularProgress/package.json +2 -2
- package/VwcDataGrid/package.json +2 -2
- package/VwcDataGridColumn/package.json +2 -2
- package/VwcDatepicker/package.json +2 -2
- package/VwcDialog/package.json +2 -2
- package/VwcDrawer/package.json +2 -2
- package/VwcDropdown/package.json +2 -2
- package/VwcElevation/package.json +2 -2
- package/VwcEmptyState/package.json +2 -2
- package/VwcExpansionPanel/package.json +2 -2
- package/VwcFab/package.json +2 -2
- package/VwcFilePicker/package.json +2 -2
- package/VwcFormfield/package.json +2 -2
- package/VwcHelperMessage/package.json +2 -2
- package/VwcIcon/package.json +2 -2
- package/VwcIconButton/package.json +2 -2
- package/VwcIconButtonToggle/package.json +2 -2
- package/VwcKeypad/package.json +2 -2
- package/VwcLayout/package.json +2 -2
- package/VwcLinearProgress/package.json +2 -2
- package/VwcList/package.json +2 -2
- package/VwcListExpansionPanel/package.json +2 -2
- package/VwcListItem/package.json +2 -2
- package/VwcMenu/package.json +2 -2
- package/VwcNotchedOutline/package.json +2 -2
- package/VwcNote/package.json +2 -2
- package/VwcPagination/package.json +2 -2
- package/VwcPopup/package.json +2 -2
- package/VwcRadio/package.json +2 -2
- package/VwcRadioListItem/package.json +2 -2
- package/VwcSchemeSelect/package.json +2 -2
- package/VwcScrubBar/package.json +2 -2
- package/VwcSelect/package.json +2 -2
- package/VwcSideDrawer/package.json +2 -2
- package/VwcSlider/package.json +2 -2
- package/VwcSnackbar/package.json +2 -2
- package/VwcSurface/package.json +2 -2
- package/VwcSwitch/package.json +2 -2
- package/VwcTab/package.json +2 -2
- package/VwcTabBar/package.json +2 -2
- package/VwcTag/package.json +2 -2
- package/VwcText/package.json +2 -2
- package/VwcTextarea/package.json +2 -2
- package/VwcTextfield/package.json +2 -2
- package/VwcThemeSwitch/package.json +2 -2
- package/VwcTooltip/package.json +2 -2
- package/VwcTopAppBar/package.json +2 -2
- package/VwcTopAppBarFixed/package.json +2 -2
- package/index.js +9 -9
- package/package.json +73 -67
- package/types/index.d.ts +48 -8
- 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/index.js +8 -0
- 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 +14 -10
- package/v3/VwcDatePicker/index.js +217 -92
- 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/index.js +6 -0
- 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/VwcFormAssociatedFilePicker/index.d.ts +17 -0
- 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/index.d.ts +4 -0
- package/v3/VwcListbox/index.js +71 -1
- 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 +6 -0
- package/v3/VwcMenuItem/index.js +66 -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 +64 -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 +3 -1
- package/v3/VwcProgressRing/index.js +19 -3
- 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/index.js +6 -0
- 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.d.ts +2 -0
- package/v3/VwcTextField/index.js +42 -1
- 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/VwcDataGrid/index.js
CHANGED
|
@@ -19,7 +19,9 @@ Code in this file were generated using following JSON:
|
|
|
19
19
|
"name": "selectionMode",
|
|
20
20
|
"type": {
|
|
21
21
|
"text": "DataGridSelectionMode | undefined"
|
|
22
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"description": "Indicates the selection mode.",
|
|
24
|
+
"privacy": "public"
|
|
23
25
|
},
|
|
24
26
|
{
|
|
25
27
|
"kind": "field",
|
|
@@ -106,6 +108,7 @@ Code in this file were generated using following JSON:
|
|
|
106
108
|
"type": {
|
|
107
109
|
"text": "DataGridSelectionMode | undefined"
|
|
108
110
|
},
|
|
111
|
+
"description": "Indicates the selection mode.",
|
|
109
112
|
"fieldName": "selectionMode"
|
|
110
113
|
}
|
|
111
114
|
],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid-react-vvd3-data-grid",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"private": true,
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@vonage/vivid": "3.
|
|
9
|
+
"@vonage/vivid": "3.40.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** Base class for data-grid
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/data-grid-cell
|
|
4
|
-
* @param {string | null} ariaSelected
|
|
5
|
-
* @param {string | null} ariaSort
|
|
4
|
+
* @param {string | null} ariaSelected - Indicates the selected status. **attribute** `aria-selected`
|
|
5
|
+
* @param {string | null} ariaSort - Indicates the sort status. **attribute** `aria-sort`
|
|
6
6
|
* @param updateCellStyle
|
|
7
7
|
*/
|
|
8
8
|
declare const VwcDataGridCell: {
|
|
@@ -12,6 +12,7 @@ declare const VwcDataGridCell: {
|
|
|
12
12
|
id?: string | undefined;
|
|
13
13
|
style?: React.CSSProperties | undefined;
|
|
14
14
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
15
|
+
onSort?: ((event: SyntheticEvent) => void) | undefined;
|
|
15
16
|
ariaSelected?: string | null | undefined;
|
|
16
17
|
ariaSort?: string | null | undefined;
|
|
17
18
|
updateCellStyle?: any;
|
|
@@ -64,7 +64,9 @@ Code in this file were generated using following JSON:
|
|
|
64
64
|
"type": {
|
|
65
65
|
"text": "string | null"
|
|
66
66
|
},
|
|
67
|
-
"default": "null"
|
|
67
|
+
"default": "null",
|
|
68
|
+
"description": "Indicates the selected status.",
|
|
69
|
+
"privacy": "public"
|
|
68
70
|
},
|
|
69
71
|
{
|
|
70
72
|
"kind": "field",
|
|
@@ -72,7 +74,9 @@ Code in this file were generated using following JSON:
|
|
|
72
74
|
"type": {
|
|
73
75
|
"text": "string | null"
|
|
74
76
|
},
|
|
75
|
-
"default": "null"
|
|
77
|
+
"default": "null",
|
|
78
|
+
"description": "Indicates the sort status.",
|
|
79
|
+
"privacy": "public"
|
|
76
80
|
},
|
|
77
81
|
{
|
|
78
82
|
"kind": "method",
|
|
@@ -121,6 +125,12 @@ Code in this file were generated using following JSON:
|
|
|
121
125
|
"name": "updateCellStyle"
|
|
122
126
|
}
|
|
123
127
|
],
|
|
128
|
+
"events": [
|
|
129
|
+
{
|
|
130
|
+
"description": "Event that fires when a sortable column header is clicked",
|
|
131
|
+
"name": "sort"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
124
134
|
"attributes": [
|
|
125
135
|
{
|
|
126
136
|
"name": "aria-selected",
|
|
@@ -128,6 +138,7 @@ Code in this file were generated using following JSON:
|
|
|
128
138
|
"text": "string | null"
|
|
129
139
|
},
|
|
130
140
|
"default": "null",
|
|
141
|
+
"description": "Indicates the selected status.",
|
|
131
142
|
"fieldName": "ariaSelected"
|
|
132
143
|
},
|
|
133
144
|
{
|
|
@@ -136,6 +147,7 @@ Code in this file were generated using following JSON:
|
|
|
136
147
|
"text": "string | null"
|
|
137
148
|
},
|
|
138
149
|
"default": "null",
|
|
150
|
+
"description": "Indicates the sort status.",
|
|
139
151
|
"fieldName": "ariaSort"
|
|
140
152
|
}
|
|
141
153
|
],
|
|
@@ -151,7 +163,7 @@ import { registerDataGridCell } from '@vonage/vivid'
|
|
|
151
163
|
registerDataGridCell('vvd3')
|
|
152
164
|
|
|
153
165
|
const VwcDataGridCell = wrapper(`vvd3-data-grid-cell`, {
|
|
154
|
-
events: [],
|
|
166
|
+
events: [{"name":"sort","propName":"onSort"}],
|
|
155
167
|
attributes: [],
|
|
156
168
|
properties: ['ariaSelected', 'ariaSort', 'updateCellStyle']
|
|
157
169
|
})
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid-react-vvd3-data-grid-cell",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"private": true,
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@vonage/vivid": "3.
|
|
9
|
+
"@vonage/vivid": "3.40.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
/** Base class for data-grid
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/data-grid-row
|
|
4
|
-
* @param {string | null} ariaSelected
|
|
4
|
+
* @param {string | null} ariaSelected - Indicates the selected status. **attribute** `aria-selected`
|
|
5
5
|
*/
|
|
6
6
|
declare const VwcDataGridRow: {
|
|
7
7
|
(props: {
|
|
@@ -64,7 +64,9 @@ Code in this file were generated using following JSON:
|
|
|
64
64
|
"type": {
|
|
65
65
|
"text": "string | null"
|
|
66
66
|
},
|
|
67
|
-
"default": "null"
|
|
67
|
+
"default": "null",
|
|
68
|
+
"description": "Indicates the selected status.",
|
|
69
|
+
"privacy": "public"
|
|
68
70
|
}
|
|
69
71
|
],
|
|
70
72
|
"attributes": [
|
|
@@ -74,6 +76,7 @@ Code in this file were generated using following JSON:
|
|
|
74
76
|
"text": "string | null"
|
|
75
77
|
},
|
|
76
78
|
"default": "null",
|
|
79
|
+
"description": "Indicates the selected status.",
|
|
77
80
|
"fieldName": "ariaSelected"
|
|
78
81
|
}
|
|
79
82
|
],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid-react-vvd3-data-grid-row",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"private": true,
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@vonage/vivid": "3.
|
|
9
|
+
"@vonage/vivid": "3.40.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
/**
|
|
2
|
+
/** Single date picker component.
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/date-picker
|
|
4
|
-
* @param {string
|
|
5
|
-
* @param {string
|
|
6
|
-
* @param {string
|
|
7
|
-
* @param {
|
|
8
|
-
* @param {
|
|
4
|
+
* @param {string} type
|
|
5
|
+
* @param {string} label
|
|
6
|
+
* @param {string} min - The earliest accepted date of the date-picker. **attribute** `min`
|
|
7
|
+
* @param {string} max - The latest accepted date of the date-picker.
|
|
8
|
+
* @param {string} initialValue - The initial value of the date-picker. **attribute** `value`
|
|
9
|
+
* @param {string} currentValue - The current value of the date-picker. **attribute** `current-value`
|
|
9
10
|
* @param {boolean} readOnly - Whether the date-picker is readonly. **attribute** `readonly`
|
|
11
|
+
* @param {string} value
|
|
10
12
|
*/
|
|
11
13
|
declare const VwcDatePicker: {
|
|
12
14
|
(props: {
|
|
@@ -15,12 +17,14 @@ declare const VwcDatePicker: {
|
|
|
15
17
|
id?: string | undefined;
|
|
16
18
|
style?: React.CSSProperties | undefined;
|
|
17
19
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
20
|
+
type?: string | undefined;
|
|
18
21
|
label?: string | undefined;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
min?: string | undefined;
|
|
23
|
+
max?: string | undefined;
|
|
24
|
+
initialValue?: string | undefined;
|
|
25
|
+
currentValue?: string | undefined;
|
|
23
26
|
readOnly?: boolean | undefined;
|
|
27
|
+
value?: string | undefined;
|
|
24
28
|
}): JSX.Element;
|
|
25
29
|
displayName: string;
|
|
26
30
|
};
|
|
@@ -5,104 +5,205 @@
|
|
|
5
5
|
Code in this file were generated using following JSON:
|
|
6
6
|
{
|
|
7
7
|
"kind": "class",
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "Single date picker component.",
|
|
9
9
|
"name": "DatePicker",
|
|
10
|
-
"
|
|
10
|
+
"members": [
|
|
11
11
|
{
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"kind": "method",
|
|
13
|
+
"name": "#updateValueDueToUserInteraction",
|
|
14
|
+
"parameters": [
|
|
15
|
+
{
|
|
16
|
+
"name": "newValue",
|
|
17
|
+
"type": {
|
|
18
|
+
"text": "DateStr"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
]
|
|
14
22
|
},
|
|
15
23
|
{
|
|
16
|
-
"
|
|
17
|
-
"
|
|
24
|
+
"kind": "field",
|
|
25
|
+
"name": "type",
|
|
26
|
+
"type": {
|
|
27
|
+
"text": "string"
|
|
28
|
+
},
|
|
29
|
+
"default": "'date'"
|
|
18
30
|
},
|
|
19
31
|
{
|
|
20
|
-
"
|
|
21
|
-
"
|
|
32
|
+
"kind": "field",
|
|
33
|
+
"name": "label",
|
|
34
|
+
"type": {
|
|
35
|
+
"text": "string"
|
|
36
|
+
},
|
|
37
|
+
"inheritedFrom": {
|
|
38
|
+
"name": "DatePickerBase",
|
|
39
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
40
|
+
}
|
|
22
41
|
},
|
|
23
42
|
{
|
|
24
|
-
"
|
|
25
|
-
"
|
|
43
|
+
"kind": "field",
|
|
44
|
+
"name": "min",
|
|
45
|
+
"type": {
|
|
46
|
+
"text": "string"
|
|
47
|
+
},
|
|
48
|
+
"description": "The earliest accepted date of the date-picker.",
|
|
49
|
+
"privacy": "public",
|
|
50
|
+
"default": "''",
|
|
51
|
+
"inheritedFrom": {
|
|
52
|
+
"name": "DatePickerBase",
|
|
53
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
54
|
+
}
|
|
26
55
|
},
|
|
27
|
-
{
|
|
28
|
-
"name": "--vvd-date-picker-accent-pale",
|
|
29
|
-
"default": "var(--vvd-color-neutral-300)"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"members": [
|
|
33
56
|
{
|
|
34
57
|
"kind": "field",
|
|
35
|
-
"name": "
|
|
58
|
+
"name": "max",
|
|
36
59
|
"type": {
|
|
37
|
-
"text": "string
|
|
60
|
+
"text": "string"
|
|
38
61
|
},
|
|
39
|
-
"description": "The
|
|
40
|
-
"privacy": "public"
|
|
62
|
+
"description": "The latest accepted date of the date-picker.",
|
|
63
|
+
"privacy": "public",
|
|
64
|
+
"default": "''",
|
|
65
|
+
"inheritedFrom": {
|
|
66
|
+
"name": "DatePickerBase",
|
|
67
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
68
|
+
}
|
|
41
69
|
},
|
|
42
70
|
{
|
|
43
71
|
"kind": "field",
|
|
44
|
-
"name": "
|
|
72
|
+
"name": "initialValue",
|
|
45
73
|
"type": {
|
|
46
|
-
"text": "string
|
|
74
|
+
"text": "string"
|
|
47
75
|
},
|
|
48
|
-
"description": "The
|
|
49
|
-
"privacy": "public"
|
|
76
|
+
"description": "The initial value of the date-picker.",
|
|
77
|
+
"privacy": "public",
|
|
78
|
+
"inheritedFrom": {
|
|
79
|
+
"name": "DatePickerBase",
|
|
80
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
81
|
+
}
|
|
50
82
|
},
|
|
51
83
|
{
|
|
52
84
|
"kind": "field",
|
|
53
|
-
"name": "
|
|
85
|
+
"name": "currentValue",
|
|
54
86
|
"type": {
|
|
55
|
-
"text": "string
|
|
87
|
+
"text": "string"
|
|
56
88
|
},
|
|
57
|
-
"description": "The
|
|
58
|
-
"privacy": "public"
|
|
89
|
+
"description": "The current value of the date-picker.",
|
|
90
|
+
"privacy": "public",
|
|
91
|
+
"inheritedFrom": {
|
|
92
|
+
"name": "DatePickerBase",
|
|
93
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
94
|
+
}
|
|
59
95
|
},
|
|
60
96
|
{
|
|
61
97
|
"kind": "field",
|
|
62
|
-
"name": "
|
|
98
|
+
"name": "readOnly",
|
|
63
99
|
"type": {
|
|
64
|
-
"text": "
|
|
100
|
+
"text": "boolean"
|
|
65
101
|
},
|
|
66
|
-
"default": "
|
|
67
|
-
"description": "
|
|
68
|
-
"privacy": "public"
|
|
102
|
+
"default": "false",
|
|
103
|
+
"description": "Whether the date-picker is readonly.",
|
|
104
|
+
"privacy": "public",
|
|
105
|
+
"inheritedFrom": {
|
|
106
|
+
"name": "DatePickerBase",
|
|
107
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
108
|
+
}
|
|
69
109
|
},
|
|
70
110
|
{
|
|
71
111
|
"kind": "method",
|
|
72
|
-
"name": "#
|
|
112
|
+
"name": "#getFocusableEls",
|
|
113
|
+
"inheritedFrom": {
|
|
114
|
+
"name": "DatePickerBase",
|
|
115
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"kind": "method",
|
|
120
|
+
"name": "_adjustSelectedMonthToEnsureVisibilityOf",
|
|
121
|
+
"privacy": "protected",
|
|
73
122
|
"parameters": [
|
|
74
123
|
{
|
|
75
|
-
"name": "
|
|
124
|
+
"name": "date",
|
|
76
125
|
"type": {
|
|
77
|
-
"text": "DateStr
|
|
126
|
+
"text": "DateStr"
|
|
78
127
|
}
|
|
79
128
|
}
|
|
80
|
-
]
|
|
129
|
+
],
|
|
130
|
+
"inheritedFrom": {
|
|
131
|
+
"name": "DatePickerBase",
|
|
132
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"kind": "method",
|
|
137
|
+
"name": "#isMonthAfterValidRange",
|
|
138
|
+
"parameters": [
|
|
139
|
+
{
|
|
140
|
+
"name": "month",
|
|
141
|
+
"type": {
|
|
142
|
+
"text": "Month"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"inheritedFrom": {
|
|
147
|
+
"name": "DatePickerBase",
|
|
148
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "method",
|
|
153
|
+
"name": "#isMonthBeforeValidRange",
|
|
154
|
+
"parameters": [
|
|
155
|
+
{
|
|
156
|
+
"name": "month",
|
|
157
|
+
"type": {
|
|
158
|
+
"text": "Month"
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"inheritedFrom": {
|
|
163
|
+
"name": "DatePickerBase",
|
|
164
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
165
|
+
}
|
|
81
166
|
},
|
|
82
167
|
{
|
|
83
168
|
"kind": "field",
|
|
84
|
-
"name": "
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"privacy": "public"
|
|
169
|
+
"name": "#onFocusIn",
|
|
170
|
+
"privacy": "private",
|
|
171
|
+
"inheritedFrom": {
|
|
172
|
+
"name": "DatePickerBase",
|
|
173
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
174
|
+
}
|
|
91
175
|
},
|
|
92
176
|
{
|
|
93
177
|
"kind": "field",
|
|
94
|
-
"name": "
|
|
95
|
-
"
|
|
96
|
-
|
|
178
|
+
"name": "#onFocusOut",
|
|
179
|
+
"privacy": "private",
|
|
180
|
+
"inheritedFrom": {
|
|
181
|
+
"name": "DatePickerBase",
|
|
182
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"kind": "method",
|
|
187
|
+
"name": "_getCustomValidationError",
|
|
188
|
+
"privacy": "protected",
|
|
189
|
+
"return": {
|
|
190
|
+
"type": {
|
|
191
|
+
"text": "string | null"
|
|
192
|
+
}
|
|
97
193
|
},
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
194
|
+
"inheritedFrom": {
|
|
195
|
+
"name": "DatePickerBase",
|
|
196
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
197
|
+
}
|
|
101
198
|
},
|
|
102
199
|
{
|
|
103
200
|
"kind": "field",
|
|
104
201
|
"name": "#dismissOnClickOutside",
|
|
105
|
-
"privacy": "private"
|
|
202
|
+
"privacy": "private",
|
|
203
|
+
"inheritedFrom": {
|
|
204
|
+
"name": "DatePickerBase",
|
|
205
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
206
|
+
}
|
|
106
207
|
},
|
|
107
208
|
{
|
|
108
209
|
"kind": "field",
|
|
@@ -111,63 +212,87 @@ Code in this file were generated using following JSON:
|
|
|
111
212
|
"type": {
|
|
112
213
|
"text": "boolean"
|
|
113
214
|
},
|
|
114
|
-
"default": "false"
|
|
215
|
+
"default": "false",
|
|
216
|
+
"inheritedFrom": {
|
|
217
|
+
"name": "DatePickerBase",
|
|
218
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
219
|
+
}
|
|
115
220
|
},
|
|
116
221
|
{
|
|
117
222
|
"kind": "method",
|
|
118
|
-
"name": "#openPopupIfPossible"
|
|
223
|
+
"name": "#openPopupIfPossible",
|
|
224
|
+
"inheritedFrom": {
|
|
225
|
+
"name": "DatePickerBase",
|
|
226
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
227
|
+
}
|
|
119
228
|
},
|
|
120
229
|
{
|
|
121
230
|
"kind": "method",
|
|
122
|
-
"name": "
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
"
|
|
231
|
+
"name": "_getSelectedDates",
|
|
232
|
+
"privacy": "protected",
|
|
233
|
+
"return": {
|
|
234
|
+
"type": {
|
|
235
|
+
"text": "DateStr[]"
|
|
127
236
|
}
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"attributes": [
|
|
132
|
-
{
|
|
133
|
-
"name": "label",
|
|
134
|
-
"type": {
|
|
135
|
-
"text": "string | undefined"
|
|
136
237
|
},
|
|
137
|
-
"
|
|
138
|
-
|
|
238
|
+
"inheritedFrom": {
|
|
239
|
+
"name": "DatePickerBase",
|
|
240
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
241
|
+
}
|
|
139
242
|
},
|
|
140
243
|
{
|
|
141
|
-
"
|
|
244
|
+
"kind": "field",
|
|
245
|
+
"name": "value",
|
|
142
246
|
"type": {
|
|
143
|
-
"text": "string
|
|
247
|
+
"text": "string"
|
|
144
248
|
},
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
|
|
249
|
+
"default": "''",
|
|
250
|
+
"inheritedFrom": {
|
|
251
|
+
"name": "DatePickerBase",
|
|
252
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"superclass": {
|
|
257
|
+
"name": "DatePickerBase",
|
|
258
|
+
"module": "/libs/components/src/shared/date-picker/date-picker-base"
|
|
259
|
+
},
|
|
260
|
+
"attributes": [
|
|
148
261
|
{
|
|
149
|
-
"name": "error-text",
|
|
150
262
|
"type": {
|
|
151
|
-
"text": "string
|
|
263
|
+
"text": "string"
|
|
152
264
|
},
|
|
153
|
-
"description": "The
|
|
154
|
-
"
|
|
265
|
+
"description": "The earliest accepted date of the date-picker.",
|
|
266
|
+
"default": "''",
|
|
267
|
+
"fieldName": "min",
|
|
268
|
+
"inheritedFrom": {
|
|
269
|
+
"name": "DatePickerBase",
|
|
270
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
271
|
+
}
|
|
155
272
|
},
|
|
156
273
|
{
|
|
274
|
+
"name": "value",
|
|
157
275
|
"type": {
|
|
158
|
-
"text": "
|
|
276
|
+
"text": "string"
|
|
159
277
|
},
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
278
|
+
"description": "The initial value of the date-picker.",
|
|
279
|
+
"fieldName": "initialValue",
|
|
280
|
+
"inheritedFrom": {
|
|
281
|
+
"name": "DatePickerBase",
|
|
282
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
283
|
+
}
|
|
163
284
|
},
|
|
164
285
|
{
|
|
286
|
+
"name": "current-value",
|
|
165
287
|
"type": {
|
|
166
|
-
"text": "
|
|
288
|
+
"text": "string"
|
|
167
289
|
},
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
290
|
+
"description": "The current value of the date-picker.",
|
|
291
|
+
"fieldName": "currentValue",
|
|
292
|
+
"inheritedFrom": {
|
|
293
|
+
"name": "DatePickerBase",
|
|
294
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
295
|
+
}
|
|
171
296
|
},
|
|
172
297
|
{
|
|
173
298
|
"name": "readonly",
|
|
@@ -176,13 +301,13 @@ Code in this file were generated using following JSON:
|
|
|
176
301
|
},
|
|
177
302
|
"default": "false",
|
|
178
303
|
"description": "Whether the date-picker is readonly.",
|
|
179
|
-
"fieldName": "readOnly"
|
|
304
|
+
"fieldName": "readOnly",
|
|
305
|
+
"inheritedFrom": {
|
|
306
|
+
"name": "DatePickerBase",
|
|
307
|
+
"module": "libs/components/src/shared/date-picker/date-picker-base.ts"
|
|
308
|
+
}
|
|
180
309
|
}
|
|
181
|
-
]
|
|
182
|
-
"superclass": {
|
|
183
|
-
"name": "FoundationElement",
|
|
184
|
-
"package": "@microsoft/fast-foundation"
|
|
185
|
-
}
|
|
310
|
+
]
|
|
186
311
|
}
|
|
187
312
|
*/
|
|
188
313
|
import wrapper from '@vonage/vivid-react-wrapper'
|
|
@@ -193,7 +318,7 @@ registerDatePicker('vvd3')
|
|
|
193
318
|
const VwcDatePicker = wrapper(`vvd3-date-picker`, {
|
|
194
319
|
events: [],
|
|
195
320
|
attributes: [],
|
|
196
|
-
properties: ['label', '
|
|
321
|
+
properties: ['type', 'label', 'min', 'max', 'initialValue', 'currentValue', 'readOnly', 'value']
|
|
197
322
|
})
|
|
198
323
|
|
|
199
324
|
VwcDatePicker.displayName = 'VwcDatePicker'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid-react-vvd3-date-picker",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.40.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"private": true,
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@vonage/vivid": "3.
|
|
9
|
+
"@vonage/vivid": "3.40.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
/** Base class for date-picker
|
|
3
|
+
* For more info on this Vivid element please visit https://vivid.deno.dev/components/date-picker-base
|
|
4
|
+
* @param {string} label
|
|
5
|
+
* @param {string} min - The earliest accepted date of the date-picker. **attribute** `min`
|
|
6
|
+
* @param {string} max - The latest accepted date of the date-picker. **attribute** `max`
|
|
7
|
+
* @param {string} initialValue - The initial value of the date-picker. **attribute** `value`
|
|
8
|
+
* @param {string} currentValue - The current value of the date-picker. **attribute** `current-value`
|
|
9
|
+
* @param {boolean} readOnly - Whether the date-picker is readonly. **attribute** `readonly`
|
|
10
|
+
* @param {string} value
|
|
11
|
+
*/
|
|
12
|
+
declare const VwcDatePickerBase: {
|
|
13
|
+
(props: {
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
slot?: string | undefined;
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
style?: React.CSSProperties | undefined;
|
|
18
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
19
|
+
label?: string | undefined;
|
|
20
|
+
min?: string | undefined;
|
|
21
|
+
max?: string | undefined;
|
|
22
|
+
initialValue?: string | undefined;
|
|
23
|
+
currentValue?: string | undefined;
|
|
24
|
+
readOnly?: boolean | undefined;
|
|
25
|
+
value?: string | undefined;
|
|
26
|
+
}): JSX.Element;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
export default VwcDatePickerBase;
|