@aqua-ds/web-components
Version:
AquaDS Web Components
56 lines (50 loc) • 1.61 kB
JavaScript
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
var Stroke;
(function (Stroke) {
Stroke["Plain"] = "plain";
})(Stroke || (Stroke = {}));
const aqTextEditorCss = "";
const AqTextEditor$1 = /*@__PURE__*/ proxyCustomElement(class AqTextEditor extends HTMLElement {
constructor(registerHost) {
super();
if (registerHost !== false) {
this.__registerHost();
}
}
get classStroke() {
let classStroke = '';
if (this.stroke === 'plain') {
classStroke = 'aq-text-field--plain';
}
return classStroke;
}
get getTextFieldClass() {
return {
'aq-text-field': true,
'aq-text-field--plain': this.stroke === Stroke.Plain,
};
}
render() {
const textFieldClass = this.getTextFieldClass;
return h("div", { key: '20a509ad77e204f708894ed88cb0b7c312dbe88f', class: textFieldClass });
}
static get style() { return aqTextEditorCss; }
}, [256, "aq-text-editor", {
"stroke": [1]
}]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["aq-text-editor"];
components.forEach(tagName => { switch (tagName) {
case "aq-text-editor":
if (!customElements.get(tagName)) {
customElements.define(tagName, AqTextEditor$1);
}
break;
} });
}
const AqTextEditor = AqTextEditor$1;
const defineCustomElement = defineCustomElement$1;
export { AqTextEditor, defineCustomElement };