forms-reactive
Version:
Reactive Form Web Component
2 lines • 1.16 kB
JavaScript
import{r as t,h as e,H as a,e as i}from"./p-3e1171f6.js";import{a as s}from"./p-f9482dbc.js";import"./p-c1432a35.js";const n=":host(.tab-hidden){display:none !important}";const r=n;const c=class{constructor(e){t(this,e);this.loaded=false;this.active=false;this.delegate=undefined;this.tab=undefined;this.component=undefined}async componentWillLoad(){if(this.active){await this.setActive()}}async setActive(){await this.prepareLazyLoaded();this.active=true}changeActive(t){if(t){this.prepareLazyLoaded()}}prepareLazyLoaded(){if(!this.loaded&&this.component!=null){this.loaded=true;try{return s(this.delegate,this.el,this.component,["ion-page"])}catch(t){console.error(t)}}return Promise.resolve(undefined)}render(){const{tab:t,active:i,component:s}=this;return e(a,{key:"2107ece2f1ebdf748bac8adb78a9ad67e7fc9057",role:"tabpanel","aria-hidden":!i?"true":null,"aria-labelledby":`tab-button-${t}`,class:{"ion-page":s===undefined,"tab-hidden":!i}},e("slot",{key:"b4a1bc1aa79f6b82b8f77b544bcb74e65229b541"}))}get el(){return i(this)}static get watchers(){return{active:["changeActive"]}}};c.style=r;export{c as ion_tab};
//# sourceMappingURL=p-dbc4d791.entry.js.map