@vonage/vivid-react 3.5.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +58 -9
- package/v3/VwcAccordion/package.json +2 -2
- package/v3/VwcAccordionItem/index.d.ts +2 -0
- package/v3/VwcAccordionItem/index.js +85 -1
- package/v3/VwcAccordionItem/package.json +2 -2
- package/v3/VwcActionGroup/package.json +2 -2
- package/v3/VwcAlert/index.js +28 -0
- package/v3/VwcAlert/package.json +2 -2
- package/v3/VwcAudioPlayer/index.d.ts +2 -0
- package/v3/VwcAudioPlayer/index.js +106 -13
- package/v3/VwcAudioPlayer/package.json +2 -2
- package/v3/VwcAvatar/package.json +2 -2
- package/v3/VwcBadge/package.json +2 -2
- package/v3/VwcBanner/index.js +29 -0
- package/v3/VwcBanner/package.json +2 -2
- package/v3/VwcBaseProgress/package.json +2 -2
- package/v3/VwcBreadcrumb/package.json +2 -2
- package/v3/VwcBreadcrumbItem/package.json +2 -2
- package/v3/VwcButton/index.js +42 -0
- package/v3/VwcButton/package.json +2 -2
- package/v3/VwcCalendar/package.json +2 -2
- package/v3/VwcCalendarEvent/package.json +2 -2
- package/v3/VwcCard/index.js +13 -0
- package/v3/VwcCard/package.json +2 -2
- package/v3/VwcCheckbox/index.js +51 -4
- package/v3/VwcCheckbox/package.json +2 -2
- package/v3/VwcColorPicker/index.d.ts +61 -0
- package/v3/VwcColorPicker/index.js +651 -0
- package/v3/VwcColorPicker/package.json +11 -0
- package/v3/VwcCombobox/index.js +138 -0
- package/v3/VwcCombobox/package.json +2 -2
- package/v3/VwcContextualHelp/index.d.ts +22 -0
- package/v3/VwcContextualHelp/index.js +130 -0
- package/v3/VwcContextualHelp/package.json +11 -0
- package/v3/VwcDataGrid/index.d.ts +2 -0
- package/v3/VwcDataGrid/index.js +26 -10
- package/v3/VwcDataGrid/package.json +2 -2
- package/v3/VwcDataGridCell/index.d.ts +5 -3
- package/v3/VwcDataGridCell/index.js +17 -25
- package/v3/VwcDataGridCell/package.json +2 -2
- package/v3/VwcDataGridRow/index.d.ts +3 -1
- package/v3/VwcDataGridRow/index.js +21 -21
- package/v3/VwcDataGridRow/package.json +2 -2
- package/v3/VwcDatePicker/index.js +14 -1
- package/v3/VwcDatePicker/package.json +2 -2
- package/v3/VwcDateRangePicker/index.js +21 -1
- package/v3/VwcDateRangePicker/package.json +2 -2
- package/v3/VwcDateTimePicker/index.js +15 -2
- package/v3/VwcDateTimePicker/package.json +2 -2
- package/v3/VwcDelegateAriaBehavior/index.js +5 -58
- package/v3/VwcDelegateAriaBehavior/package.json +2 -2
- package/v3/VwcDialPad/index.d.ts +6 -0
- package/v3/VwcDialPad/index.js +27 -3
- package/v3/VwcDialPad/package.json +2 -2
- package/v3/VwcDialog/index.js +50 -0
- package/v3/VwcDialog/package.json +2 -2
- package/v3/VwcDivider/index.d.ts +4 -2
- package/v3/VwcDivider/index.js +34 -15
- package/v3/VwcDivider/package.json +2 -2
- package/v3/VwcElevation/package.json +2 -2
- package/v3/VwcEmptyState/index.js +28 -0
- package/v3/VwcEmptyState/package.json +2 -2
- package/v3/VwcFab/index.js +42 -0
- package/v3/VwcFab/package.json +2 -2
- package/v3/VwcFeedbackMessage/index.d.ts +0 -2
- package/v3/VwcFeedbackMessage/index.js +1 -13
- package/v3/VwcFeedbackMessage/package.json +2 -2
- package/v3/VwcFilePicker/index.d.ts +5 -7
- package/v3/VwcFilePicker/index.js +55 -290
- package/v3/VwcFilePicker/package.json +2 -2
- package/v3/VwcHeader/package.json +2 -2
- package/v3/VwcHostSemanticsBehavior/index.js +11 -27
- package/v3/VwcHostSemanticsBehavior/package.json +2 -2
- package/v3/VwcIcon/index.js +22 -0
- package/v3/VwcIcon/package.json +2 -2
- package/v3/VwcImagePlaceholder/index.d.ts +28 -0
- package/v3/VwcImagePlaceholder/index.js +116 -0
- package/v3/VwcImagePlaceholder/package.json +11 -0
- package/v3/VwcInlineTimePicker/index.d.ts +0 -2
- package/v3/VwcInlineTimePicker/index.js +1 -13
- package/v3/VwcInlineTimePicker/package.json +2 -2
- package/v3/VwcLayout/package.json +2 -2
- package/v3/VwcListbox/index.js +74 -0
- package/v3/VwcListbox/package.json +2 -2
- package/v3/VwcMenu/index.d.ts +2 -0
- package/v3/VwcMenu/index.js +48 -1
- package/v3/VwcMenu/package.json +2 -2
- package/v3/VwcMenuItem/index.d.ts +1 -1
- package/v3/VwcMenuItem/index.js +50 -8
- package/v3/VwcMenuItem/package.json +2 -2
- package/v3/{VwcMenuBar → VwcMenubar}/index.d.ts +4 -4
- package/v3/{VwcMenuBar → VwcMenubar}/index.js +4 -6
- package/v3/{VwcMenuBar → VwcMenubar}/package.json +3 -3
- package/v3/VwcNav/package.json +2 -2
- package/v3/VwcNavDisclosure/index.js +65 -0
- package/v3/VwcNavDisclosure/package.json +2 -2
- package/v3/VwcNavItem/index.js +44 -0
- package/v3/VwcNavItem/package.json +2 -2
- package/v3/VwcNote/package.json +2 -2
- package/v3/VwcNumberField/index.js +68 -0
- package/v3/VwcNumberField/package.json +2 -2
- package/v3/VwcOption/index.d.ts +9 -9
- package/v3/VwcOption/index.js +62 -44
- package/v3/VwcOption/package.json +2 -2
- package/v3/VwcOptionTag/package.json +2 -2
- package/v3/VwcPagination/index.js +66 -1
- package/v3/VwcPagination/package.json +2 -2
- package/v3/VwcPickerField/index.d.ts +0 -2
- package/v3/VwcPickerField/index.js +41 -14
- package/v3/VwcPickerField/package.json +2 -2
- package/v3/VwcPopup/package.json +2 -2
- package/v3/VwcProgress/package.json +2 -2
- package/v3/VwcProgressRing/package.json +2 -2
- package/v3/VwcProseMirrorFacade/index.js +14 -1
- package/v3/VwcProseMirrorFacade/package.json +2 -2
- package/v3/VwcRadio/index.d.ts +0 -2
- package/v3/VwcRadio/index.js +38 -17
- package/v3/VwcRadio/package.json +2 -2
- package/v3/VwcRadioGroup/package.json +2 -2
- package/v3/VwcRangeSlider/index.js +75 -0
- package/v3/VwcRangeSlider/package.json +2 -2
- package/v3/VwcRichTextEditor/package.json +2 -2
- package/v3/VwcSearchableSelect/index.d.ts +6 -0
- package/v3/VwcSearchableSelect/index.js +90 -1
- package/v3/VwcSearchableSelect/package.json +2 -2
- package/v3/VwcSelect/index.js +106 -2
- package/v3/VwcSelect/package.json +2 -2
- package/v3/VwcSelectableBox/index.d.ts +2 -2
- package/v3/VwcSelectableBox/index.js +65 -19
- package/v3/VwcSelectableBox/package.json +2 -2
- package/v3/VwcSideDrawer/package.json +2 -2
- package/v3/VwcSimpleColorPicker/index.d.ts +48 -0
- package/v3/VwcSimpleColorPicker/index.js +500 -0
- package/v3/VwcSimpleColorPicker/package.json +11 -0
- package/v3/VwcSlider/index.js +52 -0
- package/v3/VwcSlider/package.json +2 -2
- package/v3/VwcSplitButton/index.js +89 -0
- package/v3/VwcSplitButton/package.json +2 -2
- package/v3/VwcSwitch/index.js +51 -0
- package/v3/VwcSwitch/package.json +2 -2
- package/v3/VwcTab/index.js +44 -0
- package/v3/VwcTab/package.json +2 -2
- package/v3/VwcTabPanel/package.json +2 -2
- package/v3/VwcTabs/index.js +4 -0
- package/v3/VwcTabs/package.json +2 -2
- package/v3/VwcTag/index.js +114 -4
- package/v3/VwcTag/package.json +2 -2
- package/v3/VwcTagGroup/package.json +2 -2
- package/v3/VwcTextArea/index.js +33 -0
- package/v3/VwcTextArea/package.json +2 -2
- package/v3/VwcTextField/index.js +40 -0
- package/v3/VwcTextField/package.json +2 -2
- package/v3/VwcTimePicker/index.js +15 -2
- package/v3/VwcTimePicker/package.json +2 -2
- package/v3/VwcToggletip/index.js +35 -3
- package/v3/VwcToggletip/package.json +2 -2
- package/v3/VwcTooltip/index.js +32 -0
- package/v3/VwcTooltip/package.json +2 -2
- package/v3/VwcTreeItem/package.json +2 -2
- package/v3/VwcTreeView/package.json +2 -2
- package/v3/VwcVideoPlayer/package.json +2 -2
- package/v3/VwcVisuallyHidden/package.json +2 -2
- package/v3/VwcVividElement/index.d.ts +0 -2
- package/v3/VwcVividElement/index.js +36 -13
- package/v3/VwcVividElement/package.json +2 -2
- package/v3/VwcVividFoundationButton/package.json +2 -2
- package/v3/VwcVvdHexInput/index.d.ts +16 -0
- package/v3/VwcVvdHexInput/index.js +43 -0
- package/v3/VwcVvdHexInput/package.json +11 -0
- package/v3/VwcVvdHexPicker/index.d.ts +16 -0
- package/v3/VwcVvdHexPicker/index.js +43 -0
- package/v3/VwcVvdHexPicker/package.json +11 -0
|
@@ -0,0 +1,651 @@
|
|
|
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": "ColorPicker",
|
|
10
|
+
"slots": [
|
|
11
|
+
{
|
|
12
|
+
"description": "Describes how to use the text-field. Alternative to the `helper-text` attribute.",
|
|
13
|
+
"name": "helper-text"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"description": "Overrides the default \"Color Picker\" title of the Popup window.",
|
|
17
|
+
"name": "popup-text"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"description": " Overrides the default \"Saved colors:\" text above color swatches.",
|
|
21
|
+
"name": "swatches-text"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"members": [
|
|
25
|
+
{
|
|
26
|
+
"kind": "field",
|
|
27
|
+
"name": "placeholder",
|
|
28
|
+
"type": {
|
|
29
|
+
"text": "string"
|
|
30
|
+
},
|
|
31
|
+
"description": "Sets the placeholder value of the element, generally used to provide a hint to the user.",
|
|
32
|
+
"privacy": "public"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "field",
|
|
36
|
+
"name": "savedColorsKey",
|
|
37
|
+
"type": {
|
|
38
|
+
"text": "string | undefined"
|
|
39
|
+
},
|
|
40
|
+
"description": "Sets the localStorage saved colors key explicitly.",
|
|
41
|
+
"privacy": "public"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"kind": "field",
|
|
45
|
+
"name": "disableSavedColors",
|
|
46
|
+
"type": {
|
|
47
|
+
"text": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"default": "false",
|
|
50
|
+
"description": "Disables the saving colors functionality",
|
|
51
|
+
"privacy": "public"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"kind": "field",
|
|
55
|
+
"name": "maxSwatches",
|
|
56
|
+
"type": {
|
|
57
|
+
"text": "number"
|
|
58
|
+
},
|
|
59
|
+
"default": "6",
|
|
60
|
+
"description": "Limits number of swatches that can be saved.",
|
|
61
|
+
"privacy": "public"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"kind": "field",
|
|
65
|
+
"name": "#iconResetTimer",
|
|
66
|
+
"privacy": "private",
|
|
67
|
+
"type": {
|
|
68
|
+
"text": "ReturnType<typeof setTimeout> | null"
|
|
69
|
+
},
|
|
70
|
+
"default": "null"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"kind": "field",
|
|
74
|
+
"name": "helperText",
|
|
75
|
+
"type": {
|
|
76
|
+
"text": "string | undefined"
|
|
77
|
+
},
|
|
78
|
+
"description": "Provides additional information to help the user enter the correct information.\nTo add HTML to the helper text, use the helper-text slot instead.",
|
|
79
|
+
"privacy": "public",
|
|
80
|
+
"inheritedFrom": {
|
|
81
|
+
"name": "WithFeedback",
|
|
82
|
+
"module": "src/shared/feedback/mixins.ts"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"kind": "field",
|
|
87
|
+
"name": "errorText",
|
|
88
|
+
"type": {
|
|
89
|
+
"text": "string | undefined"
|
|
90
|
+
},
|
|
91
|
+
"description": "Provides a custom error message. Any current error state will be overridden.",
|
|
92
|
+
"privacy": "public",
|
|
93
|
+
"inheritedFrom": {
|
|
94
|
+
"name": "WithErrorText",
|
|
95
|
+
"module": "src/shared/patterns/form-elements/with-error-text.ts"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"kind": "field",
|
|
100
|
+
"name": "#blockValidateCalls",
|
|
101
|
+
"privacy": "private",
|
|
102
|
+
"type": {
|
|
103
|
+
"text": "boolean"
|
|
104
|
+
},
|
|
105
|
+
"default": "false",
|
|
106
|
+
"inheritedFrom": {
|
|
107
|
+
"name": "WithErrorText",
|
|
108
|
+
"module": "src/shared/patterns/form-elements/with-error-text.ts"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"kind": "field",
|
|
113
|
+
"name": "#originalValidateFn",
|
|
114
|
+
"privacy": "private",
|
|
115
|
+
"type": {
|
|
116
|
+
"text": "() => void"
|
|
117
|
+
},
|
|
118
|
+
"inheritedFrom": {
|
|
119
|
+
"name": "WithErrorText",
|
|
120
|
+
"module": "src/shared/patterns/form-elements/with-error-text.ts"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"kind": "method",
|
|
125
|
+
"name": "#forceCustomError",
|
|
126
|
+
"parameters": [
|
|
127
|
+
{
|
|
128
|
+
"name": "errorMessage",
|
|
129
|
+
"type": {
|
|
130
|
+
"text": "string"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
"inheritedFrom": {
|
|
135
|
+
"name": "WithErrorText",
|
|
136
|
+
"module": "src/shared/patterns/form-elements/with-error-text.ts"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"kind": "method",
|
|
141
|
+
"name": "#clearCustomErrorAndRevalidate",
|
|
142
|
+
"inheritedFrom": {
|
|
143
|
+
"name": "WithErrorText",
|
|
144
|
+
"module": "src/shared/patterns/form-elements/with-error-text.ts"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"kind": "field",
|
|
149
|
+
"name": "validate",
|
|
150
|
+
"inheritedFrom": {
|
|
151
|
+
"name": "WithErrorText",
|
|
152
|
+
"module": "src/shared/patterns/form-elements/with-error-text.ts"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"kind": "field",
|
|
157
|
+
"name": "successText",
|
|
158
|
+
"type": {
|
|
159
|
+
"text": "string | undefined"
|
|
160
|
+
},
|
|
161
|
+
"description": "Provides a custom success message. Any current error state will be overridden.",
|
|
162
|
+
"privacy": "public",
|
|
163
|
+
"inheritedFrom": {
|
|
164
|
+
"name": "WithSuccessText",
|
|
165
|
+
"module": "src/shared/patterns/form-elements/with-success-text.ts"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"kind": "field",
|
|
170
|
+
"name": "_vividAriaBehaviour",
|
|
171
|
+
"default": "'delegate'",
|
|
172
|
+
"type": {
|
|
173
|
+
"text": "'delegate'"
|
|
174
|
+
},
|
|
175
|
+
"inheritedFrom": {
|
|
176
|
+
"name": "DelegatesAria",
|
|
177
|
+
"module": "src/shared/aria/delegates-aria.ts"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "field",
|
|
182
|
+
"name": "open",
|
|
183
|
+
"type": {
|
|
184
|
+
"text": "boolean"
|
|
185
|
+
},
|
|
186
|
+
"default": "false",
|
|
187
|
+
"description": "Indicates whether the popup is open",
|
|
188
|
+
"privacy": "public",
|
|
189
|
+
"inheritedFrom": {
|
|
190
|
+
"name": "BaseColorPicker",
|
|
191
|
+
"module": "src/shared/color-picker/base-color-picker.ts"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"kind": "field",
|
|
196
|
+
"name": "swatches",
|
|
197
|
+
"type": {
|
|
198
|
+
"text": "ColorSwatch[]"
|
|
199
|
+
},
|
|
200
|
+
"default": "[]",
|
|
201
|
+
"description": "List of color swatches, has to be an array of objects\n\n### Examples",
|
|
202
|
+
"privacy": "public",
|
|
203
|
+
"inheritedFrom": {
|
|
204
|
+
"name": "BaseColorPicker",
|
|
205
|
+
"module": "src/shared/color-picker/base-color-picker.ts"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"kind": "field",
|
|
210
|
+
"name": "label",
|
|
211
|
+
"type": {
|
|
212
|
+
"text": "string | undefined"
|
|
213
|
+
},
|
|
214
|
+
"description": "The label for the form element.",
|
|
215
|
+
"inheritedFrom": {
|
|
216
|
+
"name": "FormElement",
|
|
217
|
+
"module": "src/shared/patterns/form-elements/form-element.ts"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"kind": "field",
|
|
222
|
+
"name": "#handleInvalidEvent",
|
|
223
|
+
"privacy": "private",
|
|
224
|
+
"inheritedFrom": {
|
|
225
|
+
"name": "FormElement",
|
|
226
|
+
"module": "src/shared/patterns/form-elements/form-element.ts"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "field",
|
|
231
|
+
"name": "validity",
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "ValidityState"
|
|
234
|
+
},
|
|
235
|
+
"description": "Returns the validity state of the element",
|
|
236
|
+
"readonly": true,
|
|
237
|
+
"inheritedFrom": {
|
|
238
|
+
"name": "FormAssociated",
|
|
239
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"kind": "field",
|
|
244
|
+
"name": "form",
|
|
245
|
+
"type": {
|
|
246
|
+
"text": "HTMLFormElement | null"
|
|
247
|
+
},
|
|
248
|
+
"description": "Retrieve a reference to the associated form.\nReturns null if not associated to any form.",
|
|
249
|
+
"readonly": true,
|
|
250
|
+
"inheritedFrom": {
|
|
251
|
+
"name": "FormAssociated",
|
|
252
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"kind": "field",
|
|
257
|
+
"name": "validationMessage",
|
|
258
|
+
"type": {
|
|
259
|
+
"text": "string"
|
|
260
|
+
},
|
|
261
|
+
"description": "Retrieve the localized validation message,\nor custom validation message if set.",
|
|
262
|
+
"readonly": true,
|
|
263
|
+
"inheritedFrom": {
|
|
264
|
+
"name": "FormAssociated",
|
|
265
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"kind": "field",
|
|
270
|
+
"name": "willValidate",
|
|
271
|
+
"type": {
|
|
272
|
+
"text": "boolean"
|
|
273
|
+
},
|
|
274
|
+
"description": "Whether the element will be validated when the\nform is submitted",
|
|
275
|
+
"readonly": true,
|
|
276
|
+
"inheritedFrom": {
|
|
277
|
+
"name": "FormAssociated",
|
|
278
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"kind": "field",
|
|
283
|
+
"name": "labels",
|
|
284
|
+
"type": {
|
|
285
|
+
"text": "ReadonlyArray<Node>"
|
|
286
|
+
},
|
|
287
|
+
"description": "A reference to all associated label elements",
|
|
288
|
+
"readonly": true,
|
|
289
|
+
"inheritedFrom": {
|
|
290
|
+
"name": "FormAssociated",
|
|
291
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"kind": "field",
|
|
296
|
+
"name": "value",
|
|
297
|
+
"type": {
|
|
298
|
+
"text": "string"
|
|
299
|
+
},
|
|
300
|
+
"description": "The current value of the element.",
|
|
301
|
+
"inheritedFrom": {
|
|
302
|
+
"name": "FormAssociated",
|
|
303
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"kind": "field",
|
|
308
|
+
"name": "currentValue",
|
|
309
|
+
"inheritedFrom": {
|
|
310
|
+
"name": "FormAssociated",
|
|
311
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"kind": "field",
|
|
316
|
+
"name": "initialValue",
|
|
317
|
+
"type": {
|
|
318
|
+
"text": "string"
|
|
319
|
+
},
|
|
320
|
+
"description": "The default value of the element. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
|
|
321
|
+
"inheritedFrom": {
|
|
322
|
+
"name": "FormAssociated",
|
|
323
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"kind": "field",
|
|
328
|
+
"name": "disabled",
|
|
329
|
+
"type": {
|
|
330
|
+
"text": "boolean"
|
|
331
|
+
},
|
|
332
|
+
"default": "false",
|
|
333
|
+
"description": "Sets the element's disabled state. A disabled element will not be included during form submission.",
|
|
334
|
+
"inheritedFrom": {
|
|
335
|
+
"name": "FormAssociated",
|
|
336
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"kind": "field",
|
|
341
|
+
"name": "name",
|
|
342
|
+
"type": {
|
|
343
|
+
"text": "string"
|
|
344
|
+
},
|
|
345
|
+
"description": "The name of the element. This element's value will be surfaced during form submission under the provided name.",
|
|
346
|
+
"inheritedFrom": {
|
|
347
|
+
"name": "FormAssociated",
|
|
348
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"kind": "field",
|
|
353
|
+
"name": "required",
|
|
354
|
+
"type": {
|
|
355
|
+
"text": "boolean"
|
|
356
|
+
},
|
|
357
|
+
"description": "Require the field to be completed prior to form submission.",
|
|
358
|
+
"default": "false",
|
|
359
|
+
"inheritedFrom": {
|
|
360
|
+
"name": "FormAssociated",
|
|
361
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"kind": "method",
|
|
366
|
+
"name": "checkValidity",
|
|
367
|
+
"return": {
|
|
368
|
+
"type": {
|
|
369
|
+
"text": "boolean"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"description": "Return the current validity of the element.",
|
|
373
|
+
"inheritedFrom": {
|
|
374
|
+
"name": "FormAssociated",
|
|
375
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"kind": "method",
|
|
380
|
+
"name": "reportValidity",
|
|
381
|
+
"return": {
|
|
382
|
+
"type": {
|
|
383
|
+
"text": "boolean"
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"description": "Return the current validity of the element.\nIf false, fires an invalid event at the element.",
|
|
387
|
+
"inheritedFrom": {
|
|
388
|
+
"name": "FormAssociated",
|
|
389
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"kind": "field",
|
|
394
|
+
"name": "VIVID_VERSION",
|
|
395
|
+
"static": true,
|
|
396
|
+
"default": "__PACKAGE_VERSION__",
|
|
397
|
+
"description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
|
|
398
|
+
"type": {
|
|
399
|
+
"text": "string"
|
|
400
|
+
},
|
|
401
|
+
"inheritedFrom": {
|
|
402
|
+
"name": "VividElement",
|
|
403
|
+
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"kind": "field",
|
|
408
|
+
"name": "componentName",
|
|
409
|
+
"type": {
|
|
410
|
+
"text": "string"
|
|
411
|
+
},
|
|
412
|
+
"static": true,
|
|
413
|
+
"description": "Core component name, without prefix",
|
|
414
|
+
"inheritedFrom": {
|
|
415
|
+
"name": "VividElement",
|
|
416
|
+
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"events": [
|
|
421
|
+
{
|
|
422
|
+
"type": {
|
|
423
|
+
"text": "CustomEvent<undefined>"
|
|
424
|
+
},
|
|
425
|
+
"description": "Fires when the value changes",
|
|
426
|
+
"name": "change"
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"attributes": [
|
|
430
|
+
{
|
|
431
|
+
"name": "placeholder",
|
|
432
|
+
"type": {
|
|
433
|
+
"text": "string"
|
|
434
|
+
},
|
|
435
|
+
"description": "Sets the placeholder value of the element, generally used to provide a hint to the user.",
|
|
436
|
+
"fieldName": "placeholder"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "saved-colors-key",
|
|
440
|
+
"type": {
|
|
441
|
+
"text": "string | undefined"
|
|
442
|
+
},
|
|
443
|
+
"description": "Sets the localStorage saved colors key explicitly.",
|
|
444
|
+
"fieldName": "savedColorsKey"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "disable-saved-colors",
|
|
448
|
+
"type": {
|
|
449
|
+
"text": "boolean"
|
|
450
|
+
},
|
|
451
|
+
"default": "false",
|
|
452
|
+
"description": "Disables the saving colors functionality",
|
|
453
|
+
"fieldName": "disableSavedColors"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"name": "max-swatches",
|
|
457
|
+
"type": {
|
|
458
|
+
"text": "number"
|
|
459
|
+
},
|
|
460
|
+
"default": "6",
|
|
461
|
+
"description": "Limits number of swatches that can be saved.",
|
|
462
|
+
"fieldName": "maxSwatches"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "helper-text",
|
|
466
|
+
"type": {
|
|
467
|
+
"text": "string | undefined"
|
|
468
|
+
},
|
|
469
|
+
"description": "Provides additional information to help the user enter the correct information.\nTo add HTML to the helper text, use the helper-text slot instead.",
|
|
470
|
+
"fieldName": "helperText",
|
|
471
|
+
"inheritedFrom": {
|
|
472
|
+
"name": "WithFeedback",
|
|
473
|
+
"module": "src/shared/feedback/mixins.ts"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"name": "error-text",
|
|
478
|
+
"type": {
|
|
479
|
+
"text": "string | undefined"
|
|
480
|
+
},
|
|
481
|
+
"description": "Provides a custom error message. Any current error state will be overridden.",
|
|
482
|
+
"fieldName": "errorText",
|
|
483
|
+
"inheritedFrom": {
|
|
484
|
+
"name": "WithErrorText",
|
|
485
|
+
"module": "src/shared/patterns/form-elements/with-error-text.ts"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"name": "success-text",
|
|
490
|
+
"type": {
|
|
491
|
+
"text": "string | undefined"
|
|
492
|
+
},
|
|
493
|
+
"description": "Provides a custom success message. Any current error state will be overridden.",
|
|
494
|
+
"fieldName": "successText",
|
|
495
|
+
"inheritedFrom": {
|
|
496
|
+
"name": "WithSuccessText",
|
|
497
|
+
"module": "src/shared/patterns/form-elements/with-success-text.ts"
|
|
498
|
+
}
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"name": "open",
|
|
502
|
+
"type": {
|
|
503
|
+
"text": "boolean"
|
|
504
|
+
},
|
|
505
|
+
"default": "false",
|
|
506
|
+
"description": "Indicates whether the popup is open",
|
|
507
|
+
"fieldName": "open",
|
|
508
|
+
"inheritedFrom": {
|
|
509
|
+
"name": "BaseColorPicker",
|
|
510
|
+
"module": "src/shared/color-picker/base-color-picker.ts"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
"name": "label",
|
|
515
|
+
"type": {
|
|
516
|
+
"text": "string | undefined"
|
|
517
|
+
},
|
|
518
|
+
"description": "The label for the form element.",
|
|
519
|
+
"fieldName": "label",
|
|
520
|
+
"inheritedFrom": {
|
|
521
|
+
"name": "FormElement",
|
|
522
|
+
"module": "src/shared/patterns/form-elements/form-element.ts"
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "current-value",
|
|
527
|
+
"type": {
|
|
528
|
+
"text": "string"
|
|
529
|
+
},
|
|
530
|
+
"description": "The current value of the element.",
|
|
531
|
+
"fieldName": "value",
|
|
532
|
+
"inheritedFrom": {
|
|
533
|
+
"name": "FormAssociated",
|
|
534
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "value",
|
|
539
|
+
"type": {
|
|
540
|
+
"text": "string"
|
|
541
|
+
},
|
|
542
|
+
"description": "The default value of the element. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
|
|
543
|
+
"fieldName": "initialValue",
|
|
544
|
+
"inheritedFrom": {
|
|
545
|
+
"name": "FormAssociated",
|
|
546
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
"name": "disabled",
|
|
551
|
+
"type": {
|
|
552
|
+
"text": "boolean"
|
|
553
|
+
},
|
|
554
|
+
"default": "false",
|
|
555
|
+
"description": "Sets the element's disabled state. A disabled element will not be included during form submission.",
|
|
556
|
+
"fieldName": "disabled",
|
|
557
|
+
"inheritedFrom": {
|
|
558
|
+
"name": "FormAssociated",
|
|
559
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "name",
|
|
564
|
+
"type": {
|
|
565
|
+
"text": "string"
|
|
566
|
+
},
|
|
567
|
+
"description": "The name of the element. This element's value will be surfaced during form submission under the provided name.",
|
|
568
|
+
"fieldName": "name",
|
|
569
|
+
"inheritedFrom": {
|
|
570
|
+
"name": "FormAssociated",
|
|
571
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"name": "required",
|
|
576
|
+
"type": {
|
|
577
|
+
"text": "boolean"
|
|
578
|
+
},
|
|
579
|
+
"description": "Require the field to be completed prior to form submission.",
|
|
580
|
+
"default": "false",
|
|
581
|
+
"fieldName": "required",
|
|
582
|
+
"inheritedFrom": {
|
|
583
|
+
"name": "FormAssociated",
|
|
584
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"mixins": [
|
|
589
|
+
{
|
|
590
|
+
"name": "WithContextualHelp",
|
|
591
|
+
"module": "/src/shared/patterns"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"name": "WithFeedback",
|
|
595
|
+
"module": "/src/shared/feedback/mixins"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "WithErrorText",
|
|
599
|
+
"module": "/src/shared/patterns"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "WithSuccessText",
|
|
603
|
+
"module": "/src/shared/patterns"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"name": "DelegatesAria",
|
|
607
|
+
"module": "/src/shared/aria/delegates-aria"
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
"name": "TrappedFocus",
|
|
611
|
+
"module": "/src/shared/patterns"
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"name": "BaseColorPicker",
|
|
615
|
+
"module": "/src/shared/color-picker"
|
|
616
|
+
}
|
|
617
|
+
],
|
|
618
|
+
"superclass": {
|
|
619
|
+
"name": "VividElement",
|
|
620
|
+
"module": "/src/shared/foundation/vivid-element/vivid-element"
|
|
621
|
+
},
|
|
622
|
+
"vividComponent": {
|
|
623
|
+
"public": true,
|
|
624
|
+
"name": "color-picker",
|
|
625
|
+
"vueModels": [
|
|
626
|
+
{
|
|
627
|
+
"name": "modelValue",
|
|
628
|
+
"propName": "value",
|
|
629
|
+
"eventNames": [
|
|
630
|
+
"input"
|
|
631
|
+
],
|
|
632
|
+
"valueMapping": "event.currentTarget.value"
|
|
633
|
+
}
|
|
634
|
+
]
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
*/
|
|
638
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
639
|
+
import { registerColorPicker } from '@vonage/vivid'
|
|
640
|
+
|
|
641
|
+
registerColorPicker('vvd3')
|
|
642
|
+
|
|
643
|
+
const VwcColorPicker = wrapper(`vvd3-color-picker`, {
|
|
644
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
645
|
+
attributes: [],
|
|
646
|
+
properties: ['placeholder', 'savedColorsKey', 'disableSavedColors', 'maxSwatches', 'helperText', 'errorText', 'validate', 'successText', '_vividAriaBehaviour', 'open', 'swatches', 'label', 'value', 'currentValue', 'initialValue', 'disabled', 'name', 'required', 'VIVID_VERSION', 'componentName']
|
|
647
|
+
})
|
|
648
|
+
|
|
649
|
+
VwcColorPicker.displayName = 'VwcColorPicker'
|
|
650
|
+
|
|
651
|
+
export default VwcColorPicker
|