UNPKG

@public-ui/components

Version:

Contains all web components that belong to KoliBri - The accessible HTML-Standard.

84 lines (83 loc) 2.75 kB
/*! * KoliBri - The accessible HTML-Standard */ import { __decorate } from "tslib"; import { h } from "@stencil/core"; import { KolTreeWcTag } from "../../core/component-names"; import { createCtaRef, delegateFocus } from "../../utils/element-interaction"; export class KolTree { constructor() { this.ctaRef = createCtaRef(); } async focus() { } render() { return (h(KolTreeWcTag, { key: '9a4684dd43d2276042dd7506c7a39ad7d5c70890', _label: this._label, ref: this.ctaRef }, h("slot", { key: '84571550e5f8250bc7b1e75bd4122409e583c14a' }))); } static get is() { return "kol-tree"; } static get encapsulation() { return "shadow"; } static get originalStyleUrls() { return { "default": ["./style.scss"] }; } static get styleUrls() { return { "default": ["style.css"] }; } static get properties() { return { "_label": { "type": "string", "mutable": false, "complexType": { "original": "LabelPropType", "resolved": "string", "references": { "LabelPropType": { "location": "import", "path": "../../schema", "id": "src/schema/index.ts::LabelPropType" } } }, "required": true, "optional": false, "docs": { "tags": [], "text": "Defines the visible or semantic label of the component (e.g. aria-label, label, headline, caption, summary, etc.)." }, "getter": false, "setter": false, "reflect": false, "attribute": "_label" } }; } static get methods() { return { "focus": { "complexType": { "signature": "() => Promise<void>", "parameters": [], "references": { "Promise": { "location": "global", "id": "global::Promise" } }, "return": "Promise<void>" }, "docs": { "text": "Sets focus on the first focusable tree item.", "tags": [] } } }; } static get elementRef() { return "host"; } } __decorate([ delegateFocus('ctaRef') ], KolTree.prototype, "focus", null); //# sourceMappingURL=shadow.js.map