@ionic/core 9.0.11-nightly.20261110 → 9.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/components/ion-back-button.js +1 -1
  2. package/components/ion-breadcrumb.js +1 -1
  3. package/components/ion-button.js +1 -1
  4. package/components/ion-card.js +1 -1
  5. package/components/ion-datetime.js +1 -1
  6. package/components/ion-fab-button.js +1 -1
  7. package/components/ion-input-password-toggle.js +1 -1
  8. package/components/ion-item-option.js +1 -1
  9. package/components/ion-item.js +1 -1
  10. package/components/ion-menu-button.js +1 -1
  11. package/components/ion-router-link.js +1 -1
  12. package/components/ion-segment-button.js +1 -1
  13. package/components/ion-select-modal.js +1 -1
  14. package/components/ion-select-popover.js +1 -1
  15. package/components/ion-select.js +1 -1
  16. package/components/ion-tab-button.js +1 -1
  17. package/components/p-BLmEEVy_.js +4 -0
  18. package/components/p-C-Jb89-w.js +4 -0
  19. package/components/{p-Dy7x-KDF.js → p-DBlNaRT2.js} +1 -1
  20. package/components/p-DBtEgJe4.js +4 -0
  21. package/components/{p-C-SO5kIs.js → p-nZiC4mrP.js} +1 -1
  22. package/dist/cjs/attribute-controller-BRwSyjfI.js +219 -0
  23. package/dist/cjs/ion-back-button.cjs.entry.js +11 -2
  24. package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +26 -4
  25. package/dist/cjs/ion-button_2.cjs.entry.js +10 -4
  26. package/dist/cjs/ion-card_5.cjs.entry.js +23 -3
  27. package/dist/cjs/ion-fab_3.cjs.entry.js +9 -2
  28. package/dist/cjs/ion-item-option_3.cjs.entry.js +13 -2
  29. package/dist/cjs/ion-item_8.cjs.entry.js +19 -3
  30. package/dist/cjs/ion-menu_3.cjs.entry.js +11 -2
  31. package/dist/cjs/ion-route_4.cjs.entry.js +14 -2
  32. package/dist/cjs/ion-segment_2.cjs.entry.js +7 -2
  33. package/dist/cjs/ion-select_3.cjs.entry.js +8 -3
  34. package/dist/cjs/ion-tab-bar_2.cjs.entry.js +11 -2
  35. package/dist/cjs/ionic.cjs.js +1 -1
  36. package/dist/cjs/loader.cjs.js +1 -1
  37. package/dist/collection/components/back-button/back-button.js +12 -3
  38. package/dist/collection/components/breadcrumb/breadcrumb.js +28 -5
  39. package/dist/collection/components/button/button.js +10 -4
  40. package/dist/collection/components/card/card.js +24 -3
  41. package/dist/collection/components/fab-button/fab-button.js +10 -3
  42. package/dist/collection/components/item/item.js +19 -3
  43. package/dist/collection/components/item-option/item-option.js +14 -3
  44. package/dist/collection/components/menu-button/menu-button.js +12 -3
  45. package/dist/collection/components/router-link/router-link.js +15 -3
  46. package/dist/collection/components/segment-button/segment-button.js +7 -2
  47. package/dist/collection/components/select/select.js +8 -3
  48. package/dist/collection/components/tab-button/tab-button.js +12 -3
  49. package/dist/collection/utils/attribute-controller.js +107 -20
  50. package/dist/docs.json +1 -1
  51. package/dist/esm/attribute-controller-BMdZtDiw.js +215 -0
  52. package/dist/esm/ion-back-button.entry.js +12 -3
  53. package/dist/esm/ion-breadcrumb_2.entry.js +27 -5
  54. package/dist/esm/ion-button_2.entry.js +10 -4
  55. package/dist/esm/ion-card_5.entry.js +23 -3
  56. package/dist/esm/ion-fab_3.entry.js +10 -3
  57. package/dist/esm/ion-item-option_3.entry.js +14 -3
  58. package/dist/esm/ion-item_8.entry.js +19 -3
  59. package/dist/esm/ion-menu_3.entry.js +12 -3
  60. package/dist/esm/ion-route_4.entry.js +15 -3
  61. package/dist/esm/ion-segment_2.entry.js +7 -2
  62. package/dist/esm/ion-select_3.entry.js +8 -3
  63. package/dist/esm/ion-tab-bar_2.entry.js +12 -3
  64. package/dist/esm/ionic.js +1 -1
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/ionic/ionic.esm.js +1 -1
  67. package/dist/ionic/p-13cebf9c.entry.js +4 -0
  68. package/dist/ionic/p-2JXUmy2G.js +4 -0
  69. package/dist/ionic/p-41e7f290.entry.js +4 -0
  70. package/dist/ionic/p-498151f8.entry.js +4 -0
  71. package/dist/ionic/p-499eba5c.entry.js +4 -0
  72. package/dist/ionic/p-4dd92223.entry.js +4 -0
  73. package/dist/ionic/p-542337a7.entry.js +4 -0
  74. package/dist/ionic/p-872ad61b.entry.js +4 -0
  75. package/dist/ionic/p-a4c1dd02.entry.js +4 -0
  76. package/dist/ionic/p-a6666b03.entry.js +4 -0
  77. package/dist/ionic/p-df9b3bc5.entry.js +4 -0
  78. package/dist/ionic/p-dfc8cf89.entry.js +4 -0
  79. package/dist/ionic/p-e702cb5c.entry.js +4 -0
  80. package/dist/types/components/back-button/back-button.d.ts +3 -0
  81. package/dist/types/components/breadcrumb/breadcrumb.d.ts +8 -0
  82. package/dist/types/components/button/button.d.ts +1 -0
  83. package/dist/types/components/card/card.d.ts +6 -0
  84. package/dist/types/components/fab-button/fab-button.d.ts +2 -0
  85. package/dist/types/components/item/item.d.ts +6 -0
  86. package/dist/types/components/item-option/item-option.d.ts +4 -0
  87. package/dist/types/components/menu-button/menu-button.d.ts +3 -0
  88. package/dist/types/components/router-link/router-link.d.ts +5 -0
  89. package/dist/types/components/segment-button/segment-button.d.ts +1 -0
  90. package/dist/types/components/select/select.d.ts +1 -0
  91. package/dist/types/components/tab-button/tab-button.d.ts +3 -0
  92. package/dist/types/utils/attribute-controller.d.ts +28 -6
  93. package/hydrate/index.js +359 -150
  94. package/hydrate/index.mjs +359 -150
  95. package/package.json +1 -1
  96. package/components/p-C0TdbIVo.js +0 -4
  97. package/components/p-CCFj0kgH.js +0 -4
  98. package/components/p-kKGBuIkf.js +0 -4
  99. package/dist/cjs/attribute-controller-0-lwbVEj.js +0 -131
  100. package/dist/esm/attribute-controller-ItNOXNp9.js +0 -128
  101. package/dist/ionic/p-013b9aba.entry.js +0 -4
  102. package/dist/ionic/p-1252621e.entry.js +0 -4
  103. package/dist/ionic/p-27960f65.entry.js +0 -4
  104. package/dist/ionic/p-43729675.entry.js +0 -4
  105. package/dist/ionic/p-84470714.entry.js +0 -4
  106. package/dist/ionic/p-8dQB1sG_.js +0 -4
  107. package/dist/ionic/p-9515f840.entry.js +0 -4
  108. package/dist/ionic/p-96d040b0.entry.js +0 -4
  109. package/dist/ionic/p-9d7e5a0b.entry.js +0 -4
  110. package/dist/ionic/p-a45caa30.entry.js +0 -4
  111. package/dist/ionic/p-b0faaae2.entry.js +0 -4
  112. package/dist/ionic/p-c56c23b6.entry.js +0 -4
  113. package/dist/ionic/p-c7ea2647.entry.js +0 -4
package/hydrate/index.mjs CHANGED
@@ -11939,6 +11939,215 @@ class Avatar {
11939
11939
  }; }
11940
11940
  }
11941
11941
 
