UNPKG

@zoff-tech/zt-bottom-drawer

Version:
36 lines (33 loc) 1.17 kB
import { w as win } from './index3.js'; /*! * (C) Ionic http://ionicframework.com - MIT License */ var KeyboardResize; (function (KeyboardResize) { KeyboardResize["Body"] = "body"; KeyboardResize["Ionic"] = "ionic"; KeyboardResize["Native"] = "native"; KeyboardResize["None"] = "none"; })(KeyboardResize || (KeyboardResize = {})); const Keyboard = { getEngine() { var _a; return ((_a = win === null || win === void 0 ? void 0 : win.Capacitor) === null || _a === void 0 ? void 0 : _a.isPluginAvailable('Keyboard')) && (win === null || win === void 0 ? void 0 : win.Capacitor.Plugins.Keyboard); }, getResizeMode() { const engine = this.getEngine(); if (!(engine === null || engine === void 0 ? void 0 : engine.getResizeMode)) { return Promise.resolve(undefined); } return engine.getResizeMode().catch((e) => { if (e.code === 'UNIMPLEMENTED') { // If the native implementation is not available // we treat it the same as if the plugin is not available. return undefined; } throw e; }); }, }; export { Keyboard as K, KeyboardResize as a }; //# sourceMappingURL=keyboard2.js.map