@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
129 lines (128 loc) • 4.75 kB
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { h } from "@stencil/core";
import { KolCardWcTag } from "../../core/component-names";
export class KolCard {
constructor() {
this._hasCloser = false;
this._level = 0;
}
render() {
return (h(KolCardWcTag, { key: 'f62c4259173d32d200f56a4e8b5d94e80d125a7c', _on: this._on, _hasCloser: this._hasCloser, _label: this._label, _level: this._level }, h("slot", { key: '20ba15197879de826bbd47dca19616ec30267f6a' })));
}
static get is() { return "kol-card"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"default": ["./style.scss"]
};
}
static get styleUrls() {
return {
"default": ["style.css"]
};
}
static get properties() {
return {
"_on": {
"type": "unknown",
"mutable": false,
"complexType": {
"original": "KoliBriCardEventCallbacks",
"resolved": "undefined | { onClose?: EventCallback<Event> | undefined; }",
"references": {
"KoliBriCardEventCallbacks": {
"location": "import",
"path": "../../schema",
"id": "src/schema/index.ts::KoliBriCardEventCallbacks"
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Defines the event callback functions for the component."
},
"getter": false,
"setter": false
},
"_hasCloser": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean | undefined",
"references": {}
},
"required": false,
"optional": true,
"docs": {
"tags": [{
"name": "TODO",
"text": ": Change type back to `HasCloserPropType` after Stencil#4663 has been resolved."
}],
"text": "Defines whether the element can be closed."
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "_has-closer",
"defaultValue": "false"
},
"_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"
},
"_level": {
"type": "number",
"mutable": false,
"complexType": {
"original": "HeadingLevel",
"resolved": "0 | 1 | 2 | 3 | 4 | 5 | 6 | undefined",
"references": {
"HeadingLevel": {
"location": "import",
"path": "../../schema",
"id": "src/schema/index.ts::HeadingLevel"
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": "Defines which H-level from 1-6 the heading has. 0 specifies no heading and is shown as bold text."
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "_level",
"defaultValue": "0"
}
};
}
}
//# sourceMappingURL=shadow.js.map