11942
+ /**
11943
+ * Copies a set of attributes off the host element so they can be applied to an element
11944
+ * inside the shadow root, then keeps that copy in sync as the host attributes change.
11945
+ * Using `inheritAttributes` alone copies once at load, so anything written to the host
11946
+ * afterwards never reaches the element the assistive technology reads.
11947
+ *
11948
+ * Create the controller in `componentWillLoad`. It takes the initial copy and starts
11949
+ * watching right away, so `init()` is only needed to resume after a move.
11950
+ *
11951
+ * Two things to know before adopting it. Unless `moveFromHost` says otherwise, only the
11952
+ * initial copy removes the attributes from the host, so a value written after load sits
11953
+ * on the host as well as on the element it is applied to, which matters if the host has
11954
+ * a role of its own. And an attribute moved off the host can never be removed, only
11955
+ * overwritten, since removing it from the host doesn't fire a mutation.
11956
+ * An empty string works for `aria-label` and friends, but a token-valued attribute
11957
+ * has to be set to its default instead, so `aria-pressed="false"` rather than empty.
11958
+ *
11959
+ * @internal
11960
+ * @param el The host element to copy from and watch.
11961
+ * @param attributes The attributes to copy and watch.
11962
+ * @param onChange Called after `attributes` changes, so the component can re-render.
11963
+ * @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
11964
+ * attributes the component renders on its own `<Host>`, since a later change to one of
11965
+ * those is the component's own write, and for attributes that would put a second node in
11966
+ * the accessibility tree if the host kept a copy alongside the one we apply.
11967
+ * @param moveFromHost Called on load, after every write and on `refresh()` to decide whether
11968
+ * a value moves off the host. A rejected value stays on the host and is left out of
11969
+ * `attributes`. It can read component state, as long as the component calls `refresh()`
11970
+ * when that state changes.
11971
+ */
11972
+ const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = [], moveFromHost) => {
11973
+ let inherited = inheritAttributes$1(el, attributes);
11974
+ let observer;
11975
+ const staysOnHost = (name, value) => moveFromHost !== undefined && value != null && !moveFromHost(name, value);
11976
+ const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
11977
+ /**
11978
+ * The names still on the host, which is everything written after load. The initial
11979
+ * copy removes what it captures, so a missing attribute only counts as a removal
11980
+ * when its name is in here.
11981
+ */
11982
+ const hostWritten = new Set();
11983
+ const setPresence = (name, value) => {
11984
+ if (value === null) {
11985
+ hostWritten.delete(name);
11986
+ }
11987
+ else {
11988
+ hostWritten.add(name);
11989
+ }
11990
+ };
11991
+ const moveOffHost = (changed) => {
11992
+ if (moveFromHost === undefined) {
11993
+ return;
11994
+ }
11995
+ for (const [name, value] of Object.entries(changed)) {
11996
+ if (value != null && !staysOnHost(name, value)) {
11997
+ el.removeAttribute(name);
11998
+ // Without this, the missing attribute would read as a developer removal later.
11999
+ hostWritten.delete(name);
12000
+ }
12001
+ }
12002
+ };
12003
+ // The initial copy took everything off the host, so put back what has to stay there.
12004
+ for (const [name, value] of Object.entries(inherited)) {
12005
+ if (staysOnHost(name, value)) {
12006
+ el.setAttribute(name, value);
12007
+ hostWritten.add(name);
12008
+ }
12009
+ }
12010
+ /**
12011
+ * Nothing is watching while the host is out of the tree, since `disconnectedCallback`
12012
+ * calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
12013
+ * the host has to be re-read on the way back in.
12014
+ */
12015
+ const readMissedChanges = () => {
12016
+ const changed = {};
12017
+ for (const name of watchedAttributes) {
12018
+ const value = el.getAttribute(name);
12019
+ const wasOnHost = hostWritten.has(name);
12020
+ setPresence(name, value);
12021
+ /**
12022
+ * An attribute that was never written to the host is missing because the initial
12023
+ * copy took it, not because the developer cleared it.
12024
+ */
12025
+ if ((value === null && !wasOnHost) || value === inherited[name]) {
12026
+ continue;
12027
+ }
12028
+ changed[name] = value;
12029
+ }
12030
+ moveOffHost(changed);
12031
+ if (Object.keys(changed).length > 0) {
12032
+ inherited = { ...inherited, ...changed };
12033
+ onChange();
12034
+ }
12035
+ };
12036
+ const handleRecords = (mutations) => {
12037
+ const changed = {};
12038
+ for (const mutation of mutations) {
12039
+ const name = mutation.attributeName;
12040
+ // A removed attribute reads back as null, which clears it from the element the
12041
+ // values are spread onto.
12042
+ const value = el.getAttribute(name);
12043
+ setPresence(name, value);
12044
+ changed[name] = value;
12045
+ }
12046
+ moveOffHost(changed);
12047
+ // Drop the removals `moveOffHost` just queued, or they'd read back as the developer
12048
+ // clearing the attribute.
12049
+ observer?.takeRecords();
12050
+ inherited = { ...inherited, ...changed };
12051
+ onChange();
12052
+ };
12053
+ const init = () => {
12054
+ // There is no MutationObserver in SSR or the hydrate build.
12055
+ if (observer !== undefined || watchedAttributes.length === 0 || win$1 === undefined || !('MutationObserver' in win$1)) {
12056
+ return;
12057
+ }
12058
+ readMissedChanges();
12059
+ observer = new MutationObserver(handleRecords);
12060
+ observer.observe(el, { attributeFilter: watchedAttributes });
12061
+ };
12062
+ const destroy = () => {
12063
+ observer?.disconnect();
12064
+ observer = undefined;
12065
+ };
12066
+ const refresh = () => {
12067
+ if (moveFromHost === undefined) {
12068
+ return;
12069
+ }
12070
+ // A write made earlier in the same tick hasn't reached `inherited` yet, so take it in
12071
+ // first, or the loop below would act on the old value and drop the new one.
12072
+ if (observer !== undefined) {
12073
+ const pending = observer.takeRecords();
12074
+ if (pending.length > 0) {
12075
+ handleRecords(pending);
12076
+ }
12077
+ }
12078
+ else {
12079
+ readMissedChanges();
12080
+ }
12081
+ for (const [name, value] of Object.entries(inherited)) {
12082
+ if (value == null) {
12083
+ continue;
12084
+ }
12085
+ const onHost = el.hasAttribute(name);
12086
+ if (staysOnHost(name, value) && !onHost) {
12087
+ el.setAttribute(name, value);
12088
+ hostWritten.add(name);
12089
+ }
12090
+ else if (!staysOnHost(name, value) && onHost) {
12091
+ el.removeAttribute(name);
12092
+ hostWritten.delete(name);
12093
+ }
12094
+ }
12095
+ // Drop our own writes, or they'd read back as the developer's.
12096
+ observer?.takeRecords();
12097
+ };
12098
+ /**
12099
+ * Has to run after the initial copy, because that copy removes the attributes from the
12100
+ * host and an observer armed any earlier would read the removal as a developer clearing
12101
+ * them.
12102
+ */
12103
+ init();
12104
+ return {
12105
+ get attributes() {
12106
+ if (moveFromHost === undefined) {
12107
+ return inherited;
12108
+ }
12109
+ const moved = {};
12110
+ for (const [name, value] of Object.entries(inherited)) {
12111
+ if (!staysOnHost(name, value)) {
12112
+ moved[name] = value;
12113
+ }
12114
+ }
12115
+ return moved;
12116
+ },
12117
+ init,
12118
+ destroy,
12119
+ refresh,
12120
+ };
12121
+ };
12122
+ /**
12123
+ * The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
12124
+ * watches every ARIA attribute plus `role`.
12125
+ *
12126
+ * @internal
12127
+ * @param el The host element to copy from and watch.
12128
+ * @param onChange Called after the attributes change, so the component can re-render.
12129
+ * @param hostOwnedAttributes Attributes copied at load but not watched. See
12130
+ * `createAttributeController`.
12131
+ */
12132
+ const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
12133
+ return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
12134
+ };
12135
+ /**
12136
+ * Moves `tabindex` from the host to the native element in the shadow root, including later
12137
+ * writes, since a host with a `tabindex` is an extra tab stop with no name. A negative
12138
+ * `tabindex` stays on the host, where it already skips the shadow root and the focus
12139
+ * utilities expect to find it.
12140
+ *
12141
+ * @internal
12142
+ * @param el The host element to copy from and watch.
12143
+ * @param onChange Called after `tabindex` changes, so the component can re-render.
12144
+ * @param hasNativeElement Whether the component renders a native element to move `tabindex`
12145
+ * to. Call `refresh()` when the answer changes.
12146
+ */
12147
+ const createTabindexController = (el, onChange, hasNativeElement = () => true) => {
12148
+ return createAttributeController(el, ['tabindex'], onChange, [], (_, value) => hasNativeElement() && parseInt(value, 10) >= 0);
12149
+ };
12150
+
11942
12151
  const backButtonIosCss = () => `:host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-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:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #0054e9);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}`;
11943
12152
 
11944
12153
  const backButtonMdCss = () => `:host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-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:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}`;
