@ionic/core 9.0.11-nightly.20261111 → 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
@@ -2,7 +2,7 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { Host, h, forceUpdate } from "@stencil/core";
5
- import { createAttributeController } from "../../utils/attribute-controller";
5
+ import { createAttributeController, createTabindexController } from "../../utils/attribute-controller";
6
6
  import { createColorClasses, openURL } from "../../utils/theme";
7
7
  import { getIonMode } from "../../global/ionic-global";
8
8
  /**
@@ -37,12 +37,23 @@ export class Card {
37
37
  * the card host renders no role of its own, so nothing reads the leftover copy.
38
38
  */
39
39
  this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(this));
40
+ // A card that isn't clickable has no native button or link, so `tabindex` stays on the host.
41
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this), () => this.isClickable());
42
+ }
43
+ /**
44
+ * Changing `href` or `button` adds or removes the native element, so `tabindex` has to
45
+ * move with it.
46
+ */
47
+ clickableChanged() {
48
+ this.tabindexController?.refresh();
40
49
  }
41
50
  connectedCallback() {
42
51
  this.ariaController?.init();
52
+ this.tabindexController?.init();
43
53
  }
44
54
  disconnectedCallback() {
45
55
  this.ariaController?.destroy();
56
+ this.tabindexController?.destroy();
46
57
  }
