@ionic/core 8.7.3-dev.11755551681.10d084fd → 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-input.js +36 -5
- package/components/ion-item-divider.js +2 -2
- package/components/ion-item-group.js +1 -1
- package/components/ion-item-option.js +2 -2
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-loading.js +2 -2
- package/components/ion-menu-button.js +2 -2
- package/components/ion-menu-toggle.js +2 -2
- package/components/ion-menu.js +2 -2
- package/components/ion-nav-link.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-note.js +2 -2
- package/components/ion-picker-legacy.js +2 -2
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-range.js +3 -3
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-reorder.js +1 -1
- package/components/ion-router-link.js +2 -2
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-row.js +1 -1
- package/components/ion-searchbar.js +4 -4
- package/components/ion-segment-button.js +2 -2
- package/components/ion-segment-content.js +1 -1
- package/components/ion-segment-view.js +2 -2
- package/components/ion-segment.js +2 -2
- package/components/ion-select-option.js +1 -1
- package/components/ion-select.js +2 -2
- package/components/ion-skeleton-text.js +2 -2
- package/components/ion-split-pane.js +2 -2
- package/components/ion-tab-bar.js +2 -2
- package/components/ion-tab-button.js +2 -2
- package/components/ion-tab.js +2 -2
- package/components/ion-tabs.js +1 -1
- package/components/ion-text.js +2 -2
- package/components/ion-textarea.js +35 -4
- package/components/ion-thumbnail.js +1 -1
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/label.js +2 -2
- package/components/list-header.js +2 -2
- package/components/modal.js +4 -4
- package/components/picker-column-option.js +2 -2
- package/components/picker-column2.js +2 -2
- package/components/popover.js +2 -2
- package/components/radio-group.js +1 -1
- package/components/radio.js +3 -3
- package/components/ripple-effect.js +1 -1
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +1 -1
- package/components/spinner.js +1 -1
- package/components/title.js +2 -2
- package/components/toolbar.js +2 -2
- package/dist/cjs/ion-app_8.cjs.entry.js +5 -5
- package/dist/cjs/ion-avatar_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-input.cjs.entry.js +35 -5
- package/dist/cjs/ion-item-option_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-item_8.cjs.entry.js +11 -11
- package/dist/cjs/ion-loading.cjs.entry.js +2 -2
- package/dist/cjs/ion-menu_3.cjs.entry.js +6 -6
- package/dist/cjs/ion-modal.cjs.entry.js +4 -4
- package/dist/cjs/ion-nav_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +2 -2
- package/dist/cjs/ion-popover.cjs.entry.js +2 -2
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-range.cjs.entry.js +3 -3
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-ripple-effect.cjs.entry.js +1 -1
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +4 -4
- package/dist/cjs/ion-segment-content.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment-view.cjs.entry.js +2 -2
- package/dist/cjs/ion-segment_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-select-modal.cjs.entry.js +1 -1
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ion-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab_2.cjs.entry.js +3 -3
- package/dist/cjs/ion-text.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +34 -4
- package/dist/cjs/ion-toast.cjs.entry.js +2 -2
- package/dist/cjs/ion-toggle.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/input/input.js +37 -6
- package/dist/collection/components/item-divider/item-divider.js +2 -2
- package/dist/collection/components/item-group/item-group.js +1 -1
- package/dist/collection/components/item-option/item-option.js +2 -2
- package/dist/collection/components/item-options/item-options.js +1 -1
- package/dist/collection/components/item-sliding/item-sliding.js +1 -1
- package/dist/collection/components/label/label.js +2 -2
- package/dist/collection/components/list-header/list-header.js +2 -2
- package/dist/collection/components/loading/loading.js +2 -2
- package/dist/collection/components/menu/menu.js +2 -2
- package/dist/collection/components/menu-button/menu-button.js +2 -2
- package/dist/collection/components/menu-toggle/menu-toggle.js +2 -2
- package/dist/collection/components/modal/modal.js +4 -4
- package/dist/collection/components/nav/nav.js +1 -1
- package/dist/collection/components/nav-link/nav-link.js +1 -1
- package/dist/collection/components/note/note.js +2 -2
- package/dist/collection/components/picker-column-option/picker-column-option.js +2 -2
- package/dist/collection/components/picker-legacy/picker.js +2 -2
- package/dist/collection/components/picker-legacy-column/picker-column.js +2 -2
- package/dist/collection/components/popover/popover.js +2 -2
- package/dist/collection/components/progress-bar/progress-bar.js +1 -1
- package/dist/collection/components/radio/radio.js +3 -3
- package/dist/collection/components/radio-group/radio-group.js +1 -1
- package/dist/collection/components/range/range.js +3 -3
- package/dist/collection/components/refresher/refresher.js +1 -1
- package/dist/collection/components/refresher-content/refresher-content.js +1 -1
- package/dist/collection/components/reorder/reorder.js +1 -1
- package/dist/collection/components/reorder-group/reorder-group.js +1 -1
- package/dist/collection/components/ripple-effect/ripple-effect.js +1 -1
- package/dist/collection/components/router-link/router-link.js +2 -2
- package/dist/collection/components/router-outlet/router-outlet.js +1 -1
- package/dist/collection/components/row/row.js +1 -1
- package/dist/collection/components/searchbar/searchbar.js +4 -4
- package/dist/collection/components/segment/segment.js +2 -2
- package/dist/collection/components/segment-button/segment-button.js +2 -2
- package/dist/collection/components/segment-content/segment-content.js +1 -1
- package/dist/collection/components/segment-view/segment-view.js +2 -2
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/select-modal/select-modal.js +1 -1
- package/dist/collection/components/select-option/select-option.js +1 -1
- package/dist/collection/components/select-popover/select-popover.js +1 -1
- package/dist/collection/components/skeleton-text/skeleton-text.js +2 -2
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/split-pane/split-pane.js +2 -2
- package/dist/collection/components/tab/tab.js +2 -2
- package/dist/collection/components/tab-bar/tab-bar.js +2 -2
- package/dist/collection/components/tab-button/tab-button.js +2 -2
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text/text.js +2 -2
- package/dist/collection/components/textarea/textarea.js +36 -5
- package/dist/collection/components/thumbnail/thumbnail.js +1 -1
- package/dist/collection/components/title/title.js +2 -2
- package/dist/collection/components/toast/toast.js +2 -2
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/toolbar/toolbar.js +2 -2
- package/dist/docs.json +1 -1
- package/dist/esm/ion-app_8.entry.js +5 -5
- package/dist/esm/ion-avatar_3.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +1 -1
- package/dist/esm/ion-datetime_3.entry.js +4 -4
- package/dist/esm/ion-input.entry.js +35 -5
- package/dist/esm/ion-item-option_3.entry.js +4 -4
- package/dist/esm/ion-item_8.entry.js +11 -11
- package/dist/esm/ion-loading.entry.js +2 -2
- package/dist/esm/ion-menu_3.entry.js +6 -6
- package/dist/esm/ion-modal.entry.js +4 -4
- package/dist/esm/ion-nav_2.entry.js +2 -2
- package/dist/esm/ion-picker-column-option.entry.js +2 -2
- package/dist/esm/ion-popover.entry.js +2 -2
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +4 -4
- package/dist/esm/ion-range.entry.js +3 -3
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-ripple-effect.entry.js +1 -1
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +4 -4
- package/dist/esm/ion-segment-content.entry.js +1 -1
- package/dist/esm/ion-segment-view.entry.js +2 -2
- package/dist/esm/ion-segment_2.entry.js +4 -4
- package/dist/esm/ion-select-modal.entry.js +1 -1
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-spinner.entry.js +1 -1
- package/dist/esm/ion-split-pane.entry.js +2 -2
- package/dist/esm/ion-tab-bar_2.entry.js +4 -4
- package/dist/esm/ion-tab_2.entry.js +3 -3
- package/dist/esm/ion-text.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +34 -4
- package/dist/esm/ion-toast.entry.js +2 -2
- package/dist/esm/ion-toggle.entry.js +3 -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-0f396661.entry.js +4 -0
- package/dist/ionic/{p-c32b6c20.entry.js → p-1191a2d9.entry.js} +1 -1
- package/dist/ionic/{p-78aff731.entry.js → p-16116947.entry.js} +1 -1
- package/dist/ionic/p-187aaf4a.entry.js +4 -0
- package/dist/ionic/{p-12b99129.entry.js → p-1bbd0a23.entry.js} +1 -1
- package/dist/ionic/p-1e34d434.entry.js +4 -0
- package/dist/ionic/{p-8ca65589.entry.js → p-29032e49.entry.js} +1 -1
- package/dist/ionic/{p-2e967897.entry.js → p-3624b640.entry.js} +1 -1
- package/dist/ionic/{p-0e45320b.entry.js → p-40d56a51.entry.js} +1 -1
- package/dist/ionic/{p-1e8b1767.entry.js → p-4f2c5845.entry.js} +1 -1
- package/dist/ionic/{p-ee881603.entry.js → p-528af4e6.entry.js} +1 -1
- package/dist/ionic/{p-70e05fd1.entry.js → p-54dec9b1.entry.js} +1 -1
- package/dist/ionic/{p-165d1309.entry.js → p-6383afc2.entry.js} +1 -1
- package/dist/ionic/{p-f4e6e570.entry.js → p-7a53f04c.entry.js} +1 -1
- package/dist/ionic/{p-165d8e84.entry.js → p-7b12d853.entry.js} +1 -1
- package/dist/ionic/{p-9cf01220.entry.js → p-7bac2c5f.entry.js} +1 -1
- package/dist/ionic/{p-332e4eac.entry.js → p-8cdb4ff5.entry.js} +1 -1
- package/dist/ionic/p-8d96a0cd.entry.js +4 -0
- package/dist/ionic/{p-039c8f8e.entry.js → p-92e8f208.entry.js} +1 -1
- package/dist/ionic/{p-c7d2c21b.entry.js → p-982fe1c4.entry.js} +1 -1
- package/dist/ionic/{p-82ce0043.entry.js → p-ab33ef20.entry.js} +1 -1
- package/dist/ionic/{p-f267c7dc.entry.js → p-ac434970.entry.js} +1 -1
- package/dist/ionic/{p-f550f186.entry.js → p-c0d58c8e.entry.js} +1 -1
- package/dist/ionic/{p-1cfb0bc4.entry.js → p-c575e7ce.entry.js} +1 -1
- package/dist/ionic/{p-5420fd3e.entry.js → p-cde6d39b.entry.js} +1 -1
- package/dist/ionic/{p-4c79bd85.entry.js → p-d04d66fc.entry.js} +1 -1
- package/dist/ionic/p-d3df6032.entry.js +4 -0
- package/dist/ionic/{p-e8429777.entry.js → p-dbba38cf.entry.js} +1 -1
- package/dist/ionic/p-e6c3214c.entry.js +4 -0
- package/dist/ionic/{p-22351d1b.entry.js → p-e6c465ff.entry.js} +1 -1
- package/dist/ionic/{p-e1310192.entry.js → p-ec76fec4.entry.js} +1 -1
- package/dist/ionic/{p-f5da8541.entry.js → p-f456d176.entry.js} +1 -1
- package/dist/ionic/{p-f868d51c.entry.js → p-f7db572a.entry.js} +1 -1
- package/dist/ionic/{p-0c580145.entry.js → p-f9eb54ee.entry.js} +1 -1
- package/dist/types/components/input/input.d.ts +9 -0
- package/dist/types/components/textarea/textarea.d.ts +9 -0
- package/hydrate/index.js +137 -101
- package/hydrate/index.mjs +137 -101
- package/package.json +1 -1
- package/dist/ionic/p-1488b7cc.entry.js +0 -4
- package/dist/ionic/p-3364562a.entry.js +0 -4
- package/dist/ionic/p-7922ca30.entry.js +0 -4
- package/dist/ionic/p-8de104c4.entry.js +0 -4
- package/dist/ionic/p-c91aa324.entry.js +0 -4
- package/dist/ionic/p-dff5b0b6.entry.js +0 -4
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"]], {
|
|
@@ -25,11 +25,11 @@ const ItemDivider = /*@__PURE__*/ proxyCustomElement(class ItemDivider extends H
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const mode = getIonMode(this);
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '1523095ce4af3f2611512ff0948ead659959ee4a', class: createColorClasses(this.color, {
|
|
29
29
|
[mode]: true,
|
|
30
30
|
'item-divider-sticky': this.sticky,
|
|
31
31
|
item: true,
|
|
32
|
-
}) }, h("slot", { key: '
|
|
32
|
+
}) }, h("slot", { key: '39105d888e115416c3a3fe588da44b4c61f4e5fe', name: "start" }), h("div", { key: '67e16f1056bd39187f3629c1bb383b7abbda829b', class: "item-divider-inner" }, h("div", { key: 'b3a218fdcc7b9aeab6e0155340152d39fa0b6329', class: "item-divider-wrapper" }, h("slot", { key: '69d8587533b387869d34b075d02f61396858fc90' })), h("slot", { key: 'b91c654699b3b26d0012ea0c719c4a07d1fcfbaa', name: "end" }))));
|
|
33
33
|
}
|
|
34
34
|
get el() { return this; }
|
|
35
35
|
static get style() { return {
|
|
@@ -15,7 +15,7 @@ const ItemGroup = /*@__PURE__*/ proxyCustomElement(class ItemGroup extends HTMLE
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
const mode = getIonMode(this);
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'e49dc8f99247d2431d7c6db01b6e021a0f5b1c37', role: "group", class: {
|
|
19
19
|
[mode]: true,
|
|
20
20
|
// Used internally for styling
|
|
21
21
|
[`item-group-${mode}`]: true,
|
|
@@ -45,12 +45,12 @@ const ItemOption = /*@__PURE__*/ proxyCustomElement(class ItemOption extends HTM
|
|
|
45
45
|
href: this.href,
|
|
46
46
|
target: this.target,
|
|
47
47
|
};
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '189a0040b97163b2336bf216baa71d584c5923a8', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
49
49
|
[mode]: true,
|
|
50
50
|
'item-option-disabled': disabled,
|
|
51
51
|
'item-option-expandable': expandable,
|
|
52
52
|
'ion-activatable': true,
|
|
53
|
-
}) }, h(TagType, Object.assign({ key: '
|
|
53
|
+
}) }, h(TagType, Object.assign({ key: '5a7140eb99da5ec82fe2ea3ea134513130763399' }, attrs, { class: "button-native", part: "native", disabled: disabled }), h("span", { key: '9b8577e612706b43e575c9a20f2f9d35c0d1bcb1', class: "button-inner" }, h("slot", { key: '9acb82f04e4822bfaa363cc2c4d29d5c0fec0ad6', name: "top" }), h("div", { key: '66f5fb4fdd0c39f205574c602c793dcf109c7a17', class: "horizontal-wrapper" }, h("slot", { key: '3761a32bca7c6c41b7eb394045497cfde181a62a', name: "start" }), h("slot", { key: 'a96a568955cf6962883dc6771726d3d07462da00', name: "icon-only" }), h("slot", { key: 'af5dfe5eb41456b9359bafe3615b576617ed7b57' }), h("slot", { key: '00426958066ab7b949ff966fabad5cf8a0b54079', name: "end" })), h("slot", { key: 'ae66c8bd536a9f27865f49240980d7b4b831b229', name: "bottom" })), mode === 'md' && h("ion-ripple-effect", { key: '30df6c935ef8a3f28a6bc1f3bb162ca4f80aaf26' }))));
|
|
54
54
|
}
|
|
55
55
|
get el() { return this; }
|
|
56
56
|
static get style() { return {
|
|
@@ -29,7 +29,7 @@ const ItemOptions = /*@__PURE__*/ proxyCustomElement(class ItemOptions extends H
|
|
|
29
29
|
render() {
|
|
30
30
|
const mode = getIonMode(this);
|
|
31
31
|
const isEnd = isEndSide(this.side);
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '05a22a505e043c2715e3805e5e26ab4668940af0', class: {
|
|
33
33
|
[mode]: true,
|
|
34
34
|
// Used internally for styling
|
|
35
35
|
[`item-options-${mode}`]: true,
|
|
@@ -397,7 +397,7 @@ const ItemSliding = /*@__PURE__*/ proxyCustomElement(class ItemSliding extends H
|
|
|
397
397
|
}
|
|
398
398
|
render() {
|
|
399
399
|
const mode = getIonMode(this);
|
|
400
|
-
return (h(Host, { key: '
|
|
400
|
+
return (h(Host, { key: 'd812322c9fb5da4ee16e99dc38bfb24cb4590d03', class: {
|
|
401
401
|
[mode]: true,
|
|
402
402
|
'item-sliding-active-slide': this.state !== 2 /* SlidingState.Disabled */,
|
|
403
403
|
'item-sliding-active-options-end': (this.state & 8 /* SlidingState.End */) !== 0,
|
|
@@ -276,9 +276,9 @@ const Loading = /*@__PURE__*/ proxyCustomElement(class Loading extends HTMLEleme
|
|
|
276
276
|
* Otherwise, don't set aria-labelledby.
|
|
277
277
|
*/
|
|
278
278
|
const ariaLabelledBy = message !== undefined ? msgId : null;
|
|
279
|
-
return (h(Host, Object.assign({ key: '
|
|
279
|
+
return (h(Host, Object.assign({ key: '4497183ce220242abe19ae15f328f9a92ccafbbc', role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelledBy, tabindex: "-1" }, htmlAttributes, { style: {
|
|
280
280
|
zIndex: `${40000 + this.overlayIndex}`,
|
|
281
|
-
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '
|
|
281
|
+
}, onIonBackdropTap: this.onBackdropTap, class: Object.assign(Object.assign({}, getClassMap(this.cssClass)), { [mode]: true, 'overlay-hidden': true, 'loading-translucent': this.translucent }) }), h("ion-backdrop", { key: '231dec84e424a2dc358ce95b84d6035cf43e4dea', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: 'c9af29b6e6bb49a217396a5c874bbfb8835a926c', tabindex: "0", "aria-hidden": "true" }), h("div", { key: 'a8659863743cdeccbe1ba810eaabfd3ebfcb86f3', class: "loading-wrapper ion-overlay-wrapper" }, spinner && (h("div", { key: '3b346f39bc71691bd8686556a1e142198a7b12fa', class: "loading-spinner" }, h("ion-spinner", { key: '8dc2bf1556e5138e262827f1516c59ecd09f3520', name: spinner, "aria-hidden": "true" }))), message !== undefined && this.renderLoadingMessage(msgId)), h("div", { key: '054164c0dbae9a0e0973dd3c8e28f5b771820310', tabindex: "0", "aria-hidden": "true" })));
|
|
282
282
|
}
|
|
283
283
|
get el() { return this; }
|
|
284
284
|
static get watchers() { return {
|
|
@@ -57,7 +57,7 @@ const MenuButton = /*@__PURE__*/ proxyCustomElement(class MenuButton extends HTM
|
|
|
57
57
|
type: this.type,
|
|
58
58
|
};
|
|
59
59
|
const ariaLabel = inheritedAttributes['aria-label'] || 'menu';
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '9f0f0e50d39a6872508220c58e64bb2092a0d7ef', onClick: this.onClick, "aria-disabled": disabled ? 'true' : null, "aria-hidden": hidden ? 'true' : null, class: createColorClasses(color, {
|
|
61
61
|
[mode]: true,
|
|
62
62
|
button: true, // ion-buttons target .button
|
|
63
63
|
'menu-button-hidden': hidden,
|
|
@@ -66,7 +66,7 @@ const MenuButton = /*@__PURE__*/ proxyCustomElement(class MenuButton extends HTM
|
|
|
66
66
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
67
67
|
'ion-activatable': true,
|
|
68
68
|
'ion-focusable': true,
|
|
69
|
-
}) }, h("button", Object.assign({ key: '
|
|
69
|
+
}) }, h("button", Object.assign({ key: 'ffebf7083d23501839970059ef8e411b571de197' }, attrs, { disabled: disabled, class: "button-native", part: "native", "aria-label": ariaLabel }), h("span", { key: 'cab0c1c763b3ce33ef11dba1d230f66126e59424', class: "button-inner" }, h("slot", { key: 'ccfd2be8479b75b5c63e97e1ca7dfe203e9b36ee' }, h("ion-icon", { key: 'ac254fe7f327b08f1ae3fcea89d5cf0e83c9a96c', part: "icon", icon: menuIcon, mode: mode, lazy: false, "aria-hidden": "true" }))), mode === 'md' && h("ion-ripple-effect", { key: 'f0f17c4ca96e3eed3c1727ee00578d40af8f0115', type: "unbounded" }))));
|
|
70
70
|
}
|
|
71
71
|
get el() { return this; }
|
|
72
72
|
static get style() { return {
|
|
@@ -34,10 +34,10 @@ const MenuToggle = /*@__PURE__*/ proxyCustomElement(class MenuToggle extends HTM
|
|
|
34
34
|
render() {
|
|
35
35
|
const mode = getIonMode(this);
|
|
36
36
|
const hidden = this.autoHide && !this.visible;
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: 'cd567114769a30bd3871ed5d15bf42aed39956e1', onClick: this.onClick, "aria-hidden": hidden ? 'true' : null, class: {
|
|
38
38
|
[mode]: true,
|
|
39
39
|
'menu-toggle-hidden': hidden,
|
|
40
|
-
} }, h("slot", { key: '
|
|
40
|
+
} }, h("slot", { key: '773d4cff95ca75f23578b1e1dca53c9933f28a33' })));
|
|
41
41
|
}
|
|
42
42
|
static get style() { return menuToggleCss; }
|
|
43
43
|
}, [257, "ion-menu-toggle", {
|
package/components/ion-menu.js
CHANGED
|
@@ -662,14 +662,14 @@ const Menu = /*@__PURE__*/ proxyCustomElement(class Menu extends HTMLElement {
|
|
|
662
662
|
* the ionBackButton listener in the menu controller
|
|
663
663
|
* will handle closing the menu when Escape is pressed.
|
|
664
664
|
*/
|
|
665
|
-
return (h(Host, { key: '
|
|
665
|
+
return (h(Host, { key: 'a5c75aa40a34530b56ee3b98d706a5ac5ae300de', onKeyDown: shouldUseCloseWatcher() ? null : this.onKeydown, role: "navigation", "aria-label": inheritedAttributes['aria-label'] || 'menu', class: {
|
|
666
666
|
[mode]: true,
|
|
667
667
|
[`menu-type-${type}`]: true,
|
|
668
668
|
'menu-enabled': !disabled,
|
|
669
669
|
[`menu-side-${side}`]: true,
|
|
670
670
|
'menu-pane-visible': isPaneVisible,
|
|
671
671
|
'split-pane-side': hostContext('ion-split-pane', el),
|
|
672
|
-
} }, h("div", { key: '
|
|
672
|
+
} }, h("div", { key: '3f5f70acd4d3ed6bb445122f4f01d73db738a75f', class: "menu-inner", part: "container", ref: (el) => (this.menuInnerEl = el) }, h("slot", { key: '3161326c9330e7f7441299c428b87a91b31a83e9' })), h("ion-backdrop", { key: '917b50f38489bdf03d0c642af8b4e4e172c7dc4c', ref: (el) => (this.backdropEl = el), class: "menu-backdrop", tappable: false, stopPropagation: false, part: "backdrop" })));
|
|
673
673
|
}
|
|
674
674
|
get el() { return this; }
|
|
675
675
|
static get watchers() { return {
|
|
@@ -36,7 +36,7 @@ const NavLink = /*@__PURE__*/ proxyCustomElement(class NavLink extends HTMLEleme
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return h(Host, { key: '
|
|
39
|
+
return h(Host, { key: '6dbb1ad4f351e9215375aac11ab9b53762e07a08', onClick: this.onClick });
|
|
40
40
|
}
|
|
41
41
|
get el() { return this; }
|
|
42
42
|
}, [256, "ion-nav-link", {
|
package/components/ion-nav.js
CHANGED
|
@@ -902,7 +902,7 @@ const Nav = /*@__PURE__*/ proxyCustomElement(class Nav extends HTMLElement {
|
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
904
|
render() {
|
|
905
|
-
return h("slot", { key: '
|
|
905
|
+
return h("slot", { key: '8067c9835d255daec61f33dba200fd3a6ff839a0' });
|
|
906
906
|
}
|
|
907
907
|
get el() { return this; }
|
|
908
908
|
static get watchers() { return {
|
package/components/ion-note.js
CHANGED
|
@@ -17,9 +17,9 @@ const Note = /*@__PURE__*/ proxyCustomElement(class Note extends HTMLElement {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
const mode = getIonMode(this);
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '0ec2ef7367d867fd7588611953f696eecdf3221e', class: createColorClasses(this.color, {
|
|
21
21
|
[mode]: true,
|
|
22
|
-
}) }, h("slot", { key: '
|
|
22
|
+
}) }, h("slot", { key: 'a200b94ddffb29cf6dabe6e984220930ea7efdef' })));
|
|
23
23
|
}
|
|
24
24
|
static get style() { return {
|
|
25
25
|
ios: noteIosCss,
|
|
@@ -263,11 +263,11 @@ const Picker = /*@__PURE__*/ proxyCustomElement(class Picker extends HTMLElement
|
|
|
263
263
|
render() {
|
|
264
264
|
const { htmlAttributes } = this;
|
|
265
265
|
const mode = getIonMode(this);
|
|
266
|
-
return (h(Host, Object.assign({ key: '
|
|
266
|
+
return (h(Host, Object.assign({ key: 'b95440747eb80cba23ae676d399d5e5816722c58', "aria-modal": "true", tabindex: "-1" }, htmlAttributes, { style: {
|
|
267
267
|
zIndex: `${20000 + this.overlayIndex}`,
|
|
268
268
|
}, class: Object.assign({ [mode]: true,
|
|
269
269
|
// Used internally for styling
|
|
270
|
-
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '
|
|
270
|
+
[`picker-${mode}`]: true, 'overlay-hidden': true }, getClassMap(this.cssClass)), onIonBackdropTap: this.onBackdropTap, onIonPickerWillDismiss: this.dispatchCancelHandler }), h("ion-backdrop", { key: '169d1c83ef40e7fcb134219a585298b403a70b0f', visible: this.showBackdrop, tappable: this.backdropDismiss }), h("div", { key: '98518e5f5cea2dfb8dfa63d9545e9ae3a5765023', tabindex: "0", "aria-hidden": "true" }), h("div", { key: '151755ab8eb23f9adafbfe201349398f5a69dee7', class: "picker-wrapper ion-overlay-wrapper", role: "dialog" }, h("div", { key: '5dcf93b2f4fe8f4fce7c7aec8f85ef45a03ef470', class: "picker-toolbar" }, this.buttons.map((b) => (h("div", { class: buttonWrapperClass(b) }, h("button", { type: "button", onClick: () => this.buttonClick(b), class: buttonClass(b) }, b.text))))), h("div", { key: 'fd5d66708edd38adc5a4d2fad7298969398a05e3', class: "picker-columns" }, h("div", { key: '1b5830fd6cef1016af7736792c514965d6cb38a8', class: "picker-above-highlight" }), this.presented && this.columns.map((c) => h("ion-picker-legacy-column", { col: c })), h("div", { key: 'c6edeca7afd69e13c9c66ba36f261974fd0f8f78', class: "picker-below-highlight" }))), h("div", { key: 'e2a4b24710e30579b14b82dbfd3761b2187797b5', tabindex: "0", "aria-hidden": "true" })));
|
|
271
271
|
}
|
|
272
272
|
get el() { return this; }
|
|
273
273
|
static get watchers() { return {
|
|
@@ -43,7 +43,7 @@ const ProgressBar = /*@__PURE__*/ proxyCustomElement(class ProgressBar extends H
|
|
|
43
43
|
const mode = getIonMode(this);
|
|
44
44
|
// If the progress is displayed as a solid bar.
|
|
45
45
|
const progressSolid = buffer === 1;
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'dc69693b5d2dcb2b6e4296d7cb85bc27507f3fa6', role: "progressbar", "aria-valuenow": type === 'determinate' ? value : null, "aria-valuemin": "0", "aria-valuemax": "1", class: createColorClasses(color, {
|
|
47
47
|
[mode]: true,
|
|
48
48
|
[`progress-bar-${type}`]: true,
|
|
49
49
|
'progress-paused': paused,
|
package/components/ion-range.js
CHANGED
|
@@ -724,7 +724,7 @@ const Range = /*@__PURE__*/ proxyCustomElement(class Range extends HTMLElement {
|
|
|
724
724
|
const needsEndAdjustment = inItem && !hasEndContent;
|
|
725
725
|
const mode = getIonMode(this);
|
|
726
726
|
renderHiddenInput(true, el, this.name, JSON.stringify(this.getValue()), disabled);
|
|
727
|
-
return (h(Host, { key: '
|
|
727
|
+
return (h(Host, { key: 'ef7b01f80515bcaeb2983934ad7f10a6bd5d13ec', onFocusin: this.onFocus, onFocusout: this.onBlur, id: rangeId, class: createColorClasses(this.color, {
|
|
728
728
|
[mode]: true,
|
|
729
729
|
'in-item': inItem,
|
|
730
730
|
'range-disabled': disabled,
|
|
@@ -733,10 +733,10 @@ const Range = /*@__PURE__*/ proxyCustomElement(class Range extends HTMLElement {
|
|
|
733
733
|
[`range-label-placement-${labelPlacement}`]: true,
|
|
734
734
|
'range-item-start-adjustment': needsStartAdjustment,
|
|
735
735
|
'range-item-end-adjustment': needsEndAdjustment,
|
|
736
|
-
}) }, h("label", { key: '
|
|
736
|
+
}) }, h("label", { key: 'fd8aa90a9d52be9da024b907e68858dae424449d', class: "range-wrapper", id: "range-label" }, h("div", { key: '2172b4f329c22017dd23475c80aac25ba6e753eb', class: {
|
|
737
737
|
'label-text-wrapper': true,
|
|
738
738
|
'label-text-wrapper-hidden': !hasLabel,
|
|
739
|
-
}, part: "label" }, label !== undefined ? h("div", { class: "label-text" }, label) : h("slot", { name: "label" })), h("div", { key: '
|
|
739
|
+
}, part: "label" }, label !== undefined ? h("div", { class: "label-text" }, label) : h("slot", { name: "label" })), h("div", { key: '3c318bf2ea0576646d4c010bf44573fd0f483186', class: "native-wrapper" }, h("slot", { key: '6586fd6fc96271e73f8a86c202d1913ad1a26f96', name: "start" }), this.renderRangeSlider(), h("slot", { key: '74ac0bc2d2cb66ef708bb729f88b6ecbc1b2155d', name: "end" })))));
|
|
740
740
|
}
|
|
741
741
|
get el() { return this; }
|
|
742
742
|
static get watchers() { return {
|
|
@@ -51,7 +51,7 @@ const RefresherContent = /*@__PURE__*/ proxyCustomElement(class RefresherContent
|
|
|
51
51
|
const pullingIcon = this.pullingIcon;
|
|
52
52
|
const hasSpinner = pullingIcon != null && SPINNERS[pullingIcon] !== undefined;
|
|
53
53
|
const mode = getIonMode(this);
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'e235f8a9a84070ece2e2066ced234a64663bfa1d', class: mode }, h("div", { key: '9121691818ddaa35801a5f442e144ac27686cf19', class: "refresher-pulling" }, this.pullingIcon && hasSpinner && (h("div", { key: 'c8d65d740f1575041bd3b752c789077927397fe4', class: "refresher-pulling-icon" }, h("div", { key: '309dd904977eaa788b09ea95b7fa4996a73bec5b', class: "spinner-arrow-container" }, h("ion-spinner", { key: 'a2a1480f67775d56ca7822e76be1e9f983bca2f9', name: this.pullingIcon, paused: true }), mode === 'md' && this.pullingIcon === 'circular' && (h("div", { key: '811d7e06d324bf4b6a18a31427a43e5177f3ae3a', class: "arrow-container" }, h("ion-icon", { key: '86cc48e2e8dc054ff6ff1299094da35b524be63d', icon: caretBackSharp, "aria-hidden": "true" })))))), this.pullingIcon && !hasSpinner && (h("div", { key: '464ae097dbc95c18a2dd7dfd03f8489153dab719', class: "refresher-pulling-icon" }, h("ion-icon", { key: 'ed6875978b9035add562caa743a68353743d978f', icon: this.pullingIcon, lazy: false, "aria-hidden": "true" }))), this.pullingText !== undefined && this.renderPullingText()), h("div", { key: 'aff891924e44354543fec484e5cde1ca92e69904', class: "refresher-refreshing" }, this.refreshingSpinner && (h("div", { key: '842d7ac4ff10a1058775493d62f31cbdcd34f7a0', class: "refresher-refreshing-icon" }, h("ion-spinner", { key: '8c3e6195501e7e78d5cde1e3ad1fef90fd4a953f', name: this.refreshingSpinner }))), this.refreshingText !== undefined && this.renderRefreshingText())));
|
|
55
55
|
}
|
|
56
56
|
get el() { return this; }
|
|
57
57
|
}, [256, "ion-refresher-content", {
|
|
@@ -696,7 +696,7 @@ const Refresher = /*@__PURE__*/ proxyCustomElement(class Refresher extends HTMLE
|
|
|
696
696
|
}
|
|
697
697
|
render() {
|
|
698
698
|
const mode = getIonMode(this);
|
|
699
|
-
return (h(Host, { key: '
|
|
699
|
+
return (h(Host, { key: '2d1bd880877b698604542ab2d602d38b9504d975', slot: "fixed", class: {
|
|
700
700
|
[mode]: true,
|
|
701
701
|
// Used internally for styling
|
|
702
702
|
[`refresher-${mode}`]: true,
|
|
@@ -262,7 +262,7 @@ const ReorderGroup = /*@__PURE__*/ proxyCustomElement(class ReorderGroup extends
|
|
|
262
262
|
}
|
|
263
263
|
render() {
|
|
264
264
|
const mode = getIonMode(this);
|
|
265
|
-
return (h(Host, { key: '
|
|
265
|
+
return (h(Host, { key: 'b9641f3061d67fbfe68317b901ec33267046e073', class: {
|
|
266
266
|
[mode]: true,
|
|
267
267
|
'reorder-enabled': !this.disabled,
|
|
268
268
|
'reorder-list-active': this.state !== 0 /* ReorderGroupState.Idle */,
|
|
@@ -28,7 +28,7 @@ const Reorder = /*@__PURE__*/ proxyCustomElement(class Reorder extends HTMLEleme
|
|
|
28
28
|
render() {
|
|
29
29
|
const mode = getIonMode(this);
|
|
30
30
|
const reorderIcon = mode === 'ios' ? reorderThreeOutline : reorderTwoSharp;
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: 'e6807bb349725682e99e791ac65e729a360d64e8', class: mode }, h("slot", { key: '1c691cdbffa6427ba08dc12184c69559ed5d5506' }, h("ion-icon", { key: '8b4150302cdca475379582b2251737b5e74079b1', icon: reorderIcon, lazy: false, class: "reorder-icon", part: "icon", "aria-hidden": "true" }))));
|
|
32
32
|
}
|
|
33
33
|
get el() { return this; }
|
|
34
34
|
static get style() { return {
|
|
@@ -28,10 +28,10 @@ const RouterLink = /*@__PURE__*/ proxyCustomElement(class RouterLink extends HTM
|
|
|
28
28
|
rel: this.rel,
|
|
29
29
|
target: this.target,
|
|
30
30
|
};
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: 'd7f2affcde45c5fbb6cb46cd1c30008ee92a68c5', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
32
32
|
[mode]: true,
|
|
33
33
|
'ion-activatable': true,
|
|
34
|
-
}) }, h("a", Object.assign({ key: '
|
|
34
|
+
}) }, h("a", Object.assign({ key: 'babafae85ca5c6429958d383feff0493ff8cf33e' }, attrs), h("slot", { key: '50314e9555bbf6dffa0c50c3f763009dee59b10b' }))));
|
|
35
35
|
}
|
|
36
36
|
static get style() { return routerLinkCss; }
|
|
37
37
|
}, [257, "ion-router-link", {
|
|
@@ -189,7 +189,7 @@ const RouterOutlet = /*@__PURE__*/ proxyCustomElement(class RouterOutlet extends
|
|
|
189
189
|
return true;
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return h("slot", { key: '
|
|
192
|
+
return h("slot", { key: '84b50f1155b0d780dff802ee13223287259fd525' });
|
|
193
193
|
}
|
|
194
194
|
get el() { return this; }
|
|
195
195
|
static get watchers() { return {
|
package/components/ion-row.js
CHANGED
|
@@ -13,7 +13,7 @@ const Row = /*@__PURE__*/ proxyCustomElement(class Row extends HTMLElement {
|
|
|
13
13
|
this.__attachShadow();
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '65592a79621bd8f75f9566db3e8c05a4b8fc6048', class: getIonMode(this) }, h("slot", { key: '56f09784db7a0299c9ce76dfcede185b295251ff' })));
|
|
17
17
|
}
|
|
18
18
|
static get style() { return rowCss; }
|
|
19
19
|
}, [257, "ion-row"]);
|
|
@@ -439,8 +439,8 @@ const Searchbar = /*@__PURE__*/ proxyCustomElement(class Searchbar extends HTMLE
|
|
|
439
439
|
const clearIcon = this.clearIcon || (mode === 'ios' ? closeCircle : closeSharp);
|
|
440
440
|
const searchIcon = this.searchIcon || (mode === 'ios' ? searchOutline : searchSharp);
|
|
441
441
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
442
|
-
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '
|
|
443
|
-
return (h(Host, { key: '
|
|
442
|
+
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '19e18775856db87daeb4b9e3d7bca0461915a0df', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: mode === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, h("div", { key: 'b3bbdcc033f3bd3441d619e4a252cef0dad4d07e', "aria-hidden": "true" }, mode === 'md' ? (h("ion-icon", { "aria-hidden": "true", mode: mode, icon: this.cancelButtonIcon, lazy: false })) : (cancelButtonText))));
|
|
443
|
+
return (h(Host, { key: '074aa60e051bfb3225e87d44bbb6346c59c73574', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses(this.color, {
|
|
444
444
|
[mode]: true,
|
|
445
445
|
'searchbar-animated': animated,
|
|
446
446
|
'searchbar-disabled': this.disabled,
|
|
@@ -450,14 +450,14 @@ const Searchbar = /*@__PURE__*/ proxyCustomElement(class Searchbar extends HTMLE
|
|
|
450
450
|
'searchbar-has-focus': this.focused,
|
|
451
451
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
452
452
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
453
|
-
}) }, h("div", { key: '
|
|
453
|
+
}) }, h("div", { key: '54f58a79fe36e85d9295157303f1be89c98bbdaf', class: "searchbar-input-container" }, h("input", Object.assign({ key: 'f991a37fcf54d26b7ad10d89084764e03d97b9de', "aria-label": "search text", disabled: this.disabled, ref: (el) => (this.nativeInput = el), class: "searchbar-input", inputMode: this.inputmode, enterKeyHint: this.enterkeyhint, name: this.name, onInput: this.onInput, onChange: this.onChange, onBlur: this.onBlur, onFocus: this.onFocus, minLength: this.minlength, maxLength: this.maxlength, placeholder: this.placeholder, type: this.type, value: this.getValue(), autoCapitalize: autocapitalize === 'default' ? undefined : autocapitalize, autoComplete: this.autocomplete, autoCorrect: this.autocorrect, spellcheck: this.spellcheck }, this.inheritedAttributes)), mode === 'md' && cancelButton, h("ion-icon", { key: '8b44dd90a3292c5cf872ef16a8520675f5673494', "aria-hidden": "true", mode: mode, icon: searchIcon, lazy: false, class: "searchbar-search-icon" }), h("button", { key: '79d9cfed8f01268044f82811a35d323a12dca749', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
454
454
|
/**
|
|
455
455
|
* This prevents mobile browsers from
|
|
456
456
|
* blurring the input when the clear
|
|
457
457
|
* button is activated.
|
|
458
458
|
*/
|
|
459
459
|
ev.preventDefault();
|
|
460
|
-
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: '
|
|
460
|
+
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: 'aa3b9fa8a61f853236783ac7bcd0b113ea65ece2', "aria-hidden": "true", mode: mode, icon: clearIcon, lazy: false, class: "searchbar-clear-icon" }))), mode === 'ios' && cancelButton));
|
|
461
461
|
}
|
|
462
462
|
get el() { return this; }
|
|
463
463
|
static get watchers() { return {
|
|
@@ -113,7 +113,7 @@ const SegmentButton = /*@__PURE__*/ proxyCustomElement(class SegmentButton exten
|
|
|
113
113
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
114
114
|
const mode = getIonMode(this);
|
|
115
115
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
116
|
-
return (h(Host, { key: '
|
|
116
|
+
return (h(Host, { key: '26cb7ee90455bcaa6416125802d7e5729fa05b5b', class: {
|
|
117
117
|
[mode]: true,
|
|
118
118
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
119
119
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -129,7 +129,7 @@ const SegmentButton = /*@__PURE__*/ proxyCustomElement(class SegmentButton exten
|
|
|
129
129
|
'ion-activatable': true,
|
|
130
130
|
'ion-activatable-instant': true,
|
|
131
131
|
'ion-focusable': true,
|
|
132
|
-
} }, h("button", Object.assign({ key: '
|
|
132
|
+
} }, h("button", Object.assign({ key: '75add37f11c107d1e2cfdb154e08004e9579e863', "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: '8e720d2a3e304903685bf09d226a64e944d78a22', class: "button-inner" }, h("slot", { key: 'c8e7b3ebf8f03042a1001155643b585283c73c65' })), mode === 'md' && h("ion-ripple-effect", { key: '3586ac317b8d82c92b0ccfbfae42f8778612321b' })), h("div", { key: '9cf93957da9e8dc333c8b05327bb903385b1c5f4', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: 'd3b6f0b3860ec6896b46703f64ed1cc8c75612e3', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
133
133
|
}
|
|
134
134
|
get el() { return this; }
|
|
135
135
|
static get watchers() { return {
|
|
@@ -12,7 +12,7 @@ const SegmentContent = /*@__PURE__*/ proxyCustomElement(class SegmentContent ext
|
|
|
12
12
|
this.__attachShadow();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'db6876f2aee7afa1ea8bc147337670faa68fae1c' }, h("slot", { key: 'bc05714a973a5655668679033f5809a1da6db8cc' })));
|
|
16
16
|
}
|
|
17
17
|
static get style() { return segmentContentCss; }
|
|
18
18
|
}, [257, "ion-segment-content"]);
|
|
@@ -105,10 +105,10 @@ const SegmentView = /*@__PURE__*/ proxyCustomElement(class SegmentView extends H
|
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
107
|
const { disabled, isManualScroll } = this;
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '754a374e89fd4dd682eb00497e717242a6f83357', class: {
|
|
109
109
|
'segment-view-disabled': disabled,
|
|
110
110
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
111
|
-
} }, h("slot", { key: '
|
|
111
|
+
} }, h("slot", { key: '77366044eb61f0d4bba305bd6f0ef8fd1e25194b' })));
|
|
112
112
|
}
|
|
113
113
|
get el() { return this; }
|
|
114
114
|
static get style() { return {
|
|
@@ -549,14 +549,14 @@ const Segment = /*@__PURE__*/ proxyCustomElement(class Segment extends HTMLEleme
|
|
|
549
549
|
}
|
|
550
550
|
render() {
|
|
551
551
|
const mode = getIonMode(this);
|
|
552
|
-
return (h(Host, { key: '
|
|
552
|
+
return (h(Host, { key: 'e67ed512739cf2cfe657b0c44ebc3dfb1e9fbb79', role: "tablist", onClick: this.onClick, class: createColorClasses(this.color, {
|
|
553
553
|
[mode]: true,
|
|
554
554
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
555
555
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
556
556
|
'segment-activated': this.activated,
|
|
557
557
|
'segment-disabled': this.disabled,
|
|
558
558
|
'segment-scrollable': this.scrollable,
|
|
559
|
-
}) }, h("slot", { key: '
|
|
559
|
+
}) }, h("slot", { key: '804d8acfcb9abfeeee38244b015fbc5c36330b9e', onSlotchange: this.onSlottedItemsChange })));
|
|
560
560
|
}
|
|
561
561
|
get el() { return this; }
|
|
562
562
|
static get watchers() { return {
|
|
@@ -18,7 +18,7 @@ const SelectOption = /*@__PURE__*/ proxyCustomElement(class SelectOption extends
|
|
|
18
18
|
this.disabled = false;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return h(Host, { key: '
|
|
21
|
+
return h(Host, { key: '3a70eea9fa03a9acba582180761d18347c72acee', role: "option", id: this.inputId, class: getIonMode(this) });
|
|
22
22
|
}
|
|
23
23
|
get el() { return this; }
|
|
24
24
|
static get style() { return selectOptionCss; }
|
package/components/ion-select.js
CHANGED
|
@@ -755,7 +755,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
755
755
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
756
756
|
*/
|
|
757
757
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
758
|
-
return (h(Host, { key: '
|
|
758
|
+
return (h(Host, { key: 'c03fb65e8fc9f9aab295e07b282377d57d910519', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
759
759
|
[mode]: true,
|
|
760
760
|
'in-item': inItem,
|
|
761
761
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -773,7 +773,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
773
773
|
[`select-justify-${justify}`]: justifyEnabled,
|
|
774
774
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
775
775
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
776
|
-
}) }, h("label", { key: '
|
|
776
|
+
}) }, h("label", { key: '0d0c8ec55269adcac625f2899a547f4e7f3e3741', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick }, this.renderLabelContainer(), h("div", { key: 'f6dfc93c0e23cbe75a2947abde67d842db2dad78', class: "select-wrapper-inner" }, h("slot", { key: '957bfadf9f101f519091419a362d3abdc2be66f6', name: "start" }), h("div", { key: 'ca349202a484e7f2e884533fd330f0b136754f7d', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: 'f0e62a6533ff1c8f62bd2d27f60b23385c4fa9ed', name: "end" }), !hasFloatingOrStackedLabel && this.renderSelectIcon()), hasFloatingOrStackedLabel && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: 'fb840d46bafafb09898ebeebbe8c181906a3d8a2', class: "select-highlight" })), this.renderBottomContent()));
|
|
777
777
|
}
|
|
778
778
|
get el() { return this; }
|
|
779
779
|
static get watchers() { return {
|
|
@@ -35,11 +35,11 @@ const SkeletonText = /*@__PURE__*/ proxyCustomElement(class SkeletonText extends
|
|
|
35
35
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
36
36
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
37
37
|
const mode = getIonMode(this);
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'd86ef7392507cdbf48dfd3a71f02d7a83eda4aae', class: {
|
|
39
39
|
[mode]: true,
|
|
40
40
|
'skeleton-text-animated': animated,
|
|
41
41
|
'in-media': inMedia,
|
|
42
|
-
} }, h("span", { key: '
|
|
42
|
+
} }, h("span", { key: '8e8b5a232a6396d2bba691b05f9de4da44b2965c' }, "\u00A0")));
|
|
43
43
|
}
|
|
44
44
|
get el() { return this; }
|
|
45
45
|
static get style() { return skeletonTextCss; }
|
|
@@ -135,12 +135,12 @@ const SplitPane = /*@__PURE__*/ proxyCustomElement(class SplitPane extends HTMLE
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
const mode = getIonMode(this);
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: 'd5e30df12f1f1f855da4c66f98076b9dce762c59', class: {
|
|
139
139
|
[mode]: true,
|
|
140
140
|
// Used internally for styling
|
|
141
141
|
[`split-pane-${mode}`]: true,
|
|
142
142
|
'split-pane-visible': this.visible,
|
|
143
|
-
} }, h("slot", { key: '
|
|
143
|
+
} }, h("slot", { key: '3e30d7cf3bc1cf434e16876a0cb2a36377b8e00f' })));
|
|
144
144
|
}
|
|
145
145
|
get el() { return this; }
|
|
146
146
|
static get watchers() { return {
|