@@ -11973,10 +12182,17 @@ class BackButton {
11973
12182
  }
11974
12183
  componentWillLoad() {
11975
12184
  this.inheritedAttributes = inheritAriaAttributes(this.el);
12185
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
11976
12186
  if (this.defaultHref === undefined) {
11977
12187
  this.defaultHref = config.get('backButtonDefaultHref');
11978
12188
  }
11979
12189
  }
12190
+ connectedCallback() {
12191
+ this.tabindexController?.init();
12192
+ }
12193
+ disconnectedCallback() {
12194
+ this.tabindexController?.destroy();
12195
+ }
11980
12196
  get backButtonIcon() {
11981
12197
  const icon = this.icon;
11982
12198
  if (icon != null) {
@@ -12010,7 +12226,8 @@ class BackButton {
12010
12226
  const showBackButton = defaultHref !== undefined;
12011
12227
  const mode = getIonMode$1(this);
12012
12228
  const ariaLabel = inheritedAttributes['aria-label'] || backButtonText || 'back';
12013
- return (hAsync(Host, { key: '5466624a10f1ab56f5469e6dc07080303880f2fe', onClick: this.onClick, class: createColorClasses$1(color, {
12229
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
12230
+ return (hAsync(Host, { key: '0b7d30b4421e69c01041819a242bb4d57ee08cdd', onClick: this.onClick, class: createColorClasses$1(color, {
12014
12231
  [mode]: true,
12015
12232
  button: true, // ion-buttons target .button
12016
12233
  'back-button-disabled': disabled,
@@ -12020,7 +12237,7 @@ class BackButton {
12020
12237
  'ion-activatable': true,
12021
12238
  'ion-focusable': true,
12022
12239
  'show-back-button': showBackButton,
12023
- }) }, hAsync("button", { key: '63bc75ef0ad7cc9fb79e58217a3314b20acd73e3', type: type, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }, hAsync("span", { key: '5d3eacbd11af2245c6e1151cab446a0d96559ad8', class: "button-inner" }, backButtonIcon && (hAsync("ion-icon", { key: '6439af0ae463764174e7d3207f02267811df666d', part: "icon", icon: backButtonIcon, "aria-hidden": "true", lazy: false, "flip-rtl": icon === undefined })), backButtonText && (hAsync("span", { key: '8ee89fb18dfdb5b75948a8b197ff4cdbc008742f', part: "text", "aria-hidden": "true", class: "button-text" }, backButtonText))), mode === 'md' && hAsync("ion-ripple-effect", { key: '63803a884998bc73bea5afe0b2a0a14e3fa4d6bf', type: this.rippleType }))));
12240
+ }) }, hAsync("button", { key: '20bf90c1b19af213eb7db6fb105423b1d5552cc7', type: type, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, hAsync("span", { key: '1472b6bac0ae85a040f8de0a505cc6479e96b672', class: "button-inner" }, backButtonIcon && (hAsync("ion-icon", { key: '223376e1501ca203b9f6d004707dd1d18b5fc076', part: "icon", icon: backButtonIcon, "aria-hidden": "true", lazy: false, "flip-rtl": icon === undefined })), backButtonText && (hAsync("span", { key: '0e94d0b6c930193ed3762946731cf9f4ae626b72', part: "text", "aria-hidden": "true", class: "button-text" }, backButtonText))), mode === 'md' && hAsync("ion-ripple-effect", { key: '7ef5b94fbbca517f333d1ae55198b373d843fec4', type: this.rippleType }))));
12024
12241
  }
12025
12242
  get el() { return getElement(this); }
12026
12243
  static get style() { return {
@@ -12188,6 +12405,21 @@ class Breadcrumb {
12188
12405
  }
12189
12406
  componentWillLoad() {
12190
12407
  this.inheritedAttributes = inheritAriaAttributes(this.el);
12408
+ // A breadcrumb without an `href` has no native link, so `tabindex` stays on the host.
12409
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
12410
+ }
12411
+ /**
12412
+ * Adding or removing `href` adds or removes the native link, so `tabindex` has to move
12413
+ * with it.
12414
+ */
12415
+ hrefChanged() {
12416
+ this.tabindexController?.refresh();
12417
+ }
12418
+ connectedCallback() {
12419
+ this.tabindexController?.init();
12420
+ }
12421
+ disconnectedCallback() {
12422
+ this.tabindexController?.destroy();
12191
12423
  }
12192
12424
  isClickable() {
12193
12425
  return this.href !== undefined;
@@ -12195,6 +12427,7 @@ class Breadcrumb {
12195
12427
  render() {
12196
12428
  const { color, active, collapsed, disabled, download, el, inheritedAttributes, last, routerAnimation, routerDirection, separator, showCollapsedIndicator, target, } = this;
12197
12429
  const clickable = this.isClickable();
12430
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
12198
12431
  const TagType = this.href === undefined ? 'span' : 'a';
12199
12432
  // Links can still be tabbed to when set to disabled if they have an href
12200
12433
  // in order to truly disable them we can keep it as an anchor but remove the href
@@ -12211,7 +12444,7 @@ class Breadcrumb {
12211
12444
  // to show the separator as long as it isn't also the last breadcrumb
12212
12445
  // otherwise if not collapsed use the value in separator
12213
12446
  const showSeparator = last ? false : collapsed ? (showCollapsedIndicator && !last ? true : false) : separator;
12214
- return (hAsync(Host, { key: '32ca61c83721dff52b5e97171ed449dce3584a55', onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation), "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12447
+ return (hAsync(Host, { key: '6f50e8b42045b81771ffd123a3cb708c603c1541', onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation), "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12215
12448
  [mode]: true,
12216
12449
  'breadcrumb-active': active,
12217
12450
  'breadcrumb-collapsed': collapsed,
@@ -12221,17 +12454,22 @@ class Breadcrumb {
12221
12454
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
12222
12455
  'ion-activatable': clickable,
12223
12456
  'ion-focusable': clickable,
12224
- }) }, hAsync(TagType, { key: '479feb845f4a6d8009d5422b33eb423730b9722b', ...attrs, class: "breadcrumb-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("slot", { key: '3c5dcaeb0d258235d1b7707868026ff1d1404099', name: "start" }), hAsync("slot", { key: 'f1cfb934443cd97dc220882c5e3596ea879d66cf' }), hAsync("slot", { key: '539710121b5b1f3ee8d4c24a9651b67c2ae08add', name: "end" })), showCollapsedIndicator && (hAsync("button", { key: 'ed53a95ccd89022c8b7bee0658a221ec62a5c73b', part: "collapsed-indicator", "aria-label": "Show more breadcrumbs", onClick: () => this.collapsedIndicatorClick(), ref: (collapsedEl) => (this.collapsedRef = collapsedEl), class: {
12457
+ }) }, hAsync(TagType, { key: '4ac14d323e1d35e987862aa9b875d30be2310a71', ...attrs, class: "breadcrumb-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes, ...tabindexAttributes }, hAsync("slot", { key: 'a3598ed5bc506acc4f5bef525cd2404b00228620', name: "start" }), hAsync("slot", { key: '0696a0ffd1513c1d93deb269fdf600e9ef434f17' }), hAsync("slot", { key: 'bf315bd49788604c27b8ba354796250b56f2fcb0', name: "end" })), showCollapsedIndicator && (hAsync("button", { key: 'b130482d7ed16e3c452fa779b0696d1f8687e379', part: "collapsed-indicator", "aria-label": "Show more breadcrumbs", onClick: () => this.collapsedIndicatorClick(), ref: (collapsedEl) => (this.collapsedRef = collapsedEl), class: {
12225
12458
  'breadcrumbs-collapsed-indicator': true,
12226
- } }, hAsync("ion-icon", { key: 'a849e1142a86f06f207cf11662fa2a560ab7fc6a', "aria-hidden": "true", icon: ellipsisHorizontal, lazy: false }))), showSeparator && (
12459
+ } }, hAsync("ion-icon", { key: 'd5094d69a6477b390afaa230f76011bef97f386f', "aria-hidden": "true", icon: ellipsisHorizontal, lazy: false }))), showSeparator && (
12227
12460
  /**
12228
12461
  * Separators should not be announced by narrators.
12229
12462
  * We add aria-hidden on the span so that this applies
12230
12463
  * to any custom separators too.
12231
12464
  */
12232
- hAsync("span", { key: 'fc3c741cb01fafef8b26046c7ee5b190efc69a7c', class: "breadcrumb-separator", part: "separator", "aria-hidden": "true" }, hAsync("slot", { key: '4871932ae1dae520767e0713e7cee2d11b0bba6d', name: "separator" }, mode === 'ios' ? (hAsync("ion-icon", { icon: chevronForwardOutline, lazy: false, "flip-rtl": true })) : (hAsync("span", null, "/")))))));
12465
+ hAsync("span", { key: '98421acb32aa73507ea1ab078555c20f4bdef6cd', class: "breadcrumb-separator", part: "separator", "aria-hidden": "true" }, hAsync("slot", { key: '8b37779f2003554631a923a8d7ce2436238d1b05', name: "separator" }, mode === 'ios' ? (hAsync("ion-icon", { icon: chevronForwardOutline, lazy: false, "flip-rtl": true })) : (hAsync("span", null, "/")))))));
12233
12466
  }
