@ionic/core 7.3.2-dev.11692803611.15c1bc87 → 7.3.2-dev.11693254222.1822966d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/data.js +16 -2
- package/components/framework-delegate.js +5 -2
- package/components/popover.js +1 -1
- package/dist/cjs/{data-2a87e11f.js → data-967b9c15.js} +16 -2
- package/dist/cjs/{framework-delegate-e8174951.js → framework-delegate-91be3b84.js} +5 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +2 -2
- package/dist/cjs/ion-alert.cjs.entry.js +2 -2
- package/dist/cjs/ion-app_8.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-modal.cjs.entry.js +2 -2
- package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +3 -3
- package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/{overlays-0ea06fcb.js → overlays-cf7fa4cf.js} +1 -1
- package/dist/collection/components/datetime/utils/parse.js +16 -2
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/utils/framework-delegate.js +5 -2
- package/dist/docs.json +1 -1
- package/dist/esm/{data-834f9822.js → data-4b448e3a.js} +16 -2
- package/dist/esm/{framework-delegate-2b76c681.js → framework-delegate-43758c88.js} +5 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +2 -2
- package/dist/esm/ion-alert.entry.js +2 -2
- package/dist/esm/ion-app_8.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +3 -3
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +2 -2
- package/dist/esm/ion-modal.entry.js +2 -2
- package/dist/esm/ion-nav_2.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +3 -3
- package/dist/esm/ion-select_3.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/{overlays-c3387ec0.js → overlays-236d01c6.js} +1 -1
- package/dist/esm-es5/data-4b448e3a.js +4 -0
- package/dist/esm-es5/framework-delegate-43758c88.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-datetime-button.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.entry.js +1 -1
- package/dist/esm-es5/ion-loading.entry.js +1 -1
- package/dist/esm-es5/ion-menu_3.entry.js +1 -1
- package/dist/esm-es5/ion-modal.entry.js +1 -1
- package/dist/esm-es5/ion-nav_2.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/{overlays-c3387ec0.js → overlays-236d01c6.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-8fa43732.system.entry.js → p-04515b10.system.entry.js} +1 -1
- package/dist/ionic/{p-ccea9adc.system.entry.js → p-13df6e84.system.entry.js} +1 -1
- package/dist/ionic/{p-74723f41.entry.js → p-2bdc6097.entry.js} +1 -1
- package/dist/ionic/{p-06f1f560.system.entry.js → p-2d37d114.system.entry.js} +1 -1
- package/dist/ionic/{p-8d9475b5.system.js → p-33dc95e4.system.js} +1 -1
- package/dist/ionic/{p-2da3e015.system.entry.js → p-3c14c5b9.system.entry.js} +1 -1
- package/dist/ionic/{p-20087c90.entry.js → p-4852bb39.entry.js} +1 -1
- package/dist/ionic/{p-d8538837.entry.js → p-4adb3257.entry.js} +1 -1
- package/dist/ionic/{p-74bd26b8.system.entry.js → p-50e474b3.system.entry.js} +1 -1
- package/dist/ionic/{p-229df0d8.entry.js → p-5c0754cd.entry.js} +1 -1
- package/dist/ionic/{p-db46fc66.system.js → p-5f5d78da.system.js} +1 -1
- package/dist/ionic/p-601fd53c.js +4 -0
- package/dist/ionic/{p-423d5a4d.entry.js → p-647c433f.entry.js} +1 -1
- package/dist/ionic/p-721933ff.system.js +1 -1
- package/dist/ionic/{p-61769039.entry.js → p-77465c7a.entry.js} +1 -1
- package/dist/ionic/{p-b22ee955.system.entry.js → p-870fee8d.system.entry.js} +1 -1
- package/dist/ionic/{p-9b3c3564.entry.js → p-8d1ef5d0.entry.js} +1 -1
- package/dist/ionic/{p-d5db0834.system.entry.js → p-ad5a562b.system.entry.js} +1 -1
- package/dist/ionic/{p-77913af5.entry.js → p-b1e8f045.entry.js} +1 -1
- package/dist/ionic/{p-65403c81.system.entry.js → p-b3cfc6e1.system.entry.js} +1 -1
- package/dist/ionic/{p-81b46714.system.js → p-c275a599.system.js} +1 -1
- package/dist/ionic/p-cc8910e7.system.js +4 -0
- package/dist/ionic/{p-737a8573.entry.js → p-d3602489.entry.js} +1 -1
- package/dist/ionic/{p-2bc49e5d.system.entry.js → p-e015fbd9.system.entry.js} +1 -1
- package/dist/ionic/{p-29b3e70a.entry.js → p-e30f020d.entry.js} +1 -1
- package/dist/ionic/{p-c0d1e5a1.entry.js → p-e484ae56.entry.js} +1 -1
- package/dist/ionic/{p-5c96dc4e.entry.js → p-ed290b4a.entry.js} +1 -1
- package/dist/ionic/{p-8074bdd7.system.entry.js → p-f1bf45b2.system.entry.js} +1 -1
- package/dist/ionic/p-f2743457.js +4 -0
- package/dist/ionic/{p-6b9bf14c.system.entry.js → p-f2c1459b.system.entry.js} +1 -1
- package/dist/ionic/{p-5ef91692.js → p-f4bbbc33.js} +1 -1
- package/dist/ionic/{p-2936ec7f.system.entry.js → p-f94cad00.system.entry.js} +1 -1
- package/dist/ionic/{p-958bde76.entry.js → p-fb16e75c.entry.js} +1 -1
- package/dist/ionic/{p-d1356034.system.entry.js → p-ff0f2ef4.system.entry.js} +1 -1
- package/dist/types/components/datetime/utils/parse.d.ts +2 -2
- package/hydrate/index.js +22 -5
- package/package.json +2 -2
- package/dist/esm-es5/data-834f9822.js +0 -4
- package/dist/esm-es5/framework-delegate-2b76c681.js +0 -4
- package/dist/ionic/p-7618d0c2.system.js +0 -4
- package/dist/ionic/p-a2d804ae.js +0 -4
- package/dist/ionic/p-b34c1ae1.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{u(i.next(e))}catch(e){o(e)}}function a(e){try{u(i["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):r(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-5b553dc0.system.js","./p-c4f2dce7.system.js","./p-815c2fba.system.js","./p-df6743df.system.js","./p-7b16490a.system.js","./p-8d9475b5.system.js"],(function(e,t){"use strict";var n,i,r,o,s,a,u,f,c,l,h,d,v,p,m,g,w;return{setters:[function(e){n=e.r;i=e.d;r=e.h;o=e.f;s=e.H},function(e){a=e.g},function(e){u=e.o;f=e.s},function(e){c=e.l;l=e.t;h=e.s;d=e.d;v=e.b;p=e.c},function(e){m=e.b;g=e.c},function(e){w=e.a}],execute:function(){var y=1;var b=2;var _=3;var S=function(){function e(e,t){this.component=e;this.params=t;this.state=y}e.prototype.init=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:this.state=b;if(!!this.element)return[3,2];t=this.component;n=this;return[4,w(this.delegate,e,t,["ion-page","ion-page-invisible"],this.params)];case 1:n.element=i.sent();i.label=2;case 2:return[2]}}))}))};e.prototype._destroy=function(){u(this.state!==_,"view state must be ATTACHED");var e=this.element;if(e){if(this.delegate){this.delegate.removeViewFromDom(e.parentElement,e)}else{e.remove()}}this.nav=undefined;this.state=_};return e}();var k=function(e,t,n){if(!e){return false}if(e.component!==t){return false}return f(e.params,n)};var C=function(e,t){if(!e){return null}if(e instanceof S){return e}return new S(e,t)};var V=function(e){return e.map((function(e){if(e instanceof S){return e}if("component"in e){return C(e.component,e.componentProps===null?undefined:e.componentProps)}return C(e,undefined)})).filter((function(e){return e!==null}))};var T=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";var P=e("ion_nav",function(){function e(e){n(this,e);this.ionNavWillLoad=i(this,"ionNavWillLoad",7);this.ionNavWillChange=i(this,"ionNavWillChange",3);this.ionNavDidChange=i(this,"ionNavDidChange",3);this.transInstr=[];this.gestureOrAnimationInProgress=false;this.useRouter=false;this.isTransitioning=false;this.destroyed=false;this.views=[];this.didLoad=false;this.delegate=undefined;this.swipeGesture=undefined;this.animated=true;this.animation=undefined;this.rootParams=undefined;this.root=undefined}e.prototype.swipeGestureChanged=function(){if(this.gesture){this.gesture.enable(this.swipeGesture===true)}};e.prototype.rootChanged=function(){if(this.root===undefined){return}if(this.didLoad===false){return}if(!this.useRouter){if(this.root!==undefined){this.setRoot(this.root,this.rootParams)}}};e.prototype.componentWillLoad=function(){this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null;if(this.swipeGesture===undefined){var e=m(this);this.swipeGesture=g.getBoolean("swipeBackEnabled",e==="ios")}this.ionNavWillLoad.emit()};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:this.didLoad=true;this.rootChanged();e=this;return[4,t.import("./p-c57cde35.system.js")];case 1:e.gesture=n.sent().createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this));this.swipeGestureChanged();return[2]}}))}))};e.prototype.connectedCallback=function(){this.destroyed=false};e.prototype.disconnectedCallback=function(){for(var e=0,t=this.views;e<t.length;e++){var n=t[e];c(n.element,d);n._destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.transInstr.length=0;this.views.length=0;this.destroyed=true};e.prototype.push=function(e,t,n,i){return this.insert(-1,e,t,n,i)};e.prototype.insert=function(e,t,n,i,r){return this.insertPages(e,[{component:t,componentProps:n}],i,r)};e.prototype.insertPages=function(e,t,n,i){return this.queueTrns({insertStart:e,insertViews:t,opts:n},i)};e.prototype.pop=function(e,t){return this.removeIndex(-1,1,e,t)};e.prototype.popTo=function(e,t,n){var i={removeStart:-1,removeCount:-1,opts:t};if(typeof e==="object"&&e.component){i.removeView=e;i.removeStart=1}else if(typeof e==="number"){i.removeStart=e+1}return this.queueTrns(i,n)};e.prototype.popToRoot=function(e,t){return this.removeIndex(1,-1,e,t)};e.prototype.removeIndex=function(e,t,n,i){if(t===void 0){t=1}return this.queueTrns({removeStart:e,removeCount:t,opts:n},i)};e.prototype.setRoot=function(e,t,n,i){return this.setPages([{component:e,componentProps:t}],n,i)};e.prototype.setPages=function(e,t,n){t!==null&&t!==void 0?t:t={};if(t.animated!==true){t.animated=false}return this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:t},n)};e.prototype.setRouteId=function(e,t,n,i){var r=this;var o=this.getActiveSync();if(k(o,e,t)){return Promise.resolve({changed:false,element:o.element})}var s;var a=new Promise((function(e){return s=e}));var u;var f={updateURL:false,viewIsReady:function(e){var t;var n=new Promise((function(e){return t=e}));s({changed:true,element:e,markVisible:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:t();return[4,u];case 1:e.sent();return[2]}}))}))}});return n}};if(n==="root"){u=this.setRoot(e,t,f)}else{var c=this.views.find((function(n){return k(n,e,t)}));if(c){u=this.popTo(c,Object.assign(Object.assign({},f),{direction:"back",animationBuilder:i}))}else if(n==="forward"){u=this.push(e,t,Object.assign(Object.assign({},f),{animationBuilder:i}))}else if(n==="back"){u=this.setRoot(e,t,Object.assign(Object.assign({},f),{direction:"back",animated:true,animationBuilder:i}))}}return a};e.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.getActiveSync();if(e){return[2,{id:e.element.tagName,params:e.params,element:e.element}]}return[2,undefined]}))}))};e.prototype.getActive=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.getActiveSync()]}))}))};e.prototype.getByIndex=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.views[e]]}))}))};e.prototype.canGoBack=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.canGoBackSync(e)]}))}))};e.prototype.getPrevious=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getPreviousSync(e)]}))}))};e.prototype.getLength=function(){return this.views.length};e.prototype.getActiveSync=function(){return this.views[this.views.length-1]};e.prototype.canGoBackSync=function(e){if(e===void 0){e=this.getActiveSync()}return!!(e&&this.getPreviousSync(e))};e.prototype.getPreviousSync=function(e){if(e===void 0){e=this.getActiveSync()}if(!e){return undefined}var t=this.views;var n=t.indexOf(e);return n>0?t[n-1]:undefined};e.prototype.queueTrns=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,i,r,o,s;return __generator(this,(function(a){switch(a.label){case 0:if(this.isTransitioning&&((n=e.opts)===null||n===void 0?void 0:n.skipIfBusy)){return[2,false]}r=new Promise((function(t,n){e.resolve=t;e.reject=n}));e.done=t;if(!(e.opts&&e.opts.updateURL!==false&&this.useRouter))return[3,2];o=document.querySelector("ion-router");if(!o)return[3,2];return[4,o.canTransition()];case 1:s=a.sent();if(s===false){return[2,false]}if(typeof s==="string"){o.push(s,e.opts.direction||"back");return[2,false]}a.label=2;case 2:if(((i=e.insertViews)===null||i===void 0?void 0:i.length)===0){e.insertViews=undefined}this.transInstr.push(e);this.nextTrns();return[2,r]}}))}))};e.prototype.success=function(e,t){if(this.destroyed){this.fireError("nav controller was destroyed",t);return}if(t.done){t.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction)}t.resolve(e.hasCompleted);if(t.opts.updateURL!==false&&this.useRouter){var n=document.querySelector("ion-router");if(n){var i=e.direction==="back"?"back":"forward";n.navChanged(i)}}};e.prototype.failed=function(e,t){if(this.destroyed){this.fireError("nav controller was destroyed",t);return}this.transInstr.length=0;this.fireError(e,t)};e.prototype.fireError=function(e,t){if(t.done){t.done(false,false,e)}if(t.reject&&!this.destroyed){t.reject(e)}else{t.resolve(false)}};e.prototype.nextTrns=function(){if(this.isTransitioning){return false}var e=this.transInstr.shift();if(!e){return false}this.runTransition(e);return true};e.prototype.runTransition=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,r,o,s;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,6,,7]);this.ionNavWillChange.emit();this.isTransitioning=true;this.prepareTI(e);t=this.getActiveSync();n=this.getEnteringView(e,t);if(!t&&!n){throw new Error("no views in the stack to be removed")}if(!(n&&n.state===y))return[3,2];return[4,n.init(this.el)];case 1:a.sent();a.label=2;case 2:this.postViewInit(n,t,e);i=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&n!==t;if(i&&e.opts&&t){r=e.opts.direction==="back";if(r){e.opts.animationBuilder=e.opts.animationBuilder||(n===null||n===void 0?void 0:n.animationBuilder)}t.animationBuilder=e.opts.animationBuilder}o=void 0;if(!i)return[3,4];return[4,this.transition(n,t,e)];case 3:o=a.sent();return[3,5];case 4:o={hasCompleted:true,requiresTransition:false};a.label=5;case 5:this.success(o,e);this.ionNavDidChange.emit();return[3,7];case 6:s=a.sent();this.failed(s,e);return[3,7];case 7:this.isTransitioning=false;this.nextTrns();return[2]}}))}))};e.prototype.prepareTI=function(e){var t,n;var i;var r=this.views.length;(t=e.opts)!==null&&t!==void 0?t:e.opts={};(n=(i=e.opts).delegate)!==null&&n!==void 0?n:i.delegate=this.delegate;if(e.removeView!==undefined){u(e.removeStart!==undefined,"removeView needs removeStart");u(e.removeCount!==undefined,"removeView needs removeCount");var o=this.views.indexOf(e.removeView);if(o<0){throw new Error("removeView was not found")}e.removeStart+=o}if(e.removeStart!==undefined){if(e.removeStart<0){e.removeStart=r-1}if(e.removeCount<0){e.removeCount=r-e.removeStart}e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===r}if(e.insertViews){if(e.insertStart<0||e.insertStart>r){e.insertStart=r}e.enteringRequiresTransition=e.insertStart===r}var s=e.insertViews;if(!s){return}u(s.length>0,"length can not be zero");var a=V(s);if(a.length===0){throw new Error("invalid views to insert")}for(var f=0,c=a;f<c.length;f++){var l=c[f];l.delegate=e.opts.delegate;var h=l.nav;if(h&&h!==this){throw new Error("inserted view was already inserted")}if(l.state===_){throw new Error("inserted view was already destroyed")}}e.insertViews=a};e.prototype.getEnteringView=function(e,t){var n=e.insertViews;if(n!==undefined){return n[n.length-1]}var i=e.removeStart;if(i!==undefined){var r=this.views;var o=i+e.removeCount;for(var s=r.length-1;s>=0;s--){var a=r[s];if((s<i||s>=o)&&a!==t){return a}}}return undefined};e.prototype.postViewInit=function(e,t,n){var i,r,o;u(t||e,"Both leavingView and enteringView are null");u(n.resolve,"resolve must be valid");u(n.reject,"reject must be valid");var s=n.opts;var a=n.insertViews,f=n.removeStart,l=n.removeCount;var h;if(f!==undefined&&l!==undefined){u(f>=0,"removeStart can not be negative");u(l>=0,"removeCount can not be negative");h=[];for(var m=f;m<f+l;m++){var g=this.views[m];if(g!==undefined&&g!==e&&g!==t){h.push(g)}}(i=s.direction)!==null&&i!==void 0?i:s.direction="back"}var w=this.views.length+((r=a===null||a===void 0?void 0:a.length)!==null&&r!==void 0?r:0)-(l!==null&&l!==void 0?l:0);u(w>=0,"final balance can not be negative");if(w===0){console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el);throw new Error("navigation stack needs at least one root page")}if(a){var y=n.insertStart;for(var b=0,_=a;b<_.length;b++){var g=_[b];this.insertViewAt(g,y);y++}if(n.enteringRequiresTransition){(o=s.direction)!==null&&o!==void 0?o:s.direction="forward"}}if(h&&h.length>0){for(var S=0,k=h;S<k.length;S++){var g=k[S];c(g.element,v);c(g.element,p);c(g.element,d)}for(var C=0,V=h;C<V.length;C++){var g=V[C];this.destroyView(g)}}};e.prototype.transition=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var i,r,o,s,a,u,f;var c=this;return __generator(this,(function(h){switch(h.label){case 0:i=n.opts;r=i.progressAnimation?function(e){if(e!==undefined&&!c.gestureOrAnimationInProgress){c.gestureOrAnimationInProgress=true;e.onFinish((function(){c.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});e.progressEnd(0,0,0)}else{c.sbAni=e}}:undefined;o=m(this);s=e.element;a=t&&t.element;u=Object.assign(Object.assign({mode:o,showGoBack:this.canGoBackSync(e),baseEl:this.el,progressCallback:r,animated:this.animated&&g.getBoolean("animated",true),enteringEl:s,leavingEl:a},i),{animationBuilder:i.animationBuilder||this.animation||g.get("navAnimation")});return[4,l(u)];case 1:f=h.sent().hasCompleted;return[2,this.transitionFinish(f,e,t,i)]}}))}))};e.prototype.transitionFinish=function(e,t,n,i){var r=e?t:n;if(r){this.unmountInactiveViews(r)}return{hasCompleted:e,requiresTransition:true,enteringView:t,leavingView:n,direction:i.direction}};e.prototype.insertViewAt=function(e,t){var n=this.views;var i=n.indexOf(e);if(i>-1){u(e.nav===this,"view is not part of the nav");n.splice(i,1);n.splice(t,0,e)}else{u(!e.nav,"nav is used");e.nav=this;n.splice(t,0,e)}};e.prototype.removeView=function(e){u(e.state===b||e.state===_,"view state should be loaded or destroyed");var t=this.views;var n=t.indexOf(e);u(n>-1,"view must be part of the stack");if(n>=0){t.splice(n,1)}};e.prototype.destroyView=function(e){e._destroy();this.removeView(e)};e.prototype.unmountInactiveViews=function(e){if(this.destroyed){return}var t=this.views;var n=t.indexOf(e);for(var i=t.length-1;i>=0;i--){var r=t[i];var o=r.element;if(o){if(i>n){c(o,d);this.destroyView(r)}else if(i<n){h(o,true)}}}};e.prototype.canStart=function(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()};e.prototype.onStart=function(){this.gestureOrAnimationInProgress=true;this.pop({direction:"back",progressAnimation:true})};e.prototype.onMove=function(e){if(this.sbAni){this.sbAni.progressStep(e)}};e.prototype.onEnd=function(e,t,n){var i=this;if(this.sbAni){this.sbAni.onFinish((function(){i.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});var r=e?-.001:.001;if(!e){this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=a([0,0],[1,0],[.68,.28],[1,1],t)[0]}else{r+=a([0,0],[.32,.72],[0,1],[1,1],t)[0]}this.sbAni.progressEnd(e?1:0,r,n)}else{this.gestureOrAnimationInProgress=false}};e.prototype.render=function(){return r("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}},enumerable:false,configurable:true});return e}());P.style=T;var A=function(e,t,n,i,r){var o=e.closest("ion-nav");if(o){if(t==="forward"){if(n!==undefined){return o.push(n,i,{skipIfBusy:true,animationBuilder:r})}}else if(t==="root"){if(n!==undefined){return o.setRoot(n,i,{skipIfBusy:true,animationBuilder:r})}}else if(t==="back"){return o.pop({skipIfBusy:true,animationBuilder:r})}}return Promise.resolve(false)};var I=e("ion_nav_link",function(){function e(e){var t=this;n(this,e);this.onClick=function(){return A(t.el,t.routerDirection,t.component,t.componentProps,t.routerAnimation)};this.component=undefined;this.componentProps=undefined;this.routerDirection="forward";this.routerAnimation=undefined}e.prototype.render=function(){return r(s,{onClick:this.onClick})};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}())}}}));
|
|
4
|
+
*/System.register(["./p-5b553dc0.system.js","./p-c4f2dce7.system.js","./p-815c2fba.system.js","./p-df6743df.system.js","./p-7b16490a.system.js","./p-33dc95e4.system.js"],(function(e,t){"use strict";var n,i,r,o,s,a,u,f,c,l,h,d,v,p,m,g,w;return{setters:[function(e){n=e.r;i=e.d;r=e.h;o=e.f;s=e.H},function(e){a=e.g},function(e){u=e.o;f=e.s},function(e){c=e.l;l=e.t;h=e.s;d=e.d;v=e.b;p=e.c},function(e){m=e.b;g=e.c},function(e){w=e.a}],execute:function(){var y=1;var b=2;var _=3;var S=function(){function e(e,t){this.component=e;this.params=t;this.state=y}e.prototype.init=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n;return __generator(this,(function(i){switch(i.label){case 0:this.state=b;if(!!this.element)return[3,2];t=this.component;n=this;return[4,w(this.delegate,e,t,["ion-page","ion-page-invisible"],this.params)];case 1:n.element=i.sent();i.label=2;case 2:return[2]}}))}))};e.prototype._destroy=function(){u(this.state!==_,"view state must be ATTACHED");var e=this.element;if(e){if(this.delegate){this.delegate.removeViewFromDom(e.parentElement,e)}else{e.remove()}}this.nav=undefined;this.state=_};return e}();var k=function(e,t,n){if(!e){return false}if(e.component!==t){return false}return f(e.params,n)};var C=function(e,t){if(!e){return null}if(e instanceof S){return e}return new S(e,t)};var V=function(e){return e.map((function(e){if(e instanceof S){return e}if("component"in e){return C(e.component,e.componentProps===null?undefined:e.componentProps)}return C(e,undefined)})).filter((function(e){return e!==null}))};var T=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";var P=e("ion_nav",function(){function e(e){n(this,e);this.ionNavWillLoad=i(this,"ionNavWillLoad",7);this.ionNavWillChange=i(this,"ionNavWillChange",3);this.ionNavDidChange=i(this,"ionNavDidChange",3);this.transInstr=[];this.gestureOrAnimationInProgress=false;this.useRouter=false;this.isTransitioning=false;this.destroyed=false;this.views=[];this.didLoad=false;this.delegate=undefined;this.swipeGesture=undefined;this.animated=true;this.animation=undefined;this.rootParams=undefined;this.root=undefined}e.prototype.swipeGestureChanged=function(){if(this.gesture){this.gesture.enable(this.swipeGesture===true)}};e.prototype.rootChanged=function(){if(this.root===undefined){return}if(this.didLoad===false){return}if(!this.useRouter){if(this.root!==undefined){this.setRoot(this.root,this.rootParams)}}};e.prototype.componentWillLoad=function(){this.useRouter=document.querySelector("ion-router")!==null&&this.el.closest("[no-router]")===null;if(this.swipeGesture===undefined){var e=m(this);this.swipeGesture=g.getBoolean("swipeBackEnabled",e==="ios")}this.ionNavWillLoad.emit()};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:this.didLoad=true;this.rootChanged();e=this;return[4,t.import("./p-c57cde35.system.js")];case 1:e.gesture=n.sent().createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this));this.swipeGestureChanged();return[2]}}))}))};e.prototype.connectedCallback=function(){this.destroyed=false};e.prototype.disconnectedCallback=function(){for(var e=0,t=this.views;e<t.length;e++){var n=t[e];c(n.element,d);n._destroy()}if(this.gesture){this.gesture.destroy();this.gesture=undefined}this.transInstr.length=0;this.views.length=0;this.destroyed=true};e.prototype.push=function(e,t,n,i){return this.insert(-1,e,t,n,i)};e.prototype.insert=function(e,t,n,i,r){return this.insertPages(e,[{component:t,componentProps:n}],i,r)};e.prototype.insertPages=function(e,t,n,i){return this.queueTrns({insertStart:e,insertViews:t,opts:n},i)};e.prototype.pop=function(e,t){return this.removeIndex(-1,1,e,t)};e.prototype.popTo=function(e,t,n){var i={removeStart:-1,removeCount:-1,opts:t};if(typeof e==="object"&&e.component){i.removeView=e;i.removeStart=1}else if(typeof e==="number"){i.removeStart=e+1}return this.queueTrns(i,n)};e.prototype.popToRoot=function(e,t){return this.removeIndex(1,-1,e,t)};e.prototype.removeIndex=function(e,t,n,i){if(t===void 0){t=1}return this.queueTrns({removeStart:e,removeCount:t,opts:n},i)};e.prototype.setRoot=function(e,t,n,i){return this.setPages([{component:e,componentProps:t}],n,i)};e.prototype.setPages=function(e,t,n){t!==null&&t!==void 0?t:t={};if(t.animated!==true){t.animated=false}return this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:t},n)};e.prototype.setRouteId=function(e,t,n,i){var r=this;var o=this.getActiveSync();if(k(o,e,t)){return Promise.resolve({changed:false,element:o.element})}var s;var a=new Promise((function(e){return s=e}));var u;var f={updateURL:false,viewIsReady:function(e){var t;var n=new Promise((function(e){return t=e}));s({changed:true,element:e,markVisible:function(){return __awaiter(r,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:t();return[4,u];case 1:e.sent();return[2]}}))}))}});return n}};if(n==="root"){u=this.setRoot(e,t,f)}else{var c=this.views.find((function(n){return k(n,e,t)}));if(c){u=this.popTo(c,Object.assign(Object.assign({},f),{direction:"back",animationBuilder:i}))}else if(n==="forward"){u=this.push(e,t,Object.assign(Object.assign({},f),{animationBuilder:i}))}else if(n==="back"){u=this.setRoot(e,t,Object.assign(Object.assign({},f),{direction:"back",animated:true,animationBuilder:i}))}}return a};e.prototype.getRouteId=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.getActiveSync();if(e){return[2,{id:e.element.tagName,params:e.params,element:e.element}]}return[2,undefined]}))}))};e.prototype.getActive=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.getActiveSync()]}))}))};e.prototype.getByIndex=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.views[e]]}))}))};e.prototype.canGoBack=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.canGoBackSync(e)]}))}))};e.prototype.getPrevious=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.getPreviousSync(e)]}))}))};e.prototype.getLength=function(){return this.views.length};e.prototype.getActiveSync=function(){return this.views[this.views.length-1]};e.prototype.canGoBackSync=function(e){if(e===void 0){e=this.getActiveSync()}return!!(e&&this.getPreviousSync(e))};e.prototype.getPreviousSync=function(e){if(e===void 0){e=this.getActiveSync()}if(!e){return undefined}var t=this.views;var n=t.indexOf(e);return n>0?t[n-1]:undefined};e.prototype.queueTrns=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,i,r,o,s;return __generator(this,(function(a){switch(a.label){case 0:if(this.isTransitioning&&((n=e.opts)===null||n===void 0?void 0:n.skipIfBusy)){return[2,false]}r=new Promise((function(t,n){e.resolve=t;e.reject=n}));e.done=t;if(!(e.opts&&e.opts.updateURL!==false&&this.useRouter))return[3,2];o=document.querySelector("ion-router");if(!o)return[3,2];return[4,o.canTransition()];case 1:s=a.sent();if(s===false){return[2,false]}if(typeof s==="string"){o.push(s,e.opts.direction||"back");return[2,false]}a.label=2;case 2:if(((i=e.insertViews)===null||i===void 0?void 0:i.length)===0){e.insertViews=undefined}this.transInstr.push(e);this.nextTrns();return[2,r]}}))}))};e.prototype.success=function(e,t){if(this.destroyed){this.fireError("nav controller was destroyed",t);return}if(t.done){t.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction)}t.resolve(e.hasCompleted);if(t.opts.updateURL!==false&&this.useRouter){var n=document.querySelector("ion-router");if(n){var i=e.direction==="back"?"back":"forward";n.navChanged(i)}}};e.prototype.failed=function(e,t){if(this.destroyed){this.fireError("nav controller was destroyed",t);return}this.transInstr.length=0;this.fireError(e,t)};e.prototype.fireError=function(e,t){if(t.done){t.done(false,false,e)}if(t.reject&&!this.destroyed){t.reject(e)}else{t.resolve(false)}};e.prototype.nextTrns=function(){if(this.isTransitioning){return false}var e=this.transInstr.shift();if(!e){return false}this.runTransition(e);return true};e.prototype.runTransition=function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,i,r,o,s;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,6,,7]);this.ionNavWillChange.emit();this.isTransitioning=true;this.prepareTI(e);t=this.getActiveSync();n=this.getEnteringView(e,t);if(!t&&!n){throw new Error("no views in the stack to be removed")}if(!(n&&n.state===y))return[3,2];return[4,n.init(this.el)];case 1:a.sent();a.label=2;case 2:this.postViewInit(n,t,e);i=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&n!==t;if(i&&e.opts&&t){r=e.opts.direction==="back";if(r){e.opts.animationBuilder=e.opts.animationBuilder||(n===null||n===void 0?void 0:n.animationBuilder)}t.animationBuilder=e.opts.animationBuilder}o=void 0;if(!i)return[3,4];return[4,this.transition(n,t,e)];case 3:o=a.sent();return[3,5];case 4:o={hasCompleted:true,requiresTransition:false};a.label=5;case 5:this.success(o,e);this.ionNavDidChange.emit();return[3,7];case 6:s=a.sent();this.failed(s,e);return[3,7];case 7:this.isTransitioning=false;this.nextTrns();return[2]}}))}))};e.prototype.prepareTI=function(e){var t,n;var i;var r=this.views.length;(t=e.opts)!==null&&t!==void 0?t:e.opts={};(n=(i=e.opts).delegate)!==null&&n!==void 0?n:i.delegate=this.delegate;if(e.removeView!==undefined){u(e.removeStart!==undefined,"removeView needs removeStart");u(e.removeCount!==undefined,"removeView needs removeCount");var o=this.views.indexOf(e.removeView);if(o<0){throw new Error("removeView was not found")}e.removeStart+=o}if(e.removeStart!==undefined){if(e.removeStart<0){e.removeStart=r-1}if(e.removeCount<0){e.removeCount=r-e.removeStart}e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===r}if(e.insertViews){if(e.insertStart<0||e.insertStart>r){e.insertStart=r}e.enteringRequiresTransition=e.insertStart===r}var s=e.insertViews;if(!s){return}u(s.length>0,"length can not be zero");var a=V(s);if(a.length===0){throw new Error("invalid views to insert")}for(var f=0,c=a;f<c.length;f++){var l=c[f];l.delegate=e.opts.delegate;var h=l.nav;if(h&&h!==this){throw new Error("inserted view was already inserted")}if(l.state===_){throw new Error("inserted view was already destroyed")}}e.insertViews=a};e.prototype.getEnteringView=function(e,t){var n=e.insertViews;if(n!==undefined){return n[n.length-1]}var i=e.removeStart;if(i!==undefined){var r=this.views;var o=i+e.removeCount;for(var s=r.length-1;s>=0;s--){var a=r[s];if((s<i||s>=o)&&a!==t){return a}}}return undefined};e.prototype.postViewInit=function(e,t,n){var i,r,o;u(t||e,"Both leavingView and enteringView are null");u(n.resolve,"resolve must be valid");u(n.reject,"reject must be valid");var s=n.opts;var a=n.insertViews,f=n.removeStart,l=n.removeCount;var h;if(f!==undefined&&l!==undefined){u(f>=0,"removeStart can not be negative");u(l>=0,"removeCount can not be negative");h=[];for(var m=f;m<f+l;m++){var g=this.views[m];if(g!==undefined&&g!==e&&g!==t){h.push(g)}}(i=s.direction)!==null&&i!==void 0?i:s.direction="back"}var w=this.views.length+((r=a===null||a===void 0?void 0:a.length)!==null&&r!==void 0?r:0)-(l!==null&&l!==void 0?l:0);u(w>=0,"final balance can not be negative");if(w===0){console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el);throw new Error("navigation stack needs at least one root page")}if(a){var y=n.insertStart;for(var b=0,_=a;b<_.length;b++){var g=_[b];this.insertViewAt(g,y);y++}if(n.enteringRequiresTransition){(o=s.direction)!==null&&o!==void 0?o:s.direction="forward"}}if(h&&h.length>0){for(var S=0,k=h;S<k.length;S++){var g=k[S];c(g.element,v);c(g.element,p);c(g.element,d)}for(var C=0,V=h;C<V.length;C++){var g=V[C];this.destroyView(g)}}};e.prototype.transition=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var i,r,o,s,a,u,f;var c=this;return __generator(this,(function(h){switch(h.label){case 0:i=n.opts;r=i.progressAnimation?function(e){if(e!==undefined&&!c.gestureOrAnimationInProgress){c.gestureOrAnimationInProgress=true;e.onFinish((function(){c.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});e.progressEnd(0,0,0)}else{c.sbAni=e}}:undefined;o=m(this);s=e.element;a=t&&t.element;u=Object.assign(Object.assign({mode:o,showGoBack:this.canGoBackSync(e),baseEl:this.el,progressCallback:r,animated:this.animated&&g.getBoolean("animated",true),enteringEl:s,leavingEl:a},i),{animationBuilder:i.animationBuilder||this.animation||g.get("navAnimation")});return[4,l(u)];case 1:f=h.sent().hasCompleted;return[2,this.transitionFinish(f,e,t,i)]}}))}))};e.prototype.transitionFinish=function(e,t,n,i){var r=e?t:n;if(r){this.unmountInactiveViews(r)}return{hasCompleted:e,requiresTransition:true,enteringView:t,leavingView:n,direction:i.direction}};e.prototype.insertViewAt=function(e,t){var n=this.views;var i=n.indexOf(e);if(i>-1){u(e.nav===this,"view is not part of the nav");n.splice(i,1);n.splice(t,0,e)}else{u(!e.nav,"nav is used");e.nav=this;n.splice(t,0,e)}};e.prototype.removeView=function(e){u(e.state===b||e.state===_,"view state should be loaded or destroyed");var t=this.views;var n=t.indexOf(e);u(n>-1,"view must be part of the stack");if(n>=0){t.splice(n,1)}};e.prototype.destroyView=function(e){e._destroy();this.removeView(e)};e.prototype.unmountInactiveViews=function(e){if(this.destroyed){return}var t=this.views;var n=t.indexOf(e);for(var i=t.length-1;i>=0;i--){var r=t[i];var o=r.element;if(o){if(i>n){c(o,d);this.destroyView(r)}else if(i<n){h(o,true)}}}};e.prototype.canStart=function(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&this.transInstr.length===0&&this.canGoBackSync()};e.prototype.onStart=function(){this.gestureOrAnimationInProgress=true;this.pop({direction:"back",progressAnimation:true})};e.prototype.onMove=function(e){if(this.sbAni){this.sbAni.progressStep(e)}};e.prototype.onEnd=function(e,t,n){var i=this;if(this.sbAni){this.sbAni.onFinish((function(){i.gestureOrAnimationInProgress=false}),{oneTimeCallback:true});var r=e?-.001:.001;if(!e){this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)");r+=a([0,0],[1,0],[.68,.28],[1,1],t)[0]}else{r+=a([0,0],[.32,.72],[0,1],[1,1],t)[0]}this.sbAni.progressEnd(e?1:0,r,n)}else{this.gestureOrAnimationInProgress=false}};e.prototype.render=function(){return r("slot",null)};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}},enumerable:false,configurable:true});return e}());P.style=T;var A=function(e,t,n,i,r){var o=e.closest("ion-nav");if(o){if(t==="forward"){if(n!==undefined){return o.push(n,i,{skipIfBusy:true,animationBuilder:r})}}else if(t==="root"){if(n!==undefined){return o.setRoot(n,i,{skipIfBusy:true,animationBuilder:r})}}else if(t==="back"){return o.pop({skipIfBusy:true,animationBuilder:r})}}return Promise.resolve(false)};var I=e("ion_nav_link",function(){function e(e){var t=this;n(this,e);this.onClick=function(){return A(t.el,t.routerDirection,t.component,t.componentProps,t.routerAnimation)};this.component=undefined;this.componentProps=undefined;this.routerDirection="forward";this.routerAnimation=undefined}e.prototype.render=function(){return r(s,{onClick:this.onClick})};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}())}}}));
|
|
@@ -33,11 +33,11 @@ export declare const parseAmPm: (hour: number) => "am" | "pm";
|
|
|
33
33
|
* For example, max="2012" would fill in the missing
|
|
34
34
|
* month, day, hour, and minute information.
|
|
35
35
|
*/
|
|
36
|
-
export declare const parseMaxParts: (max: string, todayParts: DatetimeParts) => DatetimeParts;
|
|
36
|
+
export declare const parseMaxParts: (max: string, todayParts: DatetimeParts) => DatetimeParts | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Takes a min date string and creates a DatetimeParts
|
|
39
39
|
* object, filling in any missing information.
|
|
40
40
|
* For example, min="2012" would fill in the missing
|
|
41
41
|
* month, day, hour, and minute information.
|
|
42
42
|
*/
|
|
43
|
-
export declare const parseMinParts: (min: string, todayParts: DatetimeParts) => DatetimeParts;
|
|
43
|
+
export declare const parseMinParts: (min: string, todayParts: DatetimeParts) => DatetimeParts | undefined;
|
package/hydrate/index.js
CHANGED
|
@@ -8004,6 +8004,7 @@ const CoreDelegate = () => {
|
|
|
8004
8004
|
const attachViewToDom = async (parentElement, userComponent, userComponentProps = {}, cssClasses = []) => {
|
|
8005
8005
|
var _a, _b;
|
|
8006
8006
|
BaseComponent = parentElement;
|
|
8007
|
+
let ChildComponent;
|
|
8007
8008
|
/**
|
|
8008
8009
|
* If passing in a component via the `component` props
|
|
8009
8010
|
* we need to append it inside of our overlay component.
|
|
@@ -8030,6 +8031,7 @@ const CoreDelegate = () => {
|
|
|
8030
8031
|
* inside of the overlay component.
|
|
8031
8032
|
*/
|
|
8032
8033
|
BaseComponent.appendChild(el);
|
|
8034
|
+
ChildComponent = el;
|
|
8033
8035
|
await new Promise((resolve) => componentOnReady(el, resolve));
|
|
8034
8036
|
}
|
|
8035
8037
|
else if (BaseComponent.children.length > 0 &&
|
|
@@ -8038,7 +8040,7 @@ const CoreDelegate = () => {
|
|
|
8038
8040
|
* The delegate host wrapper el is only needed for modals and popovers
|
|
8039
8041
|
* because they allow the dev to provide custom content to the overlay.
|
|
8040
8042
|
*/
|
|
8041
|
-
const root = BaseComponent.children[0];
|
|
8043
|
+
const root = (ChildComponent = BaseComponent.children[0]);
|
|
8042
8044
|
if (!root.classList.contains('ion-delegate-host')) {
|
|
8043
8045
|
/**
|
|
8044
8046
|
* If the root element is not a delegate host, it means
|
|
@@ -8053,6 +8055,7 @@ const CoreDelegate = () => {
|
|
|
8053
8055
|
el.append(...BaseComponent.children);
|
|
8054
8056
|
// Append the new parent element to the original parent element.
|
|
8055
8057
|
BaseComponent.appendChild(el);
|
|
8058
|
+
ChildComponent = el;
|
|
8056
8059
|
}
|
|
8057
8060
|
}
|
|
8058
8061
|
/**
|
|
@@ -8068,7 +8071,7 @@ const CoreDelegate = () => {
|
|
|
8068
8071
|
Reference = document.createComment('ionic teleport');
|
|
8069
8072
|
BaseComponent.parentNode.insertBefore(Reference, BaseComponent);
|
|
8070
8073
|
app.appendChild(BaseComponent);
|
|
8071
|
-
return
|
|
8074
|
+
return ChildComponent;
|
|
8072
8075
|
};
|
|
8073
8076
|
const removeViewFromDom = () => {
|
|
8074
8077
|
/**
|
|
@@ -13087,7 +13090,14 @@ const parseAmPm = (hour) => {
|
|
|
13087
13090
|
* month, day, hour, and minute information.
|
|
13088
13091
|
*/
|
|
13089
13092
|
const parseMaxParts = (max, todayParts) => {
|
|
13090
|
-
const
|
|
13093
|
+
const result = parseDate(max);
|
|
13094
|
+
/**
|
|
13095
|
+
* If min was not a valid date then return undefined.
|
|
13096
|
+
*/
|
|
13097
|
+
if (result === undefined) {
|
|
13098
|
+
return;
|
|
13099
|
+
}
|
|
13100
|
+
const { month, day, year, hour, minute } = result;
|
|
13091
13101
|
/**
|
|
13092
13102
|
* When passing in `max` or `min`, developers
|
|
13093
13103
|
* can pass in any ISO-8601 string. This means
|
|
@@ -13120,7 +13130,14 @@ const parseMaxParts = (max, todayParts) => {
|
|
|
13120
13130
|
* month, day, hour, and minute information.
|
|
13121
13131
|
*/
|
|
13122
13132
|
const parseMinParts = (min, todayParts) => {
|
|
13123
|
-
const
|
|
13133
|
+
const result = parseDate(min);
|
|
13134
|
+
/**
|
|
13135
|
+
* If min was not a valid date then return undefined.
|
|
13136
|
+
*/
|
|
13137
|
+
if (result === undefined) {
|
|
13138
|
+
return;
|
|
13139
|
+
}
|
|
13140
|
+
const { month, day, year, hour, minute } = result;
|
|
13124
13141
|
/**
|
|
13125
13142
|
* When passing in `max` or `min`, developers
|
|
13126
13143
|
* can pass in any ISO-8601 string. This means
|
|
@@ -26622,12 +26639,12 @@ class Popover {
|
|
|
26622
26639
|
}
|
|
26623
26640
|
const { el } = this;
|
|
26624
26641
|
const { inline, delegate } = this.getDelegate(true);
|
|
26642
|
+
this.ionMount.emit();
|
|
26625
26643
|
this.usersElement = await attachComponent(delegate, el, this.component, ['popover-viewport'], this.componentProps, inline);
|
|
26626
26644
|
if (!this.keyboardEvents) {
|
|
26627
26645
|
this.configureKeyboardInteraction();
|
|
26628
26646
|
}
|
|
26629
26647
|
this.configureDismissInteraction();
|
|
26630
|
-
this.ionMount.emit();
|
|
26631
26648
|
/**
|
|
26632
26649
|
* When using the lazy loaded build of Stencil, we need to wait
|
|
26633
26650
|
* for every Stencil component instance to be ready before presenting
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/core",
|
|
3
|
-
"version": "7.3.2-dev.
|
|
3
|
+
"version": "7.3.2-dev.11693254222.1822966d",
|
|
4
4
|
"description": "Base components for Ionic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@axe-core/playwright": "^4.7.3",
|
|
40
|
-
"@capacitor/core": "^5.
|
|
40
|
+
"@capacitor/core": "^5.3.0",
|
|
41
41
|
"@capacitor/haptics": "^5.0.6",
|
|
42
42
|
"@capacitor/keyboard": "^5.0.6",
|
|
43
43
|
"@capacitor/status-bar": "^5.0.6",
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{__spreadArray}from"tslib";
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{p as printIonWarning}from"./index-595d62c9.js";var isSameDay=function(e,a){return e.month===a.month&&e.day===a.day&&e.year===a.year};var isBefore=function(e,a){return!!(e.year<a.year||e.year===a.year&&e.month<a.month||e.year===a.year&&e.month===a.month&&e.day!==null&&e.day<a.day)};var isAfter=function(e,a){return!!(e.year>a.year||e.year===a.year&&e.month>a.month||e.year===a.year&&e.month===a.month&&e.day!==null&&e.day>a.day)};var warnIfValueOutOfBounds=function(e,a,r){var t=Array.isArray(e)?e:[e];for(var n=0,o=t;n<o.length;n++){var i=o[n];if(a!==undefined&&isBefore(i,a)||r!==undefined&&isAfter(i,r)){printIonWarning("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(a),"\n")+"Max: ".concat(JSON.stringify(r),"\n")+"Value: ".concat(JSON.stringify(e)));break}}};var isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0};var is24Hour=function(e,a){if(a!==undefined){return a==="h23"}var r=new Intl.DateTimeFormat(e,{hour:"numeric"});var t=r.resolvedOptions();if(t.hourCycle!==undefined){return t.hourCycle==="h23"}var n=new Date("5/18/2021 00:00");var o=r.formatToParts(n);var i=o.find((function(e){return e.type==="hour"}));if(!i){throw new Error("Hour value not found from DateTimeFormat")}return i.value==="00"};var getNumDaysInMonth=function(e,a){return e===4||e===6||e===9||e===11?30:e===2?isLeapYear(a)?29:28:31};var isMonthFirstLocale=function(e,a){if(a===void 0){a={month:"numeric",year:"numeric"}}var r=new Intl.DateTimeFormat(e,a).formatToParts(new Date);return r[0].type==="month"};var isLocaleDayPeriodRTL=function(e){var a=new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date);return a[0].type==="dayPeriod"};var ISO_8601_REGEXP=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var TIME_REGEXP=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var convertToArrayOfNumbers=function(e){if(e===undefined){return}var a=e;if(typeof e==="string"){a=e.replace(/\[|\]|\s/g,"").split(",")}var r;if(Array.isArray(a)){r=a.map((function(e){return parseInt(e,10)})).filter(isFinite)}else{r=[a]}return r};var getPartsFromCalendarDay=function(e){return{month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)}};function parseDate(e){if(Array.isArray(e)){return e.map((function(e){return parseDate(e)}))}var a=null;if(e!=null&&e!==""){a=TIME_REGEXP.exec(e);if(a){a.unshift(undefined,undefined);a[2]=a[3]=undefined}else{a=ISO_8601_REGEXP.exec(e)}}if(a===null){return undefined}for(var r=1;r<8;r++){a[r]=a[r]!==undefined?parseInt(a[r],10):undefined}return{year:a[1],month:a[2],day:a[3],hour:a[4],minute:a[5],ampm:a[4]<12?"am":"pm"}}var clampDate=function(e,a,r){if(a&&isBefore(e,a)){return a}else if(r&&isAfter(e,r)){return r}return e};var parseAmPm=function(e){return e>=12?"pm":"am"};var parseMaxParts=function(e,a){var r=parseDate(e),t=r.month,n=r.day,o=r.year,i=r.hour,u=r.minute;var d=o!==null&&o!==void 0?o:a.year;var f=t!==null&&t!==void 0?t:12;return{month:f,day:n!==null&&n!==void 0?n:getNumDaysInMonth(f,d),year:d,hour:i!==null&&i!==void 0?i:23,minute:u!==null&&u!==void 0?u:59}};var parseMinParts=function(e,a){var r=parseDate(e),t=r.month,n=r.day,o=r.year,i=r.hour,u=r.minute;return{month:t!==null&&t!==void 0?t:1,day:n!==null&&n!==void 0?n:1,year:o!==null&&o!==void 0?o:a.year,hour:i!==null&&i!==void 0?i:0,minute:u!==null&&u!==void 0?u:0}};var twoDigit=function(e){return("0"+(e!==undefined?Math.abs(e):"0")).slice(-2)};var fourDigit=function(e){return("000"+(e!==undefined?Math.abs(e):"0")).slice(-4)};function convertDataToISO(e){if(Array.isArray(e)){return e.map((function(e){return convertDataToISO(e)}))}var a="";if(e.year!==undefined){a=fourDigit(e.year);if(e.month!==undefined){a+="-"+twoDigit(e.month);if(e.day!==undefined){a+="-"+twoDigit(e.day);if(e.hour!==undefined){a+="T".concat(twoDigit(e.hour),":").concat(twoDigit(e.minute),":00")}}}}else if(e.hour!==undefined){a=twoDigit(e.hour)+":"+twoDigit(e.minute)}return a}var convert12HourTo24Hour=function(e,a){if(a===undefined){return e}if(a==="am"){if(e===12){return 0}return e}if(e===12){return 12}return e+12};var getStartOfWeek=function(e){var a=e.dayOfWeek;if(a===null||a===undefined){throw new Error("No day of week provided")}return subtractDays(e,a)};var getEndOfWeek=function(e){var a=e.dayOfWeek;if(a===null||a===undefined){throw new Error("No day of week provided")}return addDays(e,6-a)};var getNextDay=function(e){return addDays(e,1)};var getPreviousDay=function(e){return subtractDays(e,1)};var getPreviousWeek=function(e){return subtractDays(e,7)};var getNextWeek=function(e){return addDays(e,7)};var subtractDays=function(e,a){var r=e.month,t=e.day,n=e.year;if(t===null){throw new Error("No day provided")}var o={month:r,day:t,year:n};o.day=t-a;if(o.day<1){o.month-=1}if(o.month<1){o.month=12;o.year-=1}if(o.day<1){var i=getNumDaysInMonth(o.month,o.year);o.day=i+o.day}return o};var addDays=function(e,a){var r=e.month,t=e.day,n=e.year;if(t===null){throw new Error("No day provided")}var o={month:r,day:t,year:n};var i=getNumDaysInMonth(r,n);o.day=t+a;if(o.day>i){o.day-=i;o.month+=1}if(o.month>12){o.month=1;o.year+=1}return o};var getPreviousMonth=function(e){var a=e.month===1?12:e.month-1;var r=e.month===1?e.year-1:e.year;var t=getNumDaysInMonth(a,r);var n=t<e.day?t:e.day;return{month:a,year:r,day:n}};var getNextMonth=function(e){var a=e.month===12?1:e.month+1;var r=e.month===12?e.year+1:e.year;var t=getNumDaysInMonth(a,r);var n=t<e.day?t:e.day;return{month:a,year:r,day:n}};var changeYear=function(e,a){var r=e.month;var t=e.year+a;var n=getNumDaysInMonth(r,t);var o=n<e.day?n:e.day;return{month:r,year:t,day:o}};var getPreviousYear=function(e){return changeYear(e,-1)};var getNextYear=function(e){return changeYear(e,1)};var getInternalHourValue=function(e,a,r){if(a){return e}return convert12HourTo24Hour(e,r)};var calculateHourFromAMPM=function(e,a){var r=e.ampm,t=e.hour;var n=t;if(r==="am"&&a==="pm"){n=convert12HourTo24Hour(n,"pm")}else if(r==="pm"&&a==="am"){n=Math.abs(n-12)}return n};var validateParts=function(e,a,r){var t=e.month,n=e.day,o=e.year;var i=clampDate(Object.assign({},e),a,r);var u=getNumDaysInMonth(t,o);if(n!==null&&u<n){i.day=u}if(a!==undefined&&isSameDay(i,a)){if(i.hour!==undefined&&a.hour!==undefined){if(i.hour<a.hour){i.hour=a.hour;i.minute=a.minute}else if(i.hour===a.hour&&i.minute!==undefined&&a.minute!==undefined&&i.minute<a.minute){i.minute=a.minute}}}if(r!==undefined&&isSameDay(e,r)){if(i.hour!==undefined&&r.hour!==undefined){if(i.hour>r.hour){i.hour=r.hour;i.minute=r.minute}else if(i.hour===r.hour&&i.minute!==undefined&&r.minute!==undefined&&i.minute>r.minute){i.minute=r.minute}}}return i};var getClosestValidDate=function(e,a,r,t,n,o){var i=e.hour,u=e.minute,d=e.day,f=e.month,m=e.year;var s=Object.assign(Object.assign({},e),{dayOfWeek:undefined});if(a!==undefined){s.month=findClosestValue(f,a)}if(d!==null&&r!==undefined){s.day=findClosestValue(d,r)}if(t!==undefined){s.year=findClosestValue(m,t)}if(i!==undefined&&n!==undefined){s.hour=findClosestValue(i,n);s.ampm=parseAmPm(s.hour)}if(u!==undefined&&o!==undefined){s.minute=findClosestValue(u,o)}return s};var findClosestValue=function(e,a){var r=a[0];var t=Math.abs(r-e);for(var n=1;n<a.length;n++){var o=a[n];var i=Math.abs(o-e);if(i<t){r=o;t=i}}return r};var getFormattedDayPeriod=function(e){if(e===undefined){return""}return e.toUpperCase()};var getLocalizedTime=function(e,a,r){var t={hour:a.hour,minute:a.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:r?"h23":"h12"}).format(new Date(convertDataToISO(Object.assign({year:2023,day:1,month:1},t))+"Z"))};var addTimePadding=function(e){var a=e.toString();if(a.length>1){return a}return"0".concat(a)};var getFormattedHour=function(e,a){if(a){return addTimePadding(e)}if(e===0){return"12"}return e.toString()};var generateDayAriaLabel=function(e,a,r){if(r.day===null){return null}var t=getNormalizedDate(r);var n=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(t);return a?"Today, ".concat(n):n};var getMonthAndDay=function(e,a){var r=getNormalizedDate(a);return new Intl.DateTimeFormat(e,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(r)};var getMonthAndYear=function(e,a){var r=getNormalizedDate(a);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(r)};var getMonthDayAndYear=function(e,a){return getLocalizedDateTime(e,a,{month:"short",day:"numeric",year:"numeric"})};var getDay=function(e,a){return getLocalizedDateTimeParts(e,a,{day:"numeric"}).find((function(e){return e.type==="day"})).value};var getYear=function(e,a){return getLocalizedDateTime(e,a,{year:"numeric"})};var getNormalizedDate=function(e){var a,r,t;var n=e.hour!==undefined&&e.minute!==undefined?" ".concat(e.hour,":").concat(e.minute):"";return new Date("".concat((a=e.month)!==null&&a!==void 0?a:1,"/").concat((r=e.day)!==null&&r!==void 0?r:1,"/").concat((t=e.year)!==null&&t!==void 0?t:2023).concat(n," GMT+0000"))};var getLocalizedDateTime=function(e,a,r){var t=getNormalizedDate(a);return getDateTimeFormat(e,r).format(t)};var getLocalizedDateTimeParts=function(e,a,r){var t=getNormalizedDate(a);return getDateTimeFormat(e,r).formatToParts(t)};var getDateTimeFormat=function(e,a){return new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"}))};var getTodayLabel=function(e){if("RelativeTimeFormat"in Intl){var a=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return a.charAt(0).toUpperCase()+a.slice(1)}else{return"Today"}};var removeDateTzOffset=function(e){var a=e.getTimezoneOffset();e.setMinutes(e.getMinutes()-a);return e};var DATE_AM=removeDateTzOffset(new Date("2022T01:00"));var DATE_PM=removeDateTzOffset(new Date("2022T13:00"));var getLocalizedDayPeriod=function(e,a){var r=a==="am"?DATE_AM:DATE_PM;var t=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(r).find((function(e){return e.type==="dayPeriod"}));if(t){return t.value}return getFormattedDayPeriod(a)};var formatValue=function(e){return Array.isArray(e)?e.join(","):e};var getToday=function(){return removeDateTzOffset(new Date).toISOString()};var minutes=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var hour12=[0,1,2,3,4,5,6,7,8,9,10,11];var hour23=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var getDaysOfWeek=function(e,a,r){if(r===void 0){r=0}var t=a==="ios"?"short":"narrow";var n=new Intl.DateTimeFormat(e,{weekday:t});var o=new Date("11/01/2020");var i=[];for(var u=r;u<r+7;u++){var d=new Date(o);d.setDate(d.getDate()+u);i.push(n.format(d))}return i};var getDaysOfMonth=function(e,a,r){var t=getNumDaysInMonth(e,a);var n=new Date("".concat(e,"/1/").concat(a)).getDay();var o=n>=r?n-(r+1):6-(r-n);var i=[];for(var u=1;u<=t;u++){i.push({day:u,dayOfWeek:(o+u)%7})}for(var u=0;u<=o;u++){i=__spreadArray([{day:null,dayOfWeek:null}],i,true)}return i};var generateTime=function(e,a,r,t,n,o){if(a===void 0){a="h12"}var i=a==="h23";var u=i?hour23:hour12;var d=minutes;var f=true;var m=true;if(n){u=u.filter((function(e){return n.includes(e)}))}if(o){d=d.filter((function(e){return o.includes(e)}))}if(r){if(isSameDay(e,r)){if(r.hour!==undefined){u=u.filter((function(a){var t=e.ampm==="pm"?(a+12)%24:a;return(i?a:t)>=r.hour}));f=r.hour<13}if(r.minute!==undefined){var s=false;if(r.hour!==undefined&&e.hour!==undefined){if(e.hour>r.hour){s=true}}d=d.filter((function(e){if(s){return true}return e>=r.minute}))}}else if(isBefore(e,r)){u=[];d=[];f=m=false}}if(t){if(isSameDay(e,t)){if(t.hour!==undefined){u=u.filter((function(a){var r=e.ampm==="pm"?(a+12)%24:a;return(i?a:r)<=t.hour}));m=t.hour>=12}if(t.minute!==undefined&&e.hour===t.hour){d=d.filter((function(e){return e<=t.minute}))}}else if(isAfter(e,t)){u=[];d=[];f=m=false}}return{hours:u,minutes:d,am:f,pm:m}};var generateMonths=function(e){return[getPreviousMonth(e),{month:e.month,year:e.year,day:e.day},getNextMonth(e)]};var getMonthColumnData=function(e,a,r,t,n,o){if(o===void 0){o={month:"long"}}var i=a.year;var u=[];if(n!==undefined){var d=n;if((t===null||t===void 0?void 0:t.month)!==undefined){d=d.filter((function(e){return e<=t.month}))}if((r===null||r===void 0?void 0:r.month)!==undefined){d=d.filter((function(e){return e>=r.month}))}d.forEach((function(a){var r=new Date("".concat(a,"/1/").concat(i," GMT+0000"));var t=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(r);u.push({text:t,value:a})}))}else{var f=t&&t.year===i?t.month:12;var m=r&&r.year===i?r.month:1;for(var s=m;s<=f;s++){var v=new Date("".concat(s,"/1/").concat(i," GMT+0000"));var l=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(v);u.push({text:l,value:s})}}return u};var getDayColumnData=function(e,a,r,t,n,o){if(o===void 0){o={day:"numeric"}}var i=a.month,u=a.year;var d=[];var f=getNumDaysInMonth(i,u);var m=(t===null||t===void 0?void 0:t.day)!==null&&(t===null||t===void 0?void 0:t.day)!==undefined&&t.year===u&&t.month===i?t.day:f;var s=(r===null||r===void 0?void 0:r.day)!==null&&(r===null||r===void 0?void 0:r.day)!==undefined&&r.year===u&&r.month===i?r.day:1;if(n!==undefined){var v=n;v=v.filter((function(e){return e>=s&&e<=m}));v.forEach((function(a){var r=new Date("".concat(i,"/").concat(a,"/").concat(u," GMT+0000"));var t=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(r);d.push({text:t,value:a})}))}else{for(var l=s;l<=m;l++){var y=new Date("".concat(i,"/").concat(l,"/").concat(u," GMT+0000"));var c=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},o),{timeZone:"UTC"})).format(y);d.push({text:c,value:l})}}return d};var getYearColumnData=function(e,a,r,t,n){var o,i;var u=[];if(n!==undefined){u=n;if((t===null||t===void 0?void 0:t.year)!==undefined){u=u.filter((function(e){return e<=t.year}))}if((r===null||r===void 0?void 0:r.year)!==undefined){u=u.filter((function(e){return e>=r.year}))}}else{var d=a.year;var f=(o=t===null||t===void 0?void 0:t.year)!==null&&o!==void 0?o:d;var m=(i=r===null||r===void 0?void 0:r.year)!==null&&i!==void 0?i:d-100;for(var s=m;s<=f;s++){u.push(s)}}return u.map((function(r){return{text:getYear(e,{year:r,month:a.month,day:a.day}),value:r}}))};var getAllMonthsInRange=function(e,a){if(e.month===a.month&&e.year===a.year){return[e]}return __spreadArray([e],getAllMonthsInRange(getNextMonth(e),a),true)};var getCombinedDateColumnData=function(e,a,r,t,n,o){var i=[];var u=[];var d=getAllMonthsInRange(r,t);if(o){d=d.filter((function(e){var a=e.month;return o.includes(a)}))}d.forEach((function(o){var d={month:o.month,day:null,year:o.year};var f=getDayColumnData(e,d,r,t,n,{month:"short",day:"numeric",weekday:"short"});var m=[];var s=[];f.forEach((function(r){var t=isSameDay(Object.assign(Object.assign({},d),{day:r.value}),a);s.push({text:t?getTodayLabel(e):r.text,value:"".concat(d.year,"-").concat(d.month,"-").concat(r.value)});m.push({month:d.month,year:d.year,day:r.value})}));u=__spreadArray(__spreadArray([],u,true),m,true);i=__spreadArray(__spreadArray([],i,true),s,true)}));return{parts:u,items:i}};var getTimeColumnsData=function(e,a,r,t,n,o,i){var u=is24Hour(e,r);var d=generateTime(a,u?"h23":"h12",t,n,o,i),f=d.hours,m=d.minutes,s=d.am,v=d.pm;var l=f.map((function(e){return{text:getFormattedHour(e,u),value:getInternalHourValue(e,u,a.ampm)}}));var y=m.map((function(e){return{text:addTimePadding(e),value:e}}));var c=[];if(s&&!u){c.push({text:getLocalizedDayPeriod(e,"am"),value:"am"})}if(v&&!u){c.push({text:getLocalizedDayPeriod(e,"pm"),value:"pm"})}return{minutesData:y,hoursData:l,dayPeriodData:c}};export{getDayColumnData as A,getYearColumnData as B,isMonthFirstLocale as C,getTimeColumnsData as D,isLocaleDayPeriodRTL as E,getDaysOfWeek as F,getMonthAndYear as G,getDaysOfMonth as H,generateMonths as I,is24Hour as J,getLocalizedTime as K,getMonthAndDay as L,formatValue as M,getNextYear as N,getPreviousYear as O,clampDate as P,parseAmPm as Q,calculateHourFromAMPM as R,getLocalizedDateTime as S,getMonthDayAndYear as T,getDay as a,isAfter as b,isSameDay as c,getPreviousMonth as d,getNextMonth as e,getPartsFromCalendarDay as f,generateDayAriaLabel as g,getEndOfWeek as h,isBefore as i,getStartOfWeek as j,getPreviousDay as k,getNextDay as l,getPreviousWeek as m,getNextWeek as n,parseMaxParts as o,parseMinParts as p,parseDate as q,convertToArrayOfNumbers as r,convertDataToISO as s,getToday as t,getClosestValidDate as u,validateParts as v,warnIfValueOutOfBounds as w,getNumDaysInMonth as x,getCombinedDateColumnData as y,getMonthColumnData as z};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{__awaiter,__generator}from"tslib";
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{c as componentOnReady}from"./helpers-3379ba19.js";var attachComponent=function(e,n,t,r,o,i){return __awaiter(void 0,void 0,void 0,(function(){var a,c;return __generator(this,(function(s){switch(s.label){case 0:if(e){return[2,e.attachViewToDom(n,t,o,r)]}if(!i&&typeof t!=="string"&&!(t instanceof HTMLElement)){throw new Error("framework delegate is missing")}c=typeof t==="string"?(a=n.ownerDocument)===null||a===void 0?void 0:a.createElement(t):t;if(r){r.forEach((function(e){return c.classList.add(e)}))}if(o){Object.assign(c,o)}n.appendChild(c);return[4,new Promise((function(e){return componentOnReady(c,e)}))];case 1:s.sent();return[2,c]}}))}))};var detachComponent=function(e,n){if(n){if(e){var t=n.parentElement;return e.removeViewFromDom(t,n)}n.remove()}return Promise.resolve()};var CoreDelegate=function(){var e;var n;var t=function(t,r,o,i){if(o===void 0){o={}}if(i===void 0){i=[]}return __awaiter(void 0,void 0,void 0,(function(){var a,c,s,d,u,l;return __generator(this,(function(m){switch(m.label){case 0:e=t;if(!r)return[3,2];s=typeof r==="string"?(a=e.ownerDocument)===null||a===void 0?void 0:a.createElement(r):r;i.forEach((function(e){return s.classList.add(e)}));Object.assign(s,o);e.appendChild(s);return[4,new Promise((function(e){return componentOnReady(s,e)}))];case 1:m.sent();return[3,3];case 2:if(e.children.length>0&&(e.tagName==="ION-MODAL"||e.tagName==="ION-POPOVER")){d=e.children[0];if(!d.classList.contains("ion-delegate-host")){u=(c=e.ownerDocument)===null||c===void 0?void 0:c.createElement("div");u.classList.add("ion-delegate-host");i.forEach((function(e){return u.classList.add(e)}));u.append.apply(u,e.children);e.appendChild(u)}}m.label=3;case 3:l=document.querySelector("ion-app")||document.body;n=document.createComment("ionic teleport");e.parentNode.insertBefore(n,e);l.appendChild(e);return[2,e]}}))}))};var r=function(){if(e&&n){n.parentNode.insertBefore(e,n);n.remove()}return Promise.resolve()};return{attachViewToDom:t,removeViewFromDom:r}};export{CoreDelegate as C,attachComponent as a,detachComponent as d};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,a=n.length,u;t<a;t++){if(u||!(t in n)){if(!u)u=Array.prototype.slice.call(n,0,t);u[t]=n[t]}}return r.concat(u||Array.prototype.slice.call(n))};
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-479cdbf8.system.js"],(function(r){"use strict";var n;return{setters:[function(r){n=r.p}],execute:function(){r({q:l,s:b});var e=r("c",(function(r,n){return r.month===n.month&&r.day===n.day&&r.year===n.year}));var t=r("i",(function(r,n){return!!(r.year<n.year||r.year===n.year&&r.month<n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day<n.day)}));var a=r("b",(function(r,n){return!!(r.year>n.year||r.year===n.year&&r.month>n.month||r.year===n.year&&r.month===n.month&&r.day!==null&&r.day>n.day)}));var u=r("w",(function(r,e,u){var i=Array.isArray(r)?r:[r];for(var o=0,f=i;o<f.length;o++){var d=f[o];if(e!==undefined&&t(d,e)||u!==undefined&&a(d,u)){n("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(e),"\n")+"Max: ".concat(JSON.stringify(u),"\n")+"Value: ".concat(JSON.stringify(r)));break}}}));var i=function(r){return r%4===0&&r%100!==0||r%400===0};var o=r("J",(function(r,n){if(n!==undefined){return n==="h23"}var e=new Intl.DateTimeFormat(r,{hour:"numeric"});var t=e.resolvedOptions();if(t.hourCycle!==undefined){return t.hourCycle==="h23"}var a=new Date("5/18/2021 00:00");var u=e.formatToParts(a);var i=u.find((function(r){return r.type==="hour"}));if(!i){throw new Error("Hour value not found from DateTimeFormat")}return i.value==="00"}));var f=r("x",(function(r,n){return r===4||r===6||r===9||r===11?30:r===2?i(n)?29:28:31}));var d=r("C",(function(r,n){if(n===void 0){n={month:"numeric",year:"numeric"}}var e=new Intl.DateTimeFormat(r,n).formatToParts(new Date);return e[0].type==="month"}));var v=r("E",(function(r){var n=new Intl.DateTimeFormat(r,{hour:"numeric"}).formatToParts(new Date);return n[0].type==="dayPeriod"}));var m=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var c=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var y=r("r",(function(r){if(r===undefined){return}var n=r;if(typeof r==="string"){n=r.replace(/\[|\]|\s/g,"").split(",")}var e;if(Array.isArray(n)){e=n.map((function(r){return parseInt(r,10)})).filter(isFinite)}else{e=[n]}return e}));var h=r("f",(function(r){return{month:parseInt(r.getAttribute("data-month"),10),day:parseInt(r.getAttribute("data-day"),10),year:parseInt(r.getAttribute("data-year"),10),dayOfWeek:parseInt(r.getAttribute("data-day-of-week"),10)}}));function l(r){if(Array.isArray(r)){return r.map((function(r){return l(r)}))}var n=null;if(r!=null&&r!==""){n=c.exec(r);if(n){n.unshift(undefined,undefined);n[2]=n[3]=undefined}else{n=m.exec(r)}}if(n===null){return undefined}for(var e=1;e<8;e++){n[e]=n[e]!==undefined?parseInt(n[e],10):undefined}return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}var s=r("P",(function(r,n,e){if(n&&t(r,n)){return n}else if(e&&a(r,e)){return e}return r}));var p=r("Q",(function(r){return r>=12?"pm":"am"}));var w=r("o",(function(r,n){var e=l(r),t=e.month,a=e.day,u=e.year,i=e.hour,o=e.minute;var d=u!==null&&u!==void 0?u:n.year;var v=t!==null&&t!==void 0?t:12;return{month:v,day:a!==null&&a!==void 0?a:f(v,d),year:d,hour:i!==null&&i!==void 0?i:23,minute:o!==null&&o!==void 0?o:59}}));var T=r("p",(function(r,n){var e=l(r),t=e.month,a=e.day,u=e.year,i=e.hour,o=e.minute;return{month:t!==null&&t!==void 0?t:1,day:a!==null&&a!==void 0?a:1,year:u!==null&&u!==void 0?u:n.year,hour:i!==null&&i!==void 0?i:0,minute:o!==null&&o!==void 0?o:0}}));var g=function(r){return("0"+(r!==undefined?Math.abs(r):"0")).slice(-2)};var D=function(r){return("000"+(r!==undefined?Math.abs(r):"0")).slice(-4)};function b(r){if(Array.isArray(r)){return r.map((function(r){return b(r)}))}var n="";if(r.year!==undefined){n=D(r.year);if(r.month!==undefined){n+="-"+g(r.month);if(r.day!==undefined){n+="-"+g(r.day);if(r.hour!==undefined){n+="T".concat(g(r.hour),":").concat(g(r.minute),":00")}}}}else if(r.hour!==undefined){n=g(r.hour)+":"+g(r.minute)}return n}var O=function(r,n){if(n===undefined){return r}if(n==="am"){if(r===12){return 0}return r}if(r===12){return 12}return r+12};var A=r("j",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return _(r,n)}));var I=r("h",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return k(r,6-n)}));var j=r("l",(function(r){return k(r,1)}));var F=r("k",(function(r){return _(r,1)}));var x=r("m",(function(r){return _(r,7)}));var C=r("n",(function(r){return k(r,7)}));var _=function(r,n){var e=r.month,t=r.day,a=r.year;if(t===null){throw new Error("No day provided")}var u={month:e,day:t,year:a};u.day=t-n;if(u.day<1){u.month-=1}if(u.month<1){u.month=12;u.year-=1}if(u.day<1){var i=f(u.month,u.year);u.day=i+u.day}return u};var k=function(r,n){var e=r.month,t=r.day,a=r.year;if(t===null){throw new Error("No day provided")}var u={month:e,day:t,year:a};var i=f(e,a);u.day=t+n;if(u.day>i){u.day-=i;u.month+=1}if(u.month>12){u.month=1;u.year+=1}return u};var M=r("d",(function(r){var n=r.month===1?12:r.month-1;var e=r.month===1?r.year-1:r.year;var t=f(n,e);var a=t<r.day?t:r.day;return{month:n,year:e,day:a}}));var Z=r("e",(function(r){var n=r.month===12?1:r.month+1;var e=r.month===12?r.year+1:r.year;var t=f(n,e);var a=t<r.day?t:r.day;return{month:n,year:e,day:a}}));var U=function(r,n){var e=r.month;var t=r.year+n;var a=f(e,t);var u=a<r.day?a:r.day;return{month:e,year:t,day:u}};var E=r("O",(function(r){return U(r,-1)}));var P=r("N",(function(r){return U(r,1)}));var S=function(r,n,e){if(n){return r}return O(r,e)};var N=r("R",(function(r,n){var e=r.ampm,t=r.hour;var a=t;if(e==="am"&&n==="pm"){a=O(a,"pm")}else if(e==="pm"&&n==="am"){a=Math.abs(a-12)}return a}));var G=r("v",(function(r,n,t){var a=r.month,u=r.day,i=r.year;var o=s(Object.assign({},r),n,t);var d=f(a,i);if(u!==null&&d<u){o.day=d}if(n!==undefined&&e(o,n)){if(o.hour!==undefined&&n.hour!==undefined){if(o.hour<n.hour){o.hour=n.hour;o.minute=n.minute}else if(o.hour===n.hour&&o.minute!==undefined&&n.minute!==undefined&&o.minute<n.minute){o.minute=n.minute}}}if(t!==undefined&&e(r,t)){if(o.hour!==undefined&&t.hour!==undefined){if(o.hour>t.hour){o.hour=t.hour;o.minute=t.minute}else if(o.hour===t.hour&&o.minute!==undefined&&t.minute!==undefined&&o.minute>t.minute){o.minute=t.minute}}}return o}));var W=r("u",(function(r,n,e,t,a,u){var i=r.hour,o=r.minute,f=r.day,d=r.month,v=r.year;var m=Object.assign(Object.assign({},r),{dayOfWeek:undefined});if(n!==undefined){m.month=J(d,n)}if(f!==null&&e!==undefined){m.day=J(f,e)}if(t!==undefined){m.year=J(v,t)}if(i!==undefined&&a!==undefined){m.hour=J(i,a);m.ampm=p(m.hour)}if(o!==undefined&&u!==undefined){m.minute=J(o,u)}return m}));var J=function(r,n){var e=n[0];var t=Math.abs(e-r);for(var a=1;a<n.length;a++){var u=n[a];var i=Math.abs(u-r);if(i<t){e=u;t=i}}return e};var R=function(r){if(r===undefined){return""}return r.toUpperCase()};var z=r("K",(function(r,n,e){var t={hour:n.hour,minute:n.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(r,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:e?"h23":"h12"}).format(new Date(b(Object.assign({year:2023,day:1,month:1},t))+"Z"))}));var H=function(r){var n=r.toString();if(n.length>1){return n}return"0".concat(n)};var $=function(r,n){if(n){return H(r)}if(r===0){return"12"}return r.toString()};var q=r("g",(function(r,n,e){if(e.day===null){return null}var t=X(e);var a=new Intl.DateTimeFormat(r,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(t);return n?"Today, ".concat(a):a}));var B=r("L",(function(r,n){var e=X(n);return new Intl.DateTimeFormat(r,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(e)}));var K=r("G",(function(r,n){var e=X(n);return new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(e)}));var L=r("T",(function(r,n){return Y(r,n,{month:"short",day:"numeric",year:"numeric"})}));var Q=r("a",(function(r,n){return rr(r,n,{day:"numeric"}).find((function(r){return r.type==="day"})).value}));var V=function(r,n){return Y(r,n,{year:"numeric"})};var X=function(r){var n,e,t;var a=r.hour!==undefined&&r.minute!==undefined?" ".concat(r.hour,":").concat(r.minute):"";return new Date("".concat((n=r.month)!==null&&n!==void 0?n:1,"/").concat((e=r.day)!==null&&e!==void 0?e:1,"/").concat((t=r.year)!==null&&t!==void 0?t:2023).concat(a," GMT+0000"))};var Y=r("S",(function(r,n,e){var t=X(n);return nr(r,e).format(t)}));var rr=function(r,n,e){var t=X(n);return nr(r,e).formatToParts(t)};var nr=function(r,n){return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},n),{timeZone:"UTC"}))};var er=function(r){if("RelativeTimeFormat"in Intl){var n=new Intl.RelativeTimeFormat(r,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}else{return"Today"}};var tr=function(r){var n=r.getTimezoneOffset();r.setMinutes(r.getMinutes()-n);return r};var ar=tr(new Date("2022T01:00"));var ur=tr(new Date("2022T13:00"));var ir=function(r,n){var e=n==="am"?ar:ur;var t=new Intl.DateTimeFormat(r,{hour:"numeric",timeZone:"UTC"}).formatToParts(e).find((function(r){return r.type==="dayPeriod"}));if(t){return t.value}return R(n)};var or=r("M",(function(r){return Array.isArray(r)?r.join(","):r}));var fr=r("t",(function(){return tr(new Date).toISOString()}));var dr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59];var vr=[0,1,2,3,4,5,6,7,8,9,10,11];var mr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23];var cr=r("F",(function(r,n,e){if(e===void 0){e=0}var t=n==="ios"?"short":"narrow";var a=new Intl.DateTimeFormat(r,{weekday:t});var u=new Date("11/01/2020");var i=[];for(var o=e;o<e+7;o++){var f=new Date(u);f.setDate(f.getDate()+o);i.push(a.format(f))}return i}));var yr=r("H",(function(r,n,e){var t=f(r,n);var a=new Date("".concat(r,"/1/").concat(n)).getDay();var u=a>=e?a-(e+1):6-(e-a);var i=[];for(var o=1;o<=t;o++){i.push({day:o,dayOfWeek:(u+o)%7})}for(var o=0;o<=u;o++){i=__spreadArray([{day:null,dayOfWeek:null}],i,true)}return i}));var hr=function(r,n,u,i,o,f){if(n===void 0){n="h12"}var d=n==="h23";var v=d?mr:vr;var m=dr;var c=true;var y=true;if(o){v=v.filter((function(r){return o.includes(r)}))}if(f){m=m.filter((function(r){return f.includes(r)}))}if(u){if(e(r,u)){if(u.hour!==undefined){v=v.filter((function(n){var e=r.ampm==="pm"?(n+12)%24:n;return(d?n:e)>=u.hour}));c=u.hour<13}if(u.minute!==undefined){var h=false;if(u.hour!==undefined&&r.hour!==undefined){if(r.hour>u.hour){h=true}}m=m.filter((function(r){if(h){return true}return r>=u.minute}))}}else if(t(r,u)){v=[];m=[];c=y=false}}if(i){if(e(r,i)){if(i.hour!==undefined){v=v.filter((function(n){var e=r.ampm==="pm"?(n+12)%24:n;return(d?n:e)<=i.hour}));y=i.hour>=12}if(i.minute!==undefined&&r.hour===i.hour){m=m.filter((function(r){return r<=i.minute}))}}else if(a(r,i)){v=[];m=[];c=y=false}}return{hours:v,minutes:m,am:c,pm:y}};var lr=r("I",(function(r){return[M(r),{month:r.month,year:r.year,day:r.day},Z(r)]}));var sr=r("z",(function(r,n,e,t,a,u){if(u===void 0){u={month:"long"}}var i=n.year;var o=[];if(a!==undefined){var f=a;if((t===null||t===void 0?void 0:t.month)!==undefined){f=f.filter((function(r){return r<=t.month}))}if((e===null||e===void 0?void 0:e.month)!==undefined){f=f.filter((function(r){return r>=e.month}))}f.forEach((function(n){var e=new Date("".concat(n,"/1/").concat(i," GMT+0000"));var t=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},u),{timeZone:"UTC"})).format(e);o.push({text:t,value:n})}))}else{var d=t&&t.year===i?t.month:12;var v=e&&e.year===i?e.month:1;for(var m=v;m<=d;m++){var c=new Date("".concat(m,"/1/").concat(i," GMT+0000"));var y=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},u),{timeZone:"UTC"})).format(c);o.push({text:y,value:m})}}return o}));var pr=r("A",(function(r,n,e,t,a,u){if(u===void 0){u={day:"numeric"}}var i=n.month,o=n.year;var d=[];var v=f(i,o);var m=(t===null||t===void 0?void 0:t.day)!==null&&(t===null||t===void 0?void 0:t.day)!==undefined&&t.year===o&&t.month===i?t.day:v;var c=(e===null||e===void 0?void 0:e.day)!==null&&(e===null||e===void 0?void 0:e.day)!==undefined&&e.year===o&&e.month===i?e.day:1;if(a!==undefined){var y=a;y=y.filter((function(r){return r>=c&&r<=m}));y.forEach((function(n){var e=new Date("".concat(i,"/").concat(n,"/").concat(o," GMT+0000"));var t=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},u),{timeZone:"UTC"})).format(e);d.push({text:t,value:n})}))}else{for(var h=c;h<=m;h++){var l=new Date("".concat(i,"/").concat(h,"/").concat(o," GMT+0000"));var s=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},u),{timeZone:"UTC"})).format(l);d.push({text:s,value:h})}}return d}));var wr=r("B",(function(r,n,e,t,a){var u,i;var o=[];if(a!==undefined){o=a;if((t===null||t===void 0?void 0:t.year)!==undefined){o=o.filter((function(r){return r<=t.year}))}if((e===null||e===void 0?void 0:e.year)!==undefined){o=o.filter((function(r){return r>=e.year}))}}else{var f=n.year;var d=(u=t===null||t===void 0?void 0:t.year)!==null&&u!==void 0?u:f;var v=(i=e===null||e===void 0?void 0:e.year)!==null&&i!==void 0?i:f-100;for(var m=v;m<=d;m++){o.push(m)}}return o.map((function(e){return{text:V(r,{year:e,month:n.month,day:n.day}),value:e}}))}));var Tr=function(r,n){if(r.month===n.month&&r.year===n.year){return[r]}return __spreadArray([r],Tr(Z(r),n),true)};var gr=r("y",(function(r,n,t,a,u,i){var o=[];var f=[];var d=Tr(t,a);if(i){d=d.filter((function(r){var n=r.month;return i.includes(n)}))}d.forEach((function(i){var d={month:i.month,day:null,year:i.year};var v=pr(r,d,t,a,u,{month:"short",day:"numeric",weekday:"short"});var m=[];var c=[];v.forEach((function(t){var a=e(Object.assign(Object.assign({},d),{day:t.value}),n);c.push({text:a?er(r):t.text,value:"".concat(d.year,"-").concat(d.month,"-").concat(t.value)});m.push({month:d.month,year:d.year,day:t.value})}));f=__spreadArray(__spreadArray([],f,true),m,true);o=__spreadArray(__spreadArray([],o,true),c,true)}));return{parts:f,items:o}}));var Dr=r("D",(function(r,n,e,t,a,u,i){var f=o(r,e);var d=hr(n,f?"h23":"h12",t,a,u,i),v=d.hours,m=d.minutes,c=d.am,y=d.pm;var h=v.map((function(r){return{text:$(r,f),value:S(r,f,n.ampm)}}));var l=m.map((function(r){return{text:H(r),value:r}}));var s=[];if(c&&!f){s.push({text:ir(r,"am"),value:"am"})}if(y&&!f){s.push({text:ir(r,"pm"),value:"pm"})}return{minutesData:l,hoursData:h,dayPeriodData:s}}))}}}));
|
package/dist/ionic/p-a2d804ae.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{p as e}from"./p-1b8e1d03.js";const n=(e,n)=>e.month===n.month&&e.day===n.day&&e.year===n.year,t=(e,n)=>!!(e.year<n.year||e.year===n.year&&e.month<n.month||e.year===n.year&&e.month===n.month&&null!==e.day&&e.day<n.day),o=(e,n)=>!!(e.year>n.year||e.year===n.year&&e.month>n.month||e.year===n.year&&e.month===n.month&&null!==e.day&&e.day>n.day),r=(n,r,a)=>{const d=Array.isArray(n)?n:[n];for(const i of d)if(void 0!==r&&t(i,r)||void 0!==a&&o(i,a)){e(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(r)}\nMax: ${JSON.stringify(a)}\nValue: ${JSON.stringify(n)}`);break}},a=(e,n)=>{if(void 0!==n)return"h23"===n;const t=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=t.resolvedOptions();if(void 0!==o.hourCycle)return"h23"===o.hourCycle;const r=new Date("5/18/2021 00:00"),a=t.formatToParts(r).find((e=>"hour"===e.type));if(!a)throw new Error("Hour value not found from DateTimeFormat");return"00"===a.value},d=(e,n)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(n)?29:28:31,i=(e,n={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,n).formatToParts(new Date)[0].type,u=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,l=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,s=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,m=e=>{if(void 0===e)return;let n,t=e;return"string"==typeof e&&(t=e.replace(/\[|\]|\s/g,"").split(",")),n=Array.isArray(t)?t.map((e=>parseInt(e,10))).filter(isFinite):[t],n},v=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function y(e){if(Array.isArray(e))return e.map((e=>y(e)));let n=null;if(null!=e&&""!==e&&(n=s.exec(e),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=l.exec(e)),null!==n){for(let e=1;e<8;e++)n[e]=void 0!==n[e]?parseInt(n[e],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}}const c=(e,n,r)=>n&&t(e,n)?n:r&&o(e,r)?r:e,h=e=>e>=12?"pm":"am",w=(e,n)=>{const{month:t,day:o,year:r,hour:a,minute:i}=y(e),u=null!=r?r:n.year,l=null!=t?t:12;return{month:l,day:null!=o?o:d(l,u),year:u,hour:null!=a?a:23,minute:null!=i?i:59}},f=(e,n)=>{const{month:t,day:o,year:r,hour:a,minute:d}=y(e);return{month:null!=t?t:1,day:null!=o?o:1,year:null!=r?r:n.year,hour:null!=a?a:0,minute:null!=d?d:0}},p=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2);function $(e){if(Array.isArray(e))return e.map((e=>$(e)));let n="";var t;return void 0!==e.year?(n=("000"+(void 0!==(t=e.year)?Math.abs(t):"0")).slice(-4),void 0!==e.month&&(n+="-"+p(e.month),void 0!==e.day&&(n+="-"+p(e.day),void 0!==e.hour&&(n+=`T${p(e.hour)}:${p(e.minute)}:00`)))):void 0!==e.hour&&(n=p(e.hour)+":"+p(e.minute)),n}const O=(e,n)=>void 0===n?e:"am"===n?12===e?0:e:12===e?12:e+12,T=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return x(e,n)},I=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return M(e,6-n)},b=e=>M(e,1),D=e=>x(e,1),j=e=>x(e,7),k=e=>M(e,7),x=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:t,day:o,year:r};if(a.day=o-n,a.day<1&&(a.month-=1),a.month<1&&(a.month=12,a.year-=1),a.day<1){const e=d(a.month,a.year);a.day=e+a.day}return a},M=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const a={month:t,day:o,year:r},i=d(t,r);return a.day=o+n,a.day>i&&(a.day-=i,a.month+=1),a.month>12&&(a.month=1,a.year+=1),a},Z=e=>{const n=1===e.month?12:e.month-1,t=1===e.month?e.year-1:e.year,o=d(n,t);return{month:n,year:t,day:o<e.day?o:e.day}},C=e=>{const n=12===e.month?1:e.month+1,t=12===e.month?e.year+1:e.year,o=d(n,t);return{month:n,year:t,day:o<e.day?o:e.day}},U=(e,n)=>{const t=e.month,o=e.year+n,r=d(t,o);return{month:t,year:o,day:r<e.day?r:e.day}},N=e=>U(e,-1),g=e=>U(e,1),A=(e,n,t)=>n?e:O(e,t),E=(e,n)=>{const{ampm:t,hour:o}=e;let r=o;return"am"===t&&"pm"===n?r=O(r,"pm"):"pm"===t&&"am"===n&&(r=Math.abs(r-12)),r},G=(e,t,o)=>{const{month:r,day:a,year:i}=e,u=c(Object.assign({},e),t,o),l=d(r,i);return null!==a&&l<a&&(u.day=l),void 0!==t&&n(u,t)&&void 0!==u.hour&&void 0!==t.hour&&(u.hour<t.hour?(u.hour=t.hour,u.minute=t.minute):u.hour===t.hour&&void 0!==u.minute&&void 0!==t.minute&&u.minute<t.minute&&(u.minute=t.minute)),void 0!==o&&n(e,o)&&void 0!==u.hour&&void 0!==o.hour&&(u.hour>o.hour?(u.hour=o.hour,u.minute=o.minute):u.hour===o.hour&&void 0!==u.minute&&void 0!==o.minute&&u.minute>o.minute&&(u.minute=o.minute)),u},W=(e,n,t,o,r,a)=>{const{hour:d,minute:i,day:u,month:l,year:s}=e,m=Object.assign(Object.assign({},e),{dayOfWeek:void 0});return void 0!==n&&(m.month=F(l,n)),null!==u&&void 0!==t&&(m.day=F(u,t)),void 0!==o&&(m.year=F(s,o)),void 0!==d&&void 0!==r&&(m.hour=F(d,r),m.ampm=h(m.hour)),void 0!==i&&void 0!==a&&(m.minute=F(i,a)),m},F=(e,n)=>{let t=n[0],o=Math.abs(t-e);for(let r=1;r<n.length;r++){const a=n[r],d=Math.abs(a-e);d<o&&(t=a,o=d)}return t},J=(e,n,t)=>{const o={hour:n.hour,minute:n.minute};return void 0===o.hour||void 0===o.minute?"Invalid Time":new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:t?"h23":"h12"}).format(new Date($(Object.assign({year:2023,day:1,month:1},o))+"Z"))},P=e=>{const n=e.toString();return n.length>1?n:`0${n}`},S=(e,n)=>n?P(e):0===e?"12":e.toString(),H=(e,n,t)=>{if(null===t.day)return null;const o=L(t),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return n?`Today, ${r}`:r},R=(e,n)=>{const t=L(n);return new Intl.DateTimeFormat(e,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(t)},q=(e,n)=>{const t=L(n);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(t)},z=(e,n)=>Q(e,n,{month:"short",day:"numeric",year:"numeric"}),B=(e,n)=>V(e,n,{day:"numeric"}).find((e=>"day"===e.type)).value,K=(e,n)=>Q(e,n,{year:"numeric"}),L=e=>{var n,t,o;return new Date(`${null!==(n=e.month)&&void 0!==n?n:1}/${null!==(t=e.day)&&void 0!==t?t:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},Q=(e,n,t)=>{const o=L(n);return X(e,t).format(o)},V=(e,n,t)=>{const o=L(n);return X(e,t).formatToParts(o)},X=(e,n)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},n),{timeZone:"UTC"})),Y=e=>{if("RelativeTimeFormat"in Intl){const n=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}return"Today"},_=e=>{const n=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-n),e},ee=_(new Date("2022T01:00")),ne=_(new Date("2022T13:00")),te=(e,n)=>{const t="am"===n?ee:ne,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(t).find((e=>"dayPeriod"===e.type));return o?o.value:(e=>void 0===e?"":e.toUpperCase())(n)},oe=e=>Array.isArray(e)?e.join(","):e,re=()=>_(new Date).toISOString(),ae=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],de=[0,1,2,3,4,5,6,7,8,9,10,11],ie=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],ue=(e,n,t=0)=>{const o=new Intl.DateTimeFormat(e,{weekday:"ios"===n?"short":"narrow"}),r=new Date("11/01/2020"),a=[];for(let e=t;e<t+7;e++){const n=new Date(r);n.setDate(n.getDate()+e),a.push(o.format(n))}return a},le=(e,n,t)=>{const o=d(e,n),r=new Date(`${e}/1/${n}`).getDay(),a=r>=t?r-(t+1):6-(t-r);let i=[];for(let e=1;e<=o;e++)i.push({day:e,dayOfWeek:(a+e)%7});for(let e=0;e<=a;e++)i=[{day:null,dayOfWeek:null},...i];return i},se=(e,r="h12",a,d,i,u)=>{const l="h23"===r;let s=l?ie:de,m=ae,v=!0,y=!0;if(i&&(s=s.filter((e=>i.includes(e)))),u&&(m=m.filter((e=>u.includes(e)))),a)if(n(e,a)){if(void 0!==a.hour&&(s=s.filter((n=>(l?n:"pm"===e.ampm?(n+12)%24:n)>=a.hour)),v=a.hour<13),void 0!==a.minute){let n=!1;void 0!==a.hour&&void 0!==e.hour&&e.hour>a.hour&&(n=!0),m=m.filter((e=>!!n||e>=a.minute))}}else t(e,a)&&(s=[],m=[],v=y=!1);return d&&(n(e,d)?(void 0!==d.hour&&(s=s.filter((n=>(l?n:"pm"===e.ampm?(n+12)%24:n)<=d.hour)),y=d.hour>=12),void 0!==d.minute&&e.hour===d.hour&&(m=m.filter((e=>e<=d.minute)))):o(e,d)&&(s=[],m=[],v=y=!1)),{hours:s,minutes:m,am:v,pm:y}},me=e=>[Z(e),{month:e.month,year:e.year,day:e.day},C(e)],ve=(e,n,t,o,r,a={month:"long"})=>{const{year:d}=n,i=[];if(void 0!==r){let n=r;void 0!==(null==o?void 0:o.month)&&(n=n.filter((e=>e<=o.month))),void 0!==(null==t?void 0:t.month)&&(n=n.filter((e=>e>=t.month))),n.forEach((n=>{const t=new Date(`${n}/1/${d} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);i.push({text:o,value:n})}))}else{const n=o&&o.year===d?o.month:12;for(let o=t&&t.year===d?t.month:1;o<=n;o++){const n=new Date(`${o}/1/${d} GMT+0000`),t=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(n);i.push({text:t,value:o})}}return i},ye=(e,n,t,o,r,a={day:"numeric"})=>{const{month:i,year:u}=n,l=[],s=d(i,u),m=null!=(null==o?void 0:o.day)&&o.year===u&&o.month===i?o.day:s,v=null!=(null==t?void 0:t.day)&&t.year===u&&t.month===i?t.day:1;if(void 0!==r){let n=r;n=n.filter((e=>e>=v&&e<=m)),n.forEach((n=>{const t=new Date(`${i}/${n}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);l.push({text:o,value:n})}))}else for(let n=v;n<=m;n++){const t=new Date(`${i}/${n}/${u} GMT+0000`),o=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(t);l.push({text:o,value:n})}return l},ce=(e,n,t,o,r)=>{var a,d;let i=[];if(void 0!==r)i=r,void 0!==(null==o?void 0:o.year)&&(i=i.filter((e=>e<=o.year))),void 0!==(null==t?void 0:t.year)&&(i=i.filter((e=>e>=t.year)));else{const{year:e}=n,r=null!==(a=null==o?void 0:o.year)&&void 0!==a?a:e;for(let n=null!==(d=null==t?void 0:t.year)&&void 0!==d?d:e-100;n<=r;n++)i.push(n)}return i.map((t=>({text:K(e,{year:t,month:n.month,day:n.day}),value:t})))},he=(e,n)=>e.month===n.month&&e.year===n.year?[e]:[e,...he(C(e),n)],we=(e,t,o,r,a,d)=>{let i=[],u=[],l=he(o,r);return d&&(l=l.filter((({month:e})=>d.includes(e)))),l.forEach((d=>{const l={month:d.month,day:null,year:d.year},s=ye(e,l,o,r,a,{month:"short",day:"numeric",weekday:"short"}),m=[],v=[];s.forEach((o=>{const r=n(Object.assign(Object.assign({},l),{day:o.value}),t);v.push({text:r?Y(e):o.text,value:`${l.year}-${l.month}-${o.value}`}),m.push({month:l.month,year:l.year,day:o.value})})),u=[...u,...m],i=[...i,...v]})),{parts:u,items:i}},fe=(e,n,t,o,r,d,i)=>{const u=a(e,t),{hours:l,minutes:s,am:m,pm:v}=se(n,u?"h23":"h12",o,r,d,i),y=l.map((e=>({text:S(e,u),value:A(e,u,n.ampm)}))),c=s.map((e=>({text:P(e),value:e}))),h=[];return m&&!u&&h.push({text:te(e,"am"),value:"am"}),v&&!u&&h.push({text:te(e,"pm"),value:"pm"}),{minutesData:c,hoursData:y,dayPeriodData:h}};export{ye as A,ce as B,i as C,fe as D,u as E,ue as F,q as G,le as H,me as I,a as J,J as K,R as L,oe as M,g as N,N as O,c as P,h as Q,E as R,Q as S,z as T,B as a,o as b,n as c,Z as d,C as e,v as f,H as g,I as h,t as i,T as j,D as k,b as l,j as m,k as n,w as o,f as p,y as q,m as r,$ as s,re as t,W as u,G as v,r as w,d as x,we as y,ve as z}
|
package/dist/ionic/p-b34c1ae1.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{c as e}from"./p-63eb0acd.js";const o=async(o,t,i,n,r,s)=>{var a;if(o)return o.attachViewToDom(t,i,r,n);if(!(s||"string"==typeof i||i instanceof HTMLElement))throw new Error("framework delegate is missing");const c="string"==typeof i?null===(a=t.ownerDocument)||void 0===a?void 0:a.createElement(i):i;return n&&n.forEach((e=>c.classList.add(e))),r&&Object.assign(c,r),t.appendChild(c),await new Promise((o=>e(c,o))),c},t=(e,o)=>{if(o){if(e)return e.removeViewFromDom(o.parentElement,o);o.remove()}return Promise.resolve()},i=()=>{let o,t;return{attachViewToDom:async(i,n,r={},s=[])=>{var a,c;if(o=i,n){const t="string"==typeof n?null===(a=o.ownerDocument)||void 0===a?void 0:a.createElement(n):n;s.forEach((e=>t.classList.add(e))),Object.assign(t,r),o.appendChild(t),await new Promise((o=>e(t,o)))}else if(o.children.length>0&&("ION-MODAL"===o.tagName||"ION-POPOVER"===o.tagName)&&!o.children[0].classList.contains("ion-delegate-host")){const e=null===(c=o.ownerDocument)||void 0===c?void 0:c.createElement("div");e.classList.add("ion-delegate-host"),s.forEach((o=>e.classList.add(o))),e.append(...o.children),o.appendChild(e)}const m=document.querySelector("ion-app")||document.body;return t=document.createComment("ionic teleport"),o.parentNode.insertBefore(t,o),m.appendChild(o),o},removeViewFromDom:()=>(o&&t&&(t.parentNode.insertBefore(o,t),t.remove()),Promise.resolve())}};export{i as C,o as a,t as d}
|