@ionic/core 7.5.1-dev.11697488622.175c9183 → 7.5.1-dev.11697568647.1ac87d08
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/ion-input.js +2 -9
- package/components/ion-menu.js +12 -0
- package/components/ion-searchbar.js +2 -9
- package/components/ion-textarea.js +2 -9
- package/dist/cjs/ion-input.cjs.entry.js +1 -8
- package/dist/cjs/ion-menu_3.cjs.entry.js +12 -0
- package/dist/cjs/ion-searchbar.cjs.entry.js +1 -8
- package/dist/cjs/ion-textarea.cjs.entry.js +1 -8
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/input/input.js +2 -9
- package/dist/collection/components/menu/menu.js +12 -0
- package/dist/collection/components/searchbar/searchbar.js +2 -9
- package/dist/collection/components/split-pane/test/multiple/split-pane.e2e.js +31 -0
- package/dist/collection/components/textarea/textarea.js +2 -9
- package/dist/docs.json +2 -2
- package/dist/esm/ion-input.entry.js +2 -9
- package/dist/esm/ion-menu_3.entry.js +12 -0
- package/dist/esm/ion-searchbar.entry.js +2 -9
- package/dist/esm/ion-textarea.entry.js +2 -9
- package/dist/esm/ionic.js +1 -1
- package/dist/esm-es5/animation-92066c62.js +1 -1
- package/dist/esm-es5/button-active-d926d4f4.js +1 -1
- package/dist/esm-es5/config-96c9ace3.js +1 -1
- package/dist/esm-es5/cubic-bezier-66542bc5.js +1 -1
- package/dist/esm-es5/data-44d9e816.js +1 -1
- package/dist/esm-es5/dir-912e3e13.js +1 -1
- package/dist/esm-es5/focus-visible-85493433.js +1 -1
- package/dist/esm-es5/form-controller-ed77647a.js +1 -1
- package/dist/esm-es5/framework-delegate-aa433dea.js +1 -1
- package/dist/esm-es5/gesture-controller-0fa396c4.js +1 -1
- package/dist/esm-es5/haptic-1243b917.js +1 -1
- package/dist/esm-es5/hardware-back-button-39299f84.js +1 -1
- package/dist/esm-es5/helpers-3379ba19.js +1 -1
- package/dist/esm-es5/index-746a238e.js +1 -1
- package/dist/esm-es5/index-a09eac70.js +1 -1
- package/dist/esm-es5/index-b49b173c.js +2 -2
- package/dist/esm-es5/index-df55802d.js +1 -1
- package/dist/esm-es5/index-f0cc4e14.js +1 -1
- package/dist/esm-es5/index-ff313b19.js +1 -1
- package/dist/esm-es5/input-shims-d78a3c77.js +1 -1
- package/dist/esm-es5/input.utils-ec063df4.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-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-back-button.entry.js +1 -1
- package/dist/esm-es5/ion-backdrop.entry.js +1 -1
- package/dist/esm-es5/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm-es5/ion-button_2.entry.js +1 -1
- package/dist/esm-es5/ion-checkbox.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-fab_3.entry.js +1 -1
- package/dist/esm-es5/ion-img.entry.js +1 -1
- package/dist/esm-es5/ion-infinite-scroll_2.entry.js +1 -1
- package/dist/esm-es5/ion-input.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.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-picker-column-internal.entry.js +1 -1
- package/dist/esm-es5/ion-picker-internal.entry.js +1 -1
- package/dist/esm-es5/ion-popover.entry.js +1 -1
- package/dist/esm-es5/ion-progress-bar.entry.js +1 -1
- package/dist/esm-es5/ion-radio_2.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-route_4.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.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-global-246ca78f.js +1 -1
- package/dist/esm-es5/ios.transition-4d1322d6.js +1 -1
- package/dist/esm-es5/keyboard-b551279d.js +1 -1
- package/dist/esm-es5/keyboard-controller-0c2dce71.js +1 -1
- package/dist/esm-es5/md.transition-66b425d0.js +1 -1
- package/dist/esm-es5/notch-controller-8c9c0e54.js +1 -1
- package/dist/esm-es5/overlays-cec6bac8.js +1 -1
- package/dist/esm-es5/spinner-configs-d09fbbbb.js +1 -1
- package/dist/esm-es5/status-tap-9aeeaca5.js +1 -1
- package/dist/esm-es5/swipe-back-0f3bfc8e.js +1 -1
- package/dist/esm-es5/watch-options-355a920a.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/ionic.js +1 -1
- package/dist/ionic/{p-ec57eade.system.entry.js → p-008331e9.system.entry.js} +2 -2
- package/dist/ionic/{p-cd2d17c3.system.entry.js → p-00853890.system.entry.js} +2 -2
- package/dist/ionic/p-015187e5.system.js +2 -2
- package/dist/ionic/p-06ac429a.js +1 -1
- package/dist/ionic/{p-8a2801f1.system.entry.js → p-08e3ebcc.system.entry.js} +1 -1
- package/dist/ionic/p-091c8792.system.js +1 -1
- package/dist/ionic/{p-cf0c93e3.system.entry.js → p-0f10b5f5.system.entry.js} +2 -2
- package/dist/ionic/{p-8c1805f4.system.entry.js → p-1551659d.system.entry.js} +1 -1
- package/dist/ionic/{p-c956e82c.system.entry.js → p-1d17ce29.system.entry.js} +2 -2
- package/dist/ionic/p-29b56db6.system.entry.js +4 -0
- package/dist/ionic/p-2a8eeef7.system.js +1 -1
- package/dist/ionic/p-2b89ea1b.system.js +1 -1
- package/dist/ionic/p-32ff5348.system.entry.js +4 -0
- package/dist/ionic/p-35e399bd.entry.js +4 -0
- package/dist/ionic/p-3632220b.system.js +1 -1
- package/dist/ionic/p-3d726a67.system.js +1 -1
- package/dist/ionic/p-40a0dacf.system.entry.js +4 -0
- package/dist/ionic/p-41477ad9.system.js +1 -1
- package/dist/ionic/p-44bc8b45.system.js +2 -2
- package/dist/ionic/p-45844e7a.system.entry.js +4 -0
- package/dist/ionic/{p-1a463b1e.system.entry.js → p-4643c356.system.entry.js} +2 -2
- package/dist/ionic/p-479cdbf8.system.js +2 -2
- package/dist/ionic/{p-a164e3ab.system.entry.js → p-508defac.system.entry.js} +2 -2
- package/dist/ionic/{p-1d8d5f9a.system.entry.js → p-5421f83c.system.entry.js} +2 -2
- package/dist/ionic/p-56dc022e.system.js +1 -1
- package/dist/ionic/{p-6129af0a.system.entry.js → p-588687d2.system.entry.js} +1 -1
- package/dist/ionic/{p-eab10949.system.entry.js → p-590250f4.system.entry.js} +1 -1
- package/dist/ionic/p-5a692624.system.entry.js +4 -0
- package/dist/ionic/{p-8d6728a1.system.entry.js → p-5ef80480.system.entry.js} +1 -1
- package/dist/ionic/{p-ce7d67a7.system.entry.js → p-5f2cd7d2.system.entry.js} +2 -2
- package/dist/ionic/p-613d4042.system.js +2 -2
- package/dist/ionic/p-629aa3fd.system.js +3 -3
- package/dist/ionic/p-64475ab5.system.js +2 -2
- package/dist/ionic/{p-6f6646bf.system.entry.js → p-74f892e9.system.entry.js} +1 -1
- package/dist/ionic/{p-5c3e72a8.system.js → p-755b2917.system.js} +1 -1
- package/dist/ionic/p-772f6c84.system.js +2 -2
- package/dist/ionic/{p-29073efe.system.entry.js → p-7980e02c.system.entry.js} +2 -2
- package/dist/ionic/p-7f8844bd.system.entry.js +4 -0
- package/dist/ionic/p-815c2fba.system.js +2 -2
- package/dist/ionic/p-819ff3b9.system.js +1 -1
- package/dist/ionic/{p-3a58e3a4.system.entry.js → p-82251950.system.entry.js} +2 -2
- package/dist/ionic/p-837ed0a5.entry.js +4 -0
- package/dist/ionic/p-87411e39.system.js +1 -1
- package/dist/ionic/p-8c09ef6b.system.entry.js +4 -0
- package/dist/ionic/p-8c15eda7.system.js +2 -2
- package/dist/ionic/p-8dbdb163.system.js +1 -1
- package/dist/ionic/p-8f01a9a2.system.js +2 -2
- package/dist/ionic/p-939e0fa1.system.js +1 -1
- package/dist/ionic/{p-c8c9d699.system.entry.js → p-9825577f.system.entry.js} +2 -2
- package/dist/ionic/p-9ab6f3e6.system.js +1 -1
- package/dist/ionic/p-9c1dce7a.system.entry.js +4 -0
- package/dist/ionic/p-9e852ff1.system.js +1 -1
- package/dist/ionic/p-a107434d.system.entry.js +4 -0
- package/dist/ionic/p-a22d84c8.system.entry.js +4 -0
- package/dist/ionic/p-a3980e51.system.entry.js +4 -0
- package/dist/ionic/{p-e1d5752d.system.entry.js → p-a6c5ccb5.system.entry.js} +2 -2
- package/dist/ionic/p-aa377971.system.js +1 -1
- package/dist/ionic/p-ab4cff27.system.js +1 -1
- package/dist/ionic/{p-572cce26.system.entry.js → p-ab5f4f93.system.entry.js} +2 -2
- package/dist/ionic/p-ad48dd13.system.js +2 -2
- package/dist/ionic/{p-c42c86c0.system.entry.js → p-ae1de8af.system.entry.js} +1 -1
- package/dist/ionic/{p-beb864e4.system.entry.js → p-af37e8de.system.entry.js} +1 -1
- package/dist/ionic/{p-1289b3b5.system.entry.js → p-b0f6ef25.system.entry.js} +2 -2
- package/dist/ionic/p-b132c2c0.system.js +2 -2
- package/dist/ionic/p-b3c68723.system.js +1 -1
- package/dist/ionic/p-b4b4bb29.system.js +1 -1
- package/dist/ionic/p-b8c3f071.system.js +1 -1
- package/dist/ionic/{p-f9fa802c.system.entry.js → p-b96e1915.system.entry.js} +2 -2
- package/dist/ionic/p-bb055450.system.entry.js +4 -0
- package/dist/ionic/p-bba2ce59.system.js +1 -1
- package/dist/ionic/{p-4215652f.system.entry.js → p-bdf1db6f.system.entry.js} +2 -2
- package/dist/ionic/p-c49672d8.system.js +2 -2
- package/dist/ionic/p-c4f2dce7.system.js +1 -1
- package/dist/ionic/p-c575a7b8.system.entry.js +4 -0
- package/dist/ionic/p-c627257b.system.entry.js +4 -0
- package/dist/ionic/p-c87827ca.system.js +1 -1
- package/dist/ionic/{p-012952cd.system.entry.js → p-c8d705d1.system.entry.js} +2 -2
- package/dist/ionic/{p-b753ec0d.system.entry.js → p-ca86ce12.system.entry.js} +2 -2
- package/dist/ionic/p-ccdcb022.system.js +1 -1
- package/dist/ionic/{p-e0f52215.system.entry.js → p-cf1822ca.system.entry.js} +1 -1
- package/dist/ionic/{p-6f8a95a3.system.entry.js → p-dbdb0d8e.system.entry.js} +2 -2
- package/dist/ionic/{p-78030c1f.system.entry.js → p-de252f17.system.entry.js} +1 -1
- package/dist/ionic/p-e028178a.system.js +2 -2
- package/dist/ionic/p-e0f0d55f.system.js +1 -1
- package/dist/ionic/{p-0bbede6a.system.entry.js → p-e21ebd84.system.entry.js} +1 -1
- package/dist/ionic/p-ecb860e5.system.entry.js +4 -0
- package/dist/ionic/p-f5bf698b.entry.js +4 -0
- package/dist/ionic/p-f7566bad.entry.js +4 -0
- package/dist/ionic/p-fa8d4788.system.js +1 -1
- package/dist/ionic/{p-303bf1e8.system.entry.js → p-fbf836a7.system.entry.js} +2 -2
- package/dist/ionic/p-ff5a10f9.system.js +2 -2
- package/dist/types/stencil-public-runtime.d.ts +19 -0
- package/hydrate/index.js +25 -26
- package/package.json +2 -2
- package/dist/ionic/p-0b7c25ee.system.entry.js +0 -4
- package/dist/ionic/p-0f1f59da.system.entry.js +0 -4
- package/dist/ionic/p-1ea0703a.entry.js +0 -4
- package/dist/ionic/p-2592264d.system.entry.js +0 -4
- package/dist/ionic/p-29409853.system.entry.js +0 -4
- package/dist/ionic/p-33a8349a.system.entry.js +0 -4
- package/dist/ionic/p-3f3da911.system.entry.js +0 -4
- package/dist/ionic/p-45d1df29.system.entry.js +0 -4
- package/dist/ionic/p-54f6cd27.system.entry.js +0 -4
- package/dist/ionic/p-61ca6685.system.entry.js +0 -4
- package/dist/ionic/p-6ce0a709.system.entry.js +0 -4
- package/dist/ionic/p-72390c16.system.entry.js +0 -4
- package/dist/ionic/p-9dc85536.system.entry.js +0 -4
- package/dist/ionic/p-a34fc12e.system.entry.js +0 -4
- package/dist/ionic/p-b2fb0dda.system.entry.js +0 -4
- package/dist/ionic/p-b61a2fa0.system.entry.js +0 -4
- package/dist/ionic/p-d25b8287.entry.js +0 -4
- package/dist/ionic/p-d6e53e66.entry.js +0 -4
- package/dist/ionic/p-f4bd51c5.entry.js +0 -4
package/components/ion-input.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, Build, h, Host, forceUpdate } from '@stencil/core/internal/client';
|
|
5
5
|
import { c as createLegacyFormController } from './form-controller.js';
|
|
6
6
|
import { c as createNotchController } from './notch-controller.js';
|
|
7
|
-
import { n as debounceEvent, i as inheritAriaAttributes, d as inheritAttributes,
|
|
7
|
+
import { n as debounceEvent, i as inheritAriaAttributes, d as inheritAttributes, k as findItemLabel } from './helpers.js';
|
|
8
8
|
import { p as printIonWarning } from './index6.js';
|
|
9
9
|
import { c as createSlotMutationController, g as getCounterText } from './input.utils.js';
|
|
10
10
|
import { h as hostContext, c as createColorClasses } from './theme.js';
|
|
@@ -215,14 +215,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
215
215
|
/**
|
|
216
216
|
* Returns the native `<input>` element used under the hood.
|
|
217
217
|
*/
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
221
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
222
|
-
*/
|
|
223
|
-
if (!this.nativeInput) {
|
|
224
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
225
|
-
}
|
|
218
|
+
getInputElement() {
|
|
226
219
|
return Promise.resolve(this.nativeInput);
|
|
227
220
|
}
|
|
228
221
|
/**
|
package/components/ion-menu.js
CHANGED
|
@@ -182,6 +182,18 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends HTMLElement {
|
|
|
182
182
|
this.contentEl = undefined;
|
|
183
183
|
}
|
|
184
184
|
onSplitPaneChanged(ev) {
|
|
185
|
+
const { target } = ev;
|
|
186
|
+
const closestSplitPane = this.el.closest('ion-split-pane');
|
|
187
|
+
/**
|
|
188
|
+
* Menu listens on the body for "ionSplitPaneVisible".
|
|
189
|
+
* However, this means the callback will run any time
|
|
190
|
+
* a SplitPane changes visibility. As a result, we only want
|
|
191
|
+
* Menu's visibility state to update if its parent SplitPane
|
|
192
|
+
* changes visibility.
|
|
193
|
+
*/
|
|
194
|
+
if (target !== closestSplitPane) {
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
185
197
|
this.isPaneVisible = ev.detail.isPane(this.el);
|
|
186
198
|
this.updateState();
|
|
187
199
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
5
|
-
import { n as debounceEvent,
|
|
5
|
+
import { n as debounceEvent, r as raf } from './helpers.js';
|
|
6
6
|
import { i as isRTL } from './dir.js';
|
|
7
7
|
import { c as createColorClasses } from './theme.js';
|
|
8
8
|
import { b as arrowBackSharp, j as closeCircle, k as closeSharp, s as searchOutline, q as searchSharp } from './index7.js';
|
|
@@ -200,14 +200,7 @@ const Searchbar = /*@__PURE__*/ proxyCustomElement(class Searchbar extends HTMLE
|
|
|
200
200
|
/**
|
|
201
201
|
* Returns the native `<input>` element used under the hood.
|
|
202
202
|
*/
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
206
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
207
|
-
*/
|
|
208
|
-
if (!this.nativeInput) {
|
|
209
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
210
|
-
}
|
|
203
|
+
getInputElement() {
|
|
211
204
|
return Promise.resolve(this.nativeInput);
|
|
212
205
|
}
|
|
213
206
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, Build, writeTask, h, Host, forceUpdate } from '@stencil/core/internal/client';
|
|
5
5
|
import { c as createLegacyFormController } from './form-controller.js';
|
|
6
6
|
import { c as createNotchController } from './notch-controller.js';
|
|
7
|
-
import { n as debounceEvent, i as inheritAriaAttributes, d as inheritAttributes,
|
|
7
|
+
import { n as debounceEvent, i as inheritAriaAttributes, d as inheritAttributes, k as findItemLabel } from './helpers.js';
|
|
8
8
|
import { p as printIonWarning } from './index6.js';
|
|
9
9
|
import { c as createSlotMutationController, g as getCounterText } from './input.utils.js';
|
|
10
10
|
import { c as createColorClasses, h as hostContext } from './theme.js';
|
|
@@ -176,14 +176,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
176
176
|
/**
|
|
177
177
|
* Returns the native `<textarea>` element used under the hood.
|
|
178
178
|
*/
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
182
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
183
|
-
*/
|
|
184
|
-
if (!this.nativeInput) {
|
|
185
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
186
|
-
}
|
|
179
|
+
getInputElement() {
|
|
187
180
|
return Promise.resolve(this.nativeInput);
|
|
188
181
|
}
|
|
189
182
|
emitStyle() {
|
|
@@ -218,14 +218,7 @@ const Input = class {
|
|
|
218
218
|
/**
|
|
219
219
|
* Returns the native `<input>` element used under the hood.
|
|
220
220
|
*/
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
224
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
225
|
-
*/
|
|
226
|
-
if (!this.nativeInput) {
|
|
227
|
-
await new Promise((resolve) => helpers.componentOnReady(this.el, resolve));
|
|
228
|
-
}
|
|
221
|
+
getInputElement() {
|
|
229
222
|
return Promise.resolve(this.nativeInput);
|
|
230
223
|
}
|
|
231
224
|
/**
|
|
@@ -187,6 +187,18 @@ const Menu = class {
|
|
|
187
187
|
this.contentEl = undefined;
|
|
188
188
|
}
|
|
189
189
|
onSplitPaneChanged(ev) {
|
|
190
|
+
const { target } = ev;
|
|
191
|
+
const closestSplitPane = this.el.closest('ion-split-pane');
|
|
192
|
+
/**
|
|
193
|
+
* Menu listens on the body for "ionSplitPaneVisible".
|
|
194
|
+
* However, this means the callback will run any time
|
|
195
|
+
* a SplitPane changes visibility. As a result, we only want
|
|
196
|
+
* Menu's visibility state to update if its parent SplitPane
|
|
197
|
+
* changes visibility.
|
|
198
|
+
*/
|
|
199
|
+
if (target !== closestSplitPane) {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
190
202
|
this.isPaneVisible = ev.detail.isPane(this.el);
|
|
191
203
|
this.updateState();
|
|
192
204
|
}
|
|
@@ -202,14 +202,7 @@ const Searchbar = class {
|
|
|
202
202
|
/**
|
|
203
203
|
* Returns the native `<input>` element used under the hood.
|
|
204
204
|
*/
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
208
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
209
|
-
*/
|
|
210
|
-
if (!this.nativeInput) {
|
|
211
|
-
await new Promise((resolve) => helpers.componentOnReady(this.el, resolve));
|
|
212
|
-
}
|
|
205
|
+
getInputElement() {
|
|
213
206
|
return Promise.resolve(this.nativeInput);
|
|
214
207
|
}
|
|
215
208
|
/**
|
|
@@ -180,14 +180,7 @@ const Textarea = class {
|
|
|
180
180
|
/**
|
|
181
181
|
* Returns the native `<textarea>` element used under the hood.
|
|
182
182
|
*/
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
186
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
187
|
-
*/
|
|
188
|
-
if (!this.nativeInput) {
|
|
189
|
-
await new Promise((resolve) => helpers.componentOnReady(this.el, resolve));
|
|
190
|
-
}
|
|
183
|
+
getInputElement() {
|
|
191
184
|
return Promise.resolve(this.nativeInput);
|
|
192
185
|
}
|
|
193
186
|
emitStyle() {
|
package/dist/cjs/ionic.cjs.js
CHANGED
|
@@ -10,7 +10,7 @@ const appGlobals = require('./app-globals-fe1ad535.js');
|
|
|
10
10
|
require('./ionic-global-fb752503.js');
|
|
11
11
|
|
|
12
12
|
/*
|
|
13
|
-
Stencil Client Patch Browser v4.
|
|
13
|
+
Stencil Client Patch Browser v4.5.0 | MIT Licensed | https://stenciljs.com
|
|
14
14
|
*/
|
|
15
15
|
const patchBrowser = () => {
|
|
16
16
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ionic.cjs.js', document.baseURI).href));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Host, forceUpdate, h } from "@stencil/core";
|
|
5
5
|
import { createLegacyFormController, createNotchController } from "../../utils/forms/index";
|
|
6
|
-
import { inheritAriaAttributes, debounceEvent, findItemLabel, inheritAttributes
|
|
6
|
+
import { inheritAriaAttributes, debounceEvent, findItemLabel, inheritAttributes } from "../../utils/helpers";
|
|
7
7
|
import { printIonWarning } from "../../utils/logging/index";
|
|
8
8
|
import { createSlotMutationController } from "../../utils/slot-mutation-controller";
|
|
9
9
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
@@ -207,14 +207,7 @@ export class Input {
|
|
|
207
207
|
/**
|
|
208
208
|
* Returns the native `<input>` element used under the hood.
|
|
209
209
|
*/
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
213
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
214
|
-
*/
|
|
215
|
-
if (!this.nativeInput) {
|
|
216
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
217
|
-
}
|
|
210
|
+
getInputElement() {
|
|
218
211
|
return Promise.resolve(this.nativeInput);
|
|
219
212
|
}
|
|
220
213
|
/**
|
|
@@ -173,6 +173,18 @@ export class Menu {
|
|
|
173
173
|
this.contentEl = undefined;
|
|
174
174
|
}
|
|
175
175
|
onSplitPaneChanged(ev) {
|
|
176
|
+
const { target } = ev;
|
|
177
|
+
const closestSplitPane = this.el.closest('ion-split-pane');
|
|
178
|
+
/**
|
|
179
|
+
* Menu listens on the body for "ionSplitPaneVisible".
|
|
180
|
+
* However, this means the callback will run any time
|
|
181
|
+
* a SplitPane changes visibility. As a result, we only want
|
|
182
|
+
* Menu's visibility state to update if its parent SplitPane
|
|
183
|
+
* changes visibility.
|
|
184
|
+
*/
|
|
185
|
+
if (target !== closestSplitPane) {
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
176
188
|
this.isPaneVisible = ev.detail.isPane(this.el);
|
|
177
189
|
this.updateState();
|
|
178
190
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { Host, forceUpdate, h } from "@stencil/core";
|
|
5
|
-
import { debounceEvent, raf
|
|
5
|
+
import { debounceEvent, raf } from "../../utils/helpers";
|
|
6
6
|
import { isRTL } from "../../utils/rtl/index";
|
|
7
7
|
import { createColorClasses } from "../../utils/theme";
|
|
8
8
|
import { arrowBackSharp, closeCircle, closeSharp, searchOutline, searchSharp } from "ionicons/icons";
|
|
@@ -189,14 +189,7 @@ export class Searchbar {
|
|
|
189
189
|
/**
|
|
190
190
|
* Returns the native `<input>` element used under the hood.
|
|
191
191
|
*/
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
195
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
196
|
-
*/
|
|
197
|
-
if (!this.nativeInput) {
|
|
198
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
199
|
-
}
|
|
192
|
+
getInputElement() {
|
|
200
193
|
return Promise.resolve(this.nativeInput);
|
|
201
194
|
}
|
|
202
195
|
/**
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
+
*/
|
|
4
|
+
import { expect } from "@playwright/test";
|
|
5
|
+
import { configs, test, Viewports } from "../../../../utils/test/playwright/index";
|
|
6
|
+
configs({ modes: ['ios'], directions: ['ltr'] }).forEach(({ title, config }) => {
|
|
7
|
+
test.describe(title('split-pane: multiple'), () => {
|
|
8
|
+
test('using multiple split panes should not hide a menu in another split pane', async ({ page }) => {
|
|
9
|
+
test.info().annotations.push({
|
|
10
|
+
type: 'issue',
|
|
11
|
+
description: 'https://github.com/ionic-team/ionic-framework/issues/18683',
|
|
12
|
+
});
|
|
13
|
+
await page.setViewportSize(Viewports.large);
|
|
14
|
+
await page.goto(`/src/components/split-pane/test/multiple`, config);
|
|
15
|
+
const paneOneMenuOne = page.locator('ion-menu#pane-one-menu-one');
|
|
16
|
+
const paneOneMenuTwo = page.locator('ion-menu#pane-one-menu-two');
|
|
17
|
+
const paneTwoMenuOne = page.locator('ion-menu#pane-two-menu-one');
|
|
18
|
+
const paneTwoMenuTwo = page.locator('ion-menu#pane-two-menu-two');
|
|
19
|
+
const showPaneOne = page.locator('button#show-pane-one');
|
|
20
|
+
const showPaneTwo = page.locator('button#show-pane-two');
|
|
21
|
+
await expect(paneOneMenuOne).toBeVisible();
|
|
22
|
+
await expect(paneOneMenuTwo).toBeVisible();
|
|
23
|
+
await showPaneTwo.click();
|
|
24
|
+
await expect(paneTwoMenuOne).toBeVisible();
|
|
25
|
+
await expect(paneTwoMenuTwo).toBeVisible();
|
|
26
|
+
await showPaneOne.click();
|
|
27
|
+
await expect(paneOneMenuOne).toBeVisible();
|
|
28
|
+
await expect(paneOneMenuTwo).toBeVisible();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { Build, Host, forceUpdate, h, writeTask, } from "@stencil/core";
|
|
5
5
|
import { createLegacyFormController, createNotchController } from "../../utils/forms/index";
|
|
6
|
-
import { inheritAriaAttributes, debounceEvent, findItemLabel, inheritAttributes
|
|
6
|
+
import { inheritAriaAttributes, debounceEvent, findItemLabel, inheritAttributes } from "../../utils/helpers";
|
|
7
7
|
import { printIonWarning } from "../../utils/logging/index";
|
|
8
8
|
import { createSlotMutationController } from "../../utils/slot-mutation-controller";
|
|
9
9
|
import { createColorClasses, hostContext } from "../../utils/theme";
|
|
@@ -169,14 +169,7 @@ export class Textarea {
|
|
|
169
169
|
/**
|
|
170
170
|
* Returns the native `<textarea>` element used under the hood.
|
|
171
171
|
*/
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
175
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
176
|
-
*/
|
|
177
|
-
if (!this.nativeInput) {
|
|
178
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
179
|
-
}
|
|
172
|
+
getInputElement() {
|
|
180
173
|
return Promise.resolve(this.nativeInput);
|
|
181
174
|
}
|
|
182
175
|
emitStyle() {
|
package/dist/docs.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { r as registerInstance, d as createEvent, h, H as Host, f as getElement, i as forceUpdate } from './index-b49b173c.js';
|
|
5
5
|
import { c as createLegacyFormController } from './form-controller-ed77647a.js';
|
|
6
6
|
import { c as createNotchController } from './notch-controller-8c9c0e54.js';
|
|
7
|
-
import { j as debounceEvent, i as inheritAriaAttributes, k as inheritAttributes,
|
|
7
|
+
import { j as debounceEvent, i as inheritAriaAttributes, k as inheritAttributes, h as findItemLabel } from './helpers-3379ba19.js';
|
|
8
8
|
import { p as printIonWarning } from './index-595d62c9.js';
|
|
9
9
|
import { c as createSlotMutationController, g as getCounterText } from './input.utils-ec063df4.js';
|
|
10
10
|
import { h as hostContext, c as createColorClasses } from './theme-17531cdf.js';
|
|
@@ -214,14 +214,7 @@ const Input = class {
|
|
|
214
214
|
/**
|
|
215
215
|
* Returns the native `<input>` element used under the hood.
|
|
216
216
|
*/
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
220
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
221
|
-
*/
|
|
222
|
-
if (!this.nativeInput) {
|
|
223
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
224
|
-
}
|
|
217
|
+
getInputElement() {
|
|
225
218
|
return Promise.resolve(this.nativeInput);
|
|
226
219
|
}
|
|
227
220
|
/**
|
|
@@ -183,6 +183,18 @@ const Menu = class {
|
|
|
183
183
|
this.contentEl = undefined;
|
|
184
184
|
}
|
|
185
185
|
onSplitPaneChanged(ev) {
|
|
186
|
+
const { target } = ev;
|
|
187
|
+
const closestSplitPane = this.el.closest('ion-split-pane');
|
|
188
|
+
/**
|
|
189
|
+
* Menu listens on the body for "ionSplitPaneVisible".
|
|
190
|
+
* However, this means the callback will run any time
|
|
191
|
+
* a SplitPane changes visibility. As a result, we only want
|
|
192
|
+
* Menu's visibility state to update if its parent SplitPane
|
|
193
|
+
* changes visibility.
|
|
194
|
+
*/
|
|
195
|
+
if (target !== closestSplitPane) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
186
198
|
this.isPaneVisible = ev.detail.isPane(this.el);
|
|
187
199
|
this.updateState();
|
|
188
200
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, d as createEvent, i as forceUpdate, h, H as Host, f as getElement } from './index-b49b173c.js';
|
|
5
|
-
import { j as debounceEvent,
|
|
5
|
+
import { j as debounceEvent, r as raf } from './helpers-3379ba19.js';
|
|
6
6
|
import { i as isRTL } from './dir-912e3e13.js';
|
|
7
7
|
import { c as createColorClasses } from './theme-17531cdf.js';
|
|
8
8
|
import { a as arrowBackSharp, b as closeCircle, d as closeSharp, s as searchOutline, e as searchSharp } from './index-c132c5f1.js';
|
|
@@ -198,14 +198,7 @@ const Searchbar = class {
|
|
|
198
198
|
/**
|
|
199
199
|
* Returns the native `<input>` element used under the hood.
|
|
200
200
|
*/
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
204
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
205
|
-
*/
|
|
206
|
-
if (!this.nativeInput) {
|
|
207
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
208
|
-
}
|
|
201
|
+
getInputElement() {
|
|
209
202
|
return Promise.resolve(this.nativeInput);
|
|
210
203
|
}
|
|
211
204
|
/**
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { r as registerInstance, d as createEvent, w as writeTask, h, H as Host, f as getElement, i as forceUpdate } from './index-b49b173c.js';
|
|
5
5
|
import { c as createLegacyFormController } from './form-controller-ed77647a.js';
|
|
6
6
|
import { c as createNotchController } from './notch-controller-8c9c0e54.js';
|
|
7
|
-
import { j as debounceEvent, i as inheritAriaAttributes, k as inheritAttributes,
|
|
7
|
+
import { j as debounceEvent, i as inheritAriaAttributes, k as inheritAttributes, h as findItemLabel } from './helpers-3379ba19.js';
|
|
8
8
|
import { p as printIonWarning } from './index-595d62c9.js';
|
|
9
9
|
import { c as createSlotMutationController, g as getCounterText } from './input.utils-ec063df4.js';
|
|
10
10
|
import { c as createColorClasses, h as hostContext } from './theme-17531cdf.js';
|
|
@@ -176,14 +176,7 @@ const Textarea = class {
|
|
|
176
176
|
/**
|
|
177
177
|
* Returns the native `<textarea>` element used under the hood.
|
|
178
178
|
*/
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* If this gets called in certain early lifecycle hooks (ex: Vue onMounted),
|
|
182
|
-
* nativeInput won't be defined yet with the custom elements build, so wait for it to load in.
|
|
183
|
-
*/
|
|
184
|
-
if (!this.nativeInput) {
|
|
185
|
-
await new Promise((resolve) => componentOnReady(this.el, resolve));
|
|
186
|
-
}
|
|
179
|
+
getInputElement() {
|
|
187
180
|
return Promise.resolve(this.nativeInput);
|
|
188
181
|
}
|
|
189
182
|
emitStyle() {
|
package/dist/esm/ionic.js
CHANGED
|
@@ -7,7 +7,7 @@ import { g as globalScripts } from './app-globals-ec816a70.js';
|
|
|
7
7
|
import './ionic-global-246ca78f.js';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
|
-
Stencil Client Patch Browser v4.
|
|
10
|
+
Stencil Client Patch Browser v4.5.0 | MIT Licensed | https://stenciljs.com
|
|
11
11
|
*/
|
|
12
12
|
const patchBrowser = () => {
|
|
13
13
|
const importMeta = import.meta.url;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import{__spreadArray}from"tslib";
|
|
2
2
|
/*!
|
|
3
3
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
4
|
-
*/import{w as win}from"./index-7a14ecec.js";import{r as raf}from"./helpers-3379ba19.js";var animationPrefix;var processKeyframes=function(e){e.forEach((function(e){for(var n in e){if(e.hasOwnProperty(n)){var r=e[n];if(n==="easing"){var t="animation-timing-function";e[t]=r;delete e[n]}else{var t=convertCamelCaseToHypen(n);if(t!==n){e[t]=r;delete e[n]}}}}}));return e};var convertCamelCaseToHypen=function(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()};var getAnimationPrefix=function(e){if(animationPrefix===undefined){var n=e.style.animationName!==undefined;var r=e.style.webkitAnimationName!==undefined;animationPrefix=!n&&r?"-webkit-":""}return animationPrefix};var setStyleProperty=function(e,n,r){var t=n.startsWith("animation")?getAnimationPrefix(e):"";e.style.setProperty(t+n,r)};var removeStyleProperty=function(e,n){var r=n.startsWith("animation")?getAnimationPrefix(e):"";e.style.removeProperty(r+n)};var animationEnd=function(e,n){var r;var t={passive:true};var a=function(){if(r){r()}};var i=function(r){if(e===r.target){a();n(r)}};if(e){e.addEventListener("webkitAnimationEnd",i,t);e.addEventListener("animationend",i,t);r=function(){e.removeEventListener("webkitAnimationEnd",i,t);e.removeEventListener("animationend",i,t)}}return a};var generateKeyframeRules=function(e){if(e===void 0){e=[]}return e.map((function(e){var n=e.offset;var r=[];for(var t in e){if(e.hasOwnProperty(t)&&t!=="offset"){r.push("".concat(t,": ").concat(e[t],";"))}}return"".concat(n*100,"% { ").concat(r.join(" ")," }")})).join(" ")};var keyframeIds=[];var generateKeyframeName=function(e){var n=keyframeIds.indexOf(e);if(n<0){n=keyframeIds.push(e)-1}return"ion-animation-".concat(n)};var getStyleContainer=function(e){var n=e.getRootNode!==undefined?e.getRootNode():e;return n.head||n};var createKeyframeStylesheet=function(e,n,r){var t;var a=getStyleContainer(r);var i=getAnimationPrefix(r);var o=a.querySelector("#"+e);if(o){return o}var f=((t=r.ownerDocument)!==null&&t!==void 0?t:document).createElement("style");f.id=e;f.textContent="@".concat(i,"keyframes ").concat(e," { ").concat(n," } @").concat(i,"keyframes ").concat(e,"-alt { ").concat(n," }");a.appendChild(f);return f};var addClassToArray=function(e,n){if(e===void 0){e=[]}if(n!==undefined){var r=Array.isArray(n)?n:[n];return __spreadArray(__spreadArray([],e,true),r,true)}return e};var createAnimation=function(e){var n;var r;var t;var a;var i;var o;var f=[];var u=[];var c=[];var s=false;var v;var l={};var d=[];var m=[];var y={};var p=0;var h=false;var g=false;var E;var P;var S;var A;var C=true;var T=false;var b=true;var w;var k;var x=false;var K=e;var _=[];var I=[];var R=[];var N=[];var D=[];var L=[];var F=[];var O=[];var W=[];var j=[];var H=[];var M=typeof AnimationEffect==="function"||win!==undefined&&typeof win.AnimationEffect==="function";var $=typeof Element==="function"&&typeof Element.prototype.animate==="function"&&M;var q=100;var z=function(){return H};var Z=function(e){D.forEach((function(n){n.destroy(e)}));B(e);N.length=0;D.length=0;f.length=0;X();s=false;b=true;return k};var B=function(e){Y();if(e){ee()}};var G=function(){h=false;g=false;b=true;P=undefined;S=undefined;A=undefined;p=0;T=false;C=true;x=false};var J=function(){return p!==0&&!x};var Q=function(e,n){var r=n.findIndex((function(n){return n.c===e}));if(r>-1){n.splice(r,1)}};var U=function(e,n){R.push({c:e,o:n});return k};var V=function(e,n){var r=(n===null||n===void 0?void 0:n.oneTimeCallback)?I:_;r.push({c:e,o:n});return k};var X=function(){_.length=0;I.length=0;return k};var Y=function(){if($){H.forEach((function(e){e.cancel()}));H.length=0}else{var e=N.slice();raf((function(){e.forEach((function(e){removeStyleProperty(e,"animation-name");removeStyleProperty(e,"animation-duration");removeStyleProperty(e,"animation-timing-function");removeStyleProperty(e,"animation-iteration-count");removeStyleProperty(e,"animation-delay");removeStyleProperty(e,"animation-play-state");removeStyleProperty(e,"animation-fill-mode");removeStyleProperty(e,"animation-direction")}))}))}};var ee=function(){L.forEach((function(e){if(e===null||e===void 0?void 0:e.parentNode){e.parentNode.removeChild(e)}}));L.length=0};var ne=function(e){F.push(e);return k};var re=function(e){O.push(e);return k};var te=function(e){W.push(e);return k};var ae=function(e){j.push(e);return k};var ie=function(e){u=addClassToArray(u,e);return k};var oe=function(e){c=addClassToArray(c,e);return k};var fe=function(e){if(e===void 0){e={}}l=e;return k};var ue=function(e){if(e===void 0){e=[]}for(var n=0,r=e;n<r.length;n++){var t=r[n];l[t]=""}return k};var ce=function(e){d=addClassToArray(d,e);return k};var se=function(e){m=addClassToArray(m,e);return k};var ve=function(e){if(e===void 0){e={}}y=e;return k};var le=function(e){if(e===void 0){e=[]}for(var n=0,r=e;n<r.length;n++){var t=r[n];y[t]=""}return k};var de=function(){if(i!==undefined){return i}if(v){return v.getFill()}return"both"};var me=function(){if(P!==undefined){return P}if(o!==undefined){return o}if(v){return v.getDirection()}return"normal"};var ye=function(){if(h){return"linear"}if(t!==undefined){return t}if(v){return v.getEasing()}return"linear"};var pe=function(){if(g){return 0}if(S!==undefined){return S}if(r!==undefined){return r}if(v){return v.getDuration()}return 0};var he=function(){if(a!==undefined){return a}if(v){return v.getIterations()}return 1};var ge=function(){if(A!==undefined){return A}if(n!==undefined){return n}if(v){return v.getDelay()}return 0};var Ee=function(){return f};var Pe=function(e){o=e;He(true);return k};var Se=function(e){i=e;He(true);return k};var Ae=function(e){n=e;He(true);return k};var Ce=function(e){t=e;He(true);return k};var Te=function(e){if(!$&&e===0){e=1}r=e;He(true);return k};var be=function(e){a=e;He(true);return k};var we=function(e){v=e;return k};var ke=function(e){if(e!=null){if(e.nodeType===1){N.push(e)}else if(e.length>=0){for(var n=0;n<e.length;n++){N.push(e[n])}}else{console.error("Invalid addElement value")}}return k};var xe=function(e){if(e!=null){if(Array.isArray(e)){for(var n=0,r=e;n<r.length;n++){var t=r[n];t.parent(k);D.push(t)}}else{e.parent(k);D.push(e)}}return k};var Ke=function(e){var n=f!==e;f=e;if(n){_e(f)}return k};var _e=function(e){if($){z().forEach((function(n){if(n.effect.setKeyframes){n.effect.setKeyframes(e)}else{var r=new KeyframeEffect(n.effect.target,e,n.effect.getTiming());n.effect=r}}))}else{De()}};var Ie=function(){F.forEach((function(e){return e()}));O.forEach((function(e){return e()}));var e=u;var n=c;var r=l;N.forEach((function(t){var a=t.classList;e.forEach((function(e){return a.add(e)}));n.forEach((function(e){return a.remove(e)}));for(var i in r){if(r.hasOwnProperty(i)){setStyleProperty(t,i,r[i])}}}))};var Re=function(){Ge();W.forEach((function(e){return e()}));j.forEach((function(e){return e()}));var e=C?1:0;var n=d;var r=m;var t=y;N.forEach((function(e){var a=e.classList;n.forEach((function(e){return a.add(e)}));r.forEach((function(e){return a.remove(e)}));for(var i in t){if(t.hasOwnProperty(i)){setStyleProperty(e,i,t[i])}}}));_.forEach((function(n){return n.c(e,k)}));I.forEach((function(n){return n.c(e,k)}));I.length=0;b=true;if(C){T=true}C=true};var Ne=function(){if(p===0){return}p--;if(p===0){Re();if(v){v.animationFinish()}}};var De=function(n){if(n===void 0){n=true}ee();var r=processKeyframes(f);N.forEach((function(t){if(r.length>0){var a=generateKeyframeRules(r);w=e!==undefined?e:generateKeyframeName(a);var i=createKeyframeStylesheet(w,a,t);L.push(i);setStyleProperty(t,"animation-duration","".concat(pe(),"ms"));setStyleProperty(t,"animation-timing-function",ye());setStyleProperty(t,"animation-delay","".concat(ge(),"ms"));setStyleProperty(t,"animation-fill-mode",de());setStyleProperty(t,"animation-direction",me());var o=he()===Infinity?"infinite":he().toString();setStyleProperty(t,"animation-iteration-count",o);setStyleProperty(t,"animation-play-state","paused");if(n){setStyleProperty(t,"animation-name","".concat(i.id,"-alt"))}raf((function(){setStyleProperty(t,"animation-name",i.id||null)}))}}))};var Le=function(){N.forEach((function(e){var n=e.animate(f,{id:K,delay:ge(),duration:pe(),easing:ye(),iterations:he(),fill:de(),direction:me()});n.pause();H.push(n)}));if(H.length>0){H[0].onfinish=function(){Ne()}}};var Fe=function(e){if(e===void 0){e=true}Ie();if(f.length>0){if($){Le()}else{De(e)}}s=true};var Oe=function(e){e=Math.min(Math.max(e,0),.9999);if($){H.forEach((function(n){n.currentTime=n.effect.getComputedTiming().delay+pe()*e;n.pause()}))}else{var n="-".concat(pe()*e,"ms");N.forEach((function(e){if(f.length>0){setStyleProperty(e,"animation-delay",n);setStyleProperty(e,"animation-play-state","paused")}}))}};var We=function(e){H.forEach((function(e){e.effect.updateTiming({delay:ge(),duration:pe(),easing:ye(),iterations:he(),fill:de(),direction:me()})}));if(e!==undefined){Oe(e)}};var je=function(e,n){if(e===void 0){e=true}raf((function(){N.forEach((function(r){setStyleProperty(r,"animation-name",w||null);setStyleProperty(r,"animation-duration","".concat(pe(),"ms"));setStyleProperty(r,"animation-timing-function",ye());setStyleProperty(r,"animation-delay",n!==undefined?"-".concat(n*pe(),"ms"):"".concat(ge(),"ms"));setStyleProperty(r,"animation-fill-mode",de()||null);setStyleProperty(r,"animation-direction",me()||null);var t=he()===Infinity?"infinite":he().toString();setStyleProperty(r,"animation-iteration-count",t);if(e){setStyleProperty(r,"animation-name","".concat(w,"-alt"))}raf((function(){setStyleProperty(r,"animation-name",w||null)}))}))}))};var He=function(e,n,r){if(e===void 0){e=false}if(n===void 0){n=true}if(e){D.forEach((function(t){t.update(e,n,r)}))}if($){We(r)}else{je(n,r)}return k};var Me=function(e,n){if(e===void 0){e=false}D.forEach((function(r){r.progressStart(e,n)}));ze();h=e;if(!s){Fe()}He(false,true,n);return k};var $e=function(e){D.forEach((function(n){n.progressStep(e)}));Oe(e);return k};var qe=function(e,n,r){h=false;D.forEach((function(t){t.progressEnd(e,n,r)}));if(r!==undefined){S=r}T=false;C=true;if(e===0){P=me()==="reverse"?"normal":"reverse";if(P==="reverse"){C=false}if($){He();Oe(1-n)}else{A=(1-n)*pe()*-1;He(false,false)}}else if(e===1){if($){He();Oe(n)}else{A=n*pe()*-1;He(false,false)}}if(e!==undefined){V((function(){S=undefined;P=undefined;A=undefined}),{oneTimeCallback:true});if(!v){Xe()}}return k};var ze=function(){if(s){if($){H.forEach((function(e){e.pause()}))}else{N.forEach((function(e){setStyleProperty(e,"animation-play-state","paused")}))}x=true}};var Ze=function(){D.forEach((function(e){e.pause()}));ze();return k};var Be=function(){E=undefined;Ne()};var Ge=function(){if(E){clearTimeout(E)}};var Je=function(){Ge();raf((function(){N.forEach((function(e){if(f.length>0){setStyleProperty(e,"animation-play-state","running")}}))}));if(f.length===0||N.length===0){Ne()}else{var e=ge()||0;var n=pe()||0;var r=he()||1;if(isFinite(r)){E=setTimeout(Be,e+n*r+q)}animationEnd(N[0],(function(){Ge();raf((function(){Qe();raf(Ne)}))}))}};var Qe=function(){N.forEach((function(e){removeStyleProperty(e,"animation-duration");removeStyleProperty(e,"animation-delay");removeStyleProperty(e,"animation-play-state")}))};var Ue=function(){H.forEach((function(e){e.play()}));if(f.length===0||N.length===0){Ne()}};var Ve=function(){if($){Oe(0);We()}else{je()}};var Xe=function(e){return new Promise((function(n){if(e===null||e===void 0?void 0:e.sync){g=true;V((function(){return g=false}),{oneTimeCallback:true})}if(!s){Fe()}if(T){Ve();T=false}if(b){p=D.length+1;b=false}var r=function(){Q(t,I);n()};var t=function(){Q(r,R);n()};V(t,{oneTimeCallback:true});U(r,{oneTimeCallback:true});D.forEach((function(e){e.play()}));if($){Ue()}else{Je()}x=false}))};var Ye=function(){D.forEach((function(e){e.stop()}));if(s){Y();s=false}G();R.forEach((function(e){return e.c(0,k)}));R.length=0};var en=function(e,n){var r;var t=f[0];if(t!==undefined&&(t.offset===undefined||t.offset===0)){t[e]=n}else{f=__spreadArray([(r={offset:0},r[e]=n,r)],f,true)}return k};var nn=function(e,n){var r;var t=f[f.length-1];if(t!==undefined&&(t.offset===undefined||t.offset===1)){t[e]=n}else{f=__spreadArray(__spreadArray([],f,true),[(r={offset:1},r[e]=n,r)],false)}return k};var rn=function(e,n,r){return en(e,n).to(e,r)};return k={parentAnimation:v,elements:N,childAnimations:D,id:K,animationFinish:Ne,from:en,to:nn,fromTo:rn,parent:we,play:Xe,pause:Ze,stop:Ye,destroy:Z,keyframes:Ke,addAnimation:xe,addElement:ke,update:He,fill:Se,direction:Pe,iterations:be,duration:Te,easing:Ce,delay:Ae,getWebAnimations:z,getKeyframes:Ee,getFill:de,getDirection:me,getDelay:ge,getIterations:he,getEasing:ye,getDuration:pe,afterAddRead:te,afterAddWrite:ae,afterClearStyles:le,afterStyles:ve,afterRemoveClass:se,afterAddClass:ce,beforeAddRead:ne,beforeAddWrite:re,beforeClearStyles:ue,beforeStyles:fe,beforeRemoveClass:oe,beforeAddClass:ie,onFinish:V,isRunning:J,progressStart:Me,progressStep:$e,progressEnd:qe}};export{createAnimation as c};
|
|
4
|
+
*/import{w as win}from"./index-7a14ecec.js";import{r as raf}from"./helpers-3379ba19.js";var animationPrefix;var processKeyframes=function(n){n.forEach((function(n){for(var r in n){if(n.hasOwnProperty(r)){var e=n[r];if(r==="easing"){var t="animation-timing-function";n[t]=e;delete n[r]}else{var t=convertCamelCaseToHypen(r);if(t!==r){n[t]=e;delete n[r]}}}}}));return n};var convertCamelCaseToHypen=function(n){return n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()};var getAnimationPrefix=function(n){if(animationPrefix===undefined){var r=n.style.animationName!==undefined;var e=n.style.webkitAnimationName!==undefined;animationPrefix=!r&&e?"-webkit-":""}return animationPrefix};var setStyleProperty=function(n,r,e){var t=r.startsWith("animation")?getAnimationPrefix(n):"";n.style.setProperty(t+r,e)};var removeStyleProperty=function(n,r){var e=r.startsWith("animation")?getAnimationPrefix(n):"";n.style.removeProperty(e+r)};var animationEnd=function(n,r){var e;var t={passive:true};var i=function(){if(e){e()}};var a=function(e){if(n===e.target){i();r(e)}};if(n){n.addEventListener("webkitAnimationEnd",a,t);n.addEventListener("animationend",a,t);e=function(){n.removeEventListener("webkitAnimationEnd",a,t);n.removeEventListener("animationend",a,t)}}return i};var generateKeyframeRules=function(n){if(n===void 0){n=[]}return n.map((function(n){var r=n.offset;var e=[];for(var t in n){if(n.hasOwnProperty(t)&&t!=="offset"){e.push("".concat(t,": ").concat(n[t],";"))}}return"".concat(r*100,"% { ").concat(e.join(" ")," }")})).join(" ")};var keyframeIds=[];var generateKeyframeName=function(n){var r=keyframeIds.indexOf(n);if(r<0){r=keyframeIds.push(n)-1}return"ion-animation-".concat(r)};var getStyleContainer=function(n){var r=n.getRootNode!==undefined?n.getRootNode():n;return r.head||r};var createKeyframeStylesheet=function(n,r,e){var t;var i=getStyleContainer(e);var a=getAnimationPrefix(e);var f=i.querySelector("#"+n);if(f){return f}var o=((t=e.ownerDocument)!==null&&t!==void 0?t:document).createElement("style");o.id=n;o.textContent="@".concat(a,"keyframes ").concat(n," { ").concat(r," } @").concat(a,"keyframes ").concat(n,"-alt { ").concat(r," }");i.appendChild(o);return o};var addClassToArray=function(n,r){if(n===void 0){n=[]}if(r!==undefined){var e=Array.isArray(r)?r:[r];return __spreadArray(__spreadArray([],n,true),e,true)}return n};var createAnimation=function(n){var r;var e;var t;var i;var a;var f;var o=[];var u=[];var v=[];var l=false;var s;var c={};var d=[];var y=[];var m={};var p=0;var S=false;var P=false;var g;var A;var C;var b;var T=true;var k=false;var E=true;var _;var x;var K=false;var h=n;var w=[];var I=[];var R=[];var F=[];var D=[];var W=[];var j=[];var H=[];var M=[];var N=[];var $=[];var z=typeof AnimationEffect==="function"||win!==undefined&&typeof win.AnimationEffect==="function";var Z=typeof Element==="function"&&typeof Element.prototype.animate==="function"&&z;var q=100;var B=function(){return $};var G=function(n){D.forEach((function(r){r.destroy(n)}));J(n);F.length=0;D.length=0;o.length=0;X();l=false;E=true;return x};var J=function(n){Y();if(n){nn()}};var L=function(){S=false;P=false;E=true;A=undefined;C=undefined;b=undefined;p=0;k=false;T=true;K=false};var O=function(){return p!==0&&!K};var Q=function(n,r){var e=r.findIndex((function(r){return r.c===n}));if(e>-1){r.splice(e,1)}};var U=function(n,r){R.push({c:n,o:r});return x};var V=function(n,r){var e=(r===null||r===void 0?void 0:r.oneTimeCallback)?I:w;e.push({c:n,o:r});return x};var X=function(){w.length=0;I.length=0;return x};var Y=function(){if(Z){$.forEach((function(n){n.cancel()}));$.length=0}else{var n=F.slice();raf((function(){n.forEach((function(n){removeStyleProperty(n,"animation-name");removeStyleProperty(n,"animation-duration");removeStyleProperty(n,"animation-timing-function");removeStyleProperty(n,"animation-iteration-count");removeStyleProperty(n,"animation-delay");removeStyleProperty(n,"animation-play-state");removeStyleProperty(n,"animation-fill-mode");removeStyleProperty(n,"animation-direction")}))}))}};var nn=function(){W.forEach((function(n){if(n===null||n===void 0?void 0:n.parentNode){n.parentNode.removeChild(n)}}));W.length=0};var rn=function(n){j.push(n);return x};var en=function(n){H.push(n);return x};var tn=function(n){M.push(n);return x};var an=function(n){N.push(n);return x};var fn=function(n){u=addClassToArray(u,n);return x};var on=function(n){v=addClassToArray(v,n);return x};var un=function(n){if(n===void 0){n={}}c=n;return x};var vn=function(n){if(n===void 0){n=[]}for(var r=0,e=n;r<e.length;r++){var t=e[r];c[t]=""}return x};var ln=function(n){d=addClassToArray(d,n);return x};var sn=function(n){y=addClassToArray(y,n);return x};var cn=function(n){if(n===void 0){n={}}m=n;return x};var dn=function(n){if(n===void 0){n=[]}for(var r=0,e=n;r<e.length;r++){var t=e[r];m[t]=""}return x};var yn=function(){if(a!==undefined){return a}if(s){return s.getFill()}return"both"};var mn=function(){if(A!==undefined){return A}if(f!==undefined){return f}if(s){return s.getDirection()}return"normal"};var pn=function(){if(S){return"linear"}if(t!==undefined){return t}if(s){return s.getEasing()}return"linear"};var Sn=function(){if(P){return 0}if(C!==undefined){return C}if(e!==undefined){return e}if(s){return s.getDuration()}return 0};var Pn=function(){if(i!==undefined){return i}if(s){return s.getIterations()}return 1};var gn=function(){if(b!==undefined){return b}if(r!==undefined){return r}if(s){return s.getDelay()}return 0};var An=function(){return o};var Cn=function(n){f=n;zn(true);return x};var bn=function(n){a=n;zn(true);return x};var Tn=function(n){r=n;zn(true);return x};var kn=function(n){t=n;zn(true);return x};var En=function(n){if(!Z&&n===0){n=1}e=n;zn(true);return x};var _n=function(n){i=n;zn(true);return x};var xn=function(n){s=n;return x};var Kn=function(n){if(n!=null){if(n.nodeType===1){F.push(n)}else if(n.length>=0){for(var r=0;r<n.length;r++){F.push(n[r])}}else{console.error("Invalid addElement value")}}return x};var hn=function(n){if(n!=null){if(Array.isArray(n)){for(var r=0,e=n;r<e.length;r++){var t=e[r];t.parent(x);D.push(t)}}else{n.parent(x);D.push(n)}}return x};var wn=function(n){var r=o!==n;o=n;if(r){In(o)}return x};var In=function(n){if(Z){B().forEach((function(r){if(r.effect.setKeyframes){r.effect.setKeyframes(n)}else{var e=new KeyframeEffect(r.effect.target,n,r.effect.getTiming());r.effect=e}}))}else{Wn()}};var Rn=function(){j.forEach((function(n){return n()}));H.forEach((function(n){return n()}));var n=u;var r=v;var e=c;F.forEach((function(t){var i=t.classList;n.forEach((function(n){return i.add(n)}));r.forEach((function(n){return i.remove(n)}));for(var a in e){if(e.hasOwnProperty(a)){setStyleProperty(t,a,e[a])}}}))};var Fn=function(){On();M.forEach((function(n){return n()}));N.forEach((function(n){return n()}));var n=T?1:0;var r=d;var e=y;var t=m;F.forEach((function(n){var i=n.classList;r.forEach((function(n){return i.add(n)}));e.forEach((function(n){return i.remove(n)}));for(var a in t){if(t.hasOwnProperty(a)){setStyleProperty(n,a,t[a])}}}));w.forEach((function(r){return r.c(n,x)}));I.forEach((function(r){return r.c(n,x)}));I.length=0;E=true;if(T){k=true}T=true};var Dn=function(){if(p===0){return}p--;if(p===0){Fn();if(s){s.animationFinish()}}};var Wn=function(r){if(r===void 0){r=true}nn();var e=processKeyframes(o);F.forEach((function(t){if(e.length>0){var i=generateKeyframeRules(e);_=n!==undefined?n:generateKeyframeName(i);var a=createKeyframeStylesheet(_,i,t);W.push(a);setStyleProperty(t,"animation-duration","".concat(Sn(),"ms"));setStyleProperty(t,"animation-timing-function",pn());setStyleProperty(t,"animation-delay","".concat(gn(),"ms"));setStyleProperty(t,"animation-fill-mode",yn());setStyleProperty(t,"animation-direction",mn());var f=Pn()===Infinity?"infinite":Pn().toString();setStyleProperty(t,"animation-iteration-count",f);setStyleProperty(t,"animation-play-state","paused");if(r){setStyleProperty(t,"animation-name","".concat(a.id,"-alt"))}raf((function(){setStyleProperty(t,"animation-name",a.id||null)}))}}))};var jn=function(){F.forEach((function(n){var r=n.animate(o,{id:h,delay:gn(),duration:Sn(),easing:pn(),iterations:Pn(),fill:yn(),direction:mn()});r.pause();$.push(r)}));if($.length>0){$[0].onfinish=function(){Dn()}}};var Hn=function(n){if(n===void 0){n=true}Rn();if(o.length>0){if(Z){jn()}else{Wn(n)}}l=true};var Mn=function(n){n=Math.min(Math.max(n,0),.9999);if(Z){$.forEach((function(r){r.currentTime=r.effect.getComputedTiming().delay+Sn()*n;r.pause()}))}else{var r="-".concat(Sn()*n,"ms");F.forEach((function(n){if(o.length>0){setStyleProperty(n,"animation-delay",r);setStyleProperty(n,"animation-play-state","paused")}}))}};var Nn=function(n){$.forEach((function(n){n.effect.updateTiming({delay:gn(),duration:Sn(),easing:pn(),iterations:Pn(),fill:yn(),direction:mn()})}));if(n!==undefined){Mn(n)}};var $n=function(n,r){if(n===void 0){n=true}raf((function(){F.forEach((function(e){setStyleProperty(e,"animation-name",_||null);setStyleProperty(e,"animation-duration","".concat(Sn(),"ms"));setStyleProperty(e,"animation-timing-function",pn());setStyleProperty(e,"animation-delay",r!==undefined?"-".concat(r*Sn(),"ms"):"".concat(gn(),"ms"));setStyleProperty(e,"animation-fill-mode",yn()||null);setStyleProperty(e,"animation-direction",mn()||null);var t=Pn()===Infinity?"infinite":Pn().toString();setStyleProperty(e,"animation-iteration-count",t);if(n){setStyleProperty(e,"animation-name","".concat(_,"-alt"))}raf((function(){setStyleProperty(e,"animation-name",_||null)}))}))}))};var zn=function(n,r,e){if(n===void 0){n=false}if(r===void 0){r=true}if(n){D.forEach((function(t){t.update(n,r,e)}))}if(Z){Nn(e)}else{$n(r,e)}return x};var Zn=function(n,r){if(n===void 0){n=false}D.forEach((function(e){e.progressStart(n,r)}));Gn();S=n;if(!l){Hn()}zn(false,true,r);return x};var qn=function(n){D.forEach((function(r){r.progressStep(n)}));Mn(n);return x};var Bn=function(n,r,e){S=false;D.forEach((function(t){t.progressEnd(n,r,e)}));if(e!==undefined){C=e}k=false;T=true;if(n===0){A=mn()==="reverse"?"normal":"reverse";if(A==="reverse"){T=false}if(Z){zn();Mn(1-r)}else{b=(1-r)*Sn()*-1;zn(false,false)}}else if(n===1){if(Z){zn();Mn(r)}else{b=r*Sn()*-1;zn(false,false)}}if(n!==undefined){V((function(){C=undefined;A=undefined;b=undefined}),{oneTimeCallback:true});if(!s){Yn()}}return x};var Gn=function(){if(l){if(Z){$.forEach((function(n){n.pause()}))}else{F.forEach((function(n){setStyleProperty(n,"animation-play-state","paused")}))}K=true}};var Jn=function(){D.forEach((function(n){n.pause()}));Gn();return x};var Ln=function(){g=undefined;Dn()};var On=function(){if(g){clearTimeout(g)}};var Qn=function(){On();raf((function(){F.forEach((function(n){if(o.length>0){setStyleProperty(n,"animation-play-state","running")}}))}));if(o.length===0||F.length===0){Dn()}else{var n=gn()||0;var r=Sn()||0;var e=Pn()||1;if(isFinite(e)){g=setTimeout(Ln,n+r*e+q)}animationEnd(F[0],(function(){On();raf((function(){Un();raf(Dn)}))}))}};var Un=function(){F.forEach((function(n){removeStyleProperty(n,"animation-duration");removeStyleProperty(n,"animation-delay");removeStyleProperty(n,"animation-play-state")}))};var Vn=function(){$.forEach((function(n){n.play()}));if(o.length===0||F.length===0){Dn()}};var Xn=function(){if(Z){Mn(0);Nn()}else{$n()}};var Yn=function(n){return new Promise((function(r){if(n===null||n===void 0?void 0:n.sync){P=true;V((function(){return P=false}),{oneTimeCallback:true})}if(!l){Hn()}if(k){Xn();k=false}if(E){p=D.length+1;E=false}var e=function(){Q(t,I);r()};var t=function(){Q(e,R);r()};V(t,{oneTimeCallback:true});U(e,{oneTimeCallback:true});D.forEach((function(n){n.play()}));if(Z){Vn()}else{Qn()}K=false}))};var nr=function(){D.forEach((function(n){n.stop()}));if(l){Y();l=false}L();R.forEach((function(n){return n.c(0,x)}));R.length=0};var rr=function(n,r){var e;var t=o[0];if(t!==undefined&&(t.offset===undefined||t.offset===0)){t[n]=r}else{o=__spreadArray([(e={offset:0},e[n]=r,e)],o,true)}return x};var er=function(n,r){var e;var t=o[o.length-1];if(t!==undefined&&(t.offset===undefined||t.offset===1)){t[n]=r}else{o=__spreadArray(__spreadArray([],o,true),[(e={offset:1},e[n]=r,e)],false)}return x};var tr=function(n,r,e){return rr(n,r).to(n,e)};return x={parentAnimation:s,elements:F,childAnimations:D,id:h,animationFinish:Dn,from:rr,to:er,fromTo:tr,parent:xn,play:Yn,pause:Jn,stop:nr,destroy:G,keyframes:wn,addAnimation:hn,addElement:Kn,update:zn,fill:bn,direction:Cn,iterations:_n,duration:En,easing:kn,delay:Tn,getWebAnimations:B,getKeyframes:An,getFill:yn,getDirection:mn,getDelay:gn,getIterations:Pn,getEasing:pn,getDuration:Sn,afterAddRead:tn,afterAddWrite:an,afterClearStyles:dn,afterStyles:cn,afterRemoveClass:sn,afterAddClass:ln,beforeAddRead:rn,beforeAddWrite:en,beforeClearStyles:vn,beforeStyles:un,beforeRemoveClass:on,beforeAddClass:fn,onFinish:V,isRunning:O,progressStart:Zn,progressStep:qn,progressEnd:Bn}};export{createAnimation as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{w as writeTask}from"./index-b49b173c.js";import{h as hapticSelectionEnd,a as hapticSelectionStart,b as hapticSelectionChanged}from"./haptic-1243b917.js";import{createGesture}from"./index-ff313b19.js";var createButtonActiveGesture=function(t,e){var n;var r;var i=function(t,r,i){if(typeof document==="undefined"){return}var
|
|
4
|
+
import{w as writeTask}from"./index-b49b173c.js";import{h as hapticSelectionEnd,a as hapticSelectionStart,b as hapticSelectionChanged}from"./haptic-1243b917.js";import{createGesture}from"./index-ff313b19.js";var createButtonActiveGesture=function(t,e){var n;var r;var i=function(t,r,i){if(typeof document==="undefined"){return}var c=document.elementFromPoint(t,r);if(!c||!e(c)){o();return}if(c!==n){o();a(c,i)}};var a=function(t,e){n=t;if(!r){r=n}var i=n;writeTask((function(){return i.classList.add("ion-activated")}));e()};var o=function(t){if(t===void 0){t=false}if(!n){return}var e=n;writeTask((function(){return e.classList.remove("ion-activated")}));if(t&&r!==n){n.click()}n=undefined};return createGesture({el:t,gestureName:"buttonActiveDrag",threshold:0,onStart:function(t){return i(t.currentX,t.currentY,hapticSelectionStart)},onMove:function(t){return i(t.currentX,t.currentY,hapticSelectionChanged)},onEnd:function(){o(true);hapticSelectionEnd();r=undefined}})};export{createButtonActiveGesture as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
var sanitizeDOMString=function(e){try{if(e instanceof IonicSafeString){return e.value}if(!isSanitizerEnabled()||typeof e!=="string"||e===""){return e}if(e.includes("onload=")){return""}var
|
|
4
|
+
var sanitizeDOMString=function(e){try{if(e instanceof IonicSafeString){return e.value}if(!isSanitizerEnabled()||typeof e!=="string"||e===""){return e}if(e.includes("onload=")){return""}var r=document.createDocumentFragment();var n=document.createElement("div");r.appendChild(n);n.innerHTML=e;blockedTags.forEach((function(e){var n=r.querySelectorAll(e);for(var t=n.length-1;t>=0;t--){var i=n[t];if(i.parentNode){i.parentNode.removeChild(i)}else{r.removeChild(i)}var a=getElementChildren(i);for(var o=0;o<a.length;o++){sanitizeElement(a[o])}}}));var t=getElementChildren(r);for(var i=0;i<t.length;i++){sanitizeElement(t[i])}var a=document.createElement("div");a.appendChild(r);var o=a.querySelector("div");return o!==null?o.innerHTML:a.innerHTML}catch(e){console.error(e);return""}};var sanitizeElement=function(e){if(e.nodeType&&e.nodeType!==1){return}if(typeof NamedNodeMap!=="undefined"&&!(e.attributes instanceof NamedNodeMap)){e.remove();return}for(var r=e.attributes.length-1;r>=0;r--){var n=e.attributes.item(r);var t=n.name;if(!allowedAttributes.includes(t.toLowerCase())){e.removeAttribute(t);continue}var i=n.value;var a=e[t];if(i!=null&&i.toLowerCase().includes("javascript:")||a!=null&&a.toLowerCase().includes("javascript:")){e.removeAttribute(t)}}var o=getElementChildren(e);for(var r=0;r<o.length;r++){sanitizeElement(o[r])}};var getElementChildren=function(e){return e.children!=null?e.children:e.childNodes};var isSanitizerEnabled=function(){var e;var r=window;var n=(e=r===null||r===void 0?void 0:r.Ionic)===null||e===void 0?void 0:e.config;if(n){if(n.get){return n.get("sanitizerEnabled",true)}else{return n.sanitizerEnabled===true||n.sanitizerEnabled===undefined}}return true};var allowedAttributes=["class","id","href","src","name","slot"];var blockedTags=["script","style","iframe","meta","link","object","embed"];var IonicSafeString=function(){function e(e){this.value=e}return e}();var setupConfig=function(e){var r=window;var n=r.Ionic;if(n&&n.config&&n.config.constructor.name!=="Object"){return}r.Ionic=r.Ionic||{};r.Ionic.config=Object.assign(Object.assign({},r.Ionic.config),e);return r.Ionic.config};var getMode=function(){var e;var r=window;var n=(e=r===null||r===void 0?void 0:r.Ionic)===null||e===void 0?void 0:e.config;if(n){if(n.mode){return n.mode}else{return n.get("mode")}}return"md"};var ENABLE_HTML_CONTENT_DEFAULT=false;export{ENABLE_HTML_CONTENT_DEFAULT as E,IonicSafeString as I,sanitizeDOMString as a,getMode as g,setupConfig as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
var getTimeGivenProgression=function(t,r,
|
|
4
|
+
var getTimeGivenProgression=function(t,a,r,e,i){return solveCubicBezier(t[1],a[1],r[1],e[1],i).map((function(i){return solveCubicParametricEquation(t[0],a[0],r[0],e[0],i)}))};var solveCubicParametricEquation=function(t,a,r,e,i){var n=3*a*Math.pow(i-1,2);var u=-3*r*i+3*r+e*i;var o=t*Math.pow(i-1,3);return i*(n+i*u)-o};var solveCubicBezier=function(t,a,r,e,i){t-=i;a-=i;r-=i;e-=i;var n=solveCubicEquation(e-3*r+3*a-t,3*r-6*a+3*t,3*a-3*t,t);return n.filter((function(t){return t>=0&&t<=1}))};var solveQuadraticEquation=function(t,a,r){var e=a*a-4*t*r;if(e<0){return[]}else{return[(-a+Math.sqrt(e))/(2*t),(-a-Math.sqrt(e))/(2*t)]}};var solveCubicEquation=function(t,a,r,e){if(t===0){return solveQuadraticEquation(a,r,e)}a/=t;r/=t;e/=t;var i=(3*r-a*a)/3;var n=(2*a*a*a-9*a*r+27*e)/27;if(i===0){return[Math.pow(-n,1/3)]}else if(n===0){return[Math.sqrt(-i),-Math.sqrt(-i)]}var u=Math.pow(n/2,2)+Math.pow(i/3,3);if(u===0){return[Math.pow(n/2,1/2)-a/3]}else if(u>0){return[Math.pow(-(n/2)+Math.sqrt(u),1/3)-Math.pow(n/2+Math.sqrt(u),1/3)-a/3]}var o=Math.sqrt(Math.pow(-(i/3),3));var v=Math.acos(-(n/(2*Math.sqrt(Math.pow(-(i/3),3)))));var h=2*Math.pow(o,1/3);return[h*Math.cos(v/3)-a/3,h*Math.cos((v+2*Math.PI)/3)-a/3,h*Math.cos((v+4*Math.PI)/3)-a/3]};export{getTimeGivenProgression as g};
|