@ionic/core 9.0.12-dev.11794925657.15984d14 → 9.0.12-dev.11795023599.110c163a

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.
Files changed (75) hide show
  1. package/components/ion-action-sheet.js +1 -1
  2. package/components/ion-alert.js +1 -1
  3. package/components/ion-datetime.js +1 -1
  4. package/components/ion-fab-button.js +1 -1
  5. package/components/ion-picker-column.js +1 -1
  6. package/components/ion-range.js +1 -1
  7. package/components/ion-refresher.js +1 -1
  8. package/components/ion-reorder-group.js +1 -1
  9. package/components/ion-select.js +1 -1
  10. package/components/ion-toggle.js +1 -1
  11. package/components/{p-Bl36leJI.js → p-BeEHsJM3.js} +1 -1
  12. package/components/p-CXQ6JEmL.js +4 -0
  13. package/components/{p-fCziDtBc.js → p-DUJ2gcEe.js} +1 -1
  14. package/components/{p-C6Eoe8TE.js → p-DfrQs1O0.js} +1 -1
  15. package/components/{p-DSGxE4YQ.js → p-yyRjU9O9.js} +1 -1
  16. package/dist/cjs/{button-active-B9Tkc4mf.js → button-active-D5wEis5p.js} +1 -1
  17. package/dist/cjs/{haptic-CRRCyhfL.js → haptic-CqVhfNKl.js} +6 -2
  18. package/dist/cjs/ion-action-sheet.cjs.entry.js +2 -2
  19. package/dist/cjs/ion-alert.cjs.entry.js +2 -2
  20. package/dist/cjs/ion-fab_3.cjs.entry.js +12 -5
  21. package/dist/cjs/ion-picker-column.cjs.entry.js +1 -1
  22. package/dist/cjs/ion-range.cjs.entry.js +61 -37
  23. package/dist/cjs/ion-refresher_2.cjs.entry.js +1 -1
  24. package/dist/cjs/ion-reorder_2.cjs.entry.js +1 -1
  25. package/dist/cjs/ion-toggle.cjs.entry.js +15 -7
  26. package/dist/cjs/ionic.cjs.js +1 -1
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/collection/components/fab-button/fab-button.ios.css +32 -6
  29. package/dist/collection/components/fab-button/fab-button.js +32 -3
  30. package/dist/collection/components/fab-button/fab-button.md.css +24 -5
  31. package/dist/collection/components/range/range.js +61 -37
  32. package/dist/collection/components/toggle/toggle.ios.css +11 -1
  33. package/dist/collection/components/toggle/toggle.js +51 -5
  34. package/dist/collection/utils/native/haptic.js +6 -2
  35. package/dist/docs.json +92 -3
  36. package/dist/esm/{button-active-C2jz6R8a.js → button-active-DuvOEEsE.js} +1 -1
  37. package/dist/esm/{haptic-ChR8my2M.js → haptic-C9ma6MwT.js} +6 -2
  38. package/dist/esm/ion-action-sheet.entry.js +2 -2
  39. package/dist/esm/ion-alert.entry.js +2 -2
  40. package/dist/esm/ion-fab_3.entry.js +13 -6
  41. package/dist/esm/ion-picker-column.entry.js +1 -1
  42. package/dist/esm/ion-range.entry.js +61 -37
  43. package/dist/esm/ion-refresher_2.entry.js +1 -1
  44. package/dist/esm/ion-reorder_2.entry.js +1 -1
  45. package/dist/esm/ion-toggle.entry.js +15 -7
  46. package/dist/esm/ionic.js +1 -1
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/html.html-data.json +12 -0
  49. package/dist/ionic/ionic.esm.js +1 -1
  50. package/dist/ionic/{p-6e7d46fa.entry.js → p-498073c0.entry.js} +1 -1
  51. package/dist/ionic/{p-1ae4b282.entry.js → p-6c854d4a.entry.js} +1 -1
  52. package/dist/ionic/{p-d7749f70.entry.js → p-7f3c7fec.entry.js} +1 -1
  53. package/dist/ionic/p-99fd4028.entry.js +4 -0
  54. package/dist/ionic/{p-RJtRqfIz.js → p-BaU5Mt_n.js} +1 -1
  55. package/dist/ionic/p-CdqNYSOD.js +4 -0
  56. package/dist/ionic/{p-2f68b3c0.entry.js → p-c118ade8.entry.js} +1 -1
  57. package/dist/ionic/p-d0d4482d.entry.js +4 -0
  58. package/dist/ionic/{p-52186d6b.entry.js → p-d3b2bd6a.entry.js} +1 -1
  59. package/dist/ionic/p-e892e218.entry.js +4 -0
  60. package/dist/types/components/fab-button/fab-button.d.ts +6 -0
  61. package/dist/types/components/range/range-interface.d.ts +2 -30
  62. package/dist/types/components/range/range.d.ts +12 -5
  63. package/dist/types/components/toggle/toggle.d.ts +16 -1
  64. package/dist/types/components.d.ts +29 -0
  65. package/dist/types/interface.d.ts +1 -8
  66. package/dist/types/utils/config.d.ts +16 -0
  67. package/dist/types/utils/native/haptic.d.ts +2 -2
  68. package/hydrate/index.js +96 -50
  69. package/hydrate/index.mjs +96 -50
  70. package/package.json +1 -1
  71. package/components/p-CEW4RXZO.js +0 -4
  72. package/dist/ionic/p-74dda4e5.entry.js +0 -4
  73. package/dist/ionic/p-9a2b5db2.entry.js +0 -4
  74. package/dist/ionic/p-C_0lvVN_.js +0 -4
  75. package/dist/ionic/p-fcc5b886.entry.js +0 -4
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * (C) Ionic http://ionicframework.com - MIT License
3
+ */
4
+ import{r as t,h as o,f as a,g as i,d as r,a as n,i as e,j as s}from"./p-BGtO2Fhf.js";import{b as c}from"./p-CjUT_VTP.js";import{c as b}from"./p-Bl_jKJLv.js";import{k as l,i as d}from"./p-de2BC0yO.js";import{h as f,o as h,c as p}from"./p-byZM6qHV.js";import{t as u}from"./p-BvabGprD.js";import"./p-Dj4J3LkD.js";const g=class{constructor(o){new.target===g&&t(this,o),this.edge=!1,this.activated=!1}activatedChanged(){const t=this.activated,o=this.getFab();o&&(o.activated=t),Array.from(this.el.querySelectorAll("ion-fab-list")).forEach((o=>{o.activated=t}))}componentDidLoad(){this.activated&&this.activatedChanged()}async close(){this.activated=!1}getFab(){return this.el.querySelector("ion-fab-button")}async toggle(){this.el.querySelector("ion-fab-list")&&(this.activated=!this.activated)}render(){const{horizontal:t,vertical:i,edge:r}=this,n=c(this);return o(a,{key:"8a310806d0e748d7ebb0ed3d9a2652038e0f2960",class:{[n]:!0,[`fab-horizontal-${t}`]:void 0!==t,[`fab-vertical-${i}`]:void 0!==i,"fab-edge":r}},o("slot",{key:"9394ef6d6e5b0410fa6ba212171f687fb178ce2d"}))}get el(){return i(this)}static get watchers(){return{activated:[{activatedChanged:0}]}}};g.style=":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}";const m=class{constructor(o){new.target===m&&t(this,o),this.ionFocus=r(this,"ionFocus",7),this.ionBlur=r(this,"ionBlur",7),this.fab=null,this.formButtonEl=null,this.formEl=null,this.inheritedAttributes={},this.activated=!1,this.animated=!0,this.disabled=!1,this.routerDirection="forward",this.show=!1,this.translucent=!1,this.type="button",this.closeIcon=u,this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=t=>{const{el:o,fab:a}=this;"button"!==this.type&&l(o)&&this.submitForm(t),a&&a.toggle()}}disabledChanged(){const{disabled:t}=this;this.formButtonEl&&(this.formButtonEl.disabled=t)}connectedCallback(){this.fab=this.el.closest("ion-fab"),this.tabindexController?.init()}disconnectedCallback(){this.tabindexController?.destroy()}renderHiddenButton(){const t=this.formEl=this.findForm();if(t){const{formButtonEl:o}=this;if(null!==o&&t.contains(o))return o.disabled=this.disabled,void(o.type=this.type);const a=this.formButtonEl=document.createElement("button");a.type=this.type,a.style.display="none",a.disabled=this.disabled,t.appendChild(a)}}findForm(){const{form:t}=this;if(t instanceof HTMLFormElement)return t;if("string"==typeof t){const o=document.getElementById(t);return o?o instanceof HTMLFormElement?o:(n(`[ion-fab-button] - Form with selector: "#${t}" could not be found. Verify that the id is attached to a <form> element.`,this.el),null):(n(`[ion-fab-button] - Form with selector: "#${t}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`,this.el),null)}return void 0!==t?(n('[ion-fab-button] - The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',this.el),null):this.el.closest("form")}submitForm(t){this.formEl&&this.formButtonEl&&(t.preventDefault(),this.formButtonEl.click())}componentWillLoad(){this.inheritedAttributes=d(this.el),this.tabindexController=b(this.el,(()=>s(this)))}render(){const{el:t,disabled:i,color:r,href:n,activated:s,animated:b,show:l,translucent:d,size:u,inheritedAttributes:g,type:m}=this,v=f("ion-fab-list",t),k=c(this),x=b&&e.getBoolean("animated",!0),w=this.tabindexController?.attributes??{},y=void 0===n?"button":"a",z="button"===y?{type:m}:{download:this.download,href:n,rel:this.rel,target:this.target};return"button"!==m&&this.renderHiddenButton(),o(a,{key:"78e48dd691cd7462ae43fb7d702d3bbd487ea578",onClick:this.onClick,"aria-disabled":i?"true":null,class:p(r,{[k]:!0,"fab-button-in-list":v,"fab-button-translucent-in-list":v&&d,"fab-button-close-active":s,"fab-button-animated":x,"fab-button-show":l,"fab-button-disabled":i,"fab-button-translucent":d,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${u}`]:void 0!==u})},o(y,{key:"38959b36a66ab9bf5e4b112db9081392c6b78219",...z,class:"button-native",part:"native",disabled:i,onFocus:this.onFocus,onBlur:this.onBlur,onClick:t=>"button"===m&&h(n,t,this.routerDirection,this.routerAnimation),...g,...w},o("ion-icon",{key:"c61e747b33cc1aee9d546a1adf1158374a742cb1","aria-hidden":"true",icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),o("span",{key:"3520c1d6cf7de8792e7e689ae5b7bd669adac789",class:"button-inner",part:"inner"},o("slot",{key:"71b0c63be1461e87ef494eea8085f1be4f8cc4fc"})),"md"===k&&o("ion-ripple-effect",{key:"4642494db6f0a4e3171e243eea4030c945a1d1c2"})))}get el(){return i(this)}static get watchers(){return{disabled:[{disabledChanged:0}]}}};m.style={ios:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}:host(.fab-button-animated) .button-native{-webkit-transition:var(--transition);transition:var(--transition)}:host(.fab-button-animated) .button-inner,:host(.fab-button-animated) .close-icon{-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform}@media (prefers-reduced-motion: reduce){:host(.fab-button-animated) .button-native{-webkit-transform:none;transform:none}:host(.fab-button-animated) .button-inner,:host(.fab-button-animated) .close-icon{-webkit-transform:none;transform:none;-webkit-transition-property:opacity;transition-property:opacity}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #0054e9);--background-activated:var(--ion-color-primary-shade, #004acd);--background-focused:var(--ion-color-primary-shade, #004acd);--background-hover:var(--ion-color-primary-tint, #1a65eb);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform ease-out}:host(.fab-button-animated.ion-activated){--transform:scale(1.1)}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 0, 84, 233), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',md:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}:host(.fab-button-animated) .button-native{-webkit-transition:var(--transition);transition:var(--transition)}:host(.fab-button-animated) .button-inner,:host(.fab-button-animated) .close-icon{-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform}@media (prefers-reduced-motion: reduce){:host(.fab-button-animated) .button-native{-webkit-transform:none;transform:none}:host(.fab-button-animated) .button-inner,:host(.fab-button-animated) .close-icon{-webkit-transform:none;transform:none;-webkit-transition-property:opacity;transition-property:opacity}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #0054e9);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}'};const v=class{constructor(o){new.target===v&&t(this,o),this.activateTimeouts=[],this.activated=!1,this.side="bottom"}activatedChanged(t){this.activateTimeouts.forEach(clearTimeout),this.activateTimeouts=[];const o=Array.from(this.el.querySelectorAll("ion-fab-button")),a=t?30:0;o.forEach(((o,i)=>{this.activateTimeouts.push(setTimeout((()=>o.show=t),i*a))}))}disconnectedCallback(){this.activateTimeouts.forEach(clearTimeout),this.activateTimeouts=[]}render(){const t=c(this);return o(a,{key:"03a8920c29a93c6df4bab14753a78a8a30722ce8",class:{[t]:!0,"fab-list-active":this.activated,[`fab-list-side-${this.side}`]:!0}},o("slot",{key:"d9e1541cb044e209bc2dff14080f3b938a2b84ae"}))}get el(){return i(this)}static get watchers(){return{activated:[{activatedChanged:0}]}}};v.style=":host{margin-left:0;margin-right:0;margin-top:calc(100% + 10px);margin-bottom:calc(100% + 10px);display:none;position:absolute;top:0;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;min-width:56px;min-height:56px}:host(.fab-list-active){display:-ms-flexbox;display:flex}::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:8px;margin-bottom:8px;width:40px;height:40px;-webkit-transform:scale(0);transform:scale(0);opacity:0;visibility:hidden}:host(.fab-list-side-top) ::slotted(.fab-button-in-list),:host(.fab-list-side-bottom) ::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px}:host(.fab-list-side-start) ::slotted(.fab-button-in-list),:host(.fab-list-side-end) ::slotted(.fab-button-in-list){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted(.fab-button-in-list.fab-button-show){-webkit-transform:scale(1);transform:scale(1);opacity:1;visibility:visible}:host(.fab-list-side-top){top:auto;bottom:0;-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.fab-list-side-start){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.fab-list-side-start){inset-inline-end:0}:host(.fab-list-side-end){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row;flex-direction:row}:host(.fab-list-side-end){inset-inline-start:0}";export{g as ion_fab,m as ion_fab_button,v as ion_fab_list}
@@ -7,6 +7,7 @@ import type { RouterDirection } from '../router/utils/interface';
7
7
  *
8
8
  * @part native - The native HTML button or anchor element that wraps all child elements.
9
9
  * @part close-icon - The close icon that is displayed when a fab list opens (uses ion-icon).
10
+ * @part inner - The wrapper around the button's content, hidden when a fab list opens.
10
11
  */
11
12
  export declare class FabButton implements ComponentInterface, AnchorInterface, ButtonInterface {
12
13
  private fab;
@@ -25,6 +26,11 @@ export declare class FabButton implements ComponentInterface, AnchorInterface, B
25
26
  * If `true`, the fab button will be show a close icon.
26
27
  */
27
28
  activated: boolean;
29
+ /**
30
+ * If `true`, the fab button will animate between states, such as
31
+ * swapping its content for the close icon.
32
+ */
33
+ animated: boolean;
28
34
  /**
29
35
  * If `true`, the user cannot interact with the fab button.
30
36
  */
@@ -1,5 +1,5 @@
1
- export type RangeKnobName = 'A' | 'B';
2
- export type RangeKnobPosition = 'lower' | 'upper';
1
+ export type KnobName = 'A' | 'B' | undefined;
2
+ export type KnobPosition = 'lower' | 'upper' | undefined;
3
3
  export type RangeValue = number | {
4
4
  lower: number;
5
5
  upper: number;
@@ -10,39 +10,11 @@ export interface RangeChangeEventDetail {
10
10
  }
11
11
  export interface RangeKnobMoveStartEventDetail {
12
12
  value: RangeValue;
13
- /**
14
- * The knob being moved. Knobs `A` and `B` keep their identity even if
15
- * they cross. A single knob range always reports `A`.
16
- */
17
- knob: RangeKnobName;
18
- /**
19
- * Whether the moved knob holds the `lower` or `upper` value before it moves.
20
- * A single knob range always reports `lower`.
21
- */
22
- position: RangeKnobPosition;
23
13
  }
24
14
  export interface RangeKnobMoveEndEventDetail {
25
15
  value: RangeValue;
26
- /**
27
- * The knob that was moved. Knobs `A` and `B` keep their identity even if
28
- * they cross. A single knob range always reports `A`.
29
- */
30
- knob: RangeKnobName;
31
- /**
32
- * Whether the moved knob holds the `lower` or `upper` value after it moves.
33
- * A single knob range always reports `lower`.
34
- */
35
- position: RangeKnobPosition;
36
16
  }
37
17
  export interface RangeCustomEvent extends CustomEvent {
38
18
  detail: RangeChangeEventDetail | RangeKnobMoveStartEventDetail | RangeKnobMoveEndEventDetail;
39
19
  target: HTMLIonRangeElement;
40
20
  }
41
- export interface RangeKnobMoveStartCustomEvent extends CustomEvent {
42
- detail: RangeKnobMoveStartEventDetail;
43
- target: HTMLIonRangeElement;
44
- }
45
- export interface RangeKnobMoveEndCustomEvent extends CustomEvent {
46
- detail: RangeKnobMoveEndEventDetail;
47
- target: HTMLIonRangeElement;
48
- }
@@ -220,17 +220,25 @@ export declare class Range implements ComponentInterface {
220
220
  */
221
221
  private emitValueChange;
222
222
  /**
223
- * Called when the user starts dragging the bar or knob,
224
- * or taps the bar. The view doesn't scroll during a drag
225
- * so the user doesn't get disoriented.
223
+ * The value should be updated on touch end or
224
+ * when the component is being dragged.
225
+ * This follows the native behavior of mobile devices.
226
226
  *
227
- * @param startX The x coordinate where the interaction started.
227
+ * For example: When the user lifts their finger from the
228
+ * screen after tapping the bar or dragging the bar or knob.
228
229
  */
229
230
  private onStart;
230
231
  /**
231
232
  * The value should be updated while dragging the
232
233
  * bar or knob.
233
234
  *
235
+ * While the user is dragging, the view
236
+ * should not scroll. This is to prevent the user from
237
+ * feeling disoriented while dragging.
238
+ *
239
+ * The user can scroll on the view if the knob or
240
+ * bar is not being dragged.
241
+ *
234
242
  * @param detail The details of the gesture event.
235
243
  */
236
244
  private onMove;
@@ -243,7 +251,6 @@ export declare class Range implements ComponentInterface {
243
251
  */
244
252
  private onEnd;
245
253
  private update;
246
- private getKnobMoveDetail;
247
254
  private setPressedKnob;
248
255
  private get valA();
249
256
  private get valB();
@@ -70,6 +70,20 @@ export declare class Toggle implements ComponentInterface {
70
70
  * Enables the on/off accessibility switch labels within the toggle.
71
71
  */
72
72
  enableOnOffLabels: boolean | undefined;
73
+ /**
74
+ * The built-in named SVG icon name or the exact `src` of an SVG file
75
+ * to use when the toggle is checked. Only shown when
76
+ * `enableOnOffLabels` is `true`. Defaults to `checkmark-outline` in
77
+ * `md` mode and a vertical line in `ios` mode.
78
+ */
79
+ checkedIcon?: string;
80
+ /**
81
+ * The built-in named SVG icon name or the exact `src` of an SVG file
82
+ * to use when the toggle is unchecked. Only shown when
83
+ * `enableOnOffLabels` is `true`. Defaults to `remove-outline` in
84
+ * `md` mode and `ellipse-outline` in `ios` mode.
85
+ */
86
+ uncheckedIcon?: string;
73
87
  /**
74
88
  * Where to place the label relative to the input.
75
89
  * `"start"`: The label will appear to the left of the toggle in LTR and to the right in RTL.
@@ -137,7 +151,8 @@ export declare class Toggle implements ComponentInterface {
137
151
  private onDivLabelClick;
138
152
  private onFocus;
139
153
  private onBlur;
140
- private getSwitchLabelIcon;
154
+ private getCustomSwitchLabelIcon;
155
+ private getDefaultSwitchLabelIcon;
141
156
  private renderOnOffSwitchLabels;
142
157
  private renderToggleControl;
143
158
  private get hasLabel();
@@ -1129,6 +1129,11 @@ export namespace Components {
1129
1129
  * @default false
1130
1130
  */
1131
1131
  "activated": boolean;
1132
+ /**
1133
+ * If `true`, the fab button will animate between states, such as swapping its content for the close icon.
1134
+ * @default true
1135
+ */
1136
+ "animated": boolean;
1132
1137
  /**
1133
1138
  * The icon name to use for the close icon. This will appear when the fab button is pressed. Only applies if it is the main button inside of a fab containing a fab list.
1134
1139
  * @default close
@@ -3623,6 +3628,10 @@ export namespace Components {
3623
3628
  * @default false
3624
3629
  */
3625
3630
  "checked": boolean;
3631
+ /**
3632
+ * The built-in named SVG icon name or the exact `src` of an SVG file to use when the toggle is checked. Only shown when `enableOnOffLabels` is `true`. Defaults to `checkmark-outline` in `md` mode and a vertical line in `ios` mode.
3633
+ */
3634
+ "checkedIcon"?: string;
3626
3635
  /**
3627
3636
  * The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
3628
3637
  */
@@ -3668,6 +3677,10 @@ export namespace Components {
3668
3677
  * @default false
3669
3678
  */
3670
3679
  "required": boolean;
3680
+ /**
3681
+ * The built-in named SVG icon name or the exact `src` of an SVG file to use when the toggle is unchecked. Only shown when `enableOnOffLabels` is `true`. Defaults to `remove-outline` in `md` mode and `ellipse-outline` in `ios` mode.
3682
+ */
3683
+ "uncheckedIcon"?: string;
3671
3684
  /**
3672
3685
  * The value of the toggle does not mean if it's checked or not, use the `checked` property for that. The value of a toggle is analogous to the value of a `<input type="checkbox">`, it's only used when the toggle participates in a native `<form>`.
3673
3686
  * @default 'on'
@@ -6235,6 +6248,11 @@ declare namespace LocalJSX {
6235
6248
  * @default false
6236
6249
  */
6237
6250
  "activated"?: boolean;
6251
+ /**
6252
+ * If `true`, the fab button will animate between states, such as swapping its content for the close icon.
6253
+ * @default true
6254
+ */
6255
+ "animated"?: boolean;
6238
6256
  /**
6239
6257
  * The icon name to use for the close icon. This will appear when the fab button is pressed. Only applies if it is the main button inside of a fab containing a fab list.
6240
6258
  * @default close
@@ -8721,6 +8739,10 @@ declare namespace LocalJSX {
8721
8739
  * @default false
8722
8740
  */
8723
8741
  "checked"?: boolean;
8742
+ /**
8743
+ * The built-in named SVG icon name or the exact `src` of an SVG file to use when the toggle is checked. Only shown when `enableOnOffLabels` is `true`. Defaults to `checkmark-outline` in `md` mode and a vertical line in `ios` mode.
8744
+ */
8745
+ "checkedIcon"?: string;
8724
8746
  /**
8725
8747
  * The color to use from your application's color palette. Default options are: `"primary"`, `"secondary"`, `"tertiary"`, `"success"`, `"warning"`, `"danger"`, `"light"`, `"medium"`, and `"dark"`. For more information on colors, see [theming](/docs/theming/basics).
8726
8748
  */
@@ -8778,6 +8800,10 @@ declare namespace LocalJSX {
8778
8800
  * @default false
8779
8801
  */
8780
8802
  "required"?: boolean;
8803
+ /**
8804
+ * The built-in named SVG icon name or the exact `src` of an SVG file to use when the toggle is unchecked. Only shown when `enableOnOffLabels` is `true`. Defaults to `remove-outline` in `md` mode and `ellipse-outline` in `ios` mode.
8805
+ */
8806
+ "uncheckedIcon"?: string;
8781
8807
  /**
8782
8808
  * The value of the toggle does not mean if it's checked or not, use the `checked` property for that. The value of a toggle is analogous to the value of a `<input type="checkbox">`, it's only used when the toggle participates in a native `<form>`.
8783
8809
  * @default 'on'
@@ -9004,6 +9030,7 @@ declare namespace LocalJSX {
9004
9030
  interface IonFabButtonAttributes {
9005
9031
  "color": Color;
9006
9032
  "activated": boolean;
9033
+ "animated": boolean;
9007
9034
  "disabled": boolean;
9008
9035
  "download": string | undefined;
9009
9036
  "href": string | undefined;
@@ -9507,6 +9534,8 @@ declare namespace LocalJSX {
9507
9534
  "helperText": string;
9508
9535
  "value": string | null;
9509
9536
  "enableOnOffLabels": boolean | undefined;
9537
+ "checkedIcon": string;
9538
+ "uncheckedIcon": string;
9510
9539
  "labelPlacement": 'start' | 'end' | 'fixed' | 'stacked';
9511
9540
  "justify": 'start' | 'end' | 'space-between';
9512
9541
  "alignment": 'start' | 'center';
@@ -21,14 +21,7 @@ export { ModalOptions, ModalCustomEvent, ModalDragEventDetail } from './componen
21
21
  export { NavDirection, NavCustomEvent } from './components/nav/nav-interface';
22
22
  export { PopoverOptions } from './components/popover/popover-interface';
23
23
  export { RadioGroupCustomEvent } from './components/radio-group/radio-group-interface';
24
- export {
25
- RangeCustomEvent,
26
- RangeKnobMoveStartCustomEvent,
27
- RangeKnobMoveEndCustomEvent,
28
- PinFormatter,
29
- RangeKnobName,
30
- RangeKnobPosition,
31
- } from './components/range/range-interface';
24
+ export { RangeCustomEvent, PinFormatter } from './components/range/range-interface';
32
25
  export { RouterCustomEvent } from './components/router/utils/interface';
33
26
  export { RefresherCustomEvent, RefresherPullEndCustomEvent } from './components/refresher/refresher-interface';
34
27
  export {
@@ -58,6 +58,16 @@ export interface IonicConfig {
58
58
  * Overrides the default enableOnOffLabels in all `<ion-toggle>` components.
59
59
  */
60
60
  toggleOnOffLabels?: boolean;
61
+ /**
62
+ * Overrides the default checked icon in all `<ion-toggle>` components.
63
+ * Only shown when on/off labels are enabled.
64
+ */
65
+ toggleCheckedIcon?: string;
66
+ /**
67
+ * Overrides the default unchecked icon in all `<ion-toggle>` components.
68
+ * Only shown when on/off labels are enabled.
69
+ */
70
+ toggleUncheckedIcon?: string;
61
71
  /**
62
72
  * Overrides the default spinner for all `ion-loading` overlays, ie. the ones
63
73
  * created with `ion-loading-controller`.
@@ -154,6 +164,12 @@ export interface IonicConfig {
154
164
  * `innerHTML` usage is disabled by default.
155
165
  */
156
166
  innerHTMLTemplatesEnabled?: boolean;
167
+ /**
168
+ * Relevant Components: ion-action-sheet, ion-alert, ion-picker-column, ion-refresher, ion-reorder-group, ion-toggle
169
+ * Haptics are the small vibrations a device plays as touch feedback, such as when a toggle is switched.
170
+ * If `false`, Ionic components won't trigger haptics. Defaults to `true`.
171
+ */
172
+ haptics?: boolean;
157
173
  /**
158
174
  * Overrides the default platform detection methods.
159
175
  */
@@ -46,8 +46,8 @@ interface HapticNotificationOptions {
46
46
  type: CapacitorNotificationType;
47
47
  }
48
48
  /**
49
- * Check to see if the Haptic Plugin is available
50
- * @return Returns `true` or false if the plugin is available
49
+ * Check to see if haptics are enabled and the Haptic Plugin is available
50
+ * @return Returns `true` if haptics can be triggered
51
51
  */
52
52
  export declare const hapticAvailable: () => boolean;
53
53
  /**