UNPKG

forms-reactive

Version:

Reactive Form Web Component

42 lines (35 loc) 1.94 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-6e930523.js'); const index$1 = require('./index-f13359cc.js'); const ionicGlobal = require('./ionic-global-59ee60c1.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) { index.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 = ionicGlobal.getIonMode(this); const reorderIcon = mode === 'ios' ? index$1.reorderThreeOutline : index$1.reorderTwoSharp; return (index.h(index.Host, { key: '17adf3165f4e09283d5d6434d7cd47bd23519048', class: mode }, index.h("slot", { key: 'd00d1cd97c689fc5c7b7175a2051cf697fe22871' }, index.h("ion-icon", { key: 'eec219aebde6083de98358be3e75965c5a5dc3d0', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" })))); } get el() { return index.getElement(this); } }; Reorder.style = { ios: IonReorderIosStyle0, md: IonReorderMdStyle0 }; exports.ion_reorder = Reorder; //# sourceMappingURL=ion-reorder.cjs.entry.js.map