@ionic/core 7.8.5-dev.11713279234.1d02271c → 7.8.5-dev.11713282122.18cabf98

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.
Files changed (52) hide show
  1. package/components/ios.transition.js +10 -6
  2. package/dist/cjs/{index-034460de.js → index-991d8c14.js} +2 -2
  3. package/dist/cjs/index.cjs.js +3 -3
  4. package/dist/cjs/ion-app_8.cjs.entry.js +1 -1
  5. package/dist/cjs/ion-modal.cjs.entry.js +1 -1
  6. package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
  7. package/dist/cjs/ion-popover.cjs.entry.js +1 -1
  8. package/dist/cjs/{ios.transition-26c5adb2.js → ios.transition-607f716c.js} +11 -7
  9. package/dist/cjs/{md.transition-75533d44.js → md.transition-607c5536.js} +1 -1
  10. package/dist/collection/utils/transition/ios.transition.js +10 -6
  11. package/dist/docs.json +1 -1
  12. package/dist/esm/{index-68278972.js → index-7228912e.js} +2 -2
  13. package/dist/esm/index.js +3 -3
  14. package/dist/esm/ion-app_8.entry.js +1 -1
  15. package/dist/esm/ion-modal.entry.js +1 -1
  16. package/dist/esm/ion-nav_2.entry.js +1 -1
  17. package/dist/esm/ion-popover.entry.js +1 -1
  18. package/dist/esm/{ios.transition-471e5da1.js → ios.transition-60bb201a.js} +11 -7
  19. package/dist/esm/{md.transition-12c07448.js → md.transition-f1ae23e8.js} +1 -1
  20. package/dist/esm-es5/{index-68278972.js → index-7228912e.js} +1 -1
  21. package/dist/esm-es5/index.js +1 -1
  22. package/dist/esm-es5/ion-app_8.entry.js +1 -1
  23. package/dist/esm-es5/ion-modal.entry.js +1 -1
  24. package/dist/esm-es5/ion-nav_2.entry.js +1 -1
  25. package/dist/esm-es5/ion-popover.entry.js +1 -1
  26. package/dist/esm-es5/ios.transition-60bb201a.js +4 -0
  27. package/dist/esm-es5/{md.transition-12c07448.js → md.transition-f1ae23e8.js} +1 -1
  28. package/dist/ionic/index.esm.js +1 -1
  29. package/dist/ionic/ionic.esm.js +1 -1
  30. package/dist/ionic/{p-a258956b.system.entry.js → p-3b807aa3.system.entry.js} +1 -1
  31. package/dist/ionic/{p-85ea810f.system.js → p-3f7dbe74.system.js} +1 -1
  32. package/dist/ionic/{p-8444e4c0.entry.js → p-44c58d4f.entry.js} +1 -1
  33. package/dist/ionic/{p-414c5031.system.entry.js → p-5499ecf9.system.entry.js} +1 -1
  34. package/dist/ionic/p-5987c5fb.system.js +4 -0
  35. package/dist/ionic/{p-be403dff.entry.js → p-6c6bf185.entry.js} +1 -1
  36. package/dist/ionic/{p-815c676c.entry.js → p-83efa697.entry.js} +1 -1
  37. package/dist/ionic/{p-99d8b626.entry.js → p-92a6fa2c.entry.js} +1 -1
  38. package/dist/ionic/p-92e51e61.system.js +4 -0
  39. package/dist/ionic/{p-f3d07c09.system.entry.js → p-acf677cb.system.entry.js} +1 -1
  40. package/dist/ionic/{p-4e9552a3.js → p-b69a5820.js} +1 -1
  41. package/dist/ionic/{p-8668ffee.system.js → p-b90e393d.system.js} +1 -1
  42. package/dist/ionic/{p-9d3363aa.system.entry.js → p-ba5ce7b4.system.entry.js} +1 -1
  43. package/dist/ionic/p-d2b2d555.js +4 -0
  44. package/dist/ionic/p-dca99aac.js +4 -0
  45. package/dist/ionic/p-e933e886.system.js +1 -1
  46. package/hydrate/index.js +10 -6
  47. package/package.json +1 -1
  48. package/dist/esm-es5/ios.transition-471e5da1.js +0 -4
  49. package/dist/ionic/p-0020292d.system.js +0 -4
  50. package/dist/ionic/p-1a244094.js +0 -4
  51. package/dist/ionic/p-3420329d.js +0 -4
  52. package/dist/ionic/p-de6623db.system.js +0 -4
@@ -104,9 +104,11 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
104
104
  * title and the back button.
105
105
  */
106
106
  HEIGHT_SCALE = (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET) / backButtonTextBox.height;
