lion/packages/input-stepper/custom-elements.json
2021-02-15 18:07:33 +01:00

272 lines
7.4 KiB
JSON

{
"schemaVersion": "experimental",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "./index.js",
"declarations": [],
"exports": [
{
"kind": "js",
"name": "LionInputStepper",
"declaration": {
"name": "LionInputStepper",
"module": "./src/LionInputStepper.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "./lion-input-stepper.js",
"declarations": [],
"exports": [
{
"kind": "custom-element-definition",
"name": "lion-input-stepper",
"declaration": {
"name": "LionInputStepper",
"module": "./src/LionInputStepper.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "./src/LionInputStepper.js",
"declarations": [
{
"kind": "class",
"name": "LionInputStepper",
"events": [
{
"name": "user-input-changed",
"type": {
"type": "CustomEvent"
}
}
],
"superclass": {
"name": "LionInput",
"package": "@lion/input"
},
"attributes": [
{
"name": "min",
"fieldName": "min"
},
{
"name": "max",
"fieldName": "max"
},
{
"name": "step",
"fieldName": "step"
}
],
"members": [
{
"kind": "field",
"name": "min",
"privacy": "public",
"default": "Infinity"
},
{
"kind": "field",
"name": "max",
"privacy": "public",
"default": "Infinity"
},
{
"kind": "field",
"name": "step",
"privacy": "public",
"default": "1"
},
{
"kind": "field",
"name": "currentValue",
"privacy": "public"
},
{
"kind": "field",
"name": "_inputNode",
"privacy": "public"
},
{
"kind": "method",
"name": "connectedCallback",
"privacy": "public"
},
{
"kind": "method",
"name": "disconnectedCallback",
"privacy": "public"
},
{
"kind": "method",
"name": "updated",
"privacy": "public",
"parameters": [
{
"name": "changedProperties",
"type": {
"type": "PropertyValues "
}
}
]
},
{
"kind": "field",
"name": "slots",
"privacy": "public"
},
{
"kind": "method",
"name": "__setAriaLabelsAndValidator",
"privacy": "private",
"description": "Set aria labels and apply validators"
},
{
"kind": "method",
"name": "__keyDownHandler",
"privacy": "private",
"description": "Update values on keyboard arrow up and down event",
"parameters": [
{
"name": "e",
"type": {
"type": "KeyboardEvent"
},
"description": "keyboard event"
}
]
},
{
"kind": "method",
"name": "__toggleSpinnerButtonsState",
"privacy": "private",
"description": "Toggle disabled state for the buttons"
},
{
"kind": "method",
"name": "__getSlot",
"privacy": "public",
"description": "Get slotted element",
"return": {
"type": {
"type": "HTMLButtonElement|Object"
}
},
"parameters": [
{
"name": "slotName",
"type": {
"type": "String"
},
"description": "slot name"
}
]
},
{
"kind": "method",
"name": "__increment",
"privacy": "private",
"description": "Increment the value based on given step or default step value is 1"
},
{
"kind": "method",
"name": "__decrement",
"privacy": "private",
"description": "Decrement the value based on given step or default step value is 1"
},
{
"kind": "method",
"name": "__getIncrementButtonNode",
"privacy": "public",
"description": "Get the increment button node",
"return": {
"type": {
"type": "Element|null"
}
}
},
{
"kind": "method",
"name": "__getDecrementButtonNode",
"privacy": "public",
"description": "Get the decrement button node",
"return": {
"type": {
"type": "Element|null"
}
}
},
{
"kind": "method",
"name": "_onChange",
"privacy": "public",
"description": "Toggle +/- buttons on change"
},
{
"kind": "method",
"name": "_decrementorSignTemplate",
"privacy": "public",
"description": "Get the decrementor button sign template",
"return": {
"type": {
"type": "String|TemplateResult"
}
}
},
{
"kind": "method",
"name": "_incrementorSignTemplate",
"privacy": "public",
"description": "Get the incrementor button sign template",
"return": {
"type": {
"type": "String|TemplateResult"
}
}
},
{
"kind": "method",
"name": "_decrementorTemplate",
"privacy": "public",
"description": "Get the increment button template",
"return": {
"type": {
"type": "TemplateResult"
}
}
},
{
"kind": "method",
"name": "_incrementorTemplate",
"privacy": "public",
"description": "Get the decrement button template",
"return": {
"type": {
"type": "TemplateResult"
}
}
}
],
"tagName": "lion-input-stepper"
}
],
"exports": [
{
"kind": "js",
"name": "LionInputStepper",
"declaration": {
"name": "LionInputStepper",
"module": "./src/LionInputStepper.js"
}
}
]
}
]
}