@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
449 lines (436 loc) • 10.5 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"kind": "class",
"description": "Base class for dial-pad",
"name": "DialPad",
"cssProperties": [
{
"name": "--vvd-dial-pad-accent-contrast",
"default": "var(--vvd-color-neutral-800)"
},
{
"name": "--vvd-dial-pad-accent-soft",
"default": "var(--vvd-color-neutral-100)"
},
{
"name": "--vvd-dial-pad-accent-pale",
"default": "var(--vvd-color-neutral-300)"
},
{
"name": "--vvd-dial-pad-accent-fierce",
"default": "var(--vvd-color-neutral-700)"
},
{
"name": "--vvd-dial-pad-accent-firm-all",
"default": "var(--vvd-color-neutral-600)"
},
{
"name": "--vvd-dial-pad-accent-faint",
"default": "var(--vvd-color-neutral-50)"
},
{
"name": "--vvd-dial-pad-accent-dim",
"default": "var(--vvd-color-neutral-200)"
}
],
"members": [
{
"kind": "field",
"name": "helperText",
"type": {
"text": "string | null"
},
"default": "null",
"description": "Indicates the helper-text's text.",
"privacy": "public"
},
{
"kind": "field",
"name": "placeholder",
"type": {
"text": "string | null"
},
"default": "null",
"description": "Indicates the placeholder's text.",
"privacy": "public"
},
{
"kind": "field",
"name": "value",
"type": {
"text": "string"
},
"default": "''",
"description": "Indicates the value's text.",
"privacy": "public"
},
{
"kind": "method",
"name": "valueChanged",
"parameters": [
{
"name": "_oldValue",
"type": {
"text": "string"
}
},
{
"name": "newValue",
"type": {
"text": "string"
}
}
]
},
{
"kind": "field",
"name": "pattern",
"type": {
"text": "string"
},
"default": "'^[0-9#*]*
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerDialPad } from '@vonage/vivid'
registerDialPad('vvd3')
const VwcDialPad = wrapper(`vvd3-dial-pad`, {
events: [{"name":"end-call","propName":"onEndCall"},{"name":"dial","propName":"onDial"},{"name":"keypad-click","propName":"onKeypadClick"},{"name":"focus","propName":"onFocus"},{"name":"blur","propName":"onBlur"},{"name":"input","propName":"onInput"},{"name":"change","propName":"onChange"}],
attributes: [],
properties: ['helperText', 'placeholder', 'value', 'pattern', 'disabled', 'pending', 'callActive', 'noCall', 'noInput', 'endCallButtonLabel', 'callButtonLabel', 'autofocus', 'VIVID_VERSION', 'componentName']
})
VwcDialPad.displayName = 'VwcDialPad'
export default VwcDialPad
",
"description": "Indicates the dial pad's pattern.",
"privacy": "public"
},
{
"kind": "field",
"name": "disabled",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the disabled state of the dial-pad.",
"privacy": "public"
},
{
"kind": "field",
"name": "pending",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the pending state of the dial-pad.",
"privacy": "public"
},
{
"kind": "field",
"name": "callActive",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the active state of the dial-pad.",
"privacy": "public"
},
{
"kind": "field",
"name": "noCall",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the no-call state of the dial-pad.",
"privacy": "public"
},
{
"kind": "field",
"name": "noInput",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the no-input state of the dial-pad.",
"privacy": "public"
},
{
"kind": "field",
"name": "endCallButtonLabel",
"type": {
"text": "| string\n\t\t| null"
},
"default": "null",
"privacy": "public",
"description": ""
},
{
"kind": "field",
"name": "callButtonLabel",
"type": {
"text": "string | null"
},
"default": "null",
"privacy": "public",
"description": ""
},
{
"kind": "field",
"name": "autofocus",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates that this element should get focus after the page finishes loading.",
"privacy": "public"
},
{
"kind": "method",
"name": "focus",
"return": {
"type": {
"text": "void"
}
},
"description": "Moves focus into the diapl-pad.",
"privacy": "public"
},
{
"kind": "field",
"name": "VIVID_VERSION",
"static": true,
"default": "__PACKAGE_VERSION__",
"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`.",
"type": {
"text": "string"
},
"inheritedFrom": {
"name": "VividElement",
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
}
},
{
"kind": "field",
"name": "componentName",
"type": {
"text": "string"
},
"static": true,
"description": "Core component name, without prefix",
"inheritedFrom": {
"name": "VividElement",
"module": "src/shared/foundation/vivid-element/vivid-element.ts"
}
}
],
"events": [
{
"type": {
"text": "CustomEvent<undefined>"
},
"description": "Emitted when the text field value changes",
"name": "change"
},
{
"type": {
"text": "CustomEvent<undefined>"
},
"description": "Emitted when the text field value changes",
"name": "input"
},
{
"type": {
"text": "CustomEvent<undefined>"
},
"description": "Emitted when the text field loses focus",
"name": "blur"
},
{
"type": {
"text": "CustomEvent<undefined>"
},
"description": "Emitted when the text field receives focus",
"name": "focus"
},
{
"type": {
"text": "CustomEvent<HTMLElement>"
},
"description": "Emitted when a digit button is clicked",
"name": "keypad-click"
},
{
"type": {
"text": "CustomEvent<undefined>"
},
"description": "Emitted when the call button is clicked",
"name": "dial"
},
{
"type": {
"text": "CustomEvent<undefined>"
},
"description": "Emitted when the end call button is clicked",
"name": "end-call"
}
],
"attributes": [
{
"name": "helper-text",
"type": {
"text": "string | null"
},
"default": "null",
"description": "Indicates the helper-text's text.",
"fieldName": "helperText"
},
{
"name": "placeholder",
"type": {
"text": "string | null"
},
"default": "null",
"description": "Indicates the placeholder's text.",
"fieldName": "placeholder"
},
{
"name": "value",
"type": {
"text": "string"
},
"default": "''",
"description": "Indicates the value's text.",
"fieldName": "value"
},
{
"name": "pattern",
"type": {
"text": "string"
},
"default": "'^[0-9#*]*
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerDialPad } from '@vonage/vivid'
registerDialPad('vvd3')
const VwcDialPad = wrapper(`vvd3-dial-pad`, {
events: [{"name":"end-call","propName":"onEndCall"},{"name":"dial","propName":"onDial"},{"name":"keypad-click","propName":"onKeypadClick"},{"name":"focus","propName":"onFocus"},{"name":"blur","propName":"onBlur"},{"name":"input","propName":"onInput"},{"name":"change","propName":"onChange"}],
attributes: [],
properties: ['helperText', 'placeholder', 'value', 'pattern', 'disabled', 'pending', 'callActive', 'noCall', 'noInput', 'endCallButtonLabel', 'callButtonLabel', 'autofocus', 'VIVID_VERSION', 'componentName']
})
VwcDialPad.displayName = 'VwcDialPad'
export default VwcDialPad
",
"description": "Indicates the dial pad's pattern.",
"fieldName": "pattern"
},
{
"name": "disabled",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the disabled state of the dial-pad.",
"fieldName": "disabled"
},
{
"name": "pending",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the pending state of the dial-pad.",
"fieldName": "pending"
},
{
"name": "call-active",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the active state of the dial-pad.",
"fieldName": "callActive"
},
{
"name": "no-call",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the no-call state of the dial-pad.",
"fieldName": "noCall"
},
{
"name": "no-input",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the no-input state of the dial-pad.",
"fieldName": "noInput"
},
{
"name": "end-call-button-label",
"type": {
"text": "| string\n\t\t| null"
},
"default": "null",
"fieldName": "endCallButtonLabel"
},
{
"name": "call-button-label",
"type": {
"text": "string | null"
},
"default": "null",
"fieldName": "callButtonLabel"
},
{
"name": "autofocus",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates that this element should get focus after the page finishes loading.",
"fieldName": "autofocus"
}
],
"mixins": [
{
"name": "Localized",
"module": "/src/shared/patterns"
}
],
"superclass": {
"name": "VividElement",
"module": "/src/shared/foundation/vivid-element/vivid-element"
},
"vividComponent": {
"public": true,
"name": "dial-pad",
"vueModels": [
{
"name": "modelValue",
"propName": "value",
"eventNames": [
"input"
],
"valueMapping": "event.currentTarget.value"
}
]
}
}
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerDialPad } from '@vonage/vivid'
registerDialPad('vvd3')
const VwcDialPad = wrapper(`vvd3-dial-pad`, {
events: [{"name":"end-call","propName":"onEndCall"},{"name":"dial","propName":"onDial"},{"name":"keypad-click","propName":"onKeypadClick"},{"name":"focus","propName":"onFocus"},{"name":"blur","propName":"onBlur"},{"name":"input","propName":"onInput"},{"name":"change","propName":"onChange"}],
attributes: [],
properties: ['helperText', 'placeholder', 'value', 'pattern', 'disabled', 'pending', 'callActive', 'noCall', 'noInput', 'endCallButtonLabel', 'callButtonLabel', 'autofocus', 'VIVID_VERSION', 'componentName']
})
VwcDialPad.displayName = 'VwcDialPad'
export default VwcDialPad