@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
|
@@ -66,16 +66,6 @@ Code in this file were generated using following JSON:
|
|
|
66
66
|
"description": "Controls the checked state of the box",
|
|
67
67
|
"privacy": "public"
|
|
68
68
|
},
|
|
69
|
-
{
|
|
70
|
-
"kind": "field",
|
|
71
|
-
"name": "clickable",
|
|
72
|
-
"type": {
|
|
73
|
-
"text": "boolean"
|
|
74
|
-
},
|
|
75
|
-
"default": "false",
|
|
76
|
-
"privacy": "public",
|
|
77
|
-
"description": ""
|
|
78
|
-
},
|
|
79
69
|
{
|
|
80
70
|
"kind": "field",
|
|
81
71
|
"name": "clickableBox",
|
|
@@ -104,6 +94,16 @@ Code in this file were generated using following JSON:
|
|
|
104
94
|
"description": "The type of control the box should have: checkbox or radio.",
|
|
105
95
|
"privacy": "public"
|
|
106
96
|
},
|
|
97
|
+
{
|
|
98
|
+
"kind": "field",
|
|
99
|
+
"name": "controlPlacement",
|
|
100
|
+
"type": {
|
|
101
|
+
"text": "SelectableBoxControlPlacement"
|
|
102
|
+
},
|
|
103
|
+
"default": "'end-stacked'",
|
|
104
|
+
"description": "Defines where the control (checkbox or radio) should be located.",
|
|
105
|
+
"privacy": "public"
|
|
106
|
+
},
|
|
107
107
|
{
|
|
108
108
|
"kind": "field",
|
|
109
109
|
"name": "tight",
|
|
@@ -173,14 +173,6 @@ Code in this file were generated using following JSON:
|
|
|
173
173
|
"description": "Controls the checked state of the box",
|
|
174
174
|
"fieldName": "checked"
|
|
175
175
|
},
|
|
176
|
-
{
|
|
177
|
-
"name": "clickable",
|
|
178
|
-
"type": {
|
|
179
|
-
"text": "boolean"
|
|
180
|
-
},
|
|
181
|
-
"default": "false",
|
|
182
|
-
"fieldName": "clickable"
|
|
183
|
-
},
|
|
184
176
|
{
|
|
185
177
|
"name": "clickable-box",
|
|
186
178
|
"type": {
|
|
@@ -206,6 +198,15 @@ Code in this file were generated using following JSON:
|
|
|
206
198
|
"description": "The type of control the box should have: checkbox or radio.",
|
|
207
199
|
"fieldName": "controlType"
|
|
208
200
|
},
|
|
201
|
+
{
|
|
202
|
+
"name": "control-placement",
|
|
203
|
+
"type": {
|
|
204
|
+
"text": "SelectableBoxControlPlacement"
|
|
205
|
+
},
|
|
206
|
+
"default": "'end-stacked'",
|
|
207
|
+
"description": "Defines where the control (checkbox or radio) should be located.",
|
|
208
|
+
"fieldName": "controlPlacement"
|
|
209
|
+
},
|
|
209
210
|
{
|
|
210
211
|
"name": "tight",
|
|
211
212
|
"type": {
|
|
@@ -229,6 +230,51 @@ Code in this file were generated using following JSON:
|
|
|
229
230
|
"vividComponent": {
|
|
230
231
|
"public": true,
|
|
231
232
|
"name": "selectable-box"
|
|
233
|
+
},
|
|
234
|
+
"vividTesting": {
|
|
235
|
+
"selectors": [],
|
|
236
|
+
"actions": [
|
|
237
|
+
{
|
|
238
|
+
"name": "check",
|
|
239
|
+
"args": [
|
|
240
|
+
"check",
|
|
241
|
+
"#control"
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "uncheck",
|
|
246
|
+
"args": [
|
|
247
|
+
"uncheck",
|
|
248
|
+
"#control"
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"queries": [
|
|
253
|
+
{
|
|
254
|
+
"name": "checked",
|
|
255
|
+
"args": [
|
|
256
|
+
"checked",
|
|
257
|
+
"true"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "unchecked",
|
|
262
|
+
"args": [
|
|
263
|
+
"checked",
|
|
264
|
+
"false"
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"refs": [
|
|
269
|
+
{
|
|
270
|
+
"name": "control",
|
|
271
|
+
"args": [
|
|
272
|
+
"nestedShadow",
|
|
273
|
+
"[data-vvd-component].control",
|
|
274
|
+
"div.control"
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
]
|
|
232
278
|
}
|
|
233
279
|
}
|
|
234
280
|
*/
|
|
@@ -240,7 +286,7 @@ registerSelectableBox('vvd3')
|
|
|
240
286
|
const VwcSelectableBox = wrapper(`vvd3-selectable-box`, {
|
|
241
287
|
events: [{"name":"change","propName":"onChange"}],
|
|
242
288
|
attributes: [],
|
|
243
|
-
properties: ['checked', '
|
|
289
|
+
properties: ['checked', 'clickableBox', 'connotation', 'controlType', 'controlPlacement', 'tight', '_vividAriaBehaviour', 'VIVID_VERSION', 'componentName']
|
|
244
290
|
})
|
|
245
291
|
|
|
246
292
|
VwcSelectableBox.displayName = 'VwcSelectableBox'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid-react-vvd3-selectable-box",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.5.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": "
|
|
9
|
+
"@vonage/vivid": "5.5.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid-react-vvd3-side-drawer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.5.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": "
|
|
9
|
+
"@vonage/vivid": "5.5.0"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
/** VwcSimpleColorPicker
|
|
3
|
+
* For more info on this Vivid element please visit https://vivid.deno.dev/components/simple-color-picker
|
|
4
|
+
* @param {Placement | undefined} placement - Placement of the popup with color swatches **attribute** `placement`
|
|
5
|
+
* @param {number} swatchesPerRow - Number of swatches per row for grid layout **attribute** `swatches-per-row`
|
|
6
|
+
* @param {AnchorType | undefined} anchor - ID or direct reference to the component's anchor element. **attribute** `anchor`
|
|
7
|
+
* @param {boolean} open - Indicates whether the popup is open **attribute** `open`
|
|
8
|
+
* @param {ColorSwatch[]} swatches - List of color swatches, has to be an array of objects
|
|
9
|
+
|
|
10
|
+
### Examples
|
|
11
|
+
* @param {string | undefined} label - The label for the form element. **attribute** `label`
|
|
12
|
+
* @param {string} value - The current value of the element. **attribute** `current-value`
|
|
13
|
+
* @param currentValue
|
|
14
|
+
* @param {string} initialValue - The default value of the element. This value sets the `value` property
|
|
15
|
+
only when the `value` property has not been explicitly set. **attribute** `value`
|
|
16
|
+
* @param {boolean} disabled - Sets the element's disabled state. A disabled element will not be included during form submission. **attribute** `disabled`
|
|
17
|
+
* @param {string} name - The name of the element. This element's value will be surfaced during form submission under the provided name. **attribute** `name`
|
|
18
|
+
* @param {boolean} required - Require the field to be completed prior to form submission. **attribute** `required`
|
|
19
|
+
* @param {string} VIVID_VERSION - The current version of the Vivid library, which is useful for debugging.
|
|
20
|
+
It can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.
|
|
21
|
+
* @param {string} componentName - Core component name, without prefix
|
|
22
|
+
*/
|
|
23
|
+
declare const VwcSimpleColorPicker: {
|
|
24
|
+
(props: {
|
|
25
|
+
children?: ReactNode;
|
|
26
|
+
slot?: string | undefined;
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
style?: React.CSSProperties | undefined;
|
|
29
|
+
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
|
|
30
|
+
onChange?: ((event: SyntheticEvent) => void) | undefined;
|
|
31
|
+
placement?: any;
|
|
32
|
+
swatchesPerRow?: number | undefined;
|
|
33
|
+
anchor?: any;
|
|
34
|
+
open?: boolean | undefined;
|
|
35
|
+
swatches?: any[] | undefined;
|
|
36
|
+
label?: string | undefined;
|
|
37
|
+
value?: string | undefined;
|
|
38
|
+
currentValue?: any;
|
|
39
|
+
initialValue?: string | undefined;
|
|
40
|
+
disabled?: boolean | undefined;
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
required?: boolean | undefined;
|
|
43
|
+
VIVID_VERSION?: string | undefined;
|
|
44
|
+
componentName?: string | undefined;
|
|
45
|
+
}): JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
export default VwcSimpleColorPicker;
|
|
@@ -0,0 +1,500 @@
|
|
|
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": "SimpleColorPicker",
|
|
10
|
+
"slots": [
|
|
11
|
+
{
|
|
12
|
+
"description": "Slot for attaching the toggle button",
|
|
13
|
+
"name": "anchor"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"members": [
|
|
17
|
+
{
|
|
18
|
+
"kind": "field",
|
|
19
|
+
"name": "placement",
|
|
20
|
+
"type": {
|
|
21
|
+
"text": "Placement | undefined"
|
|
22
|
+
},
|
|
23
|
+
"default": "'top-start'",
|
|
24
|
+
"description": "Placement of the popup with color swatches",
|
|
25
|
+
"privacy": "public"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"kind": "field",
|
|
29
|
+
"name": "swatchesPerRow",
|
|
30
|
+
"type": {
|
|
31
|
+
"text": "number"
|
|
32
|
+
},
|
|
33
|
+
"default": "7",
|
|
34
|
+
"description": "Number of swatches per row for grid layout",
|
|
35
|
+
"privacy": "public"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"kind": "field",
|
|
39
|
+
"name": "anchor",
|
|
40
|
+
"type": {
|
|
41
|
+
"text": "AnchorType | undefined"
|
|
42
|
+
},
|
|
43
|
+
"description": "ID or direct reference to the component's anchor element.",
|
|
44
|
+
"privacy": "public",
|
|
45
|
+
"inheritedFrom": {
|
|
46
|
+
"name": "Anchored",
|
|
47
|
+
"module": "src/shared/patterns/anchored.ts"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "field",
|
|
52
|
+
"name": "#updateAnchorEl",
|
|
53
|
+
"privacy": "private",
|
|
54
|
+
"inheritedFrom": {
|
|
55
|
+
"name": "Anchored",
|
|
56
|
+
"module": "src/shared/patterns/anchored.ts"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "field",
|
|
61
|
+
"name": "#observer",
|
|
62
|
+
"privacy": "private",
|
|
63
|
+
"type": {
|
|
64
|
+
"text": "MutationObserver | undefined"
|
|
65
|
+
},
|
|
66
|
+
"inheritedFrom": {
|
|
67
|
+
"name": "Anchored",
|
|
68
|
+
"module": "src/shared/patterns/anchored.ts"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"kind": "field",
|
|
73
|
+
"name": "#observeMissingAnchor",
|
|
74
|
+
"privacy": "private",
|
|
75
|
+
"inheritedFrom": {
|
|
76
|
+
"name": "Anchored",
|
|
77
|
+
"module": "src/shared/patterns/anchored.ts"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"kind": "field",
|
|
82
|
+
"name": "#cleanupObserverIfNeeded",
|
|
83
|
+
"privacy": "private",
|
|
84
|
+
"inheritedFrom": {
|
|
85
|
+
"name": "Anchored",
|
|
86
|
+
"module": "src/shared/patterns/anchored.ts"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"kind": "field",
|
|
91
|
+
"name": "open",
|
|
92
|
+
"type": {
|
|
93
|
+
"text": "boolean"
|
|
94
|
+
},
|
|
95
|
+
"default": "false",
|
|
96
|
+
"description": "Indicates whether the popup is open",
|
|
97
|
+
"privacy": "public",
|
|
98
|
+
"inheritedFrom": {
|
|
99
|
+
"name": "BaseColorPicker",
|
|
100
|
+
"module": "src/shared/color-picker/base-color-picker.ts"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"kind": "field",
|
|
105
|
+
"name": "swatches",
|
|
106
|
+
"type": {
|
|
107
|
+
"text": "ColorSwatch[]"
|
|
108
|
+
},
|
|
109
|
+
"default": "[]",
|
|
110
|
+
"description": "List of color swatches, has to be an array of objects\n\n### Examples",
|
|
111
|
+
"privacy": "public",
|
|
112
|
+
"inheritedFrom": {
|
|
113
|
+
"name": "BaseColorPicker",
|
|
114
|
+
"module": "src/shared/color-picker/base-color-picker.ts"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"kind": "field",
|
|
119
|
+
"name": "label",
|
|
120
|
+
"type": {
|
|
121
|
+
"text": "string | undefined"
|
|
122
|
+
},
|
|
123
|
+
"description": "The label for the form element.",
|
|
124
|
+
"inheritedFrom": {
|
|
125
|
+
"name": "FormElement",
|
|
126
|
+
"module": "src/shared/patterns/form-elements/form-element.ts"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"kind": "field",
|
|
131
|
+
"name": "#handleInvalidEvent",
|
|
132
|
+
"privacy": "private",
|
|
133
|
+
"inheritedFrom": {
|
|
134
|
+
"name": "FormElement",
|
|
135
|
+
"module": "src/shared/patterns/form-elements/form-element.ts"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"kind": "field",
|
|
140
|
+
"name": "validity",
|
|
141
|
+
"type": {
|
|
142
|
+
"text": "ValidityState"
|
|
143
|
+
},
|
|
144
|
+
"description": "Returns the validity state of the element",
|
|
145
|
+
"readonly": true,
|
|
146
|
+
"inheritedFrom": {
|
|
147
|
+
"name": "FormAssociated",
|
|
148
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"kind": "field",
|
|
153
|
+
"name": "form",
|
|
154
|
+
"type": {
|
|
155
|
+
"text": "HTMLFormElement | null"
|
|
156
|
+
},
|
|
157
|
+
"description": "Retrieve a reference to the associated form.\nReturns null if not associated to any form.",
|
|
158
|
+
"readonly": true,
|
|
159
|
+
"inheritedFrom": {
|
|
160
|
+
"name": "FormAssociated",
|
|
161
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"kind": "field",
|
|
166
|
+
"name": "validationMessage",
|
|
167
|
+
"type": {
|
|
168
|
+
"text": "string"
|
|
169
|
+
},
|
|
170
|
+
"description": "Retrieve the localized validation message,\nor custom validation message if set.",
|
|
171
|
+
"readonly": true,
|
|
172
|
+
"inheritedFrom": {
|
|
173
|
+
"name": "FormAssociated",
|
|
174
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"kind": "field",
|
|
179
|
+
"name": "willValidate",
|
|
180
|
+
"type": {
|
|
181
|
+
"text": "boolean"
|
|
182
|
+
},
|
|
183
|
+
"description": "Whether the element will be validated when the\nform is submitted",
|
|
184
|
+
"readonly": true,
|
|
185
|
+
"inheritedFrom": {
|
|
186
|
+
"name": "FormAssociated",
|
|
187
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"kind": "field",
|
|
192
|
+
"name": "labels",
|
|
193
|
+
"type": {
|
|
194
|
+
"text": "ReadonlyArray<Node>"
|
|
195
|
+
},
|
|
196
|
+
"description": "A reference to all associated label elements",
|
|
197
|
+
"readonly": true,
|
|
198
|
+
"inheritedFrom": {
|
|
199
|
+
"name": "FormAssociated",
|
|
200
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"kind": "field",
|
|
205
|
+
"name": "value",
|
|
206
|
+
"type": {
|
|
207
|
+
"text": "string"
|
|
208
|
+
},
|
|
209
|
+
"description": "The current value of the element.",
|
|
210
|
+
"inheritedFrom": {
|
|
211
|
+
"name": "FormAssociated",
|
|
212
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"kind": "field",
|
|
217
|
+
"name": "currentValue",
|
|
218
|
+
"inheritedFrom": {
|
|
219
|
+
"name": "FormAssociated",
|
|
220
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"kind": "field",
|
|
225
|
+
"name": "initialValue",
|
|
226
|
+
"type": {
|
|
227
|
+
"text": "string"
|
|
228
|
+
},
|
|
229
|
+
"description": "The default value of the element. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
|
|
230
|
+
"inheritedFrom": {
|
|
231
|
+
"name": "FormAssociated",
|
|
232
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"kind": "field",
|
|
237
|
+
"name": "disabled",
|
|
238
|
+
"type": {
|
|
239
|
+
"text": "boolean"
|
|
240
|
+
},
|
|
241
|
+
"default": "false",
|
|
242
|
+
"description": "Sets the element's disabled state. A disabled element will not be included during form submission.",
|
|
243
|
+
"inheritedFrom": {
|
|
244
|
+
"name": "FormAssociated",
|
|
245
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"kind": "field",
|
|
250
|
+
"name": "name",
|
|
251
|
+
"type": {
|
|
252
|
+
"text": "string"
|
|
253
|
+
},
|
|
254
|
+
"description": "The name of the element. This element's value will be surfaced during form submission under the provided name.",
|
|
255
|
+
"inheritedFrom": {
|
|
256
|
+
"name": "FormAssociated",
|
|
257
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"kind": "field",
|
|
262
|
+
"name": "required",
|
|
263
|
+
"type": {
|
|
264
|
+
"text": "boolean"
|
|
265
|
+
},
|
|
266
|
+
"description": "Require the field to be completed prior to form submission.",
|
|
267
|
+
"default": "false",
|
|
268
|
+
"inheritedFrom": {
|
|
269
|
+
"name": "FormAssociated",
|
|
270
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"kind": "method",
|
|
275
|
+
"name": "checkValidity",
|
|
276
|
+
"return": {
|
|
277
|
+
"type": {
|
|
278
|
+
"text": "boolean"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"description": "Return the current validity of the element.",
|
|
282
|
+
"inheritedFrom": {
|
|
283
|
+
"name": "FormAssociated",
|
|
284
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"kind": "method",
|
|
289
|
+
"name": "reportValidity",
|
|
290
|
+
"return": {
|
|
291
|
+
"type": {
|
|
292
|
+
"text": "boolean"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"description": "Return the current validity of the element.\nIf false, fires an invalid event at the element.",
|
|
296
|
+
"inheritedFrom": {
|
|
297
|
+
"name": "FormAssociated",
|
|
298
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"kind": "field",
|
|
303
|
+
"name": "VIVID_VERSION",
|
|
304
|
+
"static": true,
|
|
305
|
+
"default": "__PACKAGE_VERSION__",
|
|
306
|
+
"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`.",
|
|
307
|
+
"type": {
|
|
308
|
+
"text": "string"
|
|
309
|
+
},
|
|
310
|
+
"inheritedFrom": {
|
|
311
|
+
"name": "VividElement",
|
|
312
|
+
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"kind": "field",
|
|
317
|
+
"name": "componentName",
|
|
318
|
+
"type": {
|
|
319
|
+
"text": "string"
|
|
320
|
+
},
|
|
321
|
+
"static": true,
|
|
322
|
+
"description": "Core component name, without prefix",
|
|
323
|
+
"inheritedFrom": {
|
|
324
|
+
"name": "VividElement",
|
|
325
|
+
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"events": [
|
|
330
|
+
{
|
|
331
|
+
"type": {
|
|
332
|
+
"text": "CustomEvent<undefined>"
|
|
333
|
+
},
|
|
334
|
+
"description": "Fires when the value changes",
|
|
335
|
+
"name": "change"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"attributes": [
|
|
339
|
+
{
|
|
340
|
+
"name": "placement",
|
|
341
|
+
"type": {
|
|
342
|
+
"text": "Placement | undefined"
|
|
343
|
+
},
|
|
344
|
+
"default": "'top-start'",
|
|
345
|
+
"description": "Placement of the popup with color swatches",
|
|
346
|
+
"fieldName": "placement"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"name": "swatches-per-row",
|
|
350
|
+
"type": {
|
|
351
|
+
"text": "number"
|
|
352
|
+
},
|
|
353
|
+
"default": "7",
|
|
354
|
+
"description": "Number of swatches per row for grid layout",
|
|
355
|
+
"fieldName": "swatchesPerRow"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "anchor",
|
|
359
|
+
"type": {
|
|
360
|
+
"text": "AnchorType | undefined"
|
|
361
|
+
},
|
|
362
|
+
"description": "ID or direct reference to the component's anchor element.",
|
|
363
|
+
"fieldName": "anchor",
|
|
364
|
+
"inheritedFrom": {
|
|
365
|
+
"name": "Anchored",
|
|
366
|
+
"module": "src/shared/patterns/anchored.ts"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "open",
|
|
371
|
+
"type": {
|
|
372
|
+
"text": "boolean"
|
|
373
|
+
},
|
|
374
|
+
"default": "false",
|
|
375
|
+
"description": "Indicates whether the popup is open",
|
|
376
|
+
"fieldName": "open",
|
|
377
|
+
"inheritedFrom": {
|
|
378
|
+
"name": "BaseColorPicker",
|
|
379
|
+
"module": "src/shared/color-picker/base-color-picker.ts"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "label",
|
|
384
|
+
"type": {
|
|
385
|
+
"text": "string | undefined"
|
|
386
|
+
},
|
|
387
|
+
"description": "The label for the form element.",
|
|
388
|
+
"fieldName": "label",
|
|
389
|
+
"inheritedFrom": {
|
|
390
|
+
"name": "FormElement",
|
|
391
|
+
"module": "src/shared/patterns/form-elements/form-element.ts"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "current-value",
|
|
396
|
+
"type": {
|
|
397
|
+
"text": "string"
|
|
398
|
+
},
|
|
399
|
+
"description": "The current value of the element.",
|
|
400
|
+
"fieldName": "value",
|
|
401
|
+
"inheritedFrom": {
|
|
402
|
+
"name": "FormAssociated",
|
|
403
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "value",
|
|
408
|
+
"type": {
|
|
409
|
+
"text": "string"
|
|
410
|
+
},
|
|
411
|
+
"description": "The default value of the element. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
|
|
412
|
+
"fieldName": "initialValue",
|
|
413
|
+
"inheritedFrom": {
|
|
414
|
+
"name": "FormAssociated",
|
|
415
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "disabled",
|
|
420
|
+
"type": {
|
|
421
|
+
"text": "boolean"
|
|
422
|
+
},
|
|
423
|
+
"default": "false",
|
|
424
|
+
"description": "Sets the element's disabled state. A disabled element will not be included during form submission.",
|
|
425
|
+
"fieldName": "disabled",
|
|
426
|
+
"inheritedFrom": {
|
|
427
|
+
"name": "FormAssociated",
|
|
428
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "name",
|
|
433
|
+
"type": {
|
|
434
|
+
"text": "string"
|
|
435
|
+
},
|
|
436
|
+
"description": "The name of the element. This element's value will be surfaced during form submission under the provided name.",
|
|
437
|
+
"fieldName": "name",
|
|
438
|
+
"inheritedFrom": {
|
|
439
|
+
"name": "FormAssociated",
|
|
440
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "required",
|
|
445
|
+
"type": {
|
|
446
|
+
"text": "boolean"
|
|
447
|
+
},
|
|
448
|
+
"description": "Require the field to be completed prior to form submission.",
|
|
449
|
+
"default": "false",
|
|
450
|
+
"fieldName": "required",
|
|
451
|
+
"inheritedFrom": {
|
|
452
|
+
"name": "FormAssociated",
|
|
453
|
+
"module": "src/shared/foundation/form-associated/form-associated.ts"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"mixins": [
|
|
458
|
+
{
|
|
459
|
+
"name": "Anchored",
|
|
460
|
+
"module": "/src/shared/patterns/anchored"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"name": "BaseColorPicker",
|
|
464
|
+
"module": "/src/shared/color-picker"
|
|
465
|
+
}
|
|
466
|
+
],
|
|
467
|
+
"superclass": {
|
|
468
|
+
"name": "VividElement",
|
|
469
|
+
"module": "/src/shared/foundation/vivid-element/vivid-element"
|
|
470
|
+
},
|
|
471
|
+
"vividComponent": {
|
|
472
|
+
"public": true,
|
|
473
|
+
"name": "simple-color-picker",
|
|
474
|
+
"vueModels": [
|
|
475
|
+
{
|
|
476
|
+
"name": "modelValue",
|
|
477
|
+
"propName": "value",
|
|
478
|
+
"eventNames": [
|
|
479
|
+
"input"
|
|
480
|
+
],
|
|
481
|
+
"valueMapping": "event.currentTarget.value"
|
|
482
|
+
}
|
|
483
|
+
]
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
*/
|
|
487
|
+
import wrapper from '@vonage/vivid-react-wrapper'
|
|
488
|
+
import { registerSimpleColorPicker } from '@vonage/vivid'
|
|
489
|
+
|
|
490
|
+
registerSimpleColorPicker('vvd3')
|
|
491
|
+
|
|
492
|
+
const VwcSimpleColorPicker = wrapper(`vvd3-simple-color-picker`, {
|
|
493
|
+
events: [{"name":"change","propName":"onChange"}],
|
|
494
|
+
attributes: [],
|
|
495
|
+
properties: ['placement', 'swatchesPerRow', 'anchor', 'open', 'swatches', 'label', 'value', 'currentValue', 'initialValue', 'disabled', 'name', 'required', 'VIVID_VERSION', 'componentName']
|
|
496
|
+
})
|
|
497
|
+
|
|
498
|
+
VwcSimpleColorPicker.displayName = 'VwcSimpleColorPicker'
|
|
499
|
+
|
|
500
|
+
export default VwcSimpleColorPicker
|