@ionic/core 8.4.2-dev.11741080979.1715cc06 → 8.4.2-dev.11741365851.1a97ead6
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-searchbar.js +22 -5
- 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 +3 -3
- 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 +3 -3
- package/components/ion-thumbnail.js +2 -2
- package/components/ion-toast.js +2 -2
- package/components/ion-toggle.js +3 -3
- package/components/select-modal.js +1 -1
- package/components/select-popover.js +2 -2
- 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 +4 -4
- package/dist/cjs/ion-avatar_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +21 -5
- 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 +6 -6
- 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 +3 -3
- 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/searchbar/searchbar.ionic.css +140 -36
- package/dist/collection/components/searchbar/searchbar.js +38 -5
- 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 +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/collection/components/thumbnail/thumbnail.js +2 -2
- 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 +35 -2
- package/dist/esm/ion-app_8.entry.js +4 -4
- package/dist/esm/ion-avatar_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +21 -5
- 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 +6 -6
- 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 +3 -3
- 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/esm-es5/ion-app_8.entry.js +1 -1
- package/dist/esm-es5/ion-avatar_3.entry.js +1 -1
- package/dist/esm-es5/ion-item_8.entry.js +1 -1
- package/dist/esm-es5/ion-searchbar.entry.js +1 -1
- package/dist/esm-es5/ion-segment-content.entry.js +1 -1
- package/dist/esm-es5/ion-segment-view.entry.js +1 -1
- package/dist/esm-es5/ion-segment_2.entry.js +1 -1
- package/dist/esm-es5/ion-select-modal.entry.js +1 -1
- package/dist/esm-es5/ion-select_3.entry.js +1 -1
- package/dist/esm-es5/ion-spinner.entry.js +1 -1
- package/dist/esm-es5/ion-split-pane.entry.js +1 -1
- package/dist/esm-es5/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm-es5/ion-tab_2.entry.js +1 -1
- package/dist/esm-es5/ion-text.entry.js +1 -1
- package/dist/esm-es5/ion-textarea.entry.js +1 -1
- package/dist/esm-es5/ion-toast.entry.js +1 -1
- package/dist/esm-es5/ion-toggle.entry.js +1 -1
- package/dist/esm-es5/ionic.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/html.html-data.json +16 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-ac558084.entry.js → p-20fb0bb4.entry.js} +1 -1
- package/dist/ionic/{p-da89b9bd.system.entry.js → p-21d62720.system.entry.js} +2 -2
- package/dist/ionic/{p-d854fb32.entry.js → p-25fcbafe.entry.js} +1 -1
- package/dist/ionic/{p-d7e43c62.system.entry.js → p-2730ecee.system.entry.js} +1 -1
- package/dist/ionic/p-2f57cb40.entry.js +4 -0
- package/dist/ionic/p-341a80ea.entry.js +4 -0
- package/dist/ionic/{p-4b4e4592.system.entry.js → p-345ed859.system.entry.js} +1 -1
- package/dist/ionic/{p-8a8e843c.system.entry.js → p-497b67a3.system.entry.js} +1 -1
- package/dist/ionic/{p-03df1462.entry.js → p-4b769e3f.entry.js} +1 -1
- package/dist/ionic/{p-7cfe6f4a.entry.js → p-531c3061.entry.js} +1 -1
- package/dist/ionic/{p-9cd19610.system.entry.js → p-633b126a.system.entry.js} +1 -1
- package/dist/ionic/{p-af69da90.entry.js → p-656490af.entry.js} +1 -1
- package/dist/ionic/{p-297fcc18.system.entry.js → p-6fe386d5.system.entry.js} +1 -1
- package/dist/ionic/{p-402ffd31.entry.js → p-8cdc3684.entry.js} +1 -1
- package/dist/ionic/{p-fa5dc348.entry.js → p-91f6fc46.entry.js} +1 -1
- package/dist/ionic/{p-a78181cc.system.entry.js → p-975dcbcb.system.entry.js} +1 -1
- package/dist/ionic/{p-fac055ef.entry.js → p-98f32971.entry.js} +1 -1
- package/dist/ionic/p-9f9a666d.system.js +1 -1
- package/dist/ionic/{p-886ff0f8.system.entry.js → p-a269abe3.system.entry.js} +2 -2
- package/dist/ionic/{p-97cc477f.system.entry.js → p-a27eaf15.system.entry.js} +1 -1
- package/dist/ionic/{p-a685da08.system.entry.js → p-a763eb06.system.entry.js} +2 -2
- package/dist/ionic/{p-5345fc46.entry.js → p-aae0f146.entry.js} +1 -1
- package/dist/ionic/{p-71523065.entry.js → p-aff567d6.entry.js} +1 -1
- package/dist/ionic/{p-695c2cbd.entry.js → p-bc3538f6.entry.js} +1 -1
- package/dist/ionic/{p-05b69c23.system.entry.js → p-bf037413.system.entry.js} +1 -1
- package/dist/ionic/p-c5692272.system.entry.js +4 -0
- package/dist/ionic/{p-af321c18.entry.js → p-ccae763c.entry.js} +1 -1
- package/dist/ionic/p-d7cbcadc.entry.js +4 -0
- package/dist/ionic/{p-49f0023f.entry.js → p-e4444d68.entry.js} +1 -1
- package/dist/ionic/{p-0390f622.system.entry.js → p-e49e5407.system.entry.js} +1 -1
- package/dist/ionic/{p-c48a6425.system.entry.js → p-e6e2ea96.system.entry.js} +1 -1
- package/dist/ionic/{p-d683e61f.system.entry.js → p-f536433d.system.entry.js} +1 -1
- package/dist/ionic/{p-fa5a0d2e.system.entry.js → p-f6b4018a.system.entry.js} +1 -1
- package/dist/ionic/{p-c7aa652c.entry.js → p-f7d26ada.entry.js} +1 -1
- package/dist/ionic/{p-f2f33ab4.system.entry.js → p-f8522131.system.entry.js} +1 -1
- package/dist/types/components/searchbar/searchbar.d.ts +9 -0
- package/dist/types/components.d.ts +10 -2
- package/hydrate/index.js +64 -47
- package/hydrate/index.mjs +64 -47
- package/package.json +1 -1
- package/dist/ionic/p-27258d5a.entry.js +0 -4
- package/dist/ionic/p-3608e72b.entry.js +0 -4
- package/dist/ionic/p-42f8e688.entry.js +0 -4
- package/dist/ionic/p-d49da56a.system.entry.js +0 -4
|
@@ -142,6 +142,7 @@ export class Searchbar {
|
|
|
142
142
|
this.type = 'search';
|
|
143
143
|
this.value = '';
|
|
144
144
|
this.shape = undefined;
|
|
145
|
+
this.size = undefined;
|
|
145
146
|
}
|
|
146
147
|
/**
|
|
147
148
|
* lang and dir are globally enumerated attributes.
|
|
@@ -388,6 +389,18 @@ export class Searchbar {
|
|
|
388
389
|
}
|
|
389
390
|
return shape;
|
|
390
391
|
}
|
|
392
|
+
getSize() {
|
|
393
|
+
const theme = getIonTheme(this);
|
|
394
|
+
const { size } = this;
|
|
395
|
+
// TODO(ROU-11678): Remove theme check when sizes are defined for all themes.
|
|
396
|
+
if (theme !== 'ionic') {
|
|
397
|
+
return undefined;
|
|
398
|
+
}
|
|
399
|
+
if (size === undefined) {
|
|
400
|
+
return 'medium';
|
|
401
|
+
}
|
|
402
|
+
return size;
|
|
403
|
+
}
|
|
391
404
|
/**
|
|
392
405
|
* Get the icon to use for the clear icon.
|
|
393
406
|
* If an icon is set on the component, use that.
|
|
@@ -463,8 +476,9 @@ export class Searchbar {
|
|
|
463
476
|
const theme = getIonTheme(this);
|
|
464
477
|
const shouldShowCancelButton = this.shouldShowCancelButton();
|
|
465
478
|
const shape = this.getShape();
|
|
466
|
-
const
|
|
467
|
-
|
|
479
|
+
const size = this.getSize();
|
|
480
|
+
const cancelButton = this.showCancelButton !== 'never' && (h("button", { key: '7dc5854b95da27ab51924514413e981d065b3d14', "aria-label": cancelButtonText, "aria-hidden": shouldShowCancelButton ? undefined : 'true', type: "button", tabIndex: theme === 'ios' && !shouldShowCancelButton ? -1 : undefined, onMouseDown: this.onCancelSearchbar, onTouchStart: this.onCancelSearchbar, class: "searchbar-cancel-button" }, h("div", { key: '7ccba83e849da1cf9a1d9ae4818466170c4e7636', "aria-hidden": "true" }, theme === 'md' || theme === 'ionic' ? (h("ion-icon", { "aria-hidden": "true", icon: searchbarCancelIcon, lazy: false })) : (cancelButtonText))));
|
|
481
|
+
return (h(Host, { key: 'a207e57178bdd970248428d66f54de17f4106b55', role: "search", "aria-disabled": this.disabled ? 'true' : null, class: createColorClasses(this.color, {
|
|
468
482
|
[theme]: true,
|
|
469
483
|
'searchbar-animated': animated,
|
|
470
484
|
'searchbar-disabled': this.disabled,
|
|
@@ -472,17 +486,19 @@ export class Searchbar {
|
|
|
472
486
|
'searchbar-has-value': this.hasValue(),
|
|
473
487
|
'searchbar-left-aligned': this.shouldAlignLeft,
|
|
474
488
|
'searchbar-has-focus': this.focused,
|
|
489
|
+
'searchbar-has-leading-icons': theme === 'ionic' && (this.searchIcon !== undefined || this.showCancelButton !== 'never'),
|
|
475
490
|
'searchbar-should-show-clear': this.shouldShowClearButton(),
|
|
476
491
|
'searchbar-should-show-cancel': this.shouldShowCancelButton(),
|
|
477
492
|
[`searchbar-shape-${shape}`]: shape !== undefined,
|
|
478
|
-
|
|
493
|
+
[`searchbar-size-${size}`]: size !== undefined,
|
|
494
|
+
}) }, h("div", { key: '437ba144b4195ff8e8650f72df4d05639077b111', class: "searchbar-input-container" }, h("input", Object.assign({ key: 'ec10264fbbbaf5ed917e2a912af1bb18c6e95ccf', "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)), (theme === 'md' || theme === 'ionic') && cancelButton, theme !== 'ionic' || this.searchIcon !== undefined ? (h("ion-icon", { "aria-hidden": "true", icon: searchbarSearchIcon, lazy: false, class: "searchbar-search-icon" })) : null, h("button", { key: '987ae96a62b576a6ebc484a1bd5ac3994f5b46b7', "aria-label": "reset", type: "button", "no-blur": true, class: "searchbar-clear-button", onPointerDown: (ev) => {
|
|
479
495
|
/**
|
|
480
496
|
* This prevents mobile browsers from
|
|
481
497
|
* blurring the input when the clear
|
|
482
498
|
* button is activated.
|
|
483
499
|
*/
|
|
484
500
|
ev.preventDefault();
|
|
485
|
-
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: '
|
|
501
|
+
}, onClick: () => this.onClearInput(true) }, h("ion-icon", { key: 'af26bcab2d98a656313256f8689344a9a1cbb0cd', "aria-hidden": "true", icon: searchbarClearIcon, lazy: false, class: "searchbar-clear-icon" }))), theme === 'ios' && cancelButton));
|
|
486
502
|
}
|
|
487
503
|
static get is() { return "ion-searchbar"; }
|
|
488
504
|
static get encapsulation() { return "scoped"; }
|
|
@@ -913,10 +929,27 @@ export class Searchbar {
|
|
|
913
929
|
"optional": true,
|
|
914
930
|
"docs": {
|
|
915
931
|
"tags": [],
|
|
916
|
-
"text": "Set to `\"soft\"` for a searchbar with slightly rounded corners,\n`\"round\"` for a searchbar with fully rounded corners,\nor `\"rectangular\"` for a searchbar without rounded corners.\nDefaults to `\"round\"` for the ionic theme, and `undefined` for all other themes."
|
|
932
|
+
"text": "Set to `\"soft\"` for a searchbar with slightly rounded corners,\n`\"round\"` for a searchbar with fully rounded corners,\nor `\"rectangular\"` for a searchbar without rounded corners.\n\nDefaults to `\"round\"` for the ionic theme, and `undefined` for all other themes."
|
|
917
933
|
},
|
|
918
934
|
"attribute": "shape",
|
|
919
935
|
"reflect": false
|
|
936
|
+
},
|
|
937
|
+
"size": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"mutable": false,
|
|
940
|
+
"complexType": {
|
|
941
|
+
"original": "'small' | 'medium' | 'large'",
|
|
942
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | undefined",
|
|
943
|
+
"references": {}
|
|
944
|
+
},
|
|
945
|
+
"required": false,
|
|
946
|
+
"optional": true,
|
|
947
|
+
"docs": {
|
|
948
|
+
"tags": [],
|
|
949
|
+
"text": "Set to `\"large\"` for a searchbar with an increase in height,\nwhile \"small\" and \"medium\" provide progressively smaller heights.\n\nDefaults to `\"medium\"` for the ionic theme, and `undefined` for all other themes."
|
|
950
|
+
},
|
|
951
|
+
"attribute": "size",
|
|
952
|
+
"reflect": false
|
|
920
953
|
}
|
|
921
954
|
};
|
|
922
955
|
}
|
|
@@ -531,14 +531,14 @@ export class Segment {
|
|
|
531
531
|
}
|
|
532
532
|
render() {
|
|
533
533
|
const theme = getIonTheme(this);
|
|
534
|
-
return (h(Host, { key: '
|
|
534
|
+
return (h(Host, { key: 'ed534909594c70caa74cc3b3870b5f73fb7e3a84', role: "tablist", onClick: this.onClick, class: createColorClasses(this.color, {
|
|
535
535
|
[theme]: true,
|
|
536
536
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
537
537
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
538
538
|
'segment-activated': this.activated,
|
|
539
539
|
'segment-disabled': this.disabled,
|
|
540
540
|
'segment-scrollable': this.scrollable,
|
|
541
|
-
}) }, h("slot", { key: '
|
|
541
|
+
}) }, h("slot", { key: '544c2ca95a25cc733d2cf0449c96097f8632a9b2', onSlotchange: this.onSlottedItemsChange })));
|
|
542
542
|
}
|
|
543
543
|
static get is() { return "ion-segment"; }
|
|
544
544
|
static get encapsulation() { return "shadow"; }
|
|
@@ -141,7 +141,7 @@ export class SegmentButton {
|
|
|
141
141
|
const { checked, type, disabled, hasIcon, hasLabel, layout, segmentEl } = this;
|
|
142
142
|
const theme = getIonTheme(this);
|
|
143
143
|
const hasSegmentColor = () => (segmentEl === null || segmentEl === void 0 ? void 0 : segmentEl.color) !== undefined;
|
|
144
|
-
return (h(Host, { key: '
|
|
144
|
+
return (h(Host, { key: '923c49c2f7ad412206ad28c85ddb354c4cf2dbc9', class: {
|
|
145
145
|
[theme]: true,
|
|
146
146
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
147
147
|
'in-toolbar-color': hostContext('ion-toolbar[color]', this.el),
|
|
@@ -157,7 +157,7 @@ export class SegmentButton {
|
|
|
157
157
|
'ion-activatable': true,
|
|
158
158
|
'ion-activatable-instant': true,
|
|
159
159
|
'ion-focusable': true,
|
|
160
|
-
} }, h("button", Object.assign({ key: '
|
|
160
|
+
} }, h("button", Object.assign({ key: '45c43d4d3062f3c1fa80e3742cb16ac12ae0eefb', "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: 'bea9db4fb86926498fd73d4d6a5a8a1d19ce7b2d', class: "button-inner" }, h("slot", { key: 'e3ad5c48a0920012f36d899a83edcd0f15e379f6' })), theme === 'md' && h("ion-ripple-effect", { key: '323074cca9b783bb6b15bd55fdda1587dd9641ea' })), h("div", { key: 'b272b4106903f7f9c47ae5a9096b6bbb79021b89', part: "indicator", class: "segment-button-indicator segment-button-indicator-animated" }, h("div", { key: '2d5736abd5fabcd5975cf52d73a224beaec93765', part: "indicator-background", class: "segment-button-indicator-background" }))));
|
|
161
161
|
}
|
|
162
162
|
static get is() { return "ion-segment-button"; }
|
|
163
163
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Host, h } from "@stencil/core";
|
|
5
5
|
export class SegmentContent {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '03684b2999ac64fe13e376fd7e7f279976e9d4f2' }, h("slot", { key: '143031075bf33ca19e7cfd76fc8a67b83ccaf11c' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "ion-segment-content"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -94,10 +94,10 @@ export class SegmentView {
|
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
96
|
const { disabled, isManualScroll } = this;
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: '4a165da536914c666b1dc89827fa5ab053f1a890', class: {
|
|
98
98
|
'segment-view-disabled': disabled,
|
|
99
99
|
'segment-view-scroll-disabled': isManualScroll === false,
|
|
100
|
-
} }, h("slot", { key: '
|
|
100
|
+
} }, h("slot", { key: 'efe04cedb22ce150010277e9121417ba862db43a' })));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "ion-segment-view"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -732,7 +732,7 @@ export class Select {
|
|
|
732
732
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
733
733
|
*/
|
|
734
734
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
735
|
-
return (h(Host, { key: '
|
|
735
|
+
return (h(Host, { key: '0a33e10a04cc82c85014517e836331d8c6bacd94', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
736
736
|
[theme]: true,
|
|
737
737
|
'in-item': inItem,
|
|
738
738
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -749,7 +749,7 @@ export class Select {
|
|
|
749
749
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
750
750
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
751
751
|
[`select-size-${size}`]: size !== undefined,
|
|
752
|
-
}) }, h("label", { key: '
|
|
752
|
+
}) }, h("label", { key: '09b56cdf15a9d46dee500f546f667b97db3c5ac8', class: "select-wrapper", id: "select-label" }, this.renderLabelContainer(), h("div", { key: '5a5f298c45a67d4efec6bac6e31e5bfe17a938f0', class: "select-wrapper-inner" },
|
|
753
753
|
/**
|
|
754
754
|
* For the ionic theme, we render the outline container here
|
|
755
755
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -759,7 +759,7 @@ export class Select {
|
|
|
759
759
|
* <label> element, ensuring that clicking the label text
|
|
760
760
|
* focuses the select.
|
|
761
761
|
*/
|
|
762
|
-
theme === 'ionic' && fill === 'outline' && h("div", { key: '
|
|
762
|
+
theme === 'ionic' && fill === 'outline' && h("div", { key: '60ec36fb5089550addd48a76fe563b5a83a4fb52', class: "select-outline" }), h("slot", { key: '7c1f11c0c76ff9b7abbef26e82dbb73c37856d1e', name: "start" }), h("div", { key: '5499001e3b7fbac560750aa50b3026f357b9f24f', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: 'b6fd8fe404dac4477e49ac06fee0e5d96fa9025f', name: "end" }), shouldRenderInnerIcon && this.renderSelectIcon()), shouldRenderOuterIcon && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: '53160a6a27059cb275614d7d8ee94b524269832e', class: "select-highlight" }))));
|
|
763
763
|
}
|
|
764
764
|
static get is() { return "ion-select"; }
|
|
765
765
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,7 +77,7 @@ export class SelectModal {
|
|
|
77
77
|
} }, option.text))));
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: 'd8943541f52e4139336d02fe0f7aaa34e3d6dcd4', class: getIonMode(this) }, h("ion-header", { key: '69b220014151a2bff77733d56f6fa7a8783ac381' }, h("ion-toolbar", { key: 'd3817f6d3f4d6465c6fbb533970559fafdce1ba9' }, this.header !== undefined && h("ion-title", { key: '7d895aa66aab684d9f74f893d1153f7c60ca74c7' }, this.header), h("ion-buttons", { key: '32869bea2d04acf8161d7bf7665aeea54f989bf8', slot: "end" }, h("ion-button", { key: '9cee7c716bdc8a9e37c06e816878fb5da93f61b8', onClick: () => this.closeModal() }, "Close")))), h("ion-content", { key: 'cd7e8a51bb037ce4c896dfe0bef65269831a2ff9' }, h("ion-list", { key: '6fb46bd883e668aa93bf9daa355065ad0489588f' }, this.multiple === true ? this.renderCheckboxOptions() : this.renderRadioOptions()))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "ion-select-modal"; }
|
|
83
83
|
static get encapsulation() { return "scoped"; }
|
|
@@ -15,7 +15,7 @@ export class SelectOption {
|
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
17
|
const theme = getIonTheme(this);
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '54487af48b0482f847f6e782434ef739cde0a73e', class: {
|
|
19
19
|
[theme]: true,
|
|
20
20
|
}, role: "option", id: this.inputId }));
|
|
21
21
|
}
|
|
@@ -106,9 +106,9 @@ export class SelectPopover {
|
|
|
106
106
|
const { header, message, options, subHeader } = this;
|
|
107
107
|
const hasSubHeaderOrMessage = subHeader !== undefined || message !== undefined;
|
|
108
108
|
const theme = getIonTheme(this);
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: 'e926e43a2e2a191d413ea8288a4785641ec46f8d', class: {
|
|
110
110
|
[theme]: true,
|
|
111
|
-
} }, h("ion-list", { key: '
|
|
111
|
+
} }, h("ion-list", { key: '8d3ec54cb1a6ef1a6af4973d306ebccdf41d3f96' }, header !== undefined && h("ion-list-header", { key: 'f9d6efb98f1b020a98bec431d683e65215f070be' }, header), hasSubHeaderOrMessage && (h("ion-item", { key: '5276388ce33a9d43ab75b7cd466cca634ffa9f85' }, h("ion-label", { key: '72572f777f72a3f15fc6f25a29c5dbacc4a42617', class: "ion-text-wrap" }, subHeader !== undefined && h("h3", { key: '021b5b51cb3bac8ae8325e5f763db78a93833ad0' }, subHeader), message !== undefined && h("p", { key: '684bb4655de6fdc2150c0a76f0ceeb14b7f4e55b' }, message)))), this.renderOptions(options))));
|
|
112
112
|
}
|
|
113
113
|
static get is() { return "ion-select-popover"; }
|
|
114
114
|
static get encapsulation() { return "scoped"; }
|
|
@@ -29,11 +29,11 @@ export class SkeletonText {
|
|
|
29
29
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
30
30
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
31
31
|
const theme = getIonTheme(this);
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '70efd9086ef58705a965a63aa3e5ac775757dc85', class: {
|
|
33
33
|
[theme]: true,
|
|
34
34
|
'skeleton-text-animated': animated,
|
|
35
35
|
'in-media': inMedia,
|
|
36
|
-
} }, h("span", { key: '
|
|
36
|
+
} }, h("span", { key: '296246a88e33e0106045bec2f64738f48593ba12' }, "\u00A0")));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "ion-skeleton-text"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class Spinner {
|
|
|
57
57
|
svgs.push(buildLine(spinner, duration, i, spinner.lines));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'e6d6c81972147b610b468cfb8535d4c4acd0911c', class: createColorClasses(self.color, {
|
|
61
61
|
[theme]: true,
|
|
62
62
|
[`spinner-${spinnerName}`]: true,
|
|
63
63
|
'spinner-paused': self.paused || config.getBoolean('_testing'),
|
|
@@ -122,12 +122,12 @@ export class SplitPane {
|
|
|
122
122
|
}
|
|
123
123
|
render() {
|
|
124
124
|
const theme = getIonTheme(this);
|
|
125
|
-
return (h(Host, { key: '
|
|
125
|
+
return (h(Host, { key: '2002430758c0d77fa67290d84c89a13e122cd56e', class: {
|
|
126
126
|
[theme]: true,
|
|
127
127
|
// Used internally for styling
|
|
128
128
|
[`split-pane-${theme}`]: true,
|
|
129
129
|
'split-pane-visible': this.visible,
|
|
130
|
-
} }, h("slot", { key: '
|
|
130
|
+
} }, h("slot", { key: '311917f6487bc42695f983ff7024e2fbc5b85f57' })));
|
|
131
131
|
}
|
|
132
132
|
static get is() { return "ion-split-pane"; }
|
|
133
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,10 +52,10 @@ export class Tab {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
const { tab, active, component } = this;
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '94e7961359b6ee01e5be26be130505cc41fa62f3', role: "tabpanel", "aria-hidden": !active ? 'true' : null, "aria-labelledby": `tab-button-${tab}`, class: {
|
|
56
56
|
'ion-page': component === undefined,
|
|
57
57
|
'tab-hidden': !active,
|
|
58
|
-
} }, h("slot", { key: '
|
|
58
|
+
} }, h("slot", { key: '0b24cddb59292470bf6a631c8ee295267c8d68b2' })));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "ion-tab"; }
|
|
61
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -67,13 +67,13 @@ export class TabBar {
|
|
|
67
67
|
const theme = getIonTheme(this);
|
|
68
68
|
const shape = this.getShape();
|
|
69
69
|
const shouldHide = keyboardVisible && this.el.getAttribute('slot') !== 'top';
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '1827087d4fa77507b61c87ce6dd12427cb7effd0', role: "tablist", "aria-hidden": shouldHide ? 'true' : null, class: createColorClasses(color, {
|
|
71
71
|
[theme]: true,
|
|
72
72
|
'tab-bar-translucent': translucent,
|
|
73
73
|
'tab-bar-hidden': shouldHide,
|
|
74
74
|
[`tab-bar-${expand}`]: true,
|
|
75
75
|
[`tab-bar-${shape}`]: shape !== undefined,
|
|
76
|
-
}) }, h("slot", { key: '
|
|
76
|
+
}) }, h("slot", { key: '9834dc234608f09af892c2a92401f304167b9f83' })));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "ion-tab-bar"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -85,7 +85,7 @@ export class TabButton {
|
|
|
85
85
|
rel,
|
|
86
86
|
target,
|
|
87
87
|
};
|
|
88
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '35c0d5aa92aef2f25833319f1b2ceabed06fad4f', onClick: this.onClick, onKeyup: this.onKeyUp, id: tab !== undefined ? `tab-button-${tab}` : null, class: {
|
|
89
89
|
[theme]: true,
|
|
90
90
|
'tab-selected': selected,
|
|
91
91
|
'tab-disabled': disabled,
|
|
@@ -98,7 +98,7 @@ export class TabButton {
|
|
|
98
98
|
'ion-selectable': true,
|
|
99
99
|
[`tab-button-shape-${shape}`]: shape !== undefined,
|
|
100
100
|
'ion-focusable': true,
|
|
101
|
-
} }, h("a", Object.assign({ key: '
|
|
101
|
+
} }, h("a", Object.assign({ key: '87bc750e94738ec73b2316d5a54df0affc4ad297' }, attrs, { class: "button-native", part: "native", role: "tab", "aria-selected": selected ? 'true' : null, "aria-disabled": disabled ? 'true' : null, tabindex: disabled ? '-1' : undefined }, inheritedAttributes), h("span", { key: 'ab3044999782632130135f53fca46c39576583b4', class: "button-inner" }, h("slot", { key: '6b9d8e397b9ffe1cd56b7f15de61cc2b77869eaf' })), theme === 'md' && h("ion-ripple-effect", { key: 'ade73af4b03ddef4860cc719b4682c300c3eeb35', type: "unbounded" }))));
|
|
102
102
|
}
|
|
103
103
|
static get is() { return "ion-tab-button"; }
|
|
104
104
|
static get encapsulation() { return "shadow"; }
|
|
@@ -148,7 +148,7 @@ export class Tabs {
|
|
|
148
148
|
return Array.from(this.el.querySelectorAll('ion-tab'));
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
|
-
return (h(Host, { key: '
|
|
151
|
+
return (h(Host, { key: '204d4689b8d91a46b53710974596f719ae040223', onIonTabButtonClick: this.onTabClicked }, h("slot", { key: '31b73cfcffa41720f7746383b692f5b287aa2007', name: "top" }), h("div", { key: 'fba78170055143a821676a463a623c0b174b4d5f', class: "tabs-inner" }, h("slot", { key: '220ee76e56b5508eba63166412204a94fbbe6e7c' })), h("slot", { key: 'b78f32dbf1a10d184fe0a186ebb8312e60cfc095', name: "bottom" })));
|
|
152
152
|
}
|
|
153
153
|
static get is() { return "ion-tabs"; }
|
|
154
154
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,9 +14,9 @@ export class Text {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const theme = getIonTheme(this);
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '7bf3aa9197541d2da1d40a361bc1bd9206a5223e', class: createColorClasses(this.color, {
|
|
18
18
|
[theme]: true,
|
|
19
|
-
}) }, h("slot", { key: '
|
|
19
|
+
}) }, h("slot", { key: '5dc6e3ce051f0d26459847c2bc5895edf9d08ca9' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "ion-text"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -395,7 +395,7 @@ export class Textarea {
|
|
|
395
395
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
396
396
|
*/
|
|
397
397
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || hasFocus || hasStartEndSlots));
|
|
398
|
-
return (h(Host, { key: '
|
|
398
|
+
return (h(Host, { key: '74941a2a6f6aae597cf17d7a043e7b6dba5324e8', class: createColorClasses(this.color, {
|
|
399
399
|
[theme]: true,
|
|
400
400
|
'has-value': hasValue,
|
|
401
401
|
'has-focus': hasFocus,
|
|
@@ -406,7 +406,7 @@ export class Textarea {
|
|
|
406
406
|
[`textarea-label-placement-${labelPlacement}`]: true,
|
|
407
407
|
'textarea-disabled': disabled,
|
|
408
408
|
'textarea-readonly': readonly,
|
|
409
|
-
}) }, h("label", { key: '
|
|
409
|
+
}) }, h("label", { key: '2a6736be472bbc5e6417aedb48eb989978769a25', class: "textarea-wrapper", htmlFor: inputId }, this.renderLabelContainer(), h("div", { key: '670fdd27efcf2c2cf636efcf6e2273986f1e9acb', class: "textarea-wrapper-inner" },
|
|
410
410
|
/**
|
|
411
411
|
* For the ionic theme, we render the outline container here
|
|
412
412
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -416,7 +416,7 @@ export class Textarea {
|
|
|
416
416
|
* <label> element, ensuring that clicking the label text
|
|
417
417
|
* focuses the textarea.
|
|
418
418
|
*/
|
|
419
|
-
theme === 'ionic' && fill === 'outline' && h("div", { key: '
|
|
419
|
+
theme === 'ionic' && fill === 'outline' && h("div", { key: 'b5fb2d6ebc0700890941ba59a96bcae8f491e9b5', class: "textarea-outline" }), h("div", { key: '3a52feaf0d97a106abcdcf592c60c9da7cc59cd8', class: "start-slot-wrapper" }, h("slot", { key: '8376c6c129ca13cd82f3b9afdfc4407b754ef2e2', name: "start" })), h("div", { key: '3cfa0cb78a3912b8b5589579e70ac384acd0672a', class: "native-wrapper", ref: (el) => (this.textareaWrapper = el) }, h("textarea", Object.assign({ key: 'e9fe5a7afb7df21fe2c4f106efc3eba9de671dbb', 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.getHintTextID() === this.errorTextId }, this.inheritedAttributes), value)), h("div", { key: 'a9132c9c5f06ddcb7a447bd8d46aa901ab56a88a', class: "end-slot-wrapper" }, h("slot", { key: 'a9d2cfd6ce2fcf0e95f1ed94ee56addda55ad4ad', name: "end" }))), shouldRenderHighlight && h("div", { key: '17f114125438e3a5c9d5b63e7bb3ad1b85dc7174', class: "textarea-highlight" })), this.renderBottomContent()));
|
|
420
420
|
}
|
|
421
421
|
static get is() { return "ion-textarea"; }
|
|
422
422
|
static get encapsulation() { return "scoped"; }
|
|
@@ -10,9 +10,9 @@ import { getIonTheme } from "../../global/ionic-global";
|
|
|
10
10
|
export class Thumbnail {
|
|
11
11
|
render() {
|
|
12
12
|
const theme = getIonTheme(this);
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'd8834b52a3f938cbd2cd7196e0b0e057746e5a7e', class: {
|
|
14
14
|
[theme]: true,
|
|
15
|
-
} }, h("slot", { key: '
|
|
15
|
+
} }, h("slot", { key: 'c7be8264e5c9628d8be1ac202cac7f1ec8f0cb61' })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "ion-thumbnail"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,11 +31,11 @@ export class ToolbarTitle {
|
|
|
31
31
|
render() {
|
|
32
32
|
const theme = getIonTheme(this);
|
|
33
33
|
const size = this.getSize();
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '4ea0b5b986ff55f4512840d8582c5d015032dccf', class: createColorClasses(this.color, {
|
|
35
35
|
[theme]: true,
|
|
36
36
|
[`title-${size}`]: true,
|
|
37
37
|
'title-rtl': document.dir === 'rtl',
|
|
38
|
-
}) }, h("div", { key: '
|
|
38
|
+
}) }, h("div", { key: '1c1afffd677120d63753f9500e117d77d7f65a8a', class: "toolbar-title" }, h("slot", { key: '4c6329b996db30c09c93ac08506fc23377d0d77f' }))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "ion-title"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -407,9 +407,9 @@ export class Toast {
|
|
|
407
407
|
if (layout === 'stacked' && startButtons.length > 0 && endButtons.length > 0) {
|
|
408
408
|
printIonWarning('This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.', el);
|
|
409
409
|
}
|
|
410
|
-
return (h(Host, Object.assign({ key: '
|
|
410
|
+
return (h(Host, Object.assign({ key: '789f33465c1381e378b97804abed62614b55bed0', tabindex: "-1" }, this.htmlAttributes, { style: {
|
|
411
411
|
zIndex: `${60000 + this.overlayIndex}`,
|
|
412
|
-
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true, [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '
|
|
412
|
+
}, class: createColorClasses(this.color, Object.assign(Object.assign({ [mode]: true, [theme]: true }, getClassMap(this.cssClass)), { 'overlay-hidden': true, 'toast-translucent': this.translucent, [`toast-shape-${shape}`]: shape !== undefined })), onIonToastWillDismiss: this.dispatchCancelHandler }), h("div", { key: '7cdde3cb05a75e23e1e0780fad7f4f5a43474456', class: wrapperClass }, h("div", { key: '5534c44b9ac41c080eb27798ed8d2073a418ec7d', class: "toast-container", part: "container" }, this.renderButtons(startButtons, 'start'), this.icon !== undefined && (h("ion-icon", { key: '66e7384e1d77bb260431675cd1abc4c815da6366', class: "toast-icon", part: "icon", icon: this.icon, lazy: false, "aria-hidden": "true" })), h("div", { key: 'f9528903610b7fb229f78d782e4e2e0473080d61', class: "toast-content", role: "status", "aria-atomic": "true", "aria-live": "polite" }, !revealContentToScreenReader && header !== undefined && this.renderHeader('oldHeader', 'true'), !revealContentToScreenReader && message !== undefined && this.renderToastMessage('oldMessage', 'true'), revealContentToScreenReader && header !== undefined && this.renderHeader('header'), revealContentToScreenReader && message !== undefined && this.renderToastMessage('header')), this.renderButtons(endButtons, 'end')))));
|
|
413
413
|
}
|
|
414
414
|
static get is() { return "ion-toast"; }
|
|
415
415
|
static get encapsulation() { return "shadow"; }
|
|
@@ -208,7 +208,7 @@ export class Toggle {
|
|
|
208
208
|
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
|
209
209
|
const isIonicTheme = theme === 'ionic';
|
|
210
210
|
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
|
211
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: 'fb45e051527a0a0914d18659bc1aeab5e9a4c50e', onClick: this.onClick, class: createColorClasses(color, {
|
|
212
212
|
[theme]: true,
|
|
213
213
|
'in-item': hostContext('ion-item', el),
|
|
214
214
|
'toggle-activated': activated,
|
|
@@ -220,10 +220,10 @@ export class Toggle {
|
|
|
220
220
|
[`toggle-${rtl}`]: true,
|
|
221
221
|
'ion-activatable': isIonicTheme,
|
|
222
222
|
'ion-focusable': isIonicTheme,
|
|
223
|
-
}) }, h("label", { key: '
|
|
223
|
+
}) }, h("label", { key: 'f353323a0ed20368339ef0fed50d63f3b859f1ac', class: "toggle-wrapper" }, h("input", Object.assign({ key: 'dbb471178fe04993330a5f811bb88d3a0fbbcbf4', type: "checkbox", role: "switch", "aria-checked": `${checked}`, checked: checked, disabled: disabled, id: inputId, onFocus: () => this.onFocus(), onBlur: () => this.onBlur(), ref: (focusEl) => (this.focusEl = focusEl) }, this.inheritedAttributes)), h("div", { key: 'b40a037e148ad25490d22c8b55120713e85253c9', class: {
|
|
224
224
|
'label-text-wrapper': true,
|
|
225
225
|
'label-text-wrapper-hidden': !this.hasLabel,
|
|
226
|
-
}, part: "label" }, h("slot", { key: '
|
|
226
|
+
}, part: "label" }, h("slot", { key: '1eb06a2005f862ee50fe6f11e7e750eb9daeba7b' })), h("div", { key: 'd2acbaff908b41301b37fbb1f99385a1c571cdf8', class: "native-wrapper" }, this.renderToggleControl()))));
|
|
227
227
|
}
|
|
228
228
|
static get is() { return "ion-toggle"; }
|
|
229
229
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,10 +63,10 @@ export class Toolbar {
|
|
|
63
63
|
this.childrenStyles.forEach((value) => {
|
|
64
64
|
Object.assign(childStyles, value);
|
|
65
65
|
});
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '31d2cea6423110a58ed8ba749e422889c6f6d310', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
|
|
67
67
|
[theme]: true,
|
|
68
68
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
69
|
-
})) }, h("div", { key: '
|
|
69
|
+
})) }, h("div", { key: 'a3ecd195af52489725b7396c0aab32a9b4d4a49c', class: "toolbar-background" }), h("div", { key: 'cfdc07edc4b002370df08ce4c913c3a52955252a', class: "toolbar-container" }, h("slot", { key: 'b77feb227ab03d0fe095fdf620973e8502b486e6', name: "start" }), h("slot", { key: '4284acf3c65df07e74908ee6620d5595255ac547', name: "secondary" }), h("div", { key: '879fdaedc732cbf414d24f3ed3b0abcf4baaae71', class: "toolbar-content" }, h("slot", { key: '975a411effa1492d6c4eb9302b3d8580bbce192d' })), h("slot", { key: '5cfef86927c398b40710769bbdba9cf4c45100c5', name: "primary" }), h("slot", { key: '416036fa2a84a8ef0cb6329d68da040c47bd2aea', name: "end" }))));
|
|
70
70
|
}
|
|
71
71
|
static get is() { return "ion-toolbar"; }
|
|
72
72
|
static get encapsulation() { return "shadow"; }
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-03-
|
|
2
|
+
"timestamp": "2025-03-07T16:46:28",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.20.0",
|
|
@@ -30837,7 +30837,7 @@
|
|
|
30837
30837
|
"mutable": false,
|
|
30838
30838
|
"attr": "shape",
|
|
30839
30839
|
"reflectToAttr": false,
|
|
30840
|
-
"docs": "Set to `\"soft\"` for a searchbar with slightly rounded corners,\n`\"round\"` for a searchbar with fully rounded corners,\nor `\"rectangular\"` for a searchbar without rounded corners.\nDefaults to `\"round\"` for the ionic theme, and `undefined` for all other themes.",
|
|
30840
|
+
"docs": "Set to `\"soft\"` for a searchbar with slightly rounded corners,\n`\"round\"` for a searchbar with fully rounded corners,\nor `\"rectangular\"` for a searchbar without rounded corners.\n\nDefaults to `\"round\"` for the ionic theme, and `undefined` for all other themes.",
|
|
30841
30841
|
"docsTags": [],
|
|
30842
30842
|
"values": [
|
|
30843
30843
|
{
|
|
@@ -30921,6 +30921,39 @@
|
|
|
30921
30921
|
"optional": false,
|
|
30922
30922
|
"required": false
|
|
30923
30923
|
},
|
|
30924
|
+
{
|
|
30925
|
+
"name": "size",
|
|
30926
|
+
"type": "\"large\" | \"medium\" | \"small\" | undefined",
|
|
30927
|
+
"complexType": {
|
|
30928
|
+
"original": "'small' | 'medium' | 'large'",
|
|
30929
|
+
"resolved": "\"large\" | \"medium\" | \"small\" | undefined",
|
|
30930
|
+
"references": {}
|
|
30931
|
+
},
|
|
30932
|
+
"mutable": false,
|
|
30933
|
+
"attr": "size",
|
|
30934
|
+
"reflectToAttr": false,
|
|
30935
|
+
"docs": "Set to `\"large\"` for a searchbar with an increase in height,\nwhile \"small\" and \"medium\" provide progressively smaller heights.\n\nDefaults to `\"medium\"` for the ionic theme, and `undefined` for all other themes.",
|
|
30936
|
+
"docsTags": [],
|
|
30937
|
+
"values": [
|
|
30938
|
+
{
|
|
30939
|
+
"value": "large",
|
|
30940
|
+
"type": "string"
|
|
30941
|
+
},
|
|
30942
|
+
{
|
|
30943
|
+
"value": "medium",
|
|
30944
|
+
"type": "string"
|
|
30945
|
+
},
|
|
30946
|
+
{
|
|
30947
|
+
"value": "small",
|
|
30948
|
+
"type": "string"
|
|
30949
|
+
},
|
|
30950
|
+
{
|
|
30951
|
+
"type": "undefined"
|
|
30952
|
+
}
|
|
30953
|
+
],
|
|
30954
|
+
"optional": true,
|
|
30955
|
+
"required": false
|
|
30956
|
+
},
|
|
30924
30957
|
{
|
|
30925
30958
|
"name": "spellcheck",
|
|
30926
30959
|
"type": "boolean",
|
|
@@ -1192,11 +1192,11 @@ const ToolbarTitle = class {
|
|
|
1192
1192
|
render() {
|
|
1193
1193
|
const theme = getIonTheme(this);
|
|
1194
1194
|
const size = this.getSize();
|
|
1195
|
-
return (h(Host, { key: '
|
|
1195
|
+
return (h(Host, { key: '4ea0b5b986ff55f4512840d8582c5d015032dccf', class: createColorClasses(this.color, {
|
|
1196
1196
|
[theme]: true,
|
|
1197
1197
|
[`title-${size}`]: true,
|
|
1198
1198
|
'title-rtl': document.dir === 'rtl',
|
|
1199
|
-
}) }, h("div", { key: '
|
|
1199
|
+
}) }, h("div", { key: '1c1afffd677120d63753f9500e117d77d7f65a8a', class: "toolbar-title" }, h("slot", { key: '4c6329b996db30c09c93ac08506fc23377d0d77f' }))));
|
|
1200
1200
|
}
|
|
1201
1201
|
get el() { return getElement(this); }
|
|
1202
1202
|
static get watchers() { return {
|
|
@@ -1268,10 +1268,10 @@ const Toolbar = class {
|
|
|
1268
1268
|
this.childrenStyles.forEach((value) => {
|
|
1269
1269
|
Object.assign(childStyles, value);
|
|
1270
1270
|
});
|
|
1271
|
-
return (h(Host, { key: '
|
|
1271
|
+
return (h(Host, { key: '31d2cea6423110a58ed8ba749e422889c6f6d310', class: Object.assign(Object.assign({}, childStyles), createColorClasses(this.color, {
|
|
1272
1272
|
[theme]: true,
|
|
1273
1273
|
'in-toolbar': hostContext('ion-toolbar', this.el),
|
|
1274
|
-
})) }, h("div", { key: '
|
|
1274
|
+
})) }, h("div", { key: 'a3ecd195af52489725b7396c0aab32a9b4d4a49c', class: "toolbar-background" }), h("div", { key: 'cfdc07edc4b002370df08ce4c913c3a52955252a', class: "toolbar-container" }, h("slot", { key: 'b77feb227ab03d0fe095fdf620973e8502b486e6', name: "start" }), h("slot", { key: '4284acf3c65df07e74908ee6620d5595255ac547', name: "secondary" }), h("div", { key: '879fdaedc732cbf414d24f3ed3b0abcf4baaae71', class: "toolbar-content" }, h("slot", { key: '975a411effa1492d6c4eb9302b3d8580bbce192d' })), h("slot", { key: '5cfef86927c398b40710769bbdba9cf4c45100c5', name: "primary" }), h("slot", { key: '416036fa2a84a8ef0cb6329d68da040c47bd2aea', name: "end" }))));
|
|
1275
1275
|
}
|
|
1276
1276
|
get el() { return getElement(this); }
|
|
1277
1277
|
};
|
|
@@ -139,9 +139,9 @@ const Thumbnail = class {
|
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
141
|
const theme = getIonTheme(this);
|
|
142
|
-
return (h(Host, { key: '
|
|
142
|
+
return (h(Host, { key: 'd8834b52a3f938cbd2cd7196e0b0e057746e5a7e', class: {
|
|
143
143
|
[theme]: true,
|
|
144
|
-
} }, h("slot", { key: '
|
|
144
|
+
} }, h("slot", { key: 'c7be8264e5c9628d8be1ac202cac7f1ec8f0cb61' })));
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
Thumbnail.style = IonThumbnailStyle0;
|
|
@@ -543,11 +543,11 @@ const SkeletonText = class {
|
|
|
543
543
|
const animated = this.animated && config.getBoolean('animated', true);
|
|
544
544
|
const inMedia = hostContext('ion-avatar', this.el) || hostContext('ion-thumbnail', this.el);
|
|
545
545
|
const theme = getIonTheme(this);
|
|
546
|
-
return (h(Host, { key: '
|
|
546
|
+
return (h(Host, { key: '70efd9086ef58705a965a63aa3e5ac775757dc85', class: {
|
|
547
547
|
[theme]: true,
|
|
548
548
|
'skeleton-text-animated': animated,
|
|
549
549
|
'in-media': inMedia,
|
|
550
|
-
} }, h("span", { key: '
|
|
550
|
+
} }, h("span", { key: '296246a88e33e0106045bec2f64738f48593ba12' }, "\u00A0")));
|
|
551
551
|
}
|
|
552
552
|
get el() { return getElement(this); }
|
|
553
553
|
};
|