UNPKG

@lion/collapsible

Version:

This component is a combination of a button (the invoker), a chunk of extra content.

346 lines (345 loc) 9.55 kB
{ "schemaVersion": "1.0.0", "readme": "", "modules": [ { "kind": "javascript-module", "path": "index.d.ts", "declarations": [], "exports": [ { "kind": "js", "name": "LionCollapsible", "declaration": { "name": "LionCollapsible", "module": "\"./src/LionCollapsible.js\"" } } ] }, { "kind": "javascript-module", "path": "index.js", "declarations": [], "exports": [ { "kind": "js", "name": "LionCollapsible", "declaration": { "name": "LionCollapsible", "module": "./src/LionCollapsible.js" } } ] }, { "kind": "javascript-module", "path": "lion-collapsible.d.ts", "declarations": [], "exports": [] }, { "kind": "javascript-module", "path": "lion-collapsible.js", "declarations": [], "exports": [ { "kind": "custom-element-definition", "name": "lion-collapsible", "declaration": { "name": "LionCollapsible", "module": "/src/LionCollapsible.js" } } ] }, { "kind": "javascript-module", "path": "src/LionCollapsible.d.ts", "declarations": [ { "kind": "class", "description": "`LionCollapsible` is a class for custom collapsible element (`<lion-collapsible>` web component).", "name": "LionCollapsible", "members": [ { "kind": "field", "name": "opened", "type": { "text": "boolean" } }, { "kind": "method", "name": "toggle", "privacy": "public", "return": { "type": { "text": "void" } }, "description": "Toggle the current(opened/closed) state." }, { "kind": "method", "name": "show", "privacy": "public", "return": { "type": { "text": "void" } }, "description": "Show extra content." }, { "kind": "method", "name": "hide", "privacy": "public", "return": { "type": { "text": "void" } }, "description": "Hide extra content." }, { "kind": "method", "name": "_showAnimation", "privacy": "protected", "return": { "type": { "text": "Promise<void>" } }, "parameters": [ { "name": "opts", "type": { "text": "Object" } } ], "description": "Show animation implementation in sub-classer." }, { "kind": "method", "name": "_hideAnimation", "privacy": "protected", "return": { "type": { "text": "Promise<void>" } }, "parameters": [ { "name": "opts", "type": { "text": "Object" } } ], "description": "Hide animation implementation in sub-classer." }, { "kind": "field", "name": "_invokerNode", "type": { "text": "HTMLElement | undefined" }, "privacy": "protected" }, { "kind": "field", "name": "_contentNode", "type": { "text": "HTMLElement | undefined" }, "privacy": "protected" }, { "kind": "field", "name": "_contentHeight", "type": { "text": "string" }, "privacy": "protected" }, { "kind": "field", "name": "__openedChanged", "privacy": "private", "description": "Update content slot size and fire `opened-changed` event" }, { "kind": "field", "name": "__updateContentSize", "privacy": "private", "description": "Toggle extra content visibility on state change." }, { "kind": "field", "name": "__setDefaultState", "privacy": "private", "description": "Set default state for content based on `opened` attr" } ], "superclass": { "name": "LitElement", "package": "@lion/core" }, "tagName": "lion-collapsible", "customElement": true } ], "exports": [ { "kind": "js", "name": "LionCollapsible", "declaration": { "name": "LionCollapsible", "module": "src/LionCollapsible.d.ts" } } ] }, { "kind": "javascript-module", "path": "src/LionCollapsible.js", "declarations": [ { "kind": "class", "description": "`LionCollapsible` is a class for custom collapsible element (`<lion-collapsible>` web component).", "name": "LionCollapsible", "members": [ { "kind": "method", "name": "show", "description": "Show extra content.", "privacy": "public" }, { "kind": "method", "name": "hide", "description": "Hide extra content.", "privacy": "public" }, { "kind": "method", "name": "toggle", "description": "Toggle the current(opened/closed) state.", "privacy": "public" }, { "kind": "method", "name": "_showAnimation", "parameters": [ { "name": "opts", "type": { "text": "Object" } } ], "description": "Show animation implementation in sub-classer.", "privacy": "protected" }, { "kind": "method", "name": "_hideAnimation", "parameters": [ { "name": "opts", "type": { "text": "Object" } } ], "description": "Hide animation implementation in sub-classer.", "privacy": "protected" }, { "kind": "field", "name": "_invokerNode", "privacy": "protected" }, { "kind": "field", "name": "_contentNode", "privacy": "protected" }, { "kind": "field", "name": "_contentHeight", "privacy": "protected" }, { "kind": "method", "name": "__openedChanged", "description": "Update content slot size and fire `opened-changed` event", "privacy": "private" }, { "kind": "method", "name": "__updateContentSize", "description": "Toggle extra content visibility on state change.", "privacy": "private" }, { "kind": "method", "name": "__setDefaultState", "description": "Set default state for content based on `opened` attr", "privacy": "private" }, { "kind": "field", "name": "opened", "type": { "text": "boolean" }, "default": "false", "privacy": "public", "attribute": "opened", "reflects": true } ], "events": [ { "name": "opened-changed", "type": { "text": "CustomEvent" } } ], "attributes": [ { "name": "opened", "fieldName": "opened" } ], "superclass": { "name": "LitElement", "package": "@lion/core" }, "tagName": "lion-collapsible", "customElement": true } ], "exports": [ { "kind": "js", "name": "LionCollapsible", "declaration": { "name": "LionCollapsible", "module": "src/LionCollapsible.js" } } ] }, { "kind": "javascript-module", "path": "test/lion-collapsible.test.d.ts", "declarations": [], "exports": [] } ] }