@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
60 lines (56 loc) • 1.99 kB
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { proxyCustomElement, h, Host } from '@stencil/core/internal/client';
import { B as BaseWebComponent } from './variant-quote.js';
import { C as ClickButtonController, a as ClickButtonFC } from './controller3.js';
const KolClickButton$1 = proxyCustomElement(class KolClickButton extends BaseWebComponent {
constructor(registerHost) {
super(false);
if (registerHost !== false) {
this.__registerHost();
}
this.__attachShadow();
this.ctrl = new ClickButtonController(this.stateAccess);
}
watchLabel(value) {
this.ctrl.watchLabel(value);
}
async focus() {
return Promise.resolve(this.ctrl.focus());
}
componentWillLoad() {
this.ctrl.componentWillLoad({
label: this._label,
});
}
render() {
return (h(Host, { key: '13b02362df73f8676bd663d495d9f8db728aced1' }, h(ClickButtonFC, { key: 'dcd11986d2f98368d9c36d1233f34040794ce8e2', label: this.ctrl.getRenderProp('label'), refButton: this.ctrl.setButtonRef, handleClick: this.ctrl.handleClick })));
}
static get watchers() { return {
"_label": ["watchLabel"]
}; }
}, [769, "kol-click-button", {
"_label": [1],
"focus": [64]
}, undefined, {
"_label": ["watchLabel"]
}]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["kol-click-button"];
components.forEach(tagName => { switch (tagName) {
case "kol-click-button":
if (!customElements.get(tagName)) {
customElements.define(tagName, KolClickButton$1);
}
break;
} });
}
const KolClickButton = KolClickButton$1;
const defineCustomElement = defineCustomElement$1;
export { KolClickButton, defineCustomElement };
//# sourceMappingURL=kol-click-button.js.map
//# sourceMappingURL=kol-click-button.js.map