@ionic/core 8.4.4-dev.11738233295.1e8971df → 8.4.4-dev.11738618213.1e9f211b
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/index6.js +3 -11
- package/components/ion-toggle.js +4 -6
- package/components/ripple-effect.js +4 -2
- package/components/toolbar.js +2 -2
- package/dist/cjs/{data-108e531d.js → data-21dc0f81.js} +1 -1
- package/dist/cjs/{index-2a46a047.js → index-5915f9b3.js} +3 -11
- package/dist/cjs/{index-0d762bba.js → index-5b6a7459.js} +1 -1
- package/dist/cjs/{index-3652c918.js → index-8e789962.js} +1 -1
- package/dist/cjs/{index-e975c92b.js → index-f05acd21.js} +3 -3
- package/dist/cjs/index.cjs.js +6 -6
- package/dist/cjs/{input-shims-cd05268a.js → input-shims-9e59ef62.js} +2 -4
- package/dist/cjs/{input.utils-ffb2f81b.js → input.utils-611cde0b.js} +1 -1
- package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
- 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 +7 -7
- package/dist/cjs/ion-button_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +2 -2
- package/dist/cjs/ion-datetime_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input-password-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +3 -3
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +3 -3
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +4 -2
- package/dist/cjs/ion-select-modal.cjs.entry.js +2 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +4 -5
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-0e664e88.js → ios.transition-cf40433b.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-2e8aef2c.js → md.transition-ededf99f.js} +2 -2
- package/dist/cjs/{overlays-65fdaff6.js → overlays-aa669eb8.js} +1 -1
- package/dist/cjs/{status-tap-d74f1429.js → status-tap-37681226.js} +2 -3
- package/dist/collection/components/ripple-effect/ripple-effect.js +4 -2
- package/dist/collection/components/toggle/toggle.js +4 -23
- package/dist/collection/components/toolbar/toolbar.js +2 -6
- package/dist/collection/utils/logging/index.js +3 -10
- package/dist/docs.json +2 -49
- package/dist/esm/{data-b3284b5e.js → data-ae11fd43.js} +1 -1
- package/dist/esm/{index-cb21eccb.js → index-24b48b06.js} +1 -1
- package/dist/esm/{index-2f7fde3d.js → index-3ad7f18b.js} +3 -3
- package/dist/esm/{index-efb8ecdf.js → index-5cc724f3.js} +1 -1
- package/dist/esm/{index-6ad967f3.js → index-9b0d46f4.js} +3 -11
- package/dist/esm/index.js +6 -6
- package/dist/esm/{input-shims-2fd7c6ef.js → input-shims-0314bbe5.js} +2 -4
- package/dist/esm/{input.utils-961c9f17.js → input.utils-09c71bc7.js} +1 -1
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- 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 +7 -7
- package/dist/esm/ion-button_2.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +2 -2
- package/dist/esm/ion-datetime_3.entry.js +3 -3
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +3 -3
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +3 -3
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +4 -2
- package/dist/esm/ion-select-modal.entry.js +2 -2
- package/dist/esm/ion-select_3.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +4 -5
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-b1da3753.js → ios.transition-4ee1a3af.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-571b3859.js → md.transition-5106a0d2.js} +2 -2
- package/dist/esm/{overlays-5deab4de.js → overlays-e7b9d6d9.js} +1 -1
- package/dist/esm/{status-tap-79eac0ac.js → status-tap-f472b09f.js} +2 -3
- package/dist/esm-es5/{data-b3284b5e.js → data-ae11fd43.js} +1 -1
- package/dist/esm-es5/{index-cb21eccb.js → index-24b48b06.js} +1 -1
- package/dist/esm-es5/{index-2f7fde3d.js → index-3ad7f18b.js} +1 -1
- package/dist/esm-es5/{index-efb8ecdf.js → index-5cc724f3.js} +1 -1
- package/dist/esm-es5/index-9b0d46f4.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/input-shims-0314bbe5.js +4 -0
- package/dist/esm-es5/{input.utils-961c9f17.js → input.utils-09c71bc7.js} +1 -1
- package/dist/esm-es5/ion-accordion_2.entry.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-button_2.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-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input-password-toggle.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item-option_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-range.entry.js +1 -1
- package/dist/esm-es5/ion-refresher_2.entry.js +1 -1
- package/dist/esm-es5/ion-reorder_2.entry.js +1 -1
- package/dist/esm-es5/ion-ripple-effect.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/{ios.transition-b1da3753.js → ios.transition-4ee1a3af.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{md.transition-571b3859.js → md.transition-5106a0d2.js} +1 -1
- package/dist/esm-es5/{overlays-5deab4de.js → overlays-e7b9d6d9.js} +1 -1
- package/dist/esm-es5/status-tap-f472b09f.js +4 -0
- package/dist/html.html-data.json +0 -4
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-0303d0f8.js +4 -0
- package/dist/ionic/{p-9343a445.js → p-06e58c4e.js} +1 -1
- package/dist/ionic/p-06fee233.js +4 -0
- package/dist/ionic/{p-ada36597.system.js → p-0aa833fb.system.js} +1 -1
- package/dist/ionic/{p-0eb35a7f.system.js → p-0c06e09b.system.js} +1 -1
- package/dist/ionic/{p-cba1f9bc.system.entry.js → p-1046866e.system.entry.js} +1 -1
- package/dist/ionic/{p-6dfb0f39.system.entry.js → p-12a722b8.system.entry.js} +1 -1
- package/dist/ionic/{p-a4a2420e.system.entry.js → p-14e159ea.system.entry.js} +1 -1
- package/dist/ionic/p-17474161.system.js +4 -0
- package/dist/ionic/{p-e06057c9.entry.js → p-19a5be0a.entry.js} +1 -1
- package/dist/ionic/{p-fceec762.entry.js → p-19ec4f42.entry.js} +1 -1
- package/dist/ionic/p-1d8761e6.entry.js +4 -0
- package/dist/ionic/{p-e09d6392.system.entry.js → p-1e010627.system.entry.js} +2 -2
- package/dist/ionic/{p-f1120724.system.entry.js → p-1fe02220.system.entry.js} +1 -1
- package/dist/ionic/{p-0af823e1.js → p-21e5e7e4.js} +1 -1
- package/dist/ionic/p-2690b1de.js +4 -0
- package/dist/ionic/{p-9b122e3c.system.entry.js → p-2799c6d3.system.entry.js} +1 -1
- package/dist/ionic/{p-1a11f49f.entry.js → p-2b9b78c7.entry.js} +1 -1
- package/dist/ionic/{p-d6eaffb1.system.entry.js → p-2bd0ae94.system.entry.js} +1 -1
- package/dist/ionic/{p-8694928f.entry.js → p-2fc0dafe.entry.js} +1 -1
- package/dist/ionic/p-322c5fb4.system.js +1 -1
- package/dist/ionic/{p-6933c482.system.entry.js → p-32d44024.system.entry.js} +1 -1
- package/dist/ionic/{p-248318e0.system.entry.js → p-37cb43bd.system.entry.js} +1 -1
- package/dist/ionic/{p-9b428d25.entry.js → p-4439fc2a.entry.js} +1 -1
- package/dist/ionic/{p-948e6c6a.entry.js → p-45693d7e.entry.js} +1 -1
- package/dist/ionic/{p-7a02f476.entry.js → p-508d024a.entry.js} +1 -1
- package/dist/ionic/{p-74e3f0af.system.entry.js → p-5823babc.system.entry.js} +2 -2
- package/dist/ionic/p-5ab1b709.entry.js +4 -0
- package/dist/ionic/{p-d22e2a38.system.js → p-5da94421.system.js} +1 -1
- package/dist/ionic/{p-f1060cd8.entry.js → p-61e3f887.entry.js} +1 -1
- package/dist/ionic/{p-05b74e45.system.entry.js → p-6499df44.system.entry.js} +1 -1
- package/dist/ionic/{p-585b455c.system.entry.js → p-66640ff7.system.entry.js} +1 -1
- package/dist/ionic/{p-2da9c8a7.entry.js → p-6b280620.entry.js} +1 -1
- package/dist/ionic/{p-f1c4dcd4.js → p-88e63c7d.js} +1 -1
- package/dist/ionic/{p-f55baa37.entry.js → p-8b8be2fd.entry.js} +1 -1
- package/dist/ionic/{p-a8f2c254.entry.js → p-942b5e13.entry.js} +1 -1
- package/dist/ionic/{p-1ab13b2b.js → p-96cc4814.js} +1 -1
- package/dist/ionic/{p-f63c2d12.entry.js → p-982315a6.entry.js} +1 -1
- package/dist/ionic/{p-61db139d.entry.js → p-9e33104d.entry.js} +1 -1
- package/dist/ionic/{p-a88dec0d.system.js → p-9ea607bd.system.js} +2 -2
- package/dist/ionic/{p-5c9eb9af.entry.js → p-9ee1e8a6.entry.js} +1 -1
- package/dist/ionic/{p-b1eb86fd.entry.js → p-9fa07aec.entry.js} +1 -1
- package/dist/ionic/{p-e76dae93.entry.js → p-a43467d8.entry.js} +1 -1
- package/dist/ionic/{p-b3c60433.system.js → p-a4565eb5.system.js} +1 -1
- package/dist/ionic/{p-ab674093.system.entry.js → p-a49378bb.system.entry.js} +1 -1
- package/dist/ionic/{p-92763d3d.entry.js → p-a61cba41.entry.js} +1 -1
- package/dist/ionic/{p-2507278c.system.entry.js → p-a882acef.system.entry.js} +1 -1
- package/dist/ionic/{p-fd1c40cc.system.entry.js → p-b2272f51.system.entry.js} +1 -1
- package/dist/ionic/{p-302b50bb.system.entry.js → p-b335ffed.system.entry.js} +1 -1
- package/dist/ionic/{p-eef505e8.entry.js → p-b79ba17c.entry.js} +1 -1
- package/dist/ionic/{p-cb13696c.js → p-b82d4cab.js} +1 -1
- package/dist/ionic/{p-744c8672.system.entry.js → p-bc36ad98.system.entry.js} +1 -1
- package/dist/ionic/{p-8cfba7e9.system.entry.js → p-c29f8157.system.entry.js} +1 -1
- package/dist/ionic/{p-5c08627a.system.js → p-c449820c.system.js} +1 -1
- package/dist/ionic/{p-120fb79a.entry.js → p-c9f3a539.entry.js} +1 -1
- package/dist/ionic/{p-a090bce8.system.entry.js → p-ca065903.system.entry.js} +1 -1
- package/dist/ionic/{p-933727f9.system.entry.js → p-d18ab582.system.entry.js} +1 -1
- package/dist/ionic/{p-1a5bc5f7.js → p-d60342e3.js} +1 -1
- package/dist/ionic/{p-b6efeab8.js → p-d6841eac.js} +1 -1
- package/dist/ionic/{p-89bf08c7.entry.js → p-da074ff7.entry.js} +1 -1
- package/dist/ionic/{p-a0eb506c.system.entry.js → p-ddaa748a.system.entry.js} +1 -1
- package/dist/ionic/p-dfb78785.system.js +4 -0
- package/dist/ionic/{p-fbd41a7e.system.entry.js → p-e4f69534.system.entry.js} +1 -1
- package/dist/ionic/{p-15d18206.entry.js → p-e563a35c.entry.js} +1 -1
- package/dist/ionic/{p-28706c6f.js → p-e6635685.js} +1 -1
- package/dist/ionic/{p-7de1e42c.system.js → p-e7ed4a7f.system.js} +1 -1
- package/dist/ionic/{p-bc64bd27.system.entry.js → p-e85d901b.system.entry.js} +1 -1
- package/dist/ionic/p-eba29931.entry.js +4 -0
- package/dist/ionic/{p-bdf2cb2e.system.entry.js → p-ebf042e0.system.entry.js} +1 -1
- package/dist/ionic/{p-7a6eaf9e.entry.js → p-efaffe74.entry.js} +1 -1
- package/dist/ionic/{p-2346ab53.system.entry.js → p-f1acf541.system.entry.js} +1 -1
- package/dist/ionic/{p-343b6b1d.system.js → p-f687573e.system.js} +1 -1
- package/dist/ionic/{p-c4238c12.system.js → p-f9a53abb.system.js} +1 -1
- package/dist/ionic/p-ff4b7e40.system.js +4 -0
- package/dist/types/components/toggle/toggle.d.ts +0 -6
- package/dist/types/components/toolbar/toolbar.d.ts +0 -4
- package/dist/types/components.d.ts +0 -8
- package/dist/types/utils/config.d.ts +0 -9
- package/dist/types/utils/logging/index.d.ts +1 -13
- package/hydrate/index.js +13 -23
- package/hydrate/index.mjs +13 -23
- package/package.json +1 -1
- package/dist/esm-es5/index-6ad967f3.js +0 -4
- package/dist/esm-es5/input-shims-2fd7c6ef.js +0 -4
- package/dist/esm-es5/status-tap-79eac0ac.js +0 -4
- package/dist/ionic/p-4c98e2cf.system.js +0 -4
- package/dist/ionic/p-577bc414.entry.js +0 -4
- package/dist/ionic/p-67222c16.system.js +0 -4
- package/dist/ionic/p-6d32975a.entry.js +0 -4
- package/dist/ionic/p-7513b0c4.js +0 -4
- package/dist/ionic/p-a3db8ee3.js +0 -4
- package/dist/ionic/p-d1c5b60e.system.js +0 -4
- package/dist/ionic/p-e3171ff3.entry.js +0 -4
- package/dist/ionic/p-e8d56122.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var u=0,t=n.length,a;u<t;u++){if(a||!(u in n)){if(!a)a=Array.prototype.slice.call(n,0,u);a[u]=n[u]}}return r.concat(a||Array.prototype.slice.call(n))};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-67222c16.system.js"],(function(r){"use strict";var n;return{setters:[function(r){n=r.p}],execute:function(){r({s:h,u:T});var e=r("c",(function(r,n){return r.month===n.month&&r.day===n.day&&r.year===n.year}));var u=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 t=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 a=r("w",(function(r,e,a){var i=Array.isArray(r)?r:[r];for(var f=0,d=i;f<d.length;f++){var v=d[f];if(e!==undefined&&u(v,e)||a!==undefined&&t(v,a)){n("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(e),"\n")+"Max: ".concat(JSON.stringify(a),"\n")+"Value: ".concat(JSON.stringify(r)));break}}}));var i=function(r){return r%4===0&&r%100!==0||r%400===0};var f=r("L",(function(r,n){if(n!==undefined){return n}var e=new Intl.DateTimeFormat(r,{hour:"numeric"});var u=e.resolvedOptions();if(u.hourCycle!==undefined){return u.hourCycle}var t=new Date("5/18/2021 00:00");var a=e.formatToParts(t);var i=a.find((function(r){return r.type==="hour"}));if(!i){throw new Error("Hour value not found from DateTimeFormat")}switch(i.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}));var d=function(r){return r==="h23"||r==="h24"};var v=r("A",(function(r,n){return r===4||r===6||r===9||r===11?30:r===2?i(n)?29:28:31}));var o=r("F",(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 l=r("H",(function(r){var n=new Intl.DateTimeFormat(r,{hour:"numeric"}).formatToParts(new Date);return n[0].type==="dayPeriod"}));var c=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var m=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var y=r("t",(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 s=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 h(r){if(Array.isArray(r)){var e=[];for(var u=0,t=r;u<t.length;u++){var a=t[u];var i=h(a);if(!i){return undefined}e.push(i)}return e}var f=null;if(r!=null&&r!==""){f=m.exec(r);if(f){f.unshift(undefined,undefined);f[2]=f[3]=undefined}else{f=c.exec(r)}}if(f===null){n("Unable to parse date string: ".concat(r,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var d=1;d<8;d++){f[d]=f[d]!==undefined?parseInt(f[d],10):undefined}return{year:f[1],month:f[2],day:f[3],hour:f[4],minute:f[5],ampm:f[4]<12?"am":"pm"}}var w=r("P",(function(r,n,e){if(n&&u(r,n)){return n}else if(e&&t(r,e)){return e}return r}));var p=r("Q",(function(r){return r>=12?"pm":"am"}));var O=r("r",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;var d=a!==null&&a!==void 0?a:n.year;var o=u!==null&&u!==void 0?u:12;return{month:o,day:t!==null&&t!==void 0?t:v(o,d),year:d,hour:i!==null&&i!==void 0?i:23,minute:f!==null&&f!==void 0?f:59}}));var b=r("q",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;return{month:u!==null&&u!==void 0?u:1,day:t!==null&&t!==void 0?t:1,year:a!==null&&a!==void 0?a:n.year,hour:i!==null&&i!==void 0?i:0,minute:f!==null&&f!==void 0?f:0}}));var I=function(r){return("0"+(r!==undefined?Math.abs(r):"0")).slice(-2)};var j=function(r){return("000"+(r!==undefined?Math.abs(r):"0")).slice(-4)};function T(r){if(Array.isArray(r)){return r.map((function(r){return T(r)}))}var n="";if(r.year!==undefined){n=j(r.year);if(r.month!==undefined){n+="-"+I(r.month);if(r.day!==undefined){n+="-"+I(r.day);if(r.hour!==undefined){n+="T".concat(I(r.hour),":").concat(I(r.minute),":00")}}}}else if(r.hour!==undefined){n=I(r.hour)+":"+I(r.minute)}return n}var D=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("l",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return C(r,n)}));var _=r("k",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return U(r,6-n)}));var x=r("n",(function(r){return U(r,1)}));var M=r("m",(function(r){return C(r,1)}));var Z=r("o",(function(r){return C(r,7)}));var k=r("p",(function(r){return U(r,7)}));var C=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};a.day=u-n;if(a.day<1){a.month-=1}if(a.month<1){a.month=12;a.year-=1}if(a.day<1){var i=v(a.month,a.year);a.day=i+a.day}return a};var U=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};var i=v(e,t);a.day=u+n;if(a.day>i){a.day-=i;a.month+=1}if(a.month>12){a.month=1;a.year+=1}return a};var g=r("d",(function(r){var n=r.month===1?12:r.month-1;var e=r.month===1?r.year-1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var E=r("e",(function(r){var n=r.month===12?1:r.month+1;var e=r.month===12?r.year+1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var N=function(r,n){var e=r.month;var u=r.year+n;var t=v(e,u);var a=t<r.day?t:r.day;return{month:e,year:u,day:a}};var G=r("j",(function(r){return N(r,-1)}));var P=r("h",(function(r){return N(r,1)}));var S=function(r,n,e){if(n){return r}return D(r,e)};var F=r("R",(function(r,n){var e=r.ampm,u=r.hour;var t=u;if(e==="am"&&n==="pm"){t=D(t,"pm")}else if(e==="pm"&&n==="am"){t=Math.abs(t-12)}return t}));var J=r("v",(function(r,n,u){var t=r.month,a=r.day,i=r.year;var f=w(Object.assign({},r),n,u);var d=v(t,i);if(a!==null&&d<a){f.day=d}if(n!==undefined&&e(f,n)){if(f.hour!==undefined&&n.hour!==undefined){if(f.hour<n.hour){f.hour=n.hour;f.minute=n.minute}else if(f.hour===n.hour&&f.minute!==undefined&&n.minute!==undefined&&f.minute<n.minute){f.minute=n.minute}}}if(u!==undefined&&e(r,u)){if(f.hour!==undefined&&u.hour!==undefined){if(f.hour>u.hour){f.hour=u.hour;f.minute=u.minute}else if(f.hour===u.hour&&f.minute!==undefined&&u.minute!==undefined&&f.minute>u.minute){f.minute=u.minute}}}return f}));var W=r("y",(function(r){var n=r.refParts,a=r.monthValues,i=r.dayValues,f=r.yearValues,d=r.hourValues,v=r.minuteValues,o=r.minParts,l=r.maxParts;var c=n.hour,m=n.minute,y=n.day,s=n.month,h=n.year;var w=Object.assign(Object.assign({},n),{dayOfWeek:undefined});if(f!==undefined){var O=f.filter((function(r){if(o!==undefined&&r<o.year){return false}if(l!==undefined&&r>l.year){return false}return true}));w.year=H(h,O)}if(a!==undefined){var b=a.filter((function(r){if(o!==undefined&&w.year===o.year&&r<o.month){return false}if(l!==undefined&&w.year===l.year&&r>l.month){return false}return true}));w.month=H(s,b)}if(y!==null&&i!==undefined){var I=i.filter((function(r){if(o!==undefined&&u(Object.assign(Object.assign({},w),{day:r}),o)){return false}if(l!==undefined&&t(Object.assign(Object.assign({},w),{day:r}),l)){return false}return true}));w.day=H(y,I)}if(c!==undefined&&d!==undefined){var j=d.filter((function(r){if((o===null||o===void 0?void 0:o.hour)!==undefined&&e(w,o)&&r<o.hour){return false}if((l===null||l===void 0?void 0:l.hour)!==undefined&&e(w,l)&&r>l.hour){return false}return true}));w.hour=H(c,j);w.ampm=p(w.hour)}if(m!==undefined&&v!==undefined){var T=v.filter((function(r){if((o===null||o===void 0?void 0:o.minute)!==undefined&&e(w,o)&&w.hour===o.hour&&r<o.minute){return false}if((l===null||l===void 0?void 0:l.minute)!==undefined&&e(w,l)&&w.hour===l.hour&&r>l.minute){return false}return true}));w.minute=H(m,T)}return w}));var H=function(r,n){var e=n[0];var u=Math.abs(e-r);for(var t=1;t<n.length;t++){var a=n[t];var i=Math.abs(a-r);if(i<u){e=a;u=i}}return e};var R=function(r){if(r===undefined){return""}return r.toUpperCase()};var $=function(r){return Object.assign(Object.assign({},r),{timeZone:"UTC",timeZoneName:undefined})};var q=r("M",(function(r,n,e,u){if(u===void 0){u={hour:"numeric",minute:"numeric"}}var t={hour:n.hour,minute:n.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},$(u)),{hourCycle:e})).format(new Date(T(Object.assign({year:2023,day:1,month:1},t))+"Z"))}));var z=function(r){var n=r.toString();if(n.length>1){return n}return"0".concat(n)};var B=function(r,n){if(r===0){switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}var e=d(n);if(e){return z(r)}return r.toString()};var K=r("g",(function(r,n,e){if(e.day===null){return null}var u=X(e);var t=new Intl.DateTimeFormat(r,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(u);return n?"Today, ".concat(t):t}));var L=r("J",(function(r,n){var e=X(n);return new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(e)}));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,u;var t=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((u=r.year)!==null&&u!==void 0?u:2023).concat(t," GMT+0000"))};var Y=r("N",(function(r,n,e){var u=X(n);return nr(r,$(e)).format(u)}));var rr=function(r,n,e){var u=X(n);return nr(r,e).formatToParts(u)};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 ur=function(r){var n=r.getTimezoneOffset();r.setMinutes(r.getMinutes()-n);return r};var tr=ur(new Date("2022T01:00"));var ar=ur(new Date("2022T13:00"));var ir=function(r,n){var e=n==="am"?tr:ar;var u=new Intl.DateTimeFormat(r,{hour:"numeric",timeZone:"UTC"}).formatToParts(e).find((function(r){return r.type==="dayPeriod"}));if(u){return u.value}return R(n)};var fr=r("O",(function(r){return Array.isArray(r)?r.join(","):r}));var dr=r("x",(function(){return ur(new Date).toISOString()}));var vr=[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 or=[0,1,2,3,4,5,6,7,8,9,10,11];var lr=[0,1,2,3,4,5,6,7,8,9,10,11];var cr=[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 mr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var yr=r("I",(function(r,n,e){if(e===void 0){e=0}var u=n==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(r,{weekday:u});var a=new Date("11/01/2020");var i=[];for(var f=e;f<e+7;f++){var d=new Date(a);d.setDate(d.getDate()+f);i.push(t.format(d))}return i}));var sr=r("K",(function(r,n,e){var u=v(r,n);var t=new Date("".concat(r,"/1/").concat(n)).getDay();var a=t>=e?t-(e+1):6-(e-t);var i=[];for(var f=1;f<=u;f++){i.push({day:f,dayOfWeek:(a+f)%7})}for(var f=0;f<=a;f++){i=__spreadArray([{day:null,dayOfWeek:null}],i,true)}return i}));var hr=function(r){switch(r){case"h11":return or;case"h12":return lr;case"h23":return cr;case"h24":return mr;default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var wr=function(r,n,a,i,v,o,l){if(a===void 0){a="h12"}var c=f(r,a);var m=d(c);var y=hr(c);var s=vr;var h=true;var w=true;if(o){y=y.filter((function(r){return o.includes(r)}))}if(l){s=s.filter((function(r){return l.includes(r)}))}if(i){if(e(n,i)){if(i.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)>=i.hour}));h=i.hour<13}if(i.minute!==undefined){var p=false;if(i.hour!==undefined&&n.hour!==undefined){if(n.hour>i.hour){p=true}}s=s.filter((function(r){if(p){return true}return r>=i.minute}))}}else if(u(n,i)){y=[];s=[];h=w=false}}if(v){if(e(n,v)){if(v.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)<=v.hour}));w=v.hour>=12}if(v.minute!==undefined&&n.hour===v.hour){s=s.filter((function(r){return r<=v.minute}))}}else if(t(n,v)){y=[];s=[];h=w=false}}return{hours:y,minutes:s,am:h,pm:w}};var pr=r("z",(function(r,n){var e={month:r.month,year:r.year,day:r.day};if(n!==undefined&&(r.month!==n.month||r.year!==n.year)){var t={month:n.month,year:n.year,day:n.day};var a=u(t,e);return a?[t,e,E(r)]:[g(r),e,t]}return[g(r),e,E(r)]}));var Or=r("C",(function(r,n,e,u,t,a){if(a===void 0){a={month:"long"}}var i=n.year;var f=[];if(t!==undefined){var d=t;if((u===null||u===void 0?void 0:u.month)!==undefined){d=d.filter((function(r){return r<=u.month}))}if((e===null||e===void 0?void 0:e.month)!==undefined){d=d.filter((function(r){return r>=e.month}))}d.forEach((function(n){var e=new Date("".concat(n,"/1/").concat(i," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);f.push({text:u,value:n})}))}else{var v=u&&u.year===i?u.month:12;var o=e&&e.year===i?e.month:1;for(var l=o;l<=v;l++){var c=new Date("".concat(l,"/1/").concat(i," GMT+0000"));var m=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(c);f.push({text:m,value:l})}}return f}));var br=r("D",(function(r,n,e,u,t,a){if(a===void 0){a={day:"numeric"}}var i=n.month,f=n.year;var d=[];var o=v(i,f);var l=(u===null||u===void 0?void 0:u.day)!==null&&(u===null||u===void 0?void 0:u.day)!==undefined&&u.year===f&&u.month===i?u.day:o;var c=(e===null||e===void 0?void 0:e.day)!==null&&(e===null||e===void 0?void 0:e.day)!==undefined&&e.year===f&&e.month===i?e.day:1;if(t!==undefined){var m=t;m=m.filter((function(r){return r>=c&&r<=l}));m.forEach((function(n){var e=new Date("".concat(i,"/").concat(n,"/").concat(f," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);d.push({text:u,value:n})}))}else{for(var y=c;y<=l;y++){var s=new Date("".concat(i,"/").concat(y,"/").concat(f," GMT+0000"));var h=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(s);d.push({text:h,value:y})}}return d}));var Ir=r("E",(function(r,n,e,u,t){var a,i;var f=[];if(t!==undefined){f=t;if((u===null||u===void 0?void 0:u.year)!==undefined){f=f.filter((function(r){return r<=u.year}))}if((e===null||e===void 0?void 0:e.year)!==undefined){f=f.filter((function(r){return r>=e.year}))}}else{var d=n.year;var v=(a=u===null||u===void 0?void 0:u.year)!==null&&a!==void 0?a:d;var o=(i=e===null||e===void 0?void 0:e.year)!==null&&i!==void 0?i:d-100;for(var l=o;l<=v;l++){f.push(l)}}return f.map((function(e){return{text:V(r,{year:e,month:n.month,day:n.day}),value:e}}))}));var jr=function(r,n){if(r.month===n.month&&r.year===n.year){return[r]}return __spreadArray([r],jr(E(r),n),true)};var Tr=r("B",(function(r,n,u,t,a,i){var f=[];var d=[];var v=jr(u,t);if(i){v=v.filter((function(r){var n=r.month;return i.includes(n)}))}v.forEach((function(i){var v={month:i.month,day:null,year:i.year};var o=br(r,v,u,t,a,{month:"short",day:"numeric",weekday:"short"});var l=[];var c=[];o.forEach((function(u){var t=e(Object.assign(Object.assign({},v),{day:u.value}),n);c.push({text:t?er(r):u.text,value:"".concat(v.year,"-").concat(v.month,"-").concat(u.value)});l.push({month:v.month,year:v.year,day:u.value})}));d=__spreadArray(__spreadArray([],d,true),l,true);f=__spreadArray(__spreadArray([],f,true),c,true)}));return{parts:d,items:f}}));var Dr=r("G",(function(r,n,e,u,t,a,i){var v=f(r,e);var o=d(v);var l=wr(r,n,v,u,t,a,i),c=l.hours,m=l.minutes,y=l.am,s=l.pm;var h=c.map((function(r){return{text:B(r,v),value:S(r,o,n.ampm)}}));var w=m.map((function(r){return{text:z(r),value:r}}));var p=[];if(y&&!o){p.push({text:ir(r,"am"),value:"am"})}if(s&&!o){p.push({text:ir(r,"pm"),value:"pm"})}return{minutesData:w,hoursData:h,dayPeriodData:p}}))}}}));
|
|
4
|
+
*/System.register(["./p-ff4b7e40.system.js"],(function(r){"use strict";var n;return{setters:[function(r){n=r.p}],execute:function(){r({s:h,u:T});var e=r("c",(function(r,n){return r.month===n.month&&r.day===n.day&&r.year===n.year}));var u=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 t=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 a=r("w",(function(r,e,a){var i=Array.isArray(r)?r:[r];for(var f=0,d=i;f<d.length;f++){var v=d[f];if(e!==undefined&&u(v,e)||a!==undefined&&t(v,a)){n("The value provided to ion-datetime is out of bounds.\n\n"+"Min: ".concat(JSON.stringify(e),"\n")+"Max: ".concat(JSON.stringify(a),"\n")+"Value: ".concat(JSON.stringify(r)));break}}}));var i=function(r){return r%4===0&&r%100!==0||r%400===0};var f=r("L",(function(r,n){if(n!==undefined){return n}var e=new Intl.DateTimeFormat(r,{hour:"numeric"});var u=e.resolvedOptions();if(u.hourCycle!==undefined){return u.hourCycle}var t=new Date("5/18/2021 00:00");var a=e.formatToParts(t);var i=a.find((function(r){return r.type==="hour"}));if(!i){throw new Error("Hour value not found from DateTimeFormat")}switch(i.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}));var d=function(r){return r==="h23"||r==="h24"};var v=r("A",(function(r,n){return r===4||r===6||r===9||r===11?30:r===2?i(n)?29:28:31}));var o=r("F",(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 l=r("H",(function(r){var n=new Intl.DateTimeFormat(r,{hour:"numeric"}).formatToParts(new Date);return n[0].type==="dayPeriod"}));var c=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var m=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/;var y=r("t",(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 s=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 h(r){if(Array.isArray(r)){var e=[];for(var u=0,t=r;u<t.length;u++){var a=t[u];var i=h(a);if(!i){return undefined}e.push(i)}return e}var f=null;if(r!=null&&r!==""){f=m.exec(r);if(f){f.unshift(undefined,undefined);f[2]=f[3]=undefined}else{f=c.exec(r)}}if(f===null){n("Unable to parse date string: ".concat(r,". Please provide a valid ISO 8601 datetime string."));return undefined}for(var d=1;d<8;d++){f[d]=f[d]!==undefined?parseInt(f[d],10):undefined}return{year:f[1],month:f[2],day:f[3],hour:f[4],minute:f[5],ampm:f[4]<12?"am":"pm"}}var w=r("P",(function(r,n,e){if(n&&u(r,n)){return n}else if(e&&t(r,e)){return e}return r}));var p=r("Q",(function(r){return r>=12?"pm":"am"}));var O=r("r",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;var d=a!==null&&a!==void 0?a:n.year;var o=u!==null&&u!==void 0?u:12;return{month:o,day:t!==null&&t!==void 0?t:v(o,d),year:d,hour:i!==null&&i!==void 0?i:23,minute:f!==null&&f!==void 0?f:59}}));var b=r("q",(function(r,n){var e=h(r);if(e===undefined){return}var u=e.month,t=e.day,a=e.year,i=e.hour,f=e.minute;return{month:u!==null&&u!==void 0?u:1,day:t!==null&&t!==void 0?t:1,year:a!==null&&a!==void 0?a:n.year,hour:i!==null&&i!==void 0?i:0,minute:f!==null&&f!==void 0?f:0}}));var I=function(r){return("0"+(r!==undefined?Math.abs(r):"0")).slice(-2)};var j=function(r){return("000"+(r!==undefined?Math.abs(r):"0")).slice(-4)};function T(r){if(Array.isArray(r)){return r.map((function(r){return T(r)}))}var n="";if(r.year!==undefined){n=j(r.year);if(r.month!==undefined){n+="-"+I(r.month);if(r.day!==undefined){n+="-"+I(r.day);if(r.hour!==undefined){n+="T".concat(I(r.hour),":").concat(I(r.minute),":00")}}}}else if(r.hour!==undefined){n=I(r.hour)+":"+I(r.minute)}return n}var D=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("l",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return C(r,n)}));var _=r("k",(function(r){var n=r.dayOfWeek;if(n===null||n===undefined){throw new Error("No day of week provided")}return U(r,6-n)}));var x=r("n",(function(r){return U(r,1)}));var M=r("m",(function(r){return C(r,1)}));var Z=r("o",(function(r){return C(r,7)}));var k=r("p",(function(r){return U(r,7)}));var C=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};a.day=u-n;if(a.day<1){a.month-=1}if(a.month<1){a.month=12;a.year-=1}if(a.day<1){var i=v(a.month,a.year);a.day=i+a.day}return a};var U=function(r,n){var e=r.month,u=r.day,t=r.year;if(u===null){throw new Error("No day provided")}var a={month:e,day:u,year:t};var i=v(e,t);a.day=u+n;if(a.day>i){a.day-=i;a.month+=1}if(a.month>12){a.month=1;a.year+=1}return a};var g=r("d",(function(r){var n=r.month===1?12:r.month-1;var e=r.month===1?r.year-1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var E=r("e",(function(r){var n=r.month===12?1:r.month+1;var e=r.month===12?r.year+1:r.year;var u=v(n,e);var t=u<r.day?u:r.day;return{month:n,year:e,day:t}}));var N=function(r,n){var e=r.month;var u=r.year+n;var t=v(e,u);var a=t<r.day?t:r.day;return{month:e,year:u,day:a}};var G=r("j",(function(r){return N(r,-1)}));var P=r("h",(function(r){return N(r,1)}));var S=function(r,n,e){if(n){return r}return D(r,e)};var F=r("R",(function(r,n){var e=r.ampm,u=r.hour;var t=u;if(e==="am"&&n==="pm"){t=D(t,"pm")}else if(e==="pm"&&n==="am"){t=Math.abs(t-12)}return t}));var J=r("v",(function(r,n,u){var t=r.month,a=r.day,i=r.year;var f=w(Object.assign({},r),n,u);var d=v(t,i);if(a!==null&&d<a){f.day=d}if(n!==undefined&&e(f,n)){if(f.hour!==undefined&&n.hour!==undefined){if(f.hour<n.hour){f.hour=n.hour;f.minute=n.minute}else if(f.hour===n.hour&&f.minute!==undefined&&n.minute!==undefined&&f.minute<n.minute){f.minute=n.minute}}}if(u!==undefined&&e(r,u)){if(f.hour!==undefined&&u.hour!==undefined){if(f.hour>u.hour){f.hour=u.hour;f.minute=u.minute}else if(f.hour===u.hour&&f.minute!==undefined&&u.minute!==undefined&&f.minute>u.minute){f.minute=u.minute}}}return f}));var W=r("y",(function(r){var n=r.refParts,a=r.monthValues,i=r.dayValues,f=r.yearValues,d=r.hourValues,v=r.minuteValues,o=r.minParts,l=r.maxParts;var c=n.hour,m=n.minute,y=n.day,s=n.month,h=n.year;var w=Object.assign(Object.assign({},n),{dayOfWeek:undefined});if(f!==undefined){var O=f.filter((function(r){if(o!==undefined&&r<o.year){return false}if(l!==undefined&&r>l.year){return false}return true}));w.year=H(h,O)}if(a!==undefined){var b=a.filter((function(r){if(o!==undefined&&w.year===o.year&&r<o.month){return false}if(l!==undefined&&w.year===l.year&&r>l.month){return false}return true}));w.month=H(s,b)}if(y!==null&&i!==undefined){var I=i.filter((function(r){if(o!==undefined&&u(Object.assign(Object.assign({},w),{day:r}),o)){return false}if(l!==undefined&&t(Object.assign(Object.assign({},w),{day:r}),l)){return false}return true}));w.day=H(y,I)}if(c!==undefined&&d!==undefined){var j=d.filter((function(r){if((o===null||o===void 0?void 0:o.hour)!==undefined&&e(w,o)&&r<o.hour){return false}if((l===null||l===void 0?void 0:l.hour)!==undefined&&e(w,l)&&r>l.hour){return false}return true}));w.hour=H(c,j);w.ampm=p(w.hour)}if(m!==undefined&&v!==undefined){var T=v.filter((function(r){if((o===null||o===void 0?void 0:o.minute)!==undefined&&e(w,o)&&w.hour===o.hour&&r<o.minute){return false}if((l===null||l===void 0?void 0:l.minute)!==undefined&&e(w,l)&&w.hour===l.hour&&r>l.minute){return false}return true}));w.minute=H(m,T)}return w}));var H=function(r,n){var e=n[0];var u=Math.abs(e-r);for(var t=1;t<n.length;t++){var a=n[t];var i=Math.abs(a-r);if(i<u){e=a;u=i}}return e};var R=function(r){if(r===undefined){return""}return r.toUpperCase()};var $=function(r){return Object.assign(Object.assign({},r),{timeZone:"UTC",timeZoneName:undefined})};var q=r("M",(function(r,n,e,u){if(u===void 0){u={hour:"numeric",minute:"numeric"}}var t={hour:n.hour,minute:n.minute};if(t.hour===undefined||t.minute===undefined){return"Invalid Time"}return new Intl.DateTimeFormat(r,Object.assign(Object.assign({},$(u)),{hourCycle:e})).format(new Date(T(Object.assign({year:2023,day:1,month:1},t))+"Z"))}));var z=function(r){var n=r.toString();if(n.length>1){return n}return"0".concat(n)};var B=function(r,n){if(r===0){switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error('Invalid hour cycle "'.concat(n,'"'))}}var e=d(n);if(e){return z(r)}return r.toString()};var K=r("g",(function(r,n,e){if(e.day===null){return null}var u=X(e);var t=new Intl.DateTimeFormat(r,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(u);return n?"Today, ".concat(t):t}));var L=r("J",(function(r,n){var e=X(n);return new Intl.DateTimeFormat(r,{month:"long",year:"numeric",timeZone:"UTC"}).format(e)}));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,u;var t=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((u=r.year)!==null&&u!==void 0?u:2023).concat(t," GMT+0000"))};var Y=r("N",(function(r,n,e){var u=X(n);return nr(r,$(e)).format(u)}));var rr=function(r,n,e){var u=X(n);return nr(r,e).formatToParts(u)};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 ur=function(r){var n=r.getTimezoneOffset();r.setMinutes(r.getMinutes()-n);return r};var tr=ur(new Date("2022T01:00"));var ar=ur(new Date("2022T13:00"));var ir=function(r,n){var e=n==="am"?tr:ar;var u=new Intl.DateTimeFormat(r,{hour:"numeric",timeZone:"UTC"}).formatToParts(e).find((function(r){return r.type==="dayPeriod"}));if(u){return u.value}return R(n)};var fr=r("O",(function(r){return Array.isArray(r)?r.join(","):r}));var dr=r("x",(function(){return ur(new Date).toISOString()}));var vr=[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 or=[0,1,2,3,4,5,6,7,8,9,10,11];var lr=[0,1,2,3,4,5,6,7,8,9,10,11];var cr=[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 mr=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0];var yr=r("I",(function(r,n,e){if(e===void 0){e=0}var u=n==="ios"?"short":"narrow";var t=new Intl.DateTimeFormat(r,{weekday:u});var a=new Date("11/01/2020");var i=[];for(var f=e;f<e+7;f++){var d=new Date(a);d.setDate(d.getDate()+f);i.push(t.format(d))}return i}));var sr=r("K",(function(r,n,e){var u=v(r,n);var t=new Date("".concat(r,"/1/").concat(n)).getDay();var a=t>=e?t-(e+1):6-(e-t);var i=[];for(var f=1;f<=u;f++){i.push({day:f,dayOfWeek:(a+f)%7})}for(var f=0;f<=a;f++){i=__spreadArray([{day:null,dayOfWeek:null}],i,true)}return i}));var hr=function(r){switch(r){case"h11":return or;case"h12":return lr;case"h23":return cr;case"h24":return mr;default:throw new Error('Invalid hour cycle "'.concat(r,'"'))}};var wr=function(r,n,a,i,v,o,l){if(a===void 0){a="h12"}var c=f(r,a);var m=d(c);var y=hr(c);var s=vr;var h=true;var w=true;if(o){y=y.filter((function(r){return o.includes(r)}))}if(l){s=s.filter((function(r){return l.includes(r)}))}if(i){if(e(n,i)){if(i.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)>=i.hour}));h=i.hour<13}if(i.minute!==undefined){var p=false;if(i.hour!==undefined&&n.hour!==undefined){if(n.hour>i.hour){p=true}}s=s.filter((function(r){if(p){return true}return r>=i.minute}))}}else if(u(n,i)){y=[];s=[];h=w=false}}if(v){if(e(n,v)){if(v.hour!==undefined){y=y.filter((function(r){var e=n.ampm==="pm"?(r+12)%24:r;return(m?r:e)<=v.hour}));w=v.hour>=12}if(v.minute!==undefined&&n.hour===v.hour){s=s.filter((function(r){return r<=v.minute}))}}else if(t(n,v)){y=[];s=[];h=w=false}}return{hours:y,minutes:s,am:h,pm:w}};var pr=r("z",(function(r,n){var e={month:r.month,year:r.year,day:r.day};if(n!==undefined&&(r.month!==n.month||r.year!==n.year)){var t={month:n.month,year:n.year,day:n.day};var a=u(t,e);return a?[t,e,E(r)]:[g(r),e,t]}return[g(r),e,E(r)]}));var Or=r("C",(function(r,n,e,u,t,a){if(a===void 0){a={month:"long"}}var i=n.year;var f=[];if(t!==undefined){var d=t;if((u===null||u===void 0?void 0:u.month)!==undefined){d=d.filter((function(r){return r<=u.month}))}if((e===null||e===void 0?void 0:e.month)!==undefined){d=d.filter((function(r){return r>=e.month}))}d.forEach((function(n){var e=new Date("".concat(n,"/1/").concat(i," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);f.push({text:u,value:n})}))}else{var v=u&&u.year===i?u.month:12;var o=e&&e.year===i?e.month:1;for(var l=o;l<=v;l++){var c=new Date("".concat(l,"/1/").concat(i," GMT+0000"));var m=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(c);f.push({text:m,value:l})}}return f}));var br=r("D",(function(r,n,e,u,t,a){if(a===void 0){a={day:"numeric"}}var i=n.month,f=n.year;var d=[];var o=v(i,f);var l=(u===null||u===void 0?void 0:u.day)!==null&&(u===null||u===void 0?void 0:u.day)!==undefined&&u.year===f&&u.month===i?u.day:o;var c=(e===null||e===void 0?void 0:e.day)!==null&&(e===null||e===void 0?void 0:e.day)!==undefined&&e.year===f&&e.month===i?e.day:1;if(t!==undefined){var m=t;m=m.filter((function(r){return r>=c&&r<=l}));m.forEach((function(n){var e=new Date("".concat(i,"/").concat(n,"/").concat(f," GMT+0000"));var u=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(e);d.push({text:u,value:n})}))}else{for(var y=c;y<=l;y++){var s=new Date("".concat(i,"/").concat(y,"/").concat(f," GMT+0000"));var h=new Intl.DateTimeFormat(r,Object.assign(Object.assign({},a),{timeZone:"UTC"})).format(s);d.push({text:h,value:y})}}return d}));var Ir=r("E",(function(r,n,e,u,t){var a,i;var f=[];if(t!==undefined){f=t;if((u===null||u===void 0?void 0:u.year)!==undefined){f=f.filter((function(r){return r<=u.year}))}if((e===null||e===void 0?void 0:e.year)!==undefined){f=f.filter((function(r){return r>=e.year}))}}else{var d=n.year;var v=(a=u===null||u===void 0?void 0:u.year)!==null&&a!==void 0?a:d;var o=(i=e===null||e===void 0?void 0:e.year)!==null&&i!==void 0?i:d-100;for(var l=o;l<=v;l++){f.push(l)}}return f.map((function(e){return{text:V(r,{year:e,month:n.month,day:n.day}),value:e}}))}));var jr=function(r,n){if(r.month===n.month&&r.year===n.year){return[r]}return __spreadArray([r],jr(E(r),n),true)};var Tr=r("B",(function(r,n,u,t,a,i){var f=[];var d=[];var v=jr(u,t);if(i){v=v.filter((function(r){var n=r.month;return i.includes(n)}))}v.forEach((function(i){var v={month:i.month,day:null,year:i.year};var o=br(r,v,u,t,a,{month:"short",day:"numeric",weekday:"short"});var l=[];var c=[];o.forEach((function(u){var t=e(Object.assign(Object.assign({},v),{day:u.value}),n);c.push({text:t?er(r):u.text,value:"".concat(v.year,"-").concat(v.month,"-").concat(u.value)});l.push({month:v.month,year:v.year,day:u.value})}));d=__spreadArray(__spreadArray([],d,true),l,true);f=__spreadArray(__spreadArray([],f,true),c,true)}));return{parts:d,items:f}}));var Dr=r("G",(function(r,n,e,u,t,a,i){var v=f(r,e);var o=d(v);var l=wr(r,n,v,u,t,a,i),c=l.hours,m=l.minutes,y=l.am,s=l.pm;var h=c.map((function(r){return{text:B(r,v),value:S(r,o,n.ampm)}}));var w=m.map((function(r){return{text:z(r),value:r}}));var p=[];if(y&&!o){p.push({text:ir(r,"am"),value:"am"})}if(s&&!o){p.push({text:ir(r,"pm"),value:"pm"})}return{minutesData:w,hoursData:h,dayPeriodData:p}}))}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(n,r,e,t){function i(n){return n instanceof e?n:new e((function(r){r(n)}))}return new(e||(e=Promise))((function(e,a){function u(n){try{c(t.next(n))}catch(n){a(n)}}function o(n){try{c(t["throw"](n))}catch(n){a(n)}}function c(n){n.done?e(n.value):i(n.value).then(u,o)}c((t=t.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(n){return function(r){return c([n,r])}}function c(o){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(t=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;i=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){e.label=o[1];break}if(o[0]===6&&e.label<a[1]){e.label=a[1];a=o;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(o);break}if(a[2])e.ops.pop();e.trys.pop();continue}o=r.call(n,e)}catch(n){o=[6,n];i=0}finally{t=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-a69b9fc5.system.js","./p-25180df3.system.js","./p-
|
|
4
|
+
*/System.register(["./p-a69b9fc5.system.js","./p-25180df3.system.js","./p-ff4b7e40.system.js","./p-3ad285e3.system.js"],(function(n,r){"use strict";var e,t,i,a,u;return{setters:[function(n){e=n.c},function(n){t=n.w;i=n.B},function(n){a=n.p},function(n){u=n.r}],execute:function(){var o=this;var c=n("L","ionViewWillEnter");var f=n("a","ionViewDidEnter");var s=n("b","ionViewWillLeave");var v=n("c","ionViewDidLeave");var l=n("d","ionViewWillUnload");var d=function(n){n.tabIndex=-1;n.focus()};var h=function(n){return n.offsetParent!==null};var w=function(){var n=function(n){var r=e.get("focusManagerPriority",false);if(r){var t=document.activeElement;if(t!==null&&(n===null||n===void 0?void 0:n.contains(t))){t.setAttribute(_,"true")}}};var r=function(n){var r=e.get("focusManagerPriority",false);if(Array.isArray(r)&&!n.contains(document.activeElement)){var t=n.querySelector("[".concat(_,"]"));if(t&&h(t)){d(t);return}for(var i=0,u=r;i<u.length;i++){var o=u[i];switch(o){case"content":var c=n.querySelector('main, [role="main"]');if(c&&h(c)){d(c);return}break;case"heading":var f=n.querySelector('h1, [role="heading"][aria-level="1"]');if(f&&h(f)){d(f);return}break;case"banner":var s=n.querySelector('header, [role="banner"]');if(s&&h(s)){d(s);return}break;default:a("Unrecognized focus manager priority value ".concat(o));break}}d(n)}};return{saveViewFocus:n,setViewFocus:r}};var _="ion-last-focus";var b=function(){return r.import("./p-a4565eb5.system.js")};var g=function(){return r.import("./p-17474161.system.js")};var m=w();var p=n("t",(function(n){return new Promise((function(r,e){t((function(){y(n);k(n).then((function(e){if(e.animation){e.animation.destroy()}P(n);r(e)}),(function(r){P(n);e(r)}))}))}))}));var y=function(n){var r=n.enteringEl;var e=n.leavingEl;m.saveViewFocus(e);U(r,e,n.direction);if(n.showGoBack){r.classList.add("can-go-back")}else{r.classList.remove("can-go-back")}F(r,false);r.style.setProperty("pointer-events","none");if(e){F(e,false);e.style.setProperty("pointer-events","none")}};var k=function(n){return __awaiter(o,void 0,void 0,(function(){var r,e;return __generator(this,(function(t){switch(t.label){case 0:return[4,V(n)];case 1:r=t.sent();e=r&&i.isBrowser?j(r,n):E(n);return[2,e]}}))}))};var P=function(n){var r=n.enteringEl;var e=n.leavingEl;r.classList.remove("ion-page-invisible");r.style.removeProperty("pointer-events");if(e!==undefined){e.classList.remove("ion-page-invisible");e.style.removeProperty("pointer-events")}m.setViewFocus(r)};var V=function(n){return __awaiter(o,void 0,void 0,(function(){var r,e;return __generator(this,(function(t){switch(t.label){case 0:if(!n.leavingEl||!n.animated||n.duration===0){return[2,undefined]}if(n.animationBuilder){return[2,n.animationBuilder]}if(!(n.mode==="ios"))return[3,2];return[4,b()];case 1:e=t.sent().iosTransitionAnimation;return[3,4];case 2:return[4,g()];case 3:e=t.sent().mdTransitionAnimation;t.label=4;case 4:r=e;return[2,r]}}))}))};var j=function(n,r){return __awaiter(o,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:return[4,x(r,true)];case 1:i.sent();e=n(r.baseEl,r);M(r.enteringEl,r.leavingEl);return[4,L(e,r)];case 2:t=i.sent();if(r.progressCallback){r.progressCallback(undefined)}if(t){S(r.enteringEl,r.leavingEl)}return[2,{hasCompleted:t,animation:e}]}}))}))};var E=function(n){return __awaiter(o,void 0,void 0,(function(){var r,t,i;return __generator(this,(function(a){switch(a.label){case 0:r=n.enteringEl;t=n.leavingEl;i=e.get("focusManagerPriority",false);return[4,x(n,i)];case 1:a.sent();M(r,t);S(r,t);return[2,{hasCompleted:true}]}}))}))};var x=function(n,r){return __awaiter(o,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=n.deepWait!==undefined?n.deepWait:r;if(!e)return[3,2];return[4,Promise.all([D(n.enteringEl),D(n.leavingEl)])];case 1:t.sent();t.label=2;case 2:return[4,C(n.viewIsReady,n.enteringEl)];case 3:t.sent();return[2]}}))}))};var C=function(n,r){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!n)return[3,2];return[4,n(r)];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};var L=function(n,r){var e=r.progressCallback;var t=new Promise((function(r){n.onFinish((function(n){return r(n===1)}))}));if(e){n.progressStart(true);e(n)}else{n.play()}return t};var M=function(n,r){W(r,s);W(n,c)};var S=function(n,r){W(n,f);W(r,v)};var W=n("l",(function(n,r){if(n){var e=new CustomEvent(r,{bubbles:false,cancelable:false});n.dispatchEvent(e)}}));var A=n("w",(function(){return new Promise((function(n){return u((function(){return u((function(){return n()}))}))}))}));var D=n("e",(function(n){return __awaiter(o,void 0,void 0,(function(){var r,e,t;return __generator(this,(function(i){switch(i.label){case 0:r=n;if(!r)return[3,6];if(!(r.componentOnReady!=null))return[3,2];return[4,r.componentOnReady()];case 1:e=i.sent();if(e!=null){return[2]}return[3,4];case 2:if(!(r.__registerHost!=null))return[3,4];t=new Promise((function(n){return u(n)}));return[4,t];case 3:i.sent();return[2];case 4:return[4,Promise.all(Array.from(r.children).map(D))];case 5:i.sent();i.label=6;case 6:return[2]}}))}))}));var F=n("s",(function(n,r){if(r){n.setAttribute("aria-hidden","true");n.classList.add("ion-page-hidden")}else{n.hidden=false;n.removeAttribute("aria-hidden");n.classList.remove("ion-page-hidden")}}));var U=function(n,r,e){if(n!==undefined){n.style.zIndex=e==="back"?"99":"101"}if(r!==undefined){r.style.zIndex="100"}};var z=n("g",(function(n){if(n.classList.contains("ion-page")){return n}var r=n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");if(r){return r}return n}))}}}));
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(r,n,o){if(o||arguments.length===2)for(var a=0,e=n.length,i;a<e;a++){if(i||!(a in n)){if(!i)i=Array.prototype.slice.call(n,0,a);i[a]=n[a]}}return r.concat(i||Array.prototype.slice.call(n))};
|
|
2
|
+
/*!
|
|
3
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
+
*/System.register([],(function(r){"use strict";return{execute:function(){var n=r("p",(function(r){var n=[];for(var o=1;o<arguments.length;o++){n[o-1]=arguments[o]}return console.warn.apply(console,__spreadArray(["[Ionic Warning]: ".concat(r)],n,false))}));var o=r("a",(function(r){var n=[];for(var o=1;o<arguments.length;o++){n[o-1]=arguments[o]}return console.error.apply(console,__spreadArray(["[Ionic Error]: ".concat(r)],n,false))}));var a=r("b",(function(r){var n=[];for(var o=1;o<arguments.length;o++){n[o-1]=arguments[o]}return console.error("<".concat(r.tagName.toLowerCase(),"> must be used inside ").concat(n.join(" or "),"."))}))}}}));
|
|
@@ -76,12 +76,6 @@ export declare class Toggle implements ComponentInterface {
|
|
|
76
76
|
* Setting this property will change the toggle `display` to `block`.
|
|
77
77
|
*/
|
|
78
78
|
alignment?: 'start' | 'center';
|
|
79
|
-
/**
|
|
80
|
-
* If true, screen readers will announce it as a required field. This property
|
|
81
|
-
* works only for accessibility purposes, it will not prevent the form from
|
|
82
|
-
* submitting if the value is invalid.
|
|
83
|
-
*/
|
|
84
|
-
required: boolean;
|
|
85
79
|
/**
|
|
86
80
|
* Emitted when the user switches the toggle on or off.
|
|
87
81
|
*
|
|
@@ -8,10 +8,6 @@ import type { Color, StyleEventDetail } from '../../interface';
|
|
|
8
8
|
* @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
|
|
9
9
|
* @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
|
|
10
10
|
* @slot end - Content is placed to the right of the toolbar text in LTR, and to the left in RTL.
|
|
11
|
-
*
|
|
12
|
-
* @part background - The background of the toolbar, covering the entire area behind the toolbar content.
|
|
13
|
-
* @part container - The container that wraps all toolbar content, including the default slot and named slot content.
|
|
14
|
-
* @part content - The container for the default slot, wrapping content provided without a named slot.
|
|
15
11
|
*/
|
|
16
12
|
export declare class Toolbar implements ComponentInterface {
|
|
17
13
|
private childrenStyles;
|
|
@@ -3280,10 +3280,6 @@ export namespace Components {
|
|
|
3280
3280
|
* The name of the control, which is submitted with the form data.
|
|
3281
3281
|
*/
|
|
3282
3282
|
"name": string;
|
|
3283
|
-
/**
|
|
3284
|
-
* If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid.
|
|
3285
|
-
*/
|
|
3286
|
-
"required": boolean;
|
|
3287
3283
|
/**
|
|
3288
3284
|
* The value of the toggle does not mean if it's checked or not, use the `checked` property for that. The value of a toggle is analogous to the value of a `<input type="checkbox">`, it's only used when the toggle participates in a native `<form>`.
|
|
3289
3285
|
*/
|
|
@@ -8017,10 +8013,6 @@ declare namespace LocalJSX {
|
|
|
8017
8013
|
* Emitted when the toggle has focus.
|
|
8018
8014
|
*/
|
|
8019
8015
|
"onIonFocus"?: (event: IonToggleCustomEvent<void>) => void;
|
|
8020
|
-
/**
|
|
8021
|
-
* If true, screen readers will announce it as a required field. This property works only for accessibility purposes, it will not prevent the form from submitting if the value is invalid.
|
|
8022
|
-
*/
|
|
8023
|
-
"required"?: boolean;
|
|
8024
8016
|
/**
|
|
8025
8017
|
* The value of the toggle does not mean if it's checked or not, use the `checked` property for that. The value of a toggle is analogous to the value of a `<input type="checkbox">`, it's only used when the toggle participates in a native `<form>`.
|
|
8026
8018
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { SpinnerTypes } from '../components/spinner/spinner-configs';
|
|
2
2
|
import type { TabButtonLayout } from '../components/tab-bar/tab-bar-interface';
|
|
3
3
|
import type { AnimationBuilder, Mode } from '../interface';
|
|
4
|
-
import type { LogLevel } from './logging';
|
|
5
4
|
import type { PlatformConfig } from './platform';
|
|
6
5
|
export interface IonicConfig {
|
|
7
6
|
/**
|
|
@@ -180,14 +179,6 @@ export interface IonicConfig {
|
|
|
180
179
|
* Note that the `hardwareBackButton` config option must also be `true`.
|
|
181
180
|
*/
|
|
182
181
|
experimentalCloseWatcher?: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Configures the logging level for Ionic Framework:
|
|
185
|
-
*
|
|
186
|
-
* - `'OFF'`: No errors or warnings are logged.
|
|
187
|
-
* - `'ERROR'`: Logs only errors.
|
|
188
|
-
* - `'WARN'`: Logs errors and warnings.
|
|
189
|
-
*/
|
|
190
|
-
logLevel?: LogLevel;
|
|
191
182
|
keyboardHeight?: number;
|
|
192
183
|
inputShims?: boolean;
|
|
193
184
|
scrollPadding?: boolean;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
export declare const enum LogLevel {
|
|
2
|
-
OFF = "OFF",
|
|
3
|
-
ERROR = "ERROR",
|
|
4
|
-
WARN = "WARN"
|
|
5
|
-
}
|
|
6
1
|
/**
|
|
7
2
|
* Logs a warning to the console with an Ionic prefix
|
|
8
3
|
* to indicate the library that is warning the developer.
|
|
@@ -10,14 +5,7 @@ export declare const enum LogLevel {
|
|
|
10
5
|
* @param message - The string message to be logged to the console.
|
|
11
6
|
*/
|
|
12
7
|
export declare const printIonWarning: (message: string, ...params: any[]) => void;
|
|
13
|
-
|
|
14
|
-
* Logs an error to the console with an Ionic prefix
|
|
15
|
-
* to indicate the library that is warning the developer.
|
|
16
|
-
*
|
|
17
|
-
* @param message - The string message to be logged to the console.
|
|
18
|
-
* @param params - Additional arguments to supply to the console.error.
|
|
19
|
-
*/
|
|
20
|
-
export declare const printIonError: (message: string, ...params: any[]) => void;
|
|
8
|
+
export declare const printIonError: (message: string, ...params: any) => void;
|
|
21
9
|
/**
|
|
22
10
|
* Prints an error informing developers that an implementation requires an element to be used
|
|
23
11
|
* within a specific selector.
|
package/hydrate/index.js
CHANGED
|
@@ -3217,12 +3217,9 @@ let accordionIds = 0;
|
|
|
3217
3217
|
* @param message - The string message to be logged to the console.
|
|
3218
3218
|
*/
|
|
3219
3219
|
const printIonWarning = (message, ...params) => {
|
|
3220
|
-
|
|
3221
|
-
if (["WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
3222
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3223
|
-
}
|
|
3220
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3224
3221
|
};
|
|
3225
|
-
|
|
3222
|
+
/*
|
|
3226
3223
|
* Logs an error to the console with an Ionic prefix
|
|
3227
3224
|
* to indicate the library that is warning the developer.
|
|
3228
3225
|
*
|
|
@@ -3230,10 +3227,7 @@ const printIonWarning = (message, ...params) => {
|
|
|
3230
3227
|
* @param params - Additional arguments to supply to the console.error.
|
|
3231
3228
|
*/
|
|
3232
3229
|
const printIonError = (message, ...params) => {
|
|
3233
|
-
|
|
3234
|
-
if (["ERROR" /* LogLevel.ERROR */, "WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
3235
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3236
|
-
}
|
|
3230
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3237
3231
|
};
|
|
3238
3232
|
/**
|
|
3239
3233
|
* Prints an error informing developers that an implementation requires an element to be used
|
|
@@ -27096,10 +27090,12 @@ class RippleEffect {
|
|
|
27096
27090
|
}; }
|
|
27097
27091
|
}
|
|
27098
27092
|
const removeRipple = (ripple) => {
|
|
27093
|
+
if (!ripple.parentNode)
|
|
27094
|
+
return;
|
|
27099
27095
|
ripple.classList.add('fade-out');
|
|
27100
|
-
|
|
27096
|
+
ripple.addEventListener('transitionend', () => {
|
|
27101
27097
|
ripple.remove();
|
|
27102
|
-
},
|
|
27098
|
+
}, { once: true });
|
|
27103
27099
|
};
|
|
27104
27100
|
const PADDING = 10;
|
|
27105
27101
|
const INITIAL_ORIGIN_SCALE = 0.5;
|
|
@@ -32631,7 +32627,6 @@ class Toggle {
|
|
|
32631
32627
|
this.labelPlacement = 'start';
|
|
32632
32628
|
this.justify = undefined;
|
|
32633
32629
|
this.alignment = undefined;
|
|
32634
|
-
this.required = false;
|
|
32635
32630
|
}
|
|
32636
32631
|
disabledChanged() {
|
|
32637
32632
|
if (this.gesture) {
|
|
@@ -32713,12 +32708,12 @@ class Toggle {
|
|
|
32713
32708
|
return this.el.textContent !== '';
|
|
32714
32709
|
}
|
|
32715
32710
|
render() {
|
|
32716
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment
|
|
32711
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
32717
32712
|
const mode = getIonMode$1(this);
|
|
32718
32713
|
const value = this.getValue();
|
|
32719
32714
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
32720
32715
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
32721
|
-
return (hAsync(Host, { key: '
|
|
32716
|
+
return (hAsync(Host, { key: 'f52195ec3bc14c024647cb41319c32a4cd330e19', onClick: this.onClick, class: createColorClasses$1(color, {
|
|
32722
32717
|
[mode]: true,
|
|
32723
32718
|
'in-item': hostContext('ion-item', el),
|
|
32724
32719
|
'toggle-activated': activated,
|
|
@@ -32728,10 +32723,10 @@ class Toggle {
|
|
|
32728
32723
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
32729
32724
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
32730
32725
|
[`toggle-${rtl}`]: true,
|
|
32731
|
-
}) }, hAsync("label", { key: '
|
|
32726
|
+
}) }, hAsync("label", { key: 'f8b3a215ad85b2cee611ad63449b584e1640f27f', class: "toggle-wrapper" }, hAsync("input", Object.assign({ key: 'f387b1ea840737a9737917e516834c887be99c09', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), hAsync("div", { key: '936af880db59fe377cd2de9101eb28a1c4fb8914', class: {
|
|
32732
32727
|
'label-text-wrapper': true,
|
|
32733
32728
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
32734
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
32729
|
+
}, part: "label" }, hAsync("slot", { key: '80a6672e2e792c15011a9496dcd75363cdba31c6' })), hAsync("div", { key: '2b2b318b38ab27b194c0dab4cecd77d9d780f2ca', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
32735
32730
|
}
|
|
32736
32731
|
get el() { return getElement(this); }
|
|
32737
32732
|
static get watchers() { return {
|
|
@@ -32754,7 +32749,6 @@ class Toggle {
|
|
|
32754
32749
|
"labelPlacement": [1, "label-placement"],
|
|
32755
32750
|
"justify": [1],
|
|
32756
32751
|
"alignment": [1],
|
|
32757
|
-
"required": [4],
|
|
32758
32752
|
"activated": [32]
|
|
32759
32753
|
},
|
|
32760
32754
|
"$listeners$": undefined,
|
|
@@ -32786,10 +32780,6 @@ var IonToolbarMdStyle0 = toolbarMdCss;
|
|
|
32786
32780
|
* @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
|
|
32787
32781
|
* @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
|
|
32788
32782
|
* @slot end - Content is placed to the right of the toolbar text in LTR, and to the left in RTL.
|
|
32789
|
-
*
|
|
32790
|
-
* @part background - The background of the toolbar, covering the entire area behind the toolbar content.
|
|
32791
|
-
* @part container - The container that wraps all toolbar content, including the default slot and named slot content.
|
|
32792
|
-
* @part content - The container for the default slot, wrapping content provided without a named slot.
|
|
32793
32783
|
*/
|
|
32794
32784
|
class Toolbar {
|
|
32795
32785
|
constructor(hostRef) {
|
|
@@ -32840,10 +32830,10 @@ class Toolbar {
|
|
|
32840
32830
|
this.childrenStyles.forEach((value) => {
|
|
32841
32831
|
Object.assign(childStyles, value);
|
|
32842
32832
|
});
|
|
32843
|
-
return (hAsync(Host, { key: '
|
|
32833
|
+
return (hAsync(Host, { key: '462538a5ecd01baf3cde116c9f029aeda26c81be', class: Object.assign(Object.assign({}, childStyles), createColorClasses$1(this.color, {
|
|
32844
32834
|
[mode]: true,
|
|
32845
32835
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
32846
|
-
})) }, hAsync("div", { key: '
|
|
32836
|
+
})) }, hAsync("div", { key: 'c0b4415d3b2472de643a9be7cb3b13b3b628621b', class: "toolbar-background" }), hAsync("div", { key: '0ccb8a2dbeaa28d8f9bed87629c0c097446690c2', class: "toolbar-container" }, hAsync("slot", { key: '3e726dac359e923df21d80301651f16063a3de20', name: "start" }), hAsync("slot", { key: 'cd799330b56a7f8833bc61bb2807aafb21846f71', name: "secondary" }), hAsync("div", { key: '395282e6ac8c53576922dcdb5f08c25d34638c86', class: "toolbar-content" }, hAsync("slot", { key: 'a437c60e4ba5aae65e55169ae82a6f379868ec1d' })), hAsync("slot", { key: '711af9b9d321a7b31ede924c9bdcad767aa9a1ca', name: "primary" }), hAsync("slot", { key: 'ecc02edeaf80a837890bcb08d5096df1e22a0b9a', name: "end" }))));
|
|
32847
32837
|
}
|
|
32848
32838
|
get el() { return getElement(this); }
|
|
32849
32839
|
static get style() { return {
|
package/hydrate/index.mjs
CHANGED
|
@@ -3213,12 +3213,9 @@ let accordionIds = 0;
|
|
|
3213
3213
|
* @param message - The string message to be logged to the console.
|
|
3214
3214
|
*/
|
|
3215
3215
|
const printIonWarning = (message, ...params) => {
|
|
3216
|
-
|
|
3217
|
-
if (["WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
3218
|
-
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3219
|
-
}
|
|
3216
|
+
return console.warn(`[Ionic Warning]: ${message}`, ...params);
|
|
3220
3217
|
};
|
|
3221
|
-
|
|
3218
|
+
/*
|
|
3222
3219
|
* Logs an error to the console with an Ionic prefix
|
|
3223
3220
|
* to indicate the library that is warning the developer.
|
|
3224
3221
|
*
|
|
@@ -3226,10 +3223,7 @@ const printIonWarning = (message, ...params) => {
|
|
|
3226
3223
|
* @param params - Additional arguments to supply to the console.error.
|
|
3227
3224
|
*/
|
|
3228
3225
|
const printIonError = (message, ...params) => {
|
|
3229
|
-
|
|
3230
|
-
if (["ERROR" /* LogLevel.ERROR */, "WARN" /* LogLevel.WARN */].includes(logLevel)) {
|
|
3231
|
-
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3232
|
-
}
|
|
3226
|
+
return console.error(`[Ionic Error]: ${message}`, ...params);
|
|
3233
3227
|
};
|
|
3234
3228
|
/**
|
|
3235
3229
|
* Prints an error informing developers that an implementation requires an element to be used
|
|
@@ -27092,10 +27086,12 @@ class RippleEffect {
|
|
|
27092
27086
|
}; }
|
|
27093
27087
|
}
|
|
27094
27088
|
const removeRipple = (ripple) => {
|
|
27089
|
+
if (!ripple.parentNode)
|
|
27090
|
+
return;
|
|
27095
27091
|
ripple.classList.add('fade-out');
|
|
27096
|
-
|
|
27092
|
+
ripple.addEventListener('transitionend', () => {
|
|
27097
27093
|
ripple.remove();
|
|
27098
|
-
},
|
|
27094
|
+
}, { once: true });
|
|
27099
27095
|
};
|
|
27100
27096
|
const PADDING = 10;
|
|
27101
27097
|
const INITIAL_ORIGIN_SCALE = 0.5;
|
|
@@ -32627,7 +32623,6 @@ class Toggle {
|
|
|
32627
32623
|
this.labelPlacement = 'start';
|
|
32628
32624
|
this.justify = undefined;
|
|
32629
32625
|
this.alignment = undefined;
|
|
32630
|
-
this.required = false;
|
|
32631
32626
|
}
|
|
32632
32627
|
disabledChanged() {
|
|
32633
32628
|
if (this.gesture) {
|
|
@@ -32709,12 +32704,12 @@ class Toggle {
|
|
|
32709
32704
|
return this.el.textContent !== '';
|
|
32710
32705
|
}
|
|
32711
32706
|
render() {
|
|
32712
|
-
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment
|
|
32707
|
+
const { activated, color, checked, disabled, el, justify, labelPlacement, inputId, name, alignment } = this;
|
|
32713
32708
|
const mode = getIonMode$1(this);
|
|
32714
32709
|
const value = this.getValue();
|
|
32715
32710
|
const rtl = isRTL$1(el) ? 'rtl' : 'ltr';
|
|
32716
32711
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
32717
|
-
return (hAsync(Host, { key: '
|
|
32712
|
+
return (hAsync(Host, { key: 'f52195ec3bc14c024647cb41319c32a4cd330e19', onClick: this.onClick, class: createColorClasses$1(color, {
|
|
32718
32713
|
[mode]: true,
|
|
32719
32714
|
'in-item': hostContext('ion-item', el),
|
|
32720
32715
|
'toggle-activated': activated,
|
|
@@ -32724,10 +32719,10 @@ class Toggle {
|
|
|
32724
32719
|
[`toggle-alignment-${alignment}`]: alignment !== undefined,
|
|
32725
32720
|
[`toggle-label-placement-${labelPlacement}`]: true,
|
|
32726
32721
|
[`toggle-${rtl}`]: true,
|
|
32727
|
-
}) }, hAsync("label", { key: '
|
|
32722
|
+
}) }, hAsync("label", { key: 'f8b3a215ad85b2cee611ad63449b584e1640f27f', class: "toggle-wrapper" }, hAsync("input", Object.assign({ key: 'f387b1ea840737a9737917e516834c887be99c09', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), hAsync("div", { key: '936af880db59fe377cd2de9101eb28a1c4fb8914', class: {
|
|
32728
32723
|
'label-text-wrapper': true,
|
|
32729
32724
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
32730
|
-
}, part: "label" }, hAsync("slot", { key: '
|
|
32725
|
+
}, part: "label" }, hAsync("slot", { key: '80a6672e2e792c15011a9496dcd75363cdba31c6' })), hAsync("div", { key: '2b2b318b38ab27b194c0dab4cecd77d9d780f2ca', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
32731
32726
|
}
|
|
32732
32727
|
get el() { return getElement(this); }
|
|
32733
32728
|
static get watchers() { return {
|
|
@@ -32750,7 +32745,6 @@ class Toggle {
|
|
|
32750
32745
|
"labelPlacement": [1, "label-placement"],
|
|
32751
32746
|
"justify": [1],
|
|
32752
32747
|
"alignment": [1],
|
|
32753
|
-
"required": [4],
|
|
32754
32748
|
"activated": [32]
|
|
32755
32749
|
},
|
|
32756
32750
|
"$listeners$": undefined,
|
|
@@ -32782,10 +32776,6 @@ var IonToolbarMdStyle0 = toolbarMdCss;
|
|
|
32782
32776
|
* @slot secondary - Content is placed to the left of the toolbar text in `ios` mode, and directly to the right in `md` mode.
|
|
32783
32777
|
* @slot primary - Content is placed to the right of the toolbar text in `ios` mode, and to the far right in `md` mode.
|
|
32784
32778
|
* @slot end - Content is placed to the right of the toolbar text in LTR, and to the left in RTL.
|
|
32785
|
-
*
|
|
32786
|
-
* @part background - The background of the toolbar, covering the entire area behind the toolbar content.
|
|
32787
|
-
* @part container - The container that wraps all toolbar content, including the default slot and named slot content.
|
|
32788
|
-
* @part content - The container for the default slot, wrapping content provided without a named slot.
|
|
32789
32779
|
*/
|
|
32790
32780
|
class Toolbar {
|
|
32791
32781
|
constructor(hostRef) {
|
|
@@ -32836,10 +32826,10 @@ class Toolbar {
|
|
|
32836
32826
|
this.childrenStyles.forEach((value) => {
|
|
32837
32827
|
Object.assign(childStyles, value);
|
|
32838
32828
|
});
|
|
32839
|
-
return (hAsync(Host, { key: '
|
|
32829
|
+
return (hAsync(Host, { key: '462538a5ecd01baf3cde116c9f029aeda26c81be', class: Object.assign(Object.assign({}, childStyles), createColorClasses$1(this.color, {
|
|
32840
32830
|
[mode]: true,
|
|
32841
32831
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
32842
|
-
})) }, hAsync("div", { key: '
|
|
32832
|
+
})) }, hAsync("div", { key: 'c0b4415d3b2472de643a9be7cb3b13b3b628621b', class: "toolbar-background" }), hAsync("div", { key: '0ccb8a2dbeaa28d8f9bed87629c0c097446690c2', class: "toolbar-container" }, hAsync("slot", { key: '3e726dac359e923df21d80301651f16063a3de20', name: "start" }), hAsync("slot", { key: 'cd799330b56a7f8833bc61bb2807aafb21846f71', name: "secondary" }), hAsync("div", { key: '395282e6ac8c53576922dcdb5f08c25d34638c86', class: "toolbar-content" }, hAsync("slot", { key: 'a437c60e4ba5aae65e55169ae82a6f379868ec1d' })), hAsync("slot", { key: '711af9b9d321a7b31ede924c9bdcad767aa9a1ca', name: "primary" }), hAsync("slot", { key: 'ecc02edeaf80a837890bcb08d5096df1e22a0b9a', name: "end" }))));
|
|
32843
32833
|
}
|
|
32844
32834
|
get el() { return getElement(this); }
|
|
32845
32835
|
static get style() { return {
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{__spreadArray}from"tslib";
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{c as config}from"./ionic-global-c81d82ab.js";var printIonWarning=function(r){var o=[];for(var n=1;n<arguments.length;n++){o[n-1]=arguments[n]}var a=config.get("logLevel","WARN");if(["WARN"].includes(a)){return console.warn.apply(console,__spreadArray(["[Ionic Warning]: ".concat(r)],o,false))}};var printIonError=function(r){var o=[];for(var n=1;n<arguments.length;n++){o[n-1]=arguments[n]}var a=config.get("logLevel","ERROR");if(["ERROR","WARN"].includes(a)){return console.error.apply(console,__spreadArray(["[Ionic Error]: ".concat(r)],o,false))}};var printRequiredElementError=function(r){var o=[];for(var n=1;n<arguments.length;n++){o[n-1]=arguments[n]}return console.error("<".concat(r.tagName.toLowerCase(),"> must be used inside ").concat(o.join(" or "),"."))};export{printIonError as a,printRequiredElementError as b,printIonWarning as p};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{__awaiter,__generator,__spreadArray}from"tslib";
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{w as win,d as doc}from"./index-a5d50daf.js";import{g as getScrollElement,c as scrollByPoint,f as findClosestIonContent}from"./index-efb8ecdf.js";import{a as addEventListener,b as removeEventListener,r as raf,c as componentOnReady}from"./helpers-da915de8.js";import{a as KeyboardResize,K as Keyboard}from"./keyboard-73175e24.js";import"./index-6ad967f3.js";import"./ionic-global-c81d82ab.js";import"./index-28849c61.js";import"./capacitor-59395cbd.js";var cloneMap=new WeakMap;var relocateInput=function(r,n,e,t,i){if(t===void 0){t=0}if(i===void 0){i=false}if(cloneMap.has(r)===e){return}if(e){addClone(r,n,t,i)}else{removeClone(r,n)}};var isFocused=function(r){return r===r.getRootNode().activeElement};var addClone=function(r,n,e,t){if(t===void 0){t=false}var i=n.parentNode;var o=n.cloneNode(false);o.classList.add("cloned-input");o.tabIndex=-1;if(t){o.disabled=true}i.appendChild(o);cloneMap.set(r,o);var a=r.ownerDocument;var u=a.dir==="rtl"?9999:-9999;r.style.pointerEvents="none";n.style.transform="translate3d(".concat(u,"px,").concat(e,"px,0) scale(0)")};var removeClone=function(r,n){var e=cloneMap.get(r);if(e){cloneMap.delete(r);e.remove()}r.style.pointerEvents="";n.style.transform=""};var SCROLL_AMOUNT_PADDING=50;var enableHideCaretOnScroll=function(r,n,e){if(!e||!n){return function(){return}}var t=function(e){if(isFocused(n)){relocateInput(r,n,e)}};var i=function(){return relocateInput(r,n,false)};var o=function(){return t(true)};var a=function(){return t(false)};addEventListener(e,"ionScrollStart",o);addEventListener(e,"ionScrollEnd",a);n.addEventListener("blur",i);return function(){removeEventListener(e,"ionScrollStart",o);removeEventListener(e,"ionScrollEnd",a);n.removeEventListener("blur",i)}};var SKIP_SELECTOR="input, textarea, [no-blur], [contenteditable]";var enableInputBlurring=function(){var r=true;var n=false;var e=document;var t=function(){n=true};var i=function(){r=true};var o=function(t){if(n){n=false;return}var i=e.activeElement;if(!i){return}if(i.matches(SKIP_SELECTOR)){return}var o=t.target;if(o===i){return}if(o.matches(SKIP_SELECTOR)||o.closest(SKIP_SELECTOR)){return}r=false;setTimeout((function(){if(!r){i.blur()}}),50)};addEventListener(e,"ionScrollStart",t);e.addEventListener("focusin",i,true);e.addEventListener("touchend",o,false);return function(){removeEventListener(e,"ionScrollStart",t,true);e.removeEventListener("focusin",i,true);e.removeEventListener("touchend",o,false)}};var SCROLL_ASSIST_SPEED=.3;var getScrollData=function(r,n,e,t){var i;var o=(i=r.closest("ion-item,[ion-item]"))!==null&&i!==void 0?i:r;return calcScrollData(o.getBoundingClientRect(),n.getBoundingClientRect(),e,t)};var calcScrollData=function(r,n,e,t){var i=r.top;var o=r.bottom;var a=n.top;var u=Math.min(n.bottom,t-e);var c=a+15;var d=u-SCROLL_AMOUNT_PADDING;var f=d-o;var l=c-i;var s=Math.round(f<0?-f:l>0?-l:0);var v=Math.min(s,i-a);var S=Math.abs(v);var _=S/SCROLL_ASSIST_SPEED;var w=Math.min(400,Math.max(150,_));return{scrollAmount:v,scrollDuration:w,scrollPadding:e,inputSafeY:-(i-c)+4}};var PADDING_TIMER_KEY="$ionPaddingTimer";var setScrollPadding=function(r,n,e){var t=r[PADDING_TIMER_KEY];if(t){clearTimeout(t)}if(n>0){r.style.setProperty("--keyboard-offset","".concat(n,"px"))}else{r[PADDING_TIMER_KEY]=setTimeout((function(){r.style.setProperty("--keyboard-offset","0px");if(e){e()}}),120)}};var setClearScrollPaddingListener=function(r,n,e){var t=function(){if(n){setScrollPadding(n,0,e)}};r.addEventListener("focusout",t,{once:true})};var currentPadding=0;var SKIP_SCROLL_ASSIST="data-ionic-skip-scroll-assist";var enableScrollAssist=function(r,n,e,t,i,o,a,u){if(u===void 0){u=false}var c=o&&(a===undefined||a.mode===KeyboardResize.None);var d=false;var f=win!==undefined?win.innerHeight:0;var l=function(i){if(d===false){d=true;return}jsSetFocus(r,n,e,t,i.detail.keyboardHeight,c,u,f,false)};var s=function(){d=false;win===null||win===void 0?void 0:win.removeEventListener("ionKeyboardDidShow",l);r.removeEventListener("focusout",s)};var v=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(o){if(n.hasAttribute(SKIP_SCROLL_ASSIST)){n.removeAttribute(SKIP_SCROLL_ASSIST);return[2]}jsSetFocus(r,n,e,t,i,c,u,f);win===null||win===void 0?void 0:win.addEventListener("ionKeyboardDidShow",l);r.addEventListener("focusout",s);return[2]}))}))};r.addEventListener("focusin",v);return function(){r.removeEventListener("focusin",v);win===null||win===void 0?void 0:win.removeEventListener("ionKeyboardDidShow",l);r.removeEventListener("focusout",s)}};var setManualFocus=function(r){if(document.activeElement===r){return}r.setAttribute(SKIP_SCROLL_ASSIST,"true");r.focus()};var jsSetFocus=function(r,n,e,t,i,o){var a=[];for(var u=6;u<arguments.length;u++){a[u-6]=arguments[u]}return __awaiter(void 0,__spreadArray([r,n,e,t,i,o],a,true),void 0,(function(r,n,e,t,i,o,a,u,c){var d,f,l,s,v,S;if(a===void 0){a=false}if(u===void 0){u=0}if(c===void 0){c=true}return __generator(this,(function(_){switch(_.label){case 0:if(!e&&!t){return[2]}d=getScrollData(r,e||t,i,u);if(e&&Math.abs(d.scrollAmount)<4){setManualFocus(n);if(o&&e!==null){setScrollPadding(e,currentPadding);setClearScrollPaddingListener(n,e,(function(){return currentPadding=0}))}return[2]}relocateInput(r,n,true,d.inputSafeY,a);setManualFocus(n);raf((function(){return r.click()}));if(o&&e){currentPadding=d.scrollPadding;setScrollPadding(e,currentPadding)}if(!(typeof window!=="undefined"))return[3,3];l=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(f!==undefined){clearTimeout(f)}window.removeEventListener("ionKeyboardDidShow",s);window.removeEventListener("ionKeyboardDidShow",l);if(!e)return[3,2];return[4,scrollByPoint(e,0,d.scrollAmount,d.scrollDuration)];case 1:t.sent();t.label=2;case 2:relocateInput(r,n,false,d.inputSafeY);setManualFocus(n);if(o){setClearScrollPaddingListener(n,e,(function(){return currentPadding=0}))}return[2]}}))}))};s=function(){window.removeEventListener("ionKeyboardDidShow",s);window.addEventListener("ionKeyboardDidShow",l)};if(!e)return[3,2];return[4,getScrollElement(e)];case 1:v=_.sent();S=v.scrollHeight-v.clientHeight;if(c&&d.scrollAmount>S-v.scrollTop){if(n.type==="password"){d.scrollAmount+=SCROLL_AMOUNT_PADDING;window.addEventListener("ionKeyboardDidShow",s)}else{window.addEventListener("ionKeyboardDidShow",l)}f=setTimeout(l,1e3);return[2]}_.label=2;case 2:l();_.label=3;case 3:return[2]}}))}))};var INPUT_BLURRING=true;var startInputShims=function(r,n){return __awaiter(void 0,void 0,void 0,(function(){var e,t,i,o,a,u,c,d,f,l,s,v,S,_,w,p;return __generator(this,(function(I){switch(I.label){case 0:if(doc===undefined){return[2]}e=n==="ios";t=n==="android";i=r.getNumber("keyboardHeight",290);o=r.getBoolean("scrollAssist",true);a=r.getBoolean("hideCaretOnScroll",e);u=r.getBoolean("inputBlurring",false);c=r.getBoolean("scrollPadding",true);d=Array.from(doc.querySelectorAll("ion-input, ion-textarea"));f=new WeakMap;l=new WeakMap;return[4,Keyboard.getResizeMode()];case 1:s=I.sent();v=function(r){return __awaiter(void 0,void 0,void 0,(function(){var n,e,u,d,v,S,v;return __generator(this,(function(_){switch(_.label){case 0:return[4,new Promise((function(n){return componentOnReady(r,n)}))];case 1:_.sent();n=r.shadowRoot||r;e=n.querySelector("input")||n.querySelector("textarea");u=findClosestIonContent(r);d=!u?r.closest("ion-footer"):null;if(!e){return[2]}if(!!u&&a&&!f.has(r)){v=enableHideCaretOnScroll(r,e,u);f.set(r,v)}S=e.type==="date"||e.type==="datetime-local";if(!S&&(!!u||!!d)&&o&&!l.has(r)){v=enableScrollAssist(r,e,u,d,i,c,s,t);l.set(r,v)}return[2]}}))}))};S=function(r){if(a){var n=f.get(r);if(n){n()}f.delete(r)}if(o){var n=l.get(r);if(n){n()}l.delete(r)}};if(u&&INPUT_BLURRING){enableInputBlurring()}for(_=0,w=d;_<w.length;_++){p=w[_];v(p)}doc.addEventListener("ionInputDidLoad",(function(r){v(r.detail)}));doc.addEventListener("ionInputDidUnload",(function(r){S(r.detail)}));return[2]}}))}))};export{startInputShims};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{__awaiter,__generator}from"tslib";
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{e as readTask,w as writeTask}from"./index-28849c61.js";import{f as findClosestIonContent,s as scrollToTop}from"./index-efb8ecdf.js";import{c as componentOnReady}from"./helpers-da915de8.js";import"./index-6ad967f3.js";import"./ionic-global-c81d82ab.js";var startStatusTap=function(){var o=window;o.addEventListener("statusTap",(function(){readTask((function(){var t=o.innerWidth;var r=o.innerHeight;var n=document.elementFromPoint(t/2,r/2);if(!n){return}var e=findClosestIonContent(n);if(e){new Promise((function(o){return componentOnReady(e,o)})).then((function(){writeTask((function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:e.style.setProperty("--overflow","hidden");return[4,scrollToTop(e,300)];case 1:o.sent();e.style.removeProperty("--overflow");return[2]}}))}))}))}))}}))}))};export{startStatusTap};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(n,r,t,i){function e(n){return n instanceof t?n:new t((function(r){r(n)}))}return new(t||(t=Promise))((function(t,o){function a(n){try{f(i.next(n))}catch(n){o(n)}}function u(n){try{f(i["throw"](n))}catch(n){o(n)}}function f(n){n.done?t(n.value):e(n.value).then(a,u)}f((i=i.apply(n,r||[])).next())}))};var __generator=this&&this.__generator||function(n,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,e,o,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(n){return function(r){return f([n,r])}}function f(u){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(t=0)),t)try{if(i=1,e&&(o=u[0]&2?e["return"]:u[0]?e["throw"]||((o=e["return"])&&o.call(e),0):e.next)&&!(o=o.call(e,u[1])).done)return o;if(e=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;e=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1];o=u;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(u);break}if(o[2])t.ops.pop();t.trys.pop();continue}u=r.call(n,t)}catch(n){u=[6,n];e=0}finally{i=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,r,t){if(t||arguments.length===2)for(var i=0,e=r.length,o;i<e;i++){if(o||!(i in r)){if(!o)o=Array.prototype.slice.call(r,0,i);o[i]=r[i]}}return n.concat(o||Array.prototype.slice.call(r))};
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-792919fd.system.js","./p-a88dec0d.system.js","./p-3ad285e3.system.js","./p-b06ac4a5.system.js","./p-67222c16.system.js","./p-a69b9fc5.system.js","./p-25180df3.system.js","./p-8985cdb6.system.js"],(function(n){"use strict";var r,t,i,e,o,a,u,f,c,s,v;return{setters:[function(n){r=n.w;t=n.d},function(n){i=n.g;e=n.c;o=n.f},function(n){a=n.a;u=n.b;f=n.r;c=n.c},function(n){s=n.a;v=n.K},function(){},function(){},function(){},function(){}],execute:function(){var d=this;var l=new WeakMap;var h=function(n,r,t,i,e){if(i===void 0){i=0}if(e===void 0){e=false}if(l.has(n)===t){return}if(t){y(n,r,i,e)}else{p(n,r)}};var w=function(n){return n===n.getRootNode().activeElement};var y=function(n,r,t,i){if(i===void 0){i=false}var e=r.parentNode;var o=r.cloneNode(false);o.classList.add("cloned-input");o.tabIndex=-1;if(i){o.disabled=true}e.appendChild(o);l.set(n,o);var a=n.ownerDocument;var u=a.dir==="rtl"?9999:-9999;n.style.pointerEvents="none";r.style.transform="translate3d(".concat(u,"px,").concat(t,"px,0) scale(0)")};var p=function(n,r){var t=l.get(n);if(t){l.delete(n);t.remove()}n.style.pointerEvents="";r.style.transform=""};var _=50;var b=function(n,r,t){if(!t||!r){return function(){return}}var i=function(t){if(w(r)){h(n,r,t)}};var e=function(){return h(n,r,false)};var o=function(){return i(true)};var f=function(){return i(false)};a(t,"ionScrollStart",o);a(t,"ionScrollEnd",f);r.addEventListener("blur",e);return function(){u(t,"ionScrollStart",o);u(t,"ionScrollEnd",f);r.removeEventListener("blur",e)}};var m="input, textarea, [no-blur], [contenteditable]";var S=function(){var n=true;var r=false;var t=document;var i=function(){r=true};var e=function(){n=true};var o=function(i){if(r){r=false;return}var e=t.activeElement;if(!e){return}if(e.matches(m)){return}var o=i.target;if(o===e){return}if(o.matches(m)||o.closest(m)){return}n=false;setTimeout((function(){if(!n){e.blur()}}),50)};a(t,"ionScrollStart",i);t.addEventListener("focusin",e,true);t.addEventListener("touchend",o,false);return function(){u(t,"ionScrollStart",i,true);t.removeEventListener("focusin",e,true);t.removeEventListener("touchend",o,false)}};var g=.3;var D=function(n,r,t,i){var e;var o=(e=n.closest("ion-item,[ion-item]"))!==null&&e!==void 0?e:n;return k(o.getBoundingClientRect(),r.getBoundingClientRect(),t,i)};var k=function(n,r,t,i){var e=n.top;var o=n.bottom;var a=r.top;var u=Math.min(r.bottom,i-t);var f=a+15;var c=u-_;var s=c-o;var v=f-e;var d=Math.round(s<0?-s:v>0?-v:0);var l=Math.min(d,e-a);var h=Math.abs(l);var w=h/g;var y=Math.min(400,Math.max(150,w));return{scrollAmount:l,scrollDuration:y,scrollPadding:t,inputSafeY:-(e-f)+4}};var x="$ionPaddingTimer";var M=function(n,r,t){var i=n[x];if(i){clearTimeout(i)}if(r>0){n.style.setProperty("--keyboard-offset","".concat(r,"px"))}else{n[x]=setTimeout((function(){n.style.setProperty("--keyboard-offset","0px");if(t){t()}}),120)}};var K=function(n,r,t){var i=function(){if(r){M(r,0,t)}};n.addEventListener("focusout",i,{once:true})};var j=0;var A="data-ionic-skip-scroll-assist";var T=function(n,t,i,e,o,a,u,f){if(f===void 0){f=false}var c=a&&(u===undefined||u.mode===s.None);var v=false;var l=r!==undefined?r.innerHeight:0;var h=function(r){if(v===false){v=true;return}E(n,t,i,e,r.detail.keyboardHeight,c,f,l,false)};var w=function(){v=false;r===null||r===void 0?void 0:r.removeEventListener("ionKeyboardDidShow",h);n.removeEventListener("focusout",w)};var y=function(){return __awaiter(d,void 0,void 0,(function(){return __generator(this,(function(a){if(t.hasAttribute(A)){t.removeAttribute(A);return[2]}E(n,t,i,e,o,c,f,l);r===null||r===void 0?void 0:r.addEventListener("ionKeyboardDidShow",h);n.addEventListener("focusout",w);return[2]}))}))};n.addEventListener("focusin",y);return function(){n.removeEventListener("focusin",y);r===null||r===void 0?void 0:r.removeEventListener("ionKeyboardDidShow",h);n.removeEventListener("focusout",w)}};var P=function(n){if(document.activeElement===n){return}n.setAttribute(A,"true");n.focus()};var E=function(n,r,t,o,a,u){var c=[];for(var s=6;s<arguments.length;s++){c[s-6]=arguments[s]}return __awaiter(d,__spreadArray([n,r,t,o,a,u],c,true),void 0,(function(n,r,t,o,a,u,c,s,v){var d,l,w,y,p,b;var m=this;if(c===void 0){c=false}if(s===void 0){s=0}if(v===void 0){v=true}return __generator(this,(function(S){switch(S.label){case 0:if(!t&&!o){return[2]}d=D(n,t||o,a,s);if(t&&Math.abs(d.scrollAmount)<4){P(r);if(u&&t!==null){M(t,j);K(r,t,(function(){return j=0}))}return[2]}h(n,r,true,d.inputSafeY,c);P(r);f((function(){return n.click()}));if(u&&t){j=d.scrollPadding;M(t,j)}if(!(typeof window!=="undefined"))return[3,3];w=function(){return __awaiter(m,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:if(l!==undefined){clearTimeout(l)}window.removeEventListener("ionKeyboardDidShow",y);window.removeEventListener("ionKeyboardDidShow",w);if(!t)return[3,2];return[4,e(t,0,d.scrollAmount,d.scrollDuration)];case 1:i.sent();i.label=2;case 2:h(n,r,false,d.inputSafeY);P(r);if(u){K(r,t,(function(){return j=0}))}return[2]}}))}))};y=function(){window.removeEventListener("ionKeyboardDidShow",y);window.addEventListener("ionKeyboardDidShow",w)};if(!t)return[3,2];return[4,i(t)];case 1:p=S.sent();b=p.scrollHeight-p.clientHeight;if(v&&d.scrollAmount>b-p.scrollTop){if(r.type==="password"){d.scrollAmount+=_;window.addEventListener("ionKeyboardDidShow",y)}else{window.addEventListener("ionKeyboardDidShow",w)}l=setTimeout(w,1e3);return[2]}S.label=2;case 2:w();S.label=3;case 3:return[2]}}))}))};var I=true;var W=n("startInputShims",(function(n,r){return __awaiter(d,void 0,void 0,(function(){var i,e,a,u,f,s,d,l,h,w,y,p,_,m,g,D;var k=this;return __generator(this,(function(x){switch(x.label){case 0:if(t===undefined){return[2]}i=r==="ios";e=r==="android";a=n.getNumber("keyboardHeight",290);u=n.getBoolean("scrollAssist",true);f=n.getBoolean("hideCaretOnScroll",i);s=n.getBoolean("inputBlurring",false);d=n.getBoolean("scrollPadding",true);l=Array.from(t.querySelectorAll("ion-input, ion-textarea"));h=new WeakMap;w=new WeakMap;return[4,v.getResizeMode()];case 1:y=x.sent();p=function(n){return __awaiter(k,void 0,void 0,(function(){var r,t,i,s,v,l,v;return __generator(this,(function(p){switch(p.label){case 0:return[4,new Promise((function(r){return c(n,r)}))];case 1:p.sent();r=n.shadowRoot||n;t=r.querySelector("input")||r.querySelector("textarea");i=o(n);s=!i?n.closest("ion-footer"):null;if(!t){return[2]}if(!!i&&f&&!h.has(n)){v=b(n,t,i);h.set(n,v)}l=t.type==="date"||t.type==="datetime-local";if(!l&&(!!i||!!s)&&u&&!w.has(n)){v=T(n,t,i,s,a,d,y,e);w.set(n,v)}return[2]}}))}))};_=function(n){if(f){var r=h.get(n);if(r){r()}h.delete(n)}if(u){var r=w.get(n);if(r){r()}w.delete(n)}};if(s&&I){S()}for(m=0,g=l;m<g.length;m++){D=g[m];p(D)}t.addEventListener("ionInputDidLoad",(function(n){p(n.detail)}));t.addEventListener("ionInputDidUnload",(function(n){_(n.detail)}));return[2]}}))}))}))}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,d as i,h as s,i as e,f as o}from"./p-d836d43e.js";import{g as n}from"./p-2408c236.js";import{m as r,s as a}from"./p-b51e4004.js";import{b as h,c}from"./p-0574e87e.js";import{l as d,t as l,s as u,d as v,b as f,c as m}from"./p-f1c4dcd4.js";import{a as p}from"./p-3cc276f4.js";import"./p-e8d56122.js";class w{constructor(t,i){this.component=t,this.params=i,this.state=1}async init(t){if(this.state=2,!this.element){const i=this.component;this.element=await p(this.delegate,t,i,["ion-page","ion-page-invisible"],this.params)}}_destroy(){r(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const b=(t,i,s)=>!!t&&t.component===i&&a(t.params,s),g=(t,i)=>t?t instanceof w?t:new w(t,i):null,y=class{constructor(s){t(this,s),this.ionNavWillLoad=i(this,"ionNavWillLoad",7),this.ionNavWillChange=i(this,"ionNavWillChange",3),this.ionNavDidChange=i(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const t=h(this);this.swipeGesture=c.getBoolean("swipeBackEnabled","ios"===t)}this.ionNavWillLoad.emit()}async componentDidLoad(){this.didLoad=!0,this.rootChanged(),this.gesture=(await import("./p-72bc8a1c.js")).createSwipeBackGesture(this.el,this.canStart.bind(this),this.onStart.bind(this),this.onMove.bind(this),this.onEnd.bind(this)),this.swipeGestureChanged()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const t of this.views)d(t.element,v),t._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(t,i,s,e){return this.insert(-1,t,i,s,e)}insert(t,i,s,e,o){return this.insertPages(t,[{component:i,componentProps:s}],e,o)}insertPages(t,i,s,e){return this.queueTrns({insertStart:t,insertViews:i,opts:s},e)}pop(t,i){return this.removeIndex(-1,1,t,i)}popTo(t,i,s){const e={removeStart:-1,removeCount:-1,opts:i};return"object"==typeof t&&t.component?(e.removeView=t,e.removeStart=1):"number"==typeof t&&(e.removeStart=t+1),this.queueTrns(e,s)}popToRoot(t,i){return this.removeIndex(1,-1,t,i)}removeIndex(t,i=1,s,e){return this.queueTrns({removeStart:t,removeCount:i,opts:s},e)}setRoot(t,i,s,e){return this.setPages([{component:t,componentProps:i}],s,e)}setPages(t,i,s){return null!=i||(i={}),!0!==i.animated&&(i.animated=!1),this.queueTrns({insertStart:0,insertViews:t,removeStart:0,removeCount:-1,opts:i},s)}setRouteId(t,i,s,e){const o=this.getActiveSync();if(b(o,t,i))return Promise.resolve({changed:!1,element:o.element});let n;const r=new Promise((t=>n=t));let a;const h={updateURL:!1,viewIsReady:t=>{let i;const s=new Promise((t=>i=t));return n({changed:!0,element:t,markVisible:async()=>{i(),await a}}),s}};if("root"===s)a=this.setRoot(t,i,h);else{const o=this.views.find((s=>b(s,t,i)));o?a=this.popTo(o,Object.assign(Object.assign({},h),{direction:"back",animationBuilder:e})):"forward"===s?a=this.push(t,i,Object.assign(Object.assign({},h),{animationBuilder:e})):"back"===s&&(a=this.setRoot(t,i,Object.assign(Object.assign({},h),{direction:"back",animated:!0,animationBuilder:e})))}return r}async getRouteId(){const t=this.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}}async getActive(){return this.getActiveSync()}async getByIndex(t){return this.views[t]}async canGoBack(t){return this.canGoBackSync(t)}async getPrevious(t){return this.getPreviousSync(t)}async getLength(){return Promise.resolve(this.views.length)}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(t=this.getActiveSync()){return!(!t||!this.getPreviousSync(t))}getPreviousSync(t=this.getActiveSync()){if(!t)return;const i=this.views,s=i.indexOf(t);return s>0?i[s-1]:void 0}async queueTrns(t,i){var s,e;if(this.isTransitioning&&(null===(s=t.opts)||void 0===s?void 0:s.skipIfBusy))return!1;const o=new Promise(((i,s)=>{t.resolve=i,t.reject=s}));if(t.done=i,t.opts&&!1!==t.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");if(i){const s=await i.canTransition();if(!1===s)return!1;if("string"==typeof s)return i.push(s,t.opts.direction||"back"),!1}}return 0===(null===(e=t.insertViews)||void 0===e?void 0:e.length)&&(t.insertViews=void 0),this.transInstr.push(t),this.nextTrns(),o}success(t,i){if(this.destroyed)this.fireError("nav controller was destroyed",i);else if(i.done&&i.done(t.hasCompleted,t.requiresTransition,t.enteringView,t.leavingView,t.direction),i.resolve(t.hasCompleted),!1!==i.opts.updateURL&&this.useRouter){const i=document.querySelector("ion-router");i&&i.navChanged("back"===t.direction?"back":"forward")}}failed(t,i){this.destroyed?this.fireError("nav controller was destroyed",i):(this.transInstr.length=0,this.fireError(t,i))}fireError(t,i){i.done&&i.done(!1,!1,t),i.reject&&!this.destroyed?i.reject(t):i.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const t=this.transInstr.shift();return!!t&&(this.runTransition(t),!0)}async runTransition(t){try{this.ionNavWillChange.emit(),this.isTransitioning=!0,this.prepareTI(t);const i=this.getActiveSync(),s=this.getEnteringView(t,i);if(!i&&!s)throw new Error("no views in the stack to be removed");s&&1===s.state&&await s.init(this.el),this.postViewInit(s,i,t);const e=(t.enteringRequiresTransition||t.leavingRequiresTransition)&&s!==i;let o;e&&t.opts&&i&&("back"===t.opts.direction&&(t.opts.animationBuilder=t.opts.animationBuilder||(null==s?void 0:s.animationBuilder)),i.animationBuilder=t.opts.animationBuilder),o=e?await this.transition(s,i,t):{hasCompleted:!0,requiresTransition:!1},this.success(o,t),this.ionNavDidChange.emit()}catch(i){this.failed(i,t)}this.isTransitioning=!1,this.nextTrns()}prepareTI(t){var i,s,e;const o=this.views.length;if(null!==(i=t.opts)&&void 0!==i||(t.opts={}),null!==(s=(e=t.opts).delegate)&&void 0!==s||(e.delegate=this.delegate),void 0!==t.removeView){r(void 0!==t.removeStart,"removeView needs removeStart"),r(void 0!==t.removeCount,"removeView needs removeCount");const i=this.views.indexOf(t.removeView);if(i<0)throw new Error("removeView was not found");t.removeStart+=i}void 0!==t.removeStart&&(t.removeStart<0&&(t.removeStart=o-1),t.removeCount<0&&(t.removeCount=o-t.removeStart),t.leavingRequiresTransition=t.removeCount>0&&t.removeStart+t.removeCount===o),t.insertViews&&((t.insertStart<0||t.insertStart>o)&&(t.insertStart=o),t.enteringRequiresTransition=t.insertStart===o);const n=t.insertViews;if(!n)return;r(n.length>0,"length can not be zero");const a=n.map((t=>t instanceof w?t:"component"in t?g(t.component,null===t.componentProps?void 0:t.componentProps):g(t,void 0))).filter((t=>null!==t));if(0===a.length)throw new Error("invalid views to insert");for(const i of a){i.delegate=t.opts.delegate;const s=i.nav;if(s&&s!==this)throw new Error("inserted view was already inserted");if(3===i.state)throw new Error("inserted view was already destroyed")}t.insertViews=a}getEnteringView(t,i){const s=t.insertViews;if(void 0!==s)return s[s.length-1];const e=t.removeStart;if(void 0!==e){const s=this.views,o=e+t.removeCount;for(let t=s.length-1;t>=0;t--){const n=s[t];if((t<e||t>=o)&&n!==i)return n}}}postViewInit(t,i,s){var e,o,n;r(i||t,"Both leavingView and enteringView are null"),r(s.resolve,"resolve must be valid"),r(s.reject,"reject must be valid");const a=s.opts,{insertViews:h,removeStart:c,removeCount:l}=s;let u;if(void 0!==c&&void 0!==l){r(c>=0,"removeStart can not be negative"),r(l>=0,"removeCount can not be negative"),u=[];for(let s=c;s<c+l;s++){const e=this.views[s];void 0!==e&&e!==t&&e!==i&&u.push(e)}null!==(e=a.direction)&&void 0!==e||(a.direction="back")}const p=this.views.length+(null!==(o=null==h?void 0:h.length)&&void 0!==o?o:0)-(null!=l?l:0);if(r(p>=0,"final balance can not be negative"),0===p)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(h){let t=s.insertStart;for(const i of h)this.insertViewAt(i,t),t++;s.enteringRequiresTransition&&(null!==(n=a.direction)&&void 0!==n||(a.direction="forward"))}if(u&&u.length>0){for(const t of u)d(t.element,f),d(t.element,m),d(t.element,v);for(const t of u)this.destroyView(t)}}async transition(t,i,s){const e=s.opts,o=e.progressAnimation?t=>{void 0===t||this.gestureOrAnimationInProgress?this.sbAni=t:(this.gestureOrAnimationInProgress=!0,t.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0}),t.progressEnd(0,0,0))}:void 0,n=h(this),r=t.element,a=i&&i.element,d=Object.assign(Object.assign({mode:n,showGoBack:this.canGoBackSync(t),baseEl:this.el,progressCallback:o,animated:this.animated&&c.getBoolean("animated",!0),enteringEl:r,leavingEl:a},e),{animationBuilder:e.animationBuilder||this.animation||c.get("navAnimation")}),{hasCompleted:u}=await l(d);return this.transitionFinish(u,t,i,e)}transitionFinish(t,i,s,e){const o=t?i:s;return o&&this.unmountInactiveViews(o),{hasCompleted:t,requiresTransition:!0,enteringView:i,leavingView:s,direction:e.direction}}insertViewAt(t,i){const s=this.views,e=s.indexOf(t);e>-1?(r(t.nav===this,"view is not part of the nav"),s.splice(e,1),s.splice(i,0,t)):(r(!t.nav,"nav is used"),t.nav=this,s.splice(i,0,t))}removeView(t){r(2===t.state||3===t.state,"view state should be loaded or destroyed");const i=this.views,s=i.indexOf(t);r(s>-1,"view must be part of the stack"),s>=0&&i.splice(s,1)}destroyView(t){t._destroy(),this.removeView(t)}unmountInactiveViews(t){if(this.destroyed)return;const i=this.views,s=i.indexOf(t);for(let t=i.length-1;t>=0;t--){const e=i[t],o=e.element;o&&(t>s?(d(o,v),this.destroyView(e)):t<s&&u(o,!0))}}canStart(){return!this.gestureOrAnimationInProgress&&!!this.swipeGesture&&!this.isTransitioning&&0===this.transInstr.length&&this.canGoBackSync()}onStart(){this.gestureOrAnimationInProgress=!0,this.pop({direction:"back",progressAnimation:!0})}onMove(t){this.sbAni&&this.sbAni.progressStep(t)}onEnd(t,i,s){if(this.sbAni){this.sbAni.onFinish((()=>{this.gestureOrAnimationInProgress=!1}),{oneTimeCallback:!0});let e=t?-.001:.001;t?e+=n([0,0],[.32,.72],[0,1],[1,1],i)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),e+=n([0,0],[1,0],[.68,.28],[1,1],i)[0]),this.sbAni.progressEnd(t?1:0,e,s)}else this.gestureOrAnimationInProgress=!1}render(){return s("slot",{key:"dfe98cb6604a2015a49f41beffebdd2da957dfff"})}get el(){return e(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};y.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const k=class{constructor(i){t(this,i),this.onClick=()=>((t,i,s,e,o)=>{const n=this.el.closest("ion-nav");if(n)if("forward"===i){if(void 0!==s)return n.push(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("root"===i){if(void 0!==s)return n.setRoot(s,e,{skipIfBusy:!0,animationBuilder:o})}else if("back"===i)return n.pop({skipIfBusy:!0,animationBuilder:o});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return s(o,{key:"d2f8545b4fbd5aa25ef36eb01dffbc5d35ccfbb9",onClick:this.onClick})}get el(){return e(this)}};export{y as ion_nav,k as ion_nav_link}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var a=0,o=e.length,s;a<o;a++){if(s||!(a in e)){if(!s)s=Array.prototype.slice.call(e,0,a);s[a]=e[a]}}return r.concat(s||Array.prototype.slice.call(e))};
|
|
2
|
-
/*!
|
|
3
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/System.register(["./p-a69b9fc5.system.js"],(function(r){"use strict";var e;return{setters:[function(r){e=r.c}],execute:function(){var n=r("p",(function(r){var n=[];for(var a=1;a<arguments.length;a++){n[a-1]=arguments[a]}var o=e.get("logLevel","WARN");if(["WARN"].includes(o)){return console.warn.apply(console,__spreadArray(["[Ionic Warning]: ".concat(r)],n,false))}}));var a=r("a",(function(r){var n=[];for(var a=1;a<arguments.length;a++){n[a-1]=arguments[a]}var o=e.get("logLevel","ERROR");if(["ERROR","WARN"].includes(o)){return console.error.apply(console,__spreadArray(["[Ionic Error]: ".concat(r)],n,false))}}));var o=r("b",(function(r){var e=[];for(var n=1;n<arguments.length;n++){e[n-1]=arguments[n]}return console.error("<".concat(r.tagName.toLowerCase(),"> must be used inside ").concat(e.join(" or "),"."))}))}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,e as n,w as i,h as a,i as e,f as o}from"./p-d836d43e.js";import{b as r}from"./p-0574e87e.js";const s=class{constructor(n){t(this,n),this.type="bounded"}async addRipple(t,a){return new Promise((e=>{n((()=>{const n=this.el.getBoundingClientRect(),o=n.width,r=n.height,s=Math.sqrt(o*o+r*r),l=Math.max(r,o),d=this.unbounded?l:s+c,u=Math.floor(l*f),p=d/u;let b=t-n.left,w=a-n.top;this.unbounded&&(b=.5*o,w=.5*r);const k=b-.5*u,y=w-.5*u,h=.5*o-b,g=.5*r-w;i((()=>{const t=document.createElement("div");t.classList.add("ripple-effect");const n=t.style;n.top=y+"px",n.left=k+"px",n.width=n.height=u+"px",n.setProperty("--final-scale",`${p}`),n.setProperty("--translate-end",`${h}px, ${g}px`),(this.el.shadowRoot||this.el).appendChild(t),setTimeout((()=>{e((()=>{m(t)}))}),325)}))}))}))}get unbounded(){return"unbounded"===this.type}render(){const t=r(this);return a(o,{key:"7ae559bda5d2c1856a45bfa150c2cb4f83373f8e",role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return e(this)}},m=t=>{t.classList.add("fade-out"),setTimeout((()=>{t.remove()}),200)},c=10,f=.5;s.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}";export{s as ion_ripple_effect}
|
package/dist/ionic/p-7513b0c4.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{e as o,w as s}from"./p-d836d43e.js";import{f as t,s as e}from"./p-9343a445.js";import{c as r}from"./p-b51e4004.js";import"./p-e8d56122.js";import"./p-0574e87e.js";const p=()=>{const p=window;p.addEventListener("statusTap",(()=>{o((()=>{const o=document.elementFromPoint(p.innerWidth/2,p.innerHeight/2);if(!o)return;const a=t(o);a&&new Promise((o=>r(a,o))).then((()=>{s((async()=>{a.style.setProperty("--overflow","hidden"),await e(a,300),a.style.removeProperty("--overflow")}))}))}))}))};export{p as startStatusTap}
|