47
58
  isClickable() {
48
59
  return this.href !== undefined || this.button;
@@ -54,6 +65,7 @@ export class Card {
54
65
  }
55
66
  const { href, routerAnimation, routerDirection } = this;
56
67
  const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
68
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
57
69
  const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
58
70
  const attrs = TagType === 'button'
59
71
  ? { type: this.type }
@@ -63,11 +75,11 @@ export class Card {
63
75
  rel: this.rel,
64
76
  target: this.target,
65
77
  };
66
- return (h(TagType, { ...attrs, ...inheritedAriaAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, h("slot", null), clickable && mode === 'md' && h("ion-ripple-effect", null)));
78
+ return (h(TagType, { ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "card-native", part: "native", disabled: this.disabled, onClick: (ev) => openURL(href, ev, routerDirection, routerAnimation) }, h("slot", null), clickable && mode === 'md' && h("ion-ripple-effect", null)));
67
79
  }
68
80
  render() {
69
81
  const mode = getIonMode(this);
70
- return (h(Host, { key: '104412c26f53cce36432c3bb4d9e38bbe00c5816', class: createColorClasses(this.color, {
82
+ return (h(Host, { key: 'a50cd4e11f563acefeadc4c8f67536276593384a', class: createColorClasses(this.color, {
71
83
  [mode]: true,
72
84
  'card-disabled': this.disabled,
73
85
  'ion-activatable': this.isClickable(),
@@ -305,4 +317,13 @@ export class Card {
305
317
  };
306
318
  }
307
319
  static get elementRef() { return "el"; }
320
+ static get watchers() {
321
+ return [{
322
+ "propName": "href",
323
+ "methodName": "clickableChanged"
324
+ }, {
325
+ "propName": "button",
326
+ "methodName": "clickableChanged"
327
+ }];
328
+ }
308
329
  }
@@ -1,7 +1,8 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { Host, h } from "@stencil/core";
4
+ import { Host, forceUpdate, h } from "@stencil/core";
5
+ import { createTabindexController } from "../../utils/attribute-controller";
5
6
  import { inheritAriaAttributes, hasShadowDom } from "../../utils/helpers";
6
7
  import { printIonWarning } from "../../utils/logging/index";
7
8
  import { createColorClasses, hostContext, openURL } from "../../utils/theme";
@@ -76,6 +77,10 @@ export class FabButton {
76
77
  }
77
78
  connectedCallback() {
78
79
  this.fab = this.el.closest('ion-fab');
80
+ this.tabindexController?.init();
81
+ }
82
+ disconnectedCallback() {
83
+ this.tabindexController?.destroy();
79
84
  }
80
85
  /**
81
86
  * The native button rendered inside `ion-fab-button` is in the Shadow DOM and
@@ -135,11 +140,13 @@ export class FabButton {
135
140
  }
136
141
  componentWillLoad() {
137
142
  this.inheritedAttributes = inheritAriaAttributes(this.el);
143
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
138
144
  }
139
145
  render() {
140
146
  const { el, disabled, color, href, activated, show, translucent, size, inheritedAttributes, type } = this;
141
147
  const inList = hostContext('ion-fab-list', el);
142
148
  const mode = getIonMode(this);
149
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
143
150
  const TagType = href === undefined ? 'button' : 'a';
144
151
  const attrs = TagType === 'button'
145
152
  ? { type }
@@ -156,7 +163,7 @@ export class FabButton {
156
163
  if (type !== 'button') {
157
164
  this.renderHiddenButton();
158
165
  }
159
- return (h(Host, { key: '89e8f2564f12f8c1cd8509a40359202347948846', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
166
+ return (h(Host, { key: '95594de6a6509d29799ba4f5b54a14632bca1c83', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
160
167
  [mode]: true,
161
168
  'fab-button-in-list': inList,
162
169
  'fab-button-translucent-in-list': inList && translucent,
@@ -167,7 +174,7 @@ export class FabButton {
167
174
  'ion-activatable': true,
168
175
  'ion-focusable': true,
169
176
  [`fab-button-${size}`]: size !== undefined,
170
- }) }, h(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 }, h("ion-icon", { key: 'c3bdb8614eb249297afc963810066658dc85efd6', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: 'a6a505b24d21cc716d2e3351ad4c380b95c768d7', class: "button-inner" }, h("slot", { key: 'f44fc1e95533438ee3adc8cc5bdd9e1e85849fd6' })), mode === 'md' && h("ion-ripple-effect", { key: 'b7c7dc7fceb0bb5613239608225f040010b7b2bd' }))));
177
+ }) }, h(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 }, h("ion-icon", { key: '6ba981ded86087506dfc115124d4f69bb4c8d03c', "aria-hidden": "true", icon: this.closeIcon, part: "close-icon", class: "close-icon", lazy: false }), h("span", { key: '54efdabe98164f3575641c104f8a9e82ec2a42c7', class: "button-inner" }, h("slot", { key: '23c0809c2371454c27cb8dd55d0c81bbf062a238' })), mode === 'md' && h("ion-ripple-effect", { key: '7aacc6325bbc990e496378eef0d5af2697b2edce' }))));
171
178
  }
172
179
  static get is() { return "ion-fab-button"; }
173
180
  static get encapsulation() { return "shadow"; }
@@ -2,7 +2,7 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { Build, Host, forceUpdate, h } from "@stencil/core";
5
- import { createAttributeController } from "../../utils/attribute-controller";
5
+ import { createAttributeController, createTabindexController } from "../../utils/attribute-controller";
6
6
  import { raf } from "../../utils/helpers";
7
7
  import { isRTL } from "../../utils/rtl/index";
8
8
  import { createColorClasses, hostContext, openURL } from "../../utils/theme";
@@ -61,6 +61,14 @@ export class Item {
61
61
  buttonChanged() {
62
62
  // Update the focusable option when the button option is changed
63
63
  this.focusable = this.isFocusable();
64
+ this.tabindexController?.refresh();
65
+ }
66
+ /**
67
+ * Adding or removing `href` adds or removes the native element, so `tabindex` has to move
68
+ * with it. The same goes for `button` in `buttonChanged`.
69
+ */
70
+ hrefChanged() {
71
+ this.tabindexController?.refresh();
64
72
  }
65
73
  labelColorChanged(ev) {
66
74
  const { color } = this;
@@ -106,6 +114,7 @@ export class Item {
106
114
  this.updateInteractivityOnSlotChange();
107
115
  }
108
116
  this.ariaController?.init();
117
+ this.tabindexController?.init();
109
118
  }
110
119
  componentWillLoad() {
111
120
  /**
@@ -115,6 +124,8 @@ export class Item {
115
124
  * reads it twice.
116
125
  */
117
126
  this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(this));
127
+ // An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
128
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this), () => this.isClickable());
118
129
  }
119
130
  componentDidLoad() {
120
131
  raf(() => {
@@ -132,6 +143,7 @@ export class Item {
132
143
  this.indicatorControlObserver = undefined;
133
144
  }
134
145
  this.ariaController?.destroy();
146
+ this.tabindexController?.destroy();
135
147
  }
136
148
  totalNestedInputs() {
137
149
  // The following elements have a clickable cover that is relative to the entire item
@@ -246,6 +258,7 @@ export class Item {
246
258
  const clickable = this.isClickable();
247
259
  const canActivate = this.canActivate();
248
260
  const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
261
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
249
262
  const attrs = TagType === 'button'
250
263
  ? { type: this.type }
251
264
  : {
@@ -316,7 +329,7 @@ export class Item {
316
329
  * multi-input item, and in a clickable item, which is a second tab stop.
317
330
  */
318
331
  const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
319
- return (h(Host, { key: 'dedd4fbc4f9e4db557c6f8bd91299778af9aba1c', "aria-disabled": ariaDisabled, class: {
332
+ return (h(Host, { key: 'b9de79c9d6fbe11a19c8e507d1c34af9f9068cfa', "aria-disabled": ariaDisabled, class: {
320
333
  ...childStyles,
321
334
  ...labelColorStyles,
322
335
  ...createColorClasses(this.color, {
@@ -333,7 +346,7 @@ export class Item {
333
346
  'ion-focusable': this.focusable,
334
347
  'item-rtl': isRTL(el),
335
348
  }),
336
- }, role: inList ? 'listitem' : null }, h(TagType, { key: '949000f555bbc8b76a227d84a2442defc3577a4e', ...attrs, ...inheritedAriaAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, h("slot", { key: '9fde070c0f830cfed9c7e25ea4d1f1d7ab710d07', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), h("div", { key: 'd7ab19b4d7e5d4a7fec2d66e1cb865ff30c609f0', class: "item-inner", part: "inner" }, h("div", { key: 'fdf3f306b98ab6af536e320341985fb34d50ef35', class: "input-wrapper", part: "container" }, h("slot", { key: '06ecb3817c2bdf171f806e2b3e8701d3eb52897e', onSlotchange: this.updateInteractivityOnSlotChange })), h("slot", { key: '7e401db776cd19b0399004e77920b23e526c551a', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (h("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' && h("ion-ripple-effect", { key: '7a782fa9c7e74e600191c41c7dd90a4a499de64e' }))));
349
+ }, role: inList ? 'listitem' : null }, h(TagType, { key: 'c52faccd0d44784e300e55c90b4456c491513c3c', ...attrs, ...inheritedAriaAttributes, ...tabindexAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, h("slot", { key: '11cc95e796b494cf87db7b810846cb2c18186577', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), h("div", { key: '6c94a9dd570f4e6e65924fdde6bcbb840c9b424d', class: "item-inner", part: "inner" }, h("div", { key: '06c490d6f3e15fa811c72d5cd2b7936f99dd8430', class: "input-wrapper", part: "container" }, h("slot", { key: '4487a6cf30f3b26455c96726733f57b1dbcab694', onSlotchange: this.updateInteractivityOnSlotChange })), h("slot", { key: '16d6e70fa22f43b11bc63304dae9900f4a41b703', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (h("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' && h("ion-ripple-effect", { key: 'a9b081a6ebe870d057b775cfae2e7a4de6679155' }))));
337
350
  }
338
351
  static get is() { return "ion-item"; }
339
352
  static get encapsulation() { return "shadow"; }
@@ -637,6 +650,9 @@ export class Item {
637
650
  return [{
638
651
  "propName": "button",
639
652
  "methodName": "buttonChanged"
653
+ }, {
654
+ "propName": "href",
655
+ "methodName": "hrefChanged"
640
656
  }];
641
657
  }
642
658
  static get listeners() {
@@ -1,7 +1,8 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { Host, h } from "@stencil/core";
4
+ import { Host, forceUpdate, h } from "@stencil/core";
5
+ import { createTabindexController } from "../../utils/attribute-controller";
5
6
  import { createColorClasses } from "../../utils/theme";
6
7
  import { getIonMode } from "../../global/ionic-global";
7
8
  /**
@@ -39,8 +40,18 @@ export class ItemOption {
39
40
  }
40
41
  };
41
42
  }
43
+ componentWillLoad() {
44
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
45
+ }
46
+ connectedCallback() {
47
+ this.tabindexController?.init();
48
+ }
49
+ disconnectedCallback() {
50
+ this.tabindexController?.destroy();
51
+ }
42
52
  render() {
43
53
  const { disabled, expandable, href } = this;
54
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
44
55
  const TagType = href === undefined ? 'button' : 'a';
45
56
  const mode = getIonMode(this);
46
57
  const attrs = TagType === 'button'
@@ -50,12 +61,12 @@ export class ItemOption {
50
61
  href: this.href,
51
62
  target: this.target,
52
63
  };
53
- return (h(Host, { key: 'a10d36e60d61865141c57c03a114e4845b400a55', onClick: this.onClick, class: createColorClasses(this.color, {
64
+ return (h(Host, { key: 'b9d323be73e0ac6408aa56a05eeb67076e35daf8', onClick: this.onClick, class: createColorClasses(this.color, {
54
65
  [mode]: true,
55
66
  'item-option-disabled': disabled,
56
67
  'item-option-expandable': expandable,
57
68
  'ion-activatable': true,
58
- }) }, h(TagType, { key: '5cc49ef73318213f6202d1d0f460f629ea65f17f', ...attrs, class: "button-native", part: "native", disabled: disabled }, h("span", { key: '0643b16660b4ca00b0f3b4dbe2739e9ce076abea', class: "button-inner", part: "inner" }, h("slot", { key: '8778d6d09aa9e0db278ce00c5456a1acfe82c15f', name: "top" }), h("div", { key: '4fc849494c8cb2380015161e096b5c61cf517d90', class: "horizontal-wrapper", part: "container" }, h("slot", { key: '9d0c0a5a63d8ec636df9c85d48bbdb39fb63af5e', name: "start" }), h("slot", { key: 'a40561497c7e7d73173edd24ed335230e6eebb2b', name: "icon-only" }), h("slot", { key: 'b94f2a4aa5bf4a1104497ced1920d6ee43d33659' }), h("slot", { key: '91713dbb3e6a617c00f950857f2ed5e5ffceaa9a', name: "end" })), h("slot", { key: 'f5af33c3bfb50fc629a06e1120bba55da07b2afb', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", { key: 'fc56e1644ef9c5b2e1e66683465a7fd09c05215c' }))));
69
+ }) }, h(TagType, { key: '6a59ebaa090613f42fca1fe51eff7863a69526ac', ...attrs, ...tabindexAttributes, class: "button-native", part: "native", disabled: disabled }, h("span", { key: '9a5709f3b6d6bccdf0d60345f6171ca5439d54f4', class: "button-inner", part: "inner" }, h("slot", { key: '9d76f6239d4c50cb785142a89bba26702a79c1f8', name: "top" }), h("div", { key: 'b2aecda5dbfa5e3279d49b6dab6cb14c0b5df697', class: "horizontal-wrapper", part: "container" }, h("slot", { key: '40d56d38d7a73a55f5ea4f6cdd6bc62dcfaa8dae', name: "start" }), h("slot", { key: 'e531ca665546752bde34525cc6630a5ea2ac2575', name: "icon-only" }), h("slot", { key: '2b7a78f6a4776eeb0720f79a81d075f75c63f4ff' }), h("slot", { key: 'b296120a461d3b330ec05a97524b8ce5d3250a07', name: "end" })), h("slot", { key: '5ebdf7af5acb29cc1b728f812d7f0c4d952512cc', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", { key: '538f3e7d90a17ddbcc72ad227a0711573d3f7aac' }))));
59
70
  }
60
71
  static get is() { return "ion-item-option"; }
61
72
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,8 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { Host, h } from "@stencil/core";
4
+ import { Host, forceUpdate, h } from "@stencil/core";
5
+ import { createTabindexController } from "../../utils/attribute-controller";
5
6
  import { inheritAriaAttributes } from "../../utils/helpers";
6
7
  import { menuController } from "../../utils/menu-controller/index";
7
8
  import { createColorClasses, hostContext } from "../../utils/theme";
@@ -37,6 +38,13 @@ export class MenuButton {
37
38
  }
38
39
  componentWillLoad() {
39
40
  this.inheritedAttributes = inheritAriaAttributes(this.el);
41
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
42
+ }
43
+ connectedCallback() {
44
+ this.tabindexController?.init();
45
+ }
46
+ disconnectedCallback() {
47
+ this.tabindexController?.destroy();
40
48
  }
41
49
  componentDidLoad() {
42
50
  this.visibilityChanged();
@@ -46,6 +54,7 @@ export class MenuButton {
46
54
  }
47
55
  render() {
48
56
  const { color, disabled, inheritedAttributes } = this;
57
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
49
58
  const mode = getIonMode(this);
50
59
  const menuIcon = config.get('menuIcon', mode === 'ios' ? menuOutline : menuSharp);
51
60
  const hidden = this.autoHide && !this.visible;
@@ -53,7 +62,7 @@ export class MenuButton {
53
62
  type: this.type,
54
63
  };
55
64
  const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
56
- return (h(Host, { key: 'b8869377822b082c6c4d3f16135b50b733eabf65', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
65
+ return (h(Host, { key: 'bccc30d2a1e67e484f493211f950391c82f28b00', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
57
66
  [mode]: true,
58
67
  button: true, // ion-buttons target .button
59
68
  'menu-button-hidden': hidden,
@@ -62,7 +71,7 @@ export class MenuButton {
62
71
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
63
72
  'ion-activatable': true,
64
73
  'ion-focusable': true,
65
- }) }, h("button", { key: '48fc0a7011414b60dd7d5136f247e937ae4bb8c8', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }, h("span", { key: '8c712f28c5afd345e403a9afc525931112852708', class: "button-inner" }, h("slot", { key: 'dd872325e42baf435188478c8d1cfc416075089d' }, h("ion-icon", { key: 'a4f02bdb715b07792c17e12c7837873d70171f88', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: '564e2a8a804e14d1135502f7b17d8b7b9862e81b', type: "unbounded" }))));
74
+ }) }, h("button", { key: 'c2479290c5fee434c12c75fe47b2a10c58908bcb', ...attrs, disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel, ...tabindexAttributes }, h("span", { key: 'ab2a5aa0aced1e551f5571dbfd3dabe8b3558370', class: "button-inner" }, h("slot", { key: '7e7f827910287e11ffe716639c069e977df64d6a' }, h("ion-icon", { key: 'ec4677e9b71d4b2167c64aebef269a58994262d1', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: '5b88e62b6cb4530f7b63dde0352cb0b7ef73cbff', type: "unbounded" }))));
66
75
  }
67
76
  static get is() { return "ion-menu-button"; }
68
77
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,8 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { Host, h } from "@stencil/core";
4
+ import { Host, forceUpdate, h } from "@stencil/core";
5
+ import { createTabindexController } from "../../utils/attribute-controller";
5
6
  import { createColorClasses, openURL } from "../../utils/theme";
6
7
  import { getIonMode } from "../../global/ionic-global";
7
8
  export class RouterLink {
@@ -15,17 +16,27 @@ export class RouterLink {
15
16
  openURL(this.href, ev, this.routerDirection, this.routerAnimation);
16
17
  };
17
18
  }
19
+ componentWillLoad() {
20
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
21
+ }
22
+ connectedCallback() {
23
+ this.tabindexController?.init();
24
+ }
25
+ disconnectedCallback() {
26
+ this.tabindexController?.destroy();
27
+ }
18
28
  render() {
19
29
  const mode = getIonMode(this);
30
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
20
31
  const attrs = {
21
32
  href: this.href,
22
33
  rel: this.rel,
23
34
  target: this.target,
24
35
  };
25
- return (h(Host, { key: '8aaf732d8f5cc4ced351e2b3164605c10bd90cad', onClick: this.onClick, class: createColorClasses(this.color, {
36
+ return (h(Host, { key: '51d8c563858a89c274f4b3778b937e545f4626df', onClick: this.onClick, class: createColorClasses(this.color, {
26
37
  [mode]: true,
27
38
  'ion-activatable': true,
28
- }) }, h("a", { key: '8f291ffbbce5b08dd10720d855eb020880bf1be1', ...attrs }, h("slot", { key: '24dc388a49204011e1c1f0a1131c9a1b0a4ae4da' }))));
39
+ }) }, h("a", { key: '2f806b3036d648cf01ff69739c7f422c9a554c7d', ...attrs, ...tabindexAttributes }, h("slot", { key: '43a2ee8b80574b120d80a8d65e8615921eb36afb' }))));
29
40
  }
30
41
  static get is() { return "ion-router-link"; }
31
42
  static get encapsulation() { return "shadow"; }
@@ -177,4 +188,5 @@ export class RouterLink {
177
188
  }
178
189
  };
179
190
  }
191
+ static get elementRef() { return "el"; }
180
192
  }
@@ -2,6 +2,7 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { Host, forceUpdate, h } from "@stencil/core";
5
+ import { createTabindexController } from "../../utils/attribute-controller";
5
6
  import { addEventListener, removeEventListener, inheritAttributes } from "../../utils/helpers";
6
7
  import { printIonError, printIonWarning } from "../../utils/logging/index";
7
8
  import { hostContext } from "../../utils/theme";
@@ -52,6 +53,7 @@ export class SegmentButton {
52
53
  this.updateState();
53
54
  }
54
55
  connectedCallback() {
56
+ this.tabindexController?.init();
55
57
  const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
56
58
  if (segmentEl) {
57
59
  this.updateState();
@@ -60,6 +62,7 @@ export class SegmentButton {
60
62
  }
61
63
  }
62
64
  disconnectedCallback() {
65
+ this.tabindexController?.destroy();
63
66
  const segmentEl = this.segmentEl;
64
67
  if (segmentEl) {
65
68
  removeEventListener(segmentEl, 'ionSelect', this.updateState);
@@ -71,6 +74,7 @@ export class SegmentButton {
71
74
  this.inheritedAttributes = {
72
75
  ...inheritAttributes(this.el, ['aria-label']),
73
76
  };
77
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
74
78
  // Return if there is no contentId defined
75
79
  if (!this.contentId)
76
80
  return;
@@ -116,8 +120,9 @@ export class SegmentButton {
116
120
  render() {
117
121
  const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
118
122
  const mode = getIonMode(this);
123
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
119
124
  const hasSegmentColor = () => segmentEl?.color !== undefined;
120
- return (h(Host, { key: 'd8acc71d87e26b32f20b2d0f9a6acc9f0dab0dee', class: {
125
+ return (h(Host, { key: 'd0d37d00f921193edd3a3670363583d9ee1cfb39', class: {
121
126
  [mode]: true,
122
127
  'in-toolbar': hostContext('ion-toolbar', this.el),
123
128
  'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
@@ -133,7 +138,7 @@ export class SegmentButton {
133
138
  'ion-activatable': true,
134
139
  'ion-activatable-instant': true,
135
140
  'ion-focusable': true,
136
- } }, h("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 }, h("span", { key: '6c4b4dcd20e407e5dc31674bea23633d8a09187a', class: "button-inner" }, h("slot", { key: '817145ae77a3c5ada88ab95723d881f1bde96b2a' })), mode === 'md' && h("ion-ripple-effect", { key: '054d7e5e2a13013914fac6bbde8efdb28d9b459e' })), h("div", { key: 'c48074881a302510ad4752eeb9383222cd3a54cb', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: '7672a6b10ee18ad026b798fbd8207dc3cd5683f9', part: "indicator-background", class: "segment-button-indicator-background" }))));
141
+ } }, h("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 }, h("span", { key: '0fdf337f0ba7fa08143124091a580418f7b94a7c', class: "button-inner" }, h("slot", { key: 'bce39283cdbe68cffbece870296fecff6f214345' })), mode === 'md' && h("ion-ripple-effect", { key: '2653c7c6d50bc00540d249ed98c6c6a5d93672d6' })), h("div", { key: 'de0dbdd9f531158cc77ba04e78f4e96e32b6fb02', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: '2006cb914692ae1d5659828e36c502f9747adede', part: "indicator-background", class: "segment-button-indicator-background" }))));
137
142
  }
138
143
  static get is() { return "ion-segment-button"; }
139
144
  static get encapsulation() { return "shadow"; }
@@ -2,6 +2,7 @@
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
4
  import { Build, Host, h, forceUpdate, } from "@stencil/core";
5
+ import { createTabindexController } from "../../utils/attribute-controller";
5
6
  import { ENABLE_HTML_CONTENT_DEFAULT } from "../../utils/config";
6
7
  import { compareOptions, createClickController, createNotchController, createStartEndContainerController, getSlottedClickContent, isOptionSelected, checkInvalidState, } from "../../utils/forms/index";
7
8
  import { focusVisibleElement, renderHiddenInput, inheritAttributes } from "../../utils/helpers";
@@ -185,6 +186,7 @@ export class Select {
185
186
  }
186
187
  async connectedCallback() {
187
188
  const { el } = this;
189
+ this.tabindexController?.init();
188
190
  this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
189
191
  this.startEndContainerController?.calculateContainerWidths();
190
192
  forceUpdate(this);
@@ -246,6 +248,7 @@ export class Select {
246
248
  }
247
249
  componentWillLoad() {
248
250
  this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
251
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
249
252
  this.hintTextId = this.getHintTextId();
250
253
  }
251
254
  componentDidLoad() {
@@ -262,6 +265,7 @@ export class Select {
262
265
  this.emitStyle();
263
266
  }
264
267
  disconnectedCallback() {
268
+ this.tabindexController?.destroy();
265
269
  if (this.mutationO) {
266
270
  this.mutationO.disconnect();
267
271
  this.mutationO = undefined;
@@ -890,7 +894,8 @@ export class Select {
890
894
  }
891
895
  renderListbox() {
892
896
  const { disabled, inputId, isExpanded, required } = this;
893
- return (h("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) }));
897
+ const tabindexAttributes = this.tabindexController?.attributes ?? {};
898
+ return (h("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 }));
894
899
  }
895
900
  getHintTextId() {
896
901
  const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
@@ -940,7 +945,7 @@ export class Select {
940
945
  const hasOutlineFill = mode === 'md' && fill === 'outline';
941
946
  renderHiddenInput(true, el, name, parseValue(value), disabled);
942
947
  const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
943
- return (h(Host, { key: 'c1949b8a58c5bde1cc7627d3b32c54bcb46a4752', onClick: this.onClick, class: createColorClasses(this.color, {
948
+ return (h(Host, { key: '33b9006ae4d0190621c3ec6241db4507ef08e891', onClick: this.onClick, class: createColorClasses(this.color, {
944
949
  [mode]: true,
945
950
  'in-item': inItem,
946
951
  'in-item-color': hostContext('ion-item.ion-color', el),
@@ -958,7 +963,7 @@ export class Select {
958
963
  [`select-justify-${justify}`]: justifyEnabled,
959
964
  [`select-shape-${shape}`]: shape !== undefined,
960
965
  [`select-label-placement-${labelPlacement}`]: true,
961
- }) }, h("label", { key: 'af4521a3679d9e4e08511e205f53663d8d5b6701', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), h("div", { key: '73e13f28ed4c2b0e9115f3d1b86934b84f8c5bc0', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, h("slot", { key: 'ce88e5bbb15a4cde6a5f8580a35d7099e315e9e6', name: "start" })), h("div", { key: 'd1557c3d0ff41f5070a27b719fbfaf18eafa9052', class: "select-control", part: "control" }, this.renderLabel(), h("div", { key: 'bcd03ac6c6d72ab76a4344069d83c29a2cdaabf0', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), h("div", { key: '9be05035c1efb5c332a0044c81e032215c81278b', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), h("slot", { key: '551ab0cf3594805caaf14f36197f9cc56b9ee46a', name: "end" })), shouldRenderHighlight && h("div", { key: 'dd500fb4ae7d91d1733fec521dac9baaef6654a0', class: "select-highlight" })), this.renderBottomContent()));
966
+ }) }, h("label", { key: 'c123702d69e5a7dece801b9765ce52777d4a376c', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, hasOutlineFill && this.renderOutlineContainer(), h("div", { key: '9cbac0085afa03e9b5d777b028d7a837ddfc8212', class: "select-start", part: "start", ref: (el) => (this.startContainerEl = el) }, h("slot", { key: '179f1454e56c7dc50637b6149c6916a28fc2cf4a', name: "start" })), h("div", { key: 'bb492a41a762d8fc4199561967f688284e4b6e1f', class: "select-control", part: "control" }, this.renderLabel(), h("div", { key: 'e0f889c0f02e16fe1a47c4ddfeba7a262341a72d', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox(), !hasFloatingOrStackedLabel && this.renderSelectIcon())), h("div", { key: 'bb5e5e117d786e02d6ac9d0514c5f54c240388ab', class: "select-end", part: "end", ref: (el) => (this.endContainerEl = el) }, hasFloatingOrStackedLabel && this.renderSelectIcon(), h("slot", { key: '07df73fde0d7413e7d28af0d0b25a04593ea77dc', name: "end" })), shouldRenderHighlight && h("div", { key: '753762d7c94c48d89e3c727fefbb5c9fdd981ad2', class: "select-highlight" })), this.renderBottomContent()));
962
967
  }
963
968
  static get is() { return "ion-select"; }
964
969
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,8 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- import { Host, h } from "@stencil/core";
4
+ import { Host, forceUpdate, h } from "@stencil/core";
5
+ import { createTabindexController } from "../../utils/attribute-controller";
5
6
  import { inheritAttributes } from "../../utils/helpers";
6
7
  import { config } from "../../global/config";
7
8
  import { getIonMode } from "../../global/ionic-global";
@@ -41,10 +42,17 @@ export class TabButton {
41
42
  this.inheritedAttributes = {
42
43
  ...inheritAttributes(this.el, ['aria-label']),
43
44
  };
45
+ this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
44
46
  if (this.layout === undefined) {
45
47
  this.layout = config.get('tabButtonLayout', 'icon-top');
46
48
  }
47
49
  }
50
+ connectedCallback() {
51
+ this.tabindexController?.init();
52
+ }
53
+ disconnectedCallback() {
54
+ this.tabindexController?.destroy();
55
+ }
48
56
  selectTab(ev) {
49
57
  if (this.tab !== undefined) {
50
58
  if (!this.disabled) {
@@ -66,13 +74,14 @@ export class TabButton {
66
74
  render() {
67
75
  const { disabled, hasIcon, hasLabel, href, rel, target, layout, selected, tab, inheritedAttributes } = this;
68
76
  const mode = getIonMode(this);
77
+ const tabindex = this.tabindexController?.attributes.tabindex;
69
78
  const attrs = {
70
79
  download: this.download,
71
80
  href,
72
81
  rel,
73
82
  target,
74
83
  };
75
- return (h(Host, { key: '45bb7ffa6d8764202adc2c5c393748d4003e86fe', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
84
+ return (h(Host, { key: '177c6c12cbee6e5e0b54375edb62d2a05b51b27b', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
76
85
  [mode]: true,
77
86
  'tab-selected': selected,
78
87
  'tab-disabled': disabled,
@@ -84,7 +93,7 @@ export class TabButton {
84
93
  'ion-activatable': true,
85
94
  'ion-selectable': true,
86
95
  'ion-focusable': true,
87
- } }, h("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 }, h("span", { key: '62934156439ffd0ab86674b9cf89d9cfa0d3589c', class: "button-inner" }, h("slot", { key: '293ba8f5ef50373c4e6e492dcaa55b3d2aae8d2f' })), mode === 'md' && h("ion-ripple-effect", { key: '360b010afedcf17fc1f3ab6d192f0f8c7b1cf112', type: "unbounded" }))));
96
+ } }, h("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 }, h("span", { key: 'cef69478ddc3fc9144acab61cb8cc0df1d8ca711', class: "button-inner" }, h("slot", { key: 'e276e619c8062c36f1de0d2a46abba750e8e58d7' })), mode === 'md' && h("ion-ripple-effect", { key: '6f747fd5723d00a1aa034f8d6a97e752f5f3c1c6', type: "unbounded" }))));
88
97
  }
89
98
  static get is() { return "ion-tab-button"; }
90
99
  static get encapsulation() { return "shadow"; }