@loadsmart/miranda-wc 3.23.0-alpha.1 → 3.24.0
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/dist/{add-circle-DUC9alAp-Ctkutyu0.js → add-circle-C5CZG77Q-ColoIgyk.js} +1 -1
- package/dist/{alarm-BaGj0N2--Cfu4UXiK.js → alarm-CyP8Zxl6-DalBljcB.js} +1 -1
- package/dist/{alert-blocked-7Pq9aiIm-DCnmigRx.js → alert-blocked-q7Zp_A_k-C5s6vB4J.js} +1 -1
- package/dist/{alert-circle-DPjFhwuE-BHDwRdgh.js → alert-circle-cGWLbr5S-sMgTTAeS.js} +1 -1
- package/dist/{anchor-BOowxXQz-DR0innL6.js → anchor-DMVPKiNp-BCt0lel3.js} +1 -1
- package/dist/{archive-DCVFqmKd-B_rLyoe7.js → archive-pnDTQb8E-Dkryyg4d.js} +1 -1
- package/dist/{arrow-left-UQ1azG0M-DcM92hhZ.js → arrow-left-BRWAN9cz-Bt6YTaCK.js} +1 -1
- package/dist/{arrow-right-D9ODrfAT-JmxAxKvq.js → arrow-right-CKSu48Gw-DG7TvR1w.js} +1 -1
- package/dist/{arrow-sort-down-DyaC4vSu-eb6U4MyY.js → arrow-sort-down-CmrMg0Lk-JaeCei3D.js} +1 -1
- package/dist/{arrow-sort-up-D3rkqbKD-qq4serZu.js → arrow-sort-up-CyAjlRVj-HqtQSezA.js} +1 -1
- package/dist/{arrow-sort-up-down-BkqHwWw9-B-1pqvab.js → arrow-sort-up-down-Bbhd8jcg-ySrUsJFy.js} +1 -1
- package/dist/{asterisk-ZHV7R7s1-DiF_TVwM.js → asterisk-DTLJw6bW-BxMJhyTu.js} +1 -1
- package/dist/{attention-Bktk81gv-DML6s-Jf.js → attention-DMjDy0He-DBbnBhAe.js} +1 -1
- package/dist/{automatic-C_cPnNpn-CvhswXY5.js → automatic-BUR8oJBN-CQnlmUKL.js} +1 -1
- package/dist/{bank-AfsU0_8a-BGA3FkwI.js → bank-CQlFVkDh-DTVhARz1.js} +1 -1
- package/dist/{bell-BeboL9IG-D28zokT6.js → bell-BTxoQTPC-DNI3Q4iL.js} +1 -1
- package/dist/{bell-cancel-Ca9tfyFs-Bt6GSXZe.js → bell-cancel-CDBcDkA0-xEPrqd3A.js} +1 -1
- package/dist/{blind-bol-buLUijt0-DNVTpLkE.js → blind-bol-CZqV1V1H-BmN8EMWM.js} +1 -1
- package/dist/{board-C7-8ym4Q-Cg3lcwyQ.js → board-aLtjKIeA-hoxXmx0D.js} +1 -1
- package/dist/{bol-CfGOF64d-CQcAMXut.js → bol-BJJ-J0up-CdDS96Q8.js} +1 -1
- package/dist/{bolt-6Jcu4Dlq-B3U94E3R.js → bolt-COqZMKNg-CPR5nxFy.js} +1 -1
- package/dist/{bolt-off-BcH48taL-CBm4G2JC.js → bolt-off-B3AdWcSp-C1d2H96Z.js} +1 -1
- package/dist/{box-DCc-Lqkq-DHy_z_e8.js → box-zuHa6HR_-DvNBJBPO.js} +1 -1
- package/dist/{broadcast-DycP-JY_-ClndtLLH.js → broadcast-TK_dz7aR-CYIwqyti.js} +1 -1
- package/dist/{burguer-menu-Asv06-tR-BVuCMF0m.js → burguer-menu-Dzj6LZLQ-DjIRKhdO.js} +1 -1
- package/dist/{calendar-Dx_9TSsr-BTlCmP7D.js → calendar-CKJ9R1M3-0lCY6aVt.js} +1 -1
- package/dist/{camera-Czlcg8L7-CFRyxtSV.js → camera-CYHpPv-X-BGzJMa0B.js} +1 -1
- package/dist/{canada-flag-CfJo38yD-ByEmeJzp.js → canada-flag-Bvts7NVw--2hD0BHf.js} +1 -1
- package/dist/{caret-down-BVaLyzKU-RffKGWan.js → caret-down-ET7jPJj6-DeRlqD32.js} +1 -1
- package/dist/{caret-left-BDnpJFoh-1rjAWHKD.js → caret-left-CJrTMxle-CCVhhg59.js} +1 -1
- package/dist/{caret-right-iJvAGCHE-CiowNQN_.js → caret-right-CO6tAHy3-C19bCz4S.js} +1 -1
- package/dist/{caret-up-9pIV6ltV-C3MRuW6S.js → caret-up-adKoit-d-zA5kaOQi.js} +1 -1
- package/dist/{carrier-contract-DW2sjcCT-xrs1cXJe.js → carrier-contract-DDIOZYTO-C-MNJnZ3.js} +1 -1
- package/dist/{chat-DGQ6mScP-Bxxm32Gl.js → chat-D9O27Wlg-D4lMU4Xy.js} +1 -1
- package/dist/{check-Cni8S44c-DgtR9k8w.js → check-BFXJiLFA-B1cyxy2K.js} +1 -1
- package/dist/{clip-DM4Wpi9M-COBBYMI8.js → clip-P341vUQy-BwV4eGIi.js} +1 -1
- package/dist/{clock-CFBsWldY-DkTtudeU.js → clock-C2caSs-m-DxP9uB5U.js} +1 -1
- package/dist/{clown-DFK7bIK4-esEEQUDv.js → clown-DmUuLLk4-kkFzY9T7.js} +1 -1
- package/dist/{code-DmezwyM4-bhrz1LoD.js → code-ChXBeKNh-xoxefcwG.js} +1 -1
- package/dist/{comment-CjEoGy-K-BJhLaeEW.js → comment-DRU7wtDh-DhqdNTqO.js} +1 -1
- package/dist/{company-DqCQwhbF-CsQh03Ye.js → company-DWk-jnfV-jjq1f7Ml.js} +1 -1
- package/dist/components/dropdown/dropdown-menu.d.ts +0 -1
- package/dist/components/dropdown/dropdown.constants.d.ts +3 -0
- package/dist/components/dropdown/dropdown.d.ts +3 -2
- package/dist/components/dropdown/dropdown.styles.d.ts +1 -5
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +2 -5
- package/dist/components/popover/popover.styles.d.ts +3 -9
- package/dist/components/select/select.constants.d.ts +3 -0
- package/dist/components/select/select.d.ts +0 -10
- package/dist/components/select/select.styles.d.ts +0 -3
- package/dist/components/skeleton/index.d.ts +5 -0
- package/dist/components/skeleton/skeleton-avatar.d.ts +33 -0
- package/dist/components/skeleton/skeleton-tag.d.ts +34 -0
- package/dist/components/skeleton/skeleton-text.d.ts +33 -0
- package/dist/components/skeleton/skeleton.constants.d.ts +5 -0
- package/dist/components/skeleton/skeleton.d.ts +33 -0
- package/dist/components/skeleton/skeleton.styles.d.ts +1 -0
- package/dist/components/skeleton/skeleton.types.d.ts +29 -0
- package/dist/components/tooltip/tooltip.d.ts +1 -3
- package/dist/{confetti-CZEHLeVv-CI_o73OB.js → confetti-DN5YrZtA-CgtqDpvo.js} +1 -1
- package/dist/{contract-BQ6z-O8E-D9dASOaG.js → contract-Cyc9s58T-DCVH84RL.js} +1 -1
- package/dist/controllers/focus-manager/focus-manager.controller.d.ts +13 -22
- package/dist/controllers/focus-manager/index.d.ts +0 -2
- package/dist/{copy-D5yGaYk7-B6zcJ3-G.js → copy-j_CeO5j1-DBbBX66Z.js} +1 -1
- package/dist/{corner-down-Qmk_Cqah-CLZZk4xc.js → corner-down-1Myalil_-D_l7fEBv.js} +1 -1
- package/dist/{corner-down-r-CwJXOJqV-B0NKbegi.js → corner-down-r-C7krDHJc-D6UYEFyb.js} +1 -1
- package/dist/{corner-up-PRIgBw5O-CqK2tbRG.js → corner-up-BTXOtxnq--phA2vIu.js} +1 -1
- package/dist/{credit-card-CPp_LFTs-DgKoFmyu.js → credit-card-CRCi9Dc8-Bgxf67MP.js} +1 -1
- package/dist/{delivery-BmLufTih-BRjR93HI.js → delivery-7Oi3CKNv-BqF-amJP.js} +1 -1
- package/dist/{dislike-DMXIEtzt-CLgA28z9.js → dislike-D1sqCnIX-CRGbgPAz.js} +1 -1
- package/dist/{document-csv-BmSu3fps-Dlcarqn_.js → document-csv-oxxbZVF7-BfYIZcXI.js} +1 -1
- package/dist/{document-file-BUqnmujz-DMuP94RV.js → document-file-CE5ecStB-JDSQLlL4.js} +1 -1
- package/dist/{document-file-plus-DOQYUKtV-vonJyqMU.js → document-file-plus-CCj1Qvd6-BCi89ejU.js} +1 -1
- package/dist/{document-image-BgYsKz7H-Ch2cDD2e.js → document-image-BQu_wEtn-VaVZW_9_.js} +1 -1
- package/dist/{dollar-CFykJiF6-MNus7vKJ.js → dollar-C3wdHOZl-npZKqEZz.js} +1 -1
- package/dist/{dollar-circle-BVOsgQj2-3Mj7Cpkq.js → dollar-circle-Ddk376Gg-BPFyZxUu.js} +1 -1
- package/dist/{dots-horizontal-Bl3xu7Nf-Dp90vlZY.js → dots-horizontal-BlIObsKU-C1JYT54C.js} +1 -1
- package/dist/{dots-vertical-40mkkgZI-hrxBYHCb.js → dots-vertical-k5xFcwIu-CIexkzzp.js} +1 -1
- package/dist/{double-caret-left-oyqAcM6D-DEOJgqt1.js → double-caret-left-CjLyeUd--yONCiz30.js} +1 -1
- package/dist/{double-caret-right-CaEFAJUV-C2IsPG-E.js → double-caret-right-7PMhIXE9-CFCoc--l.js} +1 -1
- package/dist/{down--KKq0yxa-BcM4MuB6.js → down-BnFQb3XZ-CKaahUxI.js} +1 -1
- package/dist/{download-CAudqhnU-DW6EIePg.js → download-Do14r3qE-B2_kZnE9.js} +1 -1
- package/dist/{drop-trailer-DlAJ_vBQ-Ck7EN0yS.js → drop-trailer-Bz7LYaXa-BNxxinPL.js} +1 -1
- package/dist/{dropdown-C28rTIS0-BvGBrqaj.js → dropdown-Bs3mrz2x-HyRdu5Ao.js} +1 -1
- package/dist/{email-filled-1VNy1i0o-OAu5sjU1.js → email-filled-Ib6vSSpF-CVFIQfHC.js} +1 -1
- package/dist/{email-C1bySA3E-EG_ZHEpG.js → email-sSntT_Db-COt60VJ2.js} +1 -1
- package/dist/{export-CLVug2kl-CMHi_2FU.js → export-B6qVJDet-BWFUfsve.js} +1 -1
- package/dist/{eye-BMtHMF-7-CUaSlRL2.js → eye-CvKzelpb-4o-EYJgz.js} +1 -1
- package/dist/{fast-CTEZutx8-ByJQVdRY.js → fast-DFs8Vck6-BZSZOpe_.js} +1 -1
- package/dist/{favorite-CdnL57Ww-DI1TnxFE.js → favorite-CVS0mRwO-ClgaaSGQ.js} +1 -1
- package/dist/{file-BxDR4QmX-CsE1lR7T.js → file-BomGbT3S-D_QGyKmd.js} +1 -1
- package/dist/{filter-Db0Nlr5s-DyM8rY9A.js → filter-BgtQFowd-ByHo2mNE.js} +1 -1
- package/dist/{flag-Doxn1CNj-CaRdTGRC.js → flag-DOUKKNuK-BGnABuQZ.js} +1 -1
- package/dist/{folder-B8oJf4Cn-DCA-hiDB.js → folder-BiaiDHsc-DfsknUvv.js} +1 -1
- package/dist/{funnel-Srs4aUjO-BHAQTjg_.js → funnel-BW6HCB61-BXfbhElF.js} +1 -1
- package/dist/{gear-BAAJETHP-7vEQENh-.js → gear-B_hGAVA7-BArOyIfz.js} +1 -1
- package/dist/{graph-BE58cOAU-DdTsJssn.js → graph-CEsr42RI-BFtAPjkx.js} +1 -1
- package/dist/{hand-BgYtdVrD-DLmIWymE.js → hand-4ybtavNz-ilL2mKyC.js} +1 -1
- package/dist/{hand-tap-5_UTZG9m-UqS7SY2C.js → hand-tap-B4Et1ymq-lRVAieTf.js} +1 -1
- package/dist/{high-signal-B3r2CcQv-4W-4vOBy.js → high-signal-CRsfjD8h-Crh4QJj3.js} +1 -1
- package/dist/{history-CNYIllfK-DO2V5LpM.js → history-BUA_kYSU-D6c8xCPJ.js} +1 -1
- package/dist/{home-Cy8LsN5j-CqkzAESq.js → home-CDbXj8SJ-8zU24oyq.js} +1 -1
- package/dist/{hourglass-1JnprXU6-BObLbaZW.js → hourglass-sG5QE8qB-D8CINH1l.js} +1 -1
- package/dist/{import-2-CkJjxM_j-Lf255DxR.js → import-2-BQzYJT1j-B0dZ829J.js} +1 -1
- package/dist/{import-rhDUm5Dy-DZmGJV6I.js → import-CpZfll3l-B0vYvSbK.js} +1 -1
- package/dist/{indeterminate-BZ0acJ1--axSk5I8y.js → indeterminate-BM1GmESx-fBPs3lz5.js} +1 -1
- package/dist/{index-DaIT7YFO.js → index-BQ5mnCy4.js} +629 -911
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{info-CXMYCD_g-CXO89mrj.js → info-C2NIoStv-Dvpt05pd.js} +1 -1
- package/dist/{invoice-CugnzNUF-CyvesXB7.js → invoice-Eiu4J-yI-DFCHJe8u.js} +1 -1
- package/dist/{invoice-items-CGz7rmum-Bhy0TYpG.js → invoice-items-1safxj-W-BopGcCss.js} +1 -1
- package/dist/{kanban-BW05GStl-D88mZ1uL.js → kanban-D1czVvgo-WesMN8w5.js} +1 -1
- package/dist/{light-bulb-CJYecBFg-BvJzaGIS.js → light-bulb-juJvGfZZ-CU1fsCFS.js} +1 -1
- package/dist/{like-QtHFzoZl-ByNxod9X.js → like-CDk1Eq-B-Cho-he_G.js} +1 -1
- package/dist/{link-C2K5IFfc-BJLgNy3b.js → link-CtzKePzW-Be-Jd_LF.js} +1 -1
- package/dist/{list-qb6yfepc-DbCwb8-1.js → list-B5ppYWf8-B3KG2479.js} +1 -1
- package/dist/{loadsmart-logo-DD7mf5RA-CluOgWNu.js → loadsmart-logo-D-Umqpvn-CG4XEYBL.js} +1 -1
- package/dist/{log-out-D7IEO_4w-ByKaYHyn.js → log-out-B41_O6WF-DGqKLtS1.js} +1 -1
- package/dist/{low-signal-CCApieja-DoxGKmkL.js → low-signal-mu1iPs24-KCk4HPiG.js} +1 -1
- package/dist/{map-DkdQQaHz-DKfXFt5h.js → map-DxwLwi5r-D7ZeRh00.js} +1 -1
- package/dist/{medal-CFck2Vo9-C7pfNLEO.js → medal-CBsl8HFi-DMK4JsJ0.js} +1 -1
- package/dist/{megaphone-F4dIKI-R-D2Mt3_H_.js → megaphone-xj1cRrob-7eYtObYc.js} +1 -1
- package/dist/{mexico-flag-B5V_6xOg-BhclLFWr.js → mexico-flag-BmBwsYxY-yVoWguFR.js} +1 -1
- package/dist/{minus-BFZ6IG9o-nW_lBEqu.js → minus-Cynpy0uu-3mQpoBHj.js} +1 -1
- package/dist/{network-signal-Bb_xHR-r-BPLm4LFo.js → network-signal-DRnIASxY-BL2JciP0.js} +1 -1
- package/dist/{no-awarded-_pC45l2Z-CaUJY35X.js → no-awarded-D7VWZare-CZtBez6a.js} +1 -1
- package/dist/{notes-D0DnYYDF-BQO7kP2s.js → notes-EklJGrPE-DLgepIV0.js} +1 -1
- package/dist/{notes-lock-C4iIdCWW-yVuCl4DX.js → notes-lock-CWy8CWH7-C3LLOEX7.js} +1 -1
- package/dist/{order-D6iD-byD-CTQJvwh_.js → order-aNev5nyR-Cm61q7_G.js} +1 -1
- package/dist/{package-tracking-VlPDjmKG-Bv-yuZP0.js → package-tracking-DAjMkdDV-D55WYEBS.js} +1 -1
- package/dist/{padlock-Cr-9ZU_A-CRg8ucks.js → padlock-CgI0Uupk-NKaRBpyM.js} +1 -1
- package/dist/{padlock-open-l4wBXg6b-uw-GO5k0.js → padlock-open-CdifcEIy-DJrIUudp.js} +1 -1
- package/dist/{pencil-ayTIIr8--BaWHtrdJ.js → pencil-D-G9Wa9K-fmb_BsNY.js} +1 -1
- package/dist/{phone-BTCU0Wy1-cewlAn1q.js → phone-DtPE_Z2v-CR6q9Q9d.js} +1 -1
- package/dist/{pin-filled-DSa95Sh1-DymPmEl2.js → pin-filled-BrhKKOdN-Cb0mdyDH.js} +1 -1
- package/dist/{pin-map-BkHB4tNw-gLWuB7Vy.js → pin-map-BkTZPYt1-BAQ_9YCH.js} +1 -1
- package/dist/{pin-Bn3yTC_u-C9wnB7-L.js → pin-xZsWdXmM-BTffu4Fi.js} +1 -1
- package/dist/{plugs-zfSg1YW9-BqEk5mMe.js → plugs-BBgNl-uU-DQvs0O16.js} +1 -1
- package/dist/{plus-ozGMFMAz-DQ-c8t1w.js → plus-DxcPEsVO-B6VWI19x.js} +1 -1
- package/dist/{pod-ThCZ5RL3-BPEzs_Wa.js → pod-D8hsnvJ3-ZQTt28yr.js} +1 -1
- package/dist/{pre-confirmed-load-Bwr-dWH2-BAxCwo9T.js → pre-confirmed-load-CtfeOCYU-CzsvY4q3.js} +1 -1
- package/dist/{print-D1P_UCUE-CLd1OBvt.js → print-CL8Vj4GX-Cpj9EJe5.js} +1 -1
- package/dist/{profile-BAhtRV-H-jVlIJFPY.js → profile-BJby3iCY-BWF7ZDCi.js} +1 -1
- package/dist/{question-dot-gWpkPf6c-Df6oW4RR.js → question-dot-dxHwsnx--DpmYSZZd.js} +1 -1
- package/dist/{receipt-BwBkV8gn-CYbcBIjy.js → receipt-BDTlql0N-BmEOj6RH.js} +1 -1
- package/dist/{redo-ByLKSZcV-BYLRRGjW.js → redo-lRFPmbD_-DK_ujVjG.js} +1 -1
- package/dist/{refresh-Dom4yiat-BGP2kWUA.js → refresh-DsPShlYW-BbpS9THk.js} +1 -1
- package/dist/{reloading-CltA-FOS-BQoguQTN.js → reloading-Whmp4x7F-CqnkVEGf.js} +1 -1
- package/dist/{road-B0mpmfpO-E_icjN68.js → road-B_IjFqpU-DKbvjBed.js} +1 -1
- package/dist/{round-trip-CJ6rlpuR-CJYnmh0V.js → round-trip-CZt2wg2s-CVDgvunk.js} +1 -1
- package/dist/{satellite-B6YyzjV9-DOI-6Xw6.js → satellite-BcK4XqCU-MCvhwzHT.js} +1 -1
- package/dist/{search-CEuIfz1B-DhiljDTp.js → search-CmOXP39p-D-I1Cs36.js} +1 -1
- package/dist/{send-DGyddefp-DFc_4lvT.js → send-uQKs3Nz2-BnmyCDhk.js} +1 -1
- package/dist/{share-C6k81f3b-BrbXt8nv.js → share-ULuh_5j--XPIPtxXK.js} +1 -1
- package/dist/{ship-C4UkiVeP-BeYgOYUm.js → ship-uXqn1PRV-NFOrNY6I.js} +1 -1
- package/dist/{signal-DAhLkSYH-DaMubJTS.js → signal-DNd7ZXxZ-CRvzpLJO.js} +1 -1
- package/dist/{sparkle-pS82Zae1-D6ZHUoli.js → sparkle-C0_KLrse-DGVyINKa.js} +1 -1
- package/dist/{star-DR6uwE4h-Csmiwd7-.js → star-BCMp6xLn-ChPDf50r.js} +1 -1
- package/dist/{swap-BtTQYKMg-9ISYqXD4.js → swap-4kVMGb8W-VVPD86Qn.js} +1 -1
- package/dist/{tag-IL1JfL1C-CfkMrgmj.js → tag-Dbvqw_0i-DzY_x5-5.js} +1 -1
- package/dist/{tag-chevron-DoDGVtfR-CzH_-ZmJ.js → tag-chevron-DyMa_ivR-4c-vmJ2m.js} +1 -1
- package/dist/{telephone-YrI9UwiG-y6pEfXiw.js → telephone-CGWecdDa-CCp-Q0pO.js} +1 -1
- package/dist/{telephone-slash-BZap8ZKk-C0wOmUxT.js → telephone-slash-CjnG40rr-lsnb9YMN.js} +1 -1
- package/dist/{terminal-s52u0ofd-C8hA6hUg.js → terminal-BU2O_2dX-DsP_gaol.js} +1 -1
- package/dist/{timer-Br-HDx_b-Du5qJ-S7.js → timer-uB5-42oS-BqfqnGUE.js} +1 -1
- package/dist/{tms-ready-D0C0lkjm-DIiOX7ps.js → tms-ready-4wJduyQX-BkIUr8rk.js} +1 -1
- package/dist/{train-D4LRq2PY-JKTM_Ph2.js → train-DDGH-b9H-CpBLbNHE.js} +1 -1
- package/dist/{trash-3UNIllFc-C3PxOS5Z.js → trash-DXbuipWA-BN5kgXem.js} +1 -1
- package/dist/{trend-down-BDR4cf1B-jsGarK52.js → trend-down-Cmku22zF-BZGVc2fE.js} +1 -1
- package/dist/{trend-up-B_kfsVbA-CDi-eu3L.js → trend-up-BaV6JoRm-D59Garw5.js} +1 -1
- package/dist/{trophee-CAwY7HPq-D-nPg_oa.js → trophee-K1cFUToB-o_NIGjHq.js} +1 -1
- package/dist/{truck-JWZ6uNC1-Ci9r7Npj.js → truck-CyYshCvB-C96V73we.js} +1 -1
- package/dist/truckload-BuNTTF10-C15-uOC8.js +6 -0
- package/dist/{unarchive-Dk6YxGuz-yAM9N7_O.js → unarchive-BdxMLGKF-CMER9b-Z.js} +1 -1
- package/dist/{undo-D22pWaLw-uTPkcxA0.js → undo-D_JUFtL7-Cak29lZG.js} +1 -1
- package/dist/{united-states-flag-CsHL9bsp-CvWWbbE4.js → united-states-flag-DistuceF-B_C4Oq64.js} +1 -1
- package/dist/{up-DO_i3SQ4-BxR4RWhC.js → up-B2YYkNsZ-D_x_QtA6.js} +1 -1
- package/dist/{upgrade-CnbgCK-Y-IS-CWzsq.js → upgrade-Bk3Cmbfi-CkG_yW5a.js} +1 -1
- package/dist/{upload-DtwRfNbp-BcL4xTMt.js → upload-eRCnmhJL-suH2Z6ID.js} +1 -1
- package/dist/{user-BePsqno7-DX0UPGtB.js → user-DlAoP5wu-Cl-1SPTc.js} +1 -1
- package/dist/{wallet-BWOwCd2Q-B-9iso7p.js → wallet-BfC41f7v-C_Gvh3Ca.js} +1 -1
- package/dist/{warehouse-CqDssJJV-PIr5jujD.js → warehouse-C1NpX4x7-BkUD1PMS.js} +1 -1
- package/dist/website-visibility-Cm79KTVY-CXDu9Crj.js +6 -0
- package/dist/{wifi-Dt8207Jw-CBA9QF73.js → wifi-6CmnWuyt-BLwwa6GZ.js} +1 -1
- package/dist/{wifi-off-B_p79YVu-CPNxFyag.js → wifi-off-9WwqaEGe-DLsCOZtX.js} +1 -1
- package/dist/{x-B2033JKZ-BCx65oiR.js → x-ooA6Tcn9-csYpeFoQ.js} +1 -1
- package/dist/{x-small-C9YOZeBE-LCAFtW_J.js → x-small-DnsMuXB4-BcK9JDop.js} +1 -1
- package/dist/{zoom-in-CVkDSwyt-BNbYI4RI.js → zoom-in-Cke6gMw8-Bnize9mO.js} +1 -1
- package/dist/{zoom-out-DqHlySLS-C2mHlT5x.js → zoom-out-BdmC2eOs-CUyO0khh.js} +1 -1
- package/package.json +3 -3
- package/dist/controllers/expandable/expandable.controller.d.ts +0 -19
- package/dist/controllers/expandable/expandable.styles.d.ts +0 -19
- package/dist/controllers/expandable/index.d.ts +0 -3
- package/dist/controllers/focus-manager/roving-focus.controller.d.ts +0 -27
- package/dist/utils/string.d.ts +0 -6
|
@@ -158,7 +158,7 @@ function isInsideElement(event, element) {
|
|
|
158
158
|
return element.contains(event.target);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
const logger$
|
|
161
|
+
const logger$d = createLogger('miranda');
|
|
162
162
|
class Component extends r$5 {
|
|
163
163
|
static define(config) {
|
|
164
164
|
const { name, constructor } = config;
|
|
@@ -166,7 +166,7 @@ class Component extends r$5 {
|
|
|
166
166
|
window.customElements.define(name, constructor);
|
|
167
167
|
}
|
|
168
168
|
catch (error) {
|
|
169
|
-
logger$
|
|
169
|
+
logger$d.error(`Failed to define component ${name}: ${error}. Please, ensure definitions are compatible so the application does not break or have bugs due to overridden definitions.`);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
constructor() {
|
|
@@ -691,7 +691,7 @@ function p$2(padding) {
|
|
|
691
691
|
}
|
|
692
692
|
|
|
693
693
|
function skeleton() {
|
|
694
|
-
return r$8(`animation: skeleton-loading
|
|
694
|
+
return r$8(`animation: skeleton-loading 1.5s ease-in-out infinite;`);
|
|
695
695
|
}
|
|
696
696
|
skeleton.styles = () => {
|
|
697
697
|
return i$9 `
|
|
@@ -709,6 +709,7 @@ skeleton.styles = () => {
|
|
|
709
709
|
100% {
|
|
710
710
|
background-color: ${getColor('color-background-tertiary')};
|
|
711
711
|
border-color: ${getColor('color-background-tertiary')};
|
|
712
|
+
opacity: 0.3;
|
|
712
713
|
}
|
|
713
714
|
}
|
|
714
715
|
`;
|
|
@@ -1020,7 +1021,7 @@ function typography(variant) {
|
|
|
1020
1021
|
return r$8(`${defaultStyle}\n${variantStyle}`);
|
|
1021
1022
|
}
|
|
1022
1023
|
|
|
1023
|
-
function styles$
|
|
1024
|
+
function styles$H() {
|
|
1024
1025
|
return i$9 `
|
|
1025
1026
|
:host {
|
|
1026
1027
|
background-color: ${getColor('color-background-primary')};
|
|
@@ -1388,7 +1389,7 @@ function toCSSValue(token, alpha) {
|
|
|
1388
1389
|
return `var(${toCSSVariable(token)}, ${value})`;
|
|
1389
1390
|
}
|
|
1390
1391
|
|
|
1391
|
-
function styles$
|
|
1392
|
+
function styles$G() {
|
|
1392
1393
|
return [
|
|
1393
1394
|
i$3 `
|
|
1394
1395
|
:host {
|
|
@@ -1426,171 +1427,173 @@ function styles$F() {
|
|
|
1426
1427
|
|
|
1427
1428
|
function __variableDynamicImportRuntime0__(path) {
|
|
1428
1429
|
switch (path) {
|
|
1429
|
-
case './icons/add-circle.ts': return import('./add-circle-
|
|
1430
|
-
case './icons/alarm.ts': return import('./alarm-
|
|
1431
|
-
case './icons/alert-blocked.ts': return import('./alert-blocked-
|
|
1432
|
-
case './icons/alert-circle.ts': return import('./alert-circle-
|
|
1433
|
-
case './icons/anchor.ts': return import('./anchor-
|
|
1434
|
-
case './icons/archive.ts': return import('./archive-
|
|
1435
|
-
case './icons/arrow-left.ts': return import('./arrow-left-
|
|
1436
|
-
case './icons/arrow-right.ts': return import('./arrow-right-
|
|
1437
|
-
case './icons/arrow-sort-down.ts': return import('./arrow-sort-down-
|
|
1438
|
-
case './icons/arrow-sort-up-down.ts': return import('./arrow-sort-up-down-
|
|
1439
|
-
case './icons/arrow-sort-up.ts': return import('./arrow-sort-up-
|
|
1440
|
-
case './icons/asterisk.ts': return import('./asterisk-
|
|
1441
|
-
case './icons/attention.ts': return import('./attention-
|
|
1442
|
-
case './icons/automatic.ts': return import('./automatic-
|
|
1443
|
-
case './icons/bank.ts': return import('./bank-
|
|
1444
|
-
case './icons/bell-cancel.ts': return import('./bell-cancel-
|
|
1445
|
-
case './icons/bell.ts': return import('./bell-
|
|
1446
|
-
case './icons/blind-bol.ts': return import('./blind-bol-
|
|
1447
|
-
case './icons/board.ts': return import('./board-
|
|
1448
|
-
case './icons/bol.ts': return import('./bol-
|
|
1449
|
-
case './icons/bolt-off.ts': return import('./bolt-off-
|
|
1450
|
-
case './icons/bolt.ts': return import('./bolt-
|
|
1451
|
-
case './icons/box.ts': return import('./box-
|
|
1452
|
-
case './icons/broadcast.ts': return import('./broadcast-
|
|
1453
|
-
case './icons/burguer-menu.ts': return import('./burguer-menu-
|
|
1454
|
-
case './icons/calendar.ts': return import('./calendar-
|
|
1455
|
-
case './icons/camera.ts': return import('./camera-
|
|
1456
|
-
case './icons/canada-flag.ts': return import('./canada-flag-
|
|
1457
|
-
case './icons/caret-down.ts': return import('./caret-down-
|
|
1458
|
-
case './icons/caret-left.ts': return import('./caret-left-
|
|
1459
|
-
case './icons/caret-right.ts': return import('./caret-right-
|
|
1460
|
-
case './icons/caret-up.ts': return import('./caret-up-
|
|
1461
|
-
case './icons/carrier-contract.ts': return import('./carrier-contract-
|
|
1462
|
-
case './icons/chat.ts': return import('./chat-
|
|
1463
|
-
case './icons/check.ts': return import('./check-
|
|
1464
|
-
case './icons/clip.ts': return import('./clip-
|
|
1465
|
-
case './icons/clock.ts': return import('./clock-
|
|
1466
|
-
case './icons/clown.ts': return import('./clown-
|
|
1467
|
-
case './icons/code.ts': return import('./code-
|
|
1468
|
-
case './icons/comment.ts': return import('./comment-
|
|
1469
|
-
case './icons/company.ts': return import('./company-
|
|
1470
|
-
case './icons/confetti.ts': return import('./confetti-
|
|
1471
|
-
case './icons/contract.ts': return import('./contract-
|
|
1472
|
-
case './icons/copy.ts': return import('./copy-
|
|
1473
|
-
case './icons/corner-down-r.ts': return import('./corner-down-r-
|
|
1474
|
-
case './icons/corner-down.ts': return import('./corner-down-
|
|
1475
|
-
case './icons/corner-up.ts': return import('./corner-up-
|
|
1476
|
-
case './icons/credit-card.ts': return import('./credit-card-
|
|
1477
|
-
case './icons/delivery.ts': return import('./delivery-
|
|
1478
|
-
case './icons/dislike.ts': return import('./dislike-
|
|
1479
|
-
case './icons/document-csv.ts': return import('./document-csv-
|
|
1480
|
-
case './icons/document-file-plus.ts': return import('./document-file-plus-
|
|
1481
|
-
case './icons/document-file.ts': return import('./document-file-
|
|
1482
|
-
case './icons/document-image.ts': return import('./document-image-
|
|
1483
|
-
case './icons/dollar-circle.ts': return import('./dollar-circle-
|
|
1484
|
-
case './icons/dollar.ts': return import('./dollar-
|
|
1485
|
-
case './icons/dots-horizontal.ts': return import('./dots-horizontal-
|
|
1486
|
-
case './icons/dots-vertical.ts': return import('./dots-vertical-
|
|
1487
|
-
case './icons/double-caret-left.ts': return import('./double-caret-left-
|
|
1488
|
-
case './icons/double-caret-right.ts': return import('./double-caret-right-
|
|
1489
|
-
case './icons/down.ts': return import('./down
|
|
1490
|
-
case './icons/download.ts': return import('./download-
|
|
1491
|
-
case './icons/drop-trailer.ts': return import('./drop-trailer-
|
|
1492
|
-
case './icons/dropdown.ts': return import('./dropdown-
|
|
1493
|
-
case './icons/email-filled.ts': return import('./email-filled-
|
|
1494
|
-
case './icons/email.ts': return import('./email-
|
|
1495
|
-
case './icons/export.ts': return import('./export-
|
|
1496
|
-
case './icons/eye.ts': return import('./eye-
|
|
1497
|
-
case './icons/fast.ts': return import('./fast-
|
|
1498
|
-
case './icons/favorite.ts': return import('./favorite-
|
|
1499
|
-
case './icons/file.ts': return import('./file-
|
|
1500
|
-
case './icons/filter.ts': return import('./filter-
|
|
1501
|
-
case './icons/flag.ts': return import('./flag-
|
|
1502
|
-
case './icons/folder.ts': return import('./folder-
|
|
1503
|
-
case './icons/funnel.ts': return import('./funnel-
|
|
1504
|
-
case './icons/gear.ts': return import('./gear-
|
|
1505
|
-
case './icons/graph.ts': return import('./graph-
|
|
1506
|
-
case './icons/hand-tap.ts': return import('./hand-tap-
|
|
1507
|
-
case './icons/hand.ts': return import('./hand-
|
|
1508
|
-
case './icons/high-signal.ts': return import('./high-signal-
|
|
1509
|
-
case './icons/history.ts': return import('./history-
|
|
1510
|
-
case './icons/home.ts': return import('./home-
|
|
1511
|
-
case './icons/hourglass.ts': return import('./hourglass-
|
|
1512
|
-
case './icons/import-2.ts': return import('./import-2-
|
|
1513
|
-
case './icons/import.ts': return import('./import-
|
|
1514
|
-
case './icons/indeterminate.ts': return import('./indeterminate-
|
|
1515
|
-
case './icons/info.ts': return import('./info-
|
|
1516
|
-
case './icons/invoice-items.ts': return import('./invoice-items-
|
|
1517
|
-
case './icons/invoice.ts': return import('./invoice-
|
|
1518
|
-
case './icons/kanban.ts': return import('./kanban-
|
|
1519
|
-
case './icons/light-bulb.ts': return import('./light-bulb-
|
|
1520
|
-
case './icons/like.ts': return import('./like-
|
|
1521
|
-
case './icons/link.ts': return import('./link-
|
|
1522
|
-
case './icons/list.ts': return import('./list-
|
|
1523
|
-
case './icons/loadsmart-logo.ts': return import('./loadsmart-logo-
|
|
1524
|
-
case './icons/log-out.ts': return import('./log-out-
|
|
1525
|
-
case './icons/low-signal.ts': return import('./low-signal-
|
|
1526
|
-
case './icons/map.ts': return import('./map-
|
|
1527
|
-
case './icons/medal.ts': return import('./medal-
|
|
1528
|
-
case './icons/megaphone.ts': return import('./megaphone-
|
|
1529
|
-
case './icons/mexico-flag.ts': return import('./mexico-flag-
|
|
1530
|
-
case './icons/minus.ts': return import('./minus-
|
|
1531
|
-
case './icons/network-signal.ts': return import('./network-signal-
|
|
1532
|
-
case './icons/no-awarded.ts': return import('./no-awarded-
|
|
1533
|
-
case './icons/notes-lock.ts': return import('./notes-lock-
|
|
1534
|
-
case './icons/notes.ts': return import('./notes-
|
|
1535
|
-
case './icons/order.ts': return import('./order-
|
|
1536
|
-
case './icons/package-tracking.ts': return import('./package-tracking-
|
|
1537
|
-
case './icons/padlock-open.ts': return import('./padlock-open-
|
|
1538
|
-
case './icons/padlock.ts': return import('./padlock-
|
|
1539
|
-
case './icons/pencil.ts': return import('./pencil-
|
|
1540
|
-
case './icons/phone.ts': return import('./phone-
|
|
1541
|
-
case './icons/pin-filled.ts': return import('./pin-filled-
|
|
1542
|
-
case './icons/pin-map.ts': return import('./pin-map-
|
|
1543
|
-
case './icons/pin.ts': return import('./pin-
|
|
1544
|
-
case './icons/plugs.ts': return import('./plugs-
|
|
1545
|
-
case './icons/plus.ts': return import('./plus-
|
|
1546
|
-
case './icons/pod.ts': return import('./pod-
|
|
1547
|
-
case './icons/pre-confirmed-load.ts': return import('./pre-confirmed-load-
|
|
1548
|
-
case './icons/print.ts': return import('./print-
|
|
1549
|
-
case './icons/profile.ts': return import('./profile-
|
|
1550
|
-
case './icons/question-dot.ts': return import('./question-dot-
|
|
1551
|
-
case './icons/receipt.ts': return import('./receipt-
|
|
1552
|
-
case './icons/redo.ts': return import('./redo-
|
|
1553
|
-
case './icons/refresh.ts': return import('./refresh-
|
|
1554
|
-
case './icons/reloading.ts': return import('./reloading-
|
|
1555
|
-
case './icons/road.ts': return import('./road-
|
|
1556
|
-
case './icons/round-trip.ts': return import('./round-trip-
|
|
1557
|
-
case './icons/satellite.ts': return import('./satellite-
|
|
1558
|
-
case './icons/search.ts': return import('./search-
|
|
1559
|
-
case './icons/send.ts': return import('./send-
|
|
1560
|
-
case './icons/share.ts': return import('./share-
|
|
1561
|
-
case './icons/ship.ts': return import('./ship-
|
|
1562
|
-
case './icons/signal.ts': return import('./signal-
|
|
1563
|
-
case './icons/sparkle.ts': return import('./sparkle-
|
|
1564
|
-
case './icons/star.ts': return import('./star-
|
|
1565
|
-
case './icons/swap.ts': return import('./swap-
|
|
1566
|
-
case './icons/tag-chevron.ts': return import('./tag-chevron-
|
|
1567
|
-
case './icons/tag.ts': return import('./tag-
|
|
1568
|
-
case './icons/telephone-slash.ts': return import('./telephone-slash-
|
|
1569
|
-
case './icons/telephone.ts': return import('./telephone-
|
|
1570
|
-
case './icons/terminal.ts': return import('./terminal-
|
|
1571
|
-
case './icons/timer.ts': return import('./timer-
|
|
1572
|
-
case './icons/tms-ready.ts': return import('./tms-ready-
|
|
1573
|
-
case './icons/train.ts': return import('./train-
|
|
1574
|
-
case './icons/trash.ts': return import('./trash-
|
|
1575
|
-
case './icons/trend-down.ts': return import('./trend-down-
|
|
1576
|
-
case './icons/trend-up.ts': return import('./trend-up-
|
|
1577
|
-
case './icons/trophee.ts': return import('./trophee-
|
|
1578
|
-
case './icons/truck.ts': return import('./truck-
|
|
1579
|
-
case './icons/
|
|
1580
|
-
case './icons/
|
|
1581
|
-
case './icons/
|
|
1582
|
-
case './icons/
|
|
1583
|
-
case './icons/
|
|
1584
|
-
case './icons/
|
|
1585
|
-
case './icons/
|
|
1586
|
-
case './icons/
|
|
1587
|
-
case './icons/
|
|
1588
|
-
case './icons/
|
|
1589
|
-
case './icons/
|
|
1590
|
-
case './icons/
|
|
1591
|
-
case './icons/
|
|
1592
|
-
case './icons/
|
|
1593
|
-
case './icons/
|
|
1430
|
+
case './icons/add-circle.ts': return import('./add-circle-C5CZG77Q-ColoIgyk.js');
|
|
1431
|
+
case './icons/alarm.ts': return import('./alarm-CyP8Zxl6-DalBljcB.js');
|
|
1432
|
+
case './icons/alert-blocked.ts': return import('./alert-blocked-q7Zp_A_k-C5s6vB4J.js');
|
|
1433
|
+
case './icons/alert-circle.ts': return import('./alert-circle-cGWLbr5S-sMgTTAeS.js');
|
|
1434
|
+
case './icons/anchor.ts': return import('./anchor-DMVPKiNp-BCt0lel3.js');
|
|
1435
|
+
case './icons/archive.ts': return import('./archive-pnDTQb8E-Dkryyg4d.js');
|
|
1436
|
+
case './icons/arrow-left.ts': return import('./arrow-left-BRWAN9cz-Bt6YTaCK.js');
|
|
1437
|
+
case './icons/arrow-right.ts': return import('./arrow-right-CKSu48Gw-DG7TvR1w.js');
|
|
1438
|
+
case './icons/arrow-sort-down.ts': return import('./arrow-sort-down-CmrMg0Lk-JaeCei3D.js');
|
|
1439
|
+
case './icons/arrow-sort-up-down.ts': return import('./arrow-sort-up-down-Bbhd8jcg-ySrUsJFy.js');
|
|
1440
|
+
case './icons/arrow-sort-up.ts': return import('./arrow-sort-up-CyAjlRVj-HqtQSezA.js');
|
|
1441
|
+
case './icons/asterisk.ts': return import('./asterisk-DTLJw6bW-BxMJhyTu.js');
|
|
1442
|
+
case './icons/attention.ts': return import('./attention-DMjDy0He-DBbnBhAe.js');
|
|
1443
|
+
case './icons/automatic.ts': return import('./automatic-BUR8oJBN-CQnlmUKL.js');
|
|
1444
|
+
case './icons/bank.ts': return import('./bank-CQlFVkDh-DTVhARz1.js');
|
|
1445
|
+
case './icons/bell-cancel.ts': return import('./bell-cancel-CDBcDkA0-xEPrqd3A.js');
|
|
1446
|
+
case './icons/bell.ts': return import('./bell-BTxoQTPC-DNI3Q4iL.js');
|
|
1447
|
+
case './icons/blind-bol.ts': return import('./blind-bol-CZqV1V1H-BmN8EMWM.js');
|
|
1448
|
+
case './icons/board.ts': return import('./board-aLtjKIeA-hoxXmx0D.js');
|
|
1449
|
+
case './icons/bol.ts': return import('./bol-BJJ-J0up-CdDS96Q8.js');
|
|
1450
|
+
case './icons/bolt-off.ts': return import('./bolt-off-B3AdWcSp-C1d2H96Z.js');
|
|
1451
|
+
case './icons/bolt.ts': return import('./bolt-COqZMKNg-CPR5nxFy.js');
|
|
1452
|
+
case './icons/box.ts': return import('./box-zuHa6HR_-DvNBJBPO.js');
|
|
1453
|
+
case './icons/broadcast.ts': return import('./broadcast-TK_dz7aR-CYIwqyti.js');
|
|
1454
|
+
case './icons/burguer-menu.ts': return import('./burguer-menu-Dzj6LZLQ-DjIRKhdO.js');
|
|
1455
|
+
case './icons/calendar.ts': return import('./calendar-CKJ9R1M3-0lCY6aVt.js');
|
|
1456
|
+
case './icons/camera.ts': return import('./camera-CYHpPv-X-BGzJMa0B.js');
|
|
1457
|
+
case './icons/canada-flag.ts': return import('./canada-flag-Bvts7NVw--2hD0BHf.js');
|
|
1458
|
+
case './icons/caret-down.ts': return import('./caret-down-ET7jPJj6-DeRlqD32.js');
|
|
1459
|
+
case './icons/caret-left.ts': return import('./caret-left-CJrTMxle-CCVhhg59.js');
|
|
1460
|
+
case './icons/caret-right.ts': return import('./caret-right-CO6tAHy3-C19bCz4S.js');
|
|
1461
|
+
case './icons/caret-up.ts': return import('./caret-up-adKoit-d-zA5kaOQi.js');
|
|
1462
|
+
case './icons/carrier-contract.ts': return import('./carrier-contract-DDIOZYTO-C-MNJnZ3.js');
|
|
1463
|
+
case './icons/chat.ts': return import('./chat-D9O27Wlg-D4lMU4Xy.js');
|
|
1464
|
+
case './icons/check.ts': return import('./check-BFXJiLFA-B1cyxy2K.js');
|
|
1465
|
+
case './icons/clip.ts': return import('./clip-P341vUQy-BwV4eGIi.js');
|
|
1466
|
+
case './icons/clock.ts': return import('./clock-C2caSs-m-DxP9uB5U.js');
|
|
1467
|
+
case './icons/clown.ts': return import('./clown-DmUuLLk4-kkFzY9T7.js');
|
|
1468
|
+
case './icons/code.ts': return import('./code-ChXBeKNh-xoxefcwG.js');
|
|
1469
|
+
case './icons/comment.ts': return import('./comment-DRU7wtDh-DhqdNTqO.js');
|
|
1470
|
+
case './icons/company.ts': return import('./company-DWk-jnfV-jjq1f7Ml.js');
|
|
1471
|
+
case './icons/confetti.ts': return import('./confetti-DN5YrZtA-CgtqDpvo.js');
|
|
1472
|
+
case './icons/contract.ts': return import('./contract-Cyc9s58T-DCVH84RL.js');
|
|
1473
|
+
case './icons/copy.ts': return import('./copy-j_CeO5j1-DBbBX66Z.js');
|
|
1474
|
+
case './icons/corner-down-r.ts': return import('./corner-down-r-C7krDHJc-D6UYEFyb.js');
|
|
1475
|
+
case './icons/corner-down.ts': return import('./corner-down-1Myalil_-D_l7fEBv.js');
|
|
1476
|
+
case './icons/corner-up.ts': return import('./corner-up-BTXOtxnq--phA2vIu.js');
|
|
1477
|
+
case './icons/credit-card.ts': return import('./credit-card-CRCi9Dc8-Bgxf67MP.js');
|
|
1478
|
+
case './icons/delivery.ts': return import('./delivery-7Oi3CKNv-BqF-amJP.js');
|
|
1479
|
+
case './icons/dislike.ts': return import('./dislike-D1sqCnIX-CRGbgPAz.js');
|
|
1480
|
+
case './icons/document-csv.ts': return import('./document-csv-oxxbZVF7-BfYIZcXI.js');
|
|
1481
|
+
case './icons/document-file-plus.ts': return import('./document-file-plus-CCj1Qvd6-BCi89ejU.js');
|
|
1482
|
+
case './icons/document-file.ts': return import('./document-file-CE5ecStB-JDSQLlL4.js');
|
|
1483
|
+
case './icons/document-image.ts': return import('./document-image-BQu_wEtn-VaVZW_9_.js');
|
|
1484
|
+
case './icons/dollar-circle.ts': return import('./dollar-circle-Ddk376Gg-BPFyZxUu.js');
|
|
1485
|
+
case './icons/dollar.ts': return import('./dollar-C3wdHOZl-npZKqEZz.js');
|
|
1486
|
+
case './icons/dots-horizontal.ts': return import('./dots-horizontal-BlIObsKU-C1JYT54C.js');
|
|
1487
|
+
case './icons/dots-vertical.ts': return import('./dots-vertical-k5xFcwIu-CIexkzzp.js');
|
|
1488
|
+
case './icons/double-caret-left.ts': return import('./double-caret-left-CjLyeUd--yONCiz30.js');
|
|
1489
|
+
case './icons/double-caret-right.ts': return import('./double-caret-right-7PMhIXE9-CFCoc--l.js');
|
|
1490
|
+
case './icons/down.ts': return import('./down-BnFQb3XZ-CKaahUxI.js');
|
|
1491
|
+
case './icons/download.ts': return import('./download-Do14r3qE-B2_kZnE9.js');
|
|
1492
|
+
case './icons/drop-trailer.ts': return import('./drop-trailer-Bz7LYaXa-BNxxinPL.js');
|
|
1493
|
+
case './icons/dropdown.ts': return import('./dropdown-Bs3mrz2x-HyRdu5Ao.js');
|
|
1494
|
+
case './icons/email-filled.ts': return import('./email-filled-Ib6vSSpF-CVFIQfHC.js');
|
|
1495
|
+
case './icons/email.ts': return import('./email-sSntT_Db-COt60VJ2.js');
|
|
1496
|
+
case './icons/export.ts': return import('./export-B6qVJDet-BWFUfsve.js');
|
|
1497
|
+
case './icons/eye.ts': return import('./eye-CvKzelpb-4o-EYJgz.js');
|
|
1498
|
+
case './icons/fast.ts': return import('./fast-DFs8Vck6-BZSZOpe_.js');
|
|
1499
|
+
case './icons/favorite.ts': return import('./favorite-CVS0mRwO-ClgaaSGQ.js');
|
|
1500
|
+
case './icons/file.ts': return import('./file-BomGbT3S-D_QGyKmd.js');
|
|
1501
|
+
case './icons/filter.ts': return import('./filter-BgtQFowd-ByHo2mNE.js');
|
|
1502
|
+
case './icons/flag.ts': return import('./flag-DOUKKNuK-BGnABuQZ.js');
|
|
1503
|
+
case './icons/folder.ts': return import('./folder-BiaiDHsc-DfsknUvv.js');
|
|
1504
|
+
case './icons/funnel.ts': return import('./funnel-BW6HCB61-BXfbhElF.js');
|
|
1505
|
+
case './icons/gear.ts': return import('./gear-B_hGAVA7-BArOyIfz.js');
|
|
1506
|
+
case './icons/graph.ts': return import('./graph-CEsr42RI-BFtAPjkx.js');
|
|
1507
|
+
case './icons/hand-tap.ts': return import('./hand-tap-B4Et1ymq-lRVAieTf.js');
|
|
1508
|
+
case './icons/hand.ts': return import('./hand-4ybtavNz-ilL2mKyC.js');
|
|
1509
|
+
case './icons/high-signal.ts': return import('./high-signal-CRsfjD8h-Crh4QJj3.js');
|
|
1510
|
+
case './icons/history.ts': return import('./history-BUA_kYSU-D6c8xCPJ.js');
|
|
1511
|
+
case './icons/home.ts': return import('./home-CDbXj8SJ-8zU24oyq.js');
|
|
1512
|
+
case './icons/hourglass.ts': return import('./hourglass-sG5QE8qB-D8CINH1l.js');
|
|
1513
|
+
case './icons/import-2.ts': return import('./import-2-BQzYJT1j-B0dZ829J.js');
|
|
1514
|
+
case './icons/import.ts': return import('./import-CpZfll3l-B0vYvSbK.js');
|
|
1515
|
+
case './icons/indeterminate.ts': return import('./indeterminate-BM1GmESx-fBPs3lz5.js');
|
|
1516
|
+
case './icons/info.ts': return import('./info-C2NIoStv-Dvpt05pd.js');
|
|
1517
|
+
case './icons/invoice-items.ts': return import('./invoice-items-1safxj-W-BopGcCss.js');
|
|
1518
|
+
case './icons/invoice.ts': return import('./invoice-Eiu4J-yI-DFCHJe8u.js');
|
|
1519
|
+
case './icons/kanban.ts': return import('./kanban-D1czVvgo-WesMN8w5.js');
|
|
1520
|
+
case './icons/light-bulb.ts': return import('./light-bulb-juJvGfZZ-CU1fsCFS.js');
|
|
1521
|
+
case './icons/like.ts': return import('./like-CDk1Eq-B-Cho-he_G.js');
|
|
1522
|
+
case './icons/link.ts': return import('./link-CtzKePzW-Be-Jd_LF.js');
|
|
1523
|
+
case './icons/list.ts': return import('./list-B5ppYWf8-B3KG2479.js');
|
|
1524
|
+
case './icons/loadsmart-logo.ts': return import('./loadsmart-logo-D-Umqpvn-CG4XEYBL.js');
|
|
1525
|
+
case './icons/log-out.ts': return import('./log-out-B41_O6WF-DGqKLtS1.js');
|
|
1526
|
+
case './icons/low-signal.ts': return import('./low-signal-mu1iPs24-KCk4HPiG.js');
|
|
1527
|
+
case './icons/map.ts': return import('./map-DxwLwi5r-D7ZeRh00.js');
|
|
1528
|
+
case './icons/medal.ts': return import('./medal-CBsl8HFi-DMK4JsJ0.js');
|
|
1529
|
+
case './icons/megaphone.ts': return import('./megaphone-xj1cRrob-7eYtObYc.js');
|
|
1530
|
+
case './icons/mexico-flag.ts': return import('./mexico-flag-BmBwsYxY-yVoWguFR.js');
|
|
1531
|
+
case './icons/minus.ts': return import('./minus-Cynpy0uu-3mQpoBHj.js');
|
|
1532
|
+
case './icons/network-signal.ts': return import('./network-signal-DRnIASxY-BL2JciP0.js');
|
|
1533
|
+
case './icons/no-awarded.ts': return import('./no-awarded-D7VWZare-CZtBez6a.js');
|
|
1534
|
+
case './icons/notes-lock.ts': return import('./notes-lock-CWy8CWH7-C3LLOEX7.js');
|
|
1535
|
+
case './icons/notes.ts': return import('./notes-EklJGrPE-DLgepIV0.js');
|
|
1536
|
+
case './icons/order.ts': return import('./order-aNev5nyR-Cm61q7_G.js');
|
|
1537
|
+
case './icons/package-tracking.ts': return import('./package-tracking-DAjMkdDV-D55WYEBS.js');
|
|
1538
|
+
case './icons/padlock-open.ts': return import('./padlock-open-CdifcEIy-DJrIUudp.js');
|
|
1539
|
+
case './icons/padlock.ts': return import('./padlock-CgI0Uupk-NKaRBpyM.js');
|
|
1540
|
+
case './icons/pencil.ts': return import('./pencil-D-G9Wa9K-fmb_BsNY.js');
|
|
1541
|
+
case './icons/phone.ts': return import('./phone-DtPE_Z2v-CR6q9Q9d.js');
|
|
1542
|
+
case './icons/pin-filled.ts': return import('./pin-filled-BrhKKOdN-Cb0mdyDH.js');
|
|
1543
|
+
case './icons/pin-map.ts': return import('./pin-map-BkTZPYt1-BAQ_9YCH.js');
|
|
1544
|
+
case './icons/pin.ts': return import('./pin-xZsWdXmM-BTffu4Fi.js');
|
|
1545
|
+
case './icons/plugs.ts': return import('./plugs-BBgNl-uU-DQvs0O16.js');
|
|
1546
|
+
case './icons/plus.ts': return import('./plus-DxcPEsVO-B6VWI19x.js');
|
|
1547
|
+
case './icons/pod.ts': return import('./pod-D8hsnvJ3-ZQTt28yr.js');
|
|
1548
|
+
case './icons/pre-confirmed-load.ts': return import('./pre-confirmed-load-CtfeOCYU-CzsvY4q3.js');
|
|
1549
|
+
case './icons/print.ts': return import('./print-CL8Vj4GX-Cpj9EJe5.js');
|
|
1550
|
+
case './icons/profile.ts': return import('./profile-BJby3iCY-BWF7ZDCi.js');
|
|
1551
|
+
case './icons/question-dot.ts': return import('./question-dot-dxHwsnx--DpmYSZZd.js');
|
|
1552
|
+
case './icons/receipt.ts': return import('./receipt-BDTlql0N-BmEOj6RH.js');
|
|
1553
|
+
case './icons/redo.ts': return import('./redo-lRFPmbD_-DK_ujVjG.js');
|
|
1554
|
+
case './icons/refresh.ts': return import('./refresh-DsPShlYW-BbpS9THk.js');
|
|
1555
|
+
case './icons/reloading.ts': return import('./reloading-Whmp4x7F-CqnkVEGf.js');
|
|
1556
|
+
case './icons/road.ts': return import('./road-B_IjFqpU-DKbvjBed.js');
|
|
1557
|
+
case './icons/round-trip.ts': return import('./round-trip-CZt2wg2s-CVDgvunk.js');
|
|
1558
|
+
case './icons/satellite.ts': return import('./satellite-BcK4XqCU-MCvhwzHT.js');
|
|
1559
|
+
case './icons/search.ts': return import('./search-CmOXP39p-D-I1Cs36.js');
|
|
1560
|
+
case './icons/send.ts': return import('./send-uQKs3Nz2-BnmyCDhk.js');
|
|
1561
|
+
case './icons/share.ts': return import('./share-ULuh_5j--XPIPtxXK.js');
|
|
1562
|
+
case './icons/ship.ts': return import('./ship-uXqn1PRV-NFOrNY6I.js');
|
|
1563
|
+
case './icons/signal.ts': return import('./signal-DNd7ZXxZ-CRvzpLJO.js');
|
|
1564
|
+
case './icons/sparkle.ts': return import('./sparkle-C0_KLrse-DGVyINKa.js');
|
|
1565
|
+
case './icons/star.ts': return import('./star-BCMp6xLn-ChPDf50r.js');
|
|
1566
|
+
case './icons/swap.ts': return import('./swap-4kVMGb8W-VVPD86Qn.js');
|
|
1567
|
+
case './icons/tag-chevron.ts': return import('./tag-chevron-DyMa_ivR-4c-vmJ2m.js');
|
|
1568
|
+
case './icons/tag.ts': return import('./tag-Dbvqw_0i-DzY_x5-5.js');
|
|
1569
|
+
case './icons/telephone-slash.ts': return import('./telephone-slash-CjnG40rr-lsnb9YMN.js');
|
|
1570
|
+
case './icons/telephone.ts': return import('./telephone-CGWecdDa-CCp-Q0pO.js');
|
|
1571
|
+
case './icons/terminal.ts': return import('./terminal-BU2O_2dX-DsP_gaol.js');
|
|
1572
|
+
case './icons/timer.ts': return import('./timer-uB5-42oS-BqfqnGUE.js');
|
|
1573
|
+
case './icons/tms-ready.ts': return import('./tms-ready-4wJduyQX-BkIUr8rk.js');
|
|
1574
|
+
case './icons/train.ts': return import('./train-DDGH-b9H-CpBLbNHE.js');
|
|
1575
|
+
case './icons/trash.ts': return import('./trash-DXbuipWA-BN5kgXem.js');
|
|
1576
|
+
case './icons/trend-down.ts': return import('./trend-down-Cmku22zF-BZGVc2fE.js');
|
|
1577
|
+
case './icons/trend-up.ts': return import('./trend-up-BaV6JoRm-D59Garw5.js');
|
|
1578
|
+
case './icons/trophee.ts': return import('./trophee-K1cFUToB-o_NIGjHq.js');
|
|
1579
|
+
case './icons/truck.ts': return import('./truck-CyYshCvB-C96V73we.js');
|
|
1580
|
+
case './icons/truckload.ts': return import('./truckload-BuNTTF10-C15-uOC8.js');
|
|
1581
|
+
case './icons/unarchive.ts': return import('./unarchive-BdxMLGKF-CMER9b-Z.js');
|
|
1582
|
+
case './icons/undo.ts': return import('./undo-D_JUFtL7-Cak29lZG.js');
|
|
1583
|
+
case './icons/united-states-flag.ts': return import('./united-states-flag-DistuceF-B_C4Oq64.js');
|
|
1584
|
+
case './icons/up.ts': return import('./up-B2YYkNsZ-D_x_QtA6.js');
|
|
1585
|
+
case './icons/upgrade.ts': return import('./upgrade-Bk3Cmbfi-CkG_yW5a.js');
|
|
1586
|
+
case './icons/upload.ts': return import('./upload-eRCnmhJL-suH2Z6ID.js');
|
|
1587
|
+
case './icons/user.ts': return import('./user-DlAoP5wu-Cl-1SPTc.js');
|
|
1588
|
+
case './icons/wallet.ts': return import('./wallet-BfC41f7v-C_Gvh3Ca.js');
|
|
1589
|
+
case './icons/warehouse.ts': return import('./warehouse-C1NpX4x7-BkUD1PMS.js');
|
|
1590
|
+
case './icons/website-visibility.ts': return import('./website-visibility-Cm79KTVY-CXDu9Crj.js');
|
|
1591
|
+
case './icons/wifi-off.ts': return import('./wifi-off-9WwqaEGe-DLsCOZtX.js');
|
|
1592
|
+
case './icons/wifi.ts': return import('./wifi-6CmnWuyt-BLwwa6GZ.js');
|
|
1593
|
+
case './icons/x-small.ts': return import('./x-small-DnsMuXB4-BcK9JDop.js');
|
|
1594
|
+
case './icons/x.ts': return import('./x-ooA6Tcn9-csYpeFoQ.js');
|
|
1595
|
+
case './icons/zoom-in.ts': return import('./zoom-in-Cke6gMw8-Bnize9mO.js');
|
|
1596
|
+
case './icons/zoom-out.ts': return import('./zoom-out-BdmC2eOs-CUyO0khh.js');
|
|
1594
1597
|
default: return new Promise(function(resolve, reject) {
|
|
1595
1598
|
(typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
|
|
1596
1599
|
reject.bind(null, new Error("Unknown variable dynamic import: " + path))
|
|
@@ -1750,6 +1753,7 @@ const AVAILABLE_ICONS = [
|
|
|
1750
1753
|
'trend-up',
|
|
1751
1754
|
'trophee',
|
|
1752
1755
|
'truck',
|
|
1756
|
+
'truckload',
|
|
1753
1757
|
'unarchive',
|
|
1754
1758
|
'undo',
|
|
1755
1759
|
'united-states-flag',
|
|
@@ -1759,6 +1763,7 @@ const AVAILABLE_ICONS = [
|
|
|
1759
1763
|
'user',
|
|
1760
1764
|
'wallet',
|
|
1761
1765
|
'warehouse',
|
|
1766
|
+
'website-visibility',
|
|
1762
1767
|
'wifi-off',
|
|
1763
1768
|
'wifi',
|
|
1764
1769
|
'x-small',
|
|
@@ -1903,7 +1908,7 @@ class Icon extends r$4 {
|
|
|
1903
1908
|
}
|
|
1904
1909
|
}
|
|
1905
1910
|
_Icon_setError = new WeakMap(), _Icon_loadIcon = new WeakMap();
|
|
1906
|
-
Icon.styles = [styles$
|
|
1911
|
+
Icon.styles = [styles$G()];
|
|
1907
1912
|
Icon.define();
|
|
1908
1913
|
|
|
1909
1914
|
var _Accordion_instances, _Accordion_accordionTrigger_get, _Accordion_accordionPanel_get, _Accordion_accordionContent_get, _Accordion_handleExpand, _Accordion_toggle, _Accordion_handleTransition;
|
|
@@ -2001,7 +2006,7 @@ _Accordion_handleTransition = new WeakMap(), _Accordion_instances = new WeakSet(
|
|
|
2001
2006
|
detail: { name: 'accordion', value: this.expanded },
|
|
2002
2007
|
});
|
|
2003
2008
|
};
|
|
2004
|
-
Accordion.styles = [styles$
|
|
2009
|
+
Accordion.styles = [styles$H()];
|
|
2005
2010
|
Accordion.define();
|
|
2006
2011
|
|
|
2007
2012
|
class AccordionTitle extends Component {
|
|
@@ -2120,7 +2125,7 @@ Avatar.define();
|
|
|
2120
2125
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2121
2126
|
*/const o$3=o=>o??E$1;
|
|
2122
2127
|
|
|
2123
|
-
function styles$
|
|
2128
|
+
function styles$F(selector = '#button') {
|
|
2124
2129
|
return i$9 `
|
|
2125
2130
|
:host {
|
|
2126
2131
|
${typography('button-md')};
|
|
@@ -2237,9 +2242,9 @@ function styles$E(selector = '#button') {
|
|
|
2237
2242
|
`;
|
|
2238
2243
|
}
|
|
2239
2244
|
|
|
2240
|
-
function styles$
|
|
2245
|
+
function styles$E() {
|
|
2241
2246
|
return [
|
|
2242
|
-
styles$
|
|
2247
|
+
styles$F(),
|
|
2243
2248
|
i$9 `
|
|
2244
2249
|
:host([variant='primary']) {
|
|
2245
2250
|
--m-button-background-color: ${getColor('color-primary-60')};
|
|
@@ -2512,7 +2517,7 @@ function styles$D() {
|
|
|
2512
2517
|
}
|
|
2513
2518
|
|
|
2514
2519
|
const DEFAULT_SIZE$2 = 10;
|
|
2515
|
-
function styles$
|
|
2520
|
+
function styles$D() {
|
|
2516
2521
|
return i$9 `
|
|
2517
2522
|
:host {
|
|
2518
2523
|
color: inherit;
|
|
@@ -2588,7 +2593,7 @@ _DotsLoader_instances = new WeakSet(), _DotsLoader_getSize = function _DotsLoade
|
|
|
2588
2593
|
}
|
|
2589
2594
|
return `${parsedSize || DEFAULT_SIZE$2}px`;
|
|
2590
2595
|
};
|
|
2591
|
-
DotsLoader.styles = [styles$
|
|
2596
|
+
DotsLoader.styles = [styles$D()];
|
|
2592
2597
|
DotsLoader.define();
|
|
2593
2598
|
|
|
2594
2599
|
var _Button_handleDisabledChange, _Button_handleClick, _Button_handleLinkClick, _Button_handleSubmit, _Button_handleReset, _Button_isDisabled, _Button_isLink;
|
|
@@ -2754,7 +2759,7 @@ Button.shadowRootOptions = {
|
|
|
2754
2759
|
...r$5.shadowRootOptions,
|
|
2755
2760
|
delegatesFocus: true,
|
|
2756
2761
|
};
|
|
2757
|
-
Button.styles = [styles$
|
|
2762
|
+
Button.styles = [styles$E()];
|
|
2758
2763
|
Button.define();
|
|
2759
2764
|
|
|
2760
2765
|
var _BackButton_handleLabelChange;
|
|
@@ -2818,7 +2823,7 @@ const t$1={ATTRIBUTE:1},e$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$2 =
|
|
|
2818
2823
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2819
2824
|
*/const e$1=e$2(class extends i$2{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T$1}});
|
|
2820
2825
|
|
|
2821
|
-
function styles$
|
|
2826
|
+
function styles$C() {
|
|
2822
2827
|
return i$9 `
|
|
2823
2828
|
:host {
|
|
2824
2829
|
--m-host-size: 24px;
|
|
@@ -2921,7 +2926,7 @@ _Badge_instances = new WeakSet(), _Badge_counter_get = function _Badge_counter_g
|
|
|
2921
2926
|
}
|
|
2922
2927
|
return E$1;
|
|
2923
2928
|
};
|
|
2924
|
-
Badge.styles = [styles$
|
|
2929
|
+
Badge.styles = [styles$C()];
|
|
2925
2930
|
Badge.define();
|
|
2926
2931
|
|
|
2927
2932
|
class BannerActionPrimary extends Button {
|
|
@@ -2963,7 +2968,7 @@ class BannerActionSecondary extends Button {
|
|
|
2963
2968
|
}
|
|
2964
2969
|
BannerActionSecondary.define();
|
|
2965
2970
|
|
|
2966
|
-
function styles$
|
|
2971
|
+
function styles$B() {
|
|
2967
2972
|
return i$9 `
|
|
2968
2973
|
:host {
|
|
2969
2974
|
display: flex;
|
|
@@ -2992,10 +2997,10 @@ class BannerActions extends Component {
|
|
|
2992
2997
|
`;
|
|
2993
2998
|
}
|
|
2994
2999
|
}
|
|
2995
|
-
BannerActions.styles = [styles$
|
|
3000
|
+
BannerActions.styles = [styles$B()];
|
|
2996
3001
|
BannerActions.define();
|
|
2997
3002
|
|
|
2998
|
-
function styles$
|
|
3003
|
+
function styles$A() {
|
|
2999
3004
|
return i$9 `
|
|
3000
3005
|
:host {
|
|
3001
3006
|
${typography('body-md')};
|
|
@@ -3020,7 +3025,7 @@ class BannerDescription extends Component {
|
|
|
3020
3025
|
return x `<slot></slot>`;
|
|
3021
3026
|
}
|
|
3022
3027
|
}
|
|
3023
|
-
BannerDescription.styles = [styles$
|
|
3028
|
+
BannerDescription.styles = [styles$A()];
|
|
3024
3029
|
BannerDescription.define();
|
|
3025
3030
|
|
|
3026
3031
|
class BannerIcon extends Component {
|
|
@@ -3041,7 +3046,7 @@ class BannerIcon extends Component {
|
|
|
3041
3046
|
}
|
|
3042
3047
|
BannerIcon.define();
|
|
3043
3048
|
|
|
3044
|
-
function styles$
|
|
3049
|
+
function styles$z() {
|
|
3045
3050
|
return i$9 `
|
|
3046
3051
|
:host {
|
|
3047
3052
|
${typography('body-md-bold')};
|
|
@@ -3077,10 +3082,10 @@ class BannerTitle extends Component {
|
|
|
3077
3082
|
return x `<slot></slot>`;
|
|
3078
3083
|
}
|
|
3079
3084
|
}
|
|
3080
|
-
BannerTitle.styles = [styles$
|
|
3085
|
+
BannerTitle.styles = [styles$z()];
|
|
3081
3086
|
BannerTitle.define();
|
|
3082
3087
|
|
|
3083
|
-
function styles$
|
|
3088
|
+
function styles$y() {
|
|
3084
3089
|
return i$9 `
|
|
3085
3090
|
:host {
|
|
3086
3091
|
display: block;
|
|
@@ -3202,7 +3207,7 @@ function toRem(value, base = BASE_PIXELS) {
|
|
|
3202
3207
|
return r$8(`${parseInt(String(value), 10) / base}rem`);
|
|
3203
3208
|
}
|
|
3204
3209
|
|
|
3205
|
-
function styles$
|
|
3210
|
+
function styles$x() {
|
|
3206
3211
|
return i$9 `
|
|
3207
3212
|
:host {
|
|
3208
3213
|
--m-close-button-base-color: ${getColor('color-text-primary')};
|
|
@@ -3378,7 +3383,7 @@ CloseButton.shadowRootOptions = {
|
|
|
3378
3383
|
...r$5.shadowRootOptions,
|
|
3379
3384
|
delegatesFocus: true,
|
|
3380
3385
|
};
|
|
3381
|
-
CloseButton.styles = [styles$
|
|
3386
|
+
CloseButton.styles = [styles$x()];
|
|
3382
3387
|
CloseButton.define();
|
|
3383
3388
|
|
|
3384
3389
|
/**
|
|
@@ -3442,7 +3447,7 @@ const TEXT_CONTENT_HTML_TAGS = [
|
|
|
3442
3447
|
'var', // Variables
|
|
3443
3448
|
];
|
|
3444
3449
|
|
|
3445
|
-
function styles$
|
|
3450
|
+
function styles$w() {
|
|
3446
3451
|
return i$9 `
|
|
3447
3452
|
:host {
|
|
3448
3453
|
--m-text-color: ${getColor('color-text-primary')};
|
|
@@ -3636,7 +3641,7 @@ class Text extends Component {
|
|
|
3636
3641
|
return u `<slot></slot>`;
|
|
3637
3642
|
}
|
|
3638
3643
|
}
|
|
3639
|
-
Text.styles = [styles$
|
|
3644
|
+
Text.styles = [styles$w()];
|
|
3640
3645
|
Text.define();
|
|
3641
3646
|
|
|
3642
3647
|
var _Banner_primaryAction, _Banner_handleDismissClick;
|
|
@@ -3750,7 +3755,7 @@ class Banner extends Component {
|
|
|
3750
3755
|
}
|
|
3751
3756
|
}
|
|
3752
3757
|
_Banner_primaryAction = new WeakMap(), _Banner_handleDismissClick = new WeakMap();
|
|
3753
|
-
Banner.styles = [styles$
|
|
3758
|
+
Banner.styles = [styles$y()];
|
|
3754
3759
|
Banner.define();
|
|
3755
3760
|
|
|
3756
3761
|
var _BaseLayout_setOrRemoveProperty;
|
|
@@ -3856,7 +3861,7 @@ function getBaseLayoutStyles(cssPropertiesPrefix) {
|
|
|
3856
3861
|
`;
|
|
3857
3862
|
}
|
|
3858
3863
|
|
|
3859
|
-
function styles$
|
|
3864
|
+
function styles$v() {
|
|
3860
3865
|
return i$9 `
|
|
3861
3866
|
:host {
|
|
3862
3867
|
--m-body-padding: ${getToken$1('spacing-4')};
|
|
@@ -3901,7 +3906,7 @@ class Body extends BaseLayout {
|
|
|
3901
3906
|
Body.CSSPropertiesPrefix = 'body';
|
|
3902
3907
|
Body.styles = [
|
|
3903
3908
|
getBaseLayoutStyles(Body.CSSPropertiesPrefix),
|
|
3904
|
-
styles$
|
|
3909
|
+
styles$v(),
|
|
3905
3910
|
];
|
|
3906
3911
|
Body.define();
|
|
3907
3912
|
|
|
@@ -4956,7 +4961,7 @@ class CardTitle extends Component {
|
|
|
4956
4961
|
CardTitle.styles = [cardTitleStyles()];
|
|
4957
4962
|
CardTitle.define();
|
|
4958
4963
|
|
|
4959
|
-
function styles$
|
|
4964
|
+
function styles$u() {
|
|
4960
4965
|
return i$9 `
|
|
4961
4966
|
.m-divider {
|
|
4962
4967
|
border: 0;
|
|
@@ -4981,7 +4986,7 @@ class Divider extends Component {
|
|
|
4981
4986
|
return x `<hr class="m-divider" />`;
|
|
4982
4987
|
}
|
|
4983
4988
|
}
|
|
4984
|
-
Divider.styles = [styles$
|
|
4989
|
+
Divider.styles = [styles$u()];
|
|
4985
4990
|
Divider.define();
|
|
4986
4991
|
|
|
4987
4992
|
class CardDivider extends Divider {
|
|
@@ -5083,7 +5088,7 @@ class CardActionTertiary extends Button {
|
|
|
5083
5088
|
}
|
|
5084
5089
|
CardActionTertiary.define();
|
|
5085
5090
|
|
|
5086
|
-
function styles$
|
|
5091
|
+
function styles$t() {
|
|
5087
5092
|
return i$9 `
|
|
5088
5093
|
:host {
|
|
5089
5094
|
--m-caret-button-base-color: ${getColor('color-text-primary')};
|
|
@@ -5264,10 +5269,10 @@ CaretButton.shadowRootOptions = {
|
|
|
5264
5269
|
...r$5.shadowRootOptions,
|
|
5265
5270
|
delegatesFocus: true,
|
|
5266
5271
|
};
|
|
5267
|
-
CaretButton.styles = [styles$
|
|
5272
|
+
CaretButton.styles = [styles$t()];
|
|
5268
5273
|
CaretButton.define();
|
|
5269
5274
|
|
|
5270
|
-
function styles$
|
|
5275
|
+
function styles$s() {
|
|
5271
5276
|
return i$9 `
|
|
5272
5277
|
:host {
|
|
5273
5278
|
${typography('body-md')};
|
|
@@ -5610,7 +5615,7 @@ Checkbox.shadowRootOptions = {
|
|
|
5610
5615
|
...r$5.shadowRootOptions,
|
|
5611
5616
|
delegatesFocus: true,
|
|
5612
5617
|
};
|
|
5613
|
-
Checkbox.styles = [styles$
|
|
5618
|
+
Checkbox.styles = [styles$s()];
|
|
5614
5619
|
Checkbox.define();
|
|
5615
5620
|
|
|
5616
5621
|
/**
|
|
@@ -5643,7 +5648,7 @@ function attachContextRoot() {
|
|
|
5643
5648
|
|
|
5644
5649
|
const dialogContext = n$4(Symbol('dialog'));
|
|
5645
5650
|
|
|
5646
|
-
function styles$
|
|
5651
|
+
function styles$r() {
|
|
5647
5652
|
return i$9 `
|
|
5648
5653
|
:host {
|
|
5649
5654
|
--margin: ${getToken$1('spacing-6')};
|
|
@@ -5890,7 +5895,7 @@ _Dialog_contextProvider = new WeakMap(), _Dialog_handleClick = new WeakMap(), _D
|
|
|
5890
5895
|
event.preventDefault();
|
|
5891
5896
|
__classPrivateFieldGet$1(this, _Dialog_instances, "m", _Dialog_emitCloseEvent).call(this);
|
|
5892
5897
|
};
|
|
5893
|
-
Dialog.styles = [styles$
|
|
5898
|
+
Dialog.styles = [styles$r()];
|
|
5894
5899
|
Dialog.define();
|
|
5895
5900
|
|
|
5896
5901
|
const DIALOG_SIZES = [
|
|
@@ -5993,7 +5998,7 @@ class DialogActions extends Group {
|
|
|
5993
5998
|
}
|
|
5994
5999
|
DialogActions.define();
|
|
5995
6000
|
|
|
5996
|
-
function styles$
|
|
6001
|
+
function styles$q() {
|
|
5997
6002
|
return i$9 `
|
|
5998
6003
|
:host {
|
|
5999
6004
|
overflow-y: auto;
|
|
@@ -6016,7 +6021,7 @@ class DialogBody extends Component {
|
|
|
6016
6021
|
return x `<slot></slot>`;
|
|
6017
6022
|
}
|
|
6018
6023
|
}
|
|
6019
|
-
DialogBody.styles = [styles$
|
|
6024
|
+
DialogBody.styles = [styles$q()];
|
|
6020
6025
|
DialogBody.define();
|
|
6021
6026
|
|
|
6022
6027
|
class DialogClose extends CloseButton {
|
|
@@ -6051,7 +6056,7 @@ class DialogFooter extends Component {
|
|
|
6051
6056
|
}
|
|
6052
6057
|
DialogFooter.define();
|
|
6053
6058
|
|
|
6054
|
-
function styles$
|
|
6059
|
+
function styles$p() {
|
|
6055
6060
|
return i$9 `
|
|
6056
6061
|
:host {
|
|
6057
6062
|
${typography('heading-md-bold')};
|
|
@@ -6129,10 +6134,10 @@ _DialogHeader_context = new WeakMap(), _DialogHeader_instances = new WeakSet(),
|
|
|
6129
6134
|
<m-icon name=${name} color=${color} size="24" aria-hidden="true"></m-icon>
|
|
6130
6135
|
`;
|
|
6131
6136
|
};
|
|
6132
|
-
DialogHeader.styles = [styles$
|
|
6137
|
+
DialogHeader.styles = [styles$p()];
|
|
6133
6138
|
DialogHeader.define();
|
|
6134
6139
|
|
|
6135
|
-
function styles$
|
|
6140
|
+
function styles$o() {
|
|
6136
6141
|
return i$9 `
|
|
6137
6142
|
:host {
|
|
6138
6143
|
--padding: ${getToken$1('spacing-6')};
|
|
@@ -6359,7 +6364,7 @@ _Drawer_handleClick = new WeakMap(), _Drawer_instances = new WeakSet(), _Drawer_
|
|
|
6359
6364
|
event.preventDefault();
|
|
6360
6365
|
__classPrivateFieldGet$1(this, _Drawer_instances, "m", _Drawer_emitCloseEvent).call(this);
|
|
6361
6366
|
};
|
|
6362
|
-
Drawer.styles = [styles$
|
|
6367
|
+
Drawer.styles = [styles$o()];
|
|
6363
6368
|
Drawer.define();
|
|
6364
6369
|
|
|
6365
6370
|
const DRAWER_SIZES = ['small', 'medium', 'large'];
|
|
@@ -6406,7 +6411,7 @@ class DrawerActionTertiary extends Button {
|
|
|
6406
6411
|
}
|
|
6407
6412
|
DrawerActionTertiary.define();
|
|
6408
6413
|
|
|
6409
|
-
function styles$
|
|
6414
|
+
function styles$n() {
|
|
6410
6415
|
return i$9 `
|
|
6411
6416
|
:host {
|
|
6412
6417
|
margin-top: auto;
|
|
@@ -6436,10 +6441,10 @@ class DrawerActions extends Group {
|
|
|
6436
6441
|
this.setAttribute('slot', 'actions');
|
|
6437
6442
|
}
|
|
6438
6443
|
}
|
|
6439
|
-
DrawerActions.styles = [...Group.styles, styles$
|
|
6444
|
+
DrawerActions.styles = [...Group.styles, styles$n()];
|
|
6440
6445
|
DrawerActions.define();
|
|
6441
6446
|
|
|
6442
|
-
function styles$
|
|
6447
|
+
function styles$m() {
|
|
6443
6448
|
return i$9 `
|
|
6444
6449
|
:host {
|
|
6445
6450
|
overflow-y: auto;
|
|
@@ -6464,7 +6469,7 @@ class DrawerBody extends Component {
|
|
|
6464
6469
|
return x `<slot></slot>`;
|
|
6465
6470
|
}
|
|
6466
6471
|
}
|
|
6467
|
-
DrawerBody.styles = [styles$
|
|
6472
|
+
DrawerBody.styles = [styles$m()];
|
|
6468
6473
|
DrawerBody.define();
|
|
6469
6474
|
|
|
6470
6475
|
class DrawerClose extends CloseButton {
|
|
@@ -6485,7 +6490,7 @@ class DrawerClose extends CloseButton {
|
|
|
6485
6490
|
}
|
|
6486
6491
|
DrawerClose.define();
|
|
6487
6492
|
|
|
6488
|
-
function styles$
|
|
6493
|
+
function styles$l() {
|
|
6489
6494
|
return i$9 `
|
|
6490
6495
|
:host {
|
|
6491
6496
|
${typography('heading-md-bold')};
|
|
@@ -6538,7 +6543,7 @@ class DrawerHeader extends Component {
|
|
|
6538
6543
|
`;
|
|
6539
6544
|
}
|
|
6540
6545
|
}
|
|
6541
|
-
DrawerHeader.styles = [styles$
|
|
6546
|
+
DrawerHeader.styles = [styles$l()];
|
|
6542
6547
|
DrawerHeader.define();
|
|
6543
6548
|
|
|
6544
6549
|
/**
|
|
@@ -7165,90 +7170,6 @@ const hide$1 = function (options) {
|
|
|
7165
7170
|
};
|
|
7166
7171
|
};
|
|
7167
7172
|
|
|
7168
|
-
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
7169
|
-
// Derivable.
|
|
7170
|
-
|
|
7171
|
-
async function convertValueToCoords(state, options) {
|
|
7172
|
-
const {
|
|
7173
|
-
placement,
|
|
7174
|
-
platform,
|
|
7175
|
-
elements
|
|
7176
|
-
} = state;
|
|
7177
|
-
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
7178
|
-
const side = getSide(placement);
|
|
7179
|
-
const alignment = getAlignment(placement);
|
|
7180
|
-
const isVertical = getSideAxis(placement) === 'y';
|
|
7181
|
-
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
7182
|
-
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
7183
|
-
const rawValue = evaluate(options, state);
|
|
7184
|
-
|
|
7185
|
-
// eslint-disable-next-line prefer-const
|
|
7186
|
-
let {
|
|
7187
|
-
mainAxis,
|
|
7188
|
-
crossAxis,
|
|
7189
|
-
alignmentAxis
|
|
7190
|
-
} = typeof rawValue === 'number' ? {
|
|
7191
|
-
mainAxis: rawValue,
|
|
7192
|
-
crossAxis: 0,
|
|
7193
|
-
alignmentAxis: null
|
|
7194
|
-
} : {
|
|
7195
|
-
mainAxis: rawValue.mainAxis || 0,
|
|
7196
|
-
crossAxis: rawValue.crossAxis || 0,
|
|
7197
|
-
alignmentAxis: rawValue.alignmentAxis
|
|
7198
|
-
};
|
|
7199
|
-
if (alignment && typeof alignmentAxis === 'number') {
|
|
7200
|
-
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
7201
|
-
}
|
|
7202
|
-
return isVertical ? {
|
|
7203
|
-
x: crossAxis * crossAxisMulti,
|
|
7204
|
-
y: mainAxis * mainAxisMulti
|
|
7205
|
-
} : {
|
|
7206
|
-
x: mainAxis * mainAxisMulti,
|
|
7207
|
-
y: crossAxis * crossAxisMulti
|
|
7208
|
-
};
|
|
7209
|
-
}
|
|
7210
|
-
|
|
7211
|
-
/**
|
|
7212
|
-
* Modifies the placement by translating the floating element along the
|
|
7213
|
-
* specified axes.
|
|
7214
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
7215
|
-
* object may be passed.
|
|
7216
|
-
* @see https://floating-ui.com/docs/offset
|
|
7217
|
-
*/
|
|
7218
|
-
const offset$1 = function (options) {
|
|
7219
|
-
if (options === void 0) {
|
|
7220
|
-
options = 0;
|
|
7221
|
-
}
|
|
7222
|
-
return {
|
|
7223
|
-
name: 'offset',
|
|
7224
|
-
options,
|
|
7225
|
-
async fn(state) {
|
|
7226
|
-
var _middlewareData$offse, _middlewareData$arrow;
|
|
7227
|
-
const {
|
|
7228
|
-
x,
|
|
7229
|
-
y,
|
|
7230
|
-
placement,
|
|
7231
|
-
middlewareData
|
|
7232
|
-
} = state;
|
|
7233
|
-
const diffCoords = await convertValueToCoords(state, options);
|
|
7234
|
-
|
|
7235
|
-
// If the placement is the same and the arrow caused an alignment offset
|
|
7236
|
-
// then we don't need to change the positioning coordinates.
|
|
7237
|
-
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
7238
|
-
return {};
|
|
7239
|
-
}
|
|
7240
|
-
return {
|
|
7241
|
-
x: x + diffCoords.x,
|
|
7242
|
-
y: y + diffCoords.y,
|
|
7243
|
-
data: {
|
|
7244
|
-
...diffCoords,
|
|
7245
|
-
placement
|
|
7246
|
-
}
|
|
7247
|
-
};
|
|
7248
|
-
}
|
|
7249
|
-
};
|
|
7250
|
-
};
|
|
7251
|
-
|
|
7252
7173
|
/**
|
|
7253
7174
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
7254
7175
|
* keep it in view when it will overflow the clipping boundary.
|
|
@@ -8127,15 +8048,6 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8127
8048
|
};
|
|
8128
8049
|
}
|
|
8129
8050
|
|
|
8130
|
-
/**
|
|
8131
|
-
* Modifies the placement by translating the floating element along the
|
|
8132
|
-
* specified axes.
|
|
8133
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
8134
|
-
* object may be passed.
|
|
8135
|
-
* @see https://floating-ui.com/docs/offset
|
|
8136
|
-
*/
|
|
8137
|
-
const offset = offset$1;
|
|
8138
|
-
|
|
8139
8051
|
/**
|
|
8140
8052
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
8141
8053
|
* keep it in view when it will overflow the clipping boundary.
|
|
@@ -8272,7 +8184,7 @@ const POPOVER_PLACEMENT_VALUES = [
|
|
|
8272
8184
|
'bottom-start',
|
|
8273
8185
|
'bottom-end',
|
|
8274
8186
|
];
|
|
8275
|
-
const logger$
|
|
8187
|
+
const logger$c = createLogger('popover');
|
|
8276
8188
|
class Popover extends Component {
|
|
8277
8189
|
static get properties() {
|
|
8278
8190
|
return {
|
|
@@ -8286,12 +8198,16 @@ class Popover extends Component {
|
|
|
8286
8198
|
super();
|
|
8287
8199
|
_Popover_updateCleanup.set(this, void 0);
|
|
8288
8200
|
// eslint-disable-next-line class-methods-use-this
|
|
8201
|
+
this.getFloatingOffset = () => {
|
|
8202
|
+
return 10;
|
|
8203
|
+
};
|
|
8204
|
+
// eslint-disable-next-line class-methods-use-this
|
|
8289
8205
|
this.renderArrow = () => {
|
|
8290
8206
|
return x `<span id="arrow"></span>`;
|
|
8291
8207
|
};
|
|
8292
8208
|
this.reposition = async (reason) => {
|
|
8293
8209
|
if (this.floating == null || this.reference == null) {
|
|
8294
|
-
logger$
|
|
8210
|
+
logger$c.warn('[popover]', 'both floating and reference elements should be available', { reference: this.reference, floating: this.floating });
|
|
8295
8211
|
return;
|
|
8296
8212
|
}
|
|
8297
8213
|
const { x, y, placement, middlewareData } = await computePosition(this.reference, this.floating, {
|
|
@@ -8305,7 +8221,6 @@ class Popover extends Component {
|
|
|
8305
8221
|
},
|
|
8306
8222
|
},
|
|
8307
8223
|
middleware: [
|
|
8308
|
-
offset(this.getFloatingOffset()),
|
|
8309
8224
|
// to prevent the floating element from overflowing on the main axis of its placement
|
|
8310
8225
|
flip(),
|
|
8311
8226
|
// preventing overflow while maintaining the desired placement as best as possible.
|
|
@@ -8328,22 +8243,21 @@ class Popover extends Component {
|
|
|
8328
8243
|
}
|
|
8329
8244
|
const [side] = placement.split('-');
|
|
8330
8245
|
const hasArrow = this.arrow != null;
|
|
8331
|
-
const floatingOffset = this.getFloatingOffset();
|
|
8332
8246
|
const mainSideIncrement = {
|
|
8333
8247
|
top: {
|
|
8334
8248
|
x: '0px',
|
|
8335
|
-
y: getPositionOffset(hasArrow, 'top',
|
|
8249
|
+
y: getPositionOffset(hasArrow, 'top', this.getFloatingOffset()),
|
|
8336
8250
|
},
|
|
8337
8251
|
bottom: {
|
|
8338
8252
|
x: '0px',
|
|
8339
|
-
y: getPositionOffset(hasArrow, 'bottom',
|
|
8253
|
+
y: getPositionOffset(hasArrow, 'bottom', this.getFloatingOffset()),
|
|
8340
8254
|
},
|
|
8341
8255
|
right: {
|
|
8342
|
-
x: getPositionOffset(hasArrow, 'right',
|
|
8256
|
+
x: getPositionOffset(hasArrow, 'right', this.getFloatingOffset()),
|
|
8343
8257
|
y: '0px',
|
|
8344
8258
|
},
|
|
8345
8259
|
left: {
|
|
8346
|
-
x: getPositionOffset(hasArrow, 'left',
|
|
8260
|
+
x: getPositionOffset(hasArrow, 'left', this.getFloatingOffset()),
|
|
8347
8261
|
y: '0px',
|
|
8348
8262
|
},
|
|
8349
8263
|
};
|
|
@@ -8391,8 +8305,7 @@ class Popover extends Component {
|
|
|
8391
8305
|
super.disconnectedCallback();
|
|
8392
8306
|
__classPrivateFieldGet$1(this, _Popover_updateCleanup, "f")?.call(this);
|
|
8393
8307
|
}
|
|
8394
|
-
firstUpdated(
|
|
8395
|
-
super.firstUpdated(changedProperties);
|
|
8308
|
+
firstUpdated() {
|
|
8396
8309
|
if (this.asPopover && supportsPopover() && this.floating) {
|
|
8397
8310
|
/**
|
|
8398
8311
|
* setting this attribute to manual means the popover must always be explicitly hidden
|
|
@@ -8424,13 +8337,6 @@ class Popover extends Component {
|
|
|
8424
8337
|
getArrowElement() {
|
|
8425
8338
|
throw new Error('Method not implemented.');
|
|
8426
8339
|
}
|
|
8427
|
-
// eslint-disable-next-line class-methods-use-this
|
|
8428
|
-
getFloatingOffset() {
|
|
8429
|
-
return {
|
|
8430
|
-
mainAxis: 4,
|
|
8431
|
-
crossAxis: 0,
|
|
8432
|
-
};
|
|
8433
|
-
}
|
|
8434
8340
|
get reference() {
|
|
8435
8341
|
return this.getReferenceElement();
|
|
8436
8342
|
}
|
|
@@ -8448,11 +8354,7 @@ class Popover extends Component {
|
|
|
8448
8354
|
if (!this.reference || !this.floating) {
|
|
8449
8355
|
return;
|
|
8450
8356
|
}
|
|
8451
|
-
|
|
8452
|
-
* Add the isConnected check to prevent us from attempting to show
|
|
8453
|
-
* the popover when the component is not connected to the DOM.
|
|
8454
|
-
*/
|
|
8455
|
-
if (isPopover(this.floating) && this.floating.isConnected) {
|
|
8357
|
+
if (isPopover(this.floating)) {
|
|
8456
8358
|
this.floating.showPopover();
|
|
8457
8359
|
}
|
|
8458
8360
|
this.reposition('auto');
|
|
@@ -8465,9 +8367,7 @@ class Popover extends Component {
|
|
|
8465
8367
|
return;
|
|
8466
8368
|
}
|
|
8467
8369
|
this.open = false;
|
|
8468
|
-
if (this.floating != null &&
|
|
8469
|
-
isPopover(this.floating) &&
|
|
8470
|
-
this.floating.isConnected) {
|
|
8370
|
+
if (this.floating != null && isPopover(this.floating)) {
|
|
8471
8371
|
this.floating.hidePopover();
|
|
8472
8372
|
}
|
|
8473
8373
|
__classPrivateFieldGet$1(this, _Popover_updateCleanup, "f")?.call(this);
|
|
@@ -8484,70 +8384,99 @@ class Popover extends Component {
|
|
|
8484
8384
|
_Popover_updateCleanup = new WeakMap(), _Popover_getArrowPosition = new WeakMap();
|
|
8485
8385
|
|
|
8486
8386
|
const DEFAULT_SELECTORS = {
|
|
8387
|
+
referenceSelector: "slot[name='reference']::slotted(*),",
|
|
8487
8388
|
floatingSelector: "slot[name='floating']::slotted(*)",
|
|
8488
|
-
arrowSelector: '#arrow',
|
|
8489
8389
|
};
|
|
8490
|
-
function
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8390
|
+
function styles$k(selectors = DEFAULT_SELECTORS) {
|
|
8391
|
+
const { referenceSelector, floatingSelector } = {
|
|
8392
|
+
...DEFAULT_SELECTORS,
|
|
8393
|
+
...selectors,
|
|
8394
|
+
};
|
|
8395
|
+
return [
|
|
8396
|
+
i$9 `
|
|
8397
|
+
:host {
|
|
8398
|
+
--m-popover-background-color: ${getColor('color-background-secondary-inverted')};
|
|
8399
|
+
--m-popover-border-radius: ${getToken$1('border-radius-m')};
|
|
8400
|
+
--m-popover-border-width: 0;
|
|
8401
|
+
--m-popover-border-style: none;
|
|
8402
|
+
--m-popover-overflow-x: hidden;
|
|
8403
|
+
--m-popover-overflow-y: visible;
|
|
8404
|
+
--m-popover-border-color: transparent;
|
|
8405
|
+
--m-popover-color: ${getColor('color-text-inverted')};
|
|
8406
|
+
--m-popover-elevation: ${getToken$1('elevation-2')};
|
|
8407
|
+
--m-popover-width: initial;
|
|
8408
|
+
--m-popover-min-width: initial;
|
|
8409
|
+
--m-popover-max-width: initial;
|
|
8410
|
+
--m-popover-z-index: 10;
|
|
8411
|
+
--m-popover-floating-spacing-x: ${getToken$1('spacing-4')};
|
|
8412
|
+
--m-popover-floating-spacing-y: ${getToken$1('spacing-2')};
|
|
8413
|
+
--m-popover-floating-display: none;
|
|
8414
|
+
--m-popover-floating-position: fixed;
|
|
8415
|
+
|
|
8416
|
+
--m-popover-arrow-size: 12px;
|
|
8417
|
+
--m-popover-arrow-offset: calc(-1 * (var(--m-popover-arrow-size) / 2));
|
|
8498
8418
|
|
|
8499
|
-
|
|
8500
|
-
|
|
8419
|
+
position: relative;
|
|
8420
|
+
}
|
|
8501
8421
|
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8422
|
+
${r$8(referenceSelector)} {
|
|
8423
|
+
display: inline-flex;
|
|
8424
|
+
}
|
|
8505
8425
|
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
`;
|
|
8510
|
-
}
|
|
8511
|
-
function popoverFloatingStyles(options) {
|
|
8512
|
-
const { floatingSelector } = {
|
|
8513
|
-
floatingSelector: DEFAULT_SELECTORS.floatingSelector,
|
|
8514
|
-
...options,
|
|
8515
|
-
};
|
|
8516
|
-
return i$9 `
|
|
8517
|
-
${r$8(floatingSelector)} {
|
|
8518
|
-
position: var(--m-popover-floating-position);
|
|
8426
|
+
${r$8(floatingSelector)} {
|
|
8427
|
+
${transition([{ property: 'box-shadow' }])};
|
|
8428
|
+
${typography('body-md')};
|
|
8519
8429
|
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
`;
|
|
8524
|
-
}
|
|
8525
|
-
function popoverArrowStyles(options) {
|
|
8526
|
-
const { arrowSelector } = {
|
|
8527
|
-
arrowSelector: DEFAULT_SELECTORS.arrowSelector,
|
|
8528
|
-
...options,
|
|
8529
|
-
};
|
|
8530
|
-
return i$9 `
|
|
8531
|
-
${r$8(arrowSelector)} {
|
|
8532
|
-
position: absolute;
|
|
8533
|
-
inline-size: var(--m-popover-arrow-size);
|
|
8534
|
-
block-size: var(--m-popover-arrow-size);
|
|
8535
|
-
background-color: inherit;
|
|
8536
|
-
transform: rotate(45deg);
|
|
8430
|
+
padding-inline: var(--m-popover-floating-spacing-x);
|
|
8431
|
+
padding-block: var(--m-popover-floating-spacing-y);
|
|
8432
|
+
margin: 0;
|
|
8537
8433
|
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8434
|
+
position: var(--m-popover-floating-position);
|
|
8435
|
+
display: var(--m-popover-floating-display);
|
|
8436
|
+
|
|
8437
|
+
box-sizing: border-box;
|
|
8438
|
+
inline-size: var(--m-popover-width);
|
|
8439
|
+
min-inline-size: var(--m-popover-min-width);
|
|
8440
|
+
max-inline-size: var(--m-popover-max-width);
|
|
8441
|
+
|
|
8442
|
+
overflow-x: var(--m-popover-overflow-x);
|
|
8443
|
+
overflow-y: var(--m-popover-overflow-y);
|
|
8444
|
+
|
|
8445
|
+
border-width: var(--m-popover-border-width);
|
|
8446
|
+
border-style: var(--m-popover-border-style);
|
|
8447
|
+
border-color: var(--m-popover-border-color);
|
|
8448
|
+
border-radius: var(--m-popover-border-radius);
|
|
8449
|
+
|
|
8450
|
+
background-color: var(--m-popover-background-color);
|
|
8451
|
+
color: var(--m-popover-color);
|
|
8452
|
+
|
|
8453
|
+
box-shadow: var(--m-popover-elevation);
|
|
8454
|
+
z-index: var(--m-popover-z-index);
|
|
8455
|
+
}
|
|
8456
|
+
|
|
8457
|
+
:host([position='absolute']) {
|
|
8458
|
+
--m-popover-floating-position: absolute;
|
|
8459
|
+
}
|
|
8460
|
+
|
|
8461
|
+
:host([position='fixed']) {
|
|
8462
|
+
--m-popover-floating-position: fixed;
|
|
8463
|
+
}
|
|
8464
|
+
|
|
8465
|
+
:host([open]) {
|
|
8466
|
+
--m-popover-floating-display: inline-block;
|
|
8467
|
+
}
|
|
8468
|
+
|
|
8469
|
+
#arrow {
|
|
8470
|
+
display: var(--m-popover-floating-display);
|
|
8471
|
+
position: absolute;
|
|
8472
|
+
inline-size: var(--m-popover-arrow-size);
|
|
8473
|
+
block-size: var(--m-popover-arrow-size);
|
|
8474
|
+
background-color: var(--m-popover-background-color);
|
|
8475
|
+
transform: rotate(45deg);
|
|
8476
|
+
|
|
8477
|
+
pointer-events: none;
|
|
8478
|
+
}
|
|
8479
|
+
`,
|
|
8551
8480
|
];
|
|
8552
8481
|
}
|
|
8553
8482
|
|
|
@@ -8682,160 +8611,23 @@ _BoundaryController_handleEvent = new WeakMap(), _BoundaryController_handleBlurE
|
|
|
8682
8611
|
window.removeEventListener('blur', __classPrivateFieldGet$1(this, _BoundaryController_handleBlurEvent, "f"), true);
|
|
8683
8612
|
};
|
|
8684
8613
|
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
this.options = options;
|
|
8693
|
-
this.wasExpanded = false;
|
|
8694
|
-
this.isInitialized = false;
|
|
8695
|
-
logger$d.info(`expandable controller initialized (${this.host.id || 'no id'})`);
|
|
8696
|
-
host.addController(this);
|
|
8697
|
-
}
|
|
8698
|
-
hostUpdated() {
|
|
8699
|
-
const expandable = this.options.getExpandableElement(this.host);
|
|
8700
|
-
if (!expandable)
|
|
8701
|
-
return;
|
|
8702
|
-
if (!this.isInitialized) {
|
|
8703
|
-
this.isInitialized = true;
|
|
8704
|
-
this.wasExpanded = this.options.isExpanded(this.host);
|
|
8705
|
-
if (!this.wasExpanded) {
|
|
8706
|
-
expandable.style.display = 'none';
|
|
8707
|
-
}
|
|
8708
|
-
return;
|
|
8709
|
-
}
|
|
8710
|
-
const isExpanded = this.options.isExpanded(this.host);
|
|
8711
|
-
if (isExpanded !== this.wasExpanded) {
|
|
8712
|
-
this.wasExpanded = isExpanded;
|
|
8713
|
-
this.updateExpandableState(expandable, isExpanded);
|
|
8714
|
-
}
|
|
8715
|
-
}
|
|
8716
|
-
async updateExpandableState(expandable, isExpanded) {
|
|
8717
|
-
if (isExpanded) {
|
|
8718
|
-
expandable.style.setProperty('overflow', 'hidden');
|
|
8719
|
-
expandable.style.removeProperty('display');
|
|
8720
|
-
this.host.classList.add('is-showing');
|
|
8721
|
-
await waitForAnimations(expandable);
|
|
8722
|
-
this.host.classList.remove('is-showing');
|
|
8723
|
-
expandable.style.removeProperty('overflow');
|
|
8724
|
-
}
|
|
8725
|
-
else {
|
|
8726
|
-
expandable.style.setProperty('overflow', 'hidden');
|
|
8727
|
-
this.host.classList.add('is-hiding');
|
|
8728
|
-
await waitForAnimations(expandable);
|
|
8729
|
-
expandable.style.setProperty('display', 'none');
|
|
8730
|
-
this.host.classList.remove('is-hiding');
|
|
8731
|
-
expandable.style.removeProperty('overflow');
|
|
8732
|
-
}
|
|
8733
|
-
}
|
|
8734
|
-
hostDisconnected() {
|
|
8735
|
-
this.isInitialized = false;
|
|
8736
|
-
}
|
|
8737
|
-
}
|
|
8738
|
-
|
|
8739
|
-
function expandableHostStyles() {
|
|
8740
|
-
return i$9 `
|
|
8741
|
-
:host {
|
|
8742
|
-
--expandable-animation: none;
|
|
8743
|
-
}
|
|
8744
|
-
|
|
8745
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
8746
|
-
:host(.is-showing) {
|
|
8747
|
-
--expandable-animation: show-expandable 0.2s ease forwards;
|
|
8748
|
-
}
|
|
8749
|
-
|
|
8750
|
-
:host(.is-hiding) {
|
|
8751
|
-
--expandable-animation: hide-expandable 0.25s ease forwards;
|
|
8752
|
-
}
|
|
8753
|
-
}
|
|
8754
|
-
`;
|
|
8755
|
-
}
|
|
8756
|
-
function expandableElementStyles(options) {
|
|
8757
|
-
const { expandableSelector, animate } = {
|
|
8758
|
-
expandableSelector: ':host',
|
|
8759
|
-
...options,
|
|
8760
|
-
};
|
|
8761
|
-
const { opacity: animateOpacity, blur: animateBlur, transform: animateTransform, height: animateHeight, } = {
|
|
8762
|
-
opacity: true,
|
|
8763
|
-
blur: true,
|
|
8764
|
-
transform: true,
|
|
8765
|
-
height: false,
|
|
8766
|
-
...animate,
|
|
8767
|
-
};
|
|
8768
|
-
return i$9 `
|
|
8769
|
-
${r$8(expandableSelector)} {
|
|
8770
|
-
overflow: hidden;
|
|
8771
|
-
|
|
8772
|
-
${r$8(animateHeight ? 'interpolate-size: allow-keywords;' : '')};
|
|
8773
|
-
}
|
|
8774
|
-
|
|
8775
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
8776
|
-
${r$8(expandableSelector)} {
|
|
8777
|
-
animation: var(--expandable-animation, none);
|
|
8778
|
-
}
|
|
8779
|
-
}
|
|
8780
|
-
|
|
8781
|
-
@keyframes show-expandable {
|
|
8782
|
-
from {
|
|
8783
|
-
${r$8(animateOpacity ? 'opacity: 0;' : '')};
|
|
8784
|
-
${r$8(animateTransform ? 'transform: translateY(-12px);' : '')};
|
|
8785
|
-
${r$8(animateBlur ? 'filter: blur(4px);' : '')};
|
|
8786
|
-
${r$8(animateHeight ? 'height: 0;' : '')};
|
|
8787
|
-
}
|
|
8788
|
-
|
|
8789
|
-
to {
|
|
8790
|
-
${r$8(animateOpacity ? 'opacity: 1;' : '')};
|
|
8791
|
-
${r$8(animateTransform ? 'transform: translateY(0);' : '')};
|
|
8792
|
-
${r$8(animateBlur ? 'filter: blur(0);' : '')};
|
|
8793
|
-
}
|
|
8794
|
-
}
|
|
8795
|
-
|
|
8796
|
-
@keyframes hide-expandable {
|
|
8797
|
-
from {
|
|
8798
|
-
${r$8(animateOpacity ? 'opacity: 1;' : '')};
|
|
8799
|
-
${r$8(animateTransform ? 'transform: translateY(0);' : '')};
|
|
8800
|
-
${r$8(animateBlur ? 'filter: blur(0);' : '')};
|
|
8801
|
-
}
|
|
8802
|
-
|
|
8803
|
-
to {
|
|
8804
|
-
${r$8(animateOpacity ? 'opacity: 0;' : '')};
|
|
8805
|
-
${r$8(animateTransform ? 'transform: translateY(-12px);' : '')};
|
|
8806
|
-
${r$8(animateBlur ? 'filter: blur(4px);' : '')};
|
|
8807
|
-
${r$8(animateHeight ? 'height: 0;' : '')};
|
|
8808
|
-
}
|
|
8809
|
-
}
|
|
8810
|
-
`;
|
|
8811
|
-
}
|
|
8812
|
-
function expandableStyles(options) {
|
|
8813
|
-
return [expandableHostStyles(), expandableElementStyles(options)];
|
|
8614
|
+
var _FocusManagerController_instances, _FocusManagerController_focusElement, _FocusManagerController_focusIndex, _FocusManagerController_focusPosition, _FocusManagerController_getIndexOfQueried, _FocusManagerController_findQueriedById, _FocusManagerController_handleKeyPress, _FocusManagerController_clearBufferAfterDelay, _FocusManagerController_findMatchInRange;
|
|
8615
|
+
const logger$b = createLogger('focus-manager-controller');
|
|
8616
|
+
function isDisabled(element) {
|
|
8617
|
+
return (element != null &&
|
|
8618
|
+
typeof element === 'object' &&
|
|
8619
|
+
'disabled' in element &&
|
|
8620
|
+
element.disabled === true);
|
|
8814
8621
|
}
|
|
8815
|
-
|
|
8816
8622
|
/**
|
|
8817
8623
|
* Check if `keyboardEventKey` is a character, and more specifically, anything
|
|
8818
8624
|
* other than a space, tab, or newline.
|
|
8819
|
-
* Based on https://www.w3.org/WAI/content-assets/wai-aria-practices/patterns/combobox/examples/js/combobox-autocomplete.js
|
|
8820
8625
|
*/
|
|
8821
8626
|
function isPrintableCharacter(keyboardEventKey) {
|
|
8822
8627
|
const printableCharacterRegex = /\S/;
|
|
8823
8628
|
return (keyboardEventKey.length === 1 &&
|
|
8824
8629
|
printableCharacterRegex.test(keyboardEventKey));
|
|
8825
8630
|
}
|
|
8826
|
-
|
|
8827
|
-
var _FocusManagerController_instances, _FocusManagerController_focusIndex, _FocusManagerController_focusId, _FocusManagerController_focusPosition, _FocusManagerController_getIndexOfQueried, _FocusManagerController_findQueriedById, _FocusManagerController_handleKeyUp, _FocusManagerController_clearBufferAfterDelay, _FocusManagerController_findMatchInRange;
|
|
8828
|
-
const logger$c = createLogger('focus-manager-controller');
|
|
8829
|
-
const POSITIONAL_FOCUS = ['first', 'last', 'previous', 'next'];
|
|
8830
|
-
function isDisabled(element) {
|
|
8831
|
-
return (element != null &&
|
|
8832
|
-
typeof element === 'object' &&
|
|
8833
|
-
'disabled' in element &&
|
|
8834
|
-
element.disabled === true);
|
|
8835
|
-
}
|
|
8836
|
-
function isPositionalFocus(value) {
|
|
8837
|
-
return POSITIONAL_FOCUS.includes(value);
|
|
8838
|
-
}
|
|
8839
8631
|
/**
|
|
8840
8632
|
* Manages **virtual/visual** focus, for a11y purposes.
|
|
8841
8633
|
*/
|
|
@@ -8843,64 +8635,50 @@ class FocusManagerController {
|
|
|
8843
8635
|
constructor(host, options) {
|
|
8844
8636
|
_FocusManagerController_instances.add(this);
|
|
8845
8637
|
this.activeDescendant = null;
|
|
8846
|
-
|
|
8847
|
-
* Internal method to apply focus state to an element.
|
|
8848
|
-
* Base implementation sets aria-activedescendant and visual styles.
|
|
8849
|
-
* Subclasses can override this to implement different focus mechanisms (e.g., roving tabindex).
|
|
8850
|
-
*/
|
|
8851
|
-
this.focusElement = (element, options) => {
|
|
8638
|
+
_FocusManagerController_focusElement.set(this, (element) => {
|
|
8852
8639
|
if (!element || isDisabled(element) || !element.id) {
|
|
8853
|
-
logger$
|
|
8640
|
+
logger$b.debug('could not focus element', element, !element?.id ? ' element has no id' : '');
|
|
8854
8641
|
return;
|
|
8855
8642
|
}
|
|
8856
|
-
this.clear(
|
|
8857
|
-
onBlur: options?.onBlur,
|
|
8858
|
-
});
|
|
8643
|
+
this.clear();
|
|
8859
8644
|
this.activeDescendant = element.id;
|
|
8860
8645
|
this.getInteractiveElement(this.host).setAttribute('aria-activedescendant', element.id);
|
|
8861
8646
|
element.classList.add('is-focused');
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
behavior: 'smooth',
|
|
8868
|
-
});
|
|
8869
|
-
options?.onFocus?.(element);
|
|
8870
|
-
}, 150);
|
|
8871
|
-
};
|
|
8872
|
-
_FocusManagerController_focusIndex.set(this, (index, options) => {
|
|
8873
|
-
this.focusElement(this.queried.at(index), options);
|
|
8647
|
+
element.scrollIntoView({
|
|
8648
|
+
block: 'nearest',
|
|
8649
|
+
inline: 'nearest',
|
|
8650
|
+
behavior: 'smooth',
|
|
8651
|
+
});
|
|
8874
8652
|
});
|
|
8875
|
-
|
|
8876
|
-
|
|
8653
|
+
_FocusManagerController_focusIndex.set(this, (index) => {
|
|
8654
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusElement, "f").call(this, this.queried.at(index));
|
|
8877
8655
|
});
|
|
8878
|
-
_FocusManagerController_focusPosition.set(this, (position
|
|
8656
|
+
_FocusManagerController_focusPosition.set(this, (position) => {
|
|
8879
8657
|
const currentFocusedIndex = __classPrivateFieldGet$1(this, _FocusManagerController_instances, "m", _FocusManagerController_getIndexOfQueried).call(this, this.focused);
|
|
8880
8658
|
switch (position) {
|
|
8881
8659
|
case 'first':
|
|
8882
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, 0
|
|
8660
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, 0);
|
|
8883
8661
|
break;
|
|
8884
8662
|
case 'last':
|
|
8885
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, this.queried.length - 1
|
|
8663
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, this.queried.length - 1);
|
|
8886
8664
|
break;
|
|
8887
8665
|
case 'previous': {
|
|
8888
8666
|
if (currentFocusedIndex === -1) {
|
|
8889
|
-
logger$
|
|
8890
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, currentFocusedIndex
|
|
8667
|
+
logger$b.debug('focus previous, could not get current focused; focusing on last queried instead');
|
|
8668
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, currentFocusedIndex);
|
|
8891
8669
|
return;
|
|
8892
8670
|
}
|
|
8893
8671
|
// it's ok to have a negative index here. `Array.prototype.at()` will handle that correctly.
|
|
8894
8672
|
const previousItemIndex = (currentFocusedIndex - 1) % this.queried.length;
|
|
8895
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, previousItemIndex
|
|
8673
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, previousItemIndex);
|
|
8896
8674
|
break;
|
|
8897
8675
|
}
|
|
8898
8676
|
case 'next': {
|
|
8899
8677
|
if (currentFocusedIndex === -1) {
|
|
8900
|
-
logger$
|
|
8678
|
+
logger$b.debug('focus next, could not get current focused. focusing on first queried instead');
|
|
8901
8679
|
}
|
|
8902
8680
|
const nextItemIndex = (currentFocusedIndex + 1) % this.queried.length;
|
|
8903
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, nextItemIndex
|
|
8681
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, nextItemIndex);
|
|
8904
8682
|
break;
|
|
8905
8683
|
}
|
|
8906
8684
|
}
|
|
@@ -8909,7 +8687,7 @@ class FocusManagerController {
|
|
|
8909
8687
|
* Moves focus to the next item with a label that starts with the typed character
|
|
8910
8688
|
* if such item exists. Otherwise, focus does not move.
|
|
8911
8689
|
*/
|
|
8912
|
-
|
|
8690
|
+
_FocusManagerController_handleKeyPress.set(this, (event) => {
|
|
8913
8691
|
const { key } = event;
|
|
8914
8692
|
if (!isPrintableCharacter(key)) {
|
|
8915
8693
|
return;
|
|
@@ -8967,13 +8745,13 @@ class FocusManagerController {
|
|
|
8967
8745
|
}
|
|
8968
8746
|
hostConnected() {
|
|
8969
8747
|
if (!this.focusOnType) {
|
|
8970
|
-
logger$
|
|
8748
|
+
logger$b.debug('focus on type is disabled. Controller will not listen to keyup events');
|
|
8971
8749
|
return;
|
|
8972
8750
|
}
|
|
8973
|
-
this.host.addEventListener('keyup', __classPrivateFieldGet$1(this,
|
|
8751
|
+
this.host.addEventListener('keyup', __classPrivateFieldGet$1(this, _FocusManagerController_handleKeyPress, "f"));
|
|
8974
8752
|
}
|
|
8975
8753
|
hostDisconnected() {
|
|
8976
|
-
this.host.removeEventListener('keyup', __classPrivateFieldGet$1(this,
|
|
8754
|
+
this.host.removeEventListener('keyup', __classPrivateFieldGet$1(this, _FocusManagerController_handleKeyPress, "f"));
|
|
8977
8755
|
}
|
|
8978
8756
|
/**
|
|
8979
8757
|
* Get the list of elements matching the given `options.query`.
|
|
@@ -8993,66 +8771,53 @@ class FocusManagerController {
|
|
|
8993
8771
|
}
|
|
8994
8772
|
return __classPrivateFieldGet$1(this, _FocusManagerController_instances, "m", _FocusManagerController_findQueriedById).call(this, this.activeDescendant);
|
|
8995
8773
|
}
|
|
8996
|
-
get focusedIndex() {
|
|
8997
|
-
if (!this.activeDescendant) {
|
|
8998
|
-
return null;
|
|
8999
|
-
}
|
|
9000
|
-
const index = __classPrivateFieldGet$1(this, _FocusManagerController_instances, "m", _FocusManagerController_getIndexOfQueried).call(this, this.focused);
|
|
9001
|
-
if (index === -1) {
|
|
9002
|
-
return null;
|
|
9003
|
-
}
|
|
9004
|
-
return index;
|
|
9005
|
-
}
|
|
9006
8774
|
/**
|
|
9007
8775
|
* If none of the options are selected, the first option receives focus; otherwise, the
|
|
9008
8776
|
* focus moves to the next option.
|
|
9009
8777
|
* If we are at the end of the `queried` array, the focus moves to the first option.
|
|
9010
8778
|
*/
|
|
9011
|
-
focusNext(
|
|
9012
|
-
this.focus('next'
|
|
8779
|
+
focusNext() {
|
|
8780
|
+
this.focus('next');
|
|
9013
8781
|
}
|
|
9014
8782
|
/**
|
|
9015
8783
|
* If none of the options are selected, the last option receives focus; otherwise, the
|
|
9016
8784
|
* focus moves to the next option.
|
|
9017
8785
|
* If we are at the start of the `queried` array, the focus moves to the last option.
|
|
9018
8786
|
*/
|
|
9019
|
-
focusPrevious(
|
|
9020
|
-
this.focus('previous'
|
|
8787
|
+
focusPrevious() {
|
|
8788
|
+
this.focus('previous');
|
|
9021
8789
|
}
|
|
9022
8790
|
/**
|
|
9023
8791
|
* Focus the first element in `queried`.
|
|
9024
8792
|
*/
|
|
9025
|
-
focusFirst(
|
|
9026
|
-
this.focus(0
|
|
8793
|
+
focusFirst() {
|
|
8794
|
+
this.focus(0);
|
|
9027
8795
|
}
|
|
9028
8796
|
/**
|
|
9029
8797
|
* Focus the last element in `queried`.
|
|
9030
8798
|
*/
|
|
9031
|
-
focusLast(
|
|
9032
|
-
this.focus(this.queried.length - 1
|
|
8799
|
+
focusLast() {
|
|
8800
|
+
this.focus(this.queried.length - 1);
|
|
9033
8801
|
}
|
|
9034
8802
|
/**
|
|
9035
8803
|
* Focus the given element or the element at the given index or position, based on `queried`.
|
|
9036
8804
|
*/
|
|
9037
|
-
focus(where
|
|
8805
|
+
focus(where) {
|
|
9038
8806
|
if (typeof where === 'number') {
|
|
9039
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, where
|
|
9040
|
-
}
|
|
9041
|
-
else if (where instanceof HTMLElement) {
|
|
9042
|
-
this.focusElement(where, options);
|
|
8807
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, where);
|
|
9043
8808
|
}
|
|
9044
|
-
else if (
|
|
9045
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusPosition, "f").call(this, where
|
|
8809
|
+
else if (typeof where === 'string') {
|
|
8810
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusPosition, "f").call(this, where);
|
|
9046
8811
|
}
|
|
9047
8812
|
else {
|
|
9048
|
-
__classPrivateFieldGet$1(this,
|
|
8813
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusElement, "f").call(this, where);
|
|
9049
8814
|
}
|
|
9050
8815
|
}
|
|
9051
8816
|
/**
|
|
9052
8817
|
* Remove the visual focus (`.is-focused` class) from the currently focused element and
|
|
9053
8818
|
* clear the `activeDescendant` attribute.
|
|
9054
8819
|
*/
|
|
9055
|
-
clear(
|
|
8820
|
+
clear() {
|
|
9056
8821
|
this.getInteractiveElement(this.host).removeAttribute('aria-activedescendant');
|
|
9057
8822
|
const element = this.focused;
|
|
9058
8823
|
this.activeDescendant = null;
|
|
@@ -9060,10 +8825,9 @@ class FocusManagerController {
|
|
|
9060
8825
|
return;
|
|
9061
8826
|
}
|
|
9062
8827
|
element.classList.remove('is-focused');
|
|
9063
|
-
options?.onBlur?.(element);
|
|
9064
8828
|
}
|
|
9065
8829
|
}
|
|
9066
|
-
|
|
8830
|
+
_FocusManagerController_focusElement = new WeakMap(), _FocusManagerController_focusIndex = new WeakMap(), _FocusManagerController_focusPosition = new WeakMap(), _FocusManagerController_handleKeyPress = new WeakMap(), _FocusManagerController_clearBufferAfterDelay = new WeakMap(), _FocusManagerController_findMatchInRange = new WeakMap(), _FocusManagerController_instances = new WeakSet(), _FocusManagerController_getIndexOfQueried = function _FocusManagerController_getIndexOfQueried(element) {
|
|
9067
8831
|
if (!element) {
|
|
9068
8832
|
return -1;
|
|
9069
8833
|
}
|
|
@@ -9074,90 +8838,6 @@ _FocusManagerController_focusIndex = new WeakMap(), _FocusManagerController_focu
|
|
|
9074
8838
|
}) ?? null);
|
|
9075
8839
|
};
|
|
9076
8840
|
|
|
9077
|
-
var _RovingFocusController_instances, _RovingFocusController_setActiveRovingItem, _RovingFocusController_setInactiveRovingItem;
|
|
9078
|
-
const logger$b = createLogger('roving-focus');
|
|
9079
|
-
/**
|
|
9080
|
-
* Manages focus for interactive elements within a composite widget using the roving tabindex pattern.
|
|
9081
|
-
* Focus moves directly to the active element by managing tabindex and calling element.focus().
|
|
9082
|
-
* Extends FocusManagerController to reuse common focus logic like type-ahead search.
|
|
9083
|
-
*/
|
|
9084
|
-
class RovingFocusController extends FocusManagerController {
|
|
9085
|
-
constructor() {
|
|
9086
|
-
super(...arguments);
|
|
9087
|
-
_RovingFocusController_instances.add(this);
|
|
9088
|
-
/**
|
|
9089
|
-
* Initializes the tabindex for all queried elements.
|
|
9090
|
-
* Ensures exactly one element has tabindex="0", others have tabindex="-1".
|
|
9091
|
-
* Should be called by the host when the queried elements are known to be ready.
|
|
9092
|
-
*/
|
|
9093
|
-
this.initialize = () => {
|
|
9094
|
-
// eslint-disable-next-line prefer-destructuring
|
|
9095
|
-
const queried = this.queried;
|
|
9096
|
-
const currentFocused = this.focused;
|
|
9097
|
-
queried.forEach((element) => {
|
|
9098
|
-
if (currentFocused && element === currentFocused) {
|
|
9099
|
-
__classPrivateFieldGet$1(this, _RovingFocusController_instances, "m", _RovingFocusController_setActiveRovingItem).call(this, element);
|
|
9100
|
-
}
|
|
9101
|
-
else {
|
|
9102
|
-
__classPrivateFieldGet$1(this, _RovingFocusController_instances, "m", _RovingFocusController_setInactiveRovingItem).call(this, element);
|
|
9103
|
-
}
|
|
9104
|
-
});
|
|
9105
|
-
};
|
|
9106
|
-
this.focusElement = (element, options) => {
|
|
9107
|
-
if (!element || isDisabled(element) || !element.id) {
|
|
9108
|
-
logger$b.debug('could not focus element', element, !element?.id ? ' element has no id' : '');
|
|
9109
|
-
return;
|
|
9110
|
-
}
|
|
9111
|
-
this.clear({
|
|
9112
|
-
returnFocusToHost: false,
|
|
9113
|
-
onBlur: options?.onBlur,
|
|
9114
|
-
});
|
|
9115
|
-
__classPrivateFieldGet$1(this, _RovingFocusController_instances, "m", _RovingFocusController_setActiveRovingItem).call(this, element);
|
|
9116
|
-
setTimeout(() => {
|
|
9117
|
-
element.focus();
|
|
9118
|
-
element.scrollIntoView({
|
|
9119
|
-
block: 'nearest',
|
|
9120
|
-
inline: 'nearest',
|
|
9121
|
-
behavior: 'smooth',
|
|
9122
|
-
});
|
|
9123
|
-
}, 150);
|
|
9124
|
-
options?.onFocus?.(element);
|
|
9125
|
-
};
|
|
9126
|
-
}
|
|
9127
|
-
/**
|
|
9128
|
-
* Removes focus from the currently focused element and resets tabindex.
|
|
9129
|
-
* Optionally moves focus back to the host element.
|
|
9130
|
-
*/
|
|
9131
|
-
clear(options = { returnFocusToHost: false }) {
|
|
9132
|
-
const element = this.focused;
|
|
9133
|
-
this.activeDescendant = null;
|
|
9134
|
-
this.initialize();
|
|
9135
|
-
if (element) {
|
|
9136
|
-
options?.onBlur?.(element);
|
|
9137
|
-
}
|
|
9138
|
-
if (options.returnFocusToHost) {
|
|
9139
|
-
this.host.focus();
|
|
9140
|
-
}
|
|
9141
|
-
}
|
|
9142
|
-
}
|
|
9143
|
-
_RovingFocusController_instances = new WeakSet(), _RovingFocusController_setActiveRovingItem = function _RovingFocusController_setActiveRovingItem(element) {
|
|
9144
|
-
if (!element) {
|
|
9145
|
-
return;
|
|
9146
|
-
}
|
|
9147
|
-
// Set tabindex and visual styles for roving focus
|
|
9148
|
-
// eslint-disable-next-line no-param-reassign
|
|
9149
|
-
element.tabIndex = 0;
|
|
9150
|
-
element.classList.add('is-focused');
|
|
9151
|
-
this.activeDescendant = element.id;
|
|
9152
|
-
}, _RovingFocusController_setInactiveRovingItem = function _RovingFocusController_setInactiveRovingItem(element) {
|
|
9153
|
-
if (!element) {
|
|
9154
|
-
return;
|
|
9155
|
-
}
|
|
9156
|
-
// eslint-disable-next-line no-param-reassign
|
|
9157
|
-
element.tabIndex = -1;
|
|
9158
|
-
element.classList.remove('is-focused');
|
|
9159
|
-
};
|
|
9160
|
-
|
|
9161
8841
|
var _KeyboardSupportController_instances, _KeyboardSupportController_handleKey, _KeyboardSupportController_subscribe, _KeyboardSupportController_unsubscribe;
|
|
9162
8842
|
const logger$a = createLogger('keyboard-support-controller');
|
|
9163
8843
|
function getShortcutKey(shortcut) {
|
|
@@ -9230,43 +8910,37 @@ _KeyboardSupportController_handleKey = new WeakMap(), _KeyboardSupportController
|
|
|
9230
8910
|
target?.removeEventListener(this.event, __classPrivateFieldGet$1(this, _KeyboardSupportController_handleKey, "f"));
|
|
9231
8911
|
};
|
|
9232
8912
|
|
|
9233
|
-
const TRIGGER_SELECTOR = '[aria-haspopup="true"]';
|
|
8913
|
+
const TRIGGER_SELECTOR$1 = '[aria-haspopup="true"]';
|
|
9234
8914
|
const MENU_SELECTOR$1 = '[role="menu"]';
|
|
9235
|
-
const ITEM_SELECTOR
|
|
8915
|
+
const ITEM_SELECTOR = '[role="menuitem"]';
|
|
8916
|
+
|
|
9236
8917
|
function dropdownStyles() {
|
|
9237
8918
|
return [
|
|
9238
|
-
|
|
9239
|
-
|
|
8919
|
+
styles$k({
|
|
8920
|
+
referenceSelector: `::slotted(${TRIGGER_SELECTOR$1})`,
|
|
8921
|
+
floatingSelector: `::slotted(${MENU_SELECTOR$1})`,
|
|
8922
|
+
}),
|
|
9240
8923
|
i$9 `
|
|
9241
8924
|
:host {
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
8925
|
+
--m-popover-floating-spacing-x: ${getToken$1('spacing-2')};
|
|
8926
|
+
--m-popover-floating-spacing-y: ${getToken$1('spacing-2')};
|
|
8927
|
+
/* TODO: figure out a way to avoid layout shift when using narrow triggers */
|
|
8928
|
+
--m-popover-width: max-content;
|
|
8929
|
+
--m-popover-min-width: 16ch;
|
|
9245
8930
|
|
|
9246
|
-
|
|
9247
|
-
display: none;
|
|
8931
|
+
display: inline-block;
|
|
9248
8932
|
}
|
|
9249
8933
|
|
|
9250
8934
|
::slotted(${r$8(MENU_SELECTOR$1)}) {
|
|
9251
|
-
|
|
9252
|
-
display: inline-flex;
|
|
9253
|
-
flex-direction: column;
|
|
9254
|
-
|
|
9255
|
-
padding: ${getToken$1('spacing-2')};
|
|
9256
|
-
margin: 0;
|
|
9257
|
-
|
|
9258
|
-
box-sizing: border-box;
|
|
9259
|
-
inline-size: max-content;
|
|
9260
|
-
min-inline-size: 16ch;
|
|
9261
|
-
max-inline-size: initial;
|
|
8935
|
+
--m-popover-background-color: ${getColor('color-background-primary')};
|
|
9262
8936
|
|
|
9263
|
-
|
|
8937
|
+
outline: none;
|
|
8938
|
+
}
|
|
9264
8939
|
|
|
9265
|
-
|
|
9266
|
-
|
|
8940
|
+
:host([open]) ::slotted(${r$8(MENU_SELECTOR$1)}) {
|
|
8941
|
+
display: inline-flex;
|
|
9267
8942
|
|
|
9268
|
-
|
|
9269
|
-
color: ${getColor('color-text-secondary')};
|
|
8943
|
+
flex-direction: column;
|
|
9270
8944
|
}
|
|
9271
8945
|
`,
|
|
9272
8946
|
];
|
|
@@ -9275,7 +8949,7 @@ function triggerStyles() {
|
|
|
9275
8949
|
return [
|
|
9276
8950
|
i$9 `
|
|
9277
8951
|
:host {
|
|
9278
|
-
--m-dropdown-trigger-background-color:
|
|
8952
|
+
--m-dropdown-trigger-background-color: ${getColor('color-background-primary')};
|
|
9279
8953
|
--m-dropdown-trigger-border-color: ${getColor('color-border-input')};
|
|
9280
8954
|
--m-dropdown-trigger-border-radius: ${getToken$1('border-radius-s')};
|
|
9281
8955
|
--m-dropdown-trigger-color: ${getColor('color-text-tertiary')};
|
|
@@ -9379,14 +9053,6 @@ function triggerStyles() {
|
|
|
9379
9053
|
`,
|
|
9380
9054
|
];
|
|
9381
9055
|
}
|
|
9382
|
-
function menuStyles() {
|
|
9383
|
-
return [
|
|
9384
|
-
expandableElementStyles(),
|
|
9385
|
-
popoverFloatingStyles({
|
|
9386
|
-
floatingSelector: ':host',
|
|
9387
|
-
}),
|
|
9388
|
-
];
|
|
9389
|
-
}
|
|
9390
9056
|
function itemStyles() {
|
|
9391
9057
|
return [
|
|
9392
9058
|
i$9 `
|
|
@@ -9491,12 +9157,16 @@ class Dropdown extends Popover {
|
|
|
9491
9157
|
constructor() {
|
|
9492
9158
|
super();
|
|
9493
9159
|
_Dropdown_controllers.set(this, void 0);
|
|
9160
|
+
// eslint-disable-next-line class-methods-use-this
|
|
9161
|
+
this.getFloatingOffset = () => {
|
|
9162
|
+
return 4;
|
|
9163
|
+
};
|
|
9494
9164
|
_Dropdown_handleClick.set(this, (event) => {
|
|
9495
9165
|
const { target } = event;
|
|
9496
9166
|
if (!target) {
|
|
9497
9167
|
return;
|
|
9498
9168
|
}
|
|
9499
|
-
if (target.matches(ITEM_SELECTOR
|
|
9169
|
+
if (target.matches(ITEM_SELECTOR)) {
|
|
9500
9170
|
/**
|
|
9501
9171
|
* we set focus so we can trigger the item click event when the user
|
|
9502
9172
|
* presses <Enter> or <Space>, through the KeyboardSupportController.
|
|
@@ -9515,7 +9185,7 @@ class Dropdown extends Popover {
|
|
|
9515
9185
|
* - https://css-tricks.com/when-a-click-is-not-just-a-click/
|
|
9516
9186
|
* - https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail
|
|
9517
9187
|
*/
|
|
9518
|
-
if (target.matches(TRIGGER_SELECTOR) &&
|
|
9188
|
+
if (target.matches(TRIGGER_SELECTOR$1) &&
|
|
9519
9189
|
event.detail > 0) {
|
|
9520
9190
|
this.toggle();
|
|
9521
9191
|
}
|
|
@@ -9535,14 +9205,8 @@ class Dropdown extends Popover {
|
|
|
9535
9205
|
this.disabled = false;
|
|
9536
9206
|
__classPrivateFieldSet(this, _Dropdown_controllers, {
|
|
9537
9207
|
boundary: new BoundaryController(this),
|
|
9538
|
-
expandable: new ExpandableController(this, {
|
|
9539
|
-
getExpandableElement: () => {
|
|
9540
|
-
return this.getFloatingElement();
|
|
9541
|
-
},
|
|
9542
|
-
isExpanded: () => Boolean(this.open),
|
|
9543
|
-
}),
|
|
9544
9208
|
focus: new FocusManagerController(this, {
|
|
9545
|
-
query: ITEM_SELECTOR
|
|
9209
|
+
query: ITEM_SELECTOR,
|
|
9546
9210
|
getInteractiveElement: () => {
|
|
9547
9211
|
return this.getFloatingElement();
|
|
9548
9212
|
},
|
|
@@ -9557,7 +9221,7 @@ class Dropdown extends Popover {
|
|
|
9557
9221
|
if (!target || this.disabled) {
|
|
9558
9222
|
return;
|
|
9559
9223
|
}
|
|
9560
|
-
if (target.matches(TRIGGER_SELECTOR)) {
|
|
9224
|
+
if (target.matches(TRIGGER_SELECTOR$1)) {
|
|
9561
9225
|
this.expand({ position: 'last' });
|
|
9562
9226
|
return;
|
|
9563
9227
|
}
|
|
@@ -9575,7 +9239,7 @@ class Dropdown extends Popover {
|
|
|
9575
9239
|
if (!target || this.disabled) {
|
|
9576
9240
|
return;
|
|
9577
9241
|
}
|
|
9578
|
-
if (target.matches(TRIGGER_SELECTOR)) {
|
|
9242
|
+
if (target.matches(TRIGGER_SELECTOR$1)) {
|
|
9579
9243
|
this.expand({ position: 'first' });
|
|
9580
9244
|
return;
|
|
9581
9245
|
}
|
|
@@ -9598,7 +9262,7 @@ class Dropdown extends Popover {
|
|
|
9598
9262
|
if (!target || this.disabled) {
|
|
9599
9263
|
return;
|
|
9600
9264
|
}
|
|
9601
|
-
if (target.matches(TRIGGER_SELECTOR)) {
|
|
9265
|
+
if (target.matches(TRIGGER_SELECTOR$1)) {
|
|
9602
9266
|
this.toggle({ position: 'first' });
|
|
9603
9267
|
return;
|
|
9604
9268
|
}
|
|
@@ -9626,7 +9290,7 @@ class Dropdown extends Popover {
|
|
|
9626
9290
|
if (!target) {
|
|
9627
9291
|
return;
|
|
9628
9292
|
}
|
|
9629
|
-
if (target.matches(TRIGGER_SELECTOR) &&
|
|
9293
|
+
if (target.matches(TRIGGER_SELECTOR$1) &&
|
|
9630
9294
|
this.open) {
|
|
9631
9295
|
__classPrivateFieldGet$1(this, _Dropdown_handleClickOutside, "f").call(this);
|
|
9632
9296
|
}
|
|
@@ -9639,14 +9303,14 @@ class Dropdown extends Popover {
|
|
|
9639
9303
|
this.addEventListener('focusout', __classPrivateFieldGet$1(this, _Dropdown_handleFocusOut, "f"));
|
|
9640
9304
|
this.addEventListener('interactout', __classPrivateFieldGet$1(this, _Dropdown_handleClickOutside, "f"));
|
|
9641
9305
|
}
|
|
9642
|
-
firstUpdated(
|
|
9306
|
+
firstUpdated() {
|
|
9643
9307
|
if (this.floating?.id) {
|
|
9644
9308
|
this.reference?.setAttribute('aria-controls', this.floating.id);
|
|
9645
9309
|
}
|
|
9646
9310
|
if (this.reference?.id) {
|
|
9647
9311
|
this.floating?.setAttribute('aria-labelledby', this.reference.id);
|
|
9648
9312
|
}
|
|
9649
|
-
super.firstUpdated(
|
|
9313
|
+
super.firstUpdated();
|
|
9650
9314
|
}
|
|
9651
9315
|
updated(changedProperties) {
|
|
9652
9316
|
super.updated(changedProperties);
|
|
@@ -9663,7 +9327,7 @@ class Dropdown extends Popover {
|
|
|
9663
9327
|
}
|
|
9664
9328
|
}
|
|
9665
9329
|
getReferenceElement() {
|
|
9666
|
-
return this.querySelector(TRIGGER_SELECTOR);
|
|
9330
|
+
return this.querySelector(TRIGGER_SELECTOR$1);
|
|
9667
9331
|
}
|
|
9668
9332
|
getFloatingElement() {
|
|
9669
9333
|
return this.querySelector(MENU_SELECTOR$1);
|
|
@@ -9791,7 +9455,6 @@ class DropdownMenu extends WithIdElementMixin(Component) {
|
|
|
9791
9455
|
return x `<slot name="menu-item"></slot>`;
|
|
9792
9456
|
}
|
|
9793
9457
|
}
|
|
9794
|
-
DropdownMenu.styles = [menuStyles()];
|
|
9795
9458
|
DropdownMenu.define();
|
|
9796
9459
|
|
|
9797
9460
|
class DropdownItem extends WithIdElementMixin(Component) {
|
|
@@ -13597,20 +13260,25 @@ _SideNavigationTrigger_handleClick = new WeakMap();
|
|
|
13597
13260
|
SideNavigationTrigger.styles = [sideNavigationTriggerStyles()];
|
|
13598
13261
|
SideNavigationTrigger.define();
|
|
13599
13262
|
|
|
13263
|
+
const TRIGGER_SELECTOR = '[role="combobox"]';
|
|
13264
|
+
const MENU_SELECTOR = '[role="listbox"]';
|
|
13600
13265
|
const SEARCH_DELAY = 250;
|
|
13601
13266
|
|
|
13602
|
-
const MENU_SELECTOR = '[role="listbox"]';
|
|
13603
|
-
const ITEM_SELECTOR = 'm-option';
|
|
13604
13267
|
function selectStyles() {
|
|
13605
13268
|
return [
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
}),
|
|
13609
|
-
popoverStyles({
|
|
13269
|
+
styles$k({
|
|
13270
|
+
referenceSelector: TRIGGER_SELECTOR,
|
|
13610
13271
|
floatingSelector: MENU_SELECTOR,
|
|
13611
13272
|
}),
|
|
13612
13273
|
i$9 `
|
|
13613
13274
|
:host {
|
|
13275
|
+
--m-popover-floating-spacing-x: ${getToken$1('spacing-2')};
|
|
13276
|
+
--m-popover-floating-spacing-y: ${getToken$1('spacing-2')};
|
|
13277
|
+
/* TODO: figure out a way to avoid layout shift when using narrow triggers */
|
|
13278
|
+
--m-popover-width: max-content;
|
|
13279
|
+
--m-popover-min-width: 16ch;
|
|
13280
|
+
--m-popover-color: ${getColor('color-text-secondary')};
|
|
13281
|
+
|
|
13614
13282
|
--m-select-min-width: 10ch;
|
|
13615
13283
|
--m-select-max-width: 280px;
|
|
13616
13284
|
--m-select-max-height: 240px;
|
|
@@ -13629,34 +13297,19 @@ function selectStyles() {
|
|
|
13629
13297
|
}
|
|
13630
13298
|
|
|
13631
13299
|
${r$8(MENU_SELECTOR)} {
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
padding-inline: ${getToken$1('spacing-2')};
|
|
13636
|
-
padding-block: ${getToken$1('spacing-2')};
|
|
13637
|
-
|
|
13638
|
-
margin: 0;
|
|
13639
|
-
|
|
13640
|
-
box-sizing: border-box;
|
|
13641
|
-
inline-size: max-content;
|
|
13642
|
-
min-inline-size: auto;
|
|
13643
|
-
max-inline-size: initial;
|
|
13644
|
-
|
|
13645
|
-
overflow-x: hidden;
|
|
13646
|
-
overflow-y: auto;
|
|
13647
|
-
|
|
13648
|
-
border: none;
|
|
13649
|
-
border-radius: ${getToken$1('border-radius-m')};
|
|
13650
|
-
|
|
13651
|
-
background-color: ${getColor('color-background-primary')};
|
|
13652
|
-
color: ${getColor('color-text-secondary')};
|
|
13653
|
-
|
|
13654
|
-
contain: none;
|
|
13300
|
+
--m-popover-background-color: ${getColor('color-background-primary')};
|
|
13301
|
+
--m-popover-overflow-y: auto;
|
|
13655
13302
|
|
|
13656
13303
|
max-block-size: var(--m-select-max-height);
|
|
13657
13304
|
outline: none;
|
|
13658
13305
|
}
|
|
13659
13306
|
|
|
13307
|
+
:host([open]) ${r$8(MENU_SELECTOR)} {
|
|
13308
|
+
display: inline-flex;
|
|
13309
|
+
|
|
13310
|
+
flex-direction: column;
|
|
13311
|
+
}
|
|
13312
|
+
|
|
13660
13313
|
/**
|
|
13661
13314
|
* using this approach so we don't need JS intervention to handle an
|
|
13662
13315
|
* an attribute that, in most cases, will not change after initialization.
|
|
@@ -13853,7 +13506,7 @@ function pickerStyles() {
|
|
|
13853
13506
|
*/
|
|
13854
13507
|
:host([type='single']:not(:focus-within)) #clear,
|
|
13855
13508
|
:host([type='single']:focus-within)
|
|
13856
|
-
#trigger-wrapper:has(
|
|
13509
|
+
#trigger-wrapper:has(> #trigger:placeholder-shown)
|
|
13857
13510
|
~ #clear {
|
|
13858
13511
|
visibility: hidden;
|
|
13859
13512
|
opacity: 0;
|
|
@@ -15458,8 +15111,7 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15458
15111
|
},
|
|
15459
15112
|
loading: { type: Boolean },
|
|
15460
15113
|
name: { type: String, reflect: true },
|
|
15461
|
-
placeholder: { type: String
|
|
15462
|
-
label: { type: String, reflect: true },
|
|
15114
|
+
placeholder: { type: String },
|
|
15463
15115
|
size: { type: String, reflect: true },
|
|
15464
15116
|
status: { type: String, reflect: true },
|
|
15465
15117
|
type: { type: String, reflect: true },
|
|
@@ -15514,7 +15166,6 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15514
15166
|
__classPrivateFieldGet$1(this, _Select_instances, "m", _Select_updatePicker).call(this);
|
|
15515
15167
|
__classPrivateFieldGet$1(this, _Select_controllers, "f").boundary.deactivate();
|
|
15516
15168
|
__classPrivateFieldGet$1(this, _Select_controllers, "f").focus.clear();
|
|
15517
|
-
this.trigger?.focus();
|
|
15518
15169
|
this.emit('collapse');
|
|
15519
15170
|
};
|
|
15520
15171
|
/**
|
|
@@ -15540,23 +15191,13 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15540
15191
|
this.expand();
|
|
15541
15192
|
}
|
|
15542
15193
|
this.loading = true;
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
}
|
|
15551
|
-
catch (error) {
|
|
15552
|
-
logger$6.error('Error filtering options', error);
|
|
15553
|
-
}
|
|
15554
|
-
finally {
|
|
15555
|
-
this.loading = false;
|
|
15556
|
-
// Re-initialize focus controller after filtering changes visible options
|
|
15557
|
-
await this.updateComplete;
|
|
15558
|
-
__classPrivateFieldGet$1(this, _Select_controllers, "f").focus.initialize();
|
|
15559
|
-
}
|
|
15194
|
+
this.filteredOptions = this.slottedOptions.filter((descendant) => {
|
|
15195
|
+
const itemTextLowerCase = descendant.label.toLowerCase();
|
|
15196
|
+
const matches = itemTextLowerCase.includes(normalizedSearchTerm);
|
|
15197
|
+
descendant.toggleAttribute('hidden', !matches);
|
|
15198
|
+
return matches;
|
|
15199
|
+
});
|
|
15200
|
+
this.loading = false;
|
|
15560
15201
|
if (options.emit) {
|
|
15561
15202
|
this.emit('search');
|
|
15562
15203
|
}
|
|
@@ -15613,10 +15254,6 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15613
15254
|
option.toggleAttribute('hidden', false);
|
|
15614
15255
|
}
|
|
15615
15256
|
this.filteredOptions = this.slottedOptions;
|
|
15616
|
-
// Re-initialize focus controller after clearing search restores all options
|
|
15617
|
-
requestAnimationFrame(() => {
|
|
15618
|
-
__classPrivateFieldGet$1(this, _Select_controllers, "f").focus.initialize();
|
|
15619
|
-
});
|
|
15620
15257
|
});
|
|
15621
15258
|
_Select_clearSearchDebounce.set(this, () => {
|
|
15622
15259
|
window.clearTimeout(__classPrivateFieldGet$1(this, _Select_searchDebounce, "f"));
|
|
@@ -15673,15 +15310,17 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15673
15310
|
/**
|
|
15674
15311
|
* we are only intested when the event happens during the selection of an option,
|
|
15675
15312
|
* not, for example, when the user hits enter to remove a tag.
|
|
15313
|
+
* we check for the trigger selector because that's what the target will be when the user
|
|
15314
|
+
* is selecting an option.
|
|
15676
15315
|
*/
|
|
15677
|
-
if (!element.matches(
|
|
15316
|
+
if (!element.matches(TRIGGER_SELECTOR)) {
|
|
15678
15317
|
return;
|
|
15679
15318
|
}
|
|
15680
15319
|
const option = __classPrivateFieldGet$1(this, _Select_controllers, "f").focus.focused;
|
|
15681
15320
|
if (!option || option.disabled) {
|
|
15682
15321
|
return;
|
|
15683
15322
|
}
|
|
15684
|
-
|
|
15323
|
+
__classPrivateFieldGet$1(this, _Select_controllers, "f").focus.focus(option);
|
|
15685
15324
|
this.toggleOptions(option.value);
|
|
15686
15325
|
if (!this.isMultiple) {
|
|
15687
15326
|
this.collapse();
|
|
@@ -15728,8 +15367,9 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15728
15367
|
return;
|
|
15729
15368
|
}
|
|
15730
15369
|
const element = event.target;
|
|
15731
|
-
if (element.matches(
|
|
15370
|
+
if (element.matches('m-option') && element.value) {
|
|
15732
15371
|
this.toggleOptions(element.value);
|
|
15372
|
+
this.trigger?.focus();
|
|
15733
15373
|
if (!this.isMultiple) {
|
|
15734
15374
|
this.collapse();
|
|
15735
15375
|
return;
|
|
@@ -15739,6 +15379,7 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15739
15379
|
}
|
|
15740
15380
|
if (!this.open && !element.matches('m-close-button')) {
|
|
15741
15381
|
this.expand();
|
|
15382
|
+
this.trigger?.focus();
|
|
15742
15383
|
}
|
|
15743
15384
|
});
|
|
15744
15385
|
_Select_handleClickOutside.set(this, async () => {
|
|
@@ -15769,11 +15410,9 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15769
15410
|
flatten: true,
|
|
15770
15411
|
})
|
|
15771
15412
|
.filter((descendant) => {
|
|
15772
|
-
return descendant.matches(
|
|
15413
|
+
return descendant.matches('m-option');
|
|
15773
15414
|
});
|
|
15774
15415
|
this.slottedOptions = elements;
|
|
15775
|
-
// Initialize focus controller now that options are slotted
|
|
15776
|
-
__classPrivateFieldGet$1(this, _Select_controllers, "f").focus.initialize();
|
|
15777
15416
|
});
|
|
15778
15417
|
_Select_handleStatusChange.set(this, (status) => {
|
|
15779
15418
|
/**
|
|
@@ -15826,7 +15465,7 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15826
15465
|
* Sync the `selected` attributes for the queriable options.
|
|
15827
15466
|
*/
|
|
15828
15467
|
_Select_updateOptions.set(this, () => {
|
|
15829
|
-
for (const element of this.
|
|
15468
|
+
for (const element of __classPrivateFieldGet$1(this, _Select_controllers, "f").focus.queried) {
|
|
15830
15469
|
element.selected = __classPrivateFieldGet$1(this, _Select_controllers, "f").selection.has(element.value);
|
|
15831
15470
|
}
|
|
15832
15471
|
});
|
|
@@ -15838,28 +15477,22 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15838
15477
|
this.position = 'absolute';
|
|
15839
15478
|
this.placement = 'bottom-start';
|
|
15840
15479
|
this.size = 'default';
|
|
15841
|
-
this.label = 'Select';
|
|
15842
15480
|
__classPrivateFieldSet(this, _Select_controllers, {
|
|
15843
15481
|
boundary: new BoundaryController(this),
|
|
15844
|
-
|
|
15845
|
-
getExpandableElement: () => {
|
|
15846
|
-
return this.renderRoot?.querySelector(MENU_SELECTOR);
|
|
15847
|
-
},
|
|
15848
|
-
isExpanded: () => Boolean(this.open),
|
|
15849
|
-
}),
|
|
15850
|
-
focus: new RovingFocusController(this, {
|
|
15482
|
+
focus: new FocusManagerController(this, {
|
|
15851
15483
|
query: () => {
|
|
15852
|
-
const selectors =
|
|
15484
|
+
const selectors = 'm-option:not([hidden])';
|
|
15853
15485
|
return Array.from(this.querySelectorAll(selectors));
|
|
15854
15486
|
},
|
|
15855
15487
|
// search on type should happen via the input, not keyboard shortcuts.
|
|
15856
15488
|
focusOnType: false,
|
|
15857
15489
|
getInteractiveElement: () => {
|
|
15858
|
-
return this.
|
|
15490
|
+
return this.getFloatingElement();
|
|
15859
15491
|
},
|
|
15860
15492
|
}),
|
|
15861
15493
|
keyboard: new KeyboardSupportController(this, __classPrivateFieldGet$1(this, _Select_getKeyboardShortcuts, "f").call(this), {
|
|
15862
15494
|
event: 'keydown',
|
|
15495
|
+
getEventTarget: () => this.renderRoot,
|
|
15863
15496
|
}),
|
|
15864
15497
|
selection: new SelectionController$1(this, {
|
|
15865
15498
|
getSelectionType: () => this.type,
|
|
@@ -15941,13 +15574,11 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15941
15574
|
type="text"
|
|
15942
15575
|
id="trigger"
|
|
15943
15576
|
role="combobox"
|
|
15944
|
-
autocomplete="off"
|
|
15945
15577
|
aria-haspopup="true"
|
|
15946
15578
|
aria-controls="menu"
|
|
15947
15579
|
aria-autocomplete="list"
|
|
15948
15580
|
aria-expanded=${this.open ? 'true' : 'false'}
|
|
15949
15581
|
placeholder="${o$3(this.placeholder)}"
|
|
15950
|
-
aria-label="${o$3(this.label)}"
|
|
15951
15582
|
?disabled=${this.disabled}
|
|
15952
15583
|
@change=${__classPrivateFieldGet$1(this, _Select_handleTriggerChange, "f")}
|
|
15953
15584
|
@input=${__classPrivateFieldGet$1(this, _Select_handleTriggerInput, "f")}
|
|
@@ -16022,7 +15653,7 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
16022
15653
|
}
|
|
16023
15654
|
}
|
|
16024
15655
|
_Select_controllers = new WeakMap(), _Select_searchDebounce = new WeakMap(), _Select_dataSources = new WeakMap(), _Select_searchTerm = new WeakMap(), _Select_contextProvider = new WeakMap(), _Select_clearSearch = new WeakMap(), _Select_clearSearchDebounce = new WeakMap(), _Select_getKeyboardShortcuts = new WeakMap(), _Select_getOptionByValue = new WeakMap(), _Select_handleClear = new WeakMap(), _Select_handleClick = new WeakMap(), _Select_handleClickOutside = new WeakMap(), _Select_handleDisabledChange = new WeakMap(), _Select_handleHandleClick = new WeakMap(), _Select_handleSlotChange = new WeakMap(), _Select_handleStatusChange = new WeakMap(), _Select_handleTagRemove = new WeakMap(), _Select_handleTriggerChange = new WeakMap(), _Select_handleTriggerInput = new WeakMap(), _Select_handleTriggerFocusIn = new WeakMap(), _Select_handleTypeChange = new WeakMap(), _Select_handleValueChange = new WeakMap(), _Select_updateOptions = new WeakMap(), _Select_instances = new WeakSet(), _Select_initialize = function _Select_initialize(value) {
|
|
16025
|
-
const firstOption = this
|
|
15656
|
+
const firstOption = __classPrivateFieldGet$1(this, _Select_controllers, "f").focus.queried?.[0];
|
|
16026
15657
|
if (!firstOption) {
|
|
16027
15658
|
logger$6.warn('No options found in the select');
|
|
16028
15659
|
return;
|
|
@@ -16099,6 +15730,186 @@ Select.formAssociated = true;
|
|
|
16099
15730
|
Select.styles = [selectStyles(), pickerStyles()];
|
|
16100
15731
|
Select.define();
|
|
16101
15732
|
|
|
15733
|
+
const defaultSkeletonProps = {
|
|
15734
|
+
width: '100%',
|
|
15735
|
+
height: '100px',
|
|
15736
|
+
borderRadius: 'border-radius-s',
|
|
15737
|
+
};
|
|
15738
|
+
const defaultSkeletonTextProps = {
|
|
15739
|
+
borderRadius: 'border-radius-m',
|
|
15740
|
+
variant: 'body-md',
|
|
15741
|
+
};
|
|
15742
|
+
const defaultSkeletonTagProps = {
|
|
15743
|
+
width: '100px',
|
|
15744
|
+
size: 'default',
|
|
15745
|
+
};
|
|
15746
|
+
const defaultSkeletonAvatarProps = {
|
|
15747
|
+
size: '32',
|
|
15748
|
+
};
|
|
15749
|
+
|
|
15750
|
+
function skeletonStyles() {
|
|
15751
|
+
return [
|
|
15752
|
+
skeleton.styles(),
|
|
15753
|
+
i$9 `
|
|
15754
|
+
:host {
|
|
15755
|
+
display: block;
|
|
15756
|
+
--m-skeleton-width: ${r$8(defaultSkeletonProps.width)};
|
|
15757
|
+
--m-skeleton-height: ${r$8(defaultSkeletonProps.height)};
|
|
15758
|
+
--m-skeleton-border-radius: ${r$8(toCSSValue$1(defaultSkeletonProps.borderRadius))};
|
|
15759
|
+
width: var(--m-skeleton-width);
|
|
15760
|
+
height: var(--m-skeleton-height);
|
|
15761
|
+
}
|
|
15762
|
+
|
|
15763
|
+
.m-skeleton {
|
|
15764
|
+
${skeleton()};
|
|
15765
|
+
will-change: opacity;
|
|
15766
|
+
transform: translateZ(0);
|
|
15767
|
+
width: 100%;
|
|
15768
|
+
height: 100%;
|
|
15769
|
+
border-radius: var(--m-skeleton-border-radius);
|
|
15770
|
+
}
|
|
15771
|
+
`,
|
|
15772
|
+
];
|
|
15773
|
+
}
|
|
15774
|
+
|
|
15775
|
+
class Skeleton extends Component {
|
|
15776
|
+
static get properties() {
|
|
15777
|
+
return {
|
|
15778
|
+
...super.properties,
|
|
15779
|
+
width: { type: String, reflect: true },
|
|
15780
|
+
height: { type: String, reflect: true },
|
|
15781
|
+
borderRadius: { type: String, attribute: 'border-radius', reflect: true },
|
|
15782
|
+
};
|
|
15783
|
+
}
|
|
15784
|
+
static define() {
|
|
15785
|
+
Component.define({ name: 'm-skeleton', constructor: Skeleton });
|
|
15786
|
+
}
|
|
15787
|
+
constructor() {
|
|
15788
|
+
super();
|
|
15789
|
+
this.width = defaultSkeletonProps.width;
|
|
15790
|
+
this.height = defaultSkeletonProps.height;
|
|
15791
|
+
this.borderRadius = defaultSkeletonProps.borderRadius;
|
|
15792
|
+
}
|
|
15793
|
+
update(changedProperties) {
|
|
15794
|
+
super.update(changedProperties);
|
|
15795
|
+
if (changedProperties.has('width')) {
|
|
15796
|
+
this.style.setProperty('--m-skeleton-width', this.width || defaultSkeletonProps.width);
|
|
15797
|
+
}
|
|
15798
|
+
if (changedProperties.has('height')) {
|
|
15799
|
+
this.style.setProperty('--m-skeleton-height', this.height || defaultSkeletonProps.height);
|
|
15800
|
+
}
|
|
15801
|
+
if (changedProperties.has('borderRadius')) {
|
|
15802
|
+
const borderRadiusValue = this.borderRadius
|
|
15803
|
+
? toCSSValue$1(this.borderRadius)
|
|
15804
|
+
: toCSSValue$1(defaultSkeletonProps.borderRadius);
|
|
15805
|
+
this.style.setProperty('--m-skeleton-border-radius', borderRadiusValue);
|
|
15806
|
+
}
|
|
15807
|
+
}
|
|
15808
|
+
render() {
|
|
15809
|
+
return x `<div class="m-skeleton"></div>`;
|
|
15810
|
+
}
|
|
15811
|
+
}
|
|
15812
|
+
Skeleton.styles = skeletonStyles();
|
|
15813
|
+
Skeleton.define();
|
|
15814
|
+
|
|
15815
|
+
class SkeletonText extends Skeleton {
|
|
15816
|
+
static get properties() {
|
|
15817
|
+
return {
|
|
15818
|
+
...super.properties,
|
|
15819
|
+
variant: { type: String, reflect: true },
|
|
15820
|
+
};
|
|
15821
|
+
}
|
|
15822
|
+
static define() {
|
|
15823
|
+
Component.define({ name: 'm-skeleton-text', constructor: SkeletonText });
|
|
15824
|
+
}
|
|
15825
|
+
constructor() {
|
|
15826
|
+
super();
|
|
15827
|
+
this.variant = defaultSkeletonTextProps.variant;
|
|
15828
|
+
this.borderRadius = defaultSkeletonTextProps.borderRadius;
|
|
15829
|
+
}
|
|
15830
|
+
update(changedProperties) {
|
|
15831
|
+
if (changedProperties.has('variant') && this.variant) {
|
|
15832
|
+
const variantStyles = getVariant(this.variant);
|
|
15833
|
+
// Calculate height from font-size and line-height tokens
|
|
15834
|
+
const fontSize = variantStyles['font-size'];
|
|
15835
|
+
const lineHeight = variantStyles['line-height'];
|
|
15836
|
+
if (fontSize && lineHeight) {
|
|
15837
|
+
const fontSizeValue = String(getToken$2(fontSize) ?? fontSize);
|
|
15838
|
+
let lineHeightValue = String(getToken$2(lineHeight) ?? lineHeight);
|
|
15839
|
+
// Convert percentage line-height to decimal (e.g., "150%" -> "1.5")
|
|
15840
|
+
if (lineHeightValue.endsWith('%')) {
|
|
15841
|
+
const percentValue = parseFloat(lineHeightValue);
|
|
15842
|
+
lineHeightValue = String(percentValue / 100);
|
|
15843
|
+
}
|
|
15844
|
+
this.height = `calc(${fontSizeValue} * ${lineHeightValue})`;
|
|
15845
|
+
}
|
|
15846
|
+
}
|
|
15847
|
+
super.update(changedProperties);
|
|
15848
|
+
}
|
|
15849
|
+
}
|
|
15850
|
+
SkeletonText.define();
|
|
15851
|
+
|
|
15852
|
+
const sizeHeights = {
|
|
15853
|
+
small: '18px',
|
|
15854
|
+
default: '28px',
|
|
15855
|
+
large: '40px',
|
|
15856
|
+
};
|
|
15857
|
+
class SkeletonTag extends Skeleton {
|
|
15858
|
+
static get properties() {
|
|
15859
|
+
return {
|
|
15860
|
+
...super.properties,
|
|
15861
|
+
size: { type: String, reflect: true },
|
|
15862
|
+
};
|
|
15863
|
+
}
|
|
15864
|
+
static define() {
|
|
15865
|
+
Component.define({ name: 'm-skeleton-tag', constructor: SkeletonTag });
|
|
15866
|
+
}
|
|
15867
|
+
constructor() {
|
|
15868
|
+
super();
|
|
15869
|
+
this.size = defaultSkeletonTagProps.size;
|
|
15870
|
+
this.width = defaultSkeletonTagProps.width;
|
|
15871
|
+
}
|
|
15872
|
+
update(changedProperties) {
|
|
15873
|
+
super.update(changedProperties);
|
|
15874
|
+
if (changedProperties.has('size') && this.size) {
|
|
15875
|
+
const height = sizeHeights[this.size];
|
|
15876
|
+
this.height = height;
|
|
15877
|
+
this.style.setProperty('--m-skeleton-border-radius', `calc(${height} / 2)`);
|
|
15878
|
+
}
|
|
15879
|
+
}
|
|
15880
|
+
}
|
|
15881
|
+
SkeletonTag.styles = [...Skeleton.styles];
|
|
15882
|
+
SkeletonTag.define();
|
|
15883
|
+
|
|
15884
|
+
class SkeletonAvatar extends Skeleton {
|
|
15885
|
+
static get properties() {
|
|
15886
|
+
return {
|
|
15887
|
+
...super.properties,
|
|
15888
|
+
size: { type: String, reflect: true },
|
|
15889
|
+
};
|
|
15890
|
+
}
|
|
15891
|
+
static define() {
|
|
15892
|
+
Component.define({
|
|
15893
|
+
name: 'm-skeleton-avatar',
|
|
15894
|
+
constructor: SkeletonAvatar,
|
|
15895
|
+
});
|
|
15896
|
+
}
|
|
15897
|
+
constructor() {
|
|
15898
|
+
super();
|
|
15899
|
+
this.size = defaultSkeletonAvatarProps.size;
|
|
15900
|
+
this.borderRadius = 'border-radius-circle';
|
|
15901
|
+
}
|
|
15902
|
+
update(changedProperties) {
|
|
15903
|
+
if (changedProperties.has('size') && this.size) {
|
|
15904
|
+
const sizeValue = `${parseInt(String(this.size), 10) || defaultSkeletonAvatarProps.size}px`;
|
|
15905
|
+
this.width = sizeValue;
|
|
15906
|
+
this.height = sizeValue;
|
|
15907
|
+
}
|
|
15908
|
+
super.update(changedProperties);
|
|
15909
|
+
}
|
|
15910
|
+
}
|
|
15911
|
+
SkeletonAvatar.define();
|
|
15912
|
+
|
|
16102
15913
|
function styles$9() {
|
|
16103
15914
|
return i$9 `
|
|
16104
15915
|
:host {
|
|
@@ -17896,7 +17707,7 @@ function tableControlExpandStyles() {
|
|
|
17896
17707
|
}
|
|
17897
17708
|
function tableControlSelectStyles() {
|
|
17898
17709
|
return [
|
|
17899
|
-
styles$
|
|
17710
|
+
styles$s(),
|
|
17900
17711
|
i$9 `
|
|
17901
17712
|
:host {
|
|
17902
17713
|
display: inline-flex;
|
|
@@ -20523,7 +20334,7 @@ function toggleGroupStyles() {
|
|
|
20523
20334
|
}
|
|
20524
20335
|
function toggleStyles() {
|
|
20525
20336
|
return [
|
|
20526
|
-
styles$
|
|
20337
|
+
styles$F(),
|
|
20527
20338
|
i$9 `
|
|
20528
20339
|
:host {
|
|
20529
20340
|
${typography('button-md')};
|
|
@@ -20832,94 +20643,15 @@ function convertTriggerFromAttribute(value) {
|
|
|
20832
20643
|
|
|
20833
20644
|
function styles$3() {
|
|
20834
20645
|
return [
|
|
20835
|
-
|
|
20836
|
-
floatingSelector: ':host',
|
|
20646
|
+
styles$k({
|
|
20647
|
+
floatingSelector: ':host', // the host itself is the floating element
|
|
20837
20648
|
}),
|
|
20838
20649
|
i$9 `
|
|
20839
20650
|
:host {
|
|
20840
|
-
|
|
20841
|
-
|
|
20842
|
-
--m-
|
|
20843
|
-
--m-
|
|
20844
|
-
|
|
20845
|
-
padding-inline: ${getToken$1('spacing-4')};
|
|
20846
|
-
padding-block: ${getToken$1('spacing-2')};
|
|
20847
|
-
margin: 0;
|
|
20848
|
-
|
|
20849
|
-
box-sizing: border-box;
|
|
20850
|
-
inline-size: max-content;
|
|
20851
|
-
min-inline-size: var(--m-tooltip-min-width);
|
|
20852
|
-
max-inline-size: var(--m-tooltip-max-width);
|
|
20853
|
-
|
|
20854
|
-
overflow-x: visible;
|
|
20855
|
-
overflow-y: visible;
|
|
20856
|
-
|
|
20857
|
-
border: none;
|
|
20858
|
-
border-radius: ${getToken$1('border-radius-m')};
|
|
20859
|
-
|
|
20860
|
-
background-color: ${getColor('color-background-secondary-inverted')};
|
|
20861
|
-
color: ${getColor('color-text-inverted')};
|
|
20862
|
-
}
|
|
20863
|
-
|
|
20864
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
20865
|
-
:host {
|
|
20866
|
-
${transition([
|
|
20867
|
-
{
|
|
20868
|
-
property: 'opacity',
|
|
20869
|
-
duration: '150ms',
|
|
20870
|
-
easing: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
20871
|
-
},
|
|
20872
|
-
{
|
|
20873
|
-
property: 'transform',
|
|
20874
|
-
duration: '150ms',
|
|
20875
|
-
easing: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
20876
|
-
},
|
|
20877
|
-
])};
|
|
20878
|
-
}
|
|
20879
|
-
}
|
|
20880
|
-
|
|
20881
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
20882
|
-
:host {
|
|
20883
|
-
animation: 150ms ease-in-out forwards;
|
|
20884
|
-
|
|
20885
|
-
will-change: transform, opacity, filter;
|
|
20886
|
-
}
|
|
20887
|
-
|
|
20888
|
-
:host([open]) {
|
|
20889
|
-
animation-name: pop-in;
|
|
20890
|
-
}
|
|
20891
|
-
|
|
20892
|
-
:host(.is-closing) {
|
|
20893
|
-
animation-name: pop-out;
|
|
20894
|
-
}
|
|
20895
|
-
}
|
|
20896
|
-
|
|
20897
|
-
@keyframes pop-in {
|
|
20898
|
-
from {
|
|
20899
|
-
filter: blur(8px);
|
|
20900
|
-
opacity: 0;
|
|
20901
|
-
transform: translateY(8px);
|
|
20902
|
-
}
|
|
20903
|
-
|
|
20904
|
-
to {
|
|
20905
|
-
filter: blur(0);
|
|
20906
|
-
opacity: 1;
|
|
20907
|
-
transform: translateY(0);
|
|
20908
|
-
}
|
|
20909
|
-
}
|
|
20910
|
-
|
|
20911
|
-
@keyframes pop-out {
|
|
20912
|
-
from {
|
|
20913
|
-
filter: blur(0);
|
|
20914
|
-
opacity: 1;
|
|
20915
|
-
transform: translateY(0);
|
|
20916
|
-
}
|
|
20917
|
-
|
|
20918
|
-
to {
|
|
20919
|
-
filter: blur(8px);
|
|
20920
|
-
opacity: 0;
|
|
20921
|
-
transform: translateY(8px);
|
|
20922
|
-
}
|
|
20651
|
+
--m-popover-width: max-content;
|
|
20652
|
+
--m-popover-min-width: 80px;
|
|
20653
|
+
--m-popover-max-width: 240px;
|
|
20654
|
+
--m-popover-overflow-x: visible;
|
|
20923
20655
|
}
|
|
20924
20656
|
`,
|
|
20925
20657
|
];
|
|
@@ -21015,14 +20747,11 @@ class Tooltip extends WithIdElementMixin(Popover) {
|
|
|
21015
20747
|
this.reference.removeEventListener('mouseover', __classPrivateFieldGet$1(this, _Tooltip_handleMouseOver, "f"));
|
|
21016
20748
|
this.reference.removeEventListener('mouseout', __classPrivateFieldGet$1(this, _Tooltip_handleMouseOut, "f"));
|
|
21017
20749
|
}
|
|
21018
|
-
firstUpdated(
|
|
21019
|
-
super.firstUpdated(
|
|
20750
|
+
firstUpdated() {
|
|
20751
|
+
super.firstUpdated();
|
|
21020
20752
|
if (this.reference) {
|
|
21021
20753
|
this.reference.setAttribute('aria-describedby', this.id);
|
|
21022
20754
|
}
|
|
21023
|
-
if (!this.open) {
|
|
21024
|
-
this.style.display = 'none';
|
|
21025
|
-
}
|
|
21026
20755
|
}
|
|
21027
20756
|
update(changedProperties) {
|
|
21028
20757
|
if (changedProperties.has('open')) {
|
|
@@ -21052,17 +20781,6 @@ class Tooltip extends WithIdElementMixin(Popover) {
|
|
|
21052
20781
|
${this.renderArrow()}
|
|
21053
20782
|
`;
|
|
21054
20783
|
}
|
|
21055
|
-
show() {
|
|
21056
|
-
this.style.display = 'inline-flex';
|
|
21057
|
-
super.show();
|
|
21058
|
-
}
|
|
21059
|
-
async hide() {
|
|
21060
|
-
this.classList.add('is-closing');
|
|
21061
|
-
await waitForAnimations(this);
|
|
21062
|
-
this.style.display = 'none';
|
|
21063
|
-
this.classList.remove('is-closing');
|
|
21064
|
-
super.hide();
|
|
21065
|
-
}
|
|
21066
20784
|
}
|
|
21067
20785
|
_Tooltip_hoverTimeout = new WeakMap(), _Tooltip_focusTimeout = new WeakMap(), _Tooltip_triggers = new WeakMap(), _Tooltip_handleFocus = new WeakMap(), _Tooltip_handleBlur = new WeakMap(), _Tooltip_handleClick = new WeakMap(), _Tooltip_handleKeyDown = new WeakMap(), _Tooltip_handleMouseOver = new WeakMap(), _Tooltip_handleMouseOut = new WeakMap(), _Tooltip_hasTrigger = new WeakMap();
|
|
21068
20786
|
Tooltip.styles = [styles$3()];
|
|
@@ -21703,4 +21421,4 @@ _FilePicker_instances = new WeakSet(), _FilePicker_input_get = function _FilePic
|
|
|
21703
21421
|
FilePicker.styles = [styles$1()];
|
|
21704
21422
|
FilePicker.define();
|
|
21705
21423
|
|
|
21706
|
-
export { DropdownItem as $, Accordion as A, BackButton as B, Card as C, Dialog as D, DIALOG_SIZES as E, DIALOG_VARIANTS as F, DialogActionPrimary as G, DialogActionSecondary as H, DialogActionTertiary as I, DialogActions as J, DialogBody as K, DialogClose as L, DialogFooter as M, DialogHeader as N, Divider as O, Drawer as P, DRAWER_SIZES as Q, DrawerActionPrimary as R, DrawerActionSecondary as S, DrawerActionTertiary as T, DrawerActions as U, DrawerBody as V, DrawerClose as W, DrawerHeader as X, Dropdown as Y, DropdownTrigger as Z, DropdownMenu as _, AccordionTitle as a, Select as a$, DropdownDivider as a0, EmptyStateAction as a1, EmptyStateHeader as a2, EmptyStateIllustration as a3, EmptyStateMessage as a4, EmptyState as a5, EMPTY_STATE_VARIANTS as a6, Field as a7, FieldHint as a8, FieldLabel as a9, defaultSidebarProps as aA, Switcher as aB, defaultSwitcherProps as aC, Container as aD, Row as aE, Column as aF, Link as aG, Page as aH, PageContent as aI, Pagination as aJ, ProgressBar as aK, ProgressBarCountdown as aL, Radio as aM, RadioGroup as aN, Section as aO, SectionTitle as aP, SideNavigation as aQ, SideNavigationHeader as aR, SideNavigationBody as aS, SideNavigationItem as aT, SideNavigationDivider as aU, SideNavigationSubNav as aV, SideNavigationSubNavContent as aW, SideNavigationSubNavItem as aX, SideNavigationSubNavTitle as aY, SideNavigationFooter as aZ, SideNavigationTrigger as a_, FIELD_STATUSES as aa, Header as ab, HeaderActions as ac, HeaderContent as ad, HeaderTabs as ae, HeaderTitle as af, SubHeader as ag, AVAILABLE_ICONS as ah, DEPRECATED_OR_ALIAS_ICONS as ai, Icon as aj, Label as ak, defaultLabeledValueProps as al, LabeledValue as am, LabeledValueLabel as an, LabeledValueValue as ao, ALIGN_ITEMS_VALUES as ap, JUSTIFY_CONTENT_VALUES as aq, Box as ar, defaultBoxProps as as, Group as at, defaultGroupProps as au, Stack as av, defaultStackProps as aw, Grid as ax, defaultGridProps as ay, Sidebar as az, b, SelectOption as b0,
|
|
21424
|
+
export { DropdownItem as $, Accordion as A, BackButton as B, Card as C, Dialog as D, DIALOG_SIZES as E, DIALOG_VARIANTS as F, DialogActionPrimary as G, DialogActionSecondary as H, DialogActionTertiary as I, DialogActions as J, DialogBody as K, DialogClose as L, DialogFooter as M, DialogHeader as N, Divider as O, Drawer as P, DRAWER_SIZES as Q, DrawerActionPrimary as R, DrawerActionSecondary as S, DrawerActionTertiary as T, DrawerActions as U, DrawerBody as V, DrawerClose as W, DrawerHeader as X, Dropdown as Y, DropdownTrigger as Z, DropdownMenu as _, AccordionTitle as a, Select as a$, DropdownDivider as a0, EmptyStateAction as a1, EmptyStateHeader as a2, EmptyStateIllustration as a3, EmptyStateMessage as a4, EmptyState as a5, EMPTY_STATE_VARIANTS as a6, Field as a7, FieldHint as a8, FieldLabel as a9, defaultSidebarProps as aA, Switcher as aB, defaultSwitcherProps as aC, Container as aD, Row as aE, Column as aF, Link as aG, Page as aH, PageContent as aI, Pagination as aJ, ProgressBar as aK, ProgressBarCountdown as aL, Radio as aM, RadioGroup as aN, Section as aO, SectionTitle as aP, SideNavigation as aQ, SideNavigationHeader as aR, SideNavigationBody as aS, SideNavigationItem as aT, SideNavigationDivider as aU, SideNavigationSubNav as aV, SideNavigationSubNavContent as aW, SideNavigationSubNavItem as aX, SideNavigationSubNavTitle as aY, SideNavigationFooter as aZ, SideNavigationTrigger as a_, FIELD_STATUSES as aa, Header as ab, HeaderActions as ac, HeaderContent as ad, HeaderTabs as ae, HeaderTitle as af, SubHeader as ag, AVAILABLE_ICONS as ah, DEPRECATED_OR_ALIAS_ICONS as ai, Icon as aj, Label as ak, defaultLabeledValueProps as al, LabeledValue as am, LabeledValueLabel as an, LabeledValueValue as ao, ALIGN_ITEMS_VALUES as ap, JUSTIFY_CONTENT_VALUES as aq, Box as ar, defaultBoxProps as as, Group as at, defaultGroupProps as au, Stack as av, defaultStackProps as aw, Grid as ax, defaultGridProps as ay, Sidebar as az, b, LogoLoader as b$, SelectOption as b0, Skeleton as b1, SkeletonText as b2, SkeletonTag as b3, SkeletonAvatar as b4, SpinnerWheel as b5, Steps as b6, Step as b7, Switch as b8, Table$1 as b9, TableLayoutActions as bA, TableLayout as bB, Tabs as bC, Tab as bD, TabPanel as bE, Tag as bF, TagRemove as bG, TagExpand as bH, ActionableTag as bI, Text as bJ, TextArea as bK, TextField as bL, Timeline as bM, TimelineExpandableItem as bN, TimelineItem as bO, TimelineItemBody as bP, TimelineItemFooter as bQ, TimelineItemHeader as bR, TimelineItemHeaderSubtitle as bS, TimelineItemHeaderTitle as bT, TimelineItemIcon as bU, ToggleGroup as bV, Toggle as bW, Tooltip as bX, TOOLTIP_PLACEMENT_VALUES as bY, TopNavigation as bZ, TopNavigationItem as b_, defaultTableProps$1 as ba, TableHead$1 as bb, TableHeadCell$1 as bc, defaultTableHeadCellProps$1 as bd, TableBody$1 as be, TableFoot$1 as bf, TableRow$1 as bg, TableCell$1 as bh, defaultTableCellProps$1 as bi, TableToolbar as bj, TableFeedback as bk, TableActions as bl, TableSelectionCell as bm, Table as bn, defaultTableProps as bo, TableHead as bp, TableBody as bq, TableFoot as br, TableRow as bs, TableCell as bt, defaultTableCellProps as bu, TableHeadCell as bv, TableRowSelect as bw, TableRowExpand as bx, TableLayoutToolbar as by, TableLayoutFeedback as bz, AccordionContent as c, DotsLoader as c0, FilePicker as c1, FileItem as c2, Avatar as d, Badge as e, BannerActionPrimary as f, BannerActionSecondary as g, BannerActions as h, BannerDescription as i, BannerIcon as j, BannerTitle as k, Banner as l, Body as m, Button as n, CardBody as o, CardSubtitle as p, CardTitle as q, CardDivider as r, CardFooter as s, typographyVariants as t, CardActionPrimary as u, CardActionSecondary as v, CardActionTertiary as w, CaretButton as x, Checkbox as y, CloseButton as z };
|