@ionic/core 8.7.18-dev.11769790854.11895f8f → 8.7.18-dev.11770238549.14c2a85f
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-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +2 -2
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +2 -2
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/modal.js +12 -220
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +13 -85
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-modal.cjs.entry.js +12 -220
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +13 -85
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/gestures/sheet.js +1 -3
- package/dist/collection/components/modal/gestures/swipe-to-close.js +1 -3
- package/dist/collection/components/modal/modal.ios.css +4 -0
- package/dist/collection/components/modal/modal.js +7 -215
- package/dist/collection/components/modal/modal.md.css +4 -0
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/animations/ios.enter.js +5 -21
- package/dist/collection/components/popover/animations/md.enter.js +5 -30
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/popover/utils.js +1 -32
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +2 -2
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +1 -1
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +11 -11
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +6 -6
- package/dist/esm/ion-modal.entry.js +12 -220
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +13 -85
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +4 -4
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -3
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-074839fc.entry.js → p-01e27965.entry.js} +1 -1
- package/dist/ionic/p-0ca0fe9c.entry.js +4 -0
- package/dist/ionic/{p-316c0420.entry.js → p-221a3d8c.entry.js} +1 -1
- package/dist/ionic/{p-3a6caca9.entry.js → p-2668188b.entry.js} +1 -1
- package/dist/ionic/{p-d3014190.entry.js → p-2bd1ea35.entry.js} +1 -1
- package/dist/ionic/{p-a127bee2.entry.js → p-30333874.entry.js} +1 -1
- package/dist/ionic/{p-0e8c8a10.entry.js → p-31db96da.entry.js} +1 -1
- package/dist/ionic/{p-1647c46c.entry.js → p-363d1209.entry.js} +1 -1
- package/dist/ionic/p-3ec563c1.entry.js +4 -0
- package/dist/ionic/{p-c19af093.entry.js → p-42db6404.entry.js} +1 -1
- package/dist/ionic/{p-db82892c.entry.js → p-46a38cfd.entry.js} +1 -1
- package/dist/ionic/{p-eb024a5b.entry.js → p-4eec1a5e.entry.js} +1 -1
- package/dist/ionic/{p-0dfa5a37.entry.js → p-530fcd71.entry.js} +1 -1
- package/dist/ionic/{p-72c38b88.entry.js → p-5c8f7253.entry.js} +1 -1
- package/dist/ionic/{p-172a579f.entry.js → p-5d6fb6e3.entry.js} +1 -1
- package/dist/ionic/{p-dbbe606a.entry.js → p-652318c3.entry.js} +1 -1
- package/dist/ionic/{p-2a939845.entry.js → p-6f37536a.entry.js} +1 -1
- package/dist/ionic/{p-4e41ea20.entry.js → p-72af946b.entry.js} +1 -1
- package/dist/ionic/p-7f98e710.entry.js +4 -0
- package/dist/ionic/{p-6d070558.entry.js → p-82d5bb3d.entry.js} +1 -1
- package/dist/ionic/p-906bb44d.entry.js +4 -0
- package/dist/ionic/{p-2dbb90cb.entry.js → p-97eb0812.entry.js} +1 -1
- package/dist/ionic/{p-31f7095f.entry.js → p-a4a9f5ae.entry.js} +1 -1
- package/dist/ionic/{p-86f53961.entry.js → p-b8551510.entry.js} +1 -1
- package/dist/ionic/p-bc293244.entry.js +4 -0
- package/dist/ionic/{p-d126e8d3.entry.js → p-bce86e56.entry.js} +1 -1
- package/dist/ionic/{p-02d76786.entry.js → p-be263062.entry.js} +1 -1
- package/dist/ionic/{p-639dd543.entry.js → p-c175d792.entry.js} +1 -1
- package/dist/ionic/{p-020af078.entry.js → p-cc2a9936.entry.js} +1 -1
- package/dist/ionic/{p-1ccd6829.entry.js → p-e338f669.entry.js} +1 -1
- package/dist/ionic/{p-6241ce47.entry.js → p-eaf3f5ff.entry.js} +1 -1
- package/dist/ionic/{p-f8f22cc0.entry.js → p-fb0271ae.entry.js} +1 -1
- package/dist/ionic/{p-370e4237.entry.js → p-fbb00634.entry.js} +1 -1
- package/dist/types/components/modal/gestures/sheet.d.ts +1 -1
- package/dist/types/components/modal/gestures/swipe-to-close.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +0 -47
- package/dist/types/components/popover/utils.d.ts +0 -2
- package/hydrate/index.js +112 -392
- package/hydrate/index.mjs +112 -392
- package/package.json +2 -4
- package/dist/ionic/p-51a60e0f.entry.js +0 -4
- package/dist/ionic/p-94de5cfa.entry.js +0 -4
- package/dist/ionic/p-dd1aef77.entry.js +0 -4
- package/dist/ionic/p-ec9ca3fe.entry.js +0 -4
- package/dist/ionic/p-ef4256eb.entry.js +0 -4
package/components/popover.js
CHANGED
|
@@ -657,8 +657,6 @@ const calculateWindowAdjustment = (side, coordTop, coordLeft, bodyPadding, bodyW
|
|
|
657
657
|
let bottom;
|
|
658
658
|
let originX = contentOriginX;
|
|
659
659
|
let originY = contentOriginY;
|
|
660
|
-
let checkSafeAreaTop = false;
|
|
661
|
-
let checkSafeAreaBottom = false;
|
|
662
660
|
let checkSafeAreaLeft = false;
|
|
663
661
|
let checkSafeAreaRight = false;
|
|
664
662
|
const triggerTop = triggerCoordinates
|
|
@@ -703,18 +701,10 @@ const calculateWindowAdjustment = (side, coordTop, coordLeft, bodyPadding, bodyW
|
|
|
703
701
|
* We chose 12 here so that the popover position looks a bit nicer as
|
|
704
702
|
* it is not right up against the edge of the screen.
|
|
705
703
|
*/
|
|
706
|
-
top = Math.max(
|
|
704
|
+
top = Math.max(12, triggerTop - contentHeight - triggerHeight - (arrowHeight - 1));
|
|
707
705
|
arrowTop = top + contentHeight;
|
|
708
706
|
originY = 'bottom';
|
|
709
707
|
addPopoverBottomClass = true;
|
|
710
|
-
/**
|
|
711
|
-
* If the popover is positioned near the top edge, account for safe area.
|
|
712
|
-
* This ensures the popover doesn't overlap with status bars or notches.
|
|
713
|
-
*/
|
|
714
|
-
if (top <= bodyPadding + safeAreaMargin) {
|
|
715
|
-
checkSafeAreaTop = true;
|
|
716
|
-
top = bodyPadding;
|
|
717
|
-
}
|
|
718
708
|
/**
|
|
719
709
|
* If not enough room for popover to appear
|
|
720
710
|
* above trigger, then cut it off.
|
|
@@ -722,35 +712,14 @@ const calculateWindowAdjustment = (side, coordTop, coordLeft, bodyPadding, bodyW
|
|
|
722
712
|
}
|
|
723
713
|
else {
|
|
724
714
|
bottom = bodyPadding;
|
|
725
|
-
/**
|
|
726
|
-
* When the popover is pinned to the bottom, account for safe area.
|
|
727
|
-
* This ensures the popover doesn't overlap with home indicators
|
|
728
|
-
* or navigation bars (e.g., Android API 36+ edge-to-edge).
|
|
729
|
-
*/
|
|
730
|
-
checkSafeAreaBottom = true;
|
|
731
715
|
}
|
|
732
716
|
}
|
|
733
|
-
/**
|
|
734
|
-
* Final check: If the popover extends into any safe-area region,
|
|
735
|
-
* ensure the corresponding flag is set regardless of side.
|
|
736
|
-
* This handles cases where a side-positioned popover (left/right)
|
|
737
|
-
* still needs bottom safe-area padding because it extends into that region.
|
|
738
|
-
*/
|
|
739
|
-
const popoverBottom = bottom !== undefined ? bodyHeight - bottom : top + contentHeight;
|
|
740
|
-
if (popoverBottom + safeAreaMargin > bodyHeight) {
|
|
741
|
-
checkSafeAreaBottom = true;
|
|
742
|
-
}
|
|
743
|
-
if (top < safeAreaMargin) {
|
|
744
|
-
checkSafeAreaTop = true;
|
|
745
|
-
}
|
|
746
717
|
return {
|
|
747
718
|
top,
|
|
748
719
|
left,
|
|
749
720
|
bottom,
|
|
750
721
|
originX,
|
|
751
722
|
originY,
|
|
752
|
-
checkSafeAreaTop,
|
|
753
|
-
checkSafeAreaBottom,
|
|
754
723
|
checkSafeAreaLeft,
|
|
755
724
|
checkSafeAreaRight,
|
|
756
725
|
arrowTop,
|
|
@@ -811,7 +780,7 @@ const iosEnterAnimation = (baseEl, opts) => {
|
|
|
811
780
|
const results = getPopoverPosition(isRTL, contentWidth, contentHeight, arrowWidth, arrowHeight, reference, side, align, defaultPosition, trigger, ev);
|
|
812
781
|
const padding = size === 'cover' ? 0 : POPOVER_IOS_BODY_PADDING;
|
|
813
782
|
const margin = size === 'cover' ? 0 : 25;
|
|
814
|
-
const { originX, originY, top, left, bottom,
|
|
783
|
+
const { originX, originY, top, left, bottom, checkSafeAreaLeft, checkSafeAreaRight, arrowTop, arrowLeft, addPopoverBottomClass, } = calculateWindowAdjustment(side, results.top, results.left, padding, bodyWidth, bodyHeight, contentWidth, contentHeight, margin, results.originX, results.originY, results.referenceCoordinates, results.arrowTop, results.arrowLeft, arrowHeight);
|
|
815
784
|
const baseAnimation = createAnimation();
|
|
816
785
|
const backdropAnimation = createAnimation();
|
|
817
786
|
const contentAnimation = createAnimation();
|
|
@@ -841,35 +810,19 @@ const iosEnterAnimation = (baseEl, opts) => {
|
|
|
841
810
|
if (addPopoverBottomClass) {
|
|
842
811
|
baseEl.classList.add('popover-bottom');
|
|
843
812
|
}
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
* safe-area inset to ensure the popover doesn't overlap with system UI
|
|
848
|
-
* (status bars, home indicators, navigation bars on Android API 36+, etc.)
|
|
849
|
-
*/
|
|
850
|
-
const safeAreaTop = ' + var(--ion-safe-area-top, 0)';
|
|
851
|
-
const safeAreaBottom = ' + var(--ion-safe-area-bottom, 0)';
|
|
813
|
+
if (bottom !== undefined) {
|
|
814
|
+
contentEl.style.setProperty('bottom', `${bottom}px`);
|
|
815
|
+
}
|
|
852
816
|
const safeAreaLeft = ' + var(--ion-safe-area-left, 0)';
|
|
853
817
|
const safeAreaRight = ' - var(--ion-safe-area-right, 0)';
|
|
854
|
-
let topValue = `${top}px`;
|
|
855
|
-
let bottomValue = bottom !== undefined ? `${bottom}px` : undefined;
|
|
856
818
|
let leftValue = `${left}px`;
|
|
857
|
-
if (checkSafeAreaTop) {
|
|
858
|
-
topValue = `${top}px${safeAreaTop}`;
|
|
859
|
-
}
|
|
860
|
-
if (checkSafeAreaBottom && bottomValue !== undefined) {
|
|
861
|
-
bottomValue = `${bottom}px${safeAreaBottom}`;
|
|
862
|
-
}
|
|
863
819
|
if (checkSafeAreaLeft) {
|
|
864
820
|
leftValue = `${left}px${safeAreaLeft}`;
|
|
865
821
|
}
|
|
866
822
|
if (checkSafeAreaRight) {
|
|
867
823
|
leftValue = `${left}px${safeAreaRight}`;
|
|
868
824
|
}
|
|
869
|
-
|
|
870
|
-
contentEl.style.setProperty('bottom', `calc(${bottomValue})`);
|
|
871
|
-
}
|
|
872
|
-
contentEl.style.setProperty('top', `calc(${topValue} + var(--offset-y, 0))`);
|
|
825
|
+
contentEl.style.setProperty('top', `calc(${top}px + var(--offset-y, 0))`);
|
|
873
826
|
contentEl.style.setProperty('left', `calc(${leftValue} + var(--offset-x, 0))`);
|
|
874
827
|
contentEl.style.setProperty('transform-origin', `${originY} ${originX}`);
|
|
875
828
|
if (arrowEl !== null) {
|
|
@@ -945,32 +898,7 @@ const mdEnterAnimation = (baseEl, opts) => {
|
|
|
945
898
|
};
|
|
946
899
|
const results = getPopoverPosition(isRTL, contentWidth, contentHeight, 0, 0, reference, side, align, defaultPosition, trigger, ev);
|
|
947
900
|
const padding = size === 'cover' ? 0 : POPOVER_MD_BODY_PADDING;
|
|
948
|
-
const { originX, originY, top, left, bottom
|
|
949
|
-
/**
|
|
950
|
-
* Safe area CSS variable adjustments.
|
|
951
|
-
* When the popover is positioned near an edge, we add the corresponding
|
|
952
|
-
* safe-area inset to ensure the popover doesn't overlap with system UI
|
|
953
|
-
* (status bars, home indicators, navigation bars on Android API 36+, etc.)
|
|
954
|
-
*/
|
|
955
|
-
const safeAreaTop = ' + var(--ion-safe-area-top, 0)';
|
|
956
|
-
const safeAreaBottom = ' + var(--ion-safe-area-bottom, 0)';
|
|
957
|
-
const safeAreaLeft = ' + var(--ion-safe-area-left, 0)';
|
|
958
|
-
const safeAreaRight = ' - var(--ion-safe-area-right, 0)';
|
|
959
|
-
let topValue = `${top}px`;
|
|
960
|
-
let bottomValue = bottom !== undefined ? `${bottom}px` : undefined;
|
|
961
|
-
let leftValue = `${left}px`;
|
|
962
|
-
if (checkSafeAreaTop) {
|
|
963
|
-
topValue = `${top}px${safeAreaTop}`;
|
|
964
|
-
}
|
|
965
|
-
if (checkSafeAreaBottom && bottomValue !== undefined) {
|
|
966
|
-
bottomValue = `${bottom}px${safeAreaBottom}`;
|
|
967
|
-
}
|
|
968
|
-
if (checkSafeAreaLeft) {
|
|
969
|
-
leftValue = `${left}px${safeAreaLeft}`;
|
|
970
|
-
}
|
|
971
|
-
if (checkSafeAreaRight) {
|
|
972
|
-
leftValue = `${left}px${safeAreaRight}`;
|
|
973
|
-
}
|
|
901
|
+
const { originX, originY, top, left, bottom } = calculateWindowAdjustment(side, results.top, results.left, padding, bodyWidth, bodyHeight, contentWidth, contentHeight, 0, results.originX, results.originY, results.referenceCoordinates);
|
|
974
902
|
const baseAnimation = createAnimation();
|
|
975
903
|
const backdropAnimation = createAnimation();
|
|
976
904
|
const wrapperAnimation = createAnimation();
|
|
@@ -987,13 +915,13 @@ const mdEnterAnimation = (baseEl, opts) => {
|
|
|
987
915
|
contentAnimation
|
|
988
916
|
.addElement(contentEl)
|
|
989
917
|
.beforeStyles({
|
|
990
|
-
top: `calc(${
|
|
991
|
-
left: `calc(${
|
|
918
|
+
top: `calc(${top}px + var(--offset-y, 0px))`,
|
|
919
|
+
left: `calc(${left}px + var(--offset-x, 0px))`,
|
|
992
920
|
'transform-origin': `${originY} ${originX}`,
|
|
993
921
|
})
|
|
994
922
|
.beforeAddWrite(() => {
|
|
995
|
-
if (
|
|
996
|
-
contentEl.style.setProperty('bottom',
|
|
923
|
+
if (bottom !== undefined) {
|
|
924
|
+
contentEl.style.setProperty('bottom', `${bottom}px`);
|
|
997
925
|
}
|
|
998
926
|
})
|
|
999
927
|
.fromTo('transform', 'scale(0.8)', 'scale(1)');
|
|
@@ -1495,9 +1423,9 @@ const Popover = /*@__PURE__*/ proxyCustomElement(class Popover extends HTMLEleme
|
|
|
1495
1423
|
const { onLifecycle, parentPopover, dismissOnSelect, side, arrow, htmlAttributes, focusTrap } = this;
|
|
1496
1424
|
const desktop = isPlatform('desktop');
|
|
1497
1425
|
const enableArrow = arrow && !parentPopover;
|
|
1498
|
-
return (h(Host, Object.assign({ key: '
|
|
1426
|
+
return (h(Host, Object.assign({ key: '2edd8333c630efbce59071f8a383e4326e928dbc', "aria-modal": "true", "no-router": true, tabindex: "-1" }, htmlAttributes, { style: {
|
|
1499
1427
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
1500
|
-
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { key: '
|
|
1428
|
+
}, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'popover-translucent': this.translucent, 'overlay-hidden': true, 'popover-desktop': desktop, [`popover-side-${side}`]: true, [FOCUS_TRAP_DISABLE_CLASS]: focusTrap === false, 'popover-nested': !!parentPopover }), onIonPopoverDidPresent: onLifecycle, onIonPopoverWillPresent: onLifecycle, onIonPopoverWillDismiss: onLifecycle, onIonPopoverDidDismiss: onLifecycle, onIonBackdropTap: this.onBackdropTap }), !parentPopover && h("ion-backdrop", { key: 'aac4e68b08197534375e8ea3f8c9ea0c10ab2af4', tappable: this.backdropDismiss, visible: this.showBackdrop, part: "backdrop" }), h("div", { key: 'b7f4ebf57d4148b32856b0075d286f454be8de5d', class: "popover-wrapper ion-overlay-wrapper", onClick: dismissOnSelect ? () => this.dismiss() : undefined }, enableArrow && h("div", { key: '607d94c28d73e8e957175a7c0f6e8a99ec4dcd53', class: "popover-arrow", part: "arrow" }), h("div", { key: '4366a5a5de550c09895e923f345583508e1ec30c', class: "popover-content", part: "content" }, h("slot", { key: 'eb7886fbc99c15b667b7d825d24f1c12d9380f03' })))));
|
|
1501
1429
|
}
|
|
1502
1430
|
get el() { return this; }
|
|
1503
1431
|
static get watchers() { return {
|
|
@@ -249,7 +249,7 @@ const RadioGroup = /*@__PURE__*/ proxyCustomElement(class RadioGroup extends HTM
|
|
|
249
249
|
const { label, labelId, el, name, value } = this;
|
|
250
250
|
const mode = getIonMode(this);
|
|
251
251
|
renderHiddenInput(true, el, name, value, false);
|
|
252
|
-
return (h(Host, { key: 'db593b3ed511e9395e3c7bfd91b787328692cd6d', role: "radiogroup", "aria-labelledby": label ? labelId : null, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, class: mode }, this.renderHintText(), h("
|
|
252
|
+
return (h(Host, { key: 'db593b3ed511e9395e3c7bfd91b787328692cd6d', role: "radiogroup", "aria-labelledby": label ? labelId : null, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, onClick: this.onClick, class: mode }, this.renderHintText(), h("slot", { key: 'd683b01c1ba34fe843c4b320bce4661a117472a5' })));
|
|
253
253
|
}
|
|
254
254
|
get el() { return this; }
|
|
255
255
|
static get watchers() { return {
|
package/components/radio.js
CHANGED
|
@@ -175,7 +175,7 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
175
175
|
const { checked, disabled, color, el, justify, labelPlacement, hasLabel, buttonTabindex, alignment } = this;
|
|
176
176
|
const mode = getIonMode(this);
|
|
177
177
|
const inItem = hostContext('ion-item', el);
|
|
178
|
-
return (h(Host, { key: '
|
|
178
|
+
return (h(Host, { key: 'af5dc59ed528150872e907ed1036e3e2decba939', onFocus: this.onFocus, onBlur: this.onBlur, onClick: this.onClick, class: createColorClasses(color, {
|
|
179
179
|
[mode]: true,
|
|
180
180
|
'in-item': inItem,
|
|
181
181
|
'radio-checked': checked,
|
|
@@ -186,10 +186,10 @@ const Radio = /*@__PURE__*/ proxyCustomElement(class Radio extends HTMLElement {
|
|
|
186
186
|
// Focus and active styling should not apply when the radio is in an item
|
|
187
187
|
'ion-activatable': !inItem,
|
|
188
188
|
'ion-focusable': !inItem,
|
|
189
|
-
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '
|
|
189
|
+
}), role: "radio", "aria-checked": checked ? 'true' : 'false', "aria-disabled": disabled ? 'true' : null, tabindex: buttonTabindex }, h("label", { key: '1312aba3259a87fe23a6911cdfa477e309469c8b', class: "radio-wrapper" }, h("div", { key: 'b342aa27e240a300836d2a135658d346b95daf09', class: {
|
|
190
190
|
'label-text-wrapper': true,
|
|
191
191
|
'label-text-wrapper-hidden': !hasLabel,
|
|
192
|
-
}, part: "label" }, h("slot", { key: '
|
|
192
|
+
}, part: "label" }, h("slot", { key: '0a4613d29aa783d1882cf889377f7e4fd4fea51d' })), h("div", { key: '191faea79dc4cd8befc4b873f5bd9f5af8ca2acc', class: "native-wrapper" }, this.renderRadioControl()))));
|
|
193
193
|
}
|
|
194
194
|
get el() { return this; }
|
|
195
195
|
static get watchers() { return {
|
|
@@ -76,7 +76,7 @@ const RippleEffect = /*@__PURE__*/ proxyCustomElement(class RippleEffect extends
|
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
78
|
const mode = getIonMode(this);
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '3b59cbb44741569a7350f9638b4392add673b6f1', role: "presentation", class: {
|
|
80
80
|
[mode]: true,
|
|
81
81
|
unbounded: this.unbounded,
|
|
82
82
|
} }));
|
|
@@ -99,7 +99,7 @@ const SelectModal = /*@__PURE__*/ proxyCustomElement(class SelectModal extends H
|
|
|
99
99
|
} }, option.text))));
|
|
100
100
|
}
|
|
101
101
|
render() {
|
|
102
|
-
return (h(Host, { key: '
|
|
102
|
+
return (h(Host, { key: '5bffdb106e6f628dae2e2aeb9ee8008b5c547b3a', class: getIonMode(this) }, h("ion-header", { key: '4de1c33b0504372f8a0a26123e4e086080ee1ecb' }, h("ion-toolbar", { key: '5d55a67d1db4352c260e9e0457d5dac6110b6598' }, this.header !== undefined && h("ion-title", { key: '4f07fe8a9af8c9bd0852af2a9b95517d16356e50' }, this.header), h("ion-buttons", { key: 'ca676a34f7cd3dd6b465b0d803434c2e2c8536c5', slot: "end" }, h("ion-button", { key: '801ed63a357c7c9d354668851db65e5c1b0e1abe', onClick: () => this.closeModal() }, "Close")))), h("ion-content", { key: 'f3c239ec9d84b8ed7413ea9db6efa18e29aca285' }, h("ion-list", { key: '40c157e9abe477171a39ae7e6e1cd4ed08735cb4' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
103
103
|
}
|
|
104
104
|
get el() { return this; }
|
|
105
105
|
static get style() { return {
|
|
@@ -116,7 +116,7 @@ const SelectPopover = /*@__PURE__*/ proxyCustomElement(class SelectPopover exten
|
|
|
116
116
|
render() {
|
|
117
117
|
const { header, message, options, subHeader } = this;
|
|
118
118
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
119
|
-
return (h(Host, { key: '
|
|
119
|
+
return (h(Host, { key: '0c9845a40d3fc392b0a7d64e2a6ed27d94bb7634', class: getIonMode(this) }, h("ion-list", { key: '84a30f6661b0f8c00e6fa199658ed2adbcf27358' }, header !== undefined && h("ion-list-header", { key: '13f5f56bbfbc06751fa516291a2da72629b60ece' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: '3d39d18e720e798bbde334e79e6832091c7dfb81' }, h("ion-label", { key: 'd3051b0d140120b44bf5e79572f6f287e7cfb03a', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: 'b16805956f3316f8ec703c123b76f717488e8637' }, subHeader), message !== undefined && h("p", { key: '2215ac4ab4146a14e75a79192e319a8016286b5f' }, message)))), this.renderOptions(options))));
|
|
120
120
|
}
|
|
121
121
|
get el() { return this; }
|
|
122
122
|
static get style() { return {
|
package/components/spinner.js
CHANGED
|
@@ -187,7 +187,7 @@ const Spinner = /*@__PURE__*/ proxyCustomElement(class Spinner extends HTMLEleme
|
|
|
187
187
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
return (h(Host, { key: '
|
|
190
|
+
return (h(Host, { key: 'dd1954e557fa14b943e761474e29e4316ba53938', class: createColorClasses(self.color, {
|
|
191
191
|
[mode]: true,
|
|
192
192
|
[`spinner-${spinnerName}`]: true,
|
|
193
193
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
package/components/title.js
CHANGED
|
@@ -36,11 +36,11 @@ const ToolbarTitle = /*@__PURE__*/ proxyCustomElement(class ToolbarTitle extends
|
|
|
36
36
|
render() {
|
|
37
37
|
const mode = getIonMode(this);
|
|
38
38
|
const size = this.getSize();
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '44e63f8439df64c470692904427b417e19406476', class: createColorClasses(this.color, {
|
|
40
40
|
[mode]: true,
|
|
41
41
|
[`title-${size}`]: true,
|
|
42
42
|
'title-rtl': document.dir === 'rtl',
|
|
43
|
-
}) }, h("div", { key: '
|
|
43
|
+
}) }, h("div", { key: '784cf60a0db16045391891cc8fad0c7dbeba4039', class: "toolbar-title" }, h("slot", { key: '0c720a50479ba257e8756337aeb9b0ab7516a227' }))));
|
|
44
44
|
}
|
|
45
45
|
get el() { return this; }
|
|
46
46
|
static get watchers() { return {
|
package/components/toolbar.js
CHANGED
|
@@ -62,10 +62,10 @@ const Toolbar = /*@__PURE__*/ proxyCustomElement(class Toolbar extends HTMLEleme
|
|
|
62
62
|
this.childrenStyles.forEach((value) => {
|
|
63
63
|
Object.assign(childStyles, value);
|
|
64
64
|
});
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: 'b849db2863778dee6c5a251bffa1b3a657aeb036', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
|
|
66
66
|
[mode]: true,
|
|
67
67
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
68
|
-
})) }, h("div", { key: '
|
|
68
|
+
})) }, h("div", { key: '67f5bba9c4f527c3f35bfe1313a2b85741f9b246', class: "toolbar-background", part: "background" }), h("div", { key: '085e8c68f056e5b0deb9d1606431fbeb45dae8e5', class: "toolbar-container", part: "container" }, h("slot", { key: '15227c79c3baf883fd8c43fdb7e1313453933c79', name: "start" }), h("slot", { key: '0b8a7f7e685aa31c80d9bc03446ccc3a9d07e0e8', name: "secondary" }), h("div", { key: '57e4628c1fa89df79dd80456259db961bb691404', class: "toolbar-content", part: "content" }, h("slot", { key: '82c2f6e1acf8d96db259bd8baf295881801edbd5' })), h("slot", { key: 'b2d4afb15214199f206c0a5e08b581e4c9c2f58a', name: "primary" }), h("slot", { key: 'bfb909a0c472f8834046c2ea23bef2f562167ad3', name: "end" }))));
|
|
69
69
|
}
|
|
70
70
|
get el() { return this; }
|
|
71
71
|
static get style() { return {
|
|
@@ -1306,7 +1306,7 @@ const RouterOutlet = class {
|
|
|
1306
1306
|
return true;
|
|
1307
1307
|
}
|
|
1308
1308
|
render() {
|
|
1309
|
-
return index.h("slot", { key: '
|
|
1309
|
+
return index.h("slot", { key: '386c41745b61daba161cf75063da97fe29ba36cb' });
|
|
1310
1310
|
}
|
|
1311
1311
|
get el() { return index.getElement(this); }
|
|
1312
1312
|
static get watchers() { return {
|
|
@@ -1342,11 +1342,11 @@ const ToolbarTitle = class {
|
|
|
1342
1342
|
render() {
|
|
1343
1343
|
const mode = ionicGlobal.getIonMode(this);
|
|
1344
1344
|
const size = this.getSize();
|
|
1345
|
-
return (index.h(index.Host, { key: '
|
|
1345
|
+
return (index.h(index.Host, { key: '44e63f8439df64c470692904427b417e19406476', class: theme.createColorClasses(this.color, {
|
|
1346
1346
|
[mode]: true,
|
|
1347
1347
|
[`title-${size}`]: true,
|
|
1348
1348
|
'title-rtl': document.dir === 'rtl',
|
|
1349
|
-
}) }, index.h("div", { key: '
|
|
1349
|
+
}) }, index.h("div", { key: '784cf60a0db16045391891cc8fad0c7dbeba4039', class: "toolbar-title" }, index.h("slot", { key: '0c720a50479ba257e8756337aeb9b0ab7516a227' }))));
|
|
1350
1350
|
}
|
|
1351
1351
|
get el() { return index.getElement(this); }
|
|
1352
1352
|
static get watchers() { return {
|
|
@@ -1411,10 +1411,10 @@ const Toolbar = class {
|
|
|
1411
1411
|
this.childrenStyles.forEach((value) => {
|
|
1412
1412
|
Object.assign(childStyles, value);
|
|
1413
1413
|
});
|
|
1414
|
-
return (index.h(index.Host, { key: '
|
|
1414
|
+
return (index.h(index.Host, { key: 'b849db2863778dee6c5a251bffa1b3a657aeb036', class: Object.assign(Object.assign({}, childStyles), theme.createColorClasses(this.color, {
|
|
1415
1415
|
[mode]: true,
|
|
1416
1416
|
'in-toolbar': theme.hostContext('ion-toolbar', this.el),
|
|
1417
|
-
})) }, index.h("div", { key: '
|
|
1417
|
+
})) }, index.h("div", { key: '67f5bba9c4f527c3f35bfe1313a2b85741f9b246', class: "toolbar-background", part: "background" }), index.h("div", { key: '085e8c68f056e5b0deb9d1606431fbeb45dae8e5', class: "toolbar-container", part: "container" }, index.h("slot", { key: '15227c79c3baf883fd8c43fdb7e1313453933c79', name: "start" }), index.h("slot", { key: '0b8a7f7e685aa31c80d9bc03446ccc3a9d07e0e8', name: "secondary" }), index.h("div", { key: '57e4628c1fa89df79dd80456259db961bb691404', class: "toolbar-content", part: "content" }, index.h("slot", { key: '82c2f6e1acf8d96db259bd8baf295881801edbd5' })), index.h("slot", { key: 'b2d4afb15214199f206c0a5e08b581e4c9c2f58a', name: "primary" }), index.h("slot", { key: 'bfb909a0c472f8834046c2ea23bef2f562167ad3', name: "end" }))));
|
|
1418
1418
|
}
|
|
1419
1419
|
get el() { return index.getElement(this); }
|
|
1420
1420
|
};
|
|
@@ -51,7 +51,7 @@ const Thumbnail = class {
|
|
|
51
51
|
index.registerInstance(this, hostRef);
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (index.h(index.Host, { key: '
|
|
54
|
+
return (index.h(index.Host, { key: 'b250e01664238f1dca8f9757b15bc3d5d9387ffa', class: ionicGlobal.getIonMode(this) }, index.h("slot", { key: '72cb568bccabc983c5186a7596ef6c6d4ebf5ad9' })));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
Thumbnail.style = thumbnailCss;
|
|
@@ -147,7 +147,7 @@ const Row = class {
|
|
|
147
147
|
index.registerInstance(this, hostRef);
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return (index.h(index.Host, { key: '
|
|
150
|
+
return (index.h(index.Host, { key: '8ba906a8cbea060a79ed658c9bf34906f0c11d38', class: ionicGlobal.getIonMode(this) }, index.h("slot", { key: 'd1009176f45b588fa52c7d9eb336f3c6d3214bb8' })));
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
153
|
Row.style = rowCss;
|
|
@@ -2178,11 +2178,11 @@ const Picker = class {
|
|
|
2178
2178
|
render() {
|
|
2179
2179
|
const { htmlAttributes } = this;
|
|
2180
2180
|
const mode = ionicGlobal.getIonMode(this);
|
|
2181
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
2181
|
+
return (index.h(index.Host, Object.assign({ key: '80f66d33780d8a1352d24be9cb63a0cc03d01ab5', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
2182
2182
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
2183
2183
|
}, class: Object.assign({ [mode]: true,
|
|
2184
2184
|
// Used internally for styling
|
|
2185
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index.h("ion-backdrop", { key: '
|
|
2185
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, theme.getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), index.h("ion-backdrop", { key: '97fb8e10ba08b197610cb8c0cdea61103883d55f', visible: this.showBackdrop, tappable: this.backdropDismiss }), index.h("div", { key: 'b3969cb6fbf7153623d14e3ca1493d3370efb211', tabindex: "0", "aria-hidden": "true" }), index.h("div", { key: '299268483c3727e698d9135bfdf40349a7050ac1', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, index.h("div", { key: '95394de3ef691899b7dbf416f56fd3e86bbdce3f', class: "picker-toolbar" }, this.buttons.map((b) => (index.h("div", { class: buttonWrapperClass(b) }, index.h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), index.h("div", { key: '05f18bb8d00dc0e22f691b7e41f90f729a6c66d7', class: "picker-columns" }, index.h("div", { key: '4a8fdf224effc0af67fd413e2e6aca8a78d1cf43', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => index.h("ion-picker-legacy-column", { col: c })), index.h("div", { key: 'e50a31db45e3f39e9d0fed36a21be9257eec09bf', class: "picker-below-highlight" }))), index.h("div", { key: '5a78cb2176ac807ea0c195c6b76cd0e8eef9d4c0', tabindex: "0", "aria-hidden": "true" })));
|
|
2186
2186
|
}
|
|
2187
2187
|
get el() { return index.getElement(this); }
|
|
2188
2188
|
static get watchers() { return {
|
|
@@ -2536,9 +2536,9 @@ const PickerColumnCmp = class {
|
|
|
2536
2536
|
render() {
|
|
2537
2537
|
const col = this.col;
|
|
2538
2538
|
const mode = ionicGlobal.getIonMode(this);
|
|
2539
|
-
return (index.h(index.Host, { key: '
|
|
2539
|
+
return (index.h(index.Host, { key: '86125e95f18837dfd021db01777d72a1562d8ee3', class: Object.assign({ [mode]: true, 'picker-col': true, 'picker-opts-left': this.col.align === 'left', 'picker-opts-right': this.col.align === 'right' }, theme.getClassMap(col.cssClass)), style: {
|
|
2540
2540
|
'max-width': this.col.columnWidth,
|
|
2541
|
-
} }, col.prefix && (index.h("div", { key: '
|
|
2541
|
+
} }, col.prefix && (index.h("div", { key: 'b0f3d39e0bd128781066ffefb7a1e40d12a9e76d', class: "picker-prefix", style: { width: col.prefixWidth } }, col.prefix)), index.h("div", { key: '0b106ac4d56916eaaa7f09d1b68348b3754b7bba', class: "picker-opts", style: { maxWidth: col.optionsWidth }, ref: (el) => (this.optsEl = el) }, col.options.map((o, index$1) => (index.h("button", { "aria-label": o.ariaLabel, class: { 'picker-opt': true, 'picker-opt-disabled': !!o.disabled }, "opt-index": index$1 }, o.text)))), col.suffix && (index.h("div", { key: '00ff2f9dbb4561787e5a5223327c6a2a33f8362e', class: "picker-suffix", style: { width: col.suffixWidth } }, col.suffix))));
|
|
2542
2542
|
}
|
|
2543
2543
|
get el() { return index.getElement(this); }
|
|
2544
2544
|
static get watchers() { return {
|
|
@@ -47,12 +47,12 @@ const ItemOption = class {
|
|
|
47
47
|
href: this.href,
|
|
48
48
|
target: this.target,
|
|
49
49
|
};
|
|
50
|
-
return (index.h(index.Host, { key: '
|
|
50
|
+
return (index.h(index.Host, { key: '058310ac361612c16f2ef70c74279ba7c24128c5', onClick: this.onClick, class: theme.createColorClasses(this.color, {
|
|
51
51
|
[mode]: true,
|
|
52
52
|
'item-option-disabled': disabled,
|
|
53
53
|
'item-option-expandable': expandable,
|
|
54
54
|
'ion-activatable': true,
|
|
55
|
-
}) }, index.h(TagType, Object.assign({ key: '
|
|
55
|
+
}) }, index.h(TagType, Object.assign({ key: '045052656ab652bec065d421950fe9ea00dc1141' }, attrs, { class: "button-native", part: "native", disabled: disabled }), index.h("span", { key: '988b9166c0dda3c822a99ceace4c105339b2465b', class: "button-inner" }, index.h("slot", { key: '8050b870ada6b09283f8acbcbb6d2bd1c76508b3', name: "top" }), index.h("div", { key: 'a206e7b09e660c878ce3c5b61d018e8cdd89dc55', class: "horizontal-wrapper" }, index.h("slot", { key: '394e5e4ce14cd19b5d5eafca29bb9f971f5f0741', name: "start" }), index.h("slot", { key: 'dd4c3a1bee7622df40a3d8f2a298045b772f1600', name: "icon-only" }), index.h("slot", { key: '318f3ec97b722c5e7df1a78b1e0439f919d0aacc' }), index.h("slot", { key: 'fff6a9a602cf7bd698528982f91742a2d36ea245', name: "end" })), index.h("slot", { key: '26b4bb155701d8080b486dbad7bb9a6d2e35182c', name: "bottom" })), mode === 'md' && index.h("ion-ripple-effect", { key: '152b74643bf0f5725c39bfdbb940f0f32ec83d58' }))));
|
|
56
56
|
}
|
|
57
57
|
get el() { return index.getElement(this); }
|
|
58
58
|
};
|
|
@@ -84,7 +84,7 @@ const ItemOptions = class {
|
|
|
84
84
|
render() {
|
|
85
85
|
const mode = ionicGlobal.getIonMode(this);
|
|
86
86
|
const isEnd = helpers.isEndSide(this.side);
|
|
87
|
-
return (index.h(index.Host, { key: '
|
|
87
|
+
return (index.h(index.Host, { key: '7b4b93984182222c64c7a2a22a18e52ac19e3049', class: {
|
|
88
88
|
[mode]: true,
|
|
89
89
|
// Used internally for styling
|
|
90
90
|
[`item-options-${mode}`]: true,
|
|
@@ -495,7 +495,7 @@ const ItemSliding = class {
|
|
|
495
495
|
}
|
|
496
496
|
render() {
|
|
497
497
|
const mode = ionicGlobal.getIonMode(this);
|
|
498
|
-
return (index.h(index.Host, { key: '
|
|
498
|
+
return (index.h(index.Host, { key: '8fd81d74701402294a48b79c56d6eceadafd4881', class: {
|
|
499
499
|
[mode]: true,
|
|
500
500
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
501
501
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -274,11 +274,11 @@ const ItemDivider = class {
|
|
|
274
274
|
}
|
|
275
275
|
render() {
|
|
276
276
|
const mode = ionicGlobal.getIonMode(this);
|
|
277
|
-
return (index.h(index.Host, { key: '
|
|
277
|
+
return (index.h(index.Host, { key: 'ee8b2c8d5e415c0d8badf84fa7670932da4e809e', class: theme.createColorClasses(this.color, {
|
|
278
278
|
[mode]: true,
|
|
279
279
|
'item-divider-sticky': this.sticky,
|
|
280
280
|
item: true,
|
|
281
|
-
}) }, index.h("slot", { key: '
|
|
281
|
+
}) }, index.h("slot", { key: 'a1b7bbb1a008b0a56887f130d166931033801746', name: "start" }), index.h("div", { key: '9d572da46ab616bdf881098e96aa6796a249507f', class: "item-divider-inner" }, index.h("div", { key: 'a57a2c17093b74b9e4f8fd2778230a440b293aa1', class: "item-divider-wrapper" }, index.h("slot", { key: 'ef15ebf58f3acd4b4d1b7c51144e26c3759dba49' })), index.h("slot", { key: '1787c2400534301fe72b8ec213d0ce1e8f75b65a', name: "end" }))));
|
|
282
282
|
}
|
|
283
283
|
get el() { return index.getElement(this); }
|
|
284
284
|
};
|
|
@@ -297,7 +297,7 @@ const ItemGroup = class {
|
|
|
297
297
|
}
|
|
298
298
|
render() {
|
|
299
299
|
const mode = ionicGlobal.getIonMode(this);
|
|
300
|
-
return (index.h(index.Host, { key: '
|
|
300
|
+
return (index.h(index.Host, { key: 'f1743af1d075682f63fae3802c5c5bf050507563', role: "group", class: {
|
|
301
301
|
[mode]: true,
|
|
302
302
|
// Used internally for styling
|
|
303
303
|
[`item-group-${mode}`]: true,
|
|
@@ -363,13 +363,13 @@ const Label = class {
|
|
|
363
363
|
render() {
|
|
364
364
|
const position = this.position;
|
|
365
365
|
const mode = ionicGlobal.getIonMode(this);
|
|
366
|
-
return (index.h(index.Host, { key: '
|
|
366
|
+
return (index.h(index.Host, { key: '684ddfa719e34d743489ff05a0df067829257c73', class: theme.createColorClasses(this.color, {
|
|
367
367
|
[mode]: true,
|
|
368
368
|
'in-item-color': theme.hostContext('ion-item.ion-color', this.el),
|
|
369
369
|
[`label-${position}`]: position !== undefined,
|
|
370
370
|
[`label-no-animate`]: this.noAnimate,
|
|
371
371
|
'label-rtl': document.dir === 'rtl',
|
|
372
|
-
}) }, index.h("slot", { key: '
|
|
372
|
+
}) }, index.h("slot", { key: '4aace3e2b36250e832c44f63bea21116d77220fb' })));
|
|
373
373
|
}
|
|
374
374
|
get el() { return index.getElement(this); }
|
|
375
375
|
static get watchers() { return {
|
|
@@ -437,10 +437,10 @@ const ListHeader = class {
|
|
|
437
437
|
render() {
|
|
438
438
|
const { lines } = this;
|
|
439
439
|
const mode = ionicGlobal.getIonMode(this);
|
|
440
|
-
return (index.h(index.Host, { key: '
|
|
440
|
+
return (index.h(index.Host, { key: '2e529021279761b2b2889885437f619b0e8f71c4', class: theme.createColorClasses(this.color, {
|
|
441
441
|
[mode]: true,
|
|
442
442
|
[`list-header-lines-${lines}`]: lines !== undefined,
|
|
443
|
-
}) }, index.h("div", { key: '
|
|
443
|
+
}) }, index.h("div", { key: '9a6a11b0db015df79374f6489a40b959bc80b3e4', class: "list-header-inner" }, index.h("slot", { key: 'ef347fc6afb47850797e2e4d1aeefcd6a318f789' }))));
|
|
444
444
|
}
|
|
445
445
|
};
|
|
446
446
|
ListHeader.style = {
|
|
@@ -458,9 +458,9 @@ const Note = class {
|
|
|
458
458
|
}
|
|
459
459
|
render() {
|
|
460
460
|
const mode = ionicGlobal.getIonMode(this);
|
|
461
|
-
return (index.h(index.Host, { key: '
|
|
461
|
+
return (index.h(index.Host, { key: 'b86a6acc9274df6528d224d4c11ab826a0f84dbc', class: theme.createColorClasses(this.color, {
|
|
462
462
|
[mode]: true,
|
|
463
|
-
}) }, index.h("slot", { key: '
|
|
463
|
+
}) }, index.h("slot", { key: '5de76567ed7713827cd277a42db102faf34190c8' })));
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
Note.style = {
|
|
@@ -495,11 +495,11 @@ const SkeletonText = class {
|
|
|
495
495
|
const animated = this.animated && index.config.getBoolean('animated', true);
|
|
496
496
|
const inMedia = theme.hostContext('ion-avatar', this.el) || theme.hostContext('ion-thumbnail', this.el);
|
|
497
497
|
const mode = ionicGlobal.getIonMode(this);
|
|
498
|
-
return (index.h(index.Host, { key: '
|
|
498
|
+
return (index.h(index.Host, { key: 'cb8da9aba121811b9a4ffdae60ed88105897cb3c', class: {
|
|
499
499
|
[mode]: true,
|
|
500
500
|
'skeleton-text-animated': animated,
|
|
501
501
|
'in-media': inMedia,
|
|
502
|
-
} }, index.h("span", { key: '
|
|
502
|
+
} }, index.h("span", { key: '5379deee3c76d46d615be0cba14b4f60129ffa25' }, "\u00A0")));
|
|
503
503
|
}
|
|
504
504
|
get el() { return index.getElement(this); }
|
|
505
505
|
};
|
|
@@ -278,9 +278,9 @@ const Loading = class {
|
|
|
278
278
|
* Otherwise, don't set aria-labelledby.
|
|
279
279
|
*/
|
|
280
280
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
281
|
-
return (index.h(index.Host, Object.assign({ key: '
|
|
281
|
+
return (index.h(index.Host, Object.assign({ key: 'f86ddbc600cb5c396b7de38fb5f49625388c3c3f', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
282
282
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
283
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), index.h("ion-backdrop", { key: '
|
|
283
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, theme.getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), index.h("ion-backdrop", { key: 'b53727aaddc37ef3c685fcc150c6d5193290a847', visible: this.showBackdrop, tappable: this.backdropDismiss }), index.h("div", { key: '4c61bede8e0a4e47daa6f1f9d0f364ef6aec0bc3', tabindex: "0", "aria-hidden": "true" }), index.h("div", { key: '84e51ceb07118f1eaeb757df28801c255496931b', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (index.h("div", { key: 'fc97f1912e0fc558b7c309a5bc084415f5f620b2', class: "loading-spinner" }, index.h("ion-spinner", { key: '6e186d856cd3f10f22c3e317ef00f31b4216459c', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), index.h("div", { key: 'dcbe9d9a619daa1c08174e73827bdabeb59dde92', tabindex: "0", "aria-hidden": "true" })));
|
|
284
284
|
}
|
|
285
285
|
get el() { return index.getElement(this); }
|
|
286
286
|
static get watchers() { return {
|
|
@@ -664,14 +664,14 @@ const Menu = class {
|
|
|
664
664
|
* the ionBackButton listener in the menu controller
|
|
665
665
|
* will handle closing the menu when Escape is pressed.
|
|
666
666
|
*/
|
|
667
|
-
return (index.h(index.Host, { key: '
|
|
667
|
+
return (index.h(index.Host, { key: '29ef73894e2795e4ce23e59888ffb87faf4dd543', onKeyDown: hardwareBackButton.shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
668
668
|
[mode]: true,
|
|
669
669
|
[`menu-type-${type}`]: true,
|
|
670
670
|
'menu-enabled': !disabled,
|
|
671
671
|
[`menu-side-${side}`]: true,
|
|
672
672
|
'menu-pane-visible': isPaneVisible,
|
|
673
673
|
'split-pane-side': theme.hostContext('ion-split-pane', el),
|
|
674
|
-
} }, index.h("div", { key: '
|
|
674
|
+
} }, index.h("div", { key: '22e44f7bd602ee0c96550f0dfc22ac81c0033ad6', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, index.h("slot", { key: '7bbef92fe03bb3ce4d3981eb8535aab449aab2fc' })), index.h("ion-backdrop", { key: '9ab8d5b61563e16b212c71c03869d4fc23a0400b', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
675
675
|
}
|
|
676
676
|
get el() { return index.getElement(this); }
|
|
677
677
|
static get watchers() { return {
|
|
@@ -749,7 +749,7 @@ const MenuButton = class {
|
|
|
749
749
|
type: this.type,
|
|
750
750
|
};
|
|
751
751
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
752
|
-
return (index.h(index.Host, { key: '
|
|
752
|
+
return (index.h(index.Host, { key: 'dcade732e366f0687d92cb9ce4065b78b0b41d24', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: theme.createColorClasses(color, {
|
|
753
753
|
[mode]: true,
|
|
754
754
|
button: true, // ion-buttons target .button
|
|
755
755
|
'menu-button-hidden': hidden,
|
|
@@ -758,7 +758,7 @@ const MenuButton = class {
|
|
|
758
758
|
'in-toolbar-color': theme.hostContext('ion-toolbar[color]', this.el),
|
|
759
759
|
'ion-activatable': true,
|
|
760
760
|
'ion-focusable': true,
|
|
761
|
-
}) }, index.h("button", Object.assign({ key: '
|
|
761
|
+
}) }, index.h("button", Object.assign({ key: '7c4a449e239679376f38471d95fd602f9caec5f6' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), index.h("span", { key: '8bb5bf453280a66109198c970b678ad800c7a8cf', class: "button-inner" }, index.h("slot", { key: '7f78b1e7a0695f2bd600d13ca81f50dd8b965726' }, index.h("ion-icon", { key: '9f67f5bb06b1f03a6e5df9ecbe23ebf69fb40756', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && index.h("ion-ripple-effect", { key: '10be7145c614144e94c3cc0b92dc5ee4e1587fe6', type: "unbounded" }))));
|
|
762
762
|
}
|
|
763
763
|
get el() { return index.getElement(this); }
|
|
764
764
|
};
|
|
@@ -793,10 +793,10 @@ const MenuToggle = class {
|
|
|
793
793
|
render() {
|
|
794
794
|
const mode = ionicGlobal.getIonMode(this);
|
|
795
795
|
const hidden = this.autoHide && !this.visible;
|
|
796
|
-
return (index.h(index.Host, { key: '
|
|
796
|
+
return (index.h(index.Host, { key: '55135952f3a42cb5d21916dfb7b169d894b381e3', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
797
797
|
[mode]: true,
|
|
798
798
|
'menu-toggle-hidden': hidden,
|
|
799
|
-
} }, index.h("slot", { key: '
|
|
799
|
+
} }, index.h("slot", { key: 'e8ecb59a6ec075b07e2a1b8fcdf7df3dd9975a03' })));
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
MenuToggle.style = menuToggleCss;
|