107
- if (doTitleAndButtonTextsMatch) {
108
- TEXT_START_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
109
- }
107
+ /**
108
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
109
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
110
+ */
111
+ TEXT_START_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
110
112
  }
111
113
  const backButtonIconEl = shadow(backButtonEl).querySelector('ion-icon');
112
114
  const backButtonIconBox = backButtonIconEl.getBoundingClientRect();
@@ -303,9 +305,11 @@ const animateLargeTitle = (rootAnimation, rtl, backDirection, largeTitleEl, larg
303
305
  const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
304
306
  const WIDTH_SCALE = backButtonTextBox.width / largeTitleTextBox.width;
305
307
  HEIGHT_SCALE = backButtonTextBox.height / (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET);
306
- if (doTitleAndButtonTextsMatch) {
307
- END_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
308
- }
308
+ /**
309
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
310
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
311
+ */
312
+ END_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
309
313
  }
310
314
  /**
311
315
  * The midpoints of the back button and the title should align such that the back
@@ -12,8 +12,8 @@ const LIFECYCLE_WILL_LEAVE = 'ionViewWillLeave';
12
12
  const LIFECYCLE_DID_LEAVE = 'ionViewDidLeave';
13
13
  const LIFECYCLE_WILL_UNLOAD = 'ionViewWillUnload';
14
14
 
15
- const iosTransitionAnimation = () => Promise.resolve().then(function () { return require('./ios.transition-26c5adb2.js'); });
16
- const mdTransitionAnimation = () => Promise.resolve().then(function () { return require('./md.transition-75533d44.js'); });
15
+ const iosTransitionAnimation = () => Promise.resolve().then(function () { return require('./ios.transition-607f716c.js'); });
16
+ const mdTransitionAnimation = () => Promise.resolve().then(function () { return require('./md.transition-607c5536.js'); });
17
17
  // TODO(FW-2832): types
18
18
  const transition = (opts) => {
19
19
  return new Promise((resolve, reject) => {
@@ -6,9 +6,9 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  const animation = require('./animation-c2840aea.js');
9
- const index = require('./index-034460de.js');
10
- const ios_transition = require('./ios.transition-26c5adb2.js');
11
- const md_transition = require('./md.transition-75533d44.js');
9
+ const index = require('./index-991d8c14.js');
10
+ const ios_transition = require('./ios.transition-607f716c.js');
11
+ const md_transition = require('./md.transition-607c5536.js');
12
12
  const cubicBezier = require('./cubic-bezier-f2dccc53.js');
13
13
  const index$1 = require('./index-d1b59ffa.js');
14
14
  const ionicGlobal = require('./ionic-global-c5503e93.js');
@@ -17,7 +17,7 @@ const keyboardController = require('./keyboard-controller-c05e747a.js');
17
17
  const cubicBezier = require('./cubic-bezier-f2dccc53.js');
18
18
  const frameworkDelegate = require('./framework-delegate-e0e13baa.js');
19
19
  const lockController = require('./lock-controller-6585a42a.js');
20
- const index$3 = require('./index-034460de.js');
20
+ const index$3 = require('./index-991d8c14.js');
21
21
  require('./index-c8d52405.js');
22
22
  require('./keyboard-0272231f.js');
23
23
  require('./capacitor-c04564bf.js');
@@ -14,7 +14,7 @@ const index$4 = require('./index-5915f9b3.js');
14
14
  const capacitor = require('./capacitor-c04564bf.js');
15
15
  const overlays = require('./overlays-129dfc13.js');
16
16
  const theme = require('./theme-d1c573d2.js');
17
- const index$5 = require('./index-034460de.js');
17
+ const index$5 = require('./index-991d8c14.js');
18
18
  const ionicGlobal = require('./ionic-global-c5503e93.js');
19
19
  const keyboard = require('./keyboard-af1bb365.js');
20
20
  const animation = require('./animation-c2840aea.js');
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
8
8
  const index = require('./index-22617dd6.js');
9
9
  const cubicBezier = require('./cubic-bezier-f2dccc53.js');
10
10
  const helpers = require('./helpers-da4c0ed1.js');
11
- const index$1 = require('./index-034460de.js');
11
+ const index$1 = require('./index-991d8c14.js');
12
12
  const ionicGlobal = require('./ionic-global-c5503e93.js');
13
13
  const frameworkDelegate = require('./framework-delegate-e0e13baa.js');
14
14
 
@@ -13,7 +13,7 @@ const index$1 = require('./index-5915f9b3.js');
13
13
  const overlays = require('./overlays-129dfc13.js');
14
14
  const ionicGlobal = require('./ionic-global-c5503e93.js');
15
15
  const theme = require('./theme-d1c573d2.js');
16
- const index$2 = require('./index-034460de.js');
16
+ const index$2 = require('./index-991d8c14.js');
17
17
  const animation = require('./animation-c2840aea.js');
18
18
  require('./index-c8d52405.js');
19
19
  require('./hardware-back-button-adba3ac7.js');
@@ -4,7 +4,7 @@
4
4
  'use strict';
5
5
 
6
6
  const animation = require('./animation-c2840aea.js');
7
- const index = require('./index-034460de.js');
7
+ const index = require('./index-991d8c14.js');
8
8
  require('./index-c8d52405.js');
9
9
  require('./helpers-da4c0ed1.js');
10
10
  require('./index-22617dd6.js');
@@ -109,9 +109,11 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
109
109
  * title and the back button.
110
110
  */
