@ionic/core 7.3.2 → 7.3.3-dev.11693533652.1969cc78
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/action-sheet.js +8 -16
- package/components/alert.js +8 -16
- package/components/framework-delegate.js +21 -2
- package/components/ion-loading.js +8 -16
- package/components/ion-modal.js +21 -29
- package/components/ion-picker.js +8 -16
- package/components/ion-router-outlet.js +1 -0
- package/components/ion-toast.js +8 -16
- package/components/label.js +2 -2
- package/components/lock-controller.js +38 -0
- package/components/popover.js +15 -29
- package/dist/cjs/{framework-delegate-e8174951.js → framework-delegate-c0873a6f.js} +21 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/ion-action-sheet.cjs.entry.js +10 -18
- package/dist/cjs/ion-alert.cjs.entry.js +10 -18
- package/dist/cjs/ion-app_8.cjs.entry.js +2 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +10 -18
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-loading.cjs.entry.js +10 -18
- package/dist/cjs/ion-menu_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-modal.cjs.entry.js +23 -31
- package/dist/cjs/ion-nav_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +17 -31
- package/dist/cjs/ion-select_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-toast.cjs.entry.js +10 -18
- package/dist/cjs/lock-controller-4ae2eb59.js +40 -0
- package/dist/cjs/{overlays-0ea06fcb.js → overlays-5c1706ed.js} +1 -1
- package/dist/collection/components/action-sheet/action-sheet.js +8 -16
- package/dist/collection/components/alert/alert.js +8 -16
- package/dist/collection/components/checkbox/test/color/checkbox.e2e.js +2 -2
- package/dist/collection/components/checkbox/test/item/checkbox.e2e.js +4 -4
- package/dist/collection/components/checkbox/test/label/checkbox.e2e.js +10 -10
- package/dist/collection/components/checkbox/test/legacy/basic/checkbox.e2e.js +1 -1
- package/dist/collection/components/checkbox/test/legacy/indeterminate/checkbox.e2e.js +1 -1
- package/dist/collection/components/checkbox/test/states/checkbox.e2e.js +4 -4
- package/dist/collection/components/datetime/test/custom/datetime.e2e.js +0 -7
- package/dist/collection/components/datetime/test/presentation/datetime.e2e.js +48 -17
- package/dist/collection/components/input/test/bottom-content/input.e2e.js +7 -7
- package/dist/collection/components/input/test/card/input.e2e.js +1 -1
- package/dist/collection/components/input/test/color/input.e2e.js +15 -15
- package/dist/collection/components/input/test/fill/input.e2e.js +10 -10
- package/dist/collection/components/input/test/highlight/input.e2e.js +9 -9
- package/dist/collection/components/input/test/item/input.e2e.js +2 -2
- package/dist/collection/components/input/test/label-placement/input.e2e.js +16 -16
- package/dist/collection/components/input/test/legacy/basic/input.e2e.js +10 -10
- package/dist/collection/components/input/test/states/input.e2e.js +2 -2
- package/dist/collection/components/label/label.ios.css +2 -4
- package/dist/collection/components/label/label.md.css +2 -4
- package/dist/collection/components/loading/loading.js +8 -16
- package/dist/collection/components/modal/modal.js +21 -29
- package/dist/collection/components/picker/picker.js +8 -16
- package/dist/collection/components/popover/popover.js +15 -29
- package/dist/collection/components/popover/test/async/popover.e2e.js +42 -0
- package/dist/collection/components/radio/test/color/radio.e2e.js +2 -2
- package/dist/collection/components/radio/test/item/radio.e2e.js +3 -3
- package/dist/collection/components/radio/test/label-placement/radio.e2e.js +9 -9
- package/dist/collection/components/radio/test/states/radio.e2e.js +4 -4
- package/dist/collection/components/range/test/color/range.e2e.js +1 -1
- package/dist/collection/components/range/test/custom/range.e2e.js +1 -1
- package/dist/collection/components/range/test/item/range.e2e.js +3 -3
- package/dist/collection/components/range/test/label/range.e2e.js +12 -12
- package/dist/collection/components/range/test/legacy/a11y/range.e2e.js +3 -3
- package/dist/collection/components/range/test/legacy/active-bar-start/range.e2e.js +1 -1
- package/dist/collection/components/range/test/legacy/basic/range.e2e.js +1 -1
- package/dist/collection/components/range/test/states/range.e2e.js +4 -4
- package/dist/collection/components/router-outlet/router-outlet.js +1 -0
- package/dist/collection/components/select/test/card/select.e2e.js +1 -1
- package/dist/collection/components/select/test/color/select.e2e.js +3 -3
- package/dist/collection/components/select/test/fill/select.e2e.js +10 -10
- package/dist/collection/components/select/test/highlight/select.e2e.js +3 -3
- package/dist/collection/components/select/test/item/select.e2e.js +2 -2
- package/dist/collection/components/select/test/label/select.e2e.js +20 -20
- package/dist/collection/components/select/test/states/select.e2e.js +4 -4
- package/dist/collection/components/textarea/test/bottom-content/textarea.e2e.js +6 -6
- package/dist/collection/components/textarea/test/card/textarea.e2e.js +1 -1
- package/dist/collection/components/textarea/test/color/textarea.e2e.js +15 -15
- package/dist/collection/components/textarea/test/fill/textarea.e2e.js +10 -10
- package/dist/collection/components/textarea/test/highlight/textarea.e2e.js +9 -9
- package/dist/collection/components/textarea/test/item/textarea.e2e.js +2 -2
- package/dist/collection/components/textarea/test/label-placement/textarea.e2e.js +21 -21
- package/dist/collection/components/textarea/test/legacy/autogrow/textarea.e2e.js +5 -5
- package/dist/collection/components/textarea/test/states/textarea.e2e.js +2 -2
- package/dist/collection/components/toast/toast.js +8 -16
- package/dist/collection/components/toggle/test/color/toggle.e2e.js +2 -2
- package/dist/collection/components/toggle/test/item/toggle.e2e.js +4 -4
- package/dist/collection/components/toggle/test/label/toggle.e2e.js +9 -9
- package/dist/collection/components/toggle/test/legacy/enable-on-off-labels/toggle.e2e.js +2 -2
- package/dist/collection/components/toggle/test/legacy/sizes/toggle.e2e.js +1 -1
- package/dist/collection/components/toggle/test/states/toggle.e2e.js +3 -3
- package/dist/collection/utils/framework-delegate.js +21 -2
- package/dist/collection/utils/lock-controller.js +36 -0
- package/dist/docs.json +1 -1
- package/dist/esm/{framework-delegate-2b76c681.js → framework-delegate-aa433dea.js} +21 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/ion-action-sheet.entry.js +10 -18
- package/dist/esm/ion-alert.entry.js +10 -18
- package/dist/esm/ion-app_8.entry.js +2 -1
- package/dist/esm/ion-datetime_3.entry.js +10 -18
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-loading.entry.js +10 -18
- package/dist/esm/ion-menu_3.entry.js +2 -2
- package/dist/esm/ion-modal.entry.js +23 -31
- package/dist/esm/ion-nav_2.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +17 -31
- package/dist/esm/ion-select_3.entry.js +2 -2
- package/dist/esm/ion-tab_2.entry.js +1 -1
- package/dist/esm/ion-toast.entry.js +10 -18
- package/dist/esm/lock-controller-e8c6c051.js +38 -0
- package/dist/esm/{overlays-c3387ec0.js → overlays-e1dadfe6.js} +1 -1
- package/dist/esm-es5/framework-delegate-aa433dea.js +4 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/ion-action-sheet.entry.js +1 -1
- package/dist/esm-es5/ion-alert.entry.js +1 -1
- package/dist/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-datetime_3.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-popover.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/lock-controller-e8c6c051.js +4 -0
- package/dist/esm-es5/{overlays-c3387ec0.js → overlays-e1dadfe6.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-958bde76.entry.js → p-091cd81e.entry.js} +1 -1
- package/dist/ionic/{p-d1356034.system.entry.js → p-0b68c41d.system.entry.js} +1 -1
- package/dist/ionic/p-0cc2bf5a.system.entry.js +4 -0
- package/dist/ionic/p-208f640c.entry.js +4 -0
- package/dist/ionic/p-2539e967.system.entry.js +4 -0
- package/dist/ionic/{p-74bd26b8.system.entry.js → p-28f5715a.system.entry.js} +1 -1
- package/dist/ionic/{p-b9312889.entry.js → p-341d5877.entry.js} +1 -1
- package/dist/ionic/p-38dd9aec.entry.js +4 -0
- package/dist/ionic/p-3ff018da.entry.js +4 -0
- package/dist/ionic/{p-8074bdd7.system.entry.js → p-45ee211b.system.entry.js} +1 -1
- package/dist/ionic/p-5009cb46.entry.js +4 -0
- package/dist/ionic/p-53b2a46f.js +4 -0
- package/dist/ionic/{p-5ef91692.js → p-582dc7c1.js} +1 -1
- package/dist/ionic/{p-79e30193.system.entry.js → p-5ba27716.system.entry.js} +1 -1
- package/dist/ionic/{p-c0d1e5a1.entry.js → p-5c17f888.entry.js} +1 -1
- package/dist/ionic/{p-8d9475b5.system.js → p-613d4042.system.js} +1 -1
- package/dist/ionic/p-647d15d4.system.entry.js +4 -0
- package/dist/ionic/p-653f2fc6.entry.js +4 -0
- package/dist/ionic/p-721933ff.system.js +1 -1
- package/dist/ionic/p-772f6c84.system.js +4 -0
- package/dist/ionic/p-87383d00.system.entry.js +4 -0
- package/dist/ionic/{p-db46fc66.system.js → p-8843b046.system.js} +1 -1
- package/dist/ionic/p-93e47822.entry.js +4 -0
- package/dist/ionic/{p-229df0d8.entry.js → p-98ebc376.entry.js} +1 -1
- package/dist/ionic/p-af0bc751.system.entry.js +4 -0
- package/dist/ionic/p-b0e9e0b8.system.entry.js +4 -0
- package/dist/ionic/p-b287ab05.js +4 -0
- package/dist/ionic/{p-81b46714.system.js → p-b32742f3.system.js} +1 -1
- package/dist/ionic/p-b3394798.system.entry.js +4 -0
- package/dist/ionic/{p-20087c90.entry.js → p-c759a704.entry.js} +1 -1
- package/dist/ionic/{p-6b9bf14c.system.entry.js → p-d1d3b740.system.entry.js} +1 -1
- package/dist/ionic/{p-8fa43732.system.entry.js → p-d693e765.system.entry.js} +1 -1
- package/dist/ionic/{p-5c96dc4e.entry.js → p-f7faa32d.entry.js} +1 -1
- package/dist/ionic/p-fabb7294.entry.js +4 -0
- package/dist/types/components/action-sheet/action-sheet.d.ts +1 -1
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/loading/loading.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +1 -1
- package/dist/types/components/picker/picker.d.ts +1 -1
- package/dist/types/components/popover/popover.d.ts +1 -1
- package/dist/types/components/toast/toast.d.ts +1 -1
- package/dist/types/utils/lock-controller.d.ts +10 -0
- package/hydrate/index.js +127 -142
- package/package.json +1 -1
- package/dist/esm-es5/framework-delegate-2b76c681.js +0 -4
- package/dist/ionic/p-06f1f560.system.entry.js +0 -4
- package/dist/ionic/p-2936ec7f.system.entry.js +0 -4
- package/dist/ionic/p-29b3e70a.entry.js +0 -4
- package/dist/ionic/p-2bc49e5d.system.entry.js +0 -4
- package/dist/ionic/p-2da3e015.system.entry.js +0 -4
- package/dist/ionic/p-423d5a4d.entry.js +0 -4
- package/dist/ionic/p-564aaba3.entry.js +0 -4
- package/dist/ionic/p-61769039.entry.js +0 -4
- package/dist/ionic/p-74723f41.entry.js +0 -4
- package/dist/ionic/p-9b3c3564.entry.js +0 -4
- package/dist/ionic/p-b34c1ae1.js +0 -4
- package/dist/ionic/p-ccea9adc.system.entry.js +0 -4
- package/dist/ionic/p-d5db0834.system.entry.js +0 -4
- package/dist/ionic/p-d8538837.entry.js +0 -4
- package/dist/ionic/p-dd0b6889.system.entry.js +0 -4
package/components/popover.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
5
5
|
import { C as CoreDelegate, a as attachComponent, d as detachComponent } from './framework-delegate.js';
|
|
6
6
|
import { r as raf, g as getElementRoot, a as addEventListener, l as hasLazyBuild } from './helpers.js';
|
|
7
|
+
import { c as createLockController } from './lock-controller.js';
|
|
7
8
|
import { p as printIonWarning } from './index6.js';
|
|
8
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.js';
|
|
9
10
|
import { b as getIonMode, a as isPlatform } from './ionic-global.js';
|
|
@@ -984,6 +985,7 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
984
985
|
this.ionMount = createEvent(this, "ionMount", 7);
|
|
985
986
|
this.parentPopover = null;
|
|
986
987
|
this.coreDelegate = CoreDelegate();
|
|
988
|
+
this.lockController = createLockController();
|
|
987
989
|
this.inline = false;
|
|
988
990
|
this.focusDescendantOnPresent = false;
|
|
989
991
|
this.onBackdropTap = () => {
|
|
@@ -1157,28 +1159,24 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1157
1159
|
* was dispatched.
|
|
1158
1160
|
*/
|
|
1159
1161
|
async present(event) {
|
|
1162
|
+
const unlock = await this.lockController.lock();
|
|
1160
1163
|
if (this.presented) {
|
|
1164
|
+
unlock();
|
|
1161
1165
|
return;
|
|
1162
1166
|
}
|
|
1163
|
-
/**
|
|
1164
|
-
* When using an inline popover
|
|
1165
|
-
* and dismissing a popover it is possible to
|
|
1166
|
-
* quickly present the popover while it is
|
|
1167
|
-
* dismissing. We need to await any current
|
|
1168
|
-
* transition to allow the dismiss to finish
|
|
1169
|
-
* before presenting again.
|
|
1170
|
-
*/
|
|
1171
|
-
if (this.currentTransition !== undefined) {
|
|
1172
|
-
await this.currentTransition;
|
|
1173
|
-
}
|
|
1174
1167
|
const { el } = this;
|
|
1175
1168
|
const { inline, delegate } = this.getDelegate(true);
|
|
1169
|
+
/**
|
|
1170
|
+
* Emit ionMount so JS Frameworks have an opportunity
|
|
1171
|
+
* to add the child component to the DOM. The child
|
|
1172
|
+
* component will be assigned to this.usersElement below.
|
|
1173
|
+
*/
|
|
1174
|
+
this.ionMount.emit();
|
|
1176
1175
|
this.usersElement = await attachComponent(delegate, el, this.component, ['popover-viewport'], this.componentProps, inline);
|
|
1177
1176
|
if (!this.keyboardEvents) {
|
|
1178
1177
|
this.configureKeyboardInteraction();
|
|
1179
1178
|
}
|
|
1180
1179
|
this.configureDismissInteraction();
|
|
1181
|
-
this.ionMount.emit();
|
|
1182
1180
|
/**
|
|
1183
1181
|
* When using the lazy loaded build of Stencil, we need to wait
|
|
1184
1182
|
* for every Stencil component instance to be ready before presenting
|
|
@@ -1201,7 +1199,7 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1201
1199
|
else if (!this.keepContentsMounted) {
|
|
1202
1200
|
await waitForMount();
|
|
1203
1201
|
}
|
|
1204
|
-
|
|
1202
|
+
await present(this, 'popoverEnter', iosEnterAnimation, mdEnterAnimation, {
|
|
1205
1203
|
event: event || this.event,
|
|
1206
1204
|
size: this.size,
|
|
1207
1205
|
trigger: this.triggerEl,
|
|
@@ -1209,8 +1207,6 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1209
1207
|
side: this.side,
|
|
1210
1208
|
align: this.alignment,
|
|
1211
1209
|
});
|
|
1212
|
-
await this.currentTransition;
|
|
1213
|
-
this.currentTransition = undefined;
|
|
1214
1210
|
/**
|
|
1215
1211
|
* If popover is nested and was
|
|
1216
1212
|
* presented using the "Right" arrow key,
|
|
@@ -1220,6 +1216,7 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1220
1216
|
if (this.focusDescendantOnPresent) {
|
|
1221
1217
|
focusFirstDescendant(this.el, this.el);
|
|
1222
1218
|
}
|
|
1219
|
+
unlock();
|
|
1223
1220
|
}
|
|
1224
1221
|
/**
|
|
1225
1222
|
* Dismiss the popover overlay after it has been presented.
|
|
@@ -1230,23 +1227,12 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1230
1227
|
* a parent popover if this popover is nested. Defaults to `true`.
|
|
1231
1228
|
*/
|
|
1232
1229
|
async dismiss(data, role, dismissParentPopover = true) {
|
|
1233
|
-
|
|
1234
|
-
* When using an inline popover
|
|
1235
|
-
* and presenting a popover it is possible to
|
|
1236
|
-
* quickly dismiss the popover while it is
|
|
1237
|
-
* presenting. We need to await any current
|
|
1238
|
-
* transition to allow the present to finish
|
|
1239
|
-
* before dismissing again.
|
|
1240
|
-
*/
|
|
1241
|
-
if (this.currentTransition !== undefined) {
|
|
1242
|
-
await this.currentTransition;
|
|
1243
|
-
}
|
|
1230
|
+
const unlock = await this.lockController.lock();
|
|
1244
1231
|
const { destroyKeyboardInteraction, destroyDismissInteraction } = this;
|
|
1245
1232
|
if (dismissParentPopover && this.parentPopover) {
|
|
1246
1233
|
this.parentPopover.dismiss(data, role, dismissParentPopover);
|
|
1247
1234
|
}
|
|
1248
|
-
|
|
1249
|
-
const shouldDismiss = await this.currentTransition;
|
|
1235
|
+
const shouldDismiss = await dismiss(this, data, role, 'popoverLeave', iosLeaveAnimation, mdLeaveAnimation, this.event);
|
|
1250
1236
|
if (shouldDismiss) {
|
|
1251
1237
|
if (destroyKeyboardInteraction) {
|
|
1252
1238
|
destroyKeyboardInteraction();
|
|
@@ -1264,7 +1250,7 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1264
1250
|
const { delegate } = this.getDelegate();
|
|
1265
1251
|
await detachComponent(delegate, this.usersElement);
|
|
1266
1252
|
}
|
|
1267
|
-
|
|
1253
|
+
unlock();
|
|
1268
1254
|
return shouldDismiss;
|
|
1269
1255
|
}
|
|
1270
1256
|
/**
|
|
@@ -41,6 +41,7 @@ const CoreDelegate = () => {
|
|
|
41
41
|
const attachViewToDom = async (parentElement, userComponent, userComponentProps = {}, cssClasses = []) => {
|
|
42
42
|
var _a, _b;
|
|
43
43
|
BaseComponent = parentElement;
|
|
44
|
+
let ChildComponent;
|
|
44
45
|
/**
|
|
45
46
|
* If passing in a component via the `component` props
|
|
46
47
|
* we need to append it inside of our overlay component.
|
|
@@ -67,6 +68,7 @@ const CoreDelegate = () => {
|
|
|
67
68
|
* inside of the overlay component.
|
|
68
69
|
*/
|
|
69
70
|
BaseComponent.appendChild(el);
|
|
71
|
+
ChildComponent = el;
|
|
70
72
|
await new Promise((resolve) => helpers.componentOnReady(el, resolve));
|
|
71
73
|
}
|
|
72
74
|
else if (BaseComponent.children.length > 0 &&
|
|
@@ -75,7 +77,7 @@ const CoreDelegate = () => {
|
|
|
75
77
|
* The delegate host wrapper el is only needed for modals and popovers
|
|
76
78
|
* because they allow the dev to provide custom content to the overlay.
|
|
77
79
|
*/
|
|
78
|
-
const root = BaseComponent.children[0];
|
|
80
|
+
const root = (ChildComponent = BaseComponent.children[0]);
|
|
79
81
|
if (!root.classList.contains('ion-delegate-host')) {
|
|
80
82
|
/**
|
|
81
83
|
* If the root element is not a delegate host, it means
|
|
@@ -90,6 +92,12 @@ const CoreDelegate = () => {
|
|
|
90
92
|
el.append(...BaseComponent.children);
|
|
91
93
|
// Append the new parent element to the original parent element.
|
|
92
94
|
BaseComponent.appendChild(el);
|
|
95
|
+
/**
|
|
96
|
+
* Update the ChildComponent to be the
|
|
97
|
+
* newly created div in the event that one
|
|
98
|
+
* does not already exist.
|
|
99
|
+
*/
|
|
100
|
+
ChildComponent = el;
|
|
93
101
|
}
|
|
94
102
|
}
|
|
95
103
|
/**
|
|
@@ -105,7 +113,18 @@ const CoreDelegate = () => {
|
|
|
105
113
|
Reference = document.createComment('ionic teleport');
|
|
106
114
|
BaseComponent.parentNode.insertBefore(Reference, BaseComponent);
|
|
107
115
|
app.appendChild(BaseComponent);
|
|
108
|
-
|
|
116
|
+
/**
|
|
117
|
+
* We return the child component rather than the overlay
|
|
118
|
+
* reference itself since modal and popover will
|
|
119
|
+
* use this to wait for any Ionic components in the child view
|
|
120
|
+
* to be ready (i.e. componentOnReady) when using the
|
|
121
|
+
* lazy loaded component bundle.
|
|
122
|
+
*
|
|
123
|
+
* However, we fall back to returning BaseComponent
|
|
124
|
+
* in the event that a modal or popover is presented
|
|
125
|
+
* with no child content.
|
|
126
|
+
*/
|
|
127
|
+
return ChildComponent !== null && ChildComponent !== void 0 ? ChildComponent : BaseComponent;
|
|
109
128
|
};
|
|
110
129
|
const removeViewFromDom = () => {
|
|
111
130
|
/**
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -15,12 +15,12 @@ const helpers = require('./helpers-ea4ccbcb.js');
|
|
|
15
15
|
const config = require('./config-d5882735.js');
|
|
16
16
|
const index$1 = require('./index-8568bedb.js');
|
|
17
17
|
const index$2 = require('./index-653be4df.js');
|
|
18
|
-
const overlays = require('./overlays-
|
|
18
|
+
const overlays = require('./overlays-5c1706ed.js');
|
|
19
19
|
require('./index-306a7476.js');
|
|
20
20
|
require('./gesture-controller-b46721be.js');
|
|
21
21
|
require('./index-484b1104.js');
|
|
22
22
|
require('./hardware-back-button-b67c8e75.js');
|
|
23
|
-
require('./framework-delegate-
|
|
23
|
+
require('./framework-delegate-c0873a6f.js');
|
|
24
24
|
require('./index-cc7dfb7c.js');
|
|
25
25
|
|
|
26
26
|
const IonicSlides = (opts) => {
|
|
@@ -8,7 +8,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
const index = require('./index-484b1104.js');
|
|
9
9
|
const buttonActive = require('./button-active-dfd2756e.js');
|
|
10
10
|
const helpers = require('./helpers-ea4ccbcb.js');
|
|
11
|
-
const
|
|
11
|
+
const lockController = require('./lock-controller-4ae2eb59.js');
|
|
12
|
+
const overlays = require('./overlays-5c1706ed.js');
|
|
12
13
|
const theme = require('./theme-fbc56b3b.js');
|
|
13
14
|
const ionicGlobal = require('./ionic-global-f81d8b73.js');
|
|
14
15
|
const animation = require('./animation-2bb33618.js');
|
|
@@ -17,7 +18,7 @@ require('./capacitor-2ffba62a.js');
|
|
|
17
18
|
require('./index-306a7476.js');
|
|
18
19
|
require('./index-0ee995e4.js');
|
|
19
20
|
require('./gesture-controller-b46721be.js');
|
|
20
|
-
require('./framework-delegate-
|
|
21
|
+
require('./framework-delegate-c0873a6f.js');
|
|
21
22
|
require('./hardware-back-button-b67c8e75.js');
|
|
22
23
|
require('./index-cc7dfb7c.js');
|
|
23
24
|
|
|
@@ -121,6 +122,7 @@ const ActionSheet = class {
|
|
|
121
122
|
this.willDismissShorthand = index.createEvent(this, "willDismiss", 7);
|
|
122
123
|
this.didDismissShorthand = index.createEvent(this, "didDismiss", 7);
|
|
123
124
|
this.delegateController = overlays.createDelegateController(this);
|
|
125
|
+
this.lockController = lockController.createLockController();
|
|
124
126
|
this.triggerController = overlays.createTriggerController();
|
|
125
127
|
this.presented = false;
|
|
126
128
|
this.onBackdropTap = () => {
|
|
@@ -168,21 +170,10 @@ const ActionSheet = class {
|
|
|
168
170
|
* Present the action sheet overlay after it has been created.
|
|
169
171
|
*/
|
|
170
172
|
async present() {
|
|
171
|
-
|
|
172
|
-
* When using an inline action sheet
|
|
173
|
-
* and dismissing a action sheet it is possible to
|
|
174
|
-
* quickly present the action sheet while it is
|
|
175
|
-
* dismissing. We need to await any current
|
|
176
|
-
* transition to allow the dismiss to finish
|
|
177
|
-
* before presenting again.
|
|
178
|
-
*/
|
|
179
|
-
if (this.currentTransition !== undefined) {
|
|
180
|
-
await this.currentTransition;
|
|
181
|
-
}
|
|
173
|
+
const unlock = await this.lockController.lock();
|
|
182
174
|
await this.delegateController.attachViewToDom();
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
this.currentTransition = undefined;
|
|
175
|
+
await overlays.present(this, 'actionSheetEnter', iosEnterAnimation, mdEnterAnimation);
|
|
176
|
+
unlock();
|
|
186
177
|
}
|
|
187
178
|
/**
|
|
188
179
|
* Dismiss the action sheet overlay after it has been presented.
|
|
@@ -194,11 +185,12 @@ const ActionSheet = class {
|
|
|
194
185
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
195
186
|
*/
|
|
196
187
|
async dismiss(data, role) {
|
|
197
|
-
|
|
198
|
-
const dismissed = await this
|
|
188
|
+
const unlock = await this.lockController.lock();
|
|
189
|
+
const dismissed = await overlays.dismiss(this, data, role, 'actionSheetLeave', iosLeaveAnimation, mdLeaveAnimation);
|
|
199
190
|
if (dismissed) {
|
|
200
191
|
this.delegateController.removeViewFromDom();
|
|
201
192
|
}
|
|
193
|
+
unlock();
|
|
202
194
|
return dismissed;
|
|
203
195
|
}
|
|
204
196
|
/**
|
|
@@ -9,7 +9,8 @@ const index = require('./index-484b1104.js');
|
|
|
9
9
|
const config = require('./config-d5882735.js');
|
|
10
10
|
const buttonActive = require('./button-active-dfd2756e.js');
|
|
11
11
|
const helpers = require('./helpers-ea4ccbcb.js');
|
|
12
|
-
const
|
|
12
|
+
const lockController = require('./lock-controller-4ae2eb59.js');
|
|
13
|
+
const overlays = require('./overlays-5c1706ed.js');
|
|
13
14
|
const theme = require('./theme-fbc56b3b.js');
|
|
14
15
|
const ionicGlobal = require('./ionic-global-f81d8b73.js');
|
|
15
16
|
const animation = require('./animation-2bb33618.js');
|
|
@@ -18,7 +19,7 @@ require('./capacitor-2ffba62a.js');
|
|
|
18
19
|
require('./index-306a7476.js');
|
|
19
20
|
require('./index-0ee995e4.js');
|
|
20
21
|
require('./gesture-controller-b46721be.js');
|
|
21
|
-
require('./framework-delegate-
|
|
22
|
+
require('./framework-delegate-c0873a6f.js');
|
|
22
23
|
require('./hardware-back-button-b67c8e75.js');
|
|
23
24
|
require('./index-cc7dfb7c.js');
|
|
24
25
|
|
|
@@ -123,6 +124,7 @@ const Alert = class {
|
|
|
123
124
|
this.willDismissShorthand = index.createEvent(this, "willDismiss", 7);
|
|
124
125
|
this.didDismissShorthand = index.createEvent(this, "didDismiss", 7);
|
|
125
126
|
this.delegateController = overlays.createDelegateController(this);
|
|
127
|
+
this.lockController = lockController.createLockController();
|
|
126
128
|
this.triggerController = overlays.createTriggerController();
|
|
127
129
|
this.customHTMLEnabled = ionicGlobal.config.get('innerHTMLTemplatesEnabled', config.ENABLE_HTML_CONTENT_DEFAULT);
|
|
128
130
|
this.processedInputs = [];
|
|
@@ -289,21 +291,10 @@ const Alert = class {
|
|
|
289
291
|
* Present the alert overlay after it has been created.
|
|
290
292
|
*/
|
|
291
293
|
async present() {
|
|
292
|
-
|
|
293
|
-
* When using an inline alert
|
|
294
|
-
* and dismissing an alert it is possible to
|
|
295
|
-
* quickly present the alert while it is
|
|
296
|
-
* dismissing. We need to await any current
|
|
297
|
-
* transition to allow the dismiss to finish
|
|
298
|
-
* before presenting again.
|
|
299
|
-
*/
|
|
300
|
-
if (this.currentTransition !== undefined) {
|
|
301
|
-
await this.currentTransition;
|
|
302
|
-
}
|
|
294
|
+
const unlock = await this.lockController.lock();
|
|
303
295
|
await this.delegateController.attachViewToDom();
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
this.currentTransition = undefined;
|
|
296
|
+
await overlays.present(this, 'alertEnter', iosEnterAnimation, mdEnterAnimation);
|
|
297
|
+
unlock();
|
|
307
298
|
}
|
|
308
299
|
/**
|
|
309
300
|
* Dismiss the alert overlay after it has been presented.
|
|
@@ -315,11 +306,12 @@ const Alert = class {
|
|
|
315
306
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
316
307
|
*/
|
|
317
308
|
async dismiss(data, role) {
|
|
318
|
-
|
|
319
|
-
const dismissed = await this
|
|
309
|
+
const unlock = await this.lockController.lock();
|
|
310
|
+
const dismissed = await overlays.dismiss(this, data, role, 'alertLeave', iosLeaveAnimation, mdLeaveAnimation);
|
|
320
311
|
if (dismissed) {
|
|
321
312
|
this.delegateController.removeViewFromDom();
|
|
322
313
|
}
|
|
314
|
+
unlock();
|
|
323
315
|
return dismissed;
|
|
324
316
|
}
|
|
325
317
|
/**
|
|
@@ -13,7 +13,7 @@ const theme = require('./theme-fbc56b3b.js');
|
|
|
13
13
|
const index$1 = require('./index-10873539.js');
|
|
14
14
|
const keyboardController = require('./keyboard-controller-50beb83a.js');
|
|
15
15
|
const cubicBezier = require('./cubic-bezier-6b9222ad.js');
|
|
16
|
-
const frameworkDelegate = require('./framework-delegate-
|
|
16
|
+
const frameworkDelegate = require('./framework-delegate-c0873a6f.js');
|
|
17
17
|
const index$2 = require('./index-8568bedb.js');
|
|
18
18
|
require('./index-cc7dfb7c.js');
|
|
19
19
|
require('./index-306a7476.js');
|
|
@@ -1111,6 +1111,7 @@ const RouterOutlet = class {
|
|
|
1111
1111
|
this.ionNavDidChange.emit();
|
|
1112
1112
|
return true;
|
|
1113
1113
|
}
|
|
1114
|
+
// TODO: FW-5048 - Remove this code in favor of using lock controller from utils
|
|
1114
1115
|
async lock() {
|
|
1115
1116
|
const p = this.waitPromise;
|
|
1116
1117
|
let resolve;
|
|
@@ -14,10 +14,11 @@ const theme = require('./theme-fbc56b3b.js');
|
|
|
14
14
|
const index$2 = require('./index-d8d1fc0b.js');
|
|
15
15
|
const ionicGlobal = require('./ionic-global-f81d8b73.js');
|
|
16
16
|
const data = require('./data-967b9c15.js');
|
|
17
|
-
const
|
|
17
|
+
const lockController = require('./lock-controller-4ae2eb59.js');
|
|
18
|
+
const overlays = require('./overlays-5c1706ed.js');
|
|
18
19
|
const animation = require('./animation-2bb33618.js');
|
|
19
20
|
const haptic = require('./haptic-c5f6b4d5.js');
|
|
20
|
-
require('./framework-delegate-
|
|
21
|
+
require('./framework-delegate-c0873a6f.js');
|
|
21
22
|
require('./hardware-back-button-b67c8e75.js');
|
|
22
23
|
require('./index-306a7476.js');
|
|
23
24
|
require('./capacitor-2ffba62a.js');
|
|
@@ -1730,6 +1731,7 @@ const Picker = class {
|
|
|
1730
1731
|
this.willDismissShorthand = index$1.createEvent(this, "willDismiss", 7);
|
|
1731
1732
|
this.didDismissShorthand = index$1.createEvent(this, "didDismiss", 7);
|
|
1732
1733
|
this.delegateController = overlays.createDelegateController(this);
|
|
1734
|
+
this.lockController = lockController.createLockController();
|
|
1733
1735
|
this.triggerController = overlays.createTriggerController();
|
|
1734
1736
|
this.onBackdropTap = () => {
|
|
1735
1737
|
this.dismiss(undefined, overlays.BACKDROP);
|
|
@@ -1796,24 +1798,13 @@ const Picker = class {
|
|
|
1796
1798
|
* Present the picker overlay after it has been created.
|
|
1797
1799
|
*/
|
|
1798
1800
|
async present() {
|
|
1799
|
-
|
|
1800
|
-
* When using an inline picker
|
|
1801
|
-
* and dismissing an picker it is possible to
|
|
1802
|
-
* quickly present the picker while it is
|
|
1803
|
-
* dismissing. We need to await any current
|
|
1804
|
-
* transition to allow the dismiss to finish
|
|
1805
|
-
* before presenting again.
|
|
1806
|
-
*/
|
|
1807
|
-
if (this.currentTransition !== undefined) {
|
|
1808
|
-
await this.currentTransition;
|
|
1809
|
-
}
|
|
1801
|
+
const unlock = await this.lockController.lock();
|
|
1810
1802
|
await this.delegateController.attachViewToDom();
|
|
1811
|
-
|
|
1812
|
-
await this.currentTransition;
|
|
1813
|
-
this.currentTransition = undefined;
|
|
1803
|
+
await overlays.present(this, 'pickerEnter', iosEnterAnimation, iosEnterAnimation, undefined);
|
|
1814
1804
|
if (this.duration > 0) {
|
|
1815
1805
|
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration);
|
|
1816
1806
|
}
|
|
1807
|
+
unlock();
|
|
1817
1808
|
}
|
|
1818
1809
|
/**
|
|
1819
1810
|
* Dismiss the picker overlay after it has been presented.
|
|
@@ -1825,14 +1816,15 @@ const Picker = class {
|
|
|
1825
1816
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
1826
1817
|
*/
|
|
1827
1818
|
async dismiss(data, role) {
|
|
1819
|
+
const unlock = await this.lockController.lock();
|
|
1828
1820
|
if (this.durationTimeout) {
|
|
1829
1821
|
clearTimeout(this.durationTimeout);
|
|
1830
1822
|
}
|
|
1831
|
-
|
|
1832
|
-
const dismissed = await this.currentTransition;
|
|
1823
|
+
const dismissed = await overlays.dismiss(this, data, role, 'pickerLeave', iosLeaveAnimation, iosLeaveAnimation);
|
|
1833
1824
|
if (dismissed) {
|
|
1834
1825
|
this.delegateController.removeViewFromDom();
|
|
1835
1826
|
}
|
|
1827
|
+
unlock();
|
|
1836
1828
|
return dismissed;
|
|
1837
1829
|
}
|
|
1838
1830
|
/**
|
|
@@ -297,9 +297,9 @@ ItemGroup.style = {
|
|
|
297
297
|
md: itemGroupMdCss
|
|
298
298
|
};
|
|
299
299
|
|
|
300
|
-
const labelIosCss = ".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h
|
|
300
|
+
const labelIosCss = ".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:14px;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:14px}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:22px;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:17px;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}";
|
|
301
301
|
|
|
302
|
-
const labelMdCss = ".item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h,[text-wrap].sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:\"\"}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}";
|
|
302
|
+
const labelMdCss = ".item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:\"\"}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:24px;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:16px;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:14px;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:14px;line-height:20px;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}";
|
|
303
303
|
|
|
304
304
|
const Label = class {
|
|
305
305
|
constructor(hostRef) {
|
|
@@ -8,11 +8,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
const index = require('./index-484b1104.js');
|
|
9
9
|
const config = require('./config-d5882735.js');
|
|
10
10
|
const helpers = require('./helpers-ea4ccbcb.js');
|
|
11
|
-
const
|
|
11
|
+
const lockController = require('./lock-controller-4ae2eb59.js');
|
|
12
|
+
const overlays = require('./overlays-5c1706ed.js');
|
|
12
13
|
const theme = require('./theme-fbc56b3b.js');
|
|
13
14
|
const ionicGlobal = require('./ionic-global-f81d8b73.js');
|
|
14
15
|
const animation = require('./animation-2bb33618.js');
|
|
15
|
-
require('./framework-delegate-
|
|
16
|
+
require('./framework-delegate-c0873a6f.js');
|
|
16
17
|
require('./hardware-back-button-b67c8e75.js');
|
|
17
18
|
require('./index-cc7dfb7c.js');
|
|
18
19
|
require('./index-306a7476.js');
|
|
@@ -121,6 +122,7 @@ const Loading = class {
|
|
|
121
122
|
this.willDismissShorthand = index.createEvent(this, "willDismiss", 7);
|
|
122
123
|
this.didDismissShorthand = index.createEvent(this, "didDismiss", 7);
|
|
123
124
|
this.delegateController = overlays.createDelegateController(this);
|
|
125
|
+
this.lockController = lockController.createLockController();
|
|
124
126
|
this.triggerController = overlays.createTriggerController();
|
|
125
127
|
this.customHTMLEnabled = ionicGlobal.config.get('innerHTMLTemplatesEnabled', config.ENABLE_HTML_CONTENT_DEFAULT);
|
|
126
128
|
this.presented = false;
|
|
@@ -186,24 +188,13 @@ const Loading = class {
|
|
|
186
188
|
* Present the loading overlay after it has been created.
|
|
187
189
|
*/
|
|
188
190
|
async present() {
|
|
189
|
-
|
|
190
|
-
* When using an inline loading indicator
|
|
191
|
-
* and dismissing a loading indicator it is possible to
|
|
192
|
-
* quickly present the loading indicator while it is
|
|
193
|
-
* dismissing. We need to await any current
|
|
194
|
-
* transition to allow the dismiss to finish
|
|
195
|
-
* before presenting again.
|
|
196
|
-
*/
|
|
197
|
-
if (this.currentTransition !== undefined) {
|
|
198
|
-
await this.currentTransition;
|
|
199
|
-
}
|
|
191
|
+
const unlock = await this.lockController.lock();
|
|
200
192
|
await this.delegateController.attachViewToDom();
|
|
201
|
-
|
|
202
|
-
await this.currentTransition;
|
|
193
|
+
await overlays.present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation);
|
|
203
194
|
if (this.duration > 0) {
|
|
204
195
|
this.durationTimeout = setTimeout(() => this.dismiss(), this.duration + 10);
|
|
205
196
|
}
|
|
206
|
-
|
|
197
|
+
unlock();
|
|
207
198
|
}
|
|
208
199
|
/**
|
|
209
200
|
* Dismiss the loading overlay after it has been presented.
|
|
@@ -215,14 +206,15 @@ const Loading = class {
|
|
|
215
206
|
* Some examples include: ``"cancel"`, `"destructive"`, "selected"`, and `"backdrop"`.
|
|
216
207
|
*/
|
|
217
208
|
async dismiss(data, role) {
|
|
209
|
+
const unlock = await this.lockController.lock();
|
|
218
210
|
if (this.durationTimeout) {
|
|
219
211
|
clearTimeout(this.durationTimeout);
|
|
220
212
|
}
|
|
221
|
-
|
|
222
|
-
const dismissed = await this.currentTransition;
|
|
213
|
+
const dismissed = await overlays.dismiss(this, data, role, 'loadingLeave', iosLeaveAnimation, mdLeaveAnimation);
|
|
223
214
|
if (dismissed) {
|
|
224
215
|
this.delegateController.removeViewFromDom();
|
|
225
216
|
}
|
|
217
|
+
unlock();
|
|
226
218
|
return dismissed;
|
|
227
219
|
}
|
|
228
220
|
/**
|
|
@@ -11,13 +11,13 @@ const index$2 = require('./index-306a7476.js');
|
|
|
11
11
|
const gestureController = require('./gesture-controller-b46721be.js');
|
|
12
12
|
const helpers = require('./helpers-ea4ccbcb.js');
|
|
13
13
|
const index$1 = require('./index-653be4df.js');
|
|
14
|
-
const overlays = require('./overlays-
|
|
14
|
+
const overlays = require('./overlays-5c1706ed.js');
|
|
15
15
|
const ionicGlobal = require('./ionic-global-f81d8b73.js');
|
|
16
16
|
const theme = require('./theme-fbc56b3b.js');
|
|
17
17
|
const index$3 = require('./index-d8d1fc0b.js');
|
|
18
18
|
require('./hardware-back-button-b67c8e75.js');
|
|
19
19
|
require('./animation-2bb33618.js');
|
|
20
|
-
require('./framework-delegate-
|
|
20
|
+
require('./framework-delegate-c0873a6f.js');
|
|
21
21
|
require('./index-cc7dfb7c.js');
|
|
22
22
|
|
|
23
23
|
const menuIosCss = ":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start) .menu-inner:dir(rtl){left:unset;right:unset;left:auto;right:0}}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end) .menu-inner:dir(rtl){left:unset;right:unset;left:0;right:auto}}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none !important;transform:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}:host(.menu-pane-visible) ion-backdrop{display:hidden !important;}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}";
|