UNPKG

test-isc

Version:

An Ionic component similar to Ionic Select, that allows to search items, including async search, group, add, edit, delete items, and much more.

1 lines 2.56 kB
var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,a){function u(t){try{c(r.next(t))}catch(e){a(e)}}function o(t){try{c(r["throw"](t))}catch(e){a(e)}}function c(t){t.done?n(t.value):i(t.value).then(u,o)}c((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(e){return c([t,e])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(o){u=[6,o];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register([],(function(t){"use strict";return{execute:function(){var e=this;var n=t("startHardwareBackButton",(function(){var t=document;var n=false;t.addEventListener("backbutton",(function(){if(n){return}var r=0;var i=[];var a=new CustomEvent("ionBackButton",{bubbles:false,detail:{register:function(t,e){i.push({priority:t,handler:e,id:r++})}}});t.dispatchEvent(a);var u=function(t){return __awaiter(e,void 0,void 0,(function(){var e,n;return __generator(this,(function(r){switch(r.label){case 0:r.trys.push([0,3,,4]);if(!(t&&t.handler))return[3,2];e=t.handler(o);if(!(e!=null))return[3,2];return[4,e];case 1:r.sent();r.label=2;case 2:return[3,4];case 3:n=r.sent();console.error(n);return[3,4];case 4:return[2]}}))}))};var o=function(){if(i.length>0){var t={priority:Number.MIN_SAFE_INTEGER,handler:function(){return undefined},id:-1};i.forEach((function(e){if(e.priority>=t.priority){t=e}}));n=true;i=i.filter((function(e){return e.id!==t.id}));u(t).then((function(){return n=false}))}};o()}))}));var r=t("OVERLAY_BACK_BUTTON_PRIORITY",100);var i=t("MENU_BACK_BUTTON_PRIORITY",99)}}}));