111
111
  HEIGHT_SCALE = (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET) / backButtonTextBox.height;
112
- if (doTitleAndButtonTextsMatch) {
113
- TEXT_START_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
114
- }
112
+ /**
113
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
114
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
115
+ */
116
+ TEXT_START_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
115
117
  }
116
118
  const backButtonIconEl = shadow(backButtonEl).querySelector('ion-icon');
117
119
  const backButtonIconBox = backButtonIconEl.getBoundingClientRect();
@@ -308,9 +310,11 @@ const animateLargeTitle = (rootAnimation, rtl, backDirection, largeTitleEl, larg
308
310
  const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
309
311
  const WIDTH_SCALE = backButtonTextBox.width / largeTitleTextBox.width;
310
312
  HEIGHT_SCALE = backButtonTextBox.height / (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET);
311
- if (doTitleAndButtonTextsMatch) {
312
- END_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
313
- }
313
+ /**
314
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
315
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
316
+ */
317
+ END_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
314
318
  }
315
319
  /**
316
320
  * The midpoints of the back button and the title should align such that the back
@@ -4,7 +4,7 @@
4
4
  'use strict';
5
5
 
6
6
  const animation = require('./animation-c2840aea.js');
7
- const index = require('./index-034460de.js');
7
+ const index = require('./index-991d8c14.js');
8
8
  require('./index-c8d52405.js');
9
9
  require('./helpers-da4c0ed1.js');
10
10
  require('./index-22617dd6.js');
@@ -103,9 +103,11 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
103
103
  * title and the back button.
104
104
  */
105
105
  HEIGHT_SCALE = (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET) / backButtonTextBox.height;
106
- if (doTitleAndButtonTextsMatch) {
107
- TEXT_START_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
108
- }
106
+ /**
107
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
108
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
109
+ */
110
+ TEXT_START_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
109
111
  }
110
112
  const backButtonIconEl = shadow(backButtonEl).querySelector('ion-icon');
111
113
  const backButtonIconBox = backButtonIconEl.getBoundingClientRect();
@@ -302,9 +304,11 @@ const animateLargeTitle = (rootAnimation, rtl, backDirection, largeTitleEl, larg
302
304
  const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
303
305
  const WIDTH_SCALE = backButtonTextBox.width / largeTitleTextBox.width;
304
306
  HEIGHT_SCALE = backButtonTextBox.height / (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET);
305
- if (doTitleAndButtonTextsMatch) {
306
- END_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
307
- }
307
+ /**
308
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
309
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
310
+ */
311
+ END_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
308
312
  }
