@larva.io/webcomponents
Version:
Fentrica SmartUnits WebComponents package
80 lines (79 loc) • 2.88 kB
JavaScript
/*!
* (C) Fentrica http://fentrica.com - Seee LICENSE.md
*/
import { Host, h } from "@stencil/core";
import { createColorClasses } from "../../../utils/theme";
export class ListItem {
constructor() {
/**
* If `true`, the user cannot interact with the toggle. Defaults to `false`.
*/
this.disabled = false;
}
render() {
return (h(Host, { key: '5bd601cdfcb6dd834f3689b5528c9160cba60be2', class: Object.assign(Object.assign({}, createColorClasses(this.color)), { 'lar-item-disabled': this.disabled }) }, h("slot", { key: 'f3b77a0f320995998e7cd44db1b291fb6500a56f', name: "start" }), h("div", { key: '4d81c47a2d828323bc0dc1b11222d0e6b2812338', class: "item-inner" }, h("slot", { key: 'd526605465f170bca57f795665908fd0e0bd5786' })), h("slot", { key: 'ac85f67124330d6de6dd0a84f417489badf93feb', name: "end" })));
}
static get is() { return "lar-list-item"; }
static get encapsulation() { return "shadow"; }
static get originalStyleUrls() {
return {
"$": ["list-item.scss"]
};
}
static get styleUrls() {
return {
"$": ["list-item.css"]
};
}
static get properties() {
return {
"color": {
"type": "string",
"mutable": false,
"complexType": {
"original": "Color",
"resolved": "string",
"references": {
"Color": {
"location": "import",
"path": "../../../interface",
"id": "src/interface.d.ts::Color"
}
}
},
"required": false,
"optional": true,
"docs": {
"tags": [],
"text": ""
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "color"
},
"disabled": {
"type": "boolean",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": "If `true`, the user cannot interact with the toggle. Defaults to `false`."
},
"getter": false,
"setter": false,
"reflect": false,
"attribute": "disabled",
"defaultValue": "false"
}
};
}
static get elementRef() { return "el"; }
}
//# sourceMappingURL=list-item.js.map