12234
12467
  get el() { return getElement(this); }
12468
+ static get watchers() { return {
12469
+ "href": [{
12470
+ "hrefChanged": 0
12471
+ }]
12472
+ }; }
12235
12473
  static get style() { return {
12236
12474
  ios: breadcrumbIosCss(),
12237
12475
  md: breadcrumbMdCss()
@@ -12413,128 +12651,6 @@ class Breadcrumbs {
12413
12651
  }; }
12414
12652
  }
12415
12653
 
12416
- /**
12417
- * Copies a set of attributes off the host element so they can be applied to an element
12418
- * inside the shadow root, then keeps that copy in sync as the host attributes change.
12419
- * Using `inheritAttributes` alone copies once at load, so anything written to the host
12420
- * afterwards never reaches the element the assistive technology reads.
12421
- *
12422
- * Create the controller in `componentWillLoad`. It takes the initial copy and starts
12423
- * watching right away, so `init()` is only needed to resume after a move.
12424
- *
12425
- * Two things to know before adopting it. Only the initial copy removes the attributes
12426
- * from the host, so a value written after load sits on the host as well as on the
12427
- * element it is applied to, which matters if the host has a role of its own. And an
12428
- * attribute from the initial markup can never be removed, only overwritten, since the
12429
- * copy already took it off the host and a `removeAttribute` there fires no mutation.
12430
- * An empty string works for `aria-label` and friends, but a token-valued attribute
12431
- * has to be set to its default instead, so `aria-pressed="false"` rather than empty.
12432
- *
12433
- * @internal
12434
- * @param el The host element to copy from and watch.
12435
- * @param attributes The attributes to copy and watch.
12436
- * @param onChange Called after `attributes` changes, so the component can re-render.
12437
- * @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
12438
- * attributes the component renders on its own `<Host>`, since a later change to one of
12439
- * those is the component's own write, and for attributes that would put a second node in
12440
- * the accessibility tree if the host kept a copy alongside the one we apply.
12441
- */
12442
- const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = []) => {
12443
- let inherited = inheritAttributes$1(el, attributes);
12444
- let observer;
12445
- const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
12446
- /**
12447
- * The names still on the host, which is everything written after load. The initial
12448
- * copy removes what it captures, so a missing attribute only counts as a removal
12449
- * when its name is in here.
12450
- */
12451
- const hostWritten = new Set();
12452
- const setPresence = (name, value) => {
12453
- if (value === null) {
12454
- hostWritten.delete(name);
12455
- }
12456
- else {
12457
- hostWritten.add(name);
12458
- }
12459
- };
12460
- /**
12461
- * Nothing is watching while the host is out of the tree, since `disconnectedCallback`
12462
- * calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
12463
- * the host has to be re-read on the way back in.
12464
- */
12465
- const readMissedChanges = () => {
12466
- const changed = {};
12467
- for (const name of watchedAttributes) {
12468
- const value = el.getAttribute(name);
12469
- const wasOnHost = hostWritten.has(name);
12470
- setPresence(name, value);
12471
- /**
12472
- * An attribute that was never written to the host is missing because the initial
12473
- * copy took it, not because the developer cleared it.
12474
- */
12475
- if ((value === null && !wasOnHost) || value === inherited[name]) {
12476
- continue;
12477
- }
12478
- changed[name] = value;
12479
- }
12480
- if (Object.keys(changed).length > 0) {
12481
- inherited = { ...inherited, ...changed };
12482
- onChange();
12483
- }
12484
- };
12485
- const init = () => {
12486
- // There is no MutationObserver in SSR or the hydrate build.
12487
- if (observer !== undefined || watchedAttributes.length === 0 || win$1 === undefined || !('MutationObserver' in win$1)) {
12488
- return;
12489
- }
12490
- readMissedChanges();
12491
- observer = new MutationObserver((mutations) => {
12492
- const changed = {};
12493
- for (const mutation of mutations) {
12494
- const name = mutation.attributeName;
12495
- // A removed attribute reads back as null, which clears it from the element the
12496
- // values are spread onto.
12497
- const value = el.getAttribute(name);
12498
- setPresence(name, value);
12499
- changed[name] = value;
12500
- }
12501
- inherited = { ...inherited, ...changed };
12502
- onChange();
12503
- });
12504
- observer.observe(el, { attributeFilter: watchedAttributes });
12505
- };
12506
- const destroy = () => {
12507
- observer?.disconnect();
12508
- observer = undefined;
12509
- };
12510
- /**
12511
- * Has to run after the initial copy, because that copy removes the attributes from the
12512
- * host and an observer armed any earlier would read the removal as a developer clearing
12513
- * them.
12514
- */
12515
- init();
12516
- return {
12517
- get attributes() {
12518
- return inherited;
12519
- },
12520
- init,
12521
- destroy,
12522
- };
12523
- };
12524
- /**
12525
- * The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
12526
- * watches every ARIA attribute plus `role`.
12527
- *
12528
- * @internal
12529
- * @param el The host element to copy from and watch.
12530
- * @param onChange Called after the attributes change, so the component can re-render.
12531
- * @param hostOwnedAttributes Attributes copied at load but not watched. See
12532
- * `createAttributeController`.
12533
- */
12534
- const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
12535
- return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
12536
- };
12537
-
12538
12654
  const buttonIosCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;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-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #0054e9);--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.125em, 60px);min-height:clamp(30px, 2.125em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 1.125em, 43.02px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(12.1394px, 1.308125em, 40.1856px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 0.9em, 43.056px)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}`;
12539
12655
 
