@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
42 lines (39 loc) • 1.46 kB
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
import { r as registerInstance, h, H as Host } from './index-BQlHOxik.js';
import { B as BaseWebComponent } from './variant-quote-y0Z1TRdz.js';
import { a as ClickButtonController, C as ClickButtonFC } from './controller-osuRO7S2.js';
import './common-Cx_AGO_M.js';
import './normalizers-m3s9sgmq.js';
import './_Uint8Array-kJHDjtoP.js';
import './isArray-CcrBs4JM.js';
import './bem-registry-CWvl2xho.js';
import './label-KTv-zMW0.js';
import './base-controller-CXhqh4cR.js';
const KolClickButton = class extends BaseWebComponent {
constructor(hostRef) {
super();
registerInstance(this, hostRef);
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"]
}; }
};
export { KolClickButton as kol_click_button };
//# sourceMappingURL=kol-click-button.entry.js.map