309
313
  /**
310
314
  * The midpoints of the back button and the title should align such that the back
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-04-16T14:55:44",
2
+ "timestamp": "2024-04-16T15:43:48",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.14.1",
@@ -10,8 +10,8 @@ const LIFECYCLE_WILL_LEAVE = 'ionViewWillLeave';
10
10
  const LIFECYCLE_DID_LEAVE = 'ionViewDidLeave';
11
11
  const LIFECYCLE_WILL_UNLOAD = 'ionViewWillUnload';
12
12
 
13
- const iosTransitionAnimation = () => import('./ios.transition-471e5da1.js');
14
- const mdTransitionAnimation = () => import('./md.transition-12c07448.js');
13
+ const iosTransitionAnimation = () => import('./ios.transition-60bb201a.js');
14
+ const mdTransitionAnimation = () => import('./md.transition-f1ae23e8.js');
15
15
  // TODO(FW-2832): types
16
16
  const transition = (opts) => {
17
17
  return new Promise((resolve, reject) => {
package/dist/esm/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  export { c as createAnimation } from './animation-6a0c5338.js';
5
- export { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD, g as getIonPageElement } from './index-68278972.js';
6
- export { iosTransitionAnimation } from './ios.transition-471e5da1.js';
7
- export { mdTransitionAnimation } from './md.transition-12c07448.js';
5
+ export { a as LIFECYCLE_DID_ENTER, c as LIFECYCLE_DID_LEAVE, L as LIFECYCLE_WILL_ENTER, b as LIFECYCLE_WILL_LEAVE, d as LIFECYCLE_WILL_UNLOAD, g as getIonPageElement } from './index-7228912e.js';
6
+ export { iosTransitionAnimation } from './ios.transition-60bb201a.js';
7
+ export { mdTransitionAnimation } from './md.transition-f1ae23e8.js';
8
8
  export { g as getTimeGivenProgression } from './cubic-bezier-fe2083dc.js';
9
9
  export { createGesture } from './index-2cf77112.js';
10
10
  export { g as getPlatforms, i as initialize, a as isPlatform } from './ionic-global-94f25d1b.js';
@@ -13,7 +13,7 @@ import { c as createKeyboardController } from './keyboard-controller-ec5c2bfa.js
13
13
  import { g as getTimeGivenProgression } from './cubic-bezier-fe2083dc.js';
14
14
  import { a as attachComponent, d as detachComponent } from './framework-delegate-ed4ba327.js';
15
15
  import { c as createLockController } from './lock-controller-316928be.js';
16
- import { t as transition } from './index-68278972.js';
16
+ import { t as transition } from './index-7228912e.js';
17
17
  import './index-a5d50daf.js';
18
18
  import './keyboard-73175e24.js';
19
19
  import './capacitor-59395cbd.js';
@@ -10,7 +10,7 @@ import { p as printIonWarning } from './index-9b0d46f4.js';
10
10
  import { g as getCapacitor } from './capacitor-59395cbd.js';
11
11
  import { G as GESTURE, O as OVERLAY_GESTURE_PRIORITY, e as createTriggerController, B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, g as dismiss, h as eventMethod } from './overlays-b874c3c3.js';
12
12
  import { g as getClassMap } from './theme-01f3f29c.js';
13
- import { e as deepReady, w as waitForMount } from './index-68278972.js';
13
+ import { e as deepReady, w as waitForMount } from './index-7228912e.js';
14
14
  import { b as getIonMode, c as config } from './ionic-global-94f25d1b.js';
15
15
  import { KEYBOARD_DID_OPEN } from './keyboard-52278bd7.js';
16
16
  import { c as createAnimation } from './animation-6a0c5338.js';
@@ -4,7 +4,7 @@
4
4
  import { r as registerInstance, d as createEvent, h, f as getElement, H as Host } from './index-a1a47f01.js';
5
5
  import { g as getTimeGivenProgression } from './cubic-bezier-fe2083dc.js';
6
6
  import { o as assert, s as shallowEqualStringMap } from './helpers-be245865.js';
7
- import { l as lifecycle, t as transition, s as setPageHidden, d as LIFECYCLE_WILL_UNLOAD, b as LIFECYCLE_WILL_LEAVE, c as LIFECYCLE_DID_LEAVE } from './index-68278972.js';
7
+ import { l as lifecycle, t as transition, s as setPageHidden, d as LIFECYCLE_WILL_UNLOAD, b as LIFECYCLE_WILL_LEAVE, c as LIFECYCLE_DID_LEAVE } from './index-7228912e.js';
8
8
  import { b as getIonMode, c as config } from './ionic-global-94f25d1b.js';
9
9
  import { a as attachComponent } from './framework-delegate-ed4ba327.js';
10
10
 
@@ -9,7 +9,7 @@ import { p as printIonWarning } from './index-9b0d46f4.js';
9
9
  import { B as BACKDROP, j as prepareOverlay, k as setOverlayId, f as present, n as focusFirstDescendant, g as dismiss, h as eventMethod } from './overlays-b874c3c3.js';
10
10
  import { b as getIonMode, a as isPlatform } from './ionic-global-94f25d1b.js';
11
11
  import { g as getClassMap } from './theme-01f3f29c.js';
12
- import { e as deepReady, w as waitForMount } from './index-68278972.js';
12
+ import { e as deepReady, w as waitForMount } from './index-7228912e.js';
13
13
  import { c as createAnimation } from './animation-6a0c5338.js';
14
14
  import './index-a5d50daf.js';
15
15
  import './hardware-back-button-6107a37c.js';
@@ -2,7 +2,7 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { c as createAnimation } from './animation-6a0c5338.js';
5
- import { g as getIonPageElement } from './index-68278972.js';
5
+ import { g as getIonPageElement } from './index-7228912e.js';
6
6
  import './index-a5d50daf.js';
7
7
  import './helpers-be245865.js';
8
8
  import './index-a1a47f01.js';
@@ -107,9 +107,11 @@ const animateBackButton = (rootAnimation, rtl, backDirection, backButtonEl, back
107
107
  * title and the back button.
108
108
  */
109
109
  HEIGHT_SCALE = (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET) / backButtonTextBox.height;
