forms-reactive
Version:
Reactive Form Web Component
42 lines (36 loc) • 1.9 kB
JavaScript
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-6e930523.js');
const theme = require('./theme-76a542db.js');
const ionicGlobal = require('./ionic-global-59ee60c1.js');
const routerLinkCss = ":host{--background:transparent;--color:var(--ion-color-primary, #0054e9);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}";
const IonRouterLinkStyle0 = routerLinkCss;
const RouterLink = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.onClick = (ev) => {
theme.openURL(this.href, ev, this.routerDirection, this.routerAnimation);
};
this.color = undefined;
this.href = undefined;
this.rel = undefined;
this.routerDirection = 'forward';
this.routerAnimation = undefined;
this.target = undefined;
}
render() {
const mode = ionicGlobal.getIonMode(this);
const attrs = {
href: this.href,
rel: this.rel,
target: this.target,
};
return (index.h(index.Host, { key: '11183264fb6ae0db9a7a47c71b6862d60001b834', onClick: this.onClick, class: theme.createColorClasses(this.color, {
[mode]: true,
'ion-activatable': true,
}) }, index.h("a", Object.assign({ key: '3e0e5242161cb0df593d6d573e51b8ba750065a1' }, attrs), index.h("slot", { key: '5bd808e98a4627bb1236f0d955f4b32971355417' }))));
}
};
RouterLink.style = IonRouterLinkStyle0;
exports.ion_router_link = RouterLink;
//# sourceMappingURL=ion-router-link.cjs.entry.js.map