@ionic/core 8.7.17-nightly.20260114 → 8.7.18-dev.11768592717.14a59d2f
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-footer.js +23 -3
- package/components/ion-input.js +35 -6
- package/components/ion-tab-bar.js +23 -3
- package/components/ion-toast.js +2 -2
- package/dist/cjs/ion-app_8.cjs.entry.js +23 -3
- package/dist/cjs/ion-input.cjs.entry.js +35 -6
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +23 -3
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/collection/components/footer/footer.js +23 -3
- package/dist/collection/components/input/input.js +35 -6
- package/dist/collection/components/tab-bar/tab-bar.js +23 -3
- package/dist/collection/components/toast/toast.ios.css +1 -1
- package/dist/collection/components/toast/toast.md.css +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/ion-app_8.entry.js +23 -3
- package/dist/esm/ion-input.entry.js +35 -6
- package/dist/esm/ion-tab-bar_2.entry.js +23 -3
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-b3d44509.entry.js → p-0e8c8a10.entry.js} +1 -1
- package/dist/ionic/p-172a579f.entry.js +4 -0
- package/dist/ionic/p-1ccd6829.entry.js +4 -0
- package/dist/ionic/p-66fbe052.entry.js +4 -0
- package/dist/types/components/footer/footer.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +11 -0
- package/dist/types/components/tab-bar/tab-bar.d.ts +1 -0
- package/hydrate/index.js +82 -14
- package/hydrate/index.mjs +82 -14
- package/package.json +1 -1
- package/dist/ionic/p-7268efa5.entry.js +0 -4
- package/dist/ionic/p-9ab2d871.entry.js +0 -4
- package/dist/ionic/p-db8027bd.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -15613,6 +15613,7 @@ class Footer {
|
|
|
15613
15613
|
constructor(hostRef) {
|
|
15614
15614
|
registerInstance(this, hostRef);
|
|
15615
15615
|
this.keyboardCtrl = null;
|
|
15616
|
+
this.keyboardCtrlPromise = null;
|
|
15616
15617
|
this.keyboardVisible = false;
|
|
15617
15618
|
/**
|
|
15618
15619
|
* If `true`, the footer will be translucent.
|
|
@@ -15660,7 +15661,7 @@ class Footer {
|
|
|
15660
15661
|
this.checkCollapsibleFooter();
|
|
15661
15662
|
}
|
|
15662
15663
|
async connectedCallback() {
|
|
15663
|
-
|
|
15664
|
+
const promise = createKeyboardController(async (keyboardOpen, waitForResize) => {
|
|
15664
15665
|
/**
|
|
15665
15666
|
* If the keyboard is hiding, then we need to wait
|
|
15666
15667
|
* for the webview to resize. Otherwise, the footer
|
|
@@ -15671,10 +15672,29 @@ class Footer {
|
|
|
15671
15672
|
}
|
|
15672
15673
|
this.keyboardVisible = keyboardOpen; // trigger re-render by updating state
|
|
15673
15674
|
});
|
|
15675
|
+
this.keyboardCtrlPromise = promise;
|
|
15676
|
+
const keyboardCtrl = await promise;
|
|
15677
|
+
/**
|
|
15678
|
+
* Only assign if this is still the current promise.
|
|
15679
|
+
* Otherwise, a new connectedCallback has started or
|
|
15680
|
+
* disconnectedCallback was called, so destroy this instance.
|
|
15681
|
+
*/
|
|
15682
|
+
if (this.keyboardCtrlPromise === promise) {
|
|
15683
|
+
this.keyboardCtrl = keyboardCtrl;
|
|
15684
|
+
this.keyboardCtrlPromise = null;
|
|
15685
|
+
}
|
|
15686
|
+
else {
|
|
15687
|
+
keyboardCtrl.destroy();
|
|
15688
|
+
}
|
|
15674
15689
|
}
|
|
15675
15690
|
disconnectedCallback() {
|
|
15691
|
+
if (this.keyboardCtrlPromise) {
|
|
15692
|
+
this.keyboardCtrlPromise.then((ctrl) => ctrl.destroy());
|
|
15693
|
+
this.keyboardCtrlPromise = null;
|
|
15694
|
+
}
|
|
15676
15695
|
if (this.keyboardCtrl) {
|
|
15677
15696
|
this.keyboardCtrl.destroy();
|
|
15697
|
+
this.keyboardCtrl = null;
|
|
15678
15698
|
}
|
|
15679
15699
|
}
|
|
15680
15700
|
destroyCollapsibleFooter() {
|
|
@@ -15688,7 +15708,7 @@ class Footer {
|
|
|
15688
15708
|
const mode = getIonMode$1(this);
|
|
15689
15709
|
const tabs = this.el.closest('ion-tabs');
|
|
15690
15710
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
15691
|
-
return (hAsync(Host, { key: '
|
|
15711
|
+
return (hAsync(Host, { key: '71939c4bbaef5062532a99ee2e33574102a9abad', role: "contentinfo", class: {
|
|
15692
15712
|
[mode]: true,
|
|
15693
15713
|
// Used internally for styling
|
|
15694
15714
|
[`footer-${mode}`]: true,
|
|
@@ -15696,7 +15716,7 @@ class Footer {
|
|
|
15696
15716
|
[`footer-translucent-${mode}`]: translucent,
|
|
15697
15717
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
15698
15718
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
15699
|
-
} }, mode === 'ios' && translucent && hAsync("div", { key: '
|
|
15719
|
+
} }, mode === 'ios' && translucent && hAsync("div", { key: '2fa14f61661c47c661cecd696176728d6eafa74f', class: "footer-background" }), hAsync("slot", { key: '8e63696e7c528d5c38201e546bf08135290d0945' })));
|
|
15700
15720
|
}
|
|
15701
15721
|
get el() { return getElement(this); }
|
|
15702
15722
|
static get style() { return {
|
|
@@ -16921,6 +16941,7 @@ class Input {
|
|
|
16921
16941
|
this.inputId = `ion-input-${inputIds$1++}`;
|
|
16922
16942
|
this.helperTextId = `${this.inputId}-helper-text`;
|
|
16923
16943
|
this.errorTextId = `${this.inputId}-error-text`;
|
|
16944
|
+
this.labelTextId = `${this.inputId}-label`;
|
|
16924
16945
|
this.inheritedAttributes = {};
|
|
16925
16946
|
this.isComposing = false;
|
|
16926
16947
|
/**
|
|
@@ -17128,7 +17149,10 @@ class Input {
|
|
|
17128
17149
|
}
|
|
17129
17150
|
connectedCallback() {
|
|
17130
17151
|
const { el } = this;
|
|
17131
|
-
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () =>
|
|
17152
|
+
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
|
|
17153
|
+
this.setSlottedLabelId();
|
|
17154
|
+
});
|
|
17155
|
+
this.setSlottedLabelId();
|
|
17132
17156
|
this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
|
|
17133
17157
|
// Always set initial state
|
|
17134
17158
|
this.isInvalid = checkInvalidState(el);
|
|
@@ -17306,11 +17330,11 @@ class Input {
|
|
|
17306
17330
|
return (hAsync("div", { class: "input-bottom" }, this.renderHintText(), this.renderCounter()));
|
|
17307
17331
|
}
|
|
17308
17332
|
renderLabel() {
|
|
17309
|
-
const { label } = this;
|
|
17333
|
+
const { label, labelTextId } = this;
|
|
17310
17334
|
return (hAsync("div", { class: {
|
|
17311
17335
|
'label-text-wrapper': true,
|
|
17312
17336
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
17313
|
-
} }, label === undefined ? hAsync("slot", { name: "label" }) : hAsync("div", { class: "label-text" }, label)));
|
|
17337
|
+
}, "aria-hidden": this.hasLabel ? 'true' : null }, label === undefined ? (hAsync("slot", { name: "label" })) : (hAsync("div", { class: "label-text", id: labelTextId }, label))));
|
|
17314
17338
|
}
|
|
17315
17339
|
/**
|
|
17316
17340
|
* Gets any content passed into the `label` slot,
|
|
@@ -17319,6 +17343,30 @@ class Input {
|
|
|
17319
17343
|
get labelSlot() {
|
|
17320
17344
|
return this.el.querySelector('[slot="label"]');
|
|
17321
17345
|
}
|
|
17346
|
+
/**
|
|
17347
|
+
* Ensures the slotted label element has an ID for aria-labelledby.
|
|
17348
|
+
* If no ID exists, we assign one using our generated labelTextId.
|
|
17349
|
+
*/
|
|
17350
|
+
setSlottedLabelId() {
|
|
17351
|
+
const slottedLabel = this.labelSlot;
|
|
17352
|
+
if (slottedLabel && !slottedLabel.id) {
|
|
17353
|
+
slottedLabel.id = this.labelTextId;
|
|
17354
|
+
}
|
|
17355
|
+
}
|
|
17356
|
+
/**
|
|
17357
|
+
* Returns the ID to use for aria-labelledby on the native input,
|
|
17358
|
+
* or undefined if aria-label is explicitly set (to avoid conflicts).
|
|
17359
|
+
*/
|
|
17360
|
+
getLabelledById() {
|
|
17361
|
+
var _a;
|
|
17362
|
+
if (this.inheritedAttributes['aria-label']) {
|
|
17363
|
+
return undefined;
|
|
17364
|
+
}
|
|
17365
|
+
if (this.label !== undefined) {
|
|
17366
|
+
return this.labelTextId;
|
|
17367
|
+
}
|
|
17368
|
+
return ((_a = this.labelSlot) === null || _a === void 0 ? void 0 : _a.id) || undefined;
|
|
17369
|
+
}
|
|
17322
17370
|
/**
|
|
17323
17371
|
* Returns `true` if label content is provided
|
|
17324
17372
|
* either by a prop or a content. If you want
|
|
@@ -17385,7 +17433,7 @@ class Input {
|
|
|
17385
17433
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
17386
17434
|
*/
|
|
17387
17435
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
17388
|
-
return (hAsync(Host, { key: '
|
|
17436
|
+
return (hAsync(Host, { key: '9ba9cf425b573d2ca9ac34455a0e6b8474c4de6d', class: createColorClasses$1(this.color, {
|
|
17389
17437
|
[mode]: true,
|
|
17390
17438
|
'has-value': hasValue,
|
|
17391
17439
|
'has-focus': hasFocus,
|
|
@@ -17396,14 +17444,14 @@ class Input {
|
|
|
17396
17444
|
'in-item': inItem,
|
|
17397
17445
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
17398
17446
|
'input-disabled': disabled,
|
|
17399
|
-
}) }, hAsync("label", { key: '
|
|
17447
|
+
}) }, hAsync("label", { key: '74b989d0aa5ab38f29f952519868f05119df6005', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), hAsync("div", { key: '47f2b42e2f74ea866b4f871026e08ab375d7a726', class: "native-wrapper", onClick: this.onLabelClick }, hAsync("slot", { key: 'eaabe5a4a329a356cac3294d15c087d0d131fff2', name: "start" }), hAsync("input", Object.assign({ key: 'c821a984a8a9b7f96f30892c06d8deda093ff24b', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-labelledby": this.getLabelledById() }, this.inheritedAttributes)), this.clearInput && !readonly && !disabled && (hAsync("button", { key: '62069c11016ee190dc46ab941372e1c4ad8a36ed', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
17400
17448
|
/**
|
|
17401
17449
|
* This prevents mobile browsers from
|
|
17402
17450
|
* blurring the input when the clear
|
|
17403
17451
|
* button is activated.
|
|
17404
17452
|
*/
|
|
17405
17453
|
ev.preventDefault();
|
|
17406
|
-
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: '
|
|
17454
|
+
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: 'dd75a516d32110d85382b664c663bd41f177ce12', "aria-hidden": "true", icon: clearIconData }))), hAsync("slot", { key: '330d4b9389f2c62223a5ee24003e96ef3e6b2473', name: "end" })), shouldRenderHighlight && hAsync("div", { key: '8e442bed130ddc84976ab70fd3f8578d6bcc6316', class: "input-highlight" })), this.renderBottomContent()));
|
|
17407
17455
|
}
|
|
17408
17456
|
get el() { return getElement(this); }
|
|
17409
17457
|
static get watchers() { return {
|
|
@@ -34990,6 +35038,7 @@ class TabBar {
|
|
|
34990
35038
|
this.ionTabBarChanged = createEvent(this, "ionTabBarChanged", 7);
|
|
34991
35039
|
this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
|
|
34992
35040
|
this.keyboardCtrl = null;
|
|
35041
|
+
this.keyboardCtrlPromise = null;
|
|
34993
35042
|
this.didLoad = false;
|
|
34994
35043
|
this.keyboardVisible = false;
|
|
34995
35044
|
/**
|
|
@@ -35025,7 +35074,7 @@ class TabBar {
|
|
|
35025
35074
|
}
|
|
35026
35075
|
}
|
|
35027
35076
|
async connectedCallback() {
|
|
35028
|
-
|
|
35077
|
+
const promise = createKeyboardController(async (keyboardOpen, waitForResize) => {
|
|
35029
35078
|
/**
|
|
35030
35079
|
* If the keyboard is hiding, then we need to wait
|
|
35031
35080
|
* for the webview to resize. Otherwise, the tab bar
|
|
@@ -35036,21 +35085,40 @@ class TabBar {
|
|
|
35036
35085
|
}
|
|
35037
35086
|
this.keyboardVisible = keyboardOpen; // trigger re-render by updating state
|
|
35038
35087
|
});
|
|
35088
|
+
this.keyboardCtrlPromise = promise;
|
|
35089
|
+
const keyboardCtrl = await promise;
|
|
35090
|
+
/**
|
|
35091
|
+
* Only assign if this is still the current promise.
|
|
35092
|
+
* Otherwise, a new connectedCallback has started or
|
|
35093
|
+
* disconnectedCallback was called, so destroy this instance.
|
|
35094
|
+
*/
|
|
35095
|
+
if (this.keyboardCtrlPromise === promise) {
|
|
35096
|
+
this.keyboardCtrl = keyboardCtrl;
|
|
35097
|
+
this.keyboardCtrlPromise = null;
|
|
35098
|
+
}
|
|
35099
|
+
else {
|
|
35100
|
+
keyboardCtrl.destroy();
|
|
35101
|
+
}
|
|
35039
35102
|
}
|
|
35040
35103
|
disconnectedCallback() {
|
|
35104
|
+
if (this.keyboardCtrlPromise) {
|
|
35105
|
+
this.keyboardCtrlPromise.then((ctrl) => ctrl.destroy());
|
|
35106
|
+
this.keyboardCtrlPromise = null;
|
|
35107
|
+
}
|
|
35041
35108
|
if (this.keyboardCtrl) {
|
|
35042
35109
|
this.keyboardCtrl.destroy();
|
|
35110
|
+
this.keyboardCtrl = null;
|
|
35043
35111
|
}
|
|
35044
35112
|
}
|
|
35045
35113
|
render() {
|
|
35046
35114
|
const { color, translucent, keyboardVisible } = this;
|
|
35047
35115
|
const mode = getIonMode$1(this);
|
|
35048
35116
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
35049
|
-
return (hAsync(Host, { key: '
|
|
35117
|
+
return (hAsync(Host, { key: '9daf4e2acaff6e3ce3878cf9dd5109fb1afbbebe', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses$1(color, {
|
|
35050
35118
|
[mode]: true,
|
|
35051
35119
|
'tab-bar-translucent': translucent,
|
|
35052
35120
|
'tab-bar-hidden': shouldHide,
|
|
35053
|
-
}) }, hAsync("slot", { key: '
|
|
35121
|
+
}) }, hAsync("slot", { key: '1d15aa2da8501e8e7eff11ad4a491478be845c43' })));
|
|
35054
35122
|
}
|
|
35055
35123
|
get el() { return getElement(this); }
|
|
35056
35124
|
static get watchers() { return {
|
|
@@ -36371,9 +36439,9 @@ const createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {
|
|
|
36371
36439
|
return gesture;
|
|
36372
36440
|
};
|
|
36373
36441
|
|
|
36374
|
-
const toastIosCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex
|
|
36442
|
+
const toastIosCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{-ms-flex:1;flex:1;min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}";
|
|
36375
36443
|
|
|
36376
|
-
const toastMdCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex
|
|
36444
|
+
const toastMdCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{-ms-flex:1;flex:1;min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6))}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}";
|
|
36377
36445
|
|
|
36378
36446
|
// TODO(FW-2832): types
|
|
36379
36447
|
/**
|
package/hydrate/index.mjs
CHANGED
|
@@ -15611,6 +15611,7 @@ class Footer {
|
|
|
15611
15611
|
constructor(hostRef) {
|
|
15612
15612
|
registerInstance(this, hostRef);
|
|
15613
15613
|
this.keyboardCtrl = null;
|
|
15614
|
+
this.keyboardCtrlPromise = null;
|
|
15614
15615
|
this.keyboardVisible = false;
|
|
15615
15616
|
/**
|
|
15616
15617
|
* If `true`, the footer will be translucent.
|
|
@@ -15658,7 +15659,7 @@ class Footer {
|
|
|
15658
15659
|
this.checkCollapsibleFooter();
|
|
15659
15660
|
}
|
|
15660
15661
|
async connectedCallback() {
|
|
15661
|
-
|
|
15662
|
+
const promise = createKeyboardController(async (keyboardOpen, waitForResize) => {
|
|
15662
15663
|
/**
|
|
15663
15664
|
* If the keyboard is hiding, then we need to wait
|
|
15664
15665
|
* for the webview to resize. Otherwise, the footer
|
|
@@ -15669,10 +15670,29 @@ class Footer {
|
|
|
15669
15670
|
}
|
|
15670
15671
|
this.keyboardVisible = keyboardOpen; // trigger re-render by updating state
|
|
15671
15672
|
});
|
|
15673
|
+
this.keyboardCtrlPromise = promise;
|
|
15674
|
+
const keyboardCtrl = await promise;
|
|
15675
|
+
/**
|
|
15676
|
+
* Only assign if this is still the current promise.
|
|
15677
|
+
* Otherwise, a new connectedCallback has started or
|
|
15678
|
+
* disconnectedCallback was called, so destroy this instance.
|
|
15679
|
+
*/
|
|
15680
|
+
if (this.keyboardCtrlPromise === promise) {
|
|
15681
|
+
this.keyboardCtrl = keyboardCtrl;
|
|
15682
|
+
this.keyboardCtrlPromise = null;
|
|
15683
|
+
}
|
|
15684
|
+
else {
|
|
15685
|
+
keyboardCtrl.destroy();
|
|
15686
|
+
}
|
|
15672
15687
|
}
|
|
15673
15688
|
disconnectedCallback() {
|
|
15689
|
+
if (this.keyboardCtrlPromise) {
|
|
15690
|
+
this.keyboardCtrlPromise.then((ctrl) => ctrl.destroy());
|
|
15691
|
+
this.keyboardCtrlPromise = null;
|
|
15692
|
+
}
|
|
15674
15693
|
if (this.keyboardCtrl) {
|
|
15675
15694
|
this.keyboardCtrl.destroy();
|
|
15695
|
+
this.keyboardCtrl = null;
|
|
15676
15696
|
}
|
|
15677
15697
|
}
|
|
15678
15698
|
destroyCollapsibleFooter() {
|
|
@@ -15686,7 +15706,7 @@ class Footer {
|
|
|
15686
15706
|
const mode = getIonMode$1(this);
|
|
15687
15707
|
const tabs = this.el.closest('ion-tabs');
|
|
15688
15708
|
const tabBar = tabs === null || tabs === void 0 ? void 0 : tabs.querySelector(':scope > ion-tab-bar');
|
|
15689
|
-
return (hAsync(Host, { key: '
|
|
15709
|
+
return (hAsync(Host, { key: '71939c4bbaef5062532a99ee2e33574102a9abad', role: "contentinfo", class: {
|
|
15690
15710
|
[mode]: true,
|
|
15691
15711
|
// Used internally for styling
|
|
15692
15712
|
[`footer-${mode}`]: true,
|
|
@@ -15694,7 +15714,7 @@ class Footer {
|
|
|
15694
15714
|
[`footer-translucent-${mode}`]: translucent,
|
|
15695
15715
|
['footer-toolbar-padding']: !this.keyboardVisible && (!tabBar || tabBar.slot !== 'bottom'),
|
|
15696
15716
|
[`footer-collapse-${collapse}`]: collapse !== undefined,
|
|
15697
|
-
} }, mode === 'ios' && translucent && hAsync("div", { key: '
|
|
15717
|
+
} }, mode === 'ios' && translucent && hAsync("div", { key: '2fa14f61661c47c661cecd696176728d6eafa74f', class: "footer-background" }), hAsync("slot", { key: '8e63696e7c528d5c38201e546bf08135290d0945' })));
|
|
15698
15718
|
}
|
|
15699
15719
|
get el() { return getElement(this); }
|
|
15700
15720
|
static get style() { return {
|
|
@@ -16919,6 +16939,7 @@ class Input {
|
|
|
16919
16939
|
this.inputId = `ion-input-${inputIds$1++}`;
|
|
16920
16940
|
this.helperTextId = `${this.inputId}-helper-text`;
|
|
16921
16941
|
this.errorTextId = `${this.inputId}-error-text`;
|
|
16942
|
+
this.labelTextId = `${this.inputId}-label`;
|
|
16922
16943
|
this.inheritedAttributes = {};
|
|
16923
16944
|
this.isComposing = false;
|
|
16924
16945
|
/**
|
|
@@ -17126,7 +17147,10 @@ class Input {
|
|
|
17126
17147
|
}
|
|
17127
17148
|
connectedCallback() {
|
|
17128
17149
|
const { el } = this;
|
|
17129
|
-
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () =>
|
|
17150
|
+
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
|
|
17151
|
+
this.setSlottedLabelId();
|
|
17152
|
+
});
|
|
17153
|
+
this.setSlottedLabelId();
|
|
17130
17154
|
this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
|
|
17131
17155
|
// Always set initial state
|
|
17132
17156
|
this.isInvalid = checkInvalidState(el);
|
|
@@ -17304,11 +17328,11 @@ class Input {
|
|
|
17304
17328
|
return (hAsync("div", { class: "input-bottom" }, this.renderHintText(), this.renderCounter()));
|
|
17305
17329
|
}
|
|
17306
17330
|
renderLabel() {
|
|
17307
|
-
const { label } = this;
|
|
17331
|
+
const { label, labelTextId } = this;
|
|
17308
17332
|
return (hAsync("div", { class: {
|
|
17309
17333
|
'label-text-wrapper': true,
|
|
17310
17334
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
17311
|
-
} }, label === undefined ? hAsync("slot", { name: "label" }) : hAsync("div", { class: "label-text" }, label)));
|
|
17335
|
+
}, "aria-hidden": this.hasLabel ? 'true' : null }, label === undefined ? (hAsync("slot", { name: "label" })) : (hAsync("div", { class: "label-text", id: labelTextId }, label))));
|
|
17312
17336
|
}
|
|
17313
17337
|
/**
|
|
17314
17338
|
* Gets any content passed into the `label` slot,
|
|
@@ -17317,6 +17341,30 @@ class Input {
|
|
|
17317
17341
|
get labelSlot() {
|
|
17318
17342
|
return this.el.querySelector('[slot="label"]');
|
|
17319
17343
|
}
|
|
17344
|
+
/**
|
|
17345
|
+
* Ensures the slotted label element has an ID for aria-labelledby.
|
|
17346
|
+
* If no ID exists, we assign one using our generated labelTextId.
|
|
17347
|
+
*/
|
|
17348
|
+
setSlottedLabelId() {
|
|
17349
|
+
const slottedLabel = this.labelSlot;
|
|
17350
|
+
if (slottedLabel && !slottedLabel.id) {
|
|
17351
|
+
slottedLabel.id = this.labelTextId;
|
|
17352
|
+
}
|
|
17353
|
+
}
|
|
17354
|
+
/**
|
|
17355
|
+
* Returns the ID to use for aria-labelledby on the native input,
|
|
17356
|
+
* or undefined if aria-label is explicitly set (to avoid conflicts).
|
|
17357
|
+
*/
|
|
17358
|
+
getLabelledById() {
|
|
17359
|
+
var _a;
|
|
17360
|
+
if (this.inheritedAttributes['aria-label']) {
|
|
17361
|
+
return undefined;
|
|
17362
|
+
}
|
|
17363
|
+
if (this.label !== undefined) {
|
|
17364
|
+
return this.labelTextId;
|
|
17365
|
+
}
|
|
17366
|
+
return ((_a = this.labelSlot) === null || _a === void 0 ? void 0 : _a.id) || undefined;
|
|
17367
|
+
}
|
|
17320
17368
|
/**
|
|
17321
17369
|
* Returns `true` if label content is provided
|
|
17322
17370
|
* either by a prop or a content. If you want
|
|
@@ -17383,7 +17431,7 @@ class Input {
|
|
|
17383
17431
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
17384
17432
|
*/
|
|
17385
17433
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
17386
|
-
return (hAsync(Host, { key: '
|
|
17434
|
+
return (hAsync(Host, { key: '9ba9cf425b573d2ca9ac34455a0e6b8474c4de6d', class: createColorClasses$1(this.color, {
|
|
17387
17435
|
[mode]: true,
|
|
17388
17436
|
'has-value': hasValue,
|
|
17389
17437
|
'has-focus': hasFocus,
|
|
@@ -17394,14 +17442,14 @@ class Input {
|
|
|
17394
17442
|
'in-item': inItem,
|
|
17395
17443
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
17396
17444
|
'input-disabled': disabled,
|
|
17397
|
-
}) }, hAsync("label", { key: '
|
|
17445
|
+
}) }, hAsync("label", { key: '74b989d0aa5ab38f29f952519868f05119df6005', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), hAsync("div", { key: '47f2b42e2f74ea866b4f871026e08ab375d7a726', class: "native-wrapper", onClick: this.onLabelClick }, hAsync("slot", { key: 'eaabe5a4a329a356cac3294d15c087d0d131fff2', name: "start" }), hAsync("input", Object.assign({ key: 'c821a984a8a9b7f96f30892c06d8deda093ff24b', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-labelledby": this.getLabelledById() }, this.inheritedAttributes)), this.clearInput && !readonly && !disabled && (hAsync("button", { key: '62069c11016ee190dc46ab941372e1c4ad8a36ed', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
17398
17446
|
/**
|
|
17399
17447
|
* This prevents mobile browsers from
|
|
17400
17448
|
* blurring the input when the clear
|
|
17401
17449
|
* button is activated.
|
|
17402
17450
|
*/
|
|
17403
17451
|
ev.preventDefault();
|
|
17404
|
-
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: '
|
|
17452
|
+
}, onClick: this.clearTextInput }, hAsync("ion-icon", { key: 'dd75a516d32110d85382b664c663bd41f177ce12', "aria-hidden": "true", icon: clearIconData }))), hAsync("slot", { key: '330d4b9389f2c62223a5ee24003e96ef3e6b2473', name: "end" })), shouldRenderHighlight && hAsync("div", { key: '8e442bed130ddc84976ab70fd3f8578d6bcc6316', class: "input-highlight" })), this.renderBottomContent()));
|
|
17405
17453
|
}
|
|
17406
17454
|
get el() { return getElement(this); }
|
|
17407
17455
|
static get watchers() { return {
|
|
@@ -34988,6 +35036,7 @@ class TabBar {
|
|
|
34988
35036
|
this.ionTabBarChanged = createEvent(this, "ionTabBarChanged", 7);
|
|
34989
35037
|
this.ionTabBarLoaded = createEvent(this, "ionTabBarLoaded", 7);
|
|
34990
35038
|
this.keyboardCtrl = null;
|
|
35039
|
+
this.keyboardCtrlPromise = null;
|
|
34991
35040
|
this.didLoad = false;
|
|
34992
35041
|
this.keyboardVisible = false;
|
|
34993
35042
|
/**
|
|
@@ -35023,7 +35072,7 @@ class TabBar {
|
|
|
35023
35072
|
}
|
|
35024
35073
|
}
|
|
35025
35074
|
async connectedCallback() {
|
|
35026
|
-
|
|
35075
|
+
const promise = createKeyboardController(async (keyboardOpen, waitForResize) => {
|
|
35027
35076
|
/**
|
|
35028
35077
|
* If the keyboard is hiding, then we need to wait
|
|
35029
35078
|
* for the webview to resize. Otherwise, the tab bar
|
|
@@ -35034,21 +35083,40 @@ class TabBar {
|
|
|
35034
35083
|
}
|
|
35035
35084
|
this.keyboardVisible = keyboardOpen; // trigger re-render by updating state
|
|
35036
35085
|
});
|
|
35086
|
+
this.keyboardCtrlPromise = promise;
|
|
35087
|
+
const keyboardCtrl = await promise;
|
|
35088
|
+
/**
|
|
35089
|
+
* Only assign if this is still the current promise.
|
|
35090
|
+
* Otherwise, a new connectedCallback has started or
|
|
35091
|
+
* disconnectedCallback was called, so destroy this instance.
|
|
35092
|
+
*/
|
|
35093
|
+
if (this.keyboardCtrlPromise === promise) {
|
|
35094
|
+
this.keyboardCtrl = keyboardCtrl;
|
|
35095
|
+
this.keyboardCtrlPromise = null;
|
|
35096
|
+
}
|
|
35097
|
+
else {
|
|
35098
|
+
keyboardCtrl.destroy();
|
|
35099
|
+
}
|
|
35037
35100
|
}
|
|
35038
35101
|
disconnectedCallback() {
|
|
35102
|
+
if (this.keyboardCtrlPromise) {
|
|
35103
|
+
this.keyboardCtrlPromise.then((ctrl) => ctrl.destroy());
|
|
35104
|
+
this.keyboardCtrlPromise = null;
|
|
35105
|
+
}
|
|
35039
35106
|
if (this.keyboardCtrl) {
|
|
35040
35107
|
this.keyboardCtrl.destroy();
|
|
35108
|
+
this.keyboardCtrl = null;
|
|
35041
35109
|
}
|
|
35042
35110
|
}
|
|
35043
35111
|
render() {
|
|
35044
35112
|
const { color, translucent, keyboardVisible } = this;
|
|
35045
35113
|
const mode = getIonMode$1(this);
|
|
35046
35114
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
35047
|
-
return (hAsync(Host, { key: '
|
|
35115
|
+
return (hAsync(Host, { key: '9daf4e2acaff6e3ce3878cf9dd5109fb1afbbebe', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses$1(color, {
|
|
35048
35116
|
[mode]: true,
|
|
35049
35117
|
'tab-bar-translucent': translucent,
|
|
35050
35118
|
'tab-bar-hidden': shouldHide,
|
|
35051
|
-
}) }, hAsync("slot", { key: '
|
|
35119
|
+
}) }, hAsync("slot", { key: '1d15aa2da8501e8e7eff11ad4a491478be845c43' })));
|
|
35052
35120
|
}
|
|
35053
35121
|
get el() { return getElement(this); }
|
|
35054
35122
|
static get watchers() { return {
|
|
@@ -36369,9 +36437,9 @@ const createSwipeToDismissGesture = (el, toastPosition, onDismiss) => {
|
|
|
36369
36437
|
return gesture;
|
|
36370
36438
|
};
|
|
36371
36439
|
|
|
36372
|
-
const toastIosCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex
|
|
36440
|
+
const toastIosCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{-ms-flex:1;flex:1;min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, var(--ion-background-color-step-50, #f2f2f2));--border-radius:14px;--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-850, var(--ion-text-color-step-150, #262626));--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}";
|
|
36373
36441
|
|
|
36374
|
-
const toastMdCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex
|
|
36442
|
+
const toastMdCss = ":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}:host{inset-inline-start:0}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);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);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);pointer-events:auto}.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{-ms-flex:1;flex:1;min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, var(--ion-background-color-step-800, #333333));--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #0054e9);--color:var(--ion-color-step-50, var(--ion-text-color-step-950, #f2f2f2));--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, var(--ion-text-color-step-900, #e6e6e6))}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}";
|
|
36375
36443
|
|
|
36376
36444
|
// TODO(FW-2832): types
|
|
36377
36445
|
/**
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,c as o,h as e,d as i,g as n,e as a}from"./p-C8IsBmNU.js";import{c as r}from"./p-CtWGkNnJ.js";import{c as s}from"./p-DiVJyqlX.js";import{b as l}from"./p-BFvmZNyx.js";import{b as d}from"./p-CTfR9YZG.js";import"./p-ZjP4CjeZ.js";import"./p-D13Eaw-8.js";import"./p-CIGNaXM1.js";const b=class{constructor(e){t(this,e),this.ionTabBarChanged=o(this,"ionTabBarChanged",7),this.ionTabBarLoaded=o(this,"ionTabBarLoaded",7),this.keyboardCtrl=null,this.didLoad=!1,this.keyboardVisible=!1,this.translucent=!1}selectedTabChanged(){this.didLoad&&void 0!==this.selectedTab&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentDidLoad(){this.ionTabBarLoaded.emit(),this.didLoad=!0,void 0!==this.selectedTab&&this.ionTabBarChanged.emit({tab:this.selectedTab})}async connectedCallback(){this.keyboardCtrl=await r((async(t,o)=>{!1===t&&void 0!==o&&await o,this.keyboardVisible=t}))}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}render(){const{color:t,translucent:o,keyboardVisible:n}=this,a=l(this),r=n&&"top"!==this.el.getAttribute("slot");return e(i,{key:"388ec37ce308035bab78d6c9a016bb616e9517a9",role:"tablist","aria-hidden":r?"true":null,class:s(t,{[a]:!0,"tab-bar-translucent":o,"tab-bar-hidden":r})},e("slot",{key:"ce10ade2b86725e24f3254516483eeedd8ecb16a"}))}get el(){return n(this)}static get watchers(){return{selectedTab:["selectedTabChanged"]}}};b.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, var(--ion-background-color-step-50, #f7f7f7)));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.2)))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, var(--ion-text-color-step-400, #666666)));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #0054e9));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, var(--ion-background-color-step-150, rgba(0, 0, 0, 0.07)))));--color:var(--ion-tab-bar-color, var(--ion-color-step-650, var(--ion-text-color-step-350, #595959)));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #0054e9));height:56px}"};const c=class{constructor(e){t(this,e),this.ionTabButtonClick=o(this,"ionTabButtonClick",7),this.inheritedAttributes={},this.disabled=!1,this.selected=!1,this.onKeyUp=t=>{"Enter"!==t.key&&" "!==t.key||this.selectTab(t)},this.onClick=t=>{this.selectTab(t)}}onTabBarChanged(t){const o=t.target,e=this.el.parentElement;(t.composedPath().includes(e)||(null==o?void 0:o.contains(this.el)))&&(this.selected=this.tab===t.detail.tab)}componentWillLoad(){this.inheritedAttributes=Object.assign({},d(this.el,["aria-label"])),void 0===this.layout&&(this.layout=a.get("tabButtonLayout","icon-top"))}selectTab(t){void 0!==this.tab&&(this.disabled||this.ionTabButtonClick.emit({tab:this.tab,href:this.href,selected:this.selected}),t.preventDefault())}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}render(){const{disabled:t,hasIcon:o,hasLabel:n,href:a,rel:r,target:s,layout:d,selected:b,tab:c,inheritedAttributes:h}=this,p=l(this),g={download:this.download,href:a,rel:r,target:s};return e(i,{key:"ce9d29ced0c781d6b2fa62cd5feb801c11fc42e8",onClick:this.onClick,onKeyup:this.onKeyUp,id:void 0!==c?`tab-button-${c}`:null,class:{[p]:!0,"tab-selected":b,"tab-disabled":t,"tab-has-label":n,"tab-has-icon":o,"tab-has-label-only":n&&!o,"tab-has-icon-only":o&&!n,[`tab-layout-${d}`]:!0,"ion-activatable":!0,"ion-selectable":!0,"ion-focusable":!0}},e("a",Object.assign({key:"01cb0ed2e77c5c1a8abd48da1bb07ac1b305d0b6"},g,{class:"button-native",part:"native",role:"tab","aria-selected":b?"true":null,"aria-disabled":t?"true":null,tabindex:t?"-1":void 0},h),e("span",{key:"d0240c05f42217cfb186b86ff8a0c9cd70b9c8df",class:"button-inner"},e("slot",{key:"0a20b84925037dbaa8bb4a495b813d3f7c2e58ac"})),"md"===p&&e("ion-ripple-effect",{key:"4c92c27178cdac89d69cffef8d2c39c3644914e8",type:"unbounded"})))}get el(){return n(this)}};c.style={ios:':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:2px;--padding-bottom:0;--padding-start:2px;max-width:240px;font-size:10px}::slotted(ion-badge){-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:1px;padding-bottom:1px;top:4px;height:auto;font-size:12px;line-height:16px}::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}::slotted(ion-icon){margin-top:2px;margin-bottom:2px;font-size:24px}::slotted(ion-icon::before){vertical-align:top}::slotted(ion-label){margin-top:0;margin-bottom:1px;min-height:11px;font-weight:500}:host(.tab-has-label-only) ::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:12px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-label),:host(.tab-layout-icon-start) ::slotted(ion-label),:host(.tab-layout-icon-hide) ::slotted(ion-label){margin-top:2px;margin-bottom:2px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-icon),:host(.tab-layout-icon-start) ::slotted(ion-icon){min-width:24px;height:26px;margin-top:2px;margin-bottom:1px;font-size:24px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:calc(50% + 12px)}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:1px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:4px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:10px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:calc(50% + 35px)}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:calc(50% + 30px)}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-label-hide) ::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){font-size:30px}',md:':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:12px;--padding-bottom:0;--padding-start:12px;max-width:168px;font-size:12px;font-weight:normal;letter-spacing:0.03em}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;text-transform:none}::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;-webkit-transform-origin:center center;transform-origin:center center;font-size:22px}:host-context([dir=rtl]) ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){::slotted(ion-icon):dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}::slotted(ion-badge){border-radius:8px;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;padding-top:3px;padding-bottom:2px;top:8px;min-width:12px;font-size:8px;font-weight:normal}::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}::slotted(ion-badge:empty){display:block;min-width:8px;height:8px}:host(.tab-layout-icon-top) ::slotted(ion-icon){margin-top:6px;margin-bottom:2px}:host(.tab-layout-icon-top) ::slotted(ion-label){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){top:8px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:70%}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:6px;margin-bottom:0}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:16px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:80%}:host(.tab-layout-icon-start) ::slotted(ion-icon){-webkit-margin-end:6px;margin-inline-end:6px}:host(.tab-layout-icon-end) ::slotted(ion-icon){-webkit-margin-start:6px;margin-inline-start:6px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:16px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:70%}:host(.tab-layout-icon-hide) ::slotted(ion-label),:host(.tab-has-label-only) ::slotted(ion-label){margin-top:0;margin-bottom:0}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:16px}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){margin-top:0;margin-bottom:0;font-size:24px}'};export{b as ion_tab_bar,c as ion_tab_button}
|