@ionic/core 8.7.3-dev.11755600455.1e79c35a → 8.7.3-dev.11755622775.1fc05815
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-datetime.js +3 -4
- package/components/ion-input.js +36 -5
- package/components/ion-refresher.js +18 -1
- package/components/ion-textarea.js +35 -4
- package/components/overlays.js +97 -3
- package/components/picker-column-option.js +3 -3
- package/components/picker-column.js +39 -3
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +1 -1
- package/dist/cjs/ion-alert.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-input.cjs.entry.js +35 -5
- package/dist/cjs/ion-loading.cjs.entry.js +1 -1
- package/dist/cjs/ion-menu_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +3 -3
- package/dist/cjs/ion-picker-column.cjs.entry.js +39 -3
- package/dist/cjs/ion-popover.cjs.entry.js +1 -1
- package/dist/cjs/ion-refresher_2.cjs.entry.js +18 -1
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-textarea.cjs.entry.js +34 -4
- package/dist/cjs/ion-toast.cjs.entry.js +1 -1
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{overlays-DUsEBICv.js → overlays-CglR7j-u.js} +96 -2
- package/dist/collection/components/datetime/datetime.js +3 -4
- package/dist/collection/components/input/input.js +37 -6
- package/dist/collection/components/picker-column/picker-column.js +39 -3
- package/dist/collection/components/picker-column-option/picker-column-option.ios.css +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +1 -1
- package/dist/collection/components/picker-column-option/picker-column-option.md.css +2 -2
- package/dist/collection/components/refresher/refresher.js +18 -1
- package/dist/collection/components/textarea/textarea.js +36 -5
- package/dist/collection/utils/overlays.js +97 -2
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +1 -1
- package/dist/esm/ion-alert.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-input.entry.js +35 -5
- package/dist/esm/ion-loading.entry.js +1 -1
- package/dist/esm/ion-menu_3.entry.js +1 -1
- package/dist/esm/ion-modal.entry.js +1 -1
- package/dist/esm/ion-picker-column-option.entry.js +3 -3
- package/dist/esm/ion-picker-column.entry.js +39 -3
- package/dist/esm/ion-popover.entry.js +1 -1
- package/dist/esm/ion-refresher_2.entry.js +18 -1
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +1 -1
- package/dist/esm/ion-textarea.entry.js +34 -4
- package/dist/esm/ion-toast.entry.js +1 -1
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{overlays-B_dsLNe8.js → overlays-ZX_4-t_r.js} +97 -3
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-187aaf4a.entry.js +4 -0
- package/dist/ionic/p-1d5b934a.entry.js +4 -0
- package/dist/ionic/p-1e34d434.entry.js +4 -0
- package/dist/ionic/p-29032e49.entry.js +4 -0
- package/dist/ionic/{p-8b54aa01.entry.js → p-7bac2c5f.entry.js} +1 -1
- package/dist/ionic/p-8cdb4ff5.entry.js +4 -0
- package/dist/ionic/{p-7ed24ba0.entry.js → p-8d96a0cd.entry.js} +1 -1
- package/dist/ionic/{p-84236acb.entry.js → p-91d6ccb0.entry.js} +1 -1
- package/dist/ionic/{p-09ed68cf.entry.js → p-92e8f208.entry.js} +1 -1
- package/dist/ionic/{p-98d0823e.entry.js → p-982fe1c4.entry.js} +1 -1
- package/dist/ionic/p-CSwZyt05.js +4 -0
- package/dist/ionic/{p-698fb72c.entry.js → p-ab33ef20.entry.js} +1 -1
- package/dist/ionic/{p-07d8f62a.entry.js → p-ac434970.entry.js} +1 -1
- package/dist/ionic/{p-57bb1214.entry.js → p-c575e7ce.entry.js} +1 -1
- package/dist/ionic/{p-9c6fddc6.entry.js → p-f2884bc2.entry.js} +1 -1
- package/dist/ionic/p-f456d176.entry.js +4 -0
- package/dist/types/components/input/input.d.ts +9 -0
- package/dist/types/components/picker-column/picker-column.d.ts +7 -0
- package/dist/types/components/textarea/textarea.d.ts +9 -0
- package/hydrate/index.js +204 -21
- package/hydrate/index.mjs +204 -21
- package/package.json +1 -1
- package/dist/ionic/p-1488b7cc.entry.js +0 -4
- package/dist/ionic/p-8888efe4.entry.js +0 -4
- package/dist/ionic/p-8bfe00f3.entry.js +0 -4
- package/dist/ionic/p-C3MD7jSK.js +0 -4
- package/dist/ionic/p-ac2be9d6.entry.js +0 -4
- package/dist/ionic/p-b292804d.entry.js +0 -4
- package/dist/ionic/p-c5210d3e.entry.js +0 -4
|
@@ -5,7 +5,6 @@ import { proxyCustomElement, HTMLElement, createEvent, writeTask, h, Host } from
|
|
|
5
5
|
import { startFocusVisible } from './focus-visible.js';
|
|
6
6
|
import { r as raf, g as getElementRoot, e as renderHiddenInput } from './helpers.js';
|
|
7
7
|
import { a as printIonError, p as printIonWarning } from './index4.js';
|
|
8
|
-
import { F as FOCUS_TRAP_DISABLE_CLASS } from './overlays.js';
|
|
9
8
|
import { i as isRTL } from './dir.js';
|
|
10
9
|
import { c as createColorClasses } from './theme.js';
|
|
11
10
|
import { c as chevronDown, f as caretUpSharp, g as chevronForward, h as caretDownSharp, a as chevronBack } from './index6.js';
|
|
@@ -1303,7 +1302,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1303
1302
|
const renderArray = forcePresentation === 'time-date'
|
|
1304
1303
|
? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
|
|
1305
1304
|
: [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
|
|
1306
|
-
return h("ion-picker",
|
|
1305
|
+
return h("ion-picker", null, renderArray);
|
|
1307
1306
|
}
|
|
1308
1307
|
renderDatePickerColumns(forcePresentation) {
|
|
1309
1308
|
return forcePresentation === 'date-time' || forcePresentation === 'time-date'
|
|
@@ -1860,7 +1859,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1860
1859
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1861
1860
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1862
1861
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
1863
|
-
return (h(Host, { key: '
|
|
1862
|
+
return (h(Host, { key: 'f35cf200ff05d33074576e3d2754d3b2a0735b96', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
|
|
1864
1863
|
[mode]: true,
|
|
1865
1864
|
['datetime-readonly']: readonly,
|
|
1866
1865
|
['datetime-disabled']: disabled,
|
|
@@ -1870,7 +1869,7 @@ const Datetime = /*@__PURE__*/ proxyCustomElement(class Datetime extends HTMLEle
|
|
|
1870
1869
|
[`datetime-size-${size}`]: true,
|
|
1871
1870
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1872
1871
|
[`datetime-grid`]: isGridStyle,
|
|
1873
|
-
})) }, h("div", { key: '
|
|
1872
|
+
})) }, h("div", { key: '859e9354a12bfa58ac3f964c2e66839f17071c00', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
1874
1873
|
}
|
|
1875
1874
|
get el() { return this; }
|
|
1876
1875
|
static get watchers() { return {
|
package/components/ion-input.js
CHANGED
|
@@ -43,6 +43,10 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
43
43
|
* is applied in both cases.
|
|
44
44
|
*/
|
|
45
45
|
this.hasFocus = false;
|
|
46
|
+
/**
|
|
47
|
+
* Track validation state for proper aria-live announcements
|
|
48
|
+
*/
|
|
49
|
+
this.isInvalid = false;
|
|
46
50
|
/**
|
|
47
51
|
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
48
52
|
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
@@ -227,10 +231,31 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
227
231
|
componentWillLoad() {
|
|
228
232
|
this.inheritedAttributes = Object.assign(Object.assign({}, inheritAriaAttributes(this.el)), inheritAttributes(this.el, ['tabindex', 'title', 'data-form-type', 'dir']));
|
|
229
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* Checks if the input is in an invalid state based on validation classes
|
|
236
|
+
*/
|
|
237
|
+
checkValidationState() {
|
|
238
|
+
return this.el.classList.contains('ion-touched') && this.el.classList.contains('ion-invalid');
|
|
239
|
+
}
|
|
230
240
|
connectedCallback() {
|
|
231
241
|
const { el } = this;
|
|
232
242
|
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => forceUpdate(this));
|
|
233
243
|
this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
|
|
244
|
+
// Watch for class changes to update validation state
|
|
245
|
+
if (Build.isBrowser && typeof MutationObserver !== 'undefined') {
|
|
246
|
+
this.validationObserver = new MutationObserver(() => {
|
|
247
|
+
const newIsInvalid = this.checkValidationState();
|
|
248
|
+
if (this.isInvalid !== newIsInvalid) {
|
|
249
|
+
this.isInvalid = newIsInvalid;
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
this.validationObserver.observe(el, {
|
|
253
|
+
attributes: true,
|
|
254
|
+
attributeFilter: ['class'],
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
// Always set initial state
|
|
258
|
+
this.isInvalid = this.checkValidationState();
|
|
234
259
|
this.debounceChanged();
|
|
235
260
|
if (Build.isBrowser) {
|
|
236
261
|
document.dispatchEvent(new CustomEvent('ionInputDidLoad', {
|
|
@@ -267,6 +292,11 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
267
292
|
this.notchController.destroy();
|
|
268
293
|
this.notchController = undefined;
|
|
269
294
|
}
|
|
295
|
+
// Clean up validation observer to prevent memory leaks
|
|
296
|
+
if (this.validationObserver) {
|
|
297
|
+
this.validationObserver.disconnect();
|
|
298
|
+
this.validationObserver = undefined;
|
|
299
|
+
}
|
|
270
300
|
}
|
|
271
301
|
/**
|
|
272
302
|
* Sets focus on the native `input` in `ion-input`. Use this method instead of the global
|
|
@@ -375,8 +405,8 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
375
405
|
];
|
|
376
406
|
}
|
|
377
407
|
getHintTextID() {
|
|
378
|
-
const {
|
|
379
|
-
if (
|
|
408
|
+
const { isInvalid, helperText, errorText, helperTextId, errorTextId } = this;
|
|
409
|
+
if (isInvalid && errorText) {
|
|
380
410
|
return errorTextId;
|
|
381
411
|
}
|
|
382
412
|
if (helperText) {
|
|
@@ -489,7 +519,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
489
519
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
490
520
|
*/
|
|
491
521
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
492
|
-
return (h(Host, { key: '
|
|
522
|
+
return (h(Host, { key: '1b0cffa910aef4eac24438bf3158e51905e70788', class: createColorClasses(this.color, {
|
|
493
523
|
[mode]: true,
|
|
494
524
|
'has-value': hasValue,
|
|
495
525
|
'has-focus': hasFocus,
|
|
@@ -500,14 +530,14 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
500
530
|
'in-item': inItem,
|
|
501
531
|
'in-item-color': hostContext('ion-item.ion-color', this.el),
|
|
502
532
|
'input-disabled': disabled,
|
|
503
|
-
}) }, h("label", { key: '
|
|
533
|
+
}) }, h("label", { key: '24411a6cc190e2054015bca5e2827b96c65bba17', class: "input-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: '7fa7a7f6d2778e6efbebc6f2671d8a63048f76a8', class: "native-wrapper", onClick: this.onLabelClick }, h("slot", { key: '14f489e6026967ee1b2eee1519bad4230f028489', name: "start" }), h("input", Object.assign({ key: 'd0f5b756394aced0831e80e91313a417bda37e6f', class: "native-input", ref: (input) => (this.nativeInput = input), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, min: this.min, max: this.max, minLength: this.minlength, maxLength: this.maxlength, multiple: this.multiple, name: this.name, pattern: this.pattern, placeholder: this.placeholder || '', readOnly: readonly, required: this.required, spellcheck: this.spellcheck, step: this.step, type: this.type, value: value, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeydown, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined }, this.inheritedAttributes)), this.clearInput && !readonly && !disabled && (h("button", { key: '3e37003927082bbbfce4b3396a263969aa2289fc', "aria-label": "reset", type: "button", class: "input-clear-icon", onPointerDown: (ev) => {
|
|
504
534
|
/**
|
|
505
535
|
* This prevents mobile browsers from
|
|
506
536
|
* blurring the input when the clear
|
|
507
537
|
* button is activated.
|
|
508
538
|
*/
|
|
509
539
|
ev.preventDefault();
|
|
510
|
-
}, onClick: this.clearTextInput }, h("ion-icon", { key: '
|
|
540
|
+
}, onClick: this.clearTextInput }, h("ion-icon", { key: '269ccdfd95a8a5b39bf0587b1494b4badd5c65b3', "aria-hidden": "true", icon: clearIconData }))), h("slot", { key: '5d93a350194c4197c01c5d54f50060e7f527f065', name: "end" })), shouldRenderHighlight && h("div", { key: 'fbdd13d41b37aa1e4608ba2535f7b833748eae3f', class: "input-highlight" })), this.renderBottomContent()));
|
|
511
541
|
}
|
|
512
542
|
get el() { return this; }
|
|
513
543
|
static get watchers() { return {
|
|
@@ -556,6 +586,7 @@ const Input = /*@__PURE__*/ proxyCustomElement(class Input extends HTMLElement {
|
|
|
556
586
|
"type": [1],
|
|
557
587
|
"value": [1032],
|
|
558
588
|
"hasFocus": [32],
|
|
589
|
+
"isInvalid": [32],
|
|
559
590
|
"setFocus": [64],
|
|
560
591
|
"getInputElement": [64]
|
|
561
592
|
}, [[2, "click", "onClickCapture"]], {
|
|
@@ -182,6 +182,14 @@ const Refresher = /*@__PURE__*/ proxyCustomElement(class Refresher extends HTMLE
|
|
|
182
182
|
this.beginRefresh();
|
|
183
183
|
this.didRefresh = true;
|
|
184
184
|
hapticImpact({ style: ImpactStyle.Light });
|
|
185
|
+
/**
|
|
186
|
+
* Clear focus from any active element to prevent scroll jumps
|
|
187
|
+
* when the refresh completes
|
|
188
|
+
*/
|
|
189
|
+
const activeElement = document.activeElement;
|
|
190
|
+
if ((activeElement === null || activeElement === void 0 ? void 0 : activeElement.blur) !== undefined) {
|
|
191
|
+
activeElement.blur();
|
|
192
|
+
}
|
|
185
193
|
/**
|
|
186
194
|
* Translate the content element otherwise when pointer is removed
|
|
187
195
|
* from screen the scroll content will bounce back over the refresher
|
|
@@ -597,6 +605,15 @@ const Refresher = /*@__PURE__*/ proxyCustomElement(class Refresher extends HTMLE
|
|
|
597
605
|
this.state = 8 /* RefresherState.Refreshing */;
|
|
598
606
|
// place the content in a hangout position while it thinks
|
|
599
607
|
this.setCss(this.pullMin, this.snapbackDuration, true, '');
|
|
608
|
+
/**
|
|
609
|
+
* Clear focus from any active element to prevent the browser
|
|
610
|
+
* from restoring focus and causing scroll jumps after refresh.
|
|
611
|
+
* This ensures the view stays at the top after refresh completes.
|
|
612
|
+
*/
|
|
613
|
+
const activeElement = document.activeElement;
|
|
614
|
+
if ((activeElement === null || activeElement === void 0 ? void 0 : activeElement.blur) !== undefined) {
|
|
615
|
+
activeElement.blur();
|
|
616
|
+
}
|
|
600
617
|
// emit "refresh" because it was pulled down far enough
|
|
601
618
|
// and they let go to begin refreshing
|
|
602
619
|
this.ionRefresh.emit({
|
|
@@ -679,7 +696,7 @@ const Refresher = /*@__PURE__*/ proxyCustomElement(class Refresher extends HTMLE
|
|
|
679
696
|
}
|
|
680
697
|
render() {
|
|
681
698
|
const mode = getIonMode(this);
|
|
682
|
-
return (h(Host, { key: '
|
|
699
|
+
return (h(Host, { key: '2d1bd880877b698604542ab2d602d38b9504d975', slot: "fixed", class: {
|
|
683
700
|
[mode]: true,
|
|
684
701
|
// Used internally for styling
|
|
685
702
|
[`refresher-${mode}`]: true,
|
|
@@ -40,6 +40,10 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
40
40
|
* is applied in both cases.
|
|
41
41
|
*/
|
|
42
42
|
this.hasFocus = false;
|
|
43
|
+
/**
|
|
44
|
+
* Track validation state for proper aria-live announcements
|
|
45
|
+
*/
|
|
46
|
+
this.isInvalid = false;
|
|
43
47
|
/**
|
|
44
48
|
* Indicates whether and how the text value should be automatically capitalized as it is entered/edited by the user.
|
|
45
49
|
* Available options: `"off"`, `"none"`, `"on"`, `"sentences"`, `"words"`, `"characters"`.
|
|
@@ -186,10 +190,31 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
186
190
|
this.el.click();
|
|
187
191
|
}
|
|
188
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* Checks if the textarea is in an invalid state based on validation classes
|
|
195
|
+
*/
|
|
196
|
+
checkValidationState() {
|
|
197
|
+
return this.el.classList.contains('ion-touched') && this.el.classList.contains('ion-invalid');
|
|
198
|
+
}
|
|
189
199
|
connectedCallback() {
|
|
190
200
|
const { el } = this;
|
|
191
201
|
this.slotMutationController = createSlotMutationController(el, ['label', 'start', 'end'], () => forceUpdate(this));
|
|
192
202
|
this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
|
|
203
|
+
// Watch for class changes to update validation state
|
|
204
|
+
if (Build.isBrowser && typeof MutationObserver !== 'undefined') {
|
|
205
|
+
this.validationObserver = new MutationObserver(() => {
|
|
206
|
+
const newIsInvalid = this.checkValidationState();
|
|
207
|
+
if (this.isInvalid !== newIsInvalid) {
|
|
208
|
+
this.isInvalid = newIsInvalid;
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
this.validationObserver.observe(el, {
|
|
212
|
+
attributes: true,
|
|
213
|
+
attributeFilter: ['class'],
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
// Always set initial state
|
|
217
|
+
this.isInvalid = this.checkValidationState();
|
|
193
218
|
this.debounceChanged();
|
|
194
219
|
if (Build.isBrowser) {
|
|
195
220
|
document.dispatchEvent(new CustomEvent('ionInputDidLoad', {
|
|
@@ -211,6 +236,11 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
211
236
|
this.notchController.destroy();
|
|
212
237
|
this.notchController = undefined;
|
|
213
238
|
}
|
|
239
|
+
// Clean up validation observer to prevent memory leaks
|
|
240
|
+
if (this.validationObserver) {
|
|
241
|
+
this.validationObserver.disconnect();
|
|
242
|
+
this.validationObserver = undefined;
|
|
243
|
+
}
|
|
214
244
|
}
|
|
215
245
|
componentWillLoad() {
|
|
216
246
|
this.inheritedAttributes = Object.assign(Object.assign({}, inheritAriaAttributes(this.el)), inheritAttributes(this.el, ['data-form-type', 'title', 'tabindex', 'dir']));
|
|
@@ -388,8 +418,8 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
388
418
|
];
|
|
389
419
|
}
|
|
390
420
|
getHintTextID() {
|
|
391
|
-
const {
|
|
392
|
-
if (
|
|
421
|
+
const { isInvalid, helperText, errorText, helperTextId, errorTextId } = this;
|
|
422
|
+
if (isInvalid && errorText) {
|
|
393
423
|
return errorTextId;
|
|
394
424
|
}
|
|
395
425
|
if (helperText) {
|
|
@@ -448,7 +478,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
448
478
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
449
479
|
*/
|
|
450
480
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
451
|
-
return (h(Host, { key: '
|
|
481
|
+
return (h(Host, { key: 'de258335fde7fa934cf3bd58c469525440457468', class: createColorClasses(this.color, {
|
|
452
482
|
[mode]: true,
|
|
453
483
|
'has-value': hasValue,
|
|
454
484
|
'has-focus': hasFocus,
|
|
@@ -457,7 +487,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
457
487
|
[`textarea-shape-${shape}`]: shape !== undefined,
|
|
458
488
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
459
489
|
'textarea-disabled': disabled,
|
|
460
|
-
}) }, h("label", { key: '
|
|
490
|
+
}) }, h("label", { key: '79fc87122871d45316b1c5fd0a467bf85351e804', class: "textarea-wrapper", htmlFor: inputId, onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: '2375888a47557b41ea3b3bf8eae1fd3f2a4032bd', class: "textarea-wrapper-inner" }, h("div", { key: 'c5af683527a870bd85256b6de8a7d216283403dd', class: "start-slot-wrapper" }, h("slot", { key: 'd972e5784403c5cc6ed067ae578ce23ff8303e1e', name: "start" })), h("div", { key: '1092067609d912a76a8679767611e4ca3e071c6f', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, h("textarea", Object.assign({ key: 'cd23a4bad4d5b460830340009d24d0618f14fd73', class: "native-textarea", ref: (el) => (this.nativeInput = el), id: inputId, disabled: disabled, autoCapitalize: this.autocapitalize, autoFocus: this.autofocus, enterKeyHint: this.enterkeyhint, inputMode: this.inputmode, minLength: this.minlength, maxLength: this.maxlength, name: this.name, placeholder: this.placeholder || '', readOnly: this.readonly, required: this.required, spellcheck: this.spellcheck, cols: this.cols, rows: this.rows, wrap: this.wrap, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, "aria-describedby": this.getHintTextID(), "aria-invalid": this.isInvalid ? 'true' : undefined }, this.inheritedAttributes), value)), h("div", { key: 'c91a5456f4490ef8699f2e44b4a6c64f6084f5fd', class: "end-slot-wrapper" }, h("slot", { key: 'b71ba7ba0d74091e81784432dcffa832b66f3f25', name: "end" }))), shouldRenderHighlight && h("div", { key: '757c3287e1cea5ee851227407685a437f8408c54', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
461
491
|
}
|
|
462
492
|
get el() { return this; }
|
|
463
493
|
static get watchers() { return {
|
|
@@ -499,6 +529,7 @@ const Textarea = /*@__PURE__*/ proxyCustomElement(class Textarea extends HTMLEle
|
|
|
499
529
|
"labelPlacement": [1, "label-placement"],
|
|
500
530
|
"shape": [1],
|
|
501
531
|
"hasFocus": [32],
|
|
532
|
+
"isInvalid": [32],
|
|
502
533
|
"setFocus": [64],
|
|
503
534
|
"getInputElement": [64]
|
|
504
535
|
}, [[2, "click", "onClickCapture"]], {
|
package/components/overlays.js
CHANGED
|
@@ -5,7 +5,7 @@ import { d as doc } from './index9.js';
|
|
|
5
5
|
import { h as focusVisibleElement, c as componentOnReady, a as addEventListener, b as removeEventListener, g as getElementRoot } from './helpers.js';
|
|
6
6
|
import { OVERLAY_BACK_BUTTON_PRIORITY, shouldUseCloseWatcher } from './hardware-back-button.js';
|
|
7
7
|
import { c as config, a as printIonError, p as printIonWarning } from './index4.js';
|
|
8
|
-
import { b as getIonMode } from './ionic-global.js';
|
|
8
|
+
import { b as getIonMode, a as isPlatform } from './ionic-global.js';
|
|
9
9
|
import { C as CoreDelegate } from './framework-delegate.js';
|
|
10
10
|
import { B as BACKDROP_NO_SCROLL } from './gesture-controller.js';
|
|
11
11
|
|
|
@@ -496,11 +496,9 @@ const setRootAriaHidden = (hidden = false) => {
|
|
|
496
496
|
}
|
|
497
497
|
if (hidden) {
|
|
498
498
|
viewContainer.setAttribute('aria-hidden', 'true');
|
|
499
|
-
viewContainer.setAttribute('inert', '');
|
|
500
499
|
}
|
|
501
500
|
else {
|
|
502
501
|
viewContainer.removeAttribute('aria-hidden');
|
|
503
|
-
viewContainer.removeAttribute('inert');
|
|
504
502
|
}
|
|
505
503
|
};
|
|
506
504
|
const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts) => {
|
|
@@ -519,6 +517,8 @@ const present = async (overlay, name, iosEnterAnimation, mdEnterAnimation, opts)
|
|
|
519
517
|
setRootAriaHidden(true);
|
|
520
518
|
document.body.classList.add(BACKDROP_NO_SCROLL);
|
|
521
519
|
}
|
|
520
|
+
hideUnderlyingOverlaysFromScreenReaders(overlay.el);
|
|
521
|
+
hideAnimatingOverlayFromScreenReaders(overlay.el);
|
|
522
522
|
overlay.presented = true;
|
|
523
523
|
overlay.willPresent.emit();
|
|
524
524
|
(_a = overlay.willPresentShorthand) === null || _a === void 0 ? void 0 : _a.emit();
|
|
@@ -644,6 +644,12 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
644
644
|
}
|
|
645
645
|
overlay.presented = false;
|
|
646
646
|
try {
|
|
647
|
+
/**
|
|
648
|
+
* There is no need to show the overlay to screen readers during
|
|
649
|
+
* the dismiss animation. This is because the overlay will be removed
|
|
650
|
+
* from the DOM after the animation is complete.
|
|
651
|
+
*/
|
|
652
|
+
hideAnimatingOverlayFromScreenReaders(overlay.el);
|
|
647
653
|
// Overlay contents should not be clickable during dismiss
|
|
648
654
|
overlay.el.style.setProperty('pointer-events', 'none');
|
|
649
655
|
overlay.willDismiss.emit({ data, role });
|
|
@@ -682,6 +688,7 @@ const dismiss = async (overlay, data, role, name, iosLeaveAnimation, mdLeaveAnim
|
|
|
682
688
|
printIonError(`[${overlay.el.tagName.toLowerCase()}] - `, err);
|
|
683
689
|
}
|
|
684
690
|
overlay.el.remove();
|
|
691
|
+
revealOverlaysToScreenReaders();
|
|
685
692
|
return true;
|
|
686
693
|
};
|
|
687
694
|
const getAppRoot = (doc) => {
|
|
@@ -877,6 +884,93 @@ const createTriggerController = () => {
|
|
|
877
884
|
removeClickListener,
|
|
878
885
|
};
|
|
879
886
|
};
|
|
887
|
+
/**
|
|
888
|
+
* The overlay that is being animated also needs to hide from screen
|
|
889
|
+
* readers during its animation. This ensures that assistive technologies
|
|
890
|
+
* like TalkBack do not announce or interact with the content until the
|
|
891
|
+
* animation is complete, avoiding confusion for users.
|
|
892
|
+
*
|
|
893
|
+
* When the overlay is presented on an Android device, TalkBack's focus rings
|
|
894
|
+
* may appear in the wrong position due to the transition (specifically
|
|
895
|
+
* `transform` styles). This occurs because the focus rings are initially
|
|
896
|
+
* displayed at the starting position of the elements before the transition
|
|
897
|
+
* begins. This workaround ensures the focus rings do not appear in the
|
|
898
|
+
* incorrect location.
|
|
899
|
+
*
|
|
900
|
+
* If this solution is applied to iOS devices, then it leads to a bug where
|
|
901
|
+
* the overlays cannot be accessed by screen readers. This is due to
|
|
902
|
+
* VoiceOver not being able to update the accessibility tree when the
|
|
903
|
+
* `aria-hidden` is removed.
|
|
904
|
+
*
|
|
905
|
+
* @param overlay - The overlay that is being animated.
|
|
906
|
+
*/
|
|
907
|
+
const hideAnimatingOverlayFromScreenReaders = (overlay) => {
|
|
908
|
+
if (doc === undefined)
|
|
909
|
+
return;
|
|
910
|
+
if (isPlatform('android')) {
|
|
911
|
+
/**
|
|
912
|
+
* Once the animation is complete, this attribute will be removed.
|
|
913
|
+
* This is done at the end of the `present` method.
|
|
914
|
+
*/
|
|
915
|
+
overlay.setAttribute('aria-hidden', 'true');
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
919
|
+
* Ensure that underlying overlays have aria-hidden if necessary so that screen readers
|
|
920
|
+
* cannot move focus to these elements. Note that we cannot rely on focus/focusin/focusout
|
|
921
|
+
* events here because those events do not fire when the screen readers moves to a non-focusable
|
|
922
|
+
* element such as text.
|
|
923
|
+
* Without this logic screen readers would be able to move focus outside of the top focus-trapped overlay.
|
|
924
|
+
*
|
|
925
|
+
* @param newTopMostOverlay - The overlay that is being presented. Since the overlay has not been
|
|
926
|
+
* fully presented yet at the time this function is called it will not be included in the getPresentedOverlays result.
|
|
927
|
+
*/
|
|
928
|
+
const hideUnderlyingOverlaysFromScreenReaders = (newTopMostOverlay) => {
|
|
929
|
+
var _a;
|
|
930
|
+
if (doc === undefined)
|
|
931
|
+
return;
|
|
932
|
+
const overlays = getPresentedOverlays(doc);
|
|
933
|
+
for (let i = overlays.length - 1; i >= 0; i--) {
|
|
934
|
+
const presentedOverlay = overlays[i];
|
|
935
|
+
const nextPresentedOverlay = (_a = overlays[i + 1]) !== null && _a !== void 0 ? _a : newTopMostOverlay;
|
|
936
|
+
/**
|
|
937
|
+
* If next overlay has aria-hidden then all remaining overlays will have it too.
|
|
938
|
+
* Or, if the next overlay is a Toast that does not have aria-hidden then current overlay
|
|
939
|
+
* should not have aria-hidden either so focus can remain in the current overlay.
|
|
940
|
+
*/
|
|
941
|
+
if (nextPresentedOverlay.hasAttribute('aria-hidden') || nextPresentedOverlay.tagName !== 'ION-TOAST') {
|
|
942
|
+
presentedOverlay.setAttribute('aria-hidden', 'true');
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
/**
|
|
947
|
+
* When dismissing an overlay we need to reveal the new top-most overlay to screen readers.
|
|
948
|
+
* If the top-most overlay is a Toast we potentially need to reveal more overlays since
|
|
949
|
+
* focus is never automatically moved to the Toast.
|
|
950
|
+
*/
|
|
951
|
+
const revealOverlaysToScreenReaders = () => {
|
|
952
|
+
if (doc === undefined)
|
|
953
|
+
return;
|
|
954
|
+
const overlays = getPresentedOverlays(doc);
|
|
955
|
+
for (let i = overlays.length - 1; i >= 0; i--) {
|
|
956
|
+
const currentOverlay = overlays[i];
|
|
957
|
+
/**
|
|
958
|
+
* If the current we are looking at is a Toast then we can remove aria-hidden.
|
|
959
|
+
* However, we potentially need to keep looking at the overlay stack because there
|
|
960
|
+
* could be more Toasts underneath. Additionally, we need to unhide the closest non-Toast
|
|
961
|
+
* overlay too so focus can move there since focus is never automatically moved to the Toast.
|
|
962
|
+
*/
|
|
963
|
+
currentOverlay.removeAttribute('aria-hidden');
|
|
964
|
+
/**
|
|
965
|
+
* If we found a non-Toast element then we can just remove aria-hidden and stop searching entirely
|
|
966
|
+
* since this overlay should always receive focus. As a result, all underlying overlays should still
|
|
967
|
+
* be hidden from screen readers.
|
|
968
|
+
*/
|
|
969
|
+
if (currentOverlay.tagName !== 'ION-TOAST') {
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
};
|
|
880
974
|
const FOCUS_TRAP_DISABLE_CLASS = 'ion-disable-focus-trap';
|
|
881
975
|
|
|
882
976
|
export { BACKDROP as B, FOCUS_TRAP_DISABLE_CLASS as F, GESTURE as G, OVERLAY_GESTURE_PRIORITY as O, alertController as a, actionSheetController as b, popoverController as c, createDelegateController as d, createTriggerController as e, present as f, dismiss as g, eventMethod as h, isCancel as i, prepareOverlay as j, setOverlayId as k, loadingController as l, modalController as m, focusFirstDescendant as n, getPresentedOverlay as o, pickerController as p, focusLastDescendant as q, safeCall as s, toastController as t };
|
|
@@ -6,9 +6,9 @@ import { d as inheritAttributes } from './helpers.js';
|
|
|
6
6
|
import { c as createColorClasses } from './theme.js';
|
|
7
7
|
import { b as getIonMode } from './ionic-global.js';
|
|
8
8
|
|
|
9
|
-
const pickerColumnOptionIosCss = "
|
|
9
|
+
const pickerColumnOptionIosCss = "button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}";
|
|
10
10
|
|
|
11
|
-
const pickerColumnOptionMdCss = "
|
|
11
|
+
const pickerColumnOptionMdCss = "button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden}:host(.option-disabled){opacity:0.4}:host(.option-disabled) button{cursor:default}:host(.option-active){color:var(--ion-color-base)}";
|
|
12
12
|
|
|
13
13
|
const PickerColumnOption = /*@__PURE__*/ proxyCustomElement(class PickerColumnOption extends HTMLElement {
|
|
14
14
|
constructor() {
|
|
@@ -102,7 +102,7 @@ const PickerColumnOption = /*@__PURE__*/ proxyCustomElement(class PickerColumnOp
|
|
|
102
102
|
return (h(Host, { key: 'f816729941aabcb31ddfdce3ffe2e2139030d715', class: createColorClasses(color, {
|
|
103
103
|
[mode]: true,
|
|
104
104
|
['option-disabled']: disabled,
|
|
105
|
-
}) }, h("
|
|
105
|
+
}) }, h("button", { key: '48dff7833bb60fc8331cd353a0885e6affa683d1', tabindex: "-1", "aria-label": ariaLabel, disabled: disabled, onClick: () => this.onClick() }, h("slot", { key: 'f9224d0e7b7aa6c05b29abfdcfe0f30ad6ee3141' }))));
|
|
106
106
|
}
|
|
107
107
|
get el() { return this; }
|
|
108
108
|
static get watchers() { return {
|
|
@@ -409,6 +409,23 @@ const PickerColumn = /*@__PURE__*/ proxyCustomElement(class PickerColumn extends
|
|
|
409
409
|
var _a;
|
|
410
410
|
return el ? (_a = el.getAttribute('aria-label')) !== null && _a !== void 0 ? _a : el.innerText : '';
|
|
411
411
|
};
|
|
412
|
+
/**
|
|
413
|
+
* Render an element that overlays the column. This element is for assistive
|
|
414
|
+
* tech to allow users to navigate the column up/down. This element should receive
|
|
415
|
+
* focus as it listens for synthesized keyboard events as required by the
|
|
416
|
+
* slider role: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/slider_role
|
|
417
|
+
*/
|
|
418
|
+
this.renderAssistiveFocusable = () => {
|
|
419
|
+
const { activeItem } = this;
|
|
420
|
+
const valueText = this.getOptionValueText(activeItem);
|
|
421
|
+
/**
|
|
422
|
+
* When using the picker, the valuetext provides important context that valuenow
|
|
423
|
+
* does not. Additionally, using non-zero valuemin/valuemax values can cause
|
|
424
|
+
* WebKit to incorrectly announce numeric valuetext values (such as a year
|
|
425
|
+
* like "2024") as percentages: https://bugs.webkit.org/show_bug.cgi?id=273126
|
|
426
|
+
*/
|
|
427
|
+
return (h("div", { ref: (el) => (this.assistiveFocusable = el), class: "assistive-focusable", role: "slider", tabindex: this.disabled ? undefined : 0, "aria-label": this.ariaLabel, "aria-valuemin": 0, "aria-valuemax": 0, "aria-valuenow": 0, "aria-valuetext": valueText, "aria-orientation": "vertical", onKeyDown: (ev) => this.onKeyDown(ev) }));
|
|
428
|
+
};
|
|
412
429
|
}
|
|
413
430
|
ariaLabelChanged(newValue) {
|
|
414
431
|
this.ariaLabel = newValue;
|
|
@@ -549,14 +566,33 @@ const PickerColumn = /*@__PURE__*/ proxyCustomElement(class PickerColumn extends
|
|
|
549
566
|
render() {
|
|
550
567
|
const { color, disabled, isActive, numericInput } = this;
|
|
551
568
|
const mode = getIonMode(this);
|
|
552
|
-
return (h(Host, { key: '
|
|
569
|
+
return (h(Host, { key: 'ea0280355b2f87895bf7dddd289ccf473aa759f3', class: createColorClasses(color, {
|
|
553
570
|
[mode]: true,
|
|
554
571
|
['picker-column-active']: isActive,
|
|
555
572
|
['picker-column-numeric-input']: numericInput,
|
|
556
573
|
['picker-column-disabled']: disabled,
|
|
557
|
-
}) }, h("slot", { key: '
|
|
574
|
+
}) }, this.renderAssistiveFocusable(), h("slot", { key: '482992131cdeb85b1f61430d7fe1322a16345769', name: "prefix" }), h("div", { key: '43f7f80d621d411ef366b3ca1396299e8c9a0c97', "aria-hidden": "true", class: "picker-opts", ref: (el) => {
|
|
558
575
|
this.scrollEl = el;
|
|
559
|
-
},
|
|
576
|
+
},
|
|
577
|
+
/**
|
|
578
|
+
* When an element has an overlay scroll style and
|
|
579
|
+
* a fixed height, Firefox will focus the scrollable
|
|
580
|
+
* container if the content exceeds the container's
|
|
581
|
+
* dimensions.
|
|
582
|
+
*
|
|
583
|
+
* This causes keyboard navigation to focus to this
|
|
584
|
+
* element instead of going to the next element in
|
|
585
|
+
* the tab order.
|
|
586
|
+
*
|
|
587
|
+
* The desired behavior is for the user to be able to
|
|
588
|
+
* focus the assistive focusable element and tab to
|
|
589
|
+
* the next element in the tab order. Instead of tabbing
|
|
590
|
+
* to this element.
|
|
591
|
+
*
|
|
592
|
+
* To prevent this, we set the tabIndex to -1. This
|
|
593
|
+
* will match the behavior of the other browsers.
|
|
594
|
+
*/
|
|
595
|
+
tabIndex: -1 }, h("div", { key: '13a9ee686132af32240710730765de4c0003a9e8', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: 'dbccba4920833cfcebe9b0fc763458ec3053705a', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: '682b43f83a5ea2e46067457f3af118535e111edb', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("slot", { key: 'd27e1e1dc0504b2f4627a29912a05bb91e8e413a' }), h("div", { key: '61c948dbb9cf7469aed3018542bc0954211585ba', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: 'cf46c277fbee65e35ff44ce0d53ce12aa9cbf9db', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0"), h("div", { key: 'bbc0e2d491d3f836ab849493ade2f7fa6ad9244e', class: "picker-item-empty", "aria-hidden": "true" }, "\u00A0")), h("slot", { key: 'd25cbbe14b2914fe7b878d43b4e3f4a8c8177d24', name: "suffix" })));
|
|
560
596
|
}
|
|
561
597
|
get el() { return this; }
|
|
562
598
|
static get watchers() { return {
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -15,7 +15,7 @@ var index$2 = require('./index-DNh170BW.js');
|
|
|
15
15
|
var config = require('./config-CKhELRRu.js');
|
|
16
16
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
17
17
|
var index$3 = require('./index-D24wggHR.js');
|
|
18
|
-
var overlays = require('./overlays-
|
|
18
|
+
var overlays = require('./overlays-CglR7j-u.js');
|
|
19
19
|
require('./index-DkNv4J_i.js');
|
|
20
20
|
require('./gesture-controller-dtqlP_q4.js');
|
|
21
21
|
require('./hardware-back-button-BxdNu76F.js');
|
|
@@ -7,7 +7,7 @@ var index = require('./index-DNh170BW.js');
|
|
|
7
7
|
var buttonActive = require('./button-active-BzZenWWH.js');
|
|
8
8
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
9
9
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
10
|
-
var overlays = require('./overlays-
|
|
10
|
+
var overlays = require('./overlays-CglR7j-u.js');
|
|
11
11
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
12
12
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
13
13
|
var animation = require('./animation-ZJ1lAkZD.js');
|
|
@@ -8,7 +8,7 @@ var config = require('./config-CKhELRRu.js');
|
|
|
8
8
|
var buttonActive = require('./button-active-BzZenWWH.js');
|
|
9
9
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
10
10
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
11
|
-
var overlays = require('./overlays-
|
|
11
|
+
var overlays = require('./overlays-CglR7j-u.js');
|
|
12
12
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
13
13
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
14
14
|
var animation = require('./animation-ZJ1lAkZD.js');
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
var index = require('./index-DNh170BW.js');
|
|
7
7
|
var focusVisible = require('./focus-visible-CCvKiLh3.js');
|
|
8
8
|
var helpers = require('./helpers-DgwmcYAu.js');
|
|
9
|
-
var overlays = require('./overlays-DUsEBICv.js');
|
|
10
9
|
var dir = require('./dir-Cn0z1rJH.js');
|
|
11
10
|
var theme = require('./theme-CeDs6Hcv.js');
|
|
12
11
|
var index$1 = require('./index-DqmRDbxg.js');
|
|
13
12
|
var ionicGlobal = require('./ionic-global-UI5YPSi-.js');
|
|
14
13
|
var data = require('./data-DW6ofvJ8.js');
|
|
15
14
|
var lockController = require('./lock-controller-aDB9wrEf.js');
|
|
15
|
+
var overlays = require('./overlays-CglR7j-u.js');
|
|
16
16
|
var animation = require('./animation-ZJ1lAkZD.js');
|
|
17
17
|
var haptic = require('./haptic-ClPPQ_PS.js');
|
|
18
18
|
require('./index-DkNv4J_i.js');
|
|
@@ -1301,7 +1301,7 @@ const Datetime = class {
|
|
|
1301
1301
|
const renderArray = forcePresentation === 'time-date'
|
|
1302
1302
|
? [this.renderTimePickerColumns(forcePresentation), this.renderDatePickerColumns(forcePresentation)]
|
|
1303
1303
|
: [this.renderDatePickerColumns(forcePresentation), this.renderTimePickerColumns(forcePresentation)];
|
|
1304
|
-
return index.h("ion-picker",
|
|
1304
|
+
return index.h("ion-picker", null, renderArray);
|
|
1305
1305
|
}
|
|
1306
1306
|
renderDatePickerColumns(forcePresentation) {
|
|
1307
1307
|
return forcePresentation === 'date-time' || forcePresentation === 'time-date'
|
|
@@ -1858,7 +1858,7 @@ const Datetime = class {
|
|
|
1858
1858
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1859
1859
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1860
1860
|
helpers.renderHiddenInput(true, el, name, data.formatValue(value), disabled);
|
|
1861
|
-
return (index.h(index.Host, { key: '
|
|
1861
|
+
return (index.h(index.Host, { key: 'f35cf200ff05d33074576e3d2754d3b2a0735b96', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, theme.createColorClasses(color, {
|
|
1862
1862
|
[mode]: true,
|
|
1863
1863
|
['datetime-readonly']: readonly,
|
|
1864
1864
|
['datetime-disabled']: disabled,
|
|
@@ -1868,7 +1868,7 @@ const Datetime = class {
|
|
|
1868
1868
|
[`datetime-size-${size}`]: true,
|
|
1869
1869
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1870
1870
|
[`datetime-grid`]: isGridStyle,
|
|
1871
|
-
})) }, index.h("div", { key: '
|
|
1871
|
+
})) }, index.h("div", { key: '859e9354a12bfa58ac3f964c2e66839f17071c00', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(mode)));
|
|
1872
1872
|
}
|
|
1873
1873
|
get el() { return index.getElement(this); }
|
|
1874
1874
|
static get watchers() { return {
|