@ionic/core 9.0.4-dev.11789491273.11ab1c95 → 9.0.4-dev.11789496656.1690cf55
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/index.js +1 -1
- package/components/ion-accordion.js +1 -1
- package/components/ion-action-sheet.js +1 -1
- package/components/ion-alert.js +1 -1
- package/components/ion-app.js +1 -1
- package/components/ion-back-button.js +1 -1
- package/components/ion-breadcrumb.js +1 -1
- package/components/ion-button.js +1 -1
- package/components/ion-card.js +1 -1
- package/components/ion-checkbox.js +1 -1
- package/components/ion-content.js +1 -1
- package/components/ion-datetime-button.js +1 -1
- package/components/ion-datetime.js +1 -1
- package/components/ion-fab-button.js +1 -1
- package/components/ion-footer.js +1 -1
- package/components/ion-header.js +1 -1
- package/components/ion-img.js +1 -1
- package/components/ion-infinite-scroll.js +1 -1
- package/components/ion-input-otp.js +1 -1
- package/components/ion-input-password-toggle.js +1 -1
- package/components/ion-input.js +1 -1
- package/components/ion-item-options.js +1 -1
- package/components/ion-item-sliding.js +1 -1
- package/components/ion-item.js +1 -1
- package/components/ion-loading.js +1 -1
- package/components/ion-menu-button.js +1 -1
- package/components/ion-menu-toggle.js +1 -1
- package/components/ion-menu.js +1 -1
- package/components/ion-modal.js +1 -1
- package/components/ion-nav.js +1 -1
- package/components/ion-picker-column-option.js +1 -1
- package/components/ion-picker-column.js +1 -1
- package/components/ion-picker.js +1 -1
- package/components/ion-popover.js +1 -1
- package/components/ion-progress-bar.js +1 -1
- package/components/ion-radio-group.js +1 -1
- package/components/ion-radio.js +1 -1
- package/components/ion-range.js +1 -1
- package/components/ion-refresher-content.js +1 -1
- package/components/ion-refresher.js +1 -1
- package/components/ion-reorder-group.js +1 -1
- package/components/ion-router-outlet.js +1 -1
- package/components/ion-router.js +1 -1
- package/components/ion-searchbar.js +1 -1
- package/components/ion-segment-button.js +1 -1
- package/components/ion-segment.js +1 -1
- package/components/ion-select-modal.js +1 -1
- package/components/ion-select-popover.js +1 -1
- package/components/ion-select.js +1 -1
- package/components/ion-tab-button.js +1 -1
- package/components/ion-tab.js +1 -1
- package/components/ion-textarea.js +1 -1
- package/components/ion-toast.js +1 -1
- package/components/ion-toggle.js +1 -1
- package/components/{p-DPJUYiz0.js → p-5juwds63.js} +1 -1
- package/components/{p-6yLSJYP5.js → p-B86lRIDO.js} +1 -1
- package/components/{p-zpafbpPu.js → p-BIMP7XsN.js} +1 -1
- package/components/p-BVWd2PEY.js +4 -0
- package/components/{p--0Ha2gLq.js → p-BjATTE99.js} +1 -1
- package/components/{p-Dh79xOoJ.js → p-BniAZ6W5.js} +1 -1
- package/components/{p-B4w_sFd4.js → p-BoYGC-l-.js} +1 -1
- package/components/{p-C0FB9NcQ.js → p-BrN7xu9-.js} +1 -1
- package/components/{p-BCkE4_T_.js → p-C3ywH_Mf.js} +1 -1
- package/components/{p-BLCBNn2X.js → p-C4uFpZGN.js} +1 -1
- package/components/{p-DX55ygwT.js → p-C7LLUTK7.js} +1 -1
- package/components/{p-Cw6JRwdQ.js → p-C9Q3BKWR.js} +1 -1
- package/components/{p-DCqwKMcP.js → p-CDwQvoOp.js} +1 -1
- package/components/{p-sOZUmSUg.js → p-CIe-qmpb.js} +1 -1
- package/components/{p-i_RUbfxc.js → p-CTXzvhyU.js} +1 -1
- package/components/{p-BgsT2jfW.js → p-D1hWyvjx.js} +1 -1
- package/components/{p-ClaT45M5.js → p-DId_XvAJ.js} +1 -1
- package/{dist/ionic/p-BMSRTipc.js → components/p-DQrYMQ7L.js} +1 -1
- package/components/{p-C4hRhU-I.js → p-DQv0f8j9.js} +1 -1
- package/components/{p-BbuOLVCJ.js → p-DU1fmq1v.js} +1 -1
- package/components/{p-BBVXJUno.js → p-DcMeOO67.js} +1 -1
- package/components/{p-OTASwZcn.js → p-Ddg9-TD5.js} +1 -1
- package/components/{p-BCI0nI6X.js → p-DeC5OhCT.js} +1 -1
- package/components/p-DrEqn5AR.js +4 -0
- package/components/{p-BpPCBEmb.js → p-DrfyhL1q.js} +1 -1
- package/components/p-NSJZ0wBJ.js +4 -0
- package/components/{p-Bb4gKl_z.js → p-fwDT5gkM.js} +1 -1
- package/components/{p-DbTr4Ana.js → p-gE0D5aEA.js} +1 -1
- package/components/{p-CPj9oYoe.js → p-rjD7uyw_.js} +1 -1
- package/components/{p-BmIw6_lr.js → p-s40C1wOl.js} +1 -1
- package/components/{p-5jHAJ8C_.js → p-v66I_MxD.js} +1 -1
- package/dist/cjs/{framework-delegate-30SP5_5C.js → framework-delegate-CCa_7nPe.js} +1 -1
- package/dist/cjs/{helpers-28k0ioWb.js → helpers-BjlIqCre.js} +2 -5
- package/dist/cjs/{index-BjT0jN-K.js → index-CQX-LFXH.js} +3 -3
- package/dist/cjs/{index-CiwO_ZVY.js → index-CpNJEu8Q.js} +1 -1
- package/dist/cjs/{index-Df1Nb3Lk.js → index-DbIi_tua.js} +1 -1
- package/dist/cjs/{index-DEWlkbEq.js → index-oGSMGpY5.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{input-shims-CoTMQkM0.js → input-shims-CfRpLg7f.js} +2 -2
- package/dist/cjs/ion-accordion_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-action-sheet.cjs.entry.js +3 -3
- package/dist/cjs/ion-alert.cjs.entry.js +3 -3
- package/dist/cjs/ion-app_8.cjs.entry.js +8 -8
- package/dist/cjs/ion-back-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-button_2.cjs.entry.js +32 -22
- package/dist/cjs/ion-card_5.cjs.entry.js +5 -13
- package/dist/cjs/ion-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime-button.cjs.entry.js +1 -1
- package/dist/cjs/ion-datetime.cjs.entry.js +3 -3
- package/dist/cjs/ion-fab_3.cjs.entry.js +1 -1
- package/dist/cjs/ion-img.cjs.entry.js +1 -1
- package/dist/cjs/ion-infinite-scroll_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-input-otp.cjs.entry.js +1 -1
- package/dist/cjs/ion-input.cjs.entry.js +2 -2
- package/dist/cjs/ion-item-option_3.cjs.entry.js +2 -2
- package/dist/cjs/ion-item_8.cjs.entry.js +6 -16
- package/dist/cjs/ion-loading.cjs.entry.js +3 -3
- package/dist/cjs/ion-menu_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-modal.cjs.entry.js +5 -5
- package/dist/cjs/ion-nav_2.cjs.entry.js +4 -4
- package/dist/cjs/ion-picker-column-option.cjs.entry.js +1 -1
- package/dist/cjs/ion-picker-column.cjs.entry.js +1 -1
- package/dist/cjs/ion-picker.cjs.entry.js +1 -1
- package/dist/cjs/ion-popover.cjs.entry.js +4 -4
- package/dist/cjs/ion-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/ion-radio_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-range.cjs.entry.js +2 -2
- package/dist/cjs/ion-refresher_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-reorder_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-route_4.cjs.entry.js +2 -2
- package/dist/cjs/ion-searchbar.cjs.entry.js +1 -1
- package/dist/cjs/ion-segment_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-select-modal.cjs.entry.js +3 -3
- package/dist/cjs/ion-select_3.cjs.entry.js +4 -4
- package/dist/cjs/ion-tab-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/ion-tab_2.cjs.entry.js +2 -2
- package/dist/cjs/ion-textarea.cjs.entry.js +2 -2
- package/dist/cjs/ion-toast.cjs.entry.js +3 -3
- package/dist/cjs/ion-toggle.cjs.entry.js +1 -1
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/{ios.transition-C1f9F6HE.js → ios.transition-qFm2dzNr.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{md.transition-ApZEp9g4.js → md.transition-BUSI4dNc.js} +2 -2
- package/dist/cjs/{overlays-DqxYgNWz.js → overlays-jCxDhheS.js} +2 -2
- package/dist/cjs/{slot-mutation-controller-D09vhXzN.js → slot-mutation-controller-BKQkzuIH.js} +1 -1
- package/dist/cjs/{status-tap-DdEe06LQ.js → status-tap-DSkB5t_f.js} +2 -2
- package/dist/cjs/{swipe-back-D1lp_e6s.js → swipe-back-DxaKhxCu.js} +1 -1
- package/dist/collection/components/button/button.js +32 -21
- package/dist/collection/components/card/card.js +6 -12
- package/dist/collection/components/item/item.js +6 -15
- package/dist/collection/utils/helpers.js +3 -5
- package/dist/docs.json +1 -1
- package/dist/esm/{framework-delegate-BgMe4jPq.js → framework-delegate-DNJbxXfG.js} +1 -1
- package/dist/esm/{helpers-DeeJAHV9.js → helpers-BhJI0AJ9.js} +3 -5
- package/dist/esm/{index-R9pvwLnZ.js → index-B642W5K5.js} +3 -3
- package/dist/esm/{index-DE7lbMup.js → index-C7RizanJ.js} +1 -1
- package/dist/esm/{index-Co9fHIiq.js → index-CE9JWPY5.js} +1 -1
- package/dist/esm/{index-DCEhZGaW.js → index-CvUsV0R4.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{input-shims-Dq4cwnFs.js → input-shims-CJyayCsi.js} +2 -2
- package/dist/esm/ion-accordion_2.entry.js +1 -1
- package/dist/esm/ion-action-sheet.entry.js +3 -3
- package/dist/esm/ion-alert.entry.js +3 -3
- package/dist/esm/ion-app_8.entry.js +8 -8
- package/dist/esm/ion-back-button.entry.js +1 -1
- package/dist/esm/ion-breadcrumb_2.entry.js +1 -1
- package/dist/esm/ion-button_2.entry.js +33 -23
- package/dist/esm/ion-card_5.entry.js +6 -14
- package/dist/esm/ion-checkbox.entry.js +1 -1
- package/dist/esm/ion-datetime-button.entry.js +1 -1
- package/dist/esm/ion-datetime.entry.js +3 -3
- package/dist/esm/ion-fab_3.entry.js +1 -1
- package/dist/esm/ion-img.entry.js +1 -1
- package/dist/esm/ion-infinite-scroll_2.entry.js +2 -2
- package/dist/esm/ion-input-otp.entry.js +1 -1
- package/dist/esm/ion-input.entry.js +2 -2
- package/dist/esm/ion-item-option_3.entry.js +2 -2
- package/dist/esm/ion-item_8.entry.js +6 -16
- package/dist/esm/ion-loading.entry.js +3 -3
- package/dist/esm/ion-menu_3.entry.js +4 -4
- package/dist/esm/ion-modal.entry.js +5 -5
- package/dist/esm/ion-nav_2.entry.js +4 -4
- package/dist/esm/ion-picker-column-option.entry.js +1 -1
- package/dist/esm/ion-picker-column.entry.js +1 -1
- package/dist/esm/ion-picker.entry.js +1 -1
- package/dist/esm/ion-popover.entry.js +4 -4
- package/dist/esm/ion-progress-bar.entry.js +1 -1
- package/dist/esm/ion-radio_2.entry.js +1 -1
- package/dist/esm/ion-range.entry.js +2 -2
- package/dist/esm/ion-refresher_2.entry.js +2 -2
- package/dist/esm/ion-reorder_2.entry.js +2 -2
- package/dist/esm/ion-route_4.entry.js +2 -2
- package/dist/esm/ion-searchbar.entry.js +1 -1
- package/dist/esm/ion-segment_2.entry.js +1 -1
- package/dist/esm/ion-select-modal.entry.js +3 -3
- package/dist/esm/ion-select_3.entry.js +4 -4
- package/dist/esm/ion-tab-bar_2.entry.js +1 -1
- package/dist/esm/ion-tab_2.entry.js +2 -2
- package/dist/esm/ion-textarea.entry.js +2 -2
- package/dist/esm/ion-toast.entry.js +3 -3
- package/dist/esm/ion-toggle.entry.js +1 -1
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/{ios.transition-Df5RLe_T.js → ios.transition-CMEC0NN1.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{md.transition-CjaOFo9D.js → md.transition-BpFq_zft.js} +2 -2
- package/dist/esm/{overlays-BibrxrLf.js → overlays-DxdXkHtM.js} +2 -2
- package/dist/esm/{slot-mutation-controller-BkDOe1zv.js → slot-mutation-controller-Bkj4RRBZ.js} +1 -1
- package/dist/esm/{status-tap-jSEmdAcL.js → status-tap-Cd1sqU_0.js} +2 -2
- package/dist/esm/{swipe-back-DECoCqxP.js → swipe-back-C4ZOaoql.js} +1 -1
- package/dist/ionic/index.esm.js +1 -1
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-e20958c9.entry.js → p-01de1004.entry.js} +1 -1
- package/dist/ionic/{p-f320604d.entry.js → p-02e54c8d.entry.js} +1 -1
- package/dist/ionic/{p-f72fd8c8.entry.js → p-0520b9ba.entry.js} +1 -1
- package/dist/ionic/p-052b764a.entry.js +4 -0
- package/dist/ionic/{p-e07af85b.entry.js → p-09f39c5d.entry.js} +1 -1
- package/dist/ionic/{p-5264ae56.entry.js → p-0d067e59.entry.js} +1 -1
- package/dist/ionic/{p-94b50c55.entry.js → p-1ef783d7.entry.js} +1 -1
- package/dist/ionic/{p-bc6477b7.entry.js → p-28747c67.entry.js} +1 -1
- package/dist/ionic/{p-005fc249.entry.js → p-2a6fd353.entry.js} +1 -1
- package/dist/ionic/p-2df5f248.entry.js +4 -0
- package/dist/ionic/{p-b52666f2.entry.js → p-3b059f00.entry.js} +1 -1
- package/dist/ionic/{p-17076d6d.entry.js → p-3e797669.entry.js} +1 -1
- package/dist/ionic/{p-c968f7c8.entry.js → p-478ff9ac.entry.js} +1 -1
- package/dist/ionic/{p-34b93eb0.entry.js → p-4ab06d54.entry.js} +1 -1
- package/dist/ionic/{p-7fc0c7f4.entry.js → p-4f1fff81.entry.js} +1 -1
- package/dist/ionic/{p-d01370da.entry.js → p-57d26686.entry.js} +1 -1
- package/dist/ionic/{p-bcce4c27.entry.js → p-5abe3412.entry.js} +1 -1
- package/dist/ionic/{p-25606ced.entry.js → p-5c8818b2.entry.js} +1 -1
- package/dist/ionic/{p-8d06d603.entry.js → p-6393418d.entry.js} +1 -1
- package/dist/ionic/{p-8fe32c85.entry.js → p-64fbb77c.entry.js} +1 -1
- package/dist/ionic/{p-65e8cf6e.entry.js → p-721849d1.entry.js} +1 -1
- package/dist/ionic/{p-e831cbc4.entry.js → p-79a013a5.entry.js} +1 -1
- package/dist/ionic/{p-23a40e1a.entry.js → p-7c9ca14d.entry.js} +1 -1
- package/dist/ionic/{p-57c5caad.entry.js → p-9521b660.entry.js} +1 -1
- package/dist/ionic/{p-1662825b.entry.js → p-99a5f8fe.entry.js} +1 -1
- package/dist/ionic/{p-c9ca4b89.entry.js → p-9afcc57e.entry.js} +1 -1
- package/dist/ionic/p-BST1u0ec.js +4 -0
- package/dist/ionic/{p-BoPnUg6t.js → p-B_eIgbzl.js} +1 -1
- package/dist/ionic/{p-BJIzb1h3.js → p-Bb4lV5CQ.js} +1 -1
- package/dist/ionic/{p-eRdlCM8q.js → p-BnXwO7xo.js} +1 -1
- package/dist/ionic/p-CQfHHCVd.js +4 -0
- package/dist/ionic/{p-T2mbrXZh.js → p-CmeeH7IA.js} +1 -1
- package/{components/p-fwAEwYZc.js → dist/ionic/p-CxU8VnTb.js} +1 -1
- package/dist/ionic/{p-BViV3T3I.js → p-Cyf8fFhT.js} +1 -1
- package/dist/ionic/{p-BUizV0iN.js → p-DED3r_HX.js} +1 -1
- package/dist/ionic/p-DYa-7lKb.js +4 -0
- package/dist/ionic/{p-Bg92X_yH.js → p-Yzw-faqR.js} +1 -1
- package/dist/ionic/{p-BlliOtjV.js → p-aq9QZ_SS.js} +1 -1
- package/dist/ionic/{p-e7e5bd70.entry.js → p-b5f869d3.entry.js} +1 -1
- package/dist/ionic/{p-1da7dbb2.entry.js → p-b7b22bc6.entry.js} +1 -1
- package/dist/ionic/{p-0e4a8b4c.entry.js → p-bd9da73b.entry.js} +1 -1
- package/dist/ionic/{p-c8bc68c1.entry.js → p-c1976d29.entry.js} +1 -1
- package/dist/ionic/{p-a1694aea.entry.js → p-c2810802.entry.js} +1 -1
- package/dist/ionic/{p-418c7db6.entry.js → p-c6f331c7.entry.js} +1 -1
- package/dist/ionic/{p-259211ef.entry.js → p-c7f88038.entry.js} +1 -1
- package/dist/ionic/{p-f6d7e96d.entry.js → p-cb99a8ab.entry.js} +1 -1
- package/dist/ionic/{p-d47e04c8.entry.js → p-e1182b8c.entry.js} +1 -1
- package/dist/ionic/{p-f78add99.entry.js → p-e205531a.entry.js} +1 -1
- package/dist/ionic/{p-bf0bf4be.entry.js → p-e45577f0.entry.js} +1 -1
- package/dist/ionic/{p-d203aa2f.entry.js → p-e8b2b575.entry.js} +1 -1
- package/dist/ionic/{p-b87e375b.entry.js → p-f66db3f9.entry.js} +1 -1
- package/dist/ionic/{p-00c87480.entry.js → p-f8a111c8.entry.js} +1 -1
- package/dist/ionic/p-fb0821b2.entry.js +4 -0
- package/dist/ionic/{p-BQq5eWUl.js → p-sa30xypV.js} +1 -1
- package/dist/types/components/button/button.d.ts +12 -3
- package/dist/types/components/card/card.d.ts +1 -3
- package/dist/types/components/item/item.d.ts +1 -1
- package/dist/types/utils/helpers.d.ts +2 -10
- package/hydrate/index.js +41 -168
- package/hydrate/index.mjs +41 -168
- package/package.json +2 -2
- package/components/p-BUZjpZPj.js +0 -4
- package/components/p-D2vl9H3c.js +0 -4
- package/components/p-DP8hRAY9.js +0 -4
- package/components/p-Dp5qTLGr.js +0 -4
- package/dist/cjs/attribute-controller-Co16PtRL.js +0 -132
- package/dist/collection/utils/attribute-controller.js +0 -126
- package/dist/esm/attribute-controller-CpBzYvYU.js +0 -129
- package/dist/ionic/p-0870e9ff.entry.js +0 -4
- package/dist/ionic/p-2d100776.entry.js +0 -4
- package/dist/ionic/p-BautDe39.js +0 -4
- package/dist/ionic/p-CW7vemvF.js +0 -4
- package/dist/ionic/p-Dnq82tx6.js +0 -4
- package/dist/ionic/p-PCITDQzG.js +0 -4
- package/dist/ionic/p-bba893bd.entry.js +0 -4
- package/dist/types/utils/attribute-controller.d.ts +0 -56
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import{c as t}from"./p-CirHja2K.js";import{g as o}from"./p-T2mbrXZh.js";import"./p-Dvqtt_WK.js";import"./p-ZjP4CjeZ.js";import"./p-BJIzb1h3.js";import"./p-Dojwmvde.js";const n=t=>document.querySelector(`${t}.ion-cloned-element`),a=t=>t.shadowRoot||t,s=t=>{const o="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=o){const t=o.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=t?t.querySelector(n):null}return t.querySelector(n)},e=(t,o)=>{const n="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs");let a=[];if(null!=n){const t=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(a=t.querySelectorAll("ion-buttons"))}else a=t.querySelectorAll("ion-buttons");for(const t of a){const n=t.closest("ion-header"),a=n&&!n.classList.contains("header-collapse-condense-inactive"),s=t.querySelector("ion-back-button"),e=t.classList.contains("buttons-collapse");if(null!==s&&("start"===t.slot||""===t.slot)&&(e&&a&&o||!e))return s}return null},r=(o,s,e,r,i,l,f,p,$)=>{const d=s?`calc(100% - ${i.right+4}px)`:i.left-4+"px",m=s?"right":"left",b=s?"left":"right",u=s?"right":"left";let y=1,X=1,x=`scale(${X})`;const h="scale(1)";if(l&&f){const t=l.textContent?.trim()===p.textContent?.trim();y=$.width/f.width,X=($.height-c)/f.height,x=t?`scale(${y}, ${X})`:`scale(${X})`}const g=a(r).querySelector("ion-icon").getBoundingClientRect(),v=s?g.width/2-(g.right-i.right)+"px":i.left-g.width/2+"px",w=s?`-${window.innerWidth-i.right}px`:`${i.left}px`,k=`${$.top}px`,j=`${i.top}px`,T=e?[{offset:0,transform:`translate3d(${w}, ${j}, 0)`},{offset:1,transform:`translate3d(${v}, ${k}, 0)`}]:[{offset:0,transform:`translate3d(${v}, ${k}, 0)`},{offset:1,transform:`translate3d(${w}, ${j}, 0)`}],A=e?[{offset:0,opacity:1,transform:h},{offset:1,opacity:0,transform:x}]:[{offset:0,opacity:0,transform:x},{offset:1,opacity:1,transform:h}],B=e?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],I=t(),Z=t(),z=t(),C=n("ion-back-button"),D=a(C).querySelector(".button-text"),K=a(C).querySelector("ion-icon");C.text=r.text,C.mode=r.mode,C.icon=r.icon,C.color=r.color,C.disabled=r.disabled,C.style.setProperty("display","block"),C.style.setProperty("position","fixed"),Z.addElement(K),I.addElement(D),z.addElement(C),z.beforeStyles({position:"absolute",top:"0px",[u]:"0px"}).beforeAddWrite((()=>{r.style.setProperty("display","none"),C.style.setProperty(m,d)})).afterAddWrite((()=>{r.style.setProperty("display",""),C.style.setProperty("display","none"),C.style.removeProperty(m)})).keyframes(T),I.beforeStyles({"transform-origin":`${m} top`}).keyframes(A),Z.beforeStyles({"transform-origin":`${b} center`}).keyframes(B),o.addAnimation([I,Z,z])},i=(o,a,s,e,r,i,l,f,p)=>{const $=a?"right":"left",d=a?`calc(100% - ${r.right}px)`:`${r.left}px`,m=`${r.top}px`;let b=a?`-${window.innerWidth-l.right-8}px`:`${l.x+8}px`,u=.5;const y="scale(1)";let X=`scale(${u})`;if(f&&p){b=a?`-${window.innerWidth-p.right-8}px`:p.x-8+"px";const t=f.textContent?.trim()===e.textContent?.trim();u=p.height/(i.height-c),X=t?`scale(${p.width/i.width}, ${u})`:`scale(${u})`}const x=l.top+l.height/2-r.height*u/2+"px",h=s?[{offset:0,opacity:0,transform:`translate3d(${b}, ${x}, 0) ${X}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${m}, 0) ${y}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${m}, 0) ${y}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${b}, ${x}, 0) ${X}`}],g=n("ion-title"),v=t();g.innerText=e.innerText,g.size=e.size,g.color=e.color,v.addElement(g),v.beforeStyles({"transform-origin":`${$} top`,height:`${r.height}px`,display:"",position:"relative",[$]:d}).beforeAddWrite((()=>{e.style.setProperty("opacity","0")})).afterAddWrite((()=>{e.style.setProperty("opacity",""),g.style.setProperty("display","none")})).keyframes(h),o.addAnimation(v)},l=(n,l)=>{try{const c="cubic-bezier(0.32,0.72,0,1)",f="opacity",p="transform",$="0%",d=.8,m="rtl"===n.ownerDocument.dir,b=m?"-99.5%":"99.5%",u=m?"33%":"-33%",y=l.enteringEl,X=l.leavingEl,x="back"===l.direction,h=y.querySelector(":scope > ion-content"),g=y.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),v=y.querySelectorAll(":scope > ion-header > ion-toolbar"),w=t(),k=t();if(w.addElement(y).duration((l.duration??0)||540).easing(l.easing||c).fill("both").beforeRemoveClass("ion-page-invisible"),X&&null!=n){const o=t();o.addElement(n),w.addAnimation(o)}if(h||0!==v.length||0!==g.length?(k.addElement(h),k.addElement(g)):k.addElement(y.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),w.addAnimation(k),x?k.beforeClearStyles([f]).fromTo("transform",`translateX(${u})`,`translateX(${$})`).fromTo(f,d,1):k.beforeClearStyles([f]).fromTo("transform",`translateX(${b})`,`translateX(${$})`),h){const o=a(h).querySelector(".transition-effect");if(o){const n=o.querySelector(".transition-cover"),a=o.querySelector(".transition-shadow"),s=t(),e=t(),r=t();s.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),e.addElement(n).beforeClearStyles([f]).fromTo(f,0,.1),r.addElement(a).beforeClearStyles([f]).fromTo(f,.03,.7),s.addAnimation([e,r]),k.addAnimation([s])}}const j=y.querySelector("ion-header.header-collapse-condense"),{forward:T,backward:A}=((t,o,n,l,c)=>{const f=e(l,n),p=s(c),$=s(l),d=e(c,n),m=null!==f&&null!==p&&!n,b=null!==$&&null!==d&&n;if(m){const s=p.getBoundingClientRect(),e=f.getBoundingClientRect(),l=a(f).querySelector(".button-text"),c=l?.getBoundingClientRect(),$=a(p).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,p,s,$,e,l,c),r(t,o,n,f,e,l,c,p,$)}else if(b){const s=$.getBoundingClientRect(),e=d.getBoundingClientRect(),l=a(d).querySelector(".button-text"),c=l?.getBoundingClientRect(),f=a($).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,$,s,f,e,l,c),r(t,o,n,d,e,l,c,$,f)}return{forward:m,backward:b}})(w,m,x,y,X);if(v.forEach((o=>{const n=t();n.addElement(o),w.addAnimation(n);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=Array.from(o.querySelectorAll("ion-buttons,[menuToggle]")),i=o.closest("ion-header"),l=i?.classList.contains("header-collapse-condense-inactive");let c;c=r.filter(x?t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}:t=>!t.classList.contains("buttons-collapse")),e.addElement(c);const p=t();p.addElement(o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const d=t();d.addElement(a(o).querySelector(".toolbar-background"));const y=t(),X=o.querySelector("ion-back-button");if(X&&y.addElement(X),n.addAnimation([s,e,p,d,y]),e.fromTo(f,.01,1),p.fromTo(f,.01,1),x)l||s.fromTo("transform",`translateX(${u})`,`translateX(${$})`).fromTo(f,.01,1),p.fromTo("transform",`translateX(${u})`,`translateX(${$})`),y.fromTo(f,.01,1);else{j||s.fromTo("transform",`translateX(${b})`,`translateX(${$})`).fromTo(f,.01,1),p.fromTo("transform",`translateX(${b})`,`translateX(${$})`),d.beforeClearStyles([f,"transform"]);const o=i?.translucent;if(o?d.fromTo("transform",m?"translateX(-100%)":"translateX(100%)","translateX(0px)"):d.fromTo(f,.01,"var(--opacity)"),T||y.fromTo(f,.01,1),X&&!T){const o=t();o.addElement(a(X).querySelector(".button-text")).fromTo("transform",m?"translateX(-100px)":"translateX(100px)","translateX(0px)"),n.addAnimation(o)}}})),X){const n=t(),s=X.querySelector(":scope > ion-content"),e=X.querySelectorAll(":scope > ion-header > ion-toolbar"),r=X.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(s||0!==e.length||0!==r.length?(n.addElement(s),n.addElement(r)):n.addElement(X.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),w.addAnimation(n),x){n.beforeClearStyles([f]).fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)");const t=o(X);w.afterAddWrite((()=>{"normal"===w.getDirection()&&t.style.setProperty("display","none")}))}else n.fromTo("transform",`translateX(${$})`,`translateX(${u})`).fromTo(f,1,d);if(s){const o=a(s).querySelector(".transition-effect");if(o){const a=o.querySelector(".transition-cover"),s=o.querySelector(".transition-shadow"),e=t(),r=t(),i=t();e.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(a).beforeClearStyles([f]).fromTo(f,.1,0),i.addElement(s).beforeClearStyles([f]).fromTo(f,.7,.03),e.addAnimation([r,i]),n.addAnimation([e])}}e.forEach((o=>{const n=t();n.addElement(o);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=o.querySelectorAll("ion-buttons,[menuToggle]"),i=o.closest("ion-header"),l=i?.classList.contains("header-collapse-condense-inactive"),c=Array.from(r).filter((t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}));e.addElement(c);const d=t(),b=o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");b.length>0&&d.addElement(b);const y=t();y.addElement(a(o).querySelector(".toolbar-background"));const X=t(),h=o.querySelector("ion-back-button");if(h&&X.addElement(h),n.addAnimation([s,e,d,X,y]),w.addAnimation(n),X.fromTo(f,.99,0),e.fromTo(f,.99,0),d.fromTo(f,.99,0),x){l||s.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)").fromTo(f,.99,0),d.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)"),y.beforeClearStyles([f,"transform"]);const o=i?.translucent;if(o?y.fromTo("transform","translateX(0px)",m?"translateX(-100%)":"translateX(100%)"):y.fromTo(f,"var(--opacity)",0),h&&!A){const o=t();o.addElement(a(h).querySelector(".button-text")).fromTo("transform",`translateX(${$})`,`translateX(${(m?-124:124)+"px"})`),n.addAnimation(o)}}else l||s.fromTo("transform",`translateX(${$})`,`translateX(${u})`).fromTo(f,.99,0).afterClearStyles([p,f]),d.fromTo("transform",`translateX(${$})`,`translateX(${u})`).afterClearStyles([p,f]),X.afterClearStyles([f]),s.afterClearStyles([f]),e.afterClearStyles([f])}))}return w}catch(t){throw t}},c=10;export{l as iosTransitionAnimation,a as shadow}
|
|
4
|
+
import{c as t}from"./p-CirHja2K.js";import{g as o}from"./p-CmeeH7IA.js";import"./p-Dvqtt_WK.js";import"./p-ZjP4CjeZ.js";import"./p-Bb4lV5CQ.js";import"./p-Dojwmvde.js";const n=t=>document.querySelector(`${t}.ion-cloned-element`),a=t=>t.shadowRoot||t,s=t=>{const o="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs"),n="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=o){const t=o.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=t?t.querySelector(n):null}return t.querySelector(n)},e=(t,o)=>{const n="ION-TABS"===t.tagName?t:t.querySelector("ion-tabs");let a=[];if(null!=n){const t=n.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(a=t.querySelectorAll("ion-buttons"))}else a=t.querySelectorAll("ion-buttons");for(const t of a){const n=t.closest("ion-header"),a=n&&!n.classList.contains("header-collapse-condense-inactive"),s=t.querySelector("ion-back-button"),e=t.classList.contains("buttons-collapse");if(null!==s&&("start"===t.slot||""===t.slot)&&(e&&a&&o||!e))return s}return null},r=(o,s,e,r,i,l,f,p,$)=>{const d=s?`calc(100% - ${i.right+4}px)`:i.left-4+"px",m=s?"right":"left",b=s?"left":"right",u=s?"right":"left";let y=1,X=1,x=`scale(${X})`;const h="scale(1)";if(l&&f){const t=l.textContent?.trim()===p.textContent?.trim();y=$.width/f.width,X=($.height-c)/f.height,x=t?`scale(${y}, ${X})`:`scale(${X})`}const g=a(r).querySelector("ion-icon").getBoundingClientRect(),v=s?g.width/2-(g.right-i.right)+"px":i.left-g.width/2+"px",w=s?`-${window.innerWidth-i.right}px`:`${i.left}px`,k=`${$.top}px`,j=`${i.top}px`,T=e?[{offset:0,transform:`translate3d(${w}, ${j}, 0)`},{offset:1,transform:`translate3d(${v}, ${k}, 0)`}]:[{offset:0,transform:`translate3d(${v}, ${k}, 0)`},{offset:1,transform:`translate3d(${w}, ${j}, 0)`}],A=e?[{offset:0,opacity:1,transform:h},{offset:1,opacity:0,transform:x}]:[{offset:0,opacity:0,transform:x},{offset:1,opacity:1,transform:h}],C=e?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],B=t(),I=t(),D=t(),H=n("ion-back-button"),K=a(H).querySelector(".button-text"),N=a(H).querySelector("ion-icon");H.text=r.text,H.mode=r.mode,H.icon=r.icon,H.color=r.color,H.disabled=r.disabled,H.style.setProperty("display","block"),H.style.setProperty("position","fixed"),I.addElement(N),B.addElement(K),D.addElement(H),D.beforeStyles({position:"absolute",top:"0px",[u]:"0px"}).beforeAddWrite((()=>{r.style.setProperty("display","none"),H.style.setProperty(m,d)})).afterAddWrite((()=>{r.style.setProperty("display",""),H.style.setProperty("display","none"),H.style.removeProperty(m)})).keyframes(T),B.beforeStyles({"transform-origin":`${m} top`}).keyframes(A),I.beforeStyles({"transform-origin":`${b} center`}).keyframes(C),o.addAnimation([B,I,D])},i=(o,a,s,e,r,i,l,f,p)=>{const $=a?"right":"left",d=a?`calc(100% - ${r.right}px)`:`${r.left}px`,m=`${r.top}px`;let b=a?`-${window.innerWidth-l.right-8}px`:`${l.x+8}px`,u=.5;const y="scale(1)";let X=`scale(${u})`;if(f&&p){b=a?`-${window.innerWidth-p.right-8}px`:p.x-8+"px";const t=f.textContent?.trim()===e.textContent?.trim();u=p.height/(i.height-c),X=t?`scale(${p.width/i.width}, ${u})`:`scale(${u})`}const x=l.top+l.height/2-r.height*u/2+"px",h=s?[{offset:0,opacity:0,transform:`translate3d(${b}, ${x}, 0) ${X}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${m}, 0) ${y}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${m}, 0) ${y}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${b}, ${x}, 0) ${X}`}],g=n("ion-title"),v=t();g.innerText=e.innerText,g.size=e.size,g.color=e.color,v.addElement(g),v.beforeStyles({"transform-origin":`${$} top`,height:`${r.height}px`,display:"",position:"relative",[$]:d}).beforeAddWrite((()=>{e.style.setProperty("opacity","0")})).afterAddWrite((()=>{e.style.setProperty("opacity",""),g.style.setProperty("display","none")})).keyframes(h),o.addAnimation(v)},l=(n,l)=>{try{const c="cubic-bezier(0.32,0.72,0,1)",f="opacity",p="transform",$="0%",d=.8,m="rtl"===n.ownerDocument.dir,b=m?"-99.5%":"99.5%",u=m?"33%":"-33%",y=l.enteringEl,X=l.leavingEl,x="back"===l.direction,h=y.querySelector(":scope > ion-content"),g=y.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),v=y.querySelectorAll(":scope > ion-header > ion-toolbar"),w=t(),k=t();if(w.addElement(y).duration((l.duration??0)||540).easing(l.easing||c).fill("both").beforeRemoveClass("ion-page-invisible"),X&&null!=n){const o=t();o.addElement(n),w.addAnimation(o)}if(h||0!==v.length||0!==g.length?(k.addElement(h),k.addElement(g)):k.addElement(y.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),w.addAnimation(k),x?k.beforeClearStyles([f]).fromTo("transform",`translateX(${u})`,`translateX(${$})`).fromTo(f,d,1):k.beforeClearStyles([f]).fromTo("transform",`translateX(${b})`,`translateX(${$})`),h){const o=a(h).querySelector(".transition-effect");if(o){const n=o.querySelector(".transition-cover"),a=o.querySelector(".transition-shadow"),s=t(),e=t(),r=t();s.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),e.addElement(n).beforeClearStyles([f]).fromTo(f,0,.1),r.addElement(a).beforeClearStyles([f]).fromTo(f,.03,.7),s.addAnimation([e,r]),k.addAnimation([s])}}const j=y.querySelector("ion-header.header-collapse-condense"),{forward:T,backward:A}=((t,o,n,l,c)=>{const f=e(l,n),p=s(c),$=s(l),d=e(c,n),m=null!==f&&null!==p&&!n,b=null!==$&&null!==d&&n;if(m){const s=p.getBoundingClientRect(),e=f.getBoundingClientRect(),l=a(f).querySelector(".button-text"),c=l?.getBoundingClientRect(),$=a(p).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,p,s,$,e,l,c),r(t,o,n,f,e,l,c,p,$)}else if(b){const s=$.getBoundingClientRect(),e=d.getBoundingClientRect(),l=a(d).querySelector(".button-text"),c=l?.getBoundingClientRect(),f=a($).querySelector(".toolbar-title").getBoundingClientRect();i(t,o,n,$,s,f,e,l,c),r(t,o,n,d,e,l,c,$,f)}return{forward:m,backward:b}})(w,m,x,y,X);if(v.forEach((o=>{const n=t();n.addElement(o),w.addAnimation(n);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=Array.from(o.querySelectorAll("ion-buttons,[menuToggle]")),i=o.closest("ion-header"),l=i?.classList.contains("header-collapse-condense-inactive");let c;c=r.filter(x?t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}:t=>!t.classList.contains("buttons-collapse")),e.addElement(c);const p=t();p.addElement(o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const d=t();d.addElement(a(o).querySelector(".toolbar-background"));const y=t(),X=o.querySelector("ion-back-button");if(X&&y.addElement(X),n.addAnimation([s,e,p,d,y]),e.fromTo(f,.01,1),p.fromTo(f,.01,1),x)l||s.fromTo("transform",`translateX(${u})`,`translateX(${$})`).fromTo(f,.01,1),p.fromTo("transform",`translateX(${u})`,`translateX(${$})`),y.fromTo(f,.01,1);else{j||s.fromTo("transform",`translateX(${b})`,`translateX(${$})`).fromTo(f,.01,1),p.fromTo("transform",`translateX(${b})`,`translateX(${$})`),d.beforeClearStyles([f,"transform"]);const o=i?.translucent;if(o?d.fromTo("transform",m?"translateX(-100%)":"translateX(100%)","translateX(0px)"):d.fromTo(f,.01,"var(--opacity)"),T||y.fromTo(f,.01,1),X&&!T){const o=t();o.addElement(a(X).querySelector(".button-text")).fromTo("transform",m?"translateX(-100px)":"translateX(100px)","translateX(0px)"),n.addAnimation(o)}}})),X){const n=t(),s=X.querySelector(":scope > ion-content"),e=X.querySelectorAll(":scope > ion-header > ion-toolbar"),r=X.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(s||0!==e.length||0!==r.length?(n.addElement(s),n.addElement(r)):n.addElement(X.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),w.addAnimation(n),x){n.beforeClearStyles([f]).fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)");const t=o(X);w.afterAddWrite((()=>{"normal"===w.getDirection()&&t.style.setProperty("display","none")}))}else n.fromTo("transform",`translateX(${$})`,`translateX(${u})`).fromTo(f,1,d);if(s){const o=a(s).querySelector(".transition-effect");if(o){const a=o.querySelector(".transition-cover"),s=o.querySelector(".transition-shadow"),e=t(),r=t(),i=t();e.addElement(o).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),r.addElement(a).beforeClearStyles([f]).fromTo(f,.1,0),i.addElement(s).beforeClearStyles([f]).fromTo(f,.7,.03),e.addAnimation([r,i]),n.addAnimation([e])}}e.forEach((o=>{const n=t();n.addElement(o);const s=t();s.addElement(o.querySelector("ion-title"));const e=t(),r=o.querySelectorAll("ion-buttons,[menuToggle]"),i=o.closest("ion-header"),l=i?.classList.contains("header-collapse-condense-inactive"),c=Array.from(r).filter((t=>{const o=t.classList.contains("buttons-collapse");return o&&!l||!o}));e.addElement(c);const d=t(),b=o.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");b.length>0&&d.addElement(b);const y=t();y.addElement(a(o).querySelector(".toolbar-background"));const X=t(),h=o.querySelector("ion-back-button");if(h&&X.addElement(h),n.addAnimation([s,e,d,X,y]),w.addAnimation(n),X.fromTo(f,.99,0),e.fromTo(f,.99,0),d.fromTo(f,.99,0),x){l||s.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)").fromTo(f,.99,0),d.fromTo("transform",`translateX(${$})`,m?"translateX(-100%)":"translateX(100%)"),y.beforeClearStyles([f,"transform"]);const o=i?.translucent;if(o?y.fromTo("transform","translateX(0px)",m?"translateX(-100%)":"translateX(100%)"):y.fromTo(f,"var(--opacity)",0),h&&!A){const o=t();o.addElement(a(h).querySelector(".button-text")).fromTo("transform",`translateX(${$})`,`translateX(${(m?-124:124)+"px"})`),n.addAnimation(o)}}else l||s.fromTo("transform",`translateX(${$})`,`translateX(${u})`).fromTo(f,.99,0).afterClearStyles([p,f]),d.fromTo("transform",`translateX(${$})`,`translateX(${u})`).afterClearStyles([p,f]),X.afterClearStyles([f]),s.afterClearStyles([f]),e.afterClearStyles([f])}))}return w}catch(t){throw t}},c=10;export{l as iosTransitionAnimation,a as shadow}
|
|
@@ -18,7 +18,7 @@ export declare class Button implements ComponentInterface, AnchorInterface, Butt
|
|
|
18
18
|
private inToolbar;
|
|
19
19
|
private formButtonEl;
|
|
20
20
|
private formEl;
|
|
21
|
-
private
|
|
21
|
+
private inheritedAttributes;
|
|
22
22
|
el: HTMLElement;
|
|
23
23
|
/**
|
|
24
24
|
* If `true`, the button only has an icon.
|
|
@@ -115,6 +115,17 @@ export declare class Button implements ComponentInterface, AnchorInterface, Butt
|
|
|
115
115
|
* Emitted when the button loses focus.
|
|
116
116
|
*/
|
|
117
117
|
ionBlur: EventEmitter<void>;
|
|
118
|
+
/**
|
|
119
|
+
* This component is used within the `ion-input-password-toggle` component
|
|
120
|
+
* to toggle the visibility of the password input.
|
|
121
|
+
* These attributes need to update based on the state of the password input.
|
|
122
|
+
* Otherwise, the values will be stale.
|
|
123
|
+
*
|
|
124
|
+
* @param newValue
|
|
125
|
+
* @param _oldValue
|
|
126
|
+
* @param propName
|
|
127
|
+
*/
|
|
128
|
+
onAriaChanged(newValue: string, _oldValue: string, propName: string): void;
|
|
118
129
|
/**
|
|
119
130
|
* This is responsible for rendering a hidden native
|
|
120
131
|
* button element inside the associated form. This allows
|
|
@@ -126,8 +137,6 @@ export declare class Button implements ComponentInterface, AnchorInterface, Butt
|
|
|
126
137
|
*/
|
|
127
138
|
private renderHiddenButton;
|
|
128
139
|
componentWillLoad(): void;
|
|
129
|
-
connectedCallback(): void;
|
|
130
|
-
disconnectedCallback(): void;
|
|
131
140
|
private get hasIconOnly();
|
|
132
141
|
private get rippleType();
|
|
133
142
|
/**
|
|
@@ -8,7 +8,7 @@ import type { RouterDirection } from '../router/utils/interface';
|
|
|
8
8
|
* @part native - The native HTML button, anchor, or div element that wraps all child elements.
|
|
9
9
|
*/
|
|
10
10
|
export declare class Card implements ComponentInterface, AnchorInterface, ButtonInterface {
|
|
11
|
-
private
|
|
11
|
+
private inheritedAriaAttributes;
|
|
12
12
|
el: HTMLElement;
|
|
13
13
|
/**
|
|
14
14
|
* The color to use from your application's color palette.
|
|
@@ -62,8 +62,6 @@ export declare class Card implements ComponentInterface, AnchorInterface, Button
|
|
|
62
62
|
*/
|
|
63
63
|
target: string | undefined;
|
|
64
64
|
componentWillLoad(): void;
|
|
65
|
-
connectedCallback(): void;
|
|
66
|
-
disconnectedCallback(): void;
|
|
67
65
|
private isClickable;
|
|
68
66
|
private renderCard;
|
|
69
67
|
render(): any;
|
|
@@ -17,9 +17,9 @@ import type { RouterDirection } from '../router/utils/interface';
|
|
|
17
17
|
export declare class Item implements ComponentInterface, AnchorInterface, ButtonInterface {
|
|
18
18
|
private labelColorStyles;
|
|
19
19
|
private itemStyles;
|
|
20
|
+
private inheritedAriaAttributes;
|
|
20
21
|
private indicatorControlObserver?;
|
|
21
22
|
private didLoad;
|
|
22
|
-
private ariaController?;
|
|
23
23
|
el: HTMLIonItemElement;
|
|
24
24
|
multipleInputs: boolean;
|
|
25
25
|
focusable: boolean;
|
|
@@ -30,18 +30,10 @@ export type Attributes = {
|
|
|
30
30
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
31
31
|
* that is later used in the render function.
|
|
32
32
|
*
|
|
33
|
-
* This
|
|
34
|
-
*
|
|
33
|
+
* This does not need to be reactive as changing attributes on the host element
|
|
34
|
+
* does not trigger a re-render.
|
|
35
35
|
*/
|
|
36
36
|
export declare const inheritAttributes: (el: HTMLElement, attributes?: string[]) => Attributes;
|
|
37
|
-
/**
|
|
38
|
-
* List of available ARIA attributes + `role`.
|
|
39
|
-
* Removed deprecated attributes.
|
|
40
|
-
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes
|
|
41
|
-
*
|
|
42
|
-
* @internal Exported for `attribute-controller.ts`, which needs the same set.
|
|
43
|
-
*/
|
|
44
|
-
export declare const ariaAttributes: string[];
|
|
45
37
|
/**
|
|
46
38
|
* Returns an array of aria attributes that should be copied from
|
|
47
39
|
* the shadow host element to a target within the light DOM.
|
package/hydrate/index.js
CHANGED
|
@@ -5942,8 +5942,8 @@ const hasLazyBuild = (stencilEl) => {
|
|
|
5942
5942
|
* helper function should be called in componentWillLoad and assigned to a variable
|
|
5943
5943
|
* that is later used in the render function.
|
|
5944
5944
|
*
|
|
5945
|
-
* This
|
|
5946
|
-
*
|
|
5945
|
+
* This does not need to be reactive as changing attributes on the host element
|
|
5946
|
+
* does not trigger a re-render.
|
|
5947
5947
|
*/
|
|
5948
5948
|
const inheritAttributes$1 = (el, attributes = []) => {
|
|
5949
5949
|
const attributeObject = {};
|
|
@@ -5962,8 +5962,6 @@ const inheritAttributes$1 = (el, attributes = []) => {
|
|
|
5962
5962
|
* List of available ARIA attributes + `role`.
|
|
5963
5963
|
* Removed deprecated attributes.
|
|
5964
5964
|
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes
|
|
5965
|
-
*
|
|
5966
|
-
* @internal Exported for `attribute-controller.ts`, which needs the same set.
|
|
5967
5965
|
*/
|
|
5968
5966
|
const ariaAttributes = [
|
|
5969
5967
|
'role',
|
|
@@ -12193,128 +12191,6 @@ class Breadcrumbs {
|
|
|
12193
12191
|
}; }
|
|
12194
12192
|
}
|
|
12195
12193
|
|
|
12196
|
-
/**
|
|
12197
|
-
* Copies a set of attributes off the host element so they can be applied to an element
|
|
12198
|
-
* inside the shadow root, then keeps that copy in sync as the host attributes change.
|
|
12199
|
-
* Using `inheritAttributes` alone copies once at load, so anything written to the host
|
|
12200
|
-
* afterwards never reaches the element the assistive technology reads.
|
|
12201
|
-
*
|
|
12202
|
-
* Create the controller in `componentWillLoad`. It takes the initial copy and starts
|
|
12203
|
-
* watching right away, so `init()` is only needed to resume after a move.
|
|
12204
|
-
*
|
|
12205
|
-
* Two things to know before adopting it. Only the initial copy removes the attributes
|
|
12206
|
-
* from the host, so a value written after load sits on the host as well as on the
|
|
12207
|
-
* element it is applied to, which matters if the host has a role of its own. And an
|
|
12208
|
-
* attribute from the initial markup can never be removed, only overwritten, since the
|
|
12209
|
-
* copy already took it off the host and a `removeAttribute` there fires no mutation.
|
|
12210
|
-
* An empty string works for `aria-label` and friends, but a token-valued attribute
|
|
12211
|
-
* has to be set to its default instead, so `aria-pressed="false"` rather than empty.
|
|
12212
|
-
*
|
|
12213
|
-
* @internal
|
|
12214
|
-
* @param el The host element to copy from and watch.
|
|
12215
|
-
* @param attributes The attributes to copy and watch.
|
|
12216
|
-
* @param onChange Called after `attributes` changes, so the component can re-render.
|
|
12217
|
-
* @param hostOwnedAttributes Attributes copied at load but not watched. Use it for
|
|
12218
|
-
* attributes the component renders on its own `<Host>`, since a later change to one of
|
|
12219
|
-
* those is the component's own write, and for attributes that would put a second node in
|
|
12220
|
-
* the accessibility tree if the host kept a copy alongside the one we apply.
|
|
12221
|
-
*/
|
|
12222
|
-
const createAttributeController = (el, attributes, onChange, hostOwnedAttributes = []) => {
|
|
12223
|
-
let inherited = inheritAttributes$1(el, attributes);
|
|
12224
|
-
let observer;
|
|
12225
|
-
const watchedAttributes = attributes.filter((attr) => !hostOwnedAttributes.includes(attr));
|
|
12226
|
-
/**
|
|
12227
|
-
* The names still on the host, which is everything written after load. The initial
|
|
12228
|
-
* copy removes what it captures, so a missing attribute only counts as a removal
|
|
12229
|
-
* when its name is in here.
|
|
12230
|
-
*/
|
|
12231
|
-
const hostWritten = new Set();
|
|
12232
|
-
const setPresence = (name, value) => {
|
|
12233
|
-
if (value === null) {
|
|
12234
|
-
hostWritten.delete(name);
|
|
12235
|
-
}
|
|
12236
|
-
else {
|
|
12237
|
-
hostWritten.add(name);
|
|
12238
|
-
}
|
|
12239
|
-
};
|
|
12240
|
-
/**
|
|
12241
|
-
* Nothing is watching while the host is out of the tree, since `disconnectedCallback`
|
|
12242
|
-
* calls `destroy()`, and `forceUpdate` is a no-op on a disconnected host anyway. So
|
|
12243
|
-
* the host has to be re-read on the way back in.
|
|
12244
|
-
*/
|
|
12245
|
-
const readMissedChanges = () => {
|
|
12246
|
-
const changed = {};
|
|
12247
|
-
for (const name of watchedAttributes) {
|
|
12248
|
-
const value = el.getAttribute(name);
|
|
12249
|
-
const wasOnHost = hostWritten.has(name);
|
|
12250
|
-
setPresence(name, value);
|
|
12251
|
-
/**
|
|
12252
|
-
* An attribute that was never written to the host is missing because the initial
|
|
12253
|
-
* copy took it, not because the developer cleared it.
|
|
12254
|
-
*/
|
|
12255
|
-
if ((value === null && !wasOnHost) || value === inherited[name]) {
|
|
12256
|
-
continue;
|
|
12257
|
-
}
|
|
12258
|
-
changed[name] = value;
|
|
12259
|
-
}
|
|
12260
|
-
if (Object.keys(changed).length > 0) {
|
|
12261
|
-
inherited = { ...inherited, ...changed };
|
|
12262
|
-
onChange();
|
|
12263
|
-
}
|
|
12264
|
-
};
|
|
12265
|
-
const init = () => {
|
|
12266
|
-
// There is no MutationObserver in SSR or the hydrate build.
|
|
12267
|
-
if (observer !== undefined || watchedAttributes.length === 0 || win$1 === undefined || !('MutationObserver' in win$1)) {
|
|
12268
|
-
return;
|
|
12269
|
-
}
|
|
12270
|
-
readMissedChanges();
|
|
12271
|
-
observer = new MutationObserver((mutations) => {
|
|
12272
|
-
const changed = {};
|
|
12273
|
-
for (const mutation of mutations) {
|
|
12274
|
-
const name = mutation.attributeName;
|
|
12275
|
-
// A removed attribute reads back as null, which clears it from the element the
|
|
12276
|
-
// values are spread onto.
|
|
12277
|
-
const value = el.getAttribute(name);
|
|
12278
|
-
setPresence(name, value);
|
|
12279
|
-
changed[name] = value;
|
|
12280
|
-
}
|
|
12281
|
-
inherited = { ...inherited, ...changed };
|
|
12282
|
-
onChange();
|
|
12283
|
-
});
|
|
12284
|
-
observer.observe(el, { attributeFilter: watchedAttributes });
|
|
12285
|
-
};
|
|
12286
|
-
const destroy = () => {
|
|
12287
|
-
observer?.disconnect();
|
|
12288
|
-
observer = undefined;
|
|
12289
|
-
};
|
|
12290
|
-
/**
|
|
12291
|
-
* Has to run after the initial copy, because that copy removes the attributes from the
|
|
12292
|
-
* host and an observer armed any earlier would read the removal as a developer clearing
|
|
12293
|
-
* them.
|
|
12294
|
-
*/
|
|
12295
|
-
init();
|
|
12296
|
-
return {
|
|
12297
|
-
get attributes() {
|
|
12298
|
-
return inherited;
|
|
12299
|
-
},
|
|
12300
|
-
init,
|
|
12301
|
-
destroy,
|
|
12302
|
-
};
|
|
12303
|
-
};
|
|
12304
|
-
/**
|
|
12305
|
-
* The `createAttributeController` equivalent of `inheritAriaAttributes`, which copies and
|
|
12306
|
-
* watches every ARIA attribute plus `role`.
|
|
12307
|
-
*
|
|
12308
|
-
* @internal
|
|
12309
|
-
* @param el The host element to copy from and watch.
|
|
12310
|
-
* @param onChange Called after the attributes change, so the component can re-render.
|
|
12311
|
-
* @param hostOwnedAttributes Attributes copied at load but not watched. See
|
|
12312
|
-
* `createAttributeController`.
|
|
12313
|
-
*/
|
|
12314
|
-
const createAriaAttributeController = (el, onChange, hostOwnedAttributes = []) => {
|
|
12315
|
-
return createAttributeController(el, ariaAttributes, onChange, hostOwnedAttributes);
|
|
12316
|
-
};
|
|
12317
|
-
|
|
12318
12194
|
const buttonIosCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-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:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-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;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--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}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #0054e9);--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.125em, 60px);min-height:clamp(30px, 2.125em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 1.125em, 43.02px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(12.1394px, 1.308125em, 40.1856px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.12px, 0.9em, 43.056px)}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}`;
|
|
12319
12195
|
|
|
12320
12196
|
const buttonMdCss = () => `:host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #0054e9);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #0054e9);--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #0054e9)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-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:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-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;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1), background-color 15ms linear, color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #0054e9);--background-hover:var(--ion-color-primary, #0054e9);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:999px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-strong){font-weight:bold}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:var(--padding-top);--padding-end:var(--padding-top);--padding-start:var(--padding-end);min-width:clamp(30px, 2.86em, 60px);min-height:clamp(30px, 2.86em, 60px)}::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.104px, 1.6em, 43.008px)}:host(.button-small.button-has-icon-only){min-width:clamp(23px, 2.16em, 54px);min-height:clamp(23px, 2.16em, 54px)}:host(.button-small) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(13.002px, 1.23125em, 40.385px)}:host(.button-large.button-has-icon-only){min-width:clamp(46px, 2.5em, 78px);min-height:clamp(46px, 2.5em, 78px)}:host(.button-large) ::slotted(ion-icon[slot=icon-only]){font-size:clamp(15.008px, 1.4em, 43.008px)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-background, var(--color));color:var(--ion-toolbar-color, var(--background), var(--ion-color-primary-contrast, #fff))}`;
|
|
@@ -12339,6 +12215,7 @@ class Button {
|
|
|
12339
12215
|
this.inToolbar = false;
|
|
12340
12216
|
this.formButtonEl = null;
|
|
12341
12217
|
this.formEl = null;
|
|
12218
|
+
this.inheritedAttributes = {};
|
|
12342
12219
|
/**
|
|
12343
12220
|
* If `true`, the button only has an icon.
|
|
12344
12221
|
*/
|
|
@@ -12397,6 +12274,22 @@ class Button {
|
|
|
12397
12274
|
this.formButtonEl.disabled = disabled;
|
|
12398
12275
|
}
|
|
12399
12276
|
}
|
|
12277
|
+
/**
|
|
12278
|
+
* This component is used within the `ion-input-password-toggle` component
|
|
12279
|
+
* to toggle the visibility of the password input.
|
|
12280
|
+
* These attributes need to update based on the state of the password input.
|
|
12281
|
+
* Otherwise, the values will be stale.
|
|
12282
|
+
*
|
|
12283
|
+
* @param newValue
|
|
12284
|
+
* @param _oldValue
|
|
12285
|
+
* @param propName
|
|
12286
|
+
*/
|
|
12287
|
+
onAriaChanged(newValue, _oldValue, propName) {
|
|
12288
|
+
this.inheritedAttributes = {
|
|
12289
|
+
...this.inheritedAttributes,
|
|
12290
|
+
[propName]: newValue,
|
|
12291
|
+
};
|
|
12292
|
+
}
|
|
12400
12293
|
/**
|
|
12401
12294
|
* This is responsible for rendering a hidden native
|
|
12402
12295
|
* button element inside the associated form. This allows
|
|
@@ -12434,21 +12327,7 @@ class Button {
|
|
|
12434
12327
|
this.inToolbar = !!this.el.closest('ion-buttons');
|
|
12435
12328
|
this.inListHeader = !!this.el.closest('ion-list-header');
|
|
12436
12329
|
this.inItem = !!this.el.closest('ion-item') || !!this.el.closest('ion-item-divider');
|
|
12437
|
-
|
|
12438
|
-
* The ARIA state has to stay live, since `ion-input-password-toggle` rewrites
|
|
12439
|
-
* `aria-label` and `aria-pressed` on its `ion-button` on every toggle. We keep
|
|
12440
|
-
* `aria-disabled` out of the watch because the `<Host>` below renders it from the
|
|
12441
|
-
* `disabled` prop and those writes would clobber a developer's value, and `role` out
|
|
12442
|
-
* because a post-load write stays on the host too, which would put the same role on
|
|
12443
|
-
* two elements in the accessibility tree.
|
|
12444
|
-
*/
|
|
12445
|
-
this.ariaController = createAriaAttributeController(this.el, () => forceUpdate(), ['aria-disabled', 'role']);
|
|
12446
|
-
}
|
|
12447
|
-
connectedCallback() {
|
|
12448
|
-
this.ariaController?.init();
|
|
12449
|
-
}
|
|
12450
|
-
disconnectedCallback() {
|
|
12451
|
-
this.ariaController?.destroy();
|
|
12330
|
+
this.inheritedAttributes = inheritAriaAttributes(this.el);
|
|
12452
12331
|
}
|
|
12453
12332
|
get hasIconOnly() {
|
|
12454
12333
|
return !!this.el.querySelector('[slot="icon-only"]');
|
|
@@ -12523,8 +12402,7 @@ class Button {
|
|
|
12523
12402
|
}
|
|
12524
12403
|
render() {
|
|
12525
12404
|
const mode = getIonMode$1(this);
|
|
12526
|
-
const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong } = this;
|
|
12527
|
-
const inheritedAttributes = this.ariaController?.attributes ?? {};
|
|
12405
|
+
const { buttonType, type, disabled, rel, target, size, href, color, expand, hasIconOnly, shape, strong, inheritedAttributes, } = this;
|
|
12528
12406
|
const finalSize = size === undefined && this.inItem ? 'small' : size;
|
|
12529
12407
|
const TagType = href === undefined ? 'button' : 'a';
|
|
12530
12408
|
const attrs = TagType === 'button'
|
|
@@ -12549,7 +12427,7 @@ class Button {
|
|
|
12549
12427
|
{
|
|
12550
12428
|
type !== 'button' && this.renderHiddenButton();
|
|
12551
12429
|
}
|
|
12552
|
-
return (hAsync(Host, { key: '
|
|
12430
|
+
return (hAsync(Host, { key: '82c71b8cbf3bb51e443f4aa99c375bf5be6b8dc7', onClick: this.handleClick, "aria-disabled": disabled ? 'true' : null, class: createColorClasses$1(color, {
|
|
12553
12431
|
[mode]: true,
|
|
12554
12432
|
[buttonType]: true,
|
|
12555
12433
|
[`${buttonType}-${expand}`]: expand !== undefined,
|
|
@@ -12564,12 +12442,21 @@ class Button {
|
|
|
12564
12442
|
'button-disabled': disabled,
|
|
12565
12443
|
'ion-activatable': true,
|
|
12566
12444
|
'ion-focusable': true,
|
|
12567
|
-
}) }, hAsync(TagType, { key: '
|
|
12445
|
+
}) }, hAsync(TagType, { key: '53f4cb366bac796ab38f609e858bc1a55fce7641', ...attrs, class: "button-native", part: "native", disabled: disabled, onFocus: this.onFocus, onBlur: this.onBlur, ...inheritedAttributes }, hAsync("span", { key: '40e127fc11c889e77b8bf02e8714f0dea83bfce7', class: "button-inner" }, hAsync("slot", { key: 'e11c8c86d3f0894658a8999129425c9c111f5540', name: "icon-only", onSlotchange: this.slotChanged }), hAsync("slot", { key: '105ea9259ea17036359e6fe7eced8b267ab8e0f6', name: "start" }), hAsync("slot", { key: '0d7b0966e328a5b10b0562dacbd638dfd08d92af' }), hAsync("slot", { key: 'c542b40685802464d69f57ecc0a7c3465d24a417', name: "end" })), mode === 'md' && hAsync("ion-ripple-effect", { key: '46df4cbeb057b0a8daab92226121d8bbb8c0ee07', type: this.rippleType }))));
|
|
12568
12446
|
}
|
|
12569
12447
|
get el() { return getElement(this); }
|
|
12570
12448
|
static get watchers() { return {
|
|
12571
12449
|
"disabled": [{
|
|
12572
12450
|
"disabledChanged": 0
|
|
12451
|
+
}],
|
|
12452
|
+
"aria-checked": [{
|
|
12453
|
+
"onAriaChanged": 0
|
|
12454
|
+
}],
|
|
12455
|
+
"aria-label": [{
|
|
12456
|
+
"onAriaChanged": 0
|
|
12457
|
+
}],
|
|
12458
|
+
"aria-pressed": [{
|
|
12459
|
+
"onAriaChanged": 0
|
|
12573
12460
|
}]
|
|
12574
12461
|
}; }
|
|
12575
12462
|
static get style() { return {
|
|
@@ -12660,6 +12547,7 @@ const cardMdCss = () => `:host{--ion-safe-area-left:0px;--ion-safe-area-right:0p
|
|
|
12660
12547
|
class Card {
|
|
12661
12548
|
constructor(hostRef) {
|
|
12662
12549
|
registerInstance(this, hostRef);
|
|
12550
|
+
this.inheritedAriaAttributes = {};
|
|
12663
12551
|
/**
|
|
12664
12552
|
* If `true`, a button tag will be rendered and the card will be tappable.
|
|
12665
12553
|
*/
|
|
@@ -12679,13 +12567,7 @@ class Card {
|
|
|
12679
12567
|
this.routerDirection = 'forward';
|
|
12680
12568
|
}
|
|
12681
12569
|
componentWillLoad() {
|
|
12682
|
-
this.
|
|
12683
|
-
}
|
|
12684
|
-
connectedCallback() {
|
|
12685
|
-
this.ariaController?.init();
|
|
12686
|
-
}
|
|
12687
|
-
disconnectedCallback() {
|
|
12688
|
-
this.ariaController?.destroy();
|
|
12570
|
+
this.inheritedAriaAttributes = inheritAttributes$1(this.el, ['aria-label']);
|
|
12689
12571
|
}
|
|
12690
12572
|
isClickable() {
|
|
12691
12573
|
return this.href !== undefined || this.button;
|
|
@@ -12695,8 +12577,7 @@ class Card {
|
|
|
12695
12577
|
if (!clickable) {
|
|
12696
12578
|
return [hAsync("slot", null)];
|
|
12697
12579
|
}
|
|
12698
|
-
const { href, routerAnimation, routerDirection } = this;
|
|
12699
|
-
const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
|
|
12580
|
+
const { href, routerAnimation, routerDirection, inheritedAriaAttributes } = this;
|
|
12700
12581
|
const TagType = clickable ? (href === undefined ? 'button' : 'a') : 'div';
|
|
12701
12582
|
const attrs = TagType === 'button'
|
|
12702
12583
|
? { type: this.type }
|
|
@@ -12710,7 +12591,7 @@ class Card {
|
|
|
12710
12591
|
}
|
|
12711
12592
|
render() {
|
|
12712
12593
|
const mode = getIonMode$1(this);
|
|
12713
|
-
return (hAsync(Host, { key: '
|
|
12594
|
+
return (hAsync(Host, { key: '85e9b30bd81e79a0c7ac75cb3664bdcf9e4afc4d', class: createColorClasses$1(this.color, {
|
|
12714
12595
|
[mode]: true,
|
|
12715
12596
|
'card-disabled': this.disabled,
|
|
12716
12597
|
'ion-activatable': this.isClickable(),
|
|
@@ -21876,6 +21757,7 @@ class Item {
|
|
|
21876
21757
|
registerInstance(this, hostRef);
|
|
21877
21758
|
this.labelColorStyles = {};
|
|
21878
21759
|
this.itemStyles = new Map();
|
|
21760
|
+
this.inheritedAriaAttributes = {};
|
|
21879
21761
|
this.didLoad = false;
|
|
21880
21762
|
this.multipleInputs = false;
|
|
21881
21763
|
this.focusable = true;
|
|
@@ -21955,16 +21837,9 @@ class Item {
|
|
|
21955
21837
|
this.watchForIndicatorControls();
|
|
21956
21838
|
this.updateInteractivityOnSlotChange();
|
|
21957
21839
|
}
|
|
21958
|
-
this.ariaController?.init();
|
|
21959
21840
|
}
|
|
21960
21841
|
componentWillLoad() {
|
|
21961
|
-
|
|
21962
|
-
* Only the initial copy takes the attribute off the host, so an `aria-label` written
|
|
21963
|
-
* after load names both the native element and the Host, which is a `listitem` when
|
|
21964
|
-
* the item is in an `ion-list`. The two names always agree, so a screen reader just
|
|
21965
|
-
* reads it twice.
|
|
21966
|
-
*/
|
|
21967
|
-
this.ariaController = createAttributeController(this.el, ['aria-label'], () => forceUpdate());
|
|
21842
|
+
this.inheritedAriaAttributes = inheritAttributes$1(this.el, ['aria-label']);
|
|
21968
21843
|
}
|
|
21969
21844
|
componentDidLoad() {
|
|
21970
21845
|
raf(() => {
|
|
@@ -21981,7 +21856,6 @@ class Item {
|
|
|
21981
21856
|
this.indicatorControlObserver.disconnect();
|
|
21982
21857
|
this.indicatorControlObserver = undefined;
|
|
21983
21858
|
}
|
|
21984
|
-
this.ariaController?.destroy();
|
|
21985
21859
|
}
|
|
21986
21860
|
totalNestedInputs() {
|
|
21987
21861
|
// The following elements have a clickable cover that is relative to the entire item
|
|
@@ -22078,8 +21952,7 @@ class Item {
|
|
|
22078
21952
|
return controls[0];
|
|
22079
21953
|
}
|
|
22080
21954
|
render() {
|
|
22081
|
-
const { detail, detailIcon, download, labelColorStyles, lines, disabled, href, rel, target, routerAnimation, routerDirection, multipleInputs, } = this;
|
|
22082
|
-
const inheritedAriaAttributes = this.ariaController?.attributes ?? {};
|
|
21955
|
+
const { detail, detailIcon, download, labelColorStyles, lines, disabled, href, rel, target, routerAnimation, routerDirection, inheritedAriaAttributes, multipleInputs, } = this;
|
|
22083
21956
|
const childStyles = {};
|
|
22084
21957
|
const mode = getIonMode$1(this);
|
|
22085
21958
|
const clickable = this.isClickable();
|
|
@@ -22155,7 +22028,7 @@ class Item {
|
|
|
22155
22028
|
* multi-input item, and in a clickable item, which is a second tab stop.
|
|
22156
22029
|
*/
|
|
22157
22030
|
const slottedIndicatorNeedsRoom = this.hasSlottedIndicatorControl && (multipleInputs || this.isClickable());
|
|
22158
|
-
return (hAsync(Host, { key: '
|
|
22031
|
+
return (hAsync(Host, { key: '0dc161ad7ac2fdedc5005015fceb34ed176010a6', "aria-disabled": ariaDisabled, class: {
|
|
22159
22032
|
...childStyles,
|
|
22160
22033
|
...labelColorStyles,
|
|
22161
22034
|
...createColorClasses$1(this.color, {
|
|
@@ -22172,7 +22045,7 @@ class Item {
|
|
|
22172
22045
|
'ion-focusable': this.focusable,
|
|
22173
22046
|
'item-rtl': document.dir === 'rtl',
|
|
22174
22047
|
}),
|
|
22175
|
-
}, role: inList ? 'listitem' : null }, hAsync(TagType, { key: '
|
|
22048
|
+
}, role: inList ? 'listitem' : null }, hAsync(TagType, { key: 'd42583cf62133b2553de2e7a5357168640bb1834', ...attrs, ...inheritedAriaAttributes, class: "item-native", part: "native", disabled: disabled, ...clickFn }, hAsync("slot", { key: 'bd805ce49946cd52280d1c4b370104ee2472f1e2', name: "start", onSlotchange: this.updateInteractivityOnSlotChange }), hAsync("div", { key: '0de589f9c5c13c31b6c8838566a7ad6f78f81028', class: "item-inner", part: "inner" }, hAsync("div", { key: 'faaf6a39e072fb352753c645736ab1f47c2d7d25', class: "input-wrapper", part: "container" }, hAsync("slot", { key: '70a34c31de29a0786a14b4a7d3156ba8d4d92eb4', onSlotchange: this.updateInteractivityOnSlotChange })), hAsync("slot", { key: 'c8e764b62c5c30f67750896741ca266b741d5999', name: "end", onSlotchange: this.updateInteractivityOnSlotChange }), showDetail && (hAsync("ion-icon", { key: 'af006856d8c4ed69174534261344215957cc751a', icon: detailIcon, lazy: false, class: "item-detail-icon", part: "detail-icon", "aria-hidden": "true", "flip-rtl": detailIcon === chevronForward }))), canActivate && mode === 'md' && hAsync("ion-ripple-effect", { key: 'e5e151bafedd38feb8f71a387a0059aa1e9e90de' }))));
|
|
22176
22049
|
}
|
|
22177
22050
|
get el() { return getElement(this); }
|
|
22178
22051
|
static get watchers() { return {
|