@ionic/core 8.8.4-dev.11777064748.1e6da1cd → 8.8.4-dev.11777067325.14ed5f47
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-select.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/p-T6sDNj2w.js +4 -0
- package/dist/cjs/icon-ndNnPzge.js +20640 -0
- package/dist/cjs/ion-select_3.cjs.entry.js +10 -9
- package/dist/cjs/ion-toggle.cjs.entry.js +6 -20637
- package/dist/collection/components/select/select.ionic.css +2 -0
- package/dist/collection/components/select/select.js +9 -8
- package/dist/collection/components/toggle/toggle.ionic.css +2 -0
- package/dist/docs.json +3 -5
- package/dist/esm/icon-BWxoYTju.js +20638 -0
- package/dist/esm/ion-select_3.entry.js +10 -9
- package/dist/esm/ion-toggle.entry.js +3 -20634
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-Bok0wh97.js +4 -0
- package/dist/ionic/p-c6e7543d.entry.js +4 -0
- package/dist/ionic/p-ed158d4a.entry.js +4 -0
- package/hydrate/index.js +3813 -3813
- package/hydrate/index.mjs +3813 -3813
- package/package.json +1 -1
- package/dist/ionic/p-092e92b0.entry.js +0 -4
- package/dist/ionic/p-d54a76c6.entry.js +0 -4
|
@@ -5,6 +5,7 @@ import caretDownRegular from "@phosphor-icons/core/assets/regular/caret-down.svg
|
|
|
5
5
|
import { Build, Host, h, forceUpdate } from "@stencil/core";
|
|
6
6
|
import { compareOptions, createNotchController, isOptionSelected, checkInvalidState } from "../../utils/forms/index";
|
|
7
7
|
import { focusVisibleElement, renderHiddenInput, inheritAttributes } from "../../utils/helpers";
|
|
8
|
+
import { renderIcon } from "../../utils/icon";
|
|
8
9
|
import { printIonWarning } from "../../utils/logging/index";
|
|
9
10
|
import { actionSheetController, alertController, popoverController, modalController } from "../../utils/overlays";
|
|
10
11
|
import { isRTL } from "../../utils/rtl/index";
|
|
@@ -753,12 +754,12 @@ export class Select {
|
|
|
753
754
|
* next to the select text.
|
|
754
755
|
*/
|
|
755
756
|
renderSelectIcon() {
|
|
757
|
+
const theme = getIonTheme(this);
|
|
756
758
|
const { isExpanded, selectExpandedIcon, selectCollapsedIcon } = this;
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
761
|
-
return h("ion-icon", { class: "select-icon", part: "icon", "aria-hidden": "true", icon: icon });
|
|
759
|
+
const icon = isExpanded ? selectExpandedIcon : selectCollapsedIcon;
|
|
760
|
+
// Use the font glyph for the default ionic icon; null forces SVG for custom icons.
|
|
761
|
+
const ionicIconClass = icon === caretDownRegular ? 'ph-caret-down' : null;
|
|
762
|
+
return renderIcon(theme, ionicIconClass, icon, { class: { 'select-icon': true }, part: 'icon' });
|
|
762
763
|
}
|
|
763
764
|
get ariaLabel() {
|
|
764
765
|
var _a;
|
|
@@ -917,7 +918,7 @@ export class Select {
|
|
|
917
918
|
* TODO(FW-5592): Remove hasStartEndSlots condition
|
|
918
919
|
*/
|
|
919
920
|
const labelShouldFloat = labelPlacement === 'stacked' || (labelPlacement === 'floating' && (hasValue || isExpanded || hasStartEndSlots));
|
|
920
|
-
return (h(Host, { key: '
|
|
921
|
+
return (h(Host, { key: 'adff24eefb2530bedad439d4fc487e8bc14ea6e9', onClick: this.onClick, class: createColorClasses(this.color, {
|
|
921
922
|
[theme]: true,
|
|
922
923
|
'in-item': inItem,
|
|
923
924
|
'in-item-color': hostContext('ion-item.ion-color', el),
|
|
@@ -936,7 +937,7 @@ export class Select {
|
|
|
936
937
|
[`select-shape-${shape}`]: shape !== undefined,
|
|
937
938
|
[`select-label-placement-${labelPlacement}`]: true,
|
|
938
939
|
[`select-size-${size}`]: size !== undefined,
|
|
939
|
-
}) }, h("label", { key: '
|
|
940
|
+
}) }, h("label", { key: 'ae2d8ab47f377909857ccd082e0f4aaa5504fa8b', class: "select-wrapper", id: "select-label", onClick: this.onLabelClick, part: "wrapper" }, this.renderLabelContainer(), h("div", { key: 'd908a934f21c145f178c3e39eb7ec076caec752a', class: "select-wrapper-inner", part: "inner" },
|
|
940
941
|
/**
|
|
941
942
|
* For the ionic theme, we render the outline container here
|
|
942
943
|
* instead of higher up, so it can be positioned relative to
|
|
@@ -946,7 +947,7 @@ export class Select {
|
|
|
946
947
|
* <label> element, ensuring that clicking the label text
|
|
947
948
|
* focuses the select.
|
|
948
949
|
*/
|
|
949
|
-
theme === 'ionic' && fill === 'outline' && h("div", { key: '
|
|
950
|
+
theme === 'ionic' && fill === 'outline' && h("div", { key: '039d4719fd7e9f63574f3f98680a4df1d2bb4991', class: "select-outline" }), h("slot", { key: 'd227aea2b1c9d8318b8ccabeb8aef3fab72fd108', name: "start" }), h("div", { key: '5dbb3fd5b5e1ba443fe7589fead79a1e4cb35042', class: "native-wrapper", ref: (el) => (this.nativeWrapperEl = el), part: "container" }, this.renderSelectText(), this.renderListbox()), h("slot", { key: 'abfe8949dfe755e5477b2578f1c97159568c3502', name: "end" }), shouldRenderInnerIcon && this.renderSelectIcon()), shouldRenderOuterIcon && this.renderSelectIcon(), shouldRenderHighlight && h("div", { key: '55dce3ef686cc1e6d9b049978e0a62dbead1a087', class: "select-highlight" })), this.renderBottomContent()));
|
|
950
951
|
}
|
|
951
952
|
static get is() { return "ion-select"; }
|
|
952
953
|
static get encapsulation() { return "shadow"; }
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-04-24T21:
|
|
2
|
+
"timestamp": "2026-04-24T21:51:12",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.43.0",
|
|
@@ -38973,8 +38973,7 @@
|
|
|
38973
38973
|
"ion-action-sheet",
|
|
38974
38974
|
"ion-alert",
|
|
38975
38975
|
"ion-select-modal",
|
|
38976
|
-
"ion-modal"
|
|
38977
|
-
"ion-icon"
|
|
38976
|
+
"ion-modal"
|
|
38978
38977
|
],
|
|
38979
38978
|
"dependencyGraph": {
|
|
38980
38979
|
"ion-select": [
|
|
@@ -38983,8 +38982,7 @@
|
|
|
38983
38982
|
"ion-action-sheet",
|
|
38984
38983
|
"ion-alert",
|
|
38985
38984
|
"ion-select-modal",
|
|
38986
|
-
"ion-modal"
|
|
38987
|
-
"ion-icon"
|
|
38985
|
+
"ion-modal"
|
|
38988
38986
|
],
|
|
38989
38987
|
"ion-select-popover": [
|
|
38990
38988
|
"ion-item",
|