12540
12656
  const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;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-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1), background-color 15ms linear, color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-strong){font-weight:bold}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.86em, 60px);min-height:clamp(30px, 2.86em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.104px, 1.6em, 43.008px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(13.002px, 1.23125em, 40.385px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.008px, 1.4em, 43.008px)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-background, var(--color));color:var(--ion-toolbar-color, var(--background), var(--ion-color-primary-contrast, #fff))}`;
@@ -12663,12 +12779,15 @@ class Button {
12663
12779
  * two elements in the accessibility tree.
12664
12780
  */
12665
12781
  this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled', 'role']);
12782
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
12666
12783
  }
12667
12784
  connectedCallback() {
12668
12785
  this.ariaController?.init();
12786
+ this.tabindexController?.init();
12669
12787
  }
12670
12788
  disconnectedCallback() {
12671
12789
  this.ariaController?.destroy();
12790
+ this.tabindexController?.destroy();
12672
12791
  }
12673
12792
  get hasIconOnly() {
12674
12793
  return !!this.el.querySelector('[slot="icon-only"]');
@@ -12744,7 +12863,10 @@ class Button {
12744
12863
  render() {
12745
12864
  const mode = getIonMode$1(this);
12746
12865
  const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong } = this;
12747
- const inheritedAttributes = this.ariaController?.attributes ?? {};
12866
+ const inheritedAttributes = {
12867
+ ...this.ariaController?.attributes,
12868
+ ...this.tabindexController?.attributes,
12869
+ };
12748
12870
  const finalSize = size === undefined && this.inItem ? 'small' : size;
12749
12871
  const TagType = href === undefined ? 'button' : 'a';
12750
12872
  const attrs = TagType === 'button'
@@ -12769,7 +12891,7 @@ class Button {
12769
12891
  {
12770
12892
  type !== 'button' && this.renderHiddenButton();
12771
12893
  }
12772
- return (hAsync(Host, { key: 'fd42d1a5836c148cddd6c474c130ce4bb36286ea', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12894
+ return (hAsync(Host, { key: '9676cd8eb88ff0ff0582eeaa8b87ed4525a4dbee', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
12773
12895
  [mode]: true,
12774
12896
  [buttonType]: true,
12775
12897
  [`${buttonType}-${expand}`]: expand !== undefined,
@@ -12784,7 +12906,7 @@ class Button {
12784
12906
  'button-disabled': disabled,
12785
12907
  'ion-activatable': true,
12786
12908
  'ion-focusable': true,
12787
- }) }, hAsync(TagType, { key: '97dbf689ea912aed38182dbe0097a2bf5b768816', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("span", { key: '0f1ff4c667e95a8e3dc787fee43fe529b95477b7', class: "button-inner" }, hAsync("slot", { key: 'fc1e8b8080d02828c392e9edd6a70e0255435f82', name: "icon-only", onSlotchange: this.slotChanged }), hAsync("slot", { key: 'c1ece4c0d935f4d023d38fee4cf529dd4123d487', name: "start" }), hAsync("slot", { key: '970db0ee1e3633bc9cbff52eca446e4891ff6851' }), hAsync("slot", { key: 'ef8d7d894f01dbe881f381b985620c2a482e55fe', name: "end" })), mode === 'md' && hAsync("ion-ripple-effect", { key: 'fea5e49a54b0efd07b1bd35d9fd5d2d862a2bac1', type: this.rippleType }))));
12909
+ }) }, hAsync(TagType, { key: '42609eab7e854c1e1ddf678c7dc83c7ec81e560e', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("span", { key: 'a212acc720c9312b3ac35345333df7a7175ace92', class: "button-inner" }, hAsync("slot", { key: '05986b525272c768a37c274748f15aeb2fce313e', name: "icon-only", onSlotchange: this.slotChanged }), hAsync("slot", { key: '4b6951f7b201c19714e97e2075f517f88642a169', name: "start" }), hAsync("slot", { key: 'fa2d5ca4551a14ebfafe5399683e239566571398' }), hAsync("slot", { key: 'ca8edc225165824f535177b99bb39adc1fea5fd2', name: "end" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '01c38cc6c230bb35861bbcc1472f4a2f18522e93', type: this.rippleType }))));
12788
12910
  }
12789
12911
  get el() { return getElement(this); }
12790
12912
  static get watchers() { return {
@@ -12905,12 +13027,23 @@ class Card {
12905
13027
  * the card host renders no role of its own, so nothing reads the leftover copy.
12906
13028
  */
12907
13029
  this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
13030
+ // A card that isn't clickable has no native button or link, so `tabindex` stays on the host.
13031
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
13032
+ }
13033
+ /**
13034
+ * Changing `href` or `button` adds or removes the native element, so `tabindex` has to
13035
+ * move with it.
13036
+ */
13037
+ clickableChanged() {
13038
+ this.tabindexController?.refresh();
12908
13039
  }
12909
13040
  connectedCallback() {
12910
13041
  this.ariaController?.init();
13042
+ this.tabindexController?.init();
12911
13043
  }
12912
13044
  disconnectedCallback() {
12913
13045
  this.ariaController?.destroy();
13046
+ this.tabindexController?.destroy();
12914
13047
  }
12915
13048
  isClickable() {
12916
13049
  return this.href !== undefined || this.button;
@@ -12922,6 +13055,7 @@ class Card {
12922
13055
  }
12923
13056
  const { href, routerAnimation, routerDirection } = this;
12924
13057
  const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
13058
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
12925
13059
  const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
12926
13060
  const attrs = TagType === 'button'
12927
13061
  ? { type: this.type }
@@ -12931,17 +13065,25 @@ class Card {
12931
13065
  rel: this.rel,
12932
13066
  target: this.target,
12933
13067
  };
12934
- return (hAsync(TagType, { ...attrs, ...inheritedAriaAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, hAsync("slot", null), clickable && mode === 'md' && hAsync("ion-ripple-effect", null)));
13068
+ return (hAsync(TagType, { ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, hAsync("slot", null), clickable && mode === 'md' && hAsync("ion-ripple-effect", null)));
12935
13069
  }
12936
13070
  render() {
12937
13071
  const mode = getIonMode$1(this);
12938
- return (hAsync(Host, { key: '104412c26f53cce36432c3bb4d9e38bbe00c5816', class: createColorClasses$1(this.color, {
13072
+ return (hAsync(Host, { key: 'a50cd4e11f563acefeadc4c8f67536276593384a', class: createColorClasses$1(this.color, {
12939
13073
  [mode]: true,
12940
13074
  'card-disabled': this.disabled,
12941
13075
  'ion-activatable': this.isClickable(),
12942
13076
  }) }, this.renderCard(mode)));
12943
13077
  }
12944
13078
  get el() { return getElement(this); }
13079
+ static get watchers() { return {
13080
+ "href": [{
13081
+ "clickableChanged": 0
13082
+ }],
13083
+ "button": [{
13084
+ "clickableChanged": 0
13085
+ }]
13086
+ }; }
12945
13087
  static get style() { return {
12946
13088
  ios: cardIosCss(),
12947
13089
  md: cardMdCss()
@@ -18944,6 +19086,10 @@ class FabButton {
18944
19086
  }
18945
19087
  connectedCallback() {
18946
19088
  this.fab = this.el.closest('ion-fab');
19089
+ this.tabindexController?.init();
19090
+ }
19091
+ disconnectedCallback() {
19092
+ this.tabindexController?.destroy();
18947
19093
  }
18948
19094
  /**
18949
19095
  * The native button rendered inside `ion-fab-button` is in the Shadow DOM and
@@ -19003,11 +19149,13 @@ class FabButton {
19003
19149
  }
19004
19150
  componentWillLoad() {
19005
19151
  this.inheritedAttributes = inheritAriaAttributes(this.el);
19152
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
19006
19153
  }
19007
19154
  render() {
19008
19155
  const { el, disabled, color, href, activated, show, translucent, size, inheritedAttributes, type } = this;
19009
19156
  const inList = hostContext('ion-fab-list', el);
19010
19157
  const mode = getIonMode$1(this);
19158
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
19011
19159
  const TagType = href === undefined ? 'button' : 'a';
19012
19160
  const attrs = TagType === 'button'
19013
19161
  ? { type }
@@ -19024,7 +19172,7 @@ class FabButton {
19024
19172
  if (type !== 'button') {
19025
19173
  this.renderHiddenButton();
19026
19174
  }
19027
- return (hAsync(Host, { key: '89e8f2564f12f8c1cd8509a40359202347948846', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
19175
+ return (hAsync(Host, { key: '95594de6a6509d29799ba4f5b54a14632bca1c83', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
19028
19176
  [mode]: true,
19029
19177
  'fab-button-in-list': inList,
19030
19178
  'fab-button-translucent-in-list': inList && translucent,
@@ -19035,7 +19183,7 @@ class FabButton {
19035
19183
  'ion-activatable': true,
19036
19184
  'ion-focusable': true,
19037
19185
  [`fab-button-${size}`]: size !== undefined,
19038
- }) }, hAsync(TagType, { key: '9e2fd462316e1aec50f53fa1b7ad7f02fd399592', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => type === 'button' && openURL(href, ev, this.routerDirection, this.routerAnimation), ...inheritedAttributes }, hAsync("ion-icon", { key: 'c3bdb8614eb249297afc963810066658dc85efd6', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), hAsync("span", { key: 'a6a505b24d21cc716d2e3351ad4c380b95c768d7', class: "button-inner" }, hAsync("slot", { key: 'f44fc1e95533438ee3adc8cc5bdd9e1e85849fd6' })), mode === 'md' && hAsync("ion-ripple-effect", { key: 'b7c7dc7fceb0bb5613239608225f040010b7b2bd' }))));
19186
+ }) }, hAsync(TagType, { key: '0f9dd1984d646dc3784a1c701db068e48c9155e3', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, onClick: (ev) => type === 'button' && openURL(href, ev, this.routerDirection, this.routerAnimation), ...inheritedAttributes, ...tabindexAttributes }, hAsync("ion-icon", { key: '6ba981ded86087506dfc115124d4f69bb4c8d03c', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), hAsync("span", { key: '54efdabe98164f3575641c104f8a9e82ec2a42c7', class: "button-inner" }, hAsync("slot", { key: '23c0809c2371454c27cb8dd55d0c81bbf062a238' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '7aacc6325bbc990e496378eef0d5af2697b2edce' }))));
19039
19187
  }
19040
19188
  get el() { return getElement(this); }
19041
19189
  static get watchers() { return {
@@ -22292,6 +22440,14 @@ class Item {
22292
22440
  buttonChanged() {
22293
22441
  // Update the focusable option when the button option is changed
22294
22442
  this.focusable = this.isFocusable();
22443
+ this.tabindexController?.refresh();
22444
+ }
22445
+ /**
22446
+ * Adding or removing `href` adds or removes the native element, so `tabindex` has to move
22447
+ * with it. The same goes for `button` in `buttonChanged`.
22448
+ */
22449
+ hrefChanged() {
22450
+ this.tabindexController?.refresh();
22295
22451
  }
22296
22452
  labelColorChanged(ev) {
22297
22453
  const { color } = this;
@@ -22336,6 +22492,7 @@ class Item {
22336
22492
  this.updateInteractivityOnSlotChange();
22337
22493
  }
22338
22494
  this.ariaController?.init();
22495
+ this.tabindexController?.init();
22339
22496
  }
22340
22497
  componentWillLoad() {
22341
22498
  /**
@@ -22345,6 +22502,8 @@ class Item {
22345
22502
  * reads it twice.
22346
22503
  */
22347
22504
  this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
22505
+ // An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
22506
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(), () => this.isClickable());
22348
22507
  }
22349
22508
  componentDidLoad() {
22350
22509
  raf(() => {
@@ -22362,6 +22521,7 @@ class Item {
22362
22521
  this.indicatorControlObserver = undefined;
22363
22522
  }
22364
22523
  this.ariaController?.destroy();
22524
+ this.tabindexController?.destroy();
22365
22525
  }
22366
22526
  totalNestedInputs() {
22367
22527
  // The following elements have a clickable cover that is relative to the entire item
@@ -22465,6 +22625,7 @@ class Item {
22465
22625
  const clickable = this.isClickable();
22466
22626
  const canActivate = this.canActivate();
22467
22627
  const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
22628
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
22468
22629
  const attrs = TagType === 'button'
22469
22630
  ? { type: this.type }
22470
22631
  : {
@@ -22535,7 +22696,7 @@ class Item {
22535
22696
  * multi-input item, and in a clickable item, which is a second tab stop.
22536
22697
  */
22537
22698
  const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
22538
- return (hAsync(Host, { key: 'dedd4fbc4f9e4db557c6f8bd91299778af9aba1c', "aria-disabled": ariaDisabled, class: {
22699
+ return (hAsync(Host, { key: 'b9de79c9d6fbe11a19c8e507d1c34af9f9068cfa', "aria-disabled": ariaDisabled, class: {
22539
22700
  ...childStyles,
22540
22701
  ...labelColorStyles,
22541
22702
  ...createColorClasses$1(this.color, {
@@ -22552,12 +22713,15 @@ class Item {
22552
22713
  'ion-focusable': this.focusable,
22553
22714
  'item-rtl': isRTL$1(el),
22554
22715
  }),
22555
- }, role: inList ? 'listitem' : null }, hAsync(TagType, { key: '949000f555bbc8b76a227d84a2442defc3577a4e', ...attrs, ...inheritedAriaAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, hAsync("slot", { key: '9fde070c0f830cfed9c7e25ea4d1f1d7ab710d07', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), hAsync("div", { key: 'd7ab19b4d7e5d4a7fec2d66e1cb865ff30c609f0', class: "item-inner", part: "inner" }, hAsync("div", { key: 'fdf3f306b98ab6af536e320341985fb34d50ef35', class: "input-wrapper", part: "container" }, hAsync("slot", { key: '06ecb3817c2bdf171f806e2b3e8701d3eb52897e', onSlotchange: this.updateInteractivityOnSlotChange })), hAsync("slot", { key: '7e401db776cd19b0399004e77920b23e526c551a', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (hAsync("ion-icon", { key: '1dac0a6d5a1ce811731fd5b81b92440de8725989', icon: detailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": detailIcon === chevronForward }))), canActivate && mode === 'md' && hAsync("ion-ripple-effect", { key: '7a782fa9c7e74e600191c41c7dd90a4a499de64e' }))));
22716
+ }, role: inList ? 'listitem' : null }, hAsync(TagType, { key: 'c52faccd0d44784e300e55c90b4456c491513c3c', ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, hAsync("slot", { key: '11cc95e796b494cf87db7b810846cb2c18186577', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), hAsync("div", { key: '6c94a9dd570f4e6e65924fdde6bcbb840c9b424d', class: "item-inner", part: "inner" }, hAsync("div", { key: '06c490d6f3e15fa811c72d5cd2b7936f99dd8430', class: "input-wrapper", part: "container" }, hAsync("slot", { key: '4487a6cf30f3b26455c96726733f57b1dbcab694', onSlotchange: this.updateInteractivityOnSlotChange })), hAsync("slot", { key: '16d6e70fa22f43b11bc63304dae9900f4a41b703', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (hAsync("ion-icon", { key: 'b24443f5753b67f9021b8127cebf47d329e0b03d', icon: detailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": detailIcon === chevronForward }))), canActivate && mode === 'md' && hAsync("ion-ripple-effect", { key: 'a9b081a6ebe870d057b775cfae2e7a4de6679155' }))));
22556
22717
  }
22557
22718
  get el() { return getElement(this); }
22558
22719
  static get watchers() { return {
22559
22720
  "button": [{
22560
22721
  "buttonChanged": 0
22722
+ }],
22723
+ "href": [{
22724
+ "hrefChanged": 0
22561
22725
  }]
22562
22726
  }; }
22563
22727
  static get style() { return {
@@ -22715,8 +22879,18 @@ class ItemOption {
22715
22879
  }
22716
22880
  };
22717
22881
  }
22882
+ componentWillLoad() {
22883
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
22884
+ }
22885
+ connectedCallback() {
22886
+ this.tabindexController?.init();
22887
+ }
22888
+ disconnectedCallback() {
22889
+ this.tabindexController?.destroy();
22890
+ }
22718
22891
  render() {
22719
22892
  const { disabled, expandable, href } = this;
22893
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
22720
22894
  const TagType = href === undefined ? 'button' : 'a';
22721
22895
  const mode = getIonMode$1(this);
22722
22896
  const attrs = TagType === 'button'
@@ -22726,12 +22900,12 @@ class ItemOption {
22726
22900
  href: this.href,
22727
22901
  target: this.target,
22728
22902
  };
22729
- return (hAsync(Host, { key: 'a10d36e60d61865141c57c03a114e4845b400a55', onClick: this.onClick, class: createColorClasses$1(this.color, {
22903
+ return (hAsync(Host, { key: 'b9d323be73e0ac6408aa56a05eeb67076e35daf8', onClick: this.onClick, class: createColorClasses$1(this.color, {
22730
22904
  [mode]: true,
22731
22905
  'item-option-disabled': disabled,
22732
22906
  'item-option-expandable': expandable,
22733
22907
  'ion-activatable': true,
22734
- }) }, hAsync(TagType, { key: '5cc49ef73318213f6202d1d0f460f629ea65f17f', ...attrs, class: "button-native", part: "native", disabled: disabled }, hAsync("span", { key: '0643b16660b4ca00b0f3b4dbe2739e9ce076abea', class: "button-inner", part: "inner" }, hAsync("slot", { key: '8778d6d09aa9e0db278ce00c5456a1acfe82c15f', name: "top" }), hAsync("div", { key: '4fc849494c8cb2380015161e096b5c61cf517d90', class: "horizontal-wrapper", part: "container" }, hAsync("slot", { key: '9d0c0a5a63d8ec636df9c85d48bbdb39fb63af5e', name: "start" }), hAsync("slot", { key: 'a40561497c7e7d73173edd24ed335230e6eebb2b', name: "icon-only" }), hAsync("slot", { key: 'b94f2a4aa5bf4a1104497ced1920d6ee43d33659' }), hAsync("slot", { key: '91713dbb3e6a617c00f950857f2ed5e5ffceaa9a', name: "end" })), hAsync("slot", { key: 'f5af33c3bfb50fc629a06e1120bba55da07b2afb', name: "bottom" })), mode === 'md' && hAsync("ion-ripple-effect", { key: 'fc56e1644ef9c5b2e1e66683465a7fd09c05215c' }))));
22908
+ }) }, hAsync(TagType, { key: '6a59ebaa090613f42fca1fe51eff7863a69526ac', ...attrs, ...tabindexAttributes, class: "button-native", part: "native", disabled: disabled }, hAsync("span", { key: '9a5709f3b6d6bccdf0d60345f6171ca5439d54f4', class: "button-inner", part: "inner" }, hAsync("slot", { key: '9d76f6239d4c50cb785142a89bba26702a79c1f8', name: "top" }), hAsync("div", { key: 'b2aecda5dbfa5e3279d49b6dab6cb14c0b5df697', class: "horizontal-wrapper", part: "container" }, hAsync("slot", { key: '40d56d38d7a73a55f5ea4f6cdd6bc62dcfaa8dae', name: "start" }), hAsync("slot", { key: 'e531ca665546752bde34525cc6630a5ea2ac2575', name: "icon-only" }), hAsync("slot", { key: '2b7a78f6a4776eeb0720f79a81d075f75c63f4ff' }), hAsync("slot", { key: 'b296120a461d3b330ec05a97524b8ce5d3250a07', name: "end" })), hAsync("slot", { key: '5ebdf7af5acb29cc1b728f812d7f0c4d952512cc', name: "bottom" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '538f3e7d90a17ddbcc72ad227a0711573d3f7aac' }))));
22735
22909
  }
22736
22910
  get el() { return getElement(this); }
22737
22911
  static get style() { return {
@@ -24940,6 +25114,13 @@ class MenuButton {
24940
25114
  }
24941
25115
  componentWillLoad() {
24942
25116
  this.inheritedAttributes = inheritAriaAttributes(this.el);
25117
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
25118
+ }
25119
+ connectedCallback() {
25120
+ this.tabindexController?.init();
25121
+ }
25122
+ disconnectedCallback() {
25123
+ this.tabindexController?.destroy();
24943
25124
  }
24944
25125
  componentDidLoad() {
24945
25126
  this.visibilityChanged();
@@ -24949,6 +25130,7 @@ class MenuButton {
24949
25130
  }
24950
25131
  render() {
24951
25132
  const { color, disabled, inheritedAttributes } = this;
25133
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
24952
25134
  const mode = getIonMode$1(this);
24953
25135
  const menuIcon = config.get('menuIcon', mode === 'ios' ? menuOutline : menuSharp);
24954
25136
  const hidden = this.autoHide && !this.visible;
@@ -24956,7 +25138,7 @@ class MenuButton {
24956
25138
  type: this.type,
24957
25139
  };
24958
25140
  const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
24959
- return (hAsync(Host, { key: 'b8869377822b082c6c4d3f16135b50b733eabf65', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
25141
+ return (hAsync(Host, { key: 'bccc30d2a1e67e484f493211f950391c82f28b00', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses$1(color, {
24960
25142
  [mode]: true,
24961
25143
  button: true, // ion-buttons target .button
24962
25144
  'menu-button-hidden': hidden,
@@ -24965,7 +25147,7 @@ class MenuButton {
24965
25147
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
24966
25148
  'ion-activatable': true,
24967
25149
  'ion-focusable': true,
24968
- }) }, hAsync("button", { key: '48fc0a7011414b60dd7d5136f247e937ae4bb8c8', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }, hAsync("span", { key: '8c712f28c5afd345e403a9afc525931112852708', class: "button-inner" }, hAsync("slot", { key: 'dd872325e42baf435188478c8d1cfc416075089d' }, hAsync("ion-icon", { key: 'a4f02bdb715b07792c17e12c7837873d70171f88', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && hAsync("ion-ripple-effect", { key: '564e2a8a804e14d1135502f7b17d8b7b9862e81b', type: "unbounded" }))));
25150
+ }) }, hAsync("button", { key: 'c2479290c5fee434c12c75fe47b2a10c58908bcb', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, hAsync("span", { key: 'ab2a5aa0aced1e551f5571dbfd3dabe8b3558370', class: "button-inner" }, hAsync("slot", { key: '7e7f827910287e11ffe716639c069e977df64d6a' }, hAsync("ion-icon", { key: 'ec4677e9b71d4b2167c64aebef269a58994262d1', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && hAsync("ion-ripple-effect", { key: '5b88e62b6cb4530f7b63dde0352cb0b7ef73cbff', type: "unbounded" }))));
24969
25151
  }
24970
25152
  get el() { return getElement(this); }
24971
25153
  static get style() { return {
@@ -36843,18 +37025,29 @@ class RouterLink {
36843
37025
  openURL(this.href, ev, this.routerDirection, this.routerAnimation);
36844
37026
  };
36845
37027
  }
37028
+ componentWillLoad() {
37029
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
37030
+ }
37031
+ connectedCallback() {
37032
+ this.tabindexController?.init();
37033
+ }
37034
+ disconnectedCallback() {
37035
+ this.tabindexController?.destroy();
37036
+ }
36846
37037
  render() {
36847
37038
  const mode = getIonMode$1(this);
37039
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
36848
37040
  const attrs = {
36849
37041
  href: this.href,
36850
37042
  rel: this.rel,
36851
37043
  target: this.target,
36852
37044
  };
36853
- return (hAsync(Host, { key: '8aaf732d8f5cc4ced351e2b3164605c10bd90cad', onClick: this.onClick, class: createColorClasses$1(this.color, {
37045
+ return (hAsync(Host, { key: '51d8c563858a89c274f4b3778b937e545f4626df', onClick: this.onClick, class: createColorClasses$1(this.color, {
36854
37046
  [mode]: true,
36855
37047
  'ion-activatable': true,
36856
- }) }, hAsync("a", { key: '8f291ffbbce5b08dd10720d855eb020880bf1be1', ...attrs }, hAsync("slot", { key: '24dc388a49204011e1c1f0a1131c9a1b0a4ae4da' }))));
37048
+ }) }, hAsync("a", { key: '2f806b3036d648cf01ff69739c7f422c9a554c7d', ...attrs, ...tabindexAttributes }, hAsync("slot", { key: '43a2ee8b80574b120d80a8d65e8615921eb36afb' }))));
36857
37049
  }
37050
+ get el() { return getElement(this); }
36858
37051
  static get style() { return routerLinkCss(); }
36859
37052
  static get cmpMeta() { return {
36860
37053
  "$flags$": 265,
@@ -38333,6 +38526,7 @@ class SegmentButton {
38333
38526
  this.updateState();
38334
38527
  }
38335
38528
  connectedCallback() {
38529
+ this.tabindexController?.init();
38336
38530
  const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
38337
38531
  if (segmentEl) {
38338
38532
  this.updateState();
@@ -38341,6 +38535,7 @@ class SegmentButton {
38341
38535
  }
38342
38536
  }
38343
38537
  disconnectedCallback() {
38538
+ this.tabindexController?.destroy();
38344
38539
  const segmentEl = this.segmentEl;
38345
38540
  if (segmentEl) {
38346
38541
  removeEventListener(segmentEl, 'ionSelect', this.updateState);
@@ -38352,6 +38547,7 @@ class SegmentButton {
38352
38547
  this.inheritedAttributes = {
38353
38548
  ...inheritAttributes$1(this.el, ['aria-label']),
38354
38549
  };
38550
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
38355
38551
  // Return if there is no contentId defined
38356
38552
  if (!this.contentId)
38357
38553
  return;
@@ -38397,8 +38593,9 @@ class SegmentButton {
38397
38593
  render() {
38398
38594
  const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
38399
38595
  const mode = getIonMode$1(this);
38596
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
38400
38597
  const hasSegmentColor = () => segmentEl?.color !== undefined;
38401
- return (hAsync(Host, { key: 'd8acc71d87e26b32f20b2d0f9a6acc9f0dab0dee', class: {
38598
+ return (hAsync(Host, { key: 'd0d37d00f921193edd3a3670363583d9ee1cfb39', class: {
38402
38599
  [mode]: true,
38403
38600
  'in-toolbar': hostContext('ion-toolbar', this.el),
38404
38601
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
@@ -38414,7 +38611,7 @@ class SegmentButton {
38414
38611
  'ion-activatable': true,
38415
38612
  'ion-activatable-instant': true,
38416
38613
  'ion-focusable': true,
38417
- } }, hAsync("button", { key: 'ce65da07b1a012bce353b3c6c24eecfbd4071d54', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled, ...this.inheritedAttributes }, hAsync("span", { key: '6c4b4dcd20e407e5dc31674bea23633d8a09187a', class: "button-inner" }, hAsync("slot", { key: '817145ae77a3c5ada88ab95723d881f1bde96b2a' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '054d7e5e2a13013914fac6bbde8efdb28d9b459e' })), hAsync("div", { key: 'c48074881a302510ad4752eeb9383222cd3a54cb', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: '7672a6b10ee18ad026b798fbd8207dc3cd5683f9', part: "indicator-background", class: "segment-button-indicator-background" }))));
38614
+ } }, hAsync("button", { key: '0927611d352e2ed4df5d2a72768d504f5d4c4baf', "aria-selected": checked ? 'true' : 'false', role: "tab", ref: (el) => (this.nativeEl = el), type: type, class: "button-native", part: "native", disabled: disabled, ...this.inheritedAttributes, ...tabindexAttributes }, hAsync("span", { key: '0fdf337f0ba7fa08143124091a580418f7b94a7c', class: "button-inner" }, hAsync("slot", { key: 'bce39283cdbe68cffbece870296fecff6f214345' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '2653c7c6d50bc00540d249ed98c6c6a5d93672d6' })), hAsync("div", { key: 'de0dbdd9f531158cc77ba04e78f4e96e32b6fb02', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, hAsync("div", { key: '2006cb914692ae1d5659828e36c502f9747adede', part: "indicator-background", class: "segment-button-indicator-background" }))));
38418
38615
  }
38419
38616
  get el() { return getElement(this); }
38420
38617
  static get watchers() { return {
@@ -38776,6 +38973,7 @@ class Select {
38776
38973
  }
38777
38974
  async connectedCallback() {
38778
38975
  const { el } = this;
38976
+ this.tabindexController?.init();
38779
38977
  this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
38780
38978
  this.startEndContainerController?.calculateContainerWidths();
38781
38979
  });
@@ -38795,6 +38993,7 @@ class Select {
38795
38993
  }
38796
38994
  componentWillLoad() {
38797
38995
  this.inheritedAttributes = inheritAttributes$1(this.el, ['aria-label']);
38996
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
38798
38997
  this.hintTextId = this.getHintTextId();
38799
38998
  }
38800
38999
  componentDidLoad() {
@@ -38811,6 +39010,7 @@ class Select {
38811
39010
  this.emitStyle();
38812
39011
  }
38813
39012
  disconnectedCallback() {
39013
+ this.tabindexController?.destroy();
38814
39014
  if (this.mutationO) {
38815
39015
  this.mutationO.disconnect();
38816
39016
  this.mutationO = undefined;
@@ -39401,7 +39601,8 @@ class Select {
39401
39601
  }
39402
39602
  renderListbox() {
39403
39603
  const { disabled, inputId, isExpanded, required } = this;
39404
- return (hAsync("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-required": `${required}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl) }));
39604
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
39605
+ return (hAsync("button", { disabled: disabled, id: inputId, "aria-label": this.ariaLabel, "aria-haspopup": "dialog", "aria-expanded": `${isExpanded}`, "aria-describedby": this.hintTextId, "aria-invalid": this.isInvalid ? 'true' : undefined, "aria-required": `${required}`, onFocus: this.onFocus, onBlur: this.onBlur, ref: (focusEl) => (this.focusEl = focusEl), ...tabindexAttributes }));
39405
39606
  }
39406
39607
  getHintTextId() {
39407
39608
  const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
@@ -39451,7 +39652,7 @@ class Select {
39451
39652
  const hasOutlineFill = mode === 'md' && fill === 'outline';
39452
39653
  renderHiddenInput(true, el, name, parseValue(value), disabled);
39453
39654
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
39454
- return (hAsync(Host, { key: 'c1949b8a58c5bde1cc7627d3b32c54bcb46a4752', onClick: this.onClick, class: createColorClasses$1(this.color, {
39655
+ return (hAsync(Host, { key: '33b9006ae4d0190621c3ec6241db4507ef08e891', onClick: this.onClick, class: createColorClasses$1(this.color, {
39455
39656
  [mode]: true,
39456
39657
  'in-item': inItem,
39457
39658
  'in-item-color': hostContext('ion-item.ion-color', el),
@@ -39469,7 +39670,7 @@ class Select {
39469
39670
  [`select-justify-${justify}`]: justifyEnabled,
39470
39671
  [`select-shape-${shape}`]: shape !== undefined,
39471
39672
  [`select-label-placement-${labelPlacement}`]: true,
39472
- }) }, hAsync("label", { key: 'af4521a3679d9e4e08511e205f53663d8d5b6701', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), hAsync("div", { key: '73e13f28ed4c2b0e9115f3d1b86934b84f8c5bc0', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, hAsync("slot", { key: 'ce88e5bbb15a4cde6a5f8580a35d7099e315e9e6', name: "start" })), hAsync("div", { key: 'd1557c3d0ff41f5070a27b719fbfaf18eafa9052', class: "select-control", part: "control" }, this.renderLabel(), hAsync("div", { key: 'bcd03ac6c6d72ab76a4344069d83c29a2cdaabf0', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), hAsync("div", { key: '9be05035c1efb5c332a0044c81e032215c81278b', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), hAsync("slot", { key: '551ab0cf3594805caaf14f36197f9cc56b9ee46a', name: "end" })), shouldRenderHighlight && hAsync("div", { key: 'dd500fb4ae7d91d1733fec521dac9baaef6654a0', class: "select-highlight" })), this.renderBottomContent()));
39673
+ }) }, hAsync("label", { key: 'c123702d69e5a7dece801b9765ce52777d4a376c', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), hAsync("div", { key: '9cbac0085afa03e9b5d777b028d7a837ddfc8212', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, hAsync("slot", { key: '179f1454e56c7dc50637b6149c6916a28fc2cf4a', name: "start" })), hAsync("div", { key: 'bb492a41a762d8fc4199561967f688284e4b6e1f', class: "select-control", part: "control" }, this.renderLabel(), hAsync("div", { key: 'e0f889c0f02e16fe1a47c4ddfeba7a262341a72d', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), hAsync("div", { key: 'bb5e5e117d786e02d6ac9d0514c5f54c240388ab', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), hAsync("slot", { key: '07df73fde0d7413e7d28af0d0b25a04593ea77dc', name: "end" })), shouldRenderHighlight && hAsync("div", { key: '753762d7c94c48d89e3c727fefbb5c9fdd981ad2', class: "select-highlight" })), this.renderBottomContent()));
39473
39674
  }
39474
39675
  get el() { return getElement(this); }
39475
39676
  static get watchers() { return {
@@ -40636,10 +40837,17 @@ class TabButton {
40636
40837
  this.inheritedAttributes = {
40637
40838
  ...inheritAttributes$1(this.el, ['aria-label']),
40638
40839
  };
40840
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate());
40639
40841
  if (this.layout === undefined) {
40640
40842
  this.layout = config.get('tabButtonLayout', 'icon-top');
40641
40843
  }
40642
40844
  }
40845
+ connectedCallback() {
40846
+ this.tabindexController?.init();
40847
+ }
40848
+ disconnectedCallback() {
40849
+ this.tabindexController?.destroy();
40850
+ }
40643
40851
  selectTab(ev) {
40644
40852
  if (this.tab !== undefined) {
40645
40853
  if (!this.disabled) {
@@ -40661,13 +40869,14 @@ class TabButton {
40661
40869
  render() {
40662
40870
  const { disabled, hasIcon, hasLabel, href, rel, target, layout, selected, tab, inheritedAttributes } = this;
40663
40871
  const mode = getIonMode$1(this);
40872
+ const tabindex = this.tabindexController?.attributes.tabindex;
40664
40873
  const attrs = {
40665
40874
  download: this.download,
40666
40875
  href,
40667
40876
  rel,
40668
40877
  target,
40669
40878
  };
40670
- return (hAsync(Host, { key: '45bb7ffa6d8764202adc2c5c393748d4003e86fe', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
40879
+ return (hAsync(Host, { key: '177c6c12cbee6e5e0b54375edb62d2a05b51b27b', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
40671
40880
  [mode]: true,
40672
40881
  'tab-selected': selected,
40673
40882
  'tab-disabled': disabled,
@@ -40679,7 +40888,7 @@ class TabButton {
40679
40888
  'ion-activatable': true,
40680
40889
  'ion-selectable': true,
40681
40890
  'ion-focusable': true,
40682
- } }, hAsync("a", { key: '78c416609a2b86a6e7c5f217ffd2a6b9f80a5103', ...attrs, class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined, ...inheritedAttributes }, hAsync("span", { key: '62934156439ffd0ab86674b9cf89d9cfa0d3589c', class: "button-inner" }, hAsync("slot", { key: '293ba8f5ef50373c4e6e492dcaa55b3d2aae8d2f' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '360b010afedcf17fc1f3ab6d192f0f8c7b1cf112', type: "unbounded" }))));
40891
+ } }, hAsync("a", { key: '16289c599d9be6f4c90ddded302c46aa905633e3', ...attrs, class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : tabindex, ...inheritedAttributes }, hAsync("span", { key: 'cef69478ddc3fc9144acab61cb8cc0df1d8ca711', class: "button-inner" }, hAsync("slot", { key: 'e276e619c8062c36f1de0d2a46abba750e8e58d7' })), mode === 'md' && hAsync("ion-ripple-effect", { key: '6f747fd5723d00a1aa034f8d6a97e752f5f3c1c6', type: "unbounded" }))));
40683
40892
  }
40684
40893
  get el() { return getElement(this); }
40685
40894
  static get style() { return {