@vonage/vivid-react 3.3.0 → 3.3.1
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/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/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 +4 -4
- package/package.json +2 -2
- package/types/index.d.ts +255 -30
- package/v3/VwcARIAGlobalStatesAndProperties/index.d.ts +122 -0
- package/v3/VwcARIAGlobalStatesAndProperties/index.js +352 -0
- package/v3/VwcARIAGlobalStatesAndProperties/package.json +11 -0
- package/v3/VwcAccordion/index.d.ts +7 -1
- package/v3/VwcAccordion/index.js +142 -3
- package/v3/VwcAccordion/package.json +2 -2
- package/v3/VwcAccordionItem/index.d.ts +6 -0
- package/v3/VwcAccordionItem/index.js +62 -3
- package/v3/VwcAccordionItem/package.json +2 -2
- package/v3/VwcActionGroup/index.js +2 -2
- package/v3/VwcActionGroup/package.json +2 -2
- package/v3/VwcAlert/index.d.ts +10 -14
- package/v3/VwcAlert/index.js +28 -25
- package/v3/VwcAlert/package.json +2 -2
- package/v3/VwcAnchor/index.d.ts +33 -0
- package/v3/VwcAnchor/index.js +173 -0
- package/v3/{VwcAppearanceUi → VwcAnchor}/package.json +3 -3
- package/v3/VwcAudioPlayer/index.js +2 -2
- package/v3/VwcAudioPlayer/package.json +2 -2
- package/v3/VwcAvatar/index.js +2 -2
- package/v3/VwcAvatar/package.json +2 -2
- package/v3/VwcBadge/index.js +58 -2
- package/v3/VwcBadge/package.json +2 -2
- package/v3/VwcBanner/index.js +2 -2
- package/v3/VwcBanner/package.json +2 -2
- package/v3/VwcBaseProgress/index.d.ts +24 -0
- package/v3/VwcBaseProgress/index.js +108 -0
- package/v3/VwcBaseProgress/package.json +11 -0
- package/v3/VwcBreadcrumb/index.js +62 -2
- package/v3/VwcBreadcrumb/package.json +2 -2
- package/v3/VwcBreadcrumbItem/index.js +2 -2
- package/v3/VwcBreadcrumbItem/package.json +2 -2
- package/v3/VwcButton/index.d.ts +22 -3
- package/v3/VwcButton/index.js +350 -5
- package/v3/VwcButton/package.json +2 -2
- package/v3/VwcCalendar/index.js +2 -2
- package/v3/VwcCalendar/package.json +2 -2
- package/v3/VwcCalendarEvent/index.js +2 -2
- package/v3/VwcCalendarEvent/package.json +2 -2
- package/v3/VwcCard/index.js +2 -2
- package/v3/VwcCard/package.json +2 -2
- package/v3/VwcCheckbox/index.d.ts +8 -1
- package/v3/VwcCheckbox/index.js +64 -3
- package/v3/VwcCheckbox/package.json +2 -2
- package/v3/VwcCombobox/index.d.ts +26 -0
- package/v3/VwcCombobox/index.js +283 -3
- package/v3/VwcCombobox/package.json +2 -2
- package/v3/VwcDataGrid/index.d.ts +29 -2
- package/v3/VwcDataGrid/index.js +286 -8
- package/v3/VwcDataGrid/package.json +2 -2
- package/v3/VwcDataGridCell/index.d.ts +10 -2
- package/v3/VwcDataGridCell/index.js +143 -23
- package/v3/VwcDataGridCell/package.json +2 -2
- package/v3/VwcDataGridRow/index.d.ts +16 -0
- package/v3/VwcDataGridRow/index.js +168 -3
- package/v3/VwcDataGridRow/package.json +2 -2
- package/v3/VwcDatePicker/index.js +39 -0
- package/v3/VwcDatePicker/package.json +2 -2
- package/v3/VwcDatePickerBase/index.js +27 -0
- package/v3/VwcDatePickerBase/package.json +2 -2
- package/v3/VwcDateRangePicker/index.js +39 -0
- package/v3/VwcDateRangePicker/package.json +2 -2
- package/v3/VwcDelegatesARIAButton/index.d.ts +19 -0
- package/v3/VwcDelegatesARIAButton/index.js +63 -0
- package/v3/VwcDelegatesARIAButton/package.json +11 -0
- package/v3/VwcDelegatesARIALink/index.d.ts +17 -0
- package/v3/VwcDelegatesARIALink/index.js +46 -0
- package/v3/VwcDelegatesARIALink/package.json +11 -0
- package/v3/VwcDelegatesARIAListbox/index.d.ts +23 -0
- package/v3/VwcDelegatesARIAListbox/index.js +63 -0
- package/v3/VwcDelegatesARIAListbox/package.json +11 -0
- package/v3/VwcDelegatesARIAListboxOption/index.d.ts +23 -0
- package/v3/VwcDelegatesARIAListboxOption/index.js +97 -0
- package/v3/VwcDelegatesARIAListboxOption/package.json +11 -0
- package/v3/VwcDelegatesARIASelect/index.d.ts +17 -0
- package/v3/VwcDelegatesARIASelect/index.js +70 -0
- package/v3/VwcDelegatesARIASelect/package.json +11 -0
- package/v3/VwcDelegatesARIATextbox/index.d.ts +16 -0
- package/v3/VwcDelegatesARIATextbox/index.js +59 -0
- package/v3/VwcDelegatesARIATextbox/package.json +11 -0
- package/v3/VwcDialPad/index.js +2 -2
- package/v3/VwcDialPad/package.json +2 -2
- package/v3/VwcDialog/index.d.ts +8 -1
- package/v3/VwcDialog/index.js +85 -5
- package/v3/VwcDialog/package.json +2 -2
- package/v3/VwcDivider/index.d.ts +4 -1
- package/v3/VwcDivider/index.js +41 -3
- package/v3/VwcDivider/package.json +2 -2
- package/v3/VwcElevation/index.d.ts +2 -0
- package/v3/VwcElevation/index.js +17 -3
- package/v3/VwcElevation/package.json +2 -2
- package/v3/VwcEmptyState/index.js +2 -2
- package/v3/VwcEmptyState/package.json +2 -2
- package/v3/VwcFab/index.d.ts +20 -0
- package/v3/VwcFab/index.js +353 -3
- package/v3/VwcFab/package.json +2 -2
- package/v3/VwcFilePicker/index.d.ts +8 -0
- package/v3/VwcFilePicker/index.js +181 -1
- package/v3/VwcFilePicker/package.json +2 -2
- package/v3/VwcFormAssociatedCheckbox/index.d.ts +17 -0
- package/v3/VwcFormAssociatedCheckbox/index.js +41 -0
- package/v3/VwcFormAssociatedCheckbox/package.json +11 -0
- package/v3/VwcFormAssociatedFilePicker/index.js +1 -1
- package/v3/VwcFormAssociatedFilePicker/package.json +2 -2
- package/v3/VwcFormAssociatedNumberField/index.js +1 -1
- package/v3/VwcFormAssociatedNumberField/package.json +2 -2
- package/v3/VwcFormAssociatedRadio/index.d.ts +19 -0
- package/v3/VwcFormAssociatedRadio/index.js +64 -0
- package/v3/VwcFormAssociatedRadio/package.json +11 -0
- package/v3/VwcFormAssociatedRangeSlider/index.js +1 -1
- package/v3/VwcFormAssociatedRangeSlider/package.json +2 -2
- package/v3/VwcFormAssociatedSearchableSelect/index.d.ts +17 -0
- package/v3/VwcFormAssociatedSearchableSelect/index.js +41 -0
- package/v3/VwcFormAssociatedSearchableSelect/package.json +11 -0
- package/v3/VwcFormAssociatedSelect/index.d.ts +27 -0
- package/v3/VwcFormAssociatedSelect/index.js +164 -0
- package/v3/VwcFormAssociatedSelect/package.json +11 -0
- package/v3/VwcFormAssociatedSlider/index.d.ts +17 -0
- package/v3/VwcFormAssociatedSlider/index.js +41 -0
- package/v3/VwcFormAssociatedSlider/package.json +11 -0
- package/v3/VwcFormAssociatedSwitch/index.d.ts +17 -0
- package/v3/VwcFormAssociatedSwitch/index.js +41 -0
- package/v3/VwcFormAssociatedSwitch/package.json +11 -0
- package/v3/VwcFormAssociatedTextArea/index.d.ts +17 -0
- package/v3/VwcFormAssociatedTextArea/index.js +41 -0
- package/v3/VwcFormAssociatedTextArea/package.json +11 -0
- package/v3/VwcFormAssociatedTextField/index.d.ts +17 -0
- package/v3/VwcFormAssociatedTextField/index.js +41 -0
- package/v3/VwcFormAssociatedTextField/package.json +11 -0
- package/v3/VwcFormAssociatedTimePicker/index.js +1 -1
- package/v3/VwcFormAssociatedTimePicker/package.json +2 -2
- package/v3/VwcHeader/index.js +2 -2
- package/v3/VwcHeader/package.json +2 -2
- package/v3/VwcIcon/index.js +15 -2
- package/v3/VwcIcon/package.json +2 -2
- package/v3/VwcInlineTimePicker/index.d.ts +27 -0
- package/v3/VwcInlineTimePicker/index.js +125 -0
- package/v3/VwcInlineTimePicker/package.json +11 -0
- package/v3/VwcLayout/index.js +2 -2
- package/v3/VwcLayout/package.json +2 -2
- package/v3/VwcListbox/index.d.ts +10 -6
- package/v3/VwcListbox/index.js +51 -76
- package/v3/VwcListbox/package.json +2 -2
- package/v3/VwcMenu/index.d.ts +2 -4
- package/v3/VwcMenu/index.js +148 -11
- package/v3/VwcMenu/package.json +2 -2
- package/v3/VwcMenuItem/index.d.ts +8 -4
- package/v3/VwcMenuItem/index.js +83 -17
- package/v3/VwcMenuItem/package.json +2 -2
- package/v3/VwcNav/index.js +2 -2
- package/v3/VwcNav/package.json +2 -2
- package/v3/VwcNavDisclosure/index.js +2 -2
- package/v3/VwcNavDisclosure/package.json +2 -2
- package/v3/VwcNavItem/package.json +2 -2
- package/v3/VwcNote/index.js +2 -2
- package/v3/VwcNote/package.json +2 -2
- package/v3/VwcNumberField/index.d.ts +2 -0
- package/v3/VwcNumberField/index.js +18 -1
- package/v3/VwcNumberField/package.json +2 -2
- package/v3/VwcOption/index.d.ts +24 -5
- package/v3/VwcOption/index.js +199 -12
- package/v3/VwcOption/package.json +2 -2
- package/v3/VwcOptionTag/index.d.ts +25 -0
- package/v3/VwcOptionTag/index.js +109 -0
- package/v3/VwcOptionTag/package.json +11 -0
- package/v3/VwcPagination/index.js +2 -2
- package/v3/VwcPagination/package.json +2 -2
- package/v3/VwcProgress/index.d.ts +8 -0
- package/v3/VwcProgress/index.js +79 -4
- package/v3/VwcProgress/package.json +2 -2
- package/v3/VwcProgressRing/index.d.ts +8 -0
- package/v3/VwcProgressRing/index.js +84 -2
- package/v3/VwcProgressRing/package.json +2 -2
- package/v3/VwcRadio/index.d.ts +8 -0
- package/v3/VwcRadio/index.js +93 -3
- package/v3/VwcRadio/package.json +2 -2
- package/v3/VwcRadioGroup/index.d.ts +11 -0
- package/v3/VwcRadioGroup/index.js +177 -3
- package/v3/VwcRadioGroup/package.json +2 -2
- package/v3/VwcRangeSlider/package.json +2 -2
- package/v3/VwcSearchableSelect/index.d.ts +46 -0
- package/v3/VwcSearchableSelect/index.js +551 -0
- package/v3/VwcSearchableSelect/package.json +11 -0
- package/v3/VwcSelect/index.d.ts +20 -0
- package/v3/VwcSelect/index.js +205 -3
- package/v3/VwcSelect/package.json +2 -2
- package/v3/VwcSelectableBox/index.js +2 -2
- package/v3/VwcSelectableBox/package.json +2 -2
- package/v3/VwcSideDrawer/index.d.ts +1 -0
- package/v3/VwcSideDrawer/index.js +10 -3
- package/v3/VwcSideDrawer/package.json +2 -2
- package/v3/VwcSlider/index.d.ts +22 -16
- package/v3/VwcSlider/index.js +292 -21
- package/v3/VwcSlider/package.json +2 -2
- package/v3/VwcSplitButton/index.js +2 -2
- package/v3/VwcSplitButton/package.json +2 -2
- package/v3/VwcSwitch/index.d.ts +10 -1
- package/v3/VwcSwitch/index.js +66 -3
- package/v3/VwcSwitch/package.json +2 -2
- package/v3/VwcTab/index.d.ts +4 -0
- package/v3/VwcTab/index.js +61 -3
- package/v3/VwcTab/package.json +2 -2
- package/v3/VwcTabPanel/index.js +2 -2
- package/v3/VwcTabPanel/package.json +2 -2
- package/v3/VwcTabs/index.d.ts +11 -1
- package/v3/VwcTabs/index.js +284 -34
- package/v3/VwcTabs/package.json +2 -2
- package/v3/VwcTag/index.js +2 -2
- package/v3/VwcTag/package.json +2 -2
- package/v3/VwcTagGroup/index.js +2 -2
- package/v3/VwcTagGroup/package.json +2 -2
- package/v3/VwcTextAnchor/index.js +2 -2
- package/v3/VwcTextAnchor/package.json +2 -2
- package/v3/VwcTextArea/index.d.ts +27 -0
- package/v3/VwcTextArea/index.js +226 -3
- package/v3/VwcTextArea/package.json +2 -2
- package/v3/VwcTextField/index.d.ts +28 -2
- package/v3/VwcTextField/index.js +221 -3
- package/v3/VwcTextField/package.json +2 -2
- package/v3/VwcTimePicker/index.js +17 -0
- package/v3/VwcTimePicker/package.json +2 -2
- package/v3/VwcToggletip/index.js +2 -2
- package/v3/VwcToggletip/package.json +2 -2
- package/v3/VwcTooltip/index.js +2 -2
- package/v3/VwcTooltip/package.json +2 -2
- package/v3/VwcTreeItem/index.d.ts +6 -0
- package/v3/VwcTreeItem/index.js +107 -3
- package/v3/VwcTreeItem/package.json +2 -2
- package/v3/VwcTreeView/index.d.ts +5 -1
- package/v3/VwcTreeView/index.js +124 -3
- package/v3/VwcTreeView/package.json +2 -2
- package/v3/VwcVideoPlayer/index.js +2 -2
- package/v3/VwcVideoPlayer/package.json +2 -2
- package/v3/VwcVividElement/index.d.ts +16 -0
- package/v3/VwcVividElement/index.js +30 -0
- package/v3/VwcVividElement/package.json +11 -0
- package/v3/VwcVividFoundationButton/index.d.ts +36 -0
- package/v3/VwcVividFoundationButton/index.js +296 -0
- package/v3/VwcVividFoundationButton/package.json +11 -0
- package/v3/VwcAppearanceUi/index.d.ts +0 -29
- package/v3/VwcAppearanceUi/index.js +0 -559
|
@@ -0,0 +1,551 @@
|
|
|
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": "",
|
|
9
|
+
"name": "SearchableSelect",
|
|
10
|
+
"cssProperties": [
|
|
11
|
+
{
|
|
12
|
+
"name": "--vvd-searchable-select-accent-primary",
|
|
13
|
+
"default": "var(--vvd-color-canvas-text)"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "--vvd-searchable-select-accent-primary-text",
|
|
17
|
+
"default": "var(--vvd-color-canvas)"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "--vvd-searchable-select-accent-primary-increment",
|
|
21
|
+
"default": "var(--vvd-color-neutral-800)"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "--vvd-searchable-select-accent-intermediate",
|
|
25
|
+
"default": "var(--vvd-color-neutral-500)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "--vvd-searchable-select-accent-faint",
|
|
29
|
+
"default": "var(--vvd-color-neutral-50)"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "--vvd-searchable-select-accent-soft",
|
|
33
|
+
"default": "var(--vvd-color-neutral-100)"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "--vvd-searchable-select-accent-firm",
|
|
37
|
+
"default": "var(--vvd-color-canvas-text)"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "--vvd-searchable-select-accent-fierce",
|
|
41
|
+
"default": "var(--vvd-color-neutral-700)"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"slots": [
|
|
45
|
+
{
|
|
46
|
+
"description": "Holds the available options.",
|
|
47
|
+
"name": ""
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"description": "Slot to add an icon to the control.",
|
|
51
|
+
"name": "icon"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"description": "Slot to add meta content to the control.",
|
|
55
|
+
"name": "meta"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"description": "Describes how to use the component. Alternative to the `helper-text` attribute.",
|
|
59
|
+
"name": "helper-text"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"description": "Message that appears when no options are available.",
|
|
63
|
+
"name": "no-options"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"description": "Message that appears when no options match the search query.",
|
|
67
|
+
"name": "no-matches"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"members": [
|
|
71
|
+
{
|
|
72
|
+
"kind": "field",
|
|
73
|
+
"name": "appearance",
|
|
74
|
+
"type": {
|
|
75
|
+
"text": "SearchableSelectAppearance | undefined"
|
|
76
|
+
},
|
|
77
|
+
"privacy": "public",
|
|
78
|
+
"description": ""
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"kind": "field",
|
|
82
|
+
"name": "shape",
|
|
83
|
+
"type": {
|
|
84
|
+
"text": "SearchableSelectShape | undefined"
|
|
85
|
+
},
|
|
86
|
+
"privacy": "public",
|
|
87
|
+
"description": ""
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"kind": "field",
|
|
91
|
+
"name": "fixedDropdown",
|
|
92
|
+
"type": {
|
|
93
|
+
"text": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"default": "false",
|
|
96
|
+
"privacy": "public",
|
|
97
|
+
"description": ""
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"kind": "field",
|
|
101
|
+
"name": "placeholder",
|
|
102
|
+
"type": {
|
|
103
|
+
"text": "string | undefined"
|
|
104
|
+
},
|
|
105
|
+
"privacy": "public",
|
|
106
|
+
"description": ""
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"kind": "field",
|
|
110
|
+
"name": "open",
|
|
111
|
+
"type": {
|
|
112
|
+
"text": "boolean"
|
|
113
|
+
},
|
|
114
|
+
"default": "false",
|
|
115
|
+
"privacy": "public",
|
|
116
|
+
"description": ""
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"kind": "field",
|
|
120
|
+
"name": "multiple",
|
|
121
|
+
"type": {
|
|
122
|
+
"text": "boolean"
|
|
123
|
+
},
|
|
124
|
+
"default": "false",
|
|
125
|
+
"privacy": "public",
|
|
126
|
+
"description": ""
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"kind": "field",
|
|
130
|
+
"name": "externalTags",
|
|
131
|
+
"type": {
|
|
132
|
+
"text": "boolean"
|
|
133
|
+
},
|
|
134
|
+
"default": "false",
|
|
135
|
+
"privacy": "public",
|
|
136
|
+
"description": ""
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"kind": "field",
|
|
140
|
+
"name": "maxLines",
|
|
141
|
+
"type": {
|
|
142
|
+
"text": "number | null"
|
|
143
|
+
},
|
|
144
|
+
"default": "null",
|
|
145
|
+
"privacy": "public",
|
|
146
|
+
"description": ""
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"kind": "field",
|
|
150
|
+
"name": "values",
|
|
151
|
+
"type": {
|
|
152
|
+
"text": "string[]"
|
|
153
|
+
},
|
|
154
|
+
"default": "[]",
|
|
155
|
+
"description": "List of selected values."
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"kind": "method",
|
|
159
|
+
"name": "#updateValuesThroughUserInteraction",
|
|
160
|
+
"parameters": [
|
|
161
|
+
{
|
|
162
|
+
"name": "newValues",
|
|
163
|
+
"type": {
|
|
164
|
+
"text": "string[]"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"kind": "method",
|
|
171
|
+
"name": "#updateValuesWhileMaintainingOrder",
|
|
172
|
+
"parameters": [
|
|
173
|
+
{
|
|
174
|
+
"name": "newValues",
|
|
175
|
+
"type": {
|
|
176
|
+
"text": "string[]"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"kind": "field",
|
|
183
|
+
"name": "initialValues",
|
|
184
|
+
"type": {
|
|
185
|
+
"text": "string[]"
|
|
186
|
+
},
|
|
187
|
+
"default": "[]",
|
|
188
|
+
"description": "The initial values. This value sets the `values` property\nonly when the `values` property has not been explicitly set."
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"kind": "method",
|
|
192
|
+
"name": "#isValidValue",
|
|
193
|
+
"parameters": [
|
|
194
|
+
{
|
|
195
|
+
"name": "value",
|
|
196
|
+
"type": {
|
|
197
|
+
"text": "string"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"kind": "field",
|
|
204
|
+
"name": "selectedIndex"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"kind": "field",
|
|
208
|
+
"name": "options",
|
|
209
|
+
"readonly": true
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"kind": "field",
|
|
213
|
+
"name": "selectedOptions",
|
|
214
|
+
"readonly": true
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"kind": "field",
|
|
218
|
+
"name": "#slottedOptionsChangeHandler",
|
|
219
|
+
"privacy": "private",
|
|
220
|
+
"type": {
|
|
221
|
+
"text": "object"
|
|
222
|
+
},
|
|
223
|
+
"default": "{\n\t\thandleChange: (source: ListboxOption, _: string) => {\n\t\t\tif (source.selected && !this.values.includes(source.value)) {\n\t\t\t\tthis.values = [...this.values, source.value];\n\t\t\t} else if (!source.selected && this.values.includes(source.value)) {\n\t\t\t\tthis.values = this.values.filter((option) => option !== source.value);\n\t\t\t}\n\t\t},\n\t}"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"kind": "method",
|
|
227
|
+
"name": "#updateSelectedOnSlottedOptions"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "method",
|
|
231
|
+
"name": "#handleOptionInteraction",
|
|
232
|
+
"parameters": [
|
|
233
|
+
{
|
|
234
|
+
"name": "option",
|
|
235
|
+
"type": {
|
|
236
|
+
"text": "ListboxOption"
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"kind": "field",
|
|
243
|
+
"name": "#clonedTagIcons",
|
|
244
|
+
"privacy": "private",
|
|
245
|
+
"default": "new Map<ListboxOption, HTMLElement>()"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"kind": "method",
|
|
249
|
+
"name": "#tagIconOfOption",
|
|
250
|
+
"parameters": [
|
|
251
|
+
{
|
|
252
|
+
"name": "option",
|
|
253
|
+
"type": {
|
|
254
|
+
"text": "ListboxOption"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "method",
|
|
261
|
+
"name": "#updateClonedTagIconOfOption",
|
|
262
|
+
"parameters": [
|
|
263
|
+
{
|
|
264
|
+
"name": "option",
|
|
265
|
+
"type": {
|
|
266
|
+
"text": "ListboxOption"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"kind": "field",
|
|
273
|
+
"name": "#suppressFilter",
|
|
274
|
+
"privacy": "private",
|
|
275
|
+
"type": {
|
|
276
|
+
"text": "boolean"
|
|
277
|
+
},
|
|
278
|
+
"default": "false"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"kind": "method",
|
|
282
|
+
"name": "#updateFilteredOptions"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "method",
|
|
286
|
+
"name": "#transitionHighlightedOptionTo",
|
|
287
|
+
"parameters": [
|
|
288
|
+
{
|
|
289
|
+
"name": "index",
|
|
290
|
+
"type": {
|
|
291
|
+
"text": "number | null"
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"kind": "method",
|
|
298
|
+
"name": "#selectHighlightedOption"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"kind": "method",
|
|
302
|
+
"name": "#highlightFirstOption"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"kind": "method",
|
|
306
|
+
"name": "#highlightLastOption"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"kind": "method",
|
|
310
|
+
"name": "#highlightPrevPage"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"kind": "method",
|
|
314
|
+
"name": "#highlightNextPage"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"kind": "method",
|
|
318
|
+
"name": "#highlightPreviousOption"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"kind": "method",
|
|
322
|
+
"name": "#highlightNextOption"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"kind": "method",
|
|
326
|
+
"name": "#textForValue",
|
|
327
|
+
"parameters": [
|
|
328
|
+
{
|
|
329
|
+
"name": "value",
|
|
330
|
+
"type": {
|
|
331
|
+
"text": "string"
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"kind": "method",
|
|
338
|
+
"name": "#updateTagLayout"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"kind": "method",
|
|
342
|
+
"name": "#moveTagFocusTo",
|
|
343
|
+
"parameters": [
|
|
344
|
+
{
|
|
345
|
+
"name": "index",
|
|
346
|
+
"type": {
|
|
347
|
+
"text": "number | null"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"kind": "method",
|
|
354
|
+
"name": "#nextTagIndexLeft",
|
|
355
|
+
"parameters": [
|
|
356
|
+
{
|
|
357
|
+
"name": "index",
|
|
358
|
+
"type": {
|
|
359
|
+
"text": "number"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
]
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"kind": "method",
|
|
366
|
+
"name": "#nextTagIndexRight",
|
|
367
|
+
"parameters": [
|
|
368
|
+
{
|
|
369
|
+
"name": "index",
|
|
370
|
+
"type": {
|
|
371
|
+
"text": "number"
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"kind": "method",
|
|
378
|
+
"name": "#nextTagIndexForRemoved",
|
|
379
|
+
"parameters": [
|
|
380
|
+
{
|
|
381
|
+
"name": "index",
|
|
382
|
+
"type": {
|
|
383
|
+
"text": "number"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"kind": "field",
|
|
390
|
+
"name": "clearable",
|
|
391
|
+
"type": {
|
|
392
|
+
"text": "boolean"
|
|
393
|
+
},
|
|
394
|
+
"default": "false",
|
|
395
|
+
"description": "Adds a clear button to the input field that clears the selected values.",
|
|
396
|
+
"privacy": "public"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"kind": "method",
|
|
400
|
+
"name": "#determineInitialValues"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"kind": "method",
|
|
404
|
+
"name": "#updateFormValue"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"kind": "field",
|
|
408
|
+
"name": "setFormValue"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"kind": "field",
|
|
412
|
+
"name": "#resizeObserver",
|
|
413
|
+
"privacy": "private",
|
|
414
|
+
"default": "new ResizeObserver(() => {\n\t\tthis.#updateTagLayout();\n\t})"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"kind": "field",
|
|
418
|
+
"name": "proxy",
|
|
419
|
+
"inheritedFrom": {
|
|
420
|
+
"name": "FormAssociatedSearchableSelect",
|
|
421
|
+
"module": "libs/components/src/lib/searchable-select/searchable-select.form-associated.ts"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
"events": [
|
|
426
|
+
{
|
|
427
|
+
"type": {
|
|
428
|
+
"text": "CustomEvent<undefined>"
|
|
429
|
+
},
|
|
430
|
+
"description": "Fired when the selected options change",
|
|
431
|
+
"name": "input"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"type": {
|
|
435
|
+
"text": "CustomEvent<undefined>"
|
|
436
|
+
},
|
|
437
|
+
"description": "Fired when the selected options change",
|
|
438
|
+
"name": "change"
|
|
439
|
+
}
|
|
440
|
+
],
|
|
441
|
+
"attributes": [
|
|
442
|
+
{
|
|
443
|
+
"name": "appearance",
|
|
444
|
+
"type": {
|
|
445
|
+
"text": "SearchableSelectAppearance | undefined"
|
|
446
|
+
},
|
|
447
|
+
"fieldName": "appearance"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "shape",
|
|
451
|
+
"type": {
|
|
452
|
+
"text": "SearchableSelectShape | undefined"
|
|
453
|
+
},
|
|
454
|
+
"fieldName": "shape"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "fixed-dropdown",
|
|
458
|
+
"type": {
|
|
459
|
+
"text": "boolean"
|
|
460
|
+
},
|
|
461
|
+
"default": "false",
|
|
462
|
+
"fieldName": "fixedDropdown"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "placeholder",
|
|
466
|
+
"type": {
|
|
467
|
+
"text": "string | undefined"
|
|
468
|
+
},
|
|
469
|
+
"fieldName": "placeholder"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"type": {
|
|
473
|
+
"text": "boolean"
|
|
474
|
+
},
|
|
475
|
+
"default": "false",
|
|
476
|
+
"fieldName": "open"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"type": {
|
|
480
|
+
"text": "boolean"
|
|
481
|
+
},
|
|
482
|
+
"default": "false",
|
|
483
|
+
"fieldName": "multiple"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"name": "external-tags",
|
|
487
|
+
"type": {
|
|
488
|
+
"text": "boolean"
|
|
489
|
+
},
|
|
490
|
+
"default": "false",
|
|
491
|
+
"fieldName": "externalTags"
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
"name": "max-lines",
|
|
495
|
+
"type": {
|
|
496
|
+
"text": "number | null"
|
|
497
|
+
},
|
|
498
|
+
"default": "null",
|
|
499
|
+
"fieldName": "maxLines"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"type": {
|
|
503
|
+
"text": "boolean"
|
|
504
|
+
},
|
|
505
|
+
"default": "false",
|
|
506
|
+
"description": "Adds a clear button to the input field that clears the selected values.",
|
|
507
|
+
"fieldName": "clearable"
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
"superclass": {
|
|
511
|
+
"name": "FormAssociatedSearchableSelect",
|
|
512
|
+
"module": "/libs/components/src/lib/searchable-select/searchable-select.form-associated"
|
|
513
|
+
},
|
|
514
|
+
"vividComponent": {
|
|
515
|
+
"public": true,
|
|
516
|
+
"name": "searchable-select",
|
|
517
|
+
"vueModels": [
|
|
518
|
+
{
|
|
519
|
+
"name": "modelValue",
|
|
520
|
+
"attributeName": "value",
|
|
521
|
+
"eventNames": [
|
|
522
|
+
"input"
|
|
523
|
+
],
|
|
524
|
+
"valueMapping": "(event.target as HTMLInputElement).value"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "values",
|
|
528
|
+
"attributeName": "values",
|
|
529
|
+
"eventNames": [
|
|
530
|
+
"input"
|
|
531
|
+
],
|
|
532
|
+
"valueMapping": "(event.target as any).values"
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
*/
|
|
538
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
539
|
+
import { registerSearchableSelect } from '@vonage/vivid'
|
|
540
|
+
|
|
541
|
+
registerSearchableSelect('vvd3')
|
|
542
|
+
|
|
543
|
+
const VwcSearchableSelect = wrapper(`vvd3-searchable-select`, {
|
|
544
|
+
events: [{"name":"change","propName":"onChange"},{"name":"input","propName":"onInput"}],
|
|
545
|
+
attributes: [],
|
|
546
|
+
properties: ['appearance', 'shape', 'fixedDropdown', 'placeholder', 'open', 'multiple', 'externalTags', 'maxLines', 'values', 'initialValues', 'selectedIndex', 'clearable', 'setFormValue', 'proxy']
|
|
547
|
+
})
|
|
548
|
+
|
|
549
|
+
VwcSearchableSelect.displayName = 'VwcSearchableSelect'
|
|
550
|
+
|
|
551
|
+
export default VwcSearchableSelect
|
package/v3/VwcSelect/index.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
2
|
/** VwcSelect
|
|
3
3
|
* For more info on this Vivid element please visit https://vivid.deno.dev/components/select
|
|
4
|
+
* @param {boolean} multiple - Indicates if the listbox is in multi-selection mode. **attribute** `multiple`
|
|
5
|
+
* @param {boolean} open - The open attribute. **attribute** `open`
|
|
6
|
+
* @param value - The value property.
|
|
7
|
+
* @param {SelectSize | undefined} scale - The size the select should have. **attribute** `scale`
|
|
4
8
|
* @param {SelectAppearance | undefined} appearance - The appearance attribute. **attribute** `appearance`
|
|
5
9
|
* @param {SelectShape | undefined} shape - The shape attribute. **attribute** `shape`
|
|
6
10
|
* @param {boolean} fixedDropdown - The fixed-dropdown attribute. **attribute** `fixed-dropdown`
|
|
7
11
|
* @param {string | undefined} placeholder - The placeholder attribute. **attribute** `placeholder`
|
|
12
|
+
* @param proxy
|
|
13
|
+
* @param {ListboxOption[]} options - The list of options.
|
|
14
|
+
* @param {boolean} disabled - The disabled state of the listbox.
|
|
15
|
+
* @param {number} selectedIndex - The index of the selected option.
|
|
16
|
+
* @param {ListboxOption[]} selectedOptions - A collection of the selected options.
|
|
17
|
+
* @param slottedOptionFilter - A static filter to include only selectable options.
|
|
8
18
|
*/
|
|
9
19
|
declare const VwcSelect: {
|
|
10
20
|
(props: {
|
|
@@ -15,10 +25,20 @@ declare const VwcSelect: {
|
|
|
15
25
|
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
16
26
|
onInput?: ((event: SyntheticEvent) => void) | undefined;
|
|
17
27
|
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
28
|
+
multiple?: boolean | undefined;
|
|
29
|
+
open?: boolean | undefined;
|
|
30
|
+
value?: any;
|
|
31
|
+
scale?: any;
|
|
18
32
|
appearance?: any;
|
|
19
33
|
shape?: any;
|
|
20
34
|
fixedDropdown?: boolean | undefined;
|
|
21
35
|
placeholder?: string | undefined;
|
|
36
|
+
proxy?: any;
|
|
37
|
+
options?: any[] | undefined;
|
|
38
|
+
disabled?: boolean | undefined;
|
|
39
|
+
selectedIndex?: number | undefined;
|
|
40
|
+
selectedOptions?: any[] | undefined;
|
|
41
|
+
slottedOptionFilter?: any;
|
|
22
42
|
}): JSX.Element;
|
|
23
43
|
displayName: string;
|
|
24
44
|
};
|