110
- if (doTitleAndButtonTextsMatch) {
111
- TEXT_START_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
112
- }
110
+ /**
111
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
112
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
113
+ */
114
+ TEXT_START_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
113
115
  }
114
116
  const backButtonIconEl = shadow(backButtonEl).querySelector('ion-icon');
115
117
  const backButtonIconBox = backButtonIconEl.getBoundingClientRect();
@@ -306,9 +308,11 @@ const animateLargeTitle = (rootAnimation, rtl, backDirection, largeTitleEl, larg
306
308
  const doTitleAndButtonTextsMatch = ((_a = backButtonTextEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === ((_b = largeTitleEl.textContent) === null || _b === void 0 ? void 0 : _b.trim());
307
309
  const WIDTH_SCALE = backButtonTextBox.width / largeTitleTextBox.width;
308
310
  HEIGHT_SCALE = backButtonTextBox.height / (largeTitleTextBox.height - LARGE_TITLE_SIZE_OFFSET);
309
- if (doTitleAndButtonTextsMatch) {
310
- END_SCALE = `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})`;
311
- }
311
+ /**
312
+ * Even though we set TEXT_START_SCALE to HEIGHT_SCALE above, we potentially need
313
+ * to re-compute this here since the HEIGHT_SCALE may have changed.
314
+ */
315
+ END_SCALE = doTitleAndButtonTextsMatch ? `scale(${WIDTH_SCALE}, ${HEIGHT_SCALE})` : `scale(${HEIGHT_SCALE})`;
312
316
  }
313
317
  /**
314
318
  * The midpoints of the back button and the title should align such that the back
@@ -2,7 +2,7 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { c as createAnimation } from './animation-6a0c5338.js';
5
- import { g as getIonPageElement } from './index-68278972.js';
5
+ import { g as getIonPageElement } from './index-7228912e.js';
6
6
  import './index-a5d50daf.js';
7
7
  import './helpers-be245865.js';
8
8
  import './index-a1a47f01.js';
@@ -1,4 +1,4 @@
1
1
  import{__awaiter,__generator}from"tslib";
2
2
  /*!
3
3
  * (C) Ionic http://ionicframework.com - MIT License
4
- */import{w as writeTask,B as Build}from"./index-a1a47f01.js";import{r as raf}from"./helpers-be245865.js";var LIFECYCLE_WILL_ENTER="ionViewWillEnter";var LIFECYCLE_DID_ENTER="ionViewDidEnter";var LIFECYCLE_WILL_LEAVE="ionViewWillLeave";var LIFECYCLE_DID_LEAVE="ionViewDidLeave";var LIFECYCLE_WILL_UNLOAD="ionViewWillUnload";var iosTransitionAnimation=function(){return import("./ios.transition-471e5da1.js")};var mdTransitionAnimation=function(){return import("./md.transition-12c07448.js")};var transition=function(n){return new Promise((function(e,i){writeTask((function(){beforeTransition(n);runTransition(n).then((function(i){if(i.animation){i.animation.destroy()}afterTransition(n);e(i)}),(function(e){afterTransition(n);i(e)}))}))}))};var beforeTransition=function(n){var e=n.enteringEl;var i=n.leavingEl;setZIndex(e,i,n.direction);if(n.showGoBack){e.classList.add("can-go-back")}else{e.classList.remove("can-go-back")}setPageHidden(e,false);e.style.setProperty("pointer-events","none");if(i){setPageHidden(i,false);i.style.setProperty("pointer-events","none")}};var runTransition=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:return[4,getAnimationBuilder(n)];case 1:e=r.sent();i=e&&Build.isBrowser?animation(e,n):noAnimation(n);return[2,i]}}))}))};var afterTransition=function(n){var e=n.enteringEl;var i=n.leavingEl;e.classList.remove("ion-page-invisible");e.style.removeProperty("pointer-events");if(i!==undefined){i.classList.remove("ion-page-invisible");i.style.removeProperty("pointer-events")}};var getAnimationBuilder=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.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,iosTransitionAnimation()];case 1:i=r.sent().iosTransitionAnimation;return[3,4];case 2:return[4,mdTransitionAnimation()];case 3:i=r.sent().mdTransitionAnimation;r.label=4;case 4:e=i;return[2,e]}}))}))};var animation=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var i,r;return __generator(this,(function(t){switch(t.label){case 0:return[4,waitForReady(e,true)];case 1:t.sent();i=n(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);return[4,playTransition(i,e)];case 2:r=t.sent();if(e.progressCallback){e.progressCallback(undefined)}if(r){fireDidEvents(e.enteringEl,e.leavingEl)}return[2,{hasCompleted:r,animation:i}]}}))}))};var noAnimation=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:e=n.enteringEl;i=n.leavingEl;return[4,waitForReady(n,false)];case 1:r.sent();fireWillEvents(e,i);fireDidEvents(e,i);return[2,{hasCompleted:true}]}}))}))};var waitForReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:i=n.deepWait!==undefined?n.deepWait:e;if(!i)return[3,2];return[4,Promise.all([deepReady(n.enteringEl),deepReady(n.leavingEl)])];case 1:r.sent();r.label=2;case 2:return[4,notifyViewReady(n.viewIsReady,n.enteringEl)];case 3:r.sent();return[2]}}))}))};var notifyViewReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:if(!n)return[3,2];return[4,n(e)];case 1:i.sent();i.label=2;case 2:return[2]}}))}))};var playTransition=function(n,e){var i=e.progressCallback;var r=new Promise((function(e){n.onFinish((function(n){return e(n===1)}))}));if(i){n.progressStart(true);i(n)}else{n.play()}return r};var fireWillEvents=function(n,e){lifecycle(e,LIFECYCLE_WILL_LEAVE);lifecycle(n,LIFECYCLE_WILL_ENTER)};var fireDidEvents=function(n,e){lifecycle(n,LIFECYCLE_DID_ENTER);lifecycle(e,LIFECYCLE_DID_LEAVE)};var lifecycle=function(n,e){if(n){var i=new CustomEvent(e,{bubbles:false,cancelable:false});n.dispatchEvent(i)}};var waitForMount=function(){return new Promise((function(n){return raf((function(){return raf((function(){return n()}))}))}))};var deepReady=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i,r;return __generator(this,(function(t){switch(t.label){case 0:e=n;if(!e)return[3,6];if(!(e.componentOnReady!=null))return[3,2];return[4,e.componentOnReady()];case 1:i=t.sent();if(i!=null){return[2]}return[3,4];case 2:if(!(e.__registerHost!=null))return[3,4];r=new Promise((function(n){return raf(n)}));return[4,r];case 3:t.sent();return[2];case 4:return[4,Promise.all(Array.from(e.children).map(deepReady))];case 5:t.sent();t.label=6;case 6:return[2]}}))}))};var setPageHidden=function(n,e){if(e){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 setZIndex=function(n,e,i){if(n!==undefined){n.style.zIndex=i==="back"?"99":"101"}if(e!==undefined){e.style.zIndex="100"}};var getIonPageElement=function(n){if(n.classList.contains("ion-page")){return n}var e=n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");if(e){return e}return n};export{LIFECYCLE_WILL_ENTER as L,LIFECYCLE_DID_ENTER as a,LIFECYCLE_WILL_LEAVE as b,LIFECYCLE_DID_LEAVE as c,LIFECYCLE_WILL_UNLOAD as d,deepReady as e,getIonPageElement as g,lifecycle as l,setPageHidden as s,transition as t,waitForMount as w};
4
+ */import{w as writeTask,B as Build}from"./index-a1a47f01.js";import{r as raf}from"./helpers-be245865.js";var LIFECYCLE_WILL_ENTER="ionViewWillEnter";var LIFECYCLE_DID_ENTER="ionViewDidEnter";var LIFECYCLE_WILL_LEAVE="ionViewWillLeave";var LIFECYCLE_DID_LEAVE="ionViewDidLeave";var LIFECYCLE_WILL_UNLOAD="ionViewWillUnload";var iosTransitionAnimation=function(){return import("./ios.transition-60bb201a.js")};var mdTransitionAnimation=function(){return import("./md.transition-f1ae23e8.js")};var transition=function(n){return new Promise((function(e,i){writeTask((function(){beforeTransition(n);runTransition(n).then((function(i){if(i.animation){i.animation.destroy()}afterTransition(n);e(i)}),(function(e){afterTransition(n);i(e)}))}))}))};var beforeTransition=function(n){var e=n.enteringEl;var i=n.leavingEl;setZIndex(e,i,n.direction);if(n.showGoBack){e.classList.add("can-go-back")}else{e.classList.remove("can-go-back")}setPageHidden(e,false);e.style.setProperty("pointer-events","none");if(i){setPageHidden(i,false);i.style.setProperty("pointer-events","none")}};var runTransition=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:return[4,getAnimationBuilder(n)];case 1:e=r.sent();i=e&&Build.isBrowser?animation(e,n):noAnimation(n);return[2,i]}}))}))};var afterTransition=function(n){var e=n.enteringEl;var i=n.leavingEl;e.classList.remove("ion-page-invisible");e.style.removeProperty("pointer-events");if(i!==undefined){i.classList.remove("ion-page-invisible");i.style.removeProperty("pointer-events")}};var getAnimationBuilder=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.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,iosTransitionAnimation()];case 1:i=r.sent().iosTransitionAnimation;return[3,4];case 2:return[4,mdTransitionAnimation()];case 3:i=r.sent().mdTransitionAnimation;r.label=4;case 4:e=i;return[2,e]}}))}))};var animation=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var i,r;return __generator(this,(function(t){switch(t.label){case 0:return[4,waitForReady(e,true)];case 1:t.sent();i=n(e.baseEl,e);fireWillEvents(e.enteringEl,e.leavingEl);return[4,playTransition(i,e)];case 2:r=t.sent();if(e.progressCallback){e.progressCallback(undefined)}if(r){fireDidEvents(e.enteringEl,e.leavingEl)}return[2,{hasCompleted:r,animation:i}]}}))}))};var noAnimation=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i;return __generator(this,(function(r){switch(r.label){case 0:e=n.enteringEl;i=n.leavingEl;return[4,waitForReady(n,false)];case 1:r.sent();fireWillEvents(e,i);fireDidEvents(e,i);return[2,{hasCompleted:true}]}}))}))};var waitForReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){var i;return __generator(this,(function(r){switch(r.label){case 0:i=n.deepWait!==undefined?n.deepWait:e;if(!i)return[3,2];return[4,Promise.all([deepReady(n.enteringEl),deepReady(n.leavingEl)])];case 1:r.sent();r.label=2;case 2:return[4,notifyViewReady(n.viewIsReady,n.enteringEl)];case 3:r.sent();return[2]}}))}))};var notifyViewReady=function(n,e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(i){switch(i.label){case 0:if(!n)return[3,2];return[4,n(e)];case 1:i.sent();i.label=2;case 2:return[2]}}))}))};var playTransition=function(n,e){var i=e.progressCallback;var r=new Promise((function(e){n.onFinish((function(n){return e(n===1)}))}));if(i){n.progressStart(true);i(n)}else{n.play()}return r};var fireWillEvents=function(n,e){lifecycle(e,LIFECYCLE_WILL_LEAVE);lifecycle(n,LIFECYCLE_WILL_ENTER)};var fireDidEvents=function(n,e){lifecycle(n,LIFECYCLE_DID_ENTER);lifecycle(e,LIFECYCLE_DID_LEAVE)};var lifecycle=function(n,e){if(n){var i=new CustomEvent(e,{bubbles:false,cancelable:false});n.dispatchEvent(i)}};var waitForMount=function(){return new Promise((function(n){return raf((function(){return raf((function(){return n()}))}))}))};var deepReady=function(n){return __awaiter(void 0,void 0,void 0,(function(){var e,i,r;return __generator(this,(function(t){switch(t.label){case 0:e=n;if(!e)return[3,6];if(!(e.componentOnReady!=null))return[3,2];return[4,e.componentOnReady()];case 1:i=t.sent();if(i!=null){return[2]}return[3,4];case 2:if(!(e.__registerHost!=null))return[3,4];r=new Promise((function(n){return raf(n)}));return[4,r];case 3:t.sent();return[2];case 4:return[4,Promise.all(Array.from(e.children).map(deepReady))];case 5:t.sent();t.label=6;case 6:return[2]}}))}))};var setPageHidden=function(n,e){if(e){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 setZIndex=function(n,e,i){if(n!==undefined){n.style.zIndex=i==="back"?"99":"101"}if(e!==undefined){e.style.zIndex="100"}};var getIonPageElement=function(n){if(n.classList.contains("ion-page")){return n}var e=n.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs");if(e){return e}return n};export{LIFECYCLE_WILL_ENTER as L,LIFECYCLE_DID_ENTER as a,LIFECYCLE_WILL_LEAVE as b,LIFECYCLE_DID_LEAVE as c,LIFECYCLE_WILL_UNLOAD as d,deepReady as e,getIonPageElement as g,lifecycle as l,setPageHidden as s,transition as t,waitForMount as w};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- export{c as createAnimation}from"./animation-6a0c5338.js";export{a as LIFECYCLE_DID_ENTER,c as LIFECYCLE_DID_LEAVE,L as LIFECYCLE_WILL_ENTER,b as LIFECYCLE_WILL_LEAVE,d as LIFECYCLE_WILL_UNLOAD,g as getIonPageElement}from"./index-68278972.js";export{iosTransitionAnimation}from"./ios.transition-471e5da1.js";export{mdTransitionAnimation}from"./md.transition-12c07448.js";export{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";export{createGesture}from"./index-2cf77112.js";export{g as getPlatforms,i as initialize,a as isPlatform}from"./ionic-global-94f25d1b.js";export{c as componentOnReady}from"./helpers-be245865.js";export{I as IonicSafeString,g as getMode,s as setupConfig}from"./config-49c88215.js";export{o as openURL}from"./theme-01f3f29c.js";export{m as menuController}from"./index-6e05b96e.js";export{b as actionSheetController,a as alertController,l as loadingController,m as modalController,p as pickerController,c as popoverController,t as toastController}from"./overlays-b874c3c3.js";import"./index-a5d50daf.js";import"./index-a1a47f01.js";import"./gesture-controller-1bf57181.js";import"./hardware-back-button-6107a37c.js";import"./index-9b0d46f4.js";import"./framework-delegate-ed4ba327.js";var IonicSlides=function(e){var o=e.swiper,t=e.extendParams;var s={effect:undefined,direction:"horizontal",initialSlide:0,loop:false,parallax:false,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:false,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:false,freeModeMomentum:true,freeModeMomentumRatio:1,freeModeMomentumBounce:true,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:false,freeModeMinimumVelocity:.02,autoHeight:false,setWrapperSize:false,zoom:{maxRatio:3,minRatio:1,toggle:false},touchRatio:1,touchAngle:45,simulateTouch:true,touchStartPreventDefault:false,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,threshold:0,touchMoveStopPropagation:true,touchReleaseOnEdges:false,iOSEdgeSwipeDetection:false,iOSEdgeSwipeThreshold:20,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,watchSlidesVisibility:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loopAdditionalSlides:0,noSwiping:true,runCallbacksOnInit:true,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:true},flipEffect:{slideShadows:true,limitRotation:true},cubeEffect:{slideShadows:true,shadow:true,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:false},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};if(o.pagination){s.pagination={type:"bullets",clickable:false,hideOnClick:false}}if(o.scrollbar){s.scrollbar={hide:true}}t(s)};export{IonicSlides};
4
+ export{c as createAnimation}from"./animation-6a0c5338.js";export{a as LIFECYCLE_DID_ENTER,c as LIFECYCLE_DID_LEAVE,L as LIFECYCLE_WILL_ENTER,b as LIFECYCLE_WILL_LEAVE,d as LIFECYCLE_WILL_UNLOAD,g as getIonPageElement}from"./index-7228912e.js";export{iosTransitionAnimation}from"./ios.transition-60bb201a.js";export{mdTransitionAnimation}from"./md.transition-f1ae23e8.js";export{g as getTimeGivenProgression}from"./cubic-bezier-fe2083dc.js";export{createGesture}from"./index-2cf77112.js";export{g as getPlatforms,i as initialize,a as isPlatform}from"./ionic-global-94f25d1b.js";export{c as componentOnReady}from"./helpers-be245865.js";export{I as IonicSafeString,g as getMode,s as setupConfig}from"./config-49c88215.js";export{o as openURL}from"./theme-01f3f29c.js";export{m as menuController}from"./index-6e05b96e.js";export{b as actionSheetController,a as alertController,l as loadingController,m as modalController,p as pickerController,c as popoverController,t as toastController}from"./overlays-b874c3c3.js";import"./index-a5d50daf.js";import"./index-a1a47f01.js";import"./gesture-controller-1bf57181.js";import"./hardware-back-button-6107a37c.js";import"./index-9b0d46f4.js";import"./framework-delegate-ed4ba327.js";var IonicSlides=function(e){var o=e.swiper,t=e.extendParams;var s={effect:undefined,direction:"horizontal",initialSlide:0,loop:false,parallax:false,slidesPerView:1,spaceBetween:0,speed:300,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:false,slidesOffsetBefore:0,slidesOffsetAfter:0,touchEventsTarget:"container",freeMode:false,freeModeMomentum:true,freeModeMomentumRatio:1,freeModeMomentumBounce:true,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:false,freeModeMinimumVelocity:.02,autoHeight:false,setWrapperSize:false,zoom:{maxRatio:3,minRatio:1,toggle:false},touchRatio:1,touchAngle:45,simulateTouch:true,touchStartPreventDefault:false,shortSwipes:true,longSwipes:true,longSwipesRatio:.5,longSwipesMs:300,followFinger:true,threshold:0,touchMoveStopPropagation:true,touchReleaseOnEdges:false,iOSEdgeSwipeDetection:false,iOSEdgeSwipeThreshold:20,resistance:true,resistanceRatio:.85,watchSlidesProgress:false,watchSlidesVisibility:false,preventClicks:true,preventClicksPropagation:true,slideToClickedSlide:false,loopAdditionalSlides:0,noSwiping:true,runCallbacksOnInit:true,coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:true},flipEffect:{slideShadows:true,limitRotation:true},cubeEffect:{slideShadows:true,shadow:true,shadowOffset:20,shadowScale:.94},fadeEffect:{crossFade:false},a11y:{prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide"}};if(o.pagination){s.pagination={type:"bullets",clickable:false,hideOnClick:false}}if(o.scrollbar){s.scrollbar={hide:true}}t(s)};export{IonicSlides};