@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.
- package/components/ion-back-button.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-item-option.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-router-link.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/p-BLmEEVy_.js +4 -0
- package/components/p-C-Jb89-w.js +4 -0
- package/components/{p-Dy7x-KDF.js → p-DBlNaRT2.js} +1 -1
- package/components/p-DBtEgJe4.js +4 -0
- package/components/{p-C-SO5kIs.js → p-nZiC4mrP.js} +1 -1
- package/dist/cjs/attribute-controller-BRwSyjfI.js +219 -0
- package/dist/cjs/ion-back-button.cjs.entry.js +11 -2
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +26 -4
- package/dist/cjs/ion-button_2.cjs.entry.js +10 -4
- package/dist/cjs/ion-card_5.cjs.entry.js +23 -3
- package/dist/cjs/ion-fab_3.cjs.entry.js +9 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +13 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +19 -3
- package/dist/cjs/ion-menu_3.cjs.entry.js +11 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +14 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +7 -2
- package/dist/cjs/ion-select_3.cjs.entry.js +8 -3
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +11 -2
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/back-button/back-button.js +12 -3
- package/dist/collection/components/breadcrumb/breadcrumb.js +28 -5
- package/dist/collection/components/button/button.js +10 -4
- package/dist/collection/components/card/card.js +24 -3
- package/dist/collection/components/fab-button/fab-button.js +10 -3
- package/dist/collection/components/item/item.js +19 -3
- package/dist/collection/components/item-option/item-option.js +14 -3
- package/dist/collection/components/menu-button/menu-button.js +12 -3
- package/dist/collection/components/router-link/router-link.js +15 -3
- package/dist/collection/components/segment-button/segment-button.js +7 -2
- package/dist/collection/components/select/select.js +8 -3
- package/dist/collection/components/tab-button/tab-button.js +12 -3
- package/dist/collection/utils/attribute-controller.js +107 -20
- package/dist/docs.json +1 -1
- package/dist/esm/attribute-controller-BMdZtDiw.js +215 -0
- package/dist/esm/ion-back-button.entry.js +12 -3
- package/dist/esm/ion-breadcrumb_2.entry.js +27 -5
- package/dist/esm/ion-button_2.entry.js +10 -4
- package/dist/esm/ion-card_5.entry.js +23 -3
- package/dist/esm/ion-fab_3.entry.js +10 -3
- package/dist/esm/ion-item-option_3.entry.js +14 -3
- package/dist/esm/ion-item_8.entry.js +19 -3
- package/dist/esm/ion-menu_3.entry.js +12 -3
- package/dist/esm/ion-route_4.entry.js +15 -3
- package/dist/esm/ion-segment_2.entry.js +7 -2
- package/dist/esm/ion-select_3.entry.js +8 -3
- package/dist/esm/ion-tab-bar_2.entry.js +12 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-13cebf9c.entry.js +4 -0
- package/dist/ionic/p-2JXUmy2G.js +4 -0
- package/dist/ionic/p-41e7f290.entry.js +4 -0
- package/dist/ionic/p-498151f8.entry.js +4 -0
- package/dist/ionic/p-499eba5c.entry.js +4 -0
- package/dist/ionic/p-4dd92223.entry.js +4 -0
- package/dist/ionic/p-542337a7.entry.js +4 -0
- package/dist/ionic/p-872ad61b.entry.js +4 -0
- package/dist/ionic/p-a4c1dd02.entry.js +4 -0
- package/dist/ionic/p-a6666b03.entry.js +4 -0
- package/dist/ionic/p-df9b3bc5.entry.js +4 -0
- package/dist/ionic/p-dfc8cf89.entry.js +4 -0
- package/dist/ionic/p-e702cb5c.entry.js +4 -0
- package/dist/types/components/back-button/back-button.d.ts +3 -0
- package/dist/types/components/breadcrumb/breadcrumb.d.ts +8 -0
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +6 -0
- package/dist/types/components/fab-button/fab-button.d.ts +2 -0
- package/dist/types/components/item/item.d.ts +6 -0
- package/dist/types/components/item-option/item-option.d.ts +4 -0
- package/dist/types/components/menu-button/menu-button.d.ts +3 -0
- package/dist/types/components/router-link/router-link.d.ts +5 -0
- package/dist/types/components/segment-button/segment-button.d.ts +1 -0
- package/dist/types/components/select/select.d.ts +1 -0
- package/dist/types/components/tab-button/tab-button.d.ts +3 -0
- package/dist/types/utils/attribute-controller.d.ts +28 -6
- package/hydrate/index.js +359 -150
- package/hydrate/index.mjs +359 -150
- package/package.json +1 -1
- package/components/p-C0TdbIVo.js +0 -4
- package/components/p-CCFj0kgH.js +0 -4
- package/components/p-kKGBuIkf.js +0 -4
- package/dist/cjs/attribute-controller-0-lwbVEj.js +0 -131
- package/dist/esm/attribute-controller-ItNOXNp9.js +0 -128
- package/dist/ionic/p-013b9aba.entry.js +0 -4
- package/dist/ionic/p-1252621e.entry.js +0 -4
- package/dist/ionic/p-27960f65.entry.js +0 -4
- package/dist/ionic/p-43729675.entry.js +0 -4
- package/dist/ionic/p-84470714.entry.js +0 -4
- package/dist/ionic/p-8dQB1sG_.js +0 -4
- package/dist/ionic/p-9515f840.entry.js +0 -4
- package/dist/ionic/p-96d040b0.entry.js +0 -4
- package/dist/ionic/p-9d7e5a0b.entry.js +0 -4
- package/dist/ionic/p-a45caa30.entry.js +0 -4
- package/dist/ionic/p-b0faaae2.entry.js +0 -4
- package/dist/ionic/p-c56c23b6.entry.js +0 -4
- package/dist/ionic/p-c7ea2647.entry.js +0 -4
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, f as Host, g as getElement, d as createEvent, a as printIonWarning } from './index-BpRUsN_W.js';
|
|
4
|
+
import { r as registerInstance, h, f as Host, g as getElement, d as createEvent, a as printIonWarning, j as forceUpdate } from './index-BpRUsN_W.js';
|
|
5
5
|
import { b as getIonMode } from './ionic-global-Cep6oYzK.js';
|
|
6
|
+
import { c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
6
7
|
import { k as hasShadowDom, i as inheritAriaAttributes } from './helpers-p94IkmEA.js';
|
|
7
8
|
import { h as hostContext, o as openURL, c as createColorClasses } from './theme-byZM6qHV.js';
|
|
8
9
|
import { t as close } from './index-BvabGprD.js';
|
|
@@ -148,6 +149,10 @@ const FabButton = class {
|
|
|
148
149
|
}
|
|
149
150
|
connectedCallback() {
|
|
150
151
|
this.fab = this.el.closest('ion-fab');
|
|
152
|
+
this.tabindexController?.init();
|
|
153
|
+
}
|
|
154
|
+
disconnectedCallback() {
|
|
155
|
+
this.tabindexController?.destroy();
|
|
151
156
|
}
|
|
152
157
|
/**
|
|
153
158
|
* The native button rendered inside `ion-fab-button` is in the Shadow DOM and
|
|
@@ -207,11 +212,13 @@ const FabButton = class {
|
|
|
207
212
|
}
|
|
208
213
|
componentWillLoad() {
|
|
209
214
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
215
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
210
216
|
}
|
|
211
217
|
render() {
|
|
212
218
|
const { el, disabled, color, href, activated, show, translucent, size, inheritedAttributes, type } = this;
|
|
213
219
|
const inList = hostContext('ion-fab-list', el);
|
|
214
220
|
const mode = getIonMode(this);
|
|
221
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
215
222
|
const TagType = href === undefined ? 'button' : 'a';
|
|
216
223
|
const attrs = TagType === 'button'
|
|
217
224
|
? { type }
|
|
@@ -228,7 +235,7 @@ const FabButton = class {
|
|
|
228
235
|
if (type !== 'button') {
|
|
229
236
|
this.renderHiddenButton();
|
|
230
237
|
}
|
|
231
|
-
return (h(Host, { key: '
|
|
238
|
+
return (h(Host, { key: '95594de6a6509d29799ba4f5b54a14632bca1c83', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses(color, {
|
|
232
239
|
[mode]: true,
|
|
233
240
|
'fab-button-in-list': inList,
|
|
234
241
|
'fab-button-translucent-in-list': inList && translucent,
|
|
@@ -239,7 +246,7 @@ const FabButton = class {
|
|
|
239
246
|
'ion-activatable': true,
|
|
240
247
|
'ion-focusable': true,
|
|
241
248
|
[`fab-button-${size}`]: size !== undefined,
|
|
242
|
-
}) }, h(TagType, { key: '
|
|
249
|
+
}) }, 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' }))));
|
|
243
250
|
}
|
|
244
251
|
get el() { return getElement(this); }
|
|
245
252
|
static get watchers() { return {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, f as Host, g as getElement, d as createEvent, a as printIonWarning } from './index-BpRUsN_W.js';
|
|
4
|
+
import { r as registerInstance, h, f as Host, g as getElement, j as forceUpdate, d as createEvent, a as printIonWarning } from './index-BpRUsN_W.js';
|
|
5
|
+
import { c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
5
6
|
import { c as createColorClasses } from './theme-byZM6qHV.js';
|
|
6
7
|
import { b as getIonMode } from './ionic-global-Cep6oYzK.js';
|
|
7
8
|
import { s as isEndSide, c as componentOnReady } from './helpers-p94IkmEA.js';
|
|
@@ -35,8 +36,18 @@ const ItemOption = class {
|
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
38
|
}
|
|
39
|
+
componentWillLoad() {
|
|
40
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
this.tabindexController?.init();
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
this.tabindexController?.destroy();
|
|
47
|
+
}
|
|
38
48
|
render() {
|
|
39
49
|
const { disabled, expandable, href } = this;
|
|
50
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
40
51
|
const TagType = href === undefined ? 'button' : 'a';
|
|
41
52
|
const mode = getIonMode(this);
|
|
42
53
|
const attrs = TagType === 'button'
|
|
@@ -46,12 +57,12 @@ const ItemOption = class {
|
|
|
46
57
|
href: this.href,
|
|
47
58
|
target: this.target,
|
|
48
59
|
};
|
|
49
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'b9d323be73e0ac6408aa56a05eeb67076e35daf8', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
50
61
|
[mode]: true,
|
|
51
62
|
'item-option-disabled': disabled,
|
|
52
63
|
'item-option-expandable': expandable,
|
|
53
64
|
'ion-activatable': true,
|
|
54
|
-
}) }, h(TagType, { key: '
|
|
65
|
+
}) }, 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' }))));
|
|
55
66
|
}
|
|
56
67
|
get el() { return getElement(this); }
|
|
57
68
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, j as forceUpdate, h, f as Host, g as getElement, d as createEvent, i as config } from './index-BpRUsN_W.js';
|
|
5
|
-
import {
|
|
5
|
+
import { b as createAttributeController, c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
6
6
|
import { r as raf } from './helpers-p94IkmEA.js';
|
|
7
7
|
import { i as isRTL } from './dir-Dj4J3LkD.js';
|
|
8
8
|
import { h as hostContext, c as createColorClasses, o as openURL } from './theme-byZM6qHV.js';
|
|
@@ -55,6 +55,14 @@ const Item = class {
|
|
|
55
55
|
buttonChanged() {
|
|
56
56
|
// Update the focusable option when the button option is changed
|
|
57
57
|
this.focusable = this.isFocusable();
|
|
58
|
+
this.tabindexController?.refresh();
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Adding or removing `href` adds or removes the native element, so `tabindex` has to move
|
|
62
|
+
* with it. The same goes for `button` in `buttonChanged`.
|
|
63
|
+
*/
|
|
64
|
+
hrefChanged() {
|
|
65
|
+
this.tabindexController?.refresh();
|
|
58
66
|
}
|
|
59
67
|
labelColorChanged(ev) {
|
|
60
68
|
const { color } = this;
|
|
@@ -100,6 +108,7 @@ const Item = class {
|
|
|
100
108
|
this.updateInteractivityOnSlotChange();
|
|
101
109
|
}
|
|
102
110
|
this.ariaController?.init();
|
|
111
|
+
this.tabindexController?.init();
|
|
103
112
|
}
|
|
104
113
|
componentWillLoad() {
|
|
105
114
|
/**
|
|
@@ -109,6 +118,8 @@ const Item = class {
|
|
|
109
118
|
* reads it twice.
|
|
110
119
|
*/
|
|
111
120
|
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate(this));
|
|
121
|
+
// An item that isn't clickable has no native button or link, so `tabindex` stays on the host.
|
|
122
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this), () => this.isClickable());
|
|
112
123
|
}
|
|
113
124
|
componentDidLoad() {
|
|
114
125
|
raf(() => {
|
|
@@ -126,6 +137,7 @@ const Item = class {
|
|
|
126
137
|
this.indicatorControlObserver = undefined;
|
|
127
138
|
}
|
|
128
139
|
this.ariaController?.destroy();
|
|
140
|
+
this.tabindexController?.destroy();
|
|
129
141
|
}
|
|
130
142
|
totalNestedInputs() {
|
|
131
143
|
// The following elements have a clickable cover that is relative to the entire item
|
|
@@ -240,6 +252,7 @@ const Item = class {
|
|
|
240
252
|
const clickable = this.isClickable();
|
|
241
253
|
const canActivate = this.canActivate();
|
|
242
254
|
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
|
255
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
243
256
|
const attrs = TagType === 'button'
|
|
244
257
|
? { type: this.type }
|
|
245
258
|
: {
|
|
@@ -310,7 +323,7 @@ const Item = class {
|
|
|
310
323
|
* multi-input item, and in a clickable item, which is a second tab stop.
|
|
311
324
|
*/
|
|
312
325
|
const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
|
|
313
|
-
return (h(Host, { key: '
|
|
326
|
+
return (h(Host, { key: 'b9de79c9d6fbe11a19c8e507d1c34af9f9068cfa', "aria-disabled": ariaDisabled, class: {
|
|
314
327
|
...childStyles,
|
|
315
328
|
...labelColorStyles,
|
|
316
329
|
...createColorClasses(this.color, {
|
|
@@ -327,12 +340,15 @@ const Item = class {
|
|
|
327
340
|
'ion-focusable': this.focusable,
|
|
328
341
|
'item-rtl': isRTL(el),
|
|
329
342
|
}),
|
|
330
|
-
}, role: inList ? 'listitem' : null }, h(TagType, { key: '
|
|
343
|
+
}, 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' }))));
|
|
331
344
|
}
|
|
332
345
|
get el() { return getElement(this); }
|
|
333
346
|
static get watchers() { return {
|
|
334
347
|
"button": [{
|
|
335
348
|
"buttonChanged": 0
|
|
349
|
+
}],
|
|
350
|
+
"href": [{
|
|
351
|
+
"hrefChanged": 0
|
|
336
352
|
}]
|
|
337
353
|
}; }
|
|
338
354
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, d as createEvent, i as config, c as printIonError, h, f as Host, g as getElement } from './index-BpRUsN_W.js';
|
|
4
|
+
import { r as registerInstance, d as createEvent, i as config, c as printIonError, h, f as Host, g as getElement, j as forceUpdate } from './index-BpRUsN_W.js';
|
|
5
5
|
import { g as getTimeGivenProgression } from './cubic-bezier-hHmYLOfE.js';
|
|
6
6
|
import { u as getPresentedOverlay, B as BACKDROP, o as focusFirstDescendant, v as focusLastDescendant, G as GESTURE, w as shouldUseCloseWatcher, x as updateCloseWatcher } from './overlays-BBgMM61s.js';
|
|
7
7
|
import { G as GESTURE_CONTROLLER } from './gesture-controller-B_gJaBk0.js';
|
|
8
8
|
import { s as isEndSide, i as inheritAriaAttributes, l as assert, e as clamp } from './helpers-p94IkmEA.js';
|
|
9
9
|
import { m as menuController } from './index-txcXIB3P.js';
|
|
10
10
|
import { b as getIonMode, a as isPlatform } from './ionic-global-Cep6oYzK.js';
|
|
11
|
+
import { c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
11
12
|
import { c as createColorClasses, h as hostContext } from './theme-byZM6qHV.js';
|
|
12
13
|
import { u as menuOutline, v as menuSharp } from './index-BvabGprD.js';
|
|
13
14
|
import './framework-delegate-CW5_kWfc.js';
|
|
@@ -755,6 +756,13 @@ const MenuButton = class {
|
|
|
755
756
|
}
|
|
756
757
|
componentWillLoad() {
|
|
757
758
|
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
759
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
760
|
+
}
|
|
761
|
+
connectedCallback() {
|
|
762
|
+
this.tabindexController?.init();
|
|
763
|
+
}
|
|
764
|
+
disconnectedCallback() {
|
|
765
|
+
this.tabindexController?.destroy();
|
|
758
766
|
}
|
|
759
767
|
componentDidLoad() {
|
|
760
768
|
this.visibilityChanged();
|
|
@@ -764,6 +772,7 @@ const MenuButton = class {
|
|
|
764
772
|
}
|
|
765
773
|
render() {
|
|
766
774
|
const { color, disabled, inheritedAttributes } = this;
|
|
775
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
767
776
|
const mode = getIonMode(this);
|
|
768
777
|
const menuIcon = config.get('menuIcon', mode === 'ios' ? menuOutline : menuSharp);
|
|
769
778
|
const hidden = this.autoHide && !this.visible;
|
|
@@ -771,7 +780,7 @@ const MenuButton = class {
|
|
|
771
780
|
type: this.type,
|
|
772
781
|
};
|
|
773
782
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
774
|
-
return (h(Host, { key: '
|
|
783
|
+
return (h(Host, { key: 'bccc30d2a1e67e484f493211f950391c82f28b00', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
|
|
775
784
|
[mode]: true,
|
|
776
785
|
button: true, // ion-buttons target .button
|
|
777
786
|
'menu-button-hidden': hidden,
|
|
@@ -780,7 +789,7 @@ const MenuButton = class {
|
|
|
780
789
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
781
790
|
'ion-activatable': true,
|
|
782
791
|
'ion-focusable': true,
|
|
783
|
-
}) }, h("button", { key: '
|
|
792
|
+
}) }, 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" }))));
|
|
784
793
|
}
|
|
785
794
|
get el() { return getElement(this); }
|
|
786
795
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, d as createEvent, c as printIonError, a as printIonWarning, g as getElement, h, f as Host } from './index-BpRUsN_W.js';
|
|
4
|
+
import { r as registerInstance, d as createEvent, c as printIonError, a as printIonWarning, g as getElement, h, f as Host, j as forceUpdate } from './index-BpRUsN_W.js';
|
|
5
5
|
import { c as componentOnReady, r as raf, u as debounce } from './helpers-p94IkmEA.js';
|
|
6
6
|
import { a as findClosestIonContent, i as isIonContent, g as getScrollElement } from './index-CBkVO5D0.js';
|
|
7
|
+
import { c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
7
8
|
import { o as openURL, c as createColorClasses } from './theme-byZM6qHV.js';
|
|
8
9
|
import { b as getIonMode } from './ionic-global-Cep6oYzK.js';
|
|
9
10
|
import './dir-Dj4J3LkD.js';
|
|
@@ -1070,18 +1071,29 @@ const RouterLink = class {
|
|
|
1070
1071
|
openURL(this.href, ev, this.routerDirection, this.routerAnimation);
|
|
1071
1072
|
};
|
|
1072
1073
|
}
|
|
1074
|
+
componentWillLoad() {
|
|
1075
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
1076
|
+
}
|
|
1077
|
+
connectedCallback() {
|
|
1078
|
+
this.tabindexController?.init();
|
|
1079
|
+
}
|
|
1080
|
+
disconnectedCallback() {
|
|
1081
|
+
this.tabindexController?.destroy();
|
|
1082
|
+
}
|
|
1073
1083
|
render() {
|
|
1074
1084
|
const mode = getIonMode(this);
|
|
1085
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
1075
1086
|
const attrs = {
|
|
1076
1087
|
href: this.href,
|
|
1077
1088
|
rel: this.rel,
|
|
1078
1089
|
target: this.target,
|
|
1079
1090
|
};
|
|
1080
|
-
return (h(Host, { key: '
|
|
1091
|
+
return (h(Host, { key: '51d8c563858a89c274f4b3778b937e545f4626df', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
1081
1092
|
[mode]: true,
|
|
1082
1093
|
'ion-activatable': true,
|
|
1083
|
-
}) }, h("a", { key: '
|
|
1094
|
+
}) }, h("a", { key: '2f806b3036d648cf01ff69739c7f422c9a554c7d', ...attrs, ...tabindexAttributes }, h("slot", { key: '43a2ee8b80574b120d80a8d65e8615921eb36afb' }))));
|
|
1084
1095
|
}
|
|
1096
|
+
get el() { return getElement(this); }
|
|
1085
1097
|
};
|
|
1086
1098
|
RouterLink.style = routerLinkCss();
|
|
1087
1099
|
|
|
@@ -6,6 +6,7 @@ import { r as raf, f as addEventListener, m as removeEventListener, b as inherit
|
|
|
6
6
|
import { i as isRTL } from './dir-Dj4J3LkD.js';
|
|
7
7
|
import { c as createColorClasses, h as hostContext } from './theme-byZM6qHV.js';
|
|
8
8
|
import { b as getIonMode } from './ionic-global-Cep6oYzK.js';
|
|
9
|
+
import { c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
9
10
|
|
|
10
11
|
const segmentIosCss = () => `:host{--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:grid;grid-auto-columns:1fr;position:relative;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:center;justify-content:center;width:100%;background:var(--background);font-family:var(--ion-font-family, inherit);text-align:center;contain:paint;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.segment-scrollable){-ms-flex-pack:start;justify-content:start;width:auto;overflow-x:auto;grid-auto-columns:minmax(-webkit-min-content, 1fr);grid-auto-columns:minmax(min-content, 1fr)}:host(.segment-scrollable::-webkit-scrollbar){display:none}:host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.065);border-radius:8px;overflow:hidden;z-index:0}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.065)}:host(.in-toolbar){-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:auto}:host(.in-toolbar:not(.ion-color)){background:var(--ion-toolbar-segment-background, var(--background))}:host(.in-toolbar-color:not(.ion-color)){background:rgba(var(--ion-color-contrast-rgb), 0.11)}`;
|
|
11
12
|
|
|
@@ -623,6 +624,7 @@ const SegmentButton = class {
|
|
|
623
624
|
this.updateState();
|
|
624
625
|
}
|
|
625
626
|
connectedCallback() {
|
|
627
|
+
this.tabindexController?.init();
|
|
626
628
|
const segmentEl = (this.segmentEl = this.el.closest('ion-segment'));
|
|
627
629
|
if (segmentEl) {
|
|
628
630
|
this.updateState();
|
|
@@ -631,6 +633,7 @@ const SegmentButton = class {
|
|
|
631
633
|
}
|
|
632
634
|
}
|
|
633
635
|
disconnectedCallback() {
|
|
636
|
+
this.tabindexController?.destroy();
|
|
634
637
|
const segmentEl = this.segmentEl;
|
|
635
638
|
if (segmentEl) {
|
|
636
639
|
removeEventListener(segmentEl, 'ionSelect', this.updateState);
|
|
@@ -642,6 +645,7 @@ const SegmentButton = class {
|
|
|
642
645
|
this.inheritedAttributes = {
|
|
643
646
|
...inheritAttributes(this.el, ['aria-label']),
|
|
644
647
|
};
|
|
648
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
645
649
|
// Return if there is no contentId defined
|
|
646
650
|
if (!this.contentId)
|
|
647
651
|
return;
|
|
@@ -687,8 +691,9 @@ const SegmentButton = class {
|
|
|
687
691
|
render() {
|
|
688
692
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
689
693
|
const mode = getIonMode(this);
|
|
694
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
690
695
|
const hasSegmentColor = () => segmentEl?.color !== undefined;
|
|
691
|
-
return (h(Host, { key: '
|
|
696
|
+
return (h(Host, { key: 'd0d37d00f921193edd3a3670363583d9ee1cfb39', class: {
|
|
692
697
|
[mode]: true,
|
|
693
698
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
694
699
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -704,7 +709,7 @@ const SegmentButton = class {
|
|
|
704
709
|
'ion-activatable': true,
|
|
705
710
|
'ion-activatable-instant': true,
|
|
706
711
|
'ion-focusable': true,
|
|
707
|
-
} }, h("button", { key: '
|
|
712
|
+
} }, 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" }))));
|
|
708
713
|
}
|
|
709
714
|
get el() { return getElement(this); }
|
|
710
715
|
static get watchers() { return {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, d as createEvent, i as config, a as printIonWarning, h, f as Host, g as getElement, j as forceUpdate } from './index-BpRUsN_W.js';
|
|
5
|
+
import { c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
5
6
|
import { E as ENABLE_HTML_CONTENT_DEFAULT } from './config-DWCzVL3Y.js';
|
|
6
7
|
import { g as getSlottedClickContent, c as createSlotMutationController, a as createNotchController, b as createStartEndContainerController, d as createClickController } from './slot-mutation-controller-uKdPbY9K.js';
|
|
7
8
|
import { c as compareOptions, i as isOptionSelected } from './compare-with-utils-sObYyvOy.js';
|
|
@@ -178,6 +179,7 @@ const Select = class {
|
|
|
178
179
|
}
|
|
179
180
|
async connectedCallback() {
|
|
180
181
|
const { el } = this;
|
|
182
|
+
this.tabindexController?.init();
|
|
181
183
|
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => {
|
|
182
184
|
this.startEndContainerController?.calculateContainerWidths();
|
|
183
185
|
forceUpdate(this);
|
|
@@ -239,6 +241,7 @@ const Select = class {
|
|
|
239
241
|
}
|
|
240
242
|
componentWillLoad() {
|
|
241
243
|
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
|
|
244
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
242
245
|
this.hintTextId = this.getHintTextId();
|
|
243
246
|
}
|
|
244
247
|
componentDidLoad() {
|
|
@@ -255,6 +258,7 @@ const Select = class {
|
|
|
255
258
|
this.emitStyle();
|
|
256
259
|
}
|
|
257
260
|
disconnectedCallback() {
|
|
261
|
+
this.tabindexController?.destroy();
|
|
258
262
|
if (this.mutationO) {
|
|
259
263
|
this.mutationO.disconnect();
|
|
260
264
|
this.mutationO = undefined;
|
|
@@ -845,7 +849,8 @@ const Select = class {
|
|
|
845
849
|
}
|
|
846
850
|
renderListbox() {
|
|
847
851
|
const { disabled, inputId, isExpanded, required } = this;
|
|
848
|
-
|
|
852
|
+
const tabindexAttributes = this.tabindexController?.attributes ?? {};
|
|
853
|
+
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 }));
|
|
849
854
|
}
|
|
850
855
|
getHintTextId() {
|
|
851
856
|
const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
|
|
@@ -895,7 +900,7 @@ const Select = class {
|
|
|
895
900
|
const hasOutlineFill = mode === 'md' && fill === 'outline';
|
|
896
901
|
renderHiddenInput(true, el, name, parseValue(value), disabled);
|
|
897
902
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || isExpanded));
|
|
898
|
-
return (h(Host, { key: '
|
|
903
|
+
return (h(Host, { key: '33b9006ae4d0190621c3ec6241db4507ef08e891', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
899
904
|
[mode]: true,
|
|
900
905
|
'in-item': inItem,
|
|
901
906
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -913,7 +918,7 @@ const Select = class {
|
|
|
913
918
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
914
919
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
915
920
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
916
|
-
}) }, h("label", { key: '
|
|
921
|
+
}) }, 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()));
|
|
917
922
|
}
|
|
918
923
|
get el() { return getElement(this); }
|
|
919
924
|
static get watchers() { return {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, d as createEvent, h, f as Host, g as getElement, i as config } from './index-BpRUsN_W.js';
|
|
4
|
+
import { r as registerInstance, d as createEvent, h, f as Host, g as getElement, i as config, j as forceUpdate } from './index-BpRUsN_W.js';
|
|
5
5
|
import { c as createKeyboardController } from './keyboard-controller-DqohyEsZ.js';
|
|
6
6
|
import { c as createColorClasses } from './theme-byZM6qHV.js';
|
|
7
7
|
import { b as getIonMode } from './ionic-global-Cep6oYzK.js';
|
|
8
|
+
import { c as createTabindexController } from './attribute-controller-BMdZtDiw.js';
|
|
8
9
|
import { b as inheritAttributes } from './helpers-p94IkmEA.js';
|
|
9
10
|
import './keyboard-CutS8BPd.js';
|
|
10
11
|
import './capacitor-BY7l8HgR.js';
|
|
@@ -151,10 +152,17 @@ const TabButton = class {
|
|
|
151
152
|
this.inheritedAttributes = {
|
|
152
153
|
...inheritAttributes(this.el, ['aria-label']),
|
|
153
154
|
};
|
|
155
|
+
this.tabindexController = createTabindexController(this.el, () => forceUpdate(this));
|
|
154
156
|
if (this.layout === undefined) {
|
|
155
157
|
this.layout = config.get('tabButtonLayout', 'icon-top');
|
|
156
158
|
}
|
|
157
159
|
}
|
|
160
|
+
connectedCallback() {
|
|
161
|
+
this.tabindexController?.init();
|
|
162
|
+
}
|
|
163
|
+
disconnectedCallback() {
|
|
164
|
+
this.tabindexController?.destroy();
|
|
165
|
+
}
|
|
158
166
|
selectTab(ev) {
|
|
159
167
|
if (this.tab !== undefined) {
|
|
160
168
|
if (!this.disabled) {
|
|
@@ -176,13 +184,14 @@ const TabButton = class {
|
|
|
176
184
|
render() {
|
|
177
185
|
const { disabled, hasIcon, hasLabel, href, rel, target, layout, selected, tab, inheritedAttributes } = this;
|
|
178
186
|
const mode = getIonMode(this);
|
|
187
|
+
const tabindex = this.tabindexController?.attributes.tabindex;
|
|
179
188
|
const attrs = {
|
|
180
189
|
download: this.download,
|
|
181
190
|
href,
|
|
182
191
|
rel,
|
|
183
192
|
target,
|
|
184
193
|
};
|
|
185
|
-
return (h(Host, { key: '
|
|
194
|
+
return (h(Host, { key: '177c6c12cbee6e5e0b54375edb62d2a05b51b27b', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
186
195
|
[mode]: true,
|
|
187
196
|
'tab-selected': selected,
|
|
188
197
|
'tab-disabled': disabled,
|
|
@@ -194,7 +203,7 @@ const TabButton = class {
|
|
|
194
203
|
'ion-activatable': true,
|
|
195
204
|
'ion-selectable': true,
|
|
196
205
|
'ion-focusable': true,
|
|
197
|
-
} }, h("a", { key: '
|
|
206
|
+
} }, 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" }))));
|
|
198
207
|
}
|
|
199
208
|
get el() { return getElement(this); }
|
|
200
209
|
};
|