forms-reactive
Version:
Reactive Form Web Component
38 lines (33 loc) • 1.88 kB
JavaScript
import { r as registerInstance, h, H as Host, e as getElement } from './index-c364827c.js';
import { v as reorderThreeOutline, w as reorderTwoSharp } from './index-4fe22e32.js';
import { g as getIonMode } from './ionic-global-9c20d605.js';
const reorderIosCss = ":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}";
const IonReorderIosStyle0 = reorderIosCss;
const reorderMdCss = ":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}";
const IonReorderMdStyle0 = reorderMdCss;
const Reorder = class {
constructor(hostRef) {
registerInstance(this, hostRef);
}
onClick(ev) {
const reorderGroup = this.el.closest('ion-reorder-group');
ev.preventDefault();
// Only stop event propagation if the reorder is inside of an enabled
// reorder group. This allows interaction with clickable children components.
if (!reorderGroup || !reorderGroup.disabled) {
ev.stopImmediatePropagation();
}
}
render() {
const mode = getIonMode(this);
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
return (h(Host, { key: '17adf3165f4e09283d5d6434d7cd47bd23519048', class: mode }, h("slot", { key: 'd00d1cd97c689fc5c7b7175a2051cf697fe22871' }, h("ion-icon", { key: 'eec219aebde6083de98358be3e75965c5a5dc3d0', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
}
get el() { return getElement(this); }
};
Reorder.style = {
ios: IonReorderIosStyle0,
md: IonReorderMdStyle0
};
export { Reorder as ion_reorder };
//# sourceMappingURL=ion-reorder.entry.js.map