@loadsmart/miranda-wc 3.22.0 → 3.23.0-alpha.1
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-C940lRba.js → add-circle-DUC9alAp-Ctkutyu0.js} +1 -1
- package/dist/{alarm-BaGj0N2--CidXoPb_.js → alarm-BaGj0N2--Cfu4UXiK.js} +1 -1
- package/dist/{alert-blocked-7Pq9aiIm-Coi-KQ9G.js → alert-blocked-7Pq9aiIm-DCnmigRx.js} +1 -1
- package/dist/{alert-circle-DPjFhwuE-J1oEBuNQ.js → alert-circle-DPjFhwuE-BHDwRdgh.js} +1 -1
- package/dist/{anchor-BOowxXQz-BNgVqZ6M.js → anchor-BOowxXQz-DR0innL6.js} +1 -1
- package/dist/{archive-DCVFqmKd-CSi4pf1i.js → archive-DCVFqmKd-B_rLyoe7.js} +1 -1
- package/dist/{arrow-left-UQ1azG0M-1ySQqfU8.js → arrow-left-UQ1azG0M-DcM92hhZ.js} +1 -1
- package/dist/{arrow-right-D9ODrfAT-C1MRm_6g.js → arrow-right-D9ODrfAT-JmxAxKvq.js} +1 -1
- package/dist/{arrow-sort-down-DyaC4vSu-D9m_jSlV.js → arrow-sort-down-DyaC4vSu-eb6U4MyY.js} +1 -1
- package/dist/{arrow-sort-up-D3rkqbKD-KK55mwim.js → arrow-sort-up-D3rkqbKD-qq4serZu.js} +1 -1
- package/dist/{arrow-sort-up-down-BkqHwWw9-5j-8Iodt.js → arrow-sort-up-down-BkqHwWw9-B-1pqvab.js} +1 -1
- package/dist/{asterisk-ZHV7R7s1-vXRZ2G8I.js → asterisk-ZHV7R7s1-DiF_TVwM.js} +1 -1
- package/dist/{attention-Bktk81gv-BgvOZ7LG.js → attention-Bktk81gv-DML6s-Jf.js} +1 -1
- package/dist/{automatic-C_cPnNpn-DFvQyJfw.js → automatic-C_cPnNpn-CvhswXY5.js} +1 -1
- package/dist/{bank-AfsU0_8a-C7Ale006.js → bank-AfsU0_8a-BGA3FkwI.js} +1 -1
- package/dist/{bell-BeboL9IG-BofLBMOd.js → bell-BeboL9IG-D28zokT6.js} +1 -1
- package/dist/{bell-cancel-Ca9tfyFs-CGAIk-KD.js → bell-cancel-Ca9tfyFs-Bt6GSXZe.js} +1 -1
- package/dist/{blind-bol-buLUijt0-0CpdEh2r.js → blind-bol-buLUijt0-DNVTpLkE.js} +1 -1
- package/dist/{board-C7-8ym4Q-HqxCpDgX.js → board-C7-8ym4Q-Cg3lcwyQ.js} +1 -1
- package/dist/{bol-CfGOF64d-DRnnkgXZ.js → bol-CfGOF64d-CQcAMXut.js} +1 -1
- package/dist/{bolt-6Jcu4Dlq-5C9dStIh.js → bolt-6Jcu4Dlq-B3U94E3R.js} +1 -1
- package/dist/{bolt-off-BcH48taL-XzYUovpu.js → bolt-off-BcH48taL-CBm4G2JC.js} +1 -1
- package/dist/{box-DCc-Lqkq-D06T_zrH.js → box-DCc-Lqkq-DHy_z_e8.js} +1 -1
- package/dist/{broadcast-DycP-JY_-CSgjiu-T.js → broadcast-DycP-JY_-ClndtLLH.js} +1 -1
- package/dist/{burguer-menu-Asv06-tR-BNJfGmU-.js → burguer-menu-Asv06-tR-BVuCMF0m.js} +1 -1
- package/dist/{calendar-Dx_9TSsr-Gq1usnJm.js → calendar-Dx_9TSsr-BTlCmP7D.js} +1 -1
- package/dist/{camera-Czlcg8L7-DF0_rBq1.js → camera-Czlcg8L7-CFRyxtSV.js} +1 -1
- package/dist/{canada-flag-CfJo38yD-DeqyNnGD.js → canada-flag-CfJo38yD-ByEmeJzp.js} +1 -1
- package/dist/{caret-down-BVaLyzKU-e9zYZjYF.js → caret-down-BVaLyzKU-RffKGWan.js} +1 -1
- package/dist/{caret-left-BDnpJFoh-CdJ09rqn.js → caret-left-BDnpJFoh-1rjAWHKD.js} +1 -1
- package/dist/{caret-right-iJvAGCHE-4Whc4aGF.js → caret-right-iJvAGCHE-CiowNQN_.js} +1 -1
- package/dist/{caret-up-9pIV6ltV-BDsE1ki2.js → caret-up-9pIV6ltV-C3MRuW6S.js} +1 -1
- package/dist/{carrier-contract-DW2sjcCT-vGBDxsFX.js → carrier-contract-DW2sjcCT-xrs1cXJe.js} +1 -1
- package/dist/{chat-DGQ6mScP-yoWc6f-9.js → chat-DGQ6mScP-Bxxm32Gl.js} +1 -1
- package/dist/{check-Cni8S44c-HpJVrUJ1.js → check-Cni8S44c-DgtR9k8w.js} +1 -1
- package/dist/{clip-DM4Wpi9M-FvPXEbod.js → clip-DM4Wpi9M-COBBYMI8.js} +1 -1
- package/dist/{clock-CFBsWldY-DkfUTf3V.js → clock-CFBsWldY-DkTtudeU.js} +1 -1
- package/dist/{clown-DFK7bIK4-DBCCc9mo.js → clown-DFK7bIK4-esEEQUDv.js} +1 -1
- package/dist/{code-DmezwyM4-NscqP-o7.js → code-DmezwyM4-bhrz1LoD.js} +1 -1
- package/dist/{comment-CjEoGy-K-CC6BSsoK.js → comment-CjEoGy-K-BJhLaeEW.js} +1 -1
- package/dist/{company-DqCQwhbF-B9GAc9fJ.js → company-DqCQwhbF-CsQh03Ye.js} +1 -1
- package/dist/components/dropdown/dropdown-menu.d.ts +1 -0
- package/dist/components/dropdown/dropdown.d.ts +2 -3
- package/dist/components/dropdown/dropdown.styles.d.ts +5 -1
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/popover.d.ts +5 -2
- package/dist/components/popover/popover.styles.d.ts +9 -3
- package/dist/components/select/select.constants.d.ts +0 -3
- package/dist/components/select/select.d.ts +10 -0
- package/dist/components/select/select.styles.d.ts +3 -0
- package/dist/components/tooltip/tooltip.d.ts +3 -1
- package/dist/{confetti-CZEHLeVv-uVXjC_MV.js → confetti-CZEHLeVv-CI_o73OB.js} +1 -1
- package/dist/{contract-BQ6z-O8E-BODVFyjU.js → contract-BQ6z-O8E-D9dASOaG.js} +1 -1
- package/dist/controllers/expandable/expandable.controller.d.ts +19 -0
- package/dist/controllers/expandable/expandable.styles.d.ts +19 -0
- package/dist/controllers/expandable/index.d.ts +3 -0
- package/dist/controllers/focus-manager/focus-manager.controller.d.ts +22 -13
- package/dist/controllers/focus-manager/index.d.ts +2 -0
- package/dist/controllers/focus-manager/roving-focus.controller.d.ts +27 -0
- package/dist/{copy-D5yGaYk7-B1NXMGhJ.js → copy-D5yGaYk7-B6zcJ3-G.js} +1 -1
- package/dist/{corner-down-Qmk_Cqah-B5iRLmrx.js → corner-down-Qmk_Cqah-CLZZk4xc.js} +1 -1
- package/dist/{corner-down-r-CwJXOJqV-oJkJ_vn-.js → corner-down-r-CwJXOJqV-B0NKbegi.js} +1 -1
- package/dist/{corner-up-PRIgBw5O-BDomxHjq.js → corner-up-PRIgBw5O-CqK2tbRG.js} +1 -1
- package/dist/{credit-card-CPp_LFTs-CVqGIDj0.js → credit-card-CPp_LFTs-DgKoFmyu.js} +1 -1
- package/dist/{delivery-BmLufTih-C2eUvYQc.js → delivery-BmLufTih-BRjR93HI.js} +1 -1
- package/dist/{dislike-DMXIEtzt-CUllrJnX.js → dislike-DMXIEtzt-CLgA28z9.js} +1 -1
- package/dist/{document-csv-BmSu3fps-qS6jl3KY.js → document-csv-BmSu3fps-Dlcarqn_.js} +1 -1
- package/dist/{document-file-BUqnmujz-DffoFARc.js → document-file-BUqnmujz-DMuP94RV.js} +1 -1
- package/dist/{document-file-plus-DOQYUKtV-D182pkBJ.js → document-file-plus-DOQYUKtV-vonJyqMU.js} +1 -1
- package/dist/{document-image-BgYsKz7H-D7ghjm1t.js → document-image-BgYsKz7H-Ch2cDD2e.js} +1 -1
- package/dist/{dollar-CFykJiF6-CbpZZhHa.js → dollar-CFykJiF6-MNus7vKJ.js} +1 -1
- package/dist/{dollar-circle-BVOsgQj2-ODzXiSP8.js → dollar-circle-BVOsgQj2-3Mj7Cpkq.js} +1 -1
- package/dist/{dots-horizontal-Bl3xu7Nf-CQ_lCfUJ.js → dots-horizontal-Bl3xu7Nf-Dp90vlZY.js} +1 -1
- package/dist/{dots-vertical-40mkkgZI-IH1A3ww6.js → dots-vertical-40mkkgZI-hrxBYHCb.js} +1 -1
- package/dist/{double-caret-left-oyqAcM6D-CBMtjNW6.js → double-caret-left-oyqAcM6D-DEOJgqt1.js} +1 -1
- package/dist/{double-caret-right-CaEFAJUV-CKF-KS-i.js → double-caret-right-CaEFAJUV-C2IsPG-E.js} +1 -1
- package/dist/{down--KKq0yxa-Dk4hv3ct.js → down--KKq0yxa-BcM4MuB6.js} +1 -1
- package/dist/{download-CAudqhnU-BpQzWeU3.js → download-CAudqhnU-DW6EIePg.js} +1 -1
- package/dist/{drop-trailer-DlAJ_vBQ-BLXz1ryO.js → drop-trailer-DlAJ_vBQ-Ck7EN0yS.js} +1 -1
- package/dist/{dropdown-C28rTIS0-CsqjPb4x.js → dropdown-C28rTIS0-BvGBrqaj.js} +1 -1
- package/dist/{email-C1bySA3E-D-1ge6GP.js → email-C1bySA3E-EG_ZHEpG.js} +1 -1
- package/dist/{email-filled-1VNy1i0o-CqqYHBu8.js → email-filled-1VNy1i0o-OAu5sjU1.js} +1 -1
- package/dist/{export-CLVug2kl-Dm3uDmL5.js → export-CLVug2kl-CMHi_2FU.js} +1 -1
- package/dist/{eye-BMtHMF-7-CMRjO_CR.js → eye-BMtHMF-7-CUaSlRL2.js} +1 -1
- package/dist/{fast-CTEZutx8-B8IRXI9t.js → fast-CTEZutx8-ByJQVdRY.js} +1 -1
- package/dist/{favorite-CdnL57Ww-4TNtPevQ.js → favorite-CdnL57Ww-DI1TnxFE.js} +1 -1
- package/dist/{file-BxDR4QmX-C-n35SZ8.js → file-BxDR4QmX-CsE1lR7T.js} +1 -1
- package/dist/{filter-Db0Nlr5s-ChTcWltv.js → filter-Db0Nlr5s-DyM8rY9A.js} +1 -1
- package/dist/{flag-Doxn1CNj-NVK1dUO8.js → flag-Doxn1CNj-CaRdTGRC.js} +1 -1
- package/dist/{folder-B8oJf4Cn-8cErRA9J.js → folder-B8oJf4Cn-DCA-hiDB.js} +1 -1
- package/dist/{funnel-Srs4aUjO-B8EbKn-9.js → funnel-Srs4aUjO-BHAQTjg_.js} +1 -1
- package/dist/{gear-BAAJETHP-GlRZr-0T.js → gear-BAAJETHP-7vEQENh-.js} +1 -1
- package/dist/{graph-BE58cOAU-DzEcpMTZ.js → graph-BE58cOAU-DdTsJssn.js} +1 -1
- package/dist/{hand-BgYtdVrD-DkNgwjbk.js → hand-BgYtdVrD-DLmIWymE.js} +1 -1
- package/dist/{hand-tap-5_UTZG9m-gmjQKkjl.js → hand-tap-5_UTZG9m-UqS7SY2C.js} +1 -1
- package/dist/{high-signal-B3r2CcQv-DLkqjvrX.js → high-signal-B3r2CcQv-4W-4vOBy.js} +1 -1
- package/dist/{history-CNYIllfK-C607z1nd.js → history-CNYIllfK-DO2V5LpM.js} +1 -1
- package/dist/{home-Cy8LsN5j-CXYQ4Uxe.js → home-Cy8LsN5j-CqkzAESq.js} +1 -1
- package/dist/{hourglass-1JnprXU6-CKnuTCL_.js → hourglass-1JnprXU6-BObLbaZW.js} +1 -1
- package/dist/{import-2-CkJjxM_j-B_Qh-Uz3.js → import-2-CkJjxM_j-Lf255DxR.js} +1 -1
- package/dist/{import-rhDUm5Dy-Dgj-xhro.js → import-rhDUm5Dy-DZmGJV6I.js} +1 -1
- package/dist/{indeterminate-BZ0acJ1--De2rObvB.js → indeterminate-BZ0acJ1--axSk5I8y.js} +1 -1
- package/dist/{index-D4QJnzFu.js → index-DaIT7YFO.js} +909 -442
- package/dist/index.js +1 -1
- package/dist/{info-CXMYCD_g-CHqPj5bi.js → info-CXMYCD_g-CXO89mrj.js} +1 -1
- package/dist/{invoice-CugnzNUF-CA_EwyR1.js → invoice-CugnzNUF-CyvesXB7.js} +1 -1
- package/dist/{invoice-items-CGz7rmum-A4fyZcrE.js → invoice-items-CGz7rmum-Bhy0TYpG.js} +1 -1
- package/dist/{kanban-BW05GStl-B4QdgfI-.js → kanban-BW05GStl-D88mZ1uL.js} +1 -1
- package/dist/{light-bulb-CJYecBFg-DsWwu4P_.js → light-bulb-CJYecBFg-BvJzaGIS.js} +1 -1
- package/dist/{like-QtHFzoZl-BFkroS6R.js → like-QtHFzoZl-ByNxod9X.js} +1 -1
- package/dist/{link-C2K5IFfc-M-xu-B_m.js → link-C2K5IFfc-BJLgNy3b.js} +1 -1
- package/dist/{list-qb6yfepc-TCzOzCl8.js → list-qb6yfepc-DbCwb8-1.js} +1 -1
- package/dist/{loadsmart-logo-DD7mf5RA-CINxysdS.js → loadsmart-logo-DD7mf5RA-CluOgWNu.js} +1 -1
- package/dist/{log-out-D7IEO_4w-CLW_gcgN.js → log-out-D7IEO_4w-ByKaYHyn.js} +1 -1
- package/dist/{low-signal-CCApieja-OTTKp2qz.js → low-signal-CCApieja-DoxGKmkL.js} +1 -1
- package/dist/{map-DkdQQaHz-D56MG9Ru.js → map-DkdQQaHz-DKfXFt5h.js} +1 -1
- package/dist/{medal-CFck2Vo9-Di8OBIw8.js → medal-CFck2Vo9-C7pfNLEO.js} +1 -1
- package/dist/{megaphone-F4dIKI-R-Fa_jfvCV.js → megaphone-F4dIKI-R-D2Mt3_H_.js} +1 -1
- package/dist/{mexico-flag-B5V_6xOg-C9P2BAj-.js → mexico-flag-B5V_6xOg-BhclLFWr.js} +1 -1
- package/dist/{minus-BFZ6IG9o-CXDQgduh.js → minus-BFZ6IG9o-nW_lBEqu.js} +1 -1
- package/dist/{network-signal-Bb_xHR-r-ChW-kylC.js → network-signal-Bb_xHR-r-BPLm4LFo.js} +1 -1
- package/dist/{no-awarded-_pC45l2Z-DDwc6mw6.js → no-awarded-_pC45l2Z-CaUJY35X.js} +1 -1
- package/dist/{notes-D0DnYYDF-C-PTeqZY.js → notes-D0DnYYDF-BQO7kP2s.js} +1 -1
- package/dist/{notes-lock-C4iIdCWW-DvCvFVVX.js → notes-lock-C4iIdCWW-yVuCl4DX.js} +1 -1
- package/dist/{order-D6iD-byD-2aCKaflF.js → order-D6iD-byD-CTQJvwh_.js} +1 -1
- package/dist/{package-tracking-VlPDjmKG-Bzi_IkGr.js → package-tracking-VlPDjmKG-Bv-yuZP0.js} +1 -1
- package/dist/{padlock-Cr-9ZU_A-nPhhCc4a.js → padlock-Cr-9ZU_A-CRg8ucks.js} +1 -1
- package/dist/{padlock-open-l4wBXg6b-Did5CQKv.js → padlock-open-l4wBXg6b-uw-GO5k0.js} +1 -1
- package/dist/{pencil-ayTIIr8--BeGhDbSB.js → pencil-ayTIIr8--BaWHtrdJ.js} +1 -1
- package/dist/{phone-BTCU0Wy1-DiI43W4x.js → phone-BTCU0Wy1-cewlAn1q.js} +1 -1
- package/dist/{pin-Bn3yTC_u-DYhtrsUA.js → pin-Bn3yTC_u-C9wnB7-L.js} +1 -1
- package/dist/{pin-filled-DSa95Sh1-ByeaRnwc.js → pin-filled-DSa95Sh1-DymPmEl2.js} +1 -1
- package/dist/{pin-map-BkHB4tNw-CgaydYBb.js → pin-map-BkHB4tNw-gLWuB7Vy.js} +1 -1
- package/dist/{plugs-zfSg1YW9-DCxMatuv.js → plugs-zfSg1YW9-BqEk5mMe.js} +1 -1
- package/dist/{plus-ozGMFMAz-DRwxDC1e.js → plus-ozGMFMAz-DQ-c8t1w.js} +1 -1
- package/dist/{pod-ThCZ5RL3-Cc9TcrbZ.js → pod-ThCZ5RL3-BPEzs_Wa.js} +1 -1
- package/dist/{pre-confirmed-load-Bwr-dWH2-BEsIK12X.js → pre-confirmed-load-Bwr-dWH2-BAxCwo9T.js} +1 -1
- package/dist/{print-D1P_UCUE-m5CXCP6W.js → print-D1P_UCUE-CLd1OBvt.js} +1 -1
- package/dist/{profile-BAhtRV-H-Cro5r2rk.js → profile-BAhtRV-H-jVlIJFPY.js} +1 -1
- package/dist/{question-dot-gWpkPf6c-C1nlxKtF.js → question-dot-gWpkPf6c-Df6oW4RR.js} +1 -1
- package/dist/{receipt-BwBkV8gn-BRe2nmNl.js → receipt-BwBkV8gn-CYbcBIjy.js} +1 -1
- package/dist/{redo-ByLKSZcV-qJ0dTPzv.js → redo-ByLKSZcV-BYLRRGjW.js} +1 -1
- package/dist/{refresh-Dom4yiat-CfRYDybG.js → refresh-Dom4yiat-BGP2kWUA.js} +1 -1
- package/dist/{reloading-CltA-FOS-B32mFbhR.js → reloading-CltA-FOS-BQoguQTN.js} +1 -1
- package/dist/{road-B0mpmfpO-BcPEPQ9_.js → road-B0mpmfpO-E_icjN68.js} +1 -1
- package/dist/{round-trip-CJ6rlpuR-r3ll4Rfm.js → round-trip-CJ6rlpuR-CJYnmh0V.js} +1 -1
- package/dist/{satellite-B6YyzjV9-DLqBcrjB.js → satellite-B6YyzjV9-DOI-6Xw6.js} +1 -1
- package/dist/{search-CEuIfz1B-D7P3GBOr.js → search-CEuIfz1B-DhiljDTp.js} +1 -1
- package/dist/{send-DGyddefp-vNgW105y.js → send-DGyddefp-DFc_4lvT.js} +1 -1
- package/dist/{share-C6k81f3b-Dj2lNEpn.js → share-C6k81f3b-BrbXt8nv.js} +1 -1
- package/dist/{ship-C4UkiVeP-LVK7m2yf.js → ship-C4UkiVeP-BeYgOYUm.js} +1 -1
- package/dist/{signal-DAhLkSYH-CPJqPToX.js → signal-DAhLkSYH-DaMubJTS.js} +1 -1
- package/dist/{sparkle-pS82Zae1-Pnz95g4B.js → sparkle-pS82Zae1-D6ZHUoli.js} +1 -1
- package/dist/{star-DR6uwE4h-p6jnH9eA.js → star-DR6uwE4h-Csmiwd7-.js} +1 -1
- package/dist/{swap-BtTQYKMg-CW3daXAJ.js → swap-BtTQYKMg-9ISYqXD4.js} +1 -1
- package/dist/{tag-IL1JfL1C-CrsNNv-2.js → tag-IL1JfL1C-CfkMrgmj.js} +1 -1
- package/dist/{tag-chevron-DoDGVtfR-YuAI7Grq.js → tag-chevron-DoDGVtfR-CzH_-ZmJ.js} +1 -1
- package/dist/{telephone-YrI9UwiG-CrYHz0oD.js → telephone-YrI9UwiG-y6pEfXiw.js} +1 -1
- package/dist/{telephone-slash-BZap8ZKk-De1ypE_B.js → telephone-slash-BZap8ZKk-C0wOmUxT.js} +1 -1
- package/dist/{terminal-s52u0ofd-BzEbp9hf.js → terminal-s52u0ofd-C8hA6hUg.js} +1 -1
- package/dist/{timer-Br-HDx_b-DoaQfVHr.js → timer-Br-HDx_b-Du5qJ-S7.js} +1 -1
- package/dist/{tms-ready-D0C0lkjm-Cxbrd31y.js → tms-ready-D0C0lkjm-DIiOX7ps.js} +1 -1
- package/dist/{train-D4LRq2PY-BAY2vS9d.js → train-D4LRq2PY-JKTM_Ph2.js} +1 -1
- package/dist/{trash-3UNIllFc-Dm77Lk-8.js → trash-3UNIllFc-C3PxOS5Z.js} +1 -1
- package/dist/{trend-down-BDR4cf1B-gTokWb2-.js → trend-down-BDR4cf1B-jsGarK52.js} +1 -1
- package/dist/{trend-up-B_kfsVbA-CYgBRsWQ.js → trend-up-B_kfsVbA-CDi-eu3L.js} +1 -1
- package/dist/{trophee-CAwY7HPq-BomJcGTn.js → trophee-CAwY7HPq-D-nPg_oa.js} +1 -1
- package/dist/{truck-JWZ6uNC1-DrkXc2nm.js → truck-JWZ6uNC1-Ci9r7Npj.js} +1 -1
- package/dist/{unarchive-Dk6YxGuz-Ci5-Yp8v.js → unarchive-Dk6YxGuz-yAM9N7_O.js} +1 -1
- package/dist/{undo-D22pWaLw-BV-L87Yv.js → undo-D22pWaLw-uTPkcxA0.js} +1 -1
- package/dist/{united-states-flag-CsHL9bsp-CWCvSp98.js → united-states-flag-CsHL9bsp-CvWWbbE4.js} +1 -1
- package/dist/{up-DO_i3SQ4-Dl9ZIX-7.js → up-DO_i3SQ4-BxR4RWhC.js} +1 -1
- package/dist/{upgrade-CnbgCK-Y-CzAYL5c1.js → upgrade-CnbgCK-Y-IS-CWzsq.js} +1 -1
- package/dist/{upload-DtwRfNbp-BOOAcHwF.js → upload-DtwRfNbp-BcL4xTMt.js} +1 -1
- package/dist/{user-BePsqno7-BgiYG-Yq.js → user-BePsqno7-DX0UPGtB.js} +1 -1
- package/dist/utils/string.d.ts +6 -0
- package/dist/{wallet-BWOwCd2Q-CCR5Oadh.js → wallet-BWOwCd2Q-B-9iso7p.js} +1 -1
- package/dist/{warehouse-CqDssJJV-D4iPS-NV.js → warehouse-CqDssJJV-PIr5jujD.js} +1 -1
- package/dist/{wifi-Dt8207Jw-Hvud-dOT.js → wifi-Dt8207Jw-CBA9QF73.js} +1 -1
- package/dist/{wifi-off-B_p79YVu-DAGIt6C6.js → wifi-off-B_p79YVu-CPNxFyag.js} +1 -1
- package/dist/{x-B2033JKZ-BUY0ekRX.js → x-B2033JKZ-BCx65oiR.js} +1 -1
- package/dist/{x-small-C9YOZeBE-DE2IwoDG.js → x-small-C9YOZeBE-LCAFtW_J.js} +1 -1
- package/dist/{zoom-in-CVkDSwyt-gaxzEAhs.js → zoom-in-CVkDSwyt-BNbYI4RI.js} +1 -1
- package/dist/{zoom-out-DqHlySLS-BY0_9Mqh.js → zoom-out-DqHlySLS-C2mHlT5x.js} +1 -1
- package/package.json +3 -3
- package/dist/components/dropdown/dropdown.constants.d.ts +0 -3
|
@@ -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$f = 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$f.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() {
|
|
@@ -1020,7 +1020,7 @@ function typography(variant) {
|
|
|
1020
1020
|
return r$8(`${defaultStyle}\n${variantStyle}`);
|
|
1021
1021
|
}
|
|
1022
1022
|
|
|
1023
|
-
function styles$
|
|
1023
|
+
function styles$G() {
|
|
1024
1024
|
return i$9 `
|
|
1025
1025
|
:host {
|
|
1026
1026
|
background-color: ${getColor('color-background-primary')};
|
|
@@ -1388,7 +1388,7 @@ function toCSSValue(token, alpha) {
|
|
|
1388
1388
|
return `var(${toCSSVariable(token)}, ${value})`;
|
|
1389
1389
|
}
|
|
1390
1390
|
|
|
1391
|
-
function styles$
|
|
1391
|
+
function styles$F() {
|
|
1392
1392
|
return [
|
|
1393
1393
|
i$3 `
|
|
1394
1394
|
:host {
|
|
@@ -1426,171 +1426,171 @@ function styles$G() {
|
|
|
1426
1426
|
|
|
1427
1427
|
function __variableDynamicImportRuntime0__(path) {
|
|
1428
1428
|
switch (path) {
|
|
1429
|
-
case './icons/add-circle.ts': return import('./add-circle-DUC9alAp-
|
|
1430
|
-
case './icons/alarm.ts': return import('./alarm-BaGj0N2--
|
|
1431
|
-
case './icons/alert-blocked.ts': return import('./alert-blocked-7Pq9aiIm-
|
|
1432
|
-
case './icons/alert-circle.ts': return import('./alert-circle-DPjFhwuE-
|
|
1433
|
-
case './icons/anchor.ts': return import('./anchor-BOowxXQz-
|
|
1434
|
-
case './icons/archive.ts': return import('./archive-DCVFqmKd-
|
|
1435
|
-
case './icons/arrow-left.ts': return import('./arrow-left-UQ1azG0M-
|
|
1436
|
-
case './icons/arrow-right.ts': return import('./arrow-right-D9ODrfAT-
|
|
1437
|
-
case './icons/arrow-sort-down.ts': return import('./arrow-sort-down-DyaC4vSu-
|
|
1438
|
-
case './icons/arrow-sort-up-down.ts': return import('./arrow-sort-up-down-BkqHwWw9-
|
|
1439
|
-
case './icons/arrow-sort-up.ts': return import('./arrow-sort-up-D3rkqbKD-
|
|
1440
|
-
case './icons/asterisk.ts': return import('./asterisk-ZHV7R7s1-
|
|
1441
|
-
case './icons/attention.ts': return import('./attention-Bktk81gv-
|
|
1442
|
-
case './icons/automatic.ts': return import('./automatic-C_cPnNpn-
|
|
1443
|
-
case './icons/bank.ts': return import('./bank-AfsU0_8a-
|
|
1444
|
-
case './icons/bell-cancel.ts': return import('./bell-cancel-Ca9tfyFs-
|
|
1445
|
-
case './icons/bell.ts': return import('./bell-BeboL9IG-
|
|
1446
|
-
case './icons/blind-bol.ts': return import('./blind-bol-buLUijt0-
|
|
1447
|
-
case './icons/board.ts': return import('./board-C7-8ym4Q-
|
|
1448
|
-
case './icons/bol.ts': return import('./bol-CfGOF64d-
|
|
1449
|
-
case './icons/bolt-off.ts': return import('./bolt-off-BcH48taL-
|
|
1450
|
-
case './icons/bolt.ts': return import('./bolt-6Jcu4Dlq-
|
|
1451
|
-
case './icons/box.ts': return import('./box-DCc-Lqkq-
|
|
1452
|
-
case './icons/broadcast.ts': return import('./broadcast-DycP-JY_-
|
|
1453
|
-
case './icons/burguer-menu.ts': return import('./burguer-menu-Asv06-tR-
|
|
1454
|
-
case './icons/calendar.ts': return import('./calendar-Dx_9TSsr-
|
|
1455
|
-
case './icons/camera.ts': return import('./camera-Czlcg8L7-
|
|
1456
|
-
case './icons/canada-flag.ts': return import('./canada-flag-CfJo38yD-
|
|
1457
|
-
case './icons/caret-down.ts': return import('./caret-down-BVaLyzKU-
|
|
1458
|
-
case './icons/caret-left.ts': return import('./caret-left-BDnpJFoh-
|
|
1459
|
-
case './icons/caret-right.ts': return import('./caret-right-iJvAGCHE-
|
|
1460
|
-
case './icons/caret-up.ts': return import('./caret-up-9pIV6ltV-
|
|
1461
|
-
case './icons/carrier-contract.ts': return import('./carrier-contract-DW2sjcCT-
|
|
1462
|
-
case './icons/chat.ts': return import('./chat-DGQ6mScP-
|
|
1463
|
-
case './icons/check.ts': return import('./check-Cni8S44c-
|
|
1464
|
-
case './icons/clip.ts': return import('./clip-DM4Wpi9M-
|
|
1465
|
-
case './icons/clock.ts': return import('./clock-CFBsWldY-
|
|
1466
|
-
case './icons/clown.ts': return import('./clown-DFK7bIK4-
|
|
1467
|
-
case './icons/code.ts': return import('./code-DmezwyM4-
|
|
1468
|
-
case './icons/comment.ts': return import('./comment-CjEoGy-K-
|
|
1469
|
-
case './icons/company.ts': return import('./company-DqCQwhbF-
|
|
1470
|
-
case './icons/confetti.ts': return import('./confetti-CZEHLeVv-
|
|
1471
|
-
case './icons/contract.ts': return import('./contract-BQ6z-O8E-
|
|
1472
|
-
case './icons/copy.ts': return import('./copy-D5yGaYk7-
|
|
1473
|
-
case './icons/corner-down-r.ts': return import('./corner-down-r-CwJXOJqV-
|
|
1474
|
-
case './icons/corner-down.ts': return import('./corner-down-Qmk_Cqah-
|
|
1475
|
-
case './icons/corner-up.ts': return import('./corner-up-PRIgBw5O-
|
|
1476
|
-
case './icons/credit-card.ts': return import('./credit-card-CPp_LFTs-
|
|
1477
|
-
case './icons/delivery.ts': return import('./delivery-BmLufTih-
|
|
1478
|
-
case './icons/dislike.ts': return import('./dislike-DMXIEtzt-
|
|
1479
|
-
case './icons/document-csv.ts': return import('./document-csv-BmSu3fps-
|
|
1480
|
-
case './icons/document-file-plus.ts': return import('./document-file-plus-DOQYUKtV-
|
|
1481
|
-
case './icons/document-file.ts': return import('./document-file-BUqnmujz-
|
|
1482
|
-
case './icons/document-image.ts': return import('./document-image-BgYsKz7H-
|
|
1483
|
-
case './icons/dollar-circle.ts': return import('./dollar-circle-BVOsgQj2-
|
|
1484
|
-
case './icons/dollar.ts': return import('./dollar-CFykJiF6-
|
|
1485
|
-
case './icons/dots-horizontal.ts': return import('./dots-horizontal-Bl3xu7Nf-
|
|
1486
|
-
case './icons/dots-vertical.ts': return import('./dots-vertical-40mkkgZI-
|
|
1487
|
-
case './icons/double-caret-left.ts': return import('./double-caret-left-oyqAcM6D-
|
|
1488
|
-
case './icons/double-caret-right.ts': return import('./double-caret-right-CaEFAJUV-
|
|
1489
|
-
case './icons/down.ts': return import('./down--KKq0yxa-
|
|
1490
|
-
case './icons/download.ts': return import('./download-CAudqhnU-
|
|
1491
|
-
case './icons/drop-trailer.ts': return import('./drop-trailer-DlAJ_vBQ-
|
|
1492
|
-
case './icons/dropdown.ts': return import('./dropdown-C28rTIS0-
|
|
1493
|
-
case './icons/email-filled.ts': return import('./email-filled-1VNy1i0o-
|
|
1494
|
-
case './icons/email.ts': return import('./email-C1bySA3E-
|
|
1495
|
-
case './icons/export.ts': return import('./export-CLVug2kl-
|
|
1496
|
-
case './icons/eye.ts': return import('./eye-BMtHMF-7-
|
|
1497
|
-
case './icons/fast.ts': return import('./fast-CTEZutx8-
|
|
1498
|
-
case './icons/favorite.ts': return import('./favorite-CdnL57Ww-
|
|
1499
|
-
case './icons/file.ts': return import('./file-BxDR4QmX-
|
|
1500
|
-
case './icons/filter.ts': return import('./filter-Db0Nlr5s-
|
|
1501
|
-
case './icons/flag.ts': return import('./flag-Doxn1CNj-
|
|
1502
|
-
case './icons/folder.ts': return import('./folder-B8oJf4Cn-
|
|
1503
|
-
case './icons/funnel.ts': return import('./funnel-Srs4aUjO-
|
|
1504
|
-
case './icons/gear.ts': return import('./gear-BAAJETHP-
|
|
1505
|
-
case './icons/graph.ts': return import('./graph-BE58cOAU-
|
|
1506
|
-
case './icons/hand-tap.ts': return import('./hand-tap-5_UTZG9m-
|
|
1507
|
-
case './icons/hand.ts': return import('./hand-BgYtdVrD-
|
|
1508
|
-
case './icons/high-signal.ts': return import('./high-signal-B3r2CcQv-
|
|
1509
|
-
case './icons/history.ts': return import('./history-CNYIllfK-
|
|
1510
|
-
case './icons/home.ts': return import('./home-Cy8LsN5j-
|
|
1511
|
-
case './icons/hourglass.ts': return import('./hourglass-1JnprXU6-
|
|
1512
|
-
case './icons/import-2.ts': return import('./import-2-CkJjxM_j-
|
|
1513
|
-
case './icons/import.ts': return import('./import-rhDUm5Dy-
|
|
1514
|
-
case './icons/indeterminate.ts': return import('./indeterminate-BZ0acJ1--
|
|
1515
|
-
case './icons/info.ts': return import('./info-CXMYCD_g-
|
|
1516
|
-
case './icons/invoice-items.ts': return import('./invoice-items-CGz7rmum-
|
|
1517
|
-
case './icons/invoice.ts': return import('./invoice-CugnzNUF-
|
|
1518
|
-
case './icons/kanban.ts': return import('./kanban-BW05GStl-
|
|
1519
|
-
case './icons/light-bulb.ts': return import('./light-bulb-CJYecBFg-
|
|
1520
|
-
case './icons/like.ts': return import('./like-QtHFzoZl-
|
|
1521
|
-
case './icons/link.ts': return import('./link-C2K5IFfc-
|
|
1522
|
-
case './icons/list.ts': return import('./list-qb6yfepc-
|
|
1523
|
-
case './icons/loadsmart-logo.ts': return import('./loadsmart-logo-DD7mf5RA-
|
|
1524
|
-
case './icons/log-out.ts': return import('./log-out-D7IEO_4w-
|
|
1525
|
-
case './icons/low-signal.ts': return import('./low-signal-CCApieja-
|
|
1526
|
-
case './icons/map.ts': return import('./map-DkdQQaHz-
|
|
1527
|
-
case './icons/medal.ts': return import('./medal-CFck2Vo9-
|
|
1528
|
-
case './icons/megaphone.ts': return import('./megaphone-F4dIKI-R-
|
|
1529
|
-
case './icons/mexico-flag.ts': return import('./mexico-flag-B5V_6xOg-
|
|
1530
|
-
case './icons/minus.ts': return import('./minus-BFZ6IG9o-
|
|
1531
|
-
case './icons/network-signal.ts': return import('./network-signal-Bb_xHR-r-
|
|
1532
|
-
case './icons/no-awarded.ts': return import('./no-awarded-_pC45l2Z-
|
|
1533
|
-
case './icons/notes-lock.ts': return import('./notes-lock-C4iIdCWW-
|
|
1534
|
-
case './icons/notes.ts': return import('./notes-D0DnYYDF-
|
|
1535
|
-
case './icons/order.ts': return import('./order-D6iD-byD-
|
|
1536
|
-
case './icons/package-tracking.ts': return import('./package-tracking-VlPDjmKG-
|
|
1537
|
-
case './icons/padlock-open.ts': return import('./padlock-open-l4wBXg6b-
|
|
1538
|
-
case './icons/padlock.ts': return import('./padlock-Cr-9ZU_A-
|
|
1539
|
-
case './icons/pencil.ts': return import('./pencil-ayTIIr8--
|
|
1540
|
-
case './icons/phone.ts': return import('./phone-BTCU0Wy1-
|
|
1541
|
-
case './icons/pin-filled.ts': return import('./pin-filled-DSa95Sh1-
|
|
1542
|
-
case './icons/pin-map.ts': return import('./pin-map-BkHB4tNw-
|
|
1543
|
-
case './icons/pin.ts': return import('./pin-Bn3yTC_u-
|
|
1544
|
-
case './icons/plugs.ts': return import('./plugs-zfSg1YW9-
|
|
1545
|
-
case './icons/plus.ts': return import('./plus-ozGMFMAz-
|
|
1546
|
-
case './icons/pod.ts': return import('./pod-ThCZ5RL3-
|
|
1547
|
-
case './icons/pre-confirmed-load.ts': return import('./pre-confirmed-load-Bwr-dWH2-
|
|
1548
|
-
case './icons/print.ts': return import('./print-D1P_UCUE-
|
|
1549
|
-
case './icons/profile.ts': return import('./profile-BAhtRV-H-
|
|
1550
|
-
case './icons/question-dot.ts': return import('./question-dot-gWpkPf6c-
|
|
1551
|
-
case './icons/receipt.ts': return import('./receipt-BwBkV8gn-
|
|
1552
|
-
case './icons/redo.ts': return import('./redo-ByLKSZcV-
|
|
1553
|
-
case './icons/refresh.ts': return import('./refresh-Dom4yiat-
|
|
1554
|
-
case './icons/reloading.ts': return import('./reloading-CltA-FOS-
|
|
1555
|
-
case './icons/road.ts': return import('./road-B0mpmfpO-
|
|
1556
|
-
case './icons/round-trip.ts': return import('./round-trip-CJ6rlpuR-
|
|
1557
|
-
case './icons/satellite.ts': return import('./satellite-B6YyzjV9-
|
|
1558
|
-
case './icons/search.ts': return import('./search-CEuIfz1B-
|
|
1559
|
-
case './icons/send.ts': return import('./send-DGyddefp-
|
|
1560
|
-
case './icons/share.ts': return import('./share-C6k81f3b-
|
|
1561
|
-
case './icons/ship.ts': return import('./ship-C4UkiVeP-
|
|
1562
|
-
case './icons/signal.ts': return import('./signal-DAhLkSYH-
|
|
1563
|
-
case './icons/sparkle.ts': return import('./sparkle-pS82Zae1-
|
|
1564
|
-
case './icons/star.ts': return import('./star-DR6uwE4h-
|
|
1565
|
-
case './icons/swap.ts': return import('./swap-BtTQYKMg-
|
|
1566
|
-
case './icons/tag-chevron.ts': return import('./tag-chevron-DoDGVtfR-
|
|
1567
|
-
case './icons/tag.ts': return import('./tag-IL1JfL1C-
|
|
1568
|
-
case './icons/telephone-slash.ts': return import('./telephone-slash-BZap8ZKk-
|
|
1569
|
-
case './icons/telephone.ts': return import('./telephone-YrI9UwiG-
|
|
1570
|
-
case './icons/terminal.ts': return import('./terminal-s52u0ofd-
|
|
1571
|
-
case './icons/timer.ts': return import('./timer-Br-HDx_b-
|
|
1572
|
-
case './icons/tms-ready.ts': return import('./tms-ready-D0C0lkjm-
|
|
1573
|
-
case './icons/train.ts': return import('./train-D4LRq2PY-
|
|
1574
|
-
case './icons/trash.ts': return import('./trash-3UNIllFc-
|
|
1575
|
-
case './icons/trend-down.ts': return import('./trend-down-BDR4cf1B-
|
|
1576
|
-
case './icons/trend-up.ts': return import('./trend-up-B_kfsVbA-
|
|
1577
|
-
case './icons/trophee.ts': return import('./trophee-CAwY7HPq-
|
|
1578
|
-
case './icons/truck.ts': return import('./truck-JWZ6uNC1-
|
|
1579
|
-
case './icons/unarchive.ts': return import('./unarchive-Dk6YxGuz-
|
|
1580
|
-
case './icons/undo.ts': return import('./undo-D22pWaLw-
|
|
1581
|
-
case './icons/united-states-flag.ts': return import('./united-states-flag-CsHL9bsp-
|
|
1582
|
-
case './icons/up.ts': return import('./up-DO_i3SQ4-
|
|
1583
|
-
case './icons/upgrade.ts': return import('./upgrade-CnbgCK-Y-
|
|
1584
|
-
case './icons/upload.ts': return import('./upload-DtwRfNbp-
|
|
1585
|
-
case './icons/user.ts': return import('./user-BePsqno7-
|
|
1586
|
-
case './icons/wallet.ts': return import('./wallet-BWOwCd2Q-
|
|
1587
|
-
case './icons/warehouse.ts': return import('./warehouse-CqDssJJV-
|
|
1588
|
-
case './icons/wifi-off.ts': return import('./wifi-off-B_p79YVu-
|
|
1589
|
-
case './icons/wifi.ts': return import('./wifi-Dt8207Jw-
|
|
1590
|
-
case './icons/x-small.ts': return import('./x-small-C9YOZeBE-
|
|
1591
|
-
case './icons/x.ts': return import('./x-B2033JKZ-
|
|
1592
|
-
case './icons/zoom-in.ts': return import('./zoom-in-CVkDSwyt-
|
|
1593
|
-
case './icons/zoom-out.ts': return import('./zoom-out-DqHlySLS-
|
|
1429
|
+
case './icons/add-circle.ts': return import('./add-circle-DUC9alAp-Ctkutyu0.js');
|
|
1430
|
+
case './icons/alarm.ts': return import('./alarm-BaGj0N2--Cfu4UXiK.js');
|
|
1431
|
+
case './icons/alert-blocked.ts': return import('./alert-blocked-7Pq9aiIm-DCnmigRx.js');
|
|
1432
|
+
case './icons/alert-circle.ts': return import('./alert-circle-DPjFhwuE-BHDwRdgh.js');
|
|
1433
|
+
case './icons/anchor.ts': return import('./anchor-BOowxXQz-DR0innL6.js');
|
|
1434
|
+
case './icons/archive.ts': return import('./archive-DCVFqmKd-B_rLyoe7.js');
|
|
1435
|
+
case './icons/arrow-left.ts': return import('./arrow-left-UQ1azG0M-DcM92hhZ.js');
|
|
1436
|
+
case './icons/arrow-right.ts': return import('./arrow-right-D9ODrfAT-JmxAxKvq.js');
|
|
1437
|
+
case './icons/arrow-sort-down.ts': return import('./arrow-sort-down-DyaC4vSu-eb6U4MyY.js');
|
|
1438
|
+
case './icons/arrow-sort-up-down.ts': return import('./arrow-sort-up-down-BkqHwWw9-B-1pqvab.js');
|
|
1439
|
+
case './icons/arrow-sort-up.ts': return import('./arrow-sort-up-D3rkqbKD-qq4serZu.js');
|
|
1440
|
+
case './icons/asterisk.ts': return import('./asterisk-ZHV7R7s1-DiF_TVwM.js');
|
|
1441
|
+
case './icons/attention.ts': return import('./attention-Bktk81gv-DML6s-Jf.js');
|
|
1442
|
+
case './icons/automatic.ts': return import('./automatic-C_cPnNpn-CvhswXY5.js');
|
|
1443
|
+
case './icons/bank.ts': return import('./bank-AfsU0_8a-BGA3FkwI.js');
|
|
1444
|
+
case './icons/bell-cancel.ts': return import('./bell-cancel-Ca9tfyFs-Bt6GSXZe.js');
|
|
1445
|
+
case './icons/bell.ts': return import('./bell-BeboL9IG-D28zokT6.js');
|
|
1446
|
+
case './icons/blind-bol.ts': return import('./blind-bol-buLUijt0-DNVTpLkE.js');
|
|
1447
|
+
case './icons/board.ts': return import('./board-C7-8ym4Q-Cg3lcwyQ.js');
|
|
1448
|
+
case './icons/bol.ts': return import('./bol-CfGOF64d-CQcAMXut.js');
|
|
1449
|
+
case './icons/bolt-off.ts': return import('./bolt-off-BcH48taL-CBm4G2JC.js');
|
|
1450
|
+
case './icons/bolt.ts': return import('./bolt-6Jcu4Dlq-B3U94E3R.js');
|
|
1451
|
+
case './icons/box.ts': return import('./box-DCc-Lqkq-DHy_z_e8.js');
|
|
1452
|
+
case './icons/broadcast.ts': return import('./broadcast-DycP-JY_-ClndtLLH.js');
|
|
1453
|
+
case './icons/burguer-menu.ts': return import('./burguer-menu-Asv06-tR-BVuCMF0m.js');
|
|
1454
|
+
case './icons/calendar.ts': return import('./calendar-Dx_9TSsr-BTlCmP7D.js');
|
|
1455
|
+
case './icons/camera.ts': return import('./camera-Czlcg8L7-CFRyxtSV.js');
|
|
1456
|
+
case './icons/canada-flag.ts': return import('./canada-flag-CfJo38yD-ByEmeJzp.js');
|
|
1457
|
+
case './icons/caret-down.ts': return import('./caret-down-BVaLyzKU-RffKGWan.js');
|
|
1458
|
+
case './icons/caret-left.ts': return import('./caret-left-BDnpJFoh-1rjAWHKD.js');
|
|
1459
|
+
case './icons/caret-right.ts': return import('./caret-right-iJvAGCHE-CiowNQN_.js');
|
|
1460
|
+
case './icons/caret-up.ts': return import('./caret-up-9pIV6ltV-C3MRuW6S.js');
|
|
1461
|
+
case './icons/carrier-contract.ts': return import('./carrier-contract-DW2sjcCT-xrs1cXJe.js');
|
|
1462
|
+
case './icons/chat.ts': return import('./chat-DGQ6mScP-Bxxm32Gl.js');
|
|
1463
|
+
case './icons/check.ts': return import('./check-Cni8S44c-DgtR9k8w.js');
|
|
1464
|
+
case './icons/clip.ts': return import('./clip-DM4Wpi9M-COBBYMI8.js');
|
|
1465
|
+
case './icons/clock.ts': return import('./clock-CFBsWldY-DkTtudeU.js');
|
|
1466
|
+
case './icons/clown.ts': return import('./clown-DFK7bIK4-esEEQUDv.js');
|
|
1467
|
+
case './icons/code.ts': return import('./code-DmezwyM4-bhrz1LoD.js');
|
|
1468
|
+
case './icons/comment.ts': return import('./comment-CjEoGy-K-BJhLaeEW.js');
|
|
1469
|
+
case './icons/company.ts': return import('./company-DqCQwhbF-CsQh03Ye.js');
|
|
1470
|
+
case './icons/confetti.ts': return import('./confetti-CZEHLeVv-CI_o73OB.js');
|
|
1471
|
+
case './icons/contract.ts': return import('./contract-BQ6z-O8E-D9dASOaG.js');
|
|
1472
|
+
case './icons/copy.ts': return import('./copy-D5yGaYk7-B6zcJ3-G.js');
|
|
1473
|
+
case './icons/corner-down-r.ts': return import('./corner-down-r-CwJXOJqV-B0NKbegi.js');
|
|
1474
|
+
case './icons/corner-down.ts': return import('./corner-down-Qmk_Cqah-CLZZk4xc.js');
|
|
1475
|
+
case './icons/corner-up.ts': return import('./corner-up-PRIgBw5O-CqK2tbRG.js');
|
|
1476
|
+
case './icons/credit-card.ts': return import('./credit-card-CPp_LFTs-DgKoFmyu.js');
|
|
1477
|
+
case './icons/delivery.ts': return import('./delivery-BmLufTih-BRjR93HI.js');
|
|
1478
|
+
case './icons/dislike.ts': return import('./dislike-DMXIEtzt-CLgA28z9.js');
|
|
1479
|
+
case './icons/document-csv.ts': return import('./document-csv-BmSu3fps-Dlcarqn_.js');
|
|
1480
|
+
case './icons/document-file-plus.ts': return import('./document-file-plus-DOQYUKtV-vonJyqMU.js');
|
|
1481
|
+
case './icons/document-file.ts': return import('./document-file-BUqnmujz-DMuP94RV.js');
|
|
1482
|
+
case './icons/document-image.ts': return import('./document-image-BgYsKz7H-Ch2cDD2e.js');
|
|
1483
|
+
case './icons/dollar-circle.ts': return import('./dollar-circle-BVOsgQj2-3Mj7Cpkq.js');
|
|
1484
|
+
case './icons/dollar.ts': return import('./dollar-CFykJiF6-MNus7vKJ.js');
|
|
1485
|
+
case './icons/dots-horizontal.ts': return import('./dots-horizontal-Bl3xu7Nf-Dp90vlZY.js');
|
|
1486
|
+
case './icons/dots-vertical.ts': return import('./dots-vertical-40mkkgZI-hrxBYHCb.js');
|
|
1487
|
+
case './icons/double-caret-left.ts': return import('./double-caret-left-oyqAcM6D-DEOJgqt1.js');
|
|
1488
|
+
case './icons/double-caret-right.ts': return import('./double-caret-right-CaEFAJUV-C2IsPG-E.js');
|
|
1489
|
+
case './icons/down.ts': return import('./down--KKq0yxa-BcM4MuB6.js');
|
|
1490
|
+
case './icons/download.ts': return import('./download-CAudqhnU-DW6EIePg.js');
|
|
1491
|
+
case './icons/drop-trailer.ts': return import('./drop-trailer-DlAJ_vBQ-Ck7EN0yS.js');
|
|
1492
|
+
case './icons/dropdown.ts': return import('./dropdown-C28rTIS0-BvGBrqaj.js');
|
|
1493
|
+
case './icons/email-filled.ts': return import('./email-filled-1VNy1i0o-OAu5sjU1.js');
|
|
1494
|
+
case './icons/email.ts': return import('./email-C1bySA3E-EG_ZHEpG.js');
|
|
1495
|
+
case './icons/export.ts': return import('./export-CLVug2kl-CMHi_2FU.js');
|
|
1496
|
+
case './icons/eye.ts': return import('./eye-BMtHMF-7-CUaSlRL2.js');
|
|
1497
|
+
case './icons/fast.ts': return import('./fast-CTEZutx8-ByJQVdRY.js');
|
|
1498
|
+
case './icons/favorite.ts': return import('./favorite-CdnL57Ww-DI1TnxFE.js');
|
|
1499
|
+
case './icons/file.ts': return import('./file-BxDR4QmX-CsE1lR7T.js');
|
|
1500
|
+
case './icons/filter.ts': return import('./filter-Db0Nlr5s-DyM8rY9A.js');
|
|
1501
|
+
case './icons/flag.ts': return import('./flag-Doxn1CNj-CaRdTGRC.js');
|
|
1502
|
+
case './icons/folder.ts': return import('./folder-B8oJf4Cn-DCA-hiDB.js');
|
|
1503
|
+
case './icons/funnel.ts': return import('./funnel-Srs4aUjO-BHAQTjg_.js');
|
|
1504
|
+
case './icons/gear.ts': return import('./gear-BAAJETHP-7vEQENh-.js');
|
|
1505
|
+
case './icons/graph.ts': return import('./graph-BE58cOAU-DdTsJssn.js');
|
|
1506
|
+
case './icons/hand-tap.ts': return import('./hand-tap-5_UTZG9m-UqS7SY2C.js');
|
|
1507
|
+
case './icons/hand.ts': return import('./hand-BgYtdVrD-DLmIWymE.js');
|
|
1508
|
+
case './icons/high-signal.ts': return import('./high-signal-B3r2CcQv-4W-4vOBy.js');
|
|
1509
|
+
case './icons/history.ts': return import('./history-CNYIllfK-DO2V5LpM.js');
|
|
1510
|
+
case './icons/home.ts': return import('./home-Cy8LsN5j-CqkzAESq.js');
|
|
1511
|
+
case './icons/hourglass.ts': return import('./hourglass-1JnprXU6-BObLbaZW.js');
|
|
1512
|
+
case './icons/import-2.ts': return import('./import-2-CkJjxM_j-Lf255DxR.js');
|
|
1513
|
+
case './icons/import.ts': return import('./import-rhDUm5Dy-DZmGJV6I.js');
|
|
1514
|
+
case './icons/indeterminate.ts': return import('./indeterminate-BZ0acJ1--axSk5I8y.js');
|
|
1515
|
+
case './icons/info.ts': return import('./info-CXMYCD_g-CXO89mrj.js');
|
|
1516
|
+
case './icons/invoice-items.ts': return import('./invoice-items-CGz7rmum-Bhy0TYpG.js');
|
|
1517
|
+
case './icons/invoice.ts': return import('./invoice-CugnzNUF-CyvesXB7.js');
|
|
1518
|
+
case './icons/kanban.ts': return import('./kanban-BW05GStl-D88mZ1uL.js');
|
|
1519
|
+
case './icons/light-bulb.ts': return import('./light-bulb-CJYecBFg-BvJzaGIS.js');
|
|
1520
|
+
case './icons/like.ts': return import('./like-QtHFzoZl-ByNxod9X.js');
|
|
1521
|
+
case './icons/link.ts': return import('./link-C2K5IFfc-BJLgNy3b.js');
|
|
1522
|
+
case './icons/list.ts': return import('./list-qb6yfepc-DbCwb8-1.js');
|
|
1523
|
+
case './icons/loadsmart-logo.ts': return import('./loadsmart-logo-DD7mf5RA-CluOgWNu.js');
|
|
1524
|
+
case './icons/log-out.ts': return import('./log-out-D7IEO_4w-ByKaYHyn.js');
|
|
1525
|
+
case './icons/low-signal.ts': return import('./low-signal-CCApieja-DoxGKmkL.js');
|
|
1526
|
+
case './icons/map.ts': return import('./map-DkdQQaHz-DKfXFt5h.js');
|
|
1527
|
+
case './icons/medal.ts': return import('./medal-CFck2Vo9-C7pfNLEO.js');
|
|
1528
|
+
case './icons/megaphone.ts': return import('./megaphone-F4dIKI-R-D2Mt3_H_.js');
|
|
1529
|
+
case './icons/mexico-flag.ts': return import('./mexico-flag-B5V_6xOg-BhclLFWr.js');
|
|
1530
|
+
case './icons/minus.ts': return import('./minus-BFZ6IG9o-nW_lBEqu.js');
|
|
1531
|
+
case './icons/network-signal.ts': return import('./network-signal-Bb_xHR-r-BPLm4LFo.js');
|
|
1532
|
+
case './icons/no-awarded.ts': return import('./no-awarded-_pC45l2Z-CaUJY35X.js');
|
|
1533
|
+
case './icons/notes-lock.ts': return import('./notes-lock-C4iIdCWW-yVuCl4DX.js');
|
|
1534
|
+
case './icons/notes.ts': return import('./notes-D0DnYYDF-BQO7kP2s.js');
|
|
1535
|
+
case './icons/order.ts': return import('./order-D6iD-byD-CTQJvwh_.js');
|
|
1536
|
+
case './icons/package-tracking.ts': return import('./package-tracking-VlPDjmKG-Bv-yuZP0.js');
|
|
1537
|
+
case './icons/padlock-open.ts': return import('./padlock-open-l4wBXg6b-uw-GO5k0.js');
|
|
1538
|
+
case './icons/padlock.ts': return import('./padlock-Cr-9ZU_A-CRg8ucks.js');
|
|
1539
|
+
case './icons/pencil.ts': return import('./pencil-ayTIIr8--BaWHtrdJ.js');
|
|
1540
|
+
case './icons/phone.ts': return import('./phone-BTCU0Wy1-cewlAn1q.js');
|
|
1541
|
+
case './icons/pin-filled.ts': return import('./pin-filled-DSa95Sh1-DymPmEl2.js');
|
|
1542
|
+
case './icons/pin-map.ts': return import('./pin-map-BkHB4tNw-gLWuB7Vy.js');
|
|
1543
|
+
case './icons/pin.ts': return import('./pin-Bn3yTC_u-C9wnB7-L.js');
|
|
1544
|
+
case './icons/plugs.ts': return import('./plugs-zfSg1YW9-BqEk5mMe.js');
|
|
1545
|
+
case './icons/plus.ts': return import('./plus-ozGMFMAz-DQ-c8t1w.js');
|
|
1546
|
+
case './icons/pod.ts': return import('./pod-ThCZ5RL3-BPEzs_Wa.js');
|
|
1547
|
+
case './icons/pre-confirmed-load.ts': return import('./pre-confirmed-load-Bwr-dWH2-BAxCwo9T.js');
|
|
1548
|
+
case './icons/print.ts': return import('./print-D1P_UCUE-CLd1OBvt.js');
|
|
1549
|
+
case './icons/profile.ts': return import('./profile-BAhtRV-H-jVlIJFPY.js');
|
|
1550
|
+
case './icons/question-dot.ts': return import('./question-dot-gWpkPf6c-Df6oW4RR.js');
|
|
1551
|
+
case './icons/receipt.ts': return import('./receipt-BwBkV8gn-CYbcBIjy.js');
|
|
1552
|
+
case './icons/redo.ts': return import('./redo-ByLKSZcV-BYLRRGjW.js');
|
|
1553
|
+
case './icons/refresh.ts': return import('./refresh-Dom4yiat-BGP2kWUA.js');
|
|
1554
|
+
case './icons/reloading.ts': return import('./reloading-CltA-FOS-BQoguQTN.js');
|
|
1555
|
+
case './icons/road.ts': return import('./road-B0mpmfpO-E_icjN68.js');
|
|
1556
|
+
case './icons/round-trip.ts': return import('./round-trip-CJ6rlpuR-CJYnmh0V.js');
|
|
1557
|
+
case './icons/satellite.ts': return import('./satellite-B6YyzjV9-DOI-6Xw6.js');
|
|
1558
|
+
case './icons/search.ts': return import('./search-CEuIfz1B-DhiljDTp.js');
|
|
1559
|
+
case './icons/send.ts': return import('./send-DGyddefp-DFc_4lvT.js');
|
|
1560
|
+
case './icons/share.ts': return import('./share-C6k81f3b-BrbXt8nv.js');
|
|
1561
|
+
case './icons/ship.ts': return import('./ship-C4UkiVeP-BeYgOYUm.js');
|
|
1562
|
+
case './icons/signal.ts': return import('./signal-DAhLkSYH-DaMubJTS.js');
|
|
1563
|
+
case './icons/sparkle.ts': return import('./sparkle-pS82Zae1-D6ZHUoli.js');
|
|
1564
|
+
case './icons/star.ts': return import('./star-DR6uwE4h-Csmiwd7-.js');
|
|
1565
|
+
case './icons/swap.ts': return import('./swap-BtTQYKMg-9ISYqXD4.js');
|
|
1566
|
+
case './icons/tag-chevron.ts': return import('./tag-chevron-DoDGVtfR-CzH_-ZmJ.js');
|
|
1567
|
+
case './icons/tag.ts': return import('./tag-IL1JfL1C-CfkMrgmj.js');
|
|
1568
|
+
case './icons/telephone-slash.ts': return import('./telephone-slash-BZap8ZKk-C0wOmUxT.js');
|
|
1569
|
+
case './icons/telephone.ts': return import('./telephone-YrI9UwiG-y6pEfXiw.js');
|
|
1570
|
+
case './icons/terminal.ts': return import('./terminal-s52u0ofd-C8hA6hUg.js');
|
|
1571
|
+
case './icons/timer.ts': return import('./timer-Br-HDx_b-Du5qJ-S7.js');
|
|
1572
|
+
case './icons/tms-ready.ts': return import('./tms-ready-D0C0lkjm-DIiOX7ps.js');
|
|
1573
|
+
case './icons/train.ts': return import('./train-D4LRq2PY-JKTM_Ph2.js');
|
|
1574
|
+
case './icons/trash.ts': return import('./trash-3UNIllFc-C3PxOS5Z.js');
|
|
1575
|
+
case './icons/trend-down.ts': return import('./trend-down-BDR4cf1B-jsGarK52.js');
|
|
1576
|
+
case './icons/trend-up.ts': return import('./trend-up-B_kfsVbA-CDi-eu3L.js');
|
|
1577
|
+
case './icons/trophee.ts': return import('./trophee-CAwY7HPq-D-nPg_oa.js');
|
|
1578
|
+
case './icons/truck.ts': return import('./truck-JWZ6uNC1-Ci9r7Npj.js');
|
|
1579
|
+
case './icons/unarchive.ts': return import('./unarchive-Dk6YxGuz-yAM9N7_O.js');
|
|
1580
|
+
case './icons/undo.ts': return import('./undo-D22pWaLw-uTPkcxA0.js');
|
|
1581
|
+
case './icons/united-states-flag.ts': return import('./united-states-flag-CsHL9bsp-CvWWbbE4.js');
|
|
1582
|
+
case './icons/up.ts': return import('./up-DO_i3SQ4-BxR4RWhC.js');
|
|
1583
|
+
case './icons/upgrade.ts': return import('./upgrade-CnbgCK-Y-IS-CWzsq.js');
|
|
1584
|
+
case './icons/upload.ts': return import('./upload-DtwRfNbp-BcL4xTMt.js');
|
|
1585
|
+
case './icons/user.ts': return import('./user-BePsqno7-DX0UPGtB.js');
|
|
1586
|
+
case './icons/wallet.ts': return import('./wallet-BWOwCd2Q-B-9iso7p.js');
|
|
1587
|
+
case './icons/warehouse.ts': return import('./warehouse-CqDssJJV-PIr5jujD.js');
|
|
1588
|
+
case './icons/wifi-off.ts': return import('./wifi-off-B_p79YVu-CPNxFyag.js');
|
|
1589
|
+
case './icons/wifi.ts': return import('./wifi-Dt8207Jw-CBA9QF73.js');
|
|
1590
|
+
case './icons/x-small.ts': return import('./x-small-C9YOZeBE-LCAFtW_J.js');
|
|
1591
|
+
case './icons/x.ts': return import('./x-B2033JKZ-BCx65oiR.js');
|
|
1592
|
+
case './icons/zoom-in.ts': return import('./zoom-in-CVkDSwyt-BNbYI4RI.js');
|
|
1593
|
+
case './icons/zoom-out.ts': return import('./zoom-out-DqHlySLS-C2mHlT5x.js');
|
|
1594
1594
|
default: return new Promise(function(resolve, reject) {
|
|
1595
1595
|
(typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
|
|
1596
1596
|
reject.bind(null, new Error("Unknown variable dynamic import: " + path))
|
|
@@ -1903,7 +1903,7 @@ class Icon extends r$4 {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
1905
|
_Icon_setError = new WeakMap(), _Icon_loadIcon = new WeakMap();
|
|
1906
|
-
Icon.styles = [styles$
|
|
1906
|
+
Icon.styles = [styles$F()];
|
|
1907
1907
|
Icon.define();
|
|
1908
1908
|
|
|
1909
1909
|
var _Accordion_instances, _Accordion_accordionTrigger_get, _Accordion_accordionPanel_get, _Accordion_accordionContent_get, _Accordion_handleExpand, _Accordion_toggle, _Accordion_handleTransition;
|
|
@@ -2001,7 +2001,7 @@ _Accordion_handleTransition = new WeakMap(), _Accordion_instances = new WeakSet(
|
|
|
2001
2001
|
detail: { name: 'accordion', value: this.expanded },
|
|
2002
2002
|
});
|
|
2003
2003
|
};
|
|
2004
|
-
Accordion.styles = [styles$
|
|
2004
|
+
Accordion.styles = [styles$G()];
|
|
2005
2005
|
Accordion.define();
|
|
2006
2006
|
|
|
2007
2007
|
class AccordionTitle extends Component {
|
|
@@ -2120,7 +2120,7 @@ Avatar.define();
|
|
|
2120
2120
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2121
2121
|
*/const o$3=o=>o??E$1;
|
|
2122
2122
|
|
|
2123
|
-
function styles$
|
|
2123
|
+
function styles$E(selector = '#button') {
|
|
2124
2124
|
return i$9 `
|
|
2125
2125
|
:host {
|
|
2126
2126
|
${typography('button-md')};
|
|
@@ -2237,9 +2237,9 @@ function styles$F(selector = '#button') {
|
|
|
2237
2237
|
`;
|
|
2238
2238
|
}
|
|
2239
2239
|
|
|
2240
|
-
function styles$
|
|
2240
|
+
function styles$D() {
|
|
2241
2241
|
return [
|
|
2242
|
-
styles$
|
|
2242
|
+
styles$E(),
|
|
2243
2243
|
i$9 `
|
|
2244
2244
|
:host([variant='primary']) {
|
|
2245
2245
|
--m-button-background-color: ${getColor('color-primary-60')};
|
|
@@ -2512,7 +2512,7 @@ function styles$E() {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
|
|
2514
2514
|
const DEFAULT_SIZE$2 = 10;
|
|
2515
|
-
function styles$
|
|
2515
|
+
function styles$C() {
|
|
2516
2516
|
return i$9 `
|
|
2517
2517
|
:host {
|
|
2518
2518
|
color: inherit;
|
|
@@ -2588,7 +2588,7 @@ _DotsLoader_instances = new WeakSet(), _DotsLoader_getSize = function _DotsLoade
|
|
|
2588
2588
|
}
|
|
2589
2589
|
return `${parsedSize || DEFAULT_SIZE$2}px`;
|
|
2590
2590
|
};
|
|
2591
|
-
DotsLoader.styles = [styles$
|
|
2591
|
+
DotsLoader.styles = [styles$C()];
|
|
2592
2592
|
DotsLoader.define();
|
|
2593
2593
|
|
|
2594
2594
|
var _Button_handleDisabledChange, _Button_handleClick, _Button_handleLinkClick, _Button_handleSubmit, _Button_handleReset, _Button_isDisabled, _Button_isLink;
|
|
@@ -2754,7 +2754,7 @@ Button.shadowRootOptions = {
|
|
|
2754
2754
|
...r$5.shadowRootOptions,
|
|
2755
2755
|
delegatesFocus: true,
|
|
2756
2756
|
};
|
|
2757
|
-
Button.styles = [styles$
|
|
2757
|
+
Button.styles = [styles$D()];
|
|
2758
2758
|
Button.define();
|
|
2759
2759
|
|
|
2760
2760
|
var _BackButton_handleLabelChange;
|
|
@@ -2818,7 +2818,7 @@ const t$1={ATTRIBUTE:1},e$2=t=>(...e)=>({_$litDirective$:t,values:e});let i$2 =
|
|
|
2818
2818
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2819
2819
|
*/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
2820
|
|
|
2821
|
-
function styles$
|
|
2821
|
+
function styles$B() {
|
|
2822
2822
|
return i$9 `
|
|
2823
2823
|
:host {
|
|
2824
2824
|
--m-host-size: 24px;
|
|
@@ -2921,7 +2921,7 @@ _Badge_instances = new WeakSet(), _Badge_counter_get = function _Badge_counter_g
|
|
|
2921
2921
|
}
|
|
2922
2922
|
return E$1;
|
|
2923
2923
|
};
|
|
2924
|
-
Badge.styles = [styles$
|
|
2924
|
+
Badge.styles = [styles$B()];
|
|
2925
2925
|
Badge.define();
|
|
2926
2926
|
|
|
2927
2927
|
class BannerActionPrimary extends Button {
|
|
@@ -2963,7 +2963,7 @@ class BannerActionSecondary extends Button {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
BannerActionSecondary.define();
|
|
2965
2965
|
|
|
2966
|
-
function styles$
|
|
2966
|
+
function styles$A() {
|
|
2967
2967
|
return i$9 `
|
|
2968
2968
|
:host {
|
|
2969
2969
|
display: flex;
|
|
@@ -2992,10 +2992,10 @@ class BannerActions extends Component {
|
|
|
2992
2992
|
`;
|
|
2993
2993
|
}
|
|
2994
2994
|
}
|
|
2995
|
-
BannerActions.styles = [styles$
|
|
2995
|
+
BannerActions.styles = [styles$A()];
|
|
2996
2996
|
BannerActions.define();
|
|
2997
2997
|
|
|
2998
|
-
function styles$
|
|
2998
|
+
function styles$z() {
|
|
2999
2999
|
return i$9 `
|
|
3000
3000
|
:host {
|
|
3001
3001
|
${typography('body-md')};
|
|
@@ -3020,7 +3020,7 @@ class BannerDescription extends Component {
|
|
|
3020
3020
|
return x `<slot></slot>`;
|
|
3021
3021
|
}
|
|
3022
3022
|
}
|
|
3023
|
-
BannerDescription.styles = [styles$
|
|
3023
|
+
BannerDescription.styles = [styles$z()];
|
|
3024
3024
|
BannerDescription.define();
|
|
3025
3025
|
|
|
3026
3026
|
class BannerIcon extends Component {
|
|
@@ -3041,7 +3041,7 @@ class BannerIcon extends Component {
|
|
|
3041
3041
|
}
|
|
3042
3042
|
BannerIcon.define();
|
|
3043
3043
|
|
|
3044
|
-
function styles$
|
|
3044
|
+
function styles$y() {
|
|
3045
3045
|
return i$9 `
|
|
3046
3046
|
:host {
|
|
3047
3047
|
${typography('body-md-bold')};
|
|
@@ -3077,10 +3077,10 @@ class BannerTitle extends Component {
|
|
|
3077
3077
|
return x `<slot></slot>`;
|
|
3078
3078
|
}
|
|
3079
3079
|
}
|
|
3080
|
-
BannerTitle.styles = [styles$
|
|
3080
|
+
BannerTitle.styles = [styles$y()];
|
|
3081
3081
|
BannerTitle.define();
|
|
3082
3082
|
|
|
3083
|
-
function styles$
|
|
3083
|
+
function styles$x() {
|
|
3084
3084
|
return i$9 `
|
|
3085
3085
|
:host {
|
|
3086
3086
|
display: block;
|
|
@@ -3202,7 +3202,7 @@ function toRem(value, base = BASE_PIXELS) {
|
|
|
3202
3202
|
return r$8(`${parseInt(String(value), 10) / base}rem`);
|
|
3203
3203
|
}
|
|
3204
3204
|
|
|
3205
|
-
function styles$
|
|
3205
|
+
function styles$w() {
|
|
3206
3206
|
return i$9 `
|
|
3207
3207
|
:host {
|
|
3208
3208
|
--m-close-button-base-color: ${getColor('color-text-primary')};
|
|
@@ -3378,7 +3378,7 @@ CloseButton.shadowRootOptions = {
|
|
|
3378
3378
|
...r$5.shadowRootOptions,
|
|
3379
3379
|
delegatesFocus: true,
|
|
3380
3380
|
};
|
|
3381
|
-
CloseButton.styles = [styles$
|
|
3381
|
+
CloseButton.styles = [styles$w()];
|
|
3382
3382
|
CloseButton.define();
|
|
3383
3383
|
|
|
3384
3384
|
/**
|
|
@@ -3442,7 +3442,7 @@ const TEXT_CONTENT_HTML_TAGS = [
|
|
|
3442
3442
|
'var', // Variables
|
|
3443
3443
|
];
|
|
3444
3444
|
|
|
3445
|
-
function styles$
|
|
3445
|
+
function styles$v() {
|
|
3446
3446
|
return i$9 `
|
|
3447
3447
|
:host {
|
|
3448
3448
|
--m-text-color: ${getColor('color-text-primary')};
|
|
@@ -3636,7 +3636,7 @@ class Text extends Component {
|
|
|
3636
3636
|
return u `<slot></slot>`;
|
|
3637
3637
|
}
|
|
3638
3638
|
}
|
|
3639
|
-
Text.styles = [styles$
|
|
3639
|
+
Text.styles = [styles$v()];
|
|
3640
3640
|
Text.define();
|
|
3641
3641
|
|
|
3642
3642
|
var _Banner_primaryAction, _Banner_handleDismissClick;
|
|
@@ -3750,7 +3750,7 @@ class Banner extends Component {
|
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
3752
3752
|
_Banner_primaryAction = new WeakMap(), _Banner_handleDismissClick = new WeakMap();
|
|
3753
|
-
Banner.styles = [styles$
|
|
3753
|
+
Banner.styles = [styles$x()];
|
|
3754
3754
|
Banner.define();
|
|
3755
3755
|
|
|
3756
3756
|
var _BaseLayout_setOrRemoveProperty;
|
|
@@ -3856,7 +3856,7 @@ function getBaseLayoutStyles(cssPropertiesPrefix) {
|
|
|
3856
3856
|
`;
|
|
3857
3857
|
}
|
|
3858
3858
|
|
|
3859
|
-
function styles$
|
|
3859
|
+
function styles$u() {
|
|
3860
3860
|
return i$9 `
|
|
3861
3861
|
:host {
|
|
3862
3862
|
--m-body-padding: ${getToken$1('spacing-4')};
|
|
@@ -3901,7 +3901,7 @@ class Body extends BaseLayout {
|
|
|
3901
3901
|
Body.CSSPropertiesPrefix = 'body';
|
|
3902
3902
|
Body.styles = [
|
|
3903
3903
|
getBaseLayoutStyles(Body.CSSPropertiesPrefix),
|
|
3904
|
-
styles$
|
|
3904
|
+
styles$u(),
|
|
3905
3905
|
];
|
|
3906
3906
|
Body.define();
|
|
3907
3907
|
|
|
@@ -4956,7 +4956,7 @@ class CardTitle extends Component {
|
|
|
4956
4956
|
CardTitle.styles = [cardTitleStyles()];
|
|
4957
4957
|
CardTitle.define();
|
|
4958
4958
|
|
|
4959
|
-
function styles$
|
|
4959
|
+
function styles$t() {
|
|
4960
4960
|
return i$9 `
|
|
4961
4961
|
.m-divider {
|
|
4962
4962
|
border: 0;
|
|
@@ -4981,7 +4981,7 @@ class Divider extends Component {
|
|
|
4981
4981
|
return x `<hr class="m-divider" />`;
|
|
4982
4982
|
}
|
|
4983
4983
|
}
|
|
4984
|
-
Divider.styles = [styles$
|
|
4984
|
+
Divider.styles = [styles$t()];
|
|
4985
4985
|
Divider.define();
|
|
4986
4986
|
|
|
4987
4987
|
class CardDivider extends Divider {
|
|
@@ -5083,7 +5083,7 @@ class CardActionTertiary extends Button {
|
|
|
5083
5083
|
}
|
|
5084
5084
|
CardActionTertiary.define();
|
|
5085
5085
|
|
|
5086
|
-
function styles$
|
|
5086
|
+
function styles$s() {
|
|
5087
5087
|
return i$9 `
|
|
5088
5088
|
:host {
|
|
5089
5089
|
--m-caret-button-base-color: ${getColor('color-text-primary')};
|
|
@@ -5264,10 +5264,10 @@ CaretButton.shadowRootOptions = {
|
|
|
5264
5264
|
...r$5.shadowRootOptions,
|
|
5265
5265
|
delegatesFocus: true,
|
|
5266
5266
|
};
|
|
5267
|
-
CaretButton.styles = [styles$
|
|
5267
|
+
CaretButton.styles = [styles$s()];
|
|
5268
5268
|
CaretButton.define();
|
|
5269
5269
|
|
|
5270
|
-
function styles$
|
|
5270
|
+
function styles$r() {
|
|
5271
5271
|
return i$9 `
|
|
5272
5272
|
:host {
|
|
5273
5273
|
${typography('body-md')};
|
|
@@ -5610,7 +5610,7 @@ Checkbox.shadowRootOptions = {
|
|
|
5610
5610
|
...r$5.shadowRootOptions,
|
|
5611
5611
|
delegatesFocus: true,
|
|
5612
5612
|
};
|
|
5613
|
-
Checkbox.styles = [styles$
|
|
5613
|
+
Checkbox.styles = [styles$r()];
|
|
5614
5614
|
Checkbox.define();
|
|
5615
5615
|
|
|
5616
5616
|
/**
|
|
@@ -5643,7 +5643,7 @@ function attachContextRoot() {
|
|
|
5643
5643
|
|
|
5644
5644
|
const dialogContext = n$4(Symbol('dialog'));
|
|
5645
5645
|
|
|
5646
|
-
function styles$
|
|
5646
|
+
function styles$q() {
|
|
5647
5647
|
return i$9 `
|
|
5648
5648
|
:host {
|
|
5649
5649
|
--margin: ${getToken$1('spacing-6')};
|
|
@@ -5890,7 +5890,7 @@ _Dialog_contextProvider = new WeakMap(), _Dialog_handleClick = new WeakMap(), _D
|
|
|
5890
5890
|
event.preventDefault();
|
|
5891
5891
|
__classPrivateFieldGet$1(this, _Dialog_instances, "m", _Dialog_emitCloseEvent).call(this);
|
|
5892
5892
|
};
|
|
5893
|
-
Dialog.styles = [styles$
|
|
5893
|
+
Dialog.styles = [styles$q()];
|
|
5894
5894
|
Dialog.define();
|
|
5895
5895
|
|
|
5896
5896
|
const DIALOG_SIZES = [
|
|
@@ -5993,7 +5993,7 @@ class DialogActions extends Group {
|
|
|
5993
5993
|
}
|
|
5994
5994
|
DialogActions.define();
|
|
5995
5995
|
|
|
5996
|
-
function styles$
|
|
5996
|
+
function styles$p() {
|
|
5997
5997
|
return i$9 `
|
|
5998
5998
|
:host {
|
|
5999
5999
|
overflow-y: auto;
|
|
@@ -6016,7 +6016,7 @@ class DialogBody extends Component {
|
|
|
6016
6016
|
return x `<slot></slot>`;
|
|
6017
6017
|
}
|
|
6018
6018
|
}
|
|
6019
|
-
DialogBody.styles = [styles$
|
|
6019
|
+
DialogBody.styles = [styles$p()];
|
|
6020
6020
|
DialogBody.define();
|
|
6021
6021
|
|
|
6022
6022
|
class DialogClose extends CloseButton {
|
|
@@ -6051,7 +6051,7 @@ class DialogFooter extends Component {
|
|
|
6051
6051
|
}
|
|
6052
6052
|
DialogFooter.define();
|
|
6053
6053
|
|
|
6054
|
-
function styles$
|
|
6054
|
+
function styles$o() {
|
|
6055
6055
|
return i$9 `
|
|
6056
6056
|
:host {
|
|
6057
6057
|
${typography('heading-md-bold')};
|
|
@@ -6129,10 +6129,10 @@ _DialogHeader_context = new WeakMap(), _DialogHeader_instances = new WeakSet(),
|
|
|
6129
6129
|
<m-icon name=${name} color=${color} size="24" aria-hidden="true"></m-icon>
|
|
6130
6130
|
`;
|
|
6131
6131
|
};
|
|
6132
|
-
DialogHeader.styles = [styles$
|
|
6132
|
+
DialogHeader.styles = [styles$o()];
|
|
6133
6133
|
DialogHeader.define();
|
|
6134
6134
|
|
|
6135
|
-
function styles$
|
|
6135
|
+
function styles$n() {
|
|
6136
6136
|
return i$9 `
|
|
6137
6137
|
:host {
|
|
6138
6138
|
--padding: ${getToken$1('spacing-6')};
|
|
@@ -6359,7 +6359,7 @@ _Drawer_handleClick = new WeakMap(), _Drawer_instances = new WeakSet(), _Drawer_
|
|
|
6359
6359
|
event.preventDefault();
|
|
6360
6360
|
__classPrivateFieldGet$1(this, _Drawer_instances, "m", _Drawer_emitCloseEvent).call(this);
|
|
6361
6361
|
};
|
|
6362
|
-
Drawer.styles = [styles$
|
|
6362
|
+
Drawer.styles = [styles$n()];
|
|
6363
6363
|
Drawer.define();
|
|
6364
6364
|
|
|
6365
6365
|
const DRAWER_SIZES = ['small', 'medium', 'large'];
|
|
@@ -6406,7 +6406,7 @@ class DrawerActionTertiary extends Button {
|
|
|
6406
6406
|
}
|
|
6407
6407
|
DrawerActionTertiary.define();
|
|
6408
6408
|
|
|
6409
|
-
function styles$
|
|
6409
|
+
function styles$m() {
|
|
6410
6410
|
return i$9 `
|
|
6411
6411
|
:host {
|
|
6412
6412
|
margin-top: auto;
|
|
@@ -6436,10 +6436,10 @@ class DrawerActions extends Group {
|
|
|
6436
6436
|
this.setAttribute('slot', 'actions');
|
|
6437
6437
|
}
|
|
6438
6438
|
}
|
|
6439
|
-
DrawerActions.styles = [...Group.styles, styles$
|
|
6439
|
+
DrawerActions.styles = [...Group.styles, styles$m()];
|
|
6440
6440
|
DrawerActions.define();
|
|
6441
6441
|
|
|
6442
|
-
function styles$
|
|
6442
|
+
function styles$l() {
|
|
6443
6443
|
return i$9 `
|
|
6444
6444
|
:host {
|
|
6445
6445
|
overflow-y: auto;
|
|
@@ -6464,7 +6464,7 @@ class DrawerBody extends Component {
|
|
|
6464
6464
|
return x `<slot></slot>`;
|
|
6465
6465
|
}
|
|
6466
6466
|
}
|
|
6467
|
-
DrawerBody.styles = [styles$
|
|
6467
|
+
DrawerBody.styles = [styles$l()];
|
|
6468
6468
|
DrawerBody.define();
|
|
6469
6469
|
|
|
6470
6470
|
class DrawerClose extends CloseButton {
|
|
@@ -6485,7 +6485,7 @@ class DrawerClose extends CloseButton {
|
|
|
6485
6485
|
}
|
|
6486
6486
|
DrawerClose.define();
|
|
6487
6487
|
|
|
6488
|
-
function styles$
|
|
6488
|
+
function styles$k() {
|
|
6489
6489
|
return i$9 `
|
|
6490
6490
|
:host {
|
|
6491
6491
|
${typography('heading-md-bold')};
|
|
@@ -6538,7 +6538,7 @@ class DrawerHeader extends Component {
|
|
|
6538
6538
|
`;
|
|
6539
6539
|
}
|
|
6540
6540
|
}
|
|
6541
|
-
DrawerHeader.styles = [styles$
|
|
6541
|
+
DrawerHeader.styles = [styles$k()];
|
|
6542
6542
|
DrawerHeader.define();
|
|
6543
6543
|
|
|
6544
6544
|
/**
|
|
@@ -7165,6 +7165,90 @@ const hide$1 = function (options) {
|
|
|
7165
7165
|
};
|
|
7166
7166
|
};
|
|
7167
7167
|
|
|
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
|
+
|
|
7168
7252
|
/**
|
|
7169
7253
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
7170
7254
|
* keep it in view when it will overflow the clipping boundary.
|
|
@@ -8043,6 +8127,15 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8043
8127
|
};
|
|
8044
8128
|
}
|
|
8045
8129
|
|
|
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
|
+
|
|
8046
8139
|
/**
|
|
8047
8140
|
* Optimizes the visibility of the floating element by shifting it in order to
|
|
8048
8141
|
* keep it in view when it will overflow the clipping boundary.
|
|
@@ -8179,7 +8272,7 @@ const POPOVER_PLACEMENT_VALUES = [
|
|
|
8179
8272
|
'bottom-start',
|
|
8180
8273
|
'bottom-end',
|
|
8181
8274
|
];
|
|
8182
|
-
const logger$
|
|
8275
|
+
const logger$e = createLogger('popover');
|
|
8183
8276
|
class Popover extends Component {
|
|
8184
8277
|
static get properties() {
|
|
8185
8278
|
return {
|
|
@@ -8193,16 +8286,12 @@ class Popover extends Component {
|
|
|
8193
8286
|
super();
|
|
8194
8287
|
_Popover_updateCleanup.set(this, void 0);
|
|
8195
8288
|
// eslint-disable-next-line class-methods-use-this
|
|
8196
|
-
this.getFloatingOffset = () => {
|
|
8197
|
-
return 10;
|
|
8198
|
-
};
|
|
8199
|
-
// eslint-disable-next-line class-methods-use-this
|
|
8200
8289
|
this.renderArrow = () => {
|
|
8201
8290
|
return x `<span id="arrow"></span>`;
|
|
8202
8291
|
};
|
|
8203
8292
|
this.reposition = async (reason) => {
|
|
8204
8293
|
if (this.floating == null || this.reference == null) {
|
|
8205
|
-
logger$
|
|
8294
|
+
logger$e.warn('[popover]', 'both floating and reference elements should be available', { reference: this.reference, floating: this.floating });
|
|
8206
8295
|
return;
|
|
8207
8296
|
}
|
|
8208
8297
|
const { x, y, placement, middlewareData } = await computePosition(this.reference, this.floating, {
|
|
@@ -8216,6 +8305,7 @@ class Popover extends Component {
|
|
|
8216
8305
|
},
|
|
8217
8306
|
},
|
|
8218
8307
|
middleware: [
|
|
8308
|
+
offset(this.getFloatingOffset()),
|
|
8219
8309
|
// to prevent the floating element from overflowing on the main axis of its placement
|
|
8220
8310
|
flip(),
|
|
8221
8311
|
// preventing overflow while maintaining the desired placement as best as possible.
|
|
@@ -8238,21 +8328,22 @@ class Popover extends Component {
|
|
|
8238
8328
|
}
|
|
8239
8329
|
const [side] = placement.split('-');
|
|
8240
8330
|
const hasArrow = this.arrow != null;
|
|
8331
|
+
const floatingOffset = this.getFloatingOffset();
|
|
8241
8332
|
const mainSideIncrement = {
|
|
8242
8333
|
top: {
|
|
8243
8334
|
x: '0px',
|
|
8244
|
-
y: getPositionOffset(hasArrow, 'top',
|
|
8335
|
+
y: getPositionOffset(hasArrow, 'top', floatingOffset.mainAxis),
|
|
8245
8336
|
},
|
|
8246
8337
|
bottom: {
|
|
8247
8338
|
x: '0px',
|
|
8248
|
-
y: getPositionOffset(hasArrow, 'bottom',
|
|
8339
|
+
y: getPositionOffset(hasArrow, 'bottom', floatingOffset.mainAxis),
|
|
8249
8340
|
},
|
|
8250
8341
|
right: {
|
|
8251
|
-
x: getPositionOffset(hasArrow, 'right',
|
|
8342
|
+
x: getPositionOffset(hasArrow, 'right', floatingOffset.mainAxis),
|
|
8252
8343
|
y: '0px',
|
|
8253
8344
|
},
|
|
8254
8345
|
left: {
|
|
8255
|
-
x: getPositionOffset(hasArrow, 'left',
|
|
8346
|
+
x: getPositionOffset(hasArrow, 'left', floatingOffset.mainAxis),
|
|
8256
8347
|
y: '0px',
|
|
8257
8348
|
},
|
|
8258
8349
|
};
|
|
@@ -8300,7 +8391,8 @@ class Popover extends Component {
|
|
|
8300
8391
|
super.disconnectedCallback();
|
|
8301
8392
|
__classPrivateFieldGet$1(this, _Popover_updateCleanup, "f")?.call(this);
|
|
8302
8393
|
}
|
|
8303
|
-
firstUpdated() {
|
|
8394
|
+
firstUpdated(changedProperties) {
|
|
8395
|
+
super.firstUpdated(changedProperties);
|
|
8304
8396
|
if (this.asPopover && supportsPopover() && this.floating) {
|
|
8305
8397
|
/**
|
|
8306
8398
|
* setting this attribute to manual means the popover must always be explicitly hidden
|
|
@@ -8332,6 +8424,13 @@ class Popover extends Component {
|
|
|
8332
8424
|
getArrowElement() {
|
|
8333
8425
|
throw new Error('Method not implemented.');
|
|
8334
8426
|
}
|
|
8427
|
+
// eslint-disable-next-line class-methods-use-this
|
|
8428
|
+
getFloatingOffset() {
|
|
8429
|
+
return {
|
|
8430
|
+
mainAxis: 4,
|
|
8431
|
+
crossAxis: 0,
|
|
8432
|
+
};
|
|
8433
|
+
}
|
|
8335
8434
|
get reference() {
|
|
8336
8435
|
return this.getReferenceElement();
|
|
8337
8436
|
}
|
|
@@ -8349,7 +8448,11 @@ class Popover extends Component {
|
|
|
8349
8448
|
if (!this.reference || !this.floating) {
|
|
8350
8449
|
return;
|
|
8351
8450
|
}
|
|
8352
|
-
|
|
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) {
|
|
8353
8456
|
this.floating.showPopover();
|
|
8354
8457
|
}
|
|
8355
8458
|
this.reposition('auto');
|
|
@@ -8362,7 +8465,9 @@ class Popover extends Component {
|
|
|
8362
8465
|
return;
|
|
8363
8466
|
}
|
|
8364
8467
|
this.open = false;
|
|
8365
|
-
if (this.floating != null &&
|
|
8468
|
+
if (this.floating != null &&
|
|
8469
|
+
isPopover(this.floating) &&
|
|
8470
|
+
this.floating.isConnected) {
|
|
8366
8471
|
this.floating.hidePopover();
|
|
8367
8472
|
}
|
|
8368
8473
|
__classPrivateFieldGet$1(this, _Popover_updateCleanup, "f")?.call(this);
|
|
@@ -8379,99 +8484,70 @@ class Popover extends Component {
|
|
|
8379
8484
|
_Popover_updateCleanup = new WeakMap(), _Popover_getArrowPosition = new WeakMap();
|
|
8380
8485
|
|
|
8381
8486
|
const DEFAULT_SELECTORS = {
|
|
8382
|
-
referenceSelector: "slot[name='reference']::slotted(*),",
|
|
8383
8487
|
floatingSelector: "slot[name='floating']::slotted(*)",
|
|
8488
|
+
arrowSelector: '#arrow',
|
|
8384
8489
|
};
|
|
8385
|
-
function
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
:
|
|
8393
|
-
--m-popover-background-color: ${getColor('color-background-secondary-inverted')};
|
|
8394
|
-
--m-popover-border-radius: ${getToken$1('border-radius-m')};
|
|
8395
|
-
--m-popover-border-width: 0;
|
|
8396
|
-
--m-popover-border-style: none;
|
|
8397
|
-
--m-popover-overflow-x: hidden;
|
|
8398
|
-
--m-popover-overflow-y: visible;
|
|
8399
|
-
--m-popover-border-color: transparent;
|
|
8400
|
-
--m-popover-color: ${getColor('color-text-inverted')};
|
|
8401
|
-
--m-popover-elevation: ${getToken$1('elevation-2')};
|
|
8402
|
-
--m-popover-width: initial;
|
|
8403
|
-
--m-popover-min-width: initial;
|
|
8404
|
-
--m-popover-max-width: initial;
|
|
8405
|
-
--m-popover-z-index: 10;
|
|
8406
|
-
--m-popover-floating-spacing-x: ${getToken$1('spacing-4')};
|
|
8407
|
-
--m-popover-floating-spacing-y: ${getToken$1('spacing-2')};
|
|
8408
|
-
--m-popover-floating-display: none;
|
|
8409
|
-
--m-popover-floating-position: fixed;
|
|
8410
|
-
|
|
8411
|
-
--m-popover-arrow-size: 12px;
|
|
8412
|
-
--m-popover-arrow-offset: calc(-1 * (var(--m-popover-arrow-size) / 2));
|
|
8413
|
-
|
|
8414
|
-
position: relative;
|
|
8415
|
-
}
|
|
8416
|
-
|
|
8417
|
-
${r$8(referenceSelector)} {
|
|
8418
|
-
display: inline-flex;
|
|
8419
|
-
}
|
|
8420
|
-
|
|
8421
|
-
${r$8(floatingSelector)} {
|
|
8422
|
-
${transition([{ property: 'box-shadow' }])};
|
|
8423
|
-
${typography('body-md')};
|
|
8424
|
-
|
|
8425
|
-
padding-inline: var(--m-popover-floating-spacing-x);
|
|
8426
|
-
padding-block: var(--m-popover-floating-spacing-y);
|
|
8427
|
-
margin: 0;
|
|
8428
|
-
|
|
8429
|
-
position: var(--m-popover-floating-position);
|
|
8430
|
-
display: var(--m-popover-floating-display);
|
|
8431
|
-
|
|
8432
|
-
box-sizing: border-box;
|
|
8433
|
-
inline-size: var(--m-popover-width);
|
|
8434
|
-
min-inline-size: var(--m-popover-min-width);
|
|
8435
|
-
max-inline-size: var(--m-popover-max-width);
|
|
8436
|
-
|
|
8437
|
-
overflow-x: var(--m-popover-overflow-x);
|
|
8438
|
-
overflow-y: var(--m-popover-overflow-y);
|
|
8439
|
-
|
|
8440
|
-
border-width: var(--m-popover-border-width);
|
|
8441
|
-
border-style: var(--m-popover-border-style);
|
|
8442
|
-
border-color: var(--m-popover-border-color);
|
|
8443
|
-
border-radius: var(--m-popover-border-radius);
|
|
8444
|
-
|
|
8445
|
-
background-color: var(--m-popover-background-color);
|
|
8446
|
-
color: var(--m-popover-color);
|
|
8447
|
-
|
|
8448
|
-
box-shadow: var(--m-popover-elevation);
|
|
8449
|
-
z-index: var(--m-popover-z-index);
|
|
8450
|
-
}
|
|
8490
|
+
function popoverHostStyles() {
|
|
8491
|
+
return i$9 `
|
|
8492
|
+
:host {
|
|
8493
|
+
--m-popover-elevation: ${getToken$1('elevation-2')};
|
|
8494
|
+
--m-popover-floating-position: fixed;
|
|
8495
|
+
--m-popover-z-index: 10;
|
|
8496
|
+
--m-popover-arrow-size: 12px;
|
|
8497
|
+
--m-popover-arrow-offset: calc(-1 * (var(--m-popover-arrow-size) / 2));
|
|
8451
8498
|
|
|
8452
|
-
:
|
|
8453
|
-
|
|
8454
|
-
}
|
|
8499
|
+
position: relative;
|
|
8500
|
+
}
|
|
8455
8501
|
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8502
|
+
:host([position='absolute']) {
|
|
8503
|
+
--m-popover-floating-position: absolute;
|
|
8504
|
+
}
|
|
8459
8505
|
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8506
|
+
:host([position='fixed']) {
|
|
8507
|
+
--m-popover-floating-position: fixed;
|
|
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);
|
|
8463
8519
|
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8520
|
+
box-shadow: var(--m-popover-elevation);
|
|
8521
|
+
z-index: var(--m-popover-z-index);
|
|
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);
|
|
8471
8537
|
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8538
|
+
pointer-events: none;
|
|
8539
|
+
}
|
|
8540
|
+
`;
|
|
8541
|
+
}
|
|
8542
|
+
function popoverStyles(selectors = DEFAULT_SELECTORS) {
|
|
8543
|
+
const { floatingSelector, arrowSelector } = {
|
|
8544
|
+
...DEFAULT_SELECTORS,
|
|
8545
|
+
...selectors,
|
|
8546
|
+
};
|
|
8547
|
+
return [
|
|
8548
|
+
popoverHostStyles(),
|
|
8549
|
+
popoverFloatingStyles({ floatingSelector }),
|
|
8550
|
+
popoverArrowStyles({ arrowSelector }),
|
|
8475
8551
|
];
|
|
8476
8552
|
}
|
|
8477
8553
|
|
|
@@ -8606,23 +8682,160 @@ _BoundaryController_handleEvent = new WeakMap(), _BoundaryController_handleBlurE
|
|
|
8606
8682
|
window.removeEventListener('blur', __classPrivateFieldGet$1(this, _BoundaryController_handleBlurEvent, "f"), true);
|
|
8607
8683
|
};
|
|
8608
8684
|
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8614
|
-
|
|
8615
|
-
|
|
8685
|
+
const logger$d = createLogger('expandable-controller');
|
|
8686
|
+
/**
|
|
8687
|
+
* Simple controller for expandable elements using CSS animations
|
|
8688
|
+
*/
|
|
8689
|
+
class ExpandableController {
|
|
8690
|
+
constructor(host, options) {
|
|
8691
|
+
this.host = host;
|
|
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
|
+
`;
|
|
8616
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)];
|
|
8814
|
+
}
|
|
8815
|
+
|
|
8617
8816
|
/**
|
|
8618
8817
|
* Check if `keyboardEventKey` is a character, and more specifically, anything
|
|
8619
8818
|
* 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
|
|
8620
8820
|
*/
|
|
8621
8821
|
function isPrintableCharacter(keyboardEventKey) {
|
|
8622
8822
|
const printableCharacterRegex = /\S/;
|
|
8623
8823
|
return (keyboardEventKey.length === 1 &&
|
|
8624
8824
|
printableCharacterRegex.test(keyboardEventKey));
|
|
8625
8825
|
}
|
|
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
|
+
}
|
|
8626
8839
|
/**
|
|
8627
8840
|
* Manages **virtual/visual** focus, for a11y purposes.
|
|
8628
8841
|
*/
|
|
@@ -8630,50 +8843,64 @@ class FocusManagerController {
|
|
|
8630
8843
|
constructor(host, options) {
|
|
8631
8844
|
_FocusManagerController_instances.add(this);
|
|
8632
8845
|
this.activeDescendant = null;
|
|
8633
|
-
|
|
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) => {
|
|
8634
8852
|
if (!element || isDisabled(element) || !element.id) {
|
|
8635
|
-
logger$
|
|
8853
|
+
logger$c.debug('could not focus element', element, !element?.id ? ' element has no id' : '');
|
|
8636
8854
|
return;
|
|
8637
8855
|
}
|
|
8638
|
-
this.clear(
|
|
8856
|
+
this.clear({
|
|
8857
|
+
onBlur: options?.onBlur,
|
|
8858
|
+
});
|
|
8639
8859
|
this.activeDescendant = element.id;
|
|
8640
8860
|
this.getInteractiveElement(this.host).setAttribute('aria-activedescendant', element.id);
|
|
8641
8861
|
element.classList.add('is-focused');
|
|
8642
|
-
element
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
|
|
8862
|
+
// Scroll the element into view after the call stack is cleared to allow the browser to update the layout
|
|
8863
|
+
setTimeout(() => {
|
|
8864
|
+
element.scrollIntoView({
|
|
8865
|
+
block: 'nearest',
|
|
8866
|
+
inline: 'nearest',
|
|
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
8874
|
});
|
|
8648
|
-
|
|
8649
|
-
__classPrivateFieldGet$1(this,
|
|
8875
|
+
_FocusManagerController_focusId.set(this, (id, options) => {
|
|
8876
|
+
this.focusElement(__classPrivateFieldGet$1(this, _FocusManagerController_instances, "m", _FocusManagerController_findQueriedById).call(this, id), options);
|
|
8650
8877
|
});
|
|
8651
|
-
_FocusManagerController_focusPosition.set(this, (position) => {
|
|
8878
|
+
_FocusManagerController_focusPosition.set(this, (position, options) => {
|
|
8652
8879
|
const currentFocusedIndex = __classPrivateFieldGet$1(this, _FocusManagerController_instances, "m", _FocusManagerController_getIndexOfQueried).call(this, this.focused);
|
|
8653
8880
|
switch (position) {
|
|
8654
8881
|
case 'first':
|
|
8655
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, 0);
|
|
8882
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, 0, options);
|
|
8656
8883
|
break;
|
|
8657
8884
|
case 'last':
|
|
8658
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, this.queried.length - 1);
|
|
8885
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, this.queried.length - 1, options);
|
|
8659
8886
|
break;
|
|
8660
8887
|
case 'previous': {
|
|
8661
8888
|
if (currentFocusedIndex === -1) {
|
|
8662
|
-
logger$
|
|
8663
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, currentFocusedIndex);
|
|
8889
|
+
logger$c.debug('focus previous, could not get current focused; focusing on last queried instead');
|
|
8890
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, currentFocusedIndex, options);
|
|
8664
8891
|
return;
|
|
8665
8892
|
}
|
|
8666
8893
|
// it's ok to have a negative index here. `Array.prototype.at()` will handle that correctly.
|
|
8667
8894
|
const previousItemIndex = (currentFocusedIndex - 1) % this.queried.length;
|
|
8668
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, previousItemIndex);
|
|
8895
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, previousItemIndex, options);
|
|
8669
8896
|
break;
|
|
8670
8897
|
}
|
|
8671
8898
|
case 'next': {
|
|
8672
8899
|
if (currentFocusedIndex === -1) {
|
|
8673
|
-
logger$
|
|
8900
|
+
logger$c.debug('focus next, could not get current focused. focusing on first queried instead');
|
|
8674
8901
|
}
|
|
8675
8902
|
const nextItemIndex = (currentFocusedIndex + 1) % this.queried.length;
|
|
8676
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, nextItemIndex);
|
|
8903
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, nextItemIndex, options);
|
|
8677
8904
|
break;
|
|
8678
8905
|
}
|
|
8679
8906
|
}
|
|
@@ -8682,7 +8909,7 @@ class FocusManagerController {
|
|
|
8682
8909
|
* Moves focus to the next item with a label that starts with the typed character
|
|
8683
8910
|
* if such item exists. Otherwise, focus does not move.
|
|
8684
8911
|
*/
|
|
8685
|
-
|
|
8912
|
+
_FocusManagerController_handleKeyUp.set(this, (event) => {
|
|
8686
8913
|
const { key } = event;
|
|
8687
8914
|
if (!isPrintableCharacter(key)) {
|
|
8688
8915
|
return;
|
|
@@ -8740,13 +8967,13 @@ class FocusManagerController {
|
|
|
8740
8967
|
}
|
|
8741
8968
|
hostConnected() {
|
|
8742
8969
|
if (!this.focusOnType) {
|
|
8743
|
-
logger$
|
|
8970
|
+
logger$c.debug('focus on type is disabled. Controller will not listen to keyup events');
|
|
8744
8971
|
return;
|
|
8745
8972
|
}
|
|
8746
|
-
this.host.addEventListener('keyup', __classPrivateFieldGet$1(this,
|
|
8973
|
+
this.host.addEventListener('keyup', __classPrivateFieldGet$1(this, _FocusManagerController_handleKeyUp, "f"));
|
|
8747
8974
|
}
|
|
8748
8975
|
hostDisconnected() {
|
|
8749
|
-
this.host.removeEventListener('keyup', __classPrivateFieldGet$1(this,
|
|
8976
|
+
this.host.removeEventListener('keyup', __classPrivateFieldGet$1(this, _FocusManagerController_handleKeyUp, "f"));
|
|
8750
8977
|
}
|
|
8751
8978
|
/**
|
|
8752
8979
|
* Get the list of elements matching the given `options.query`.
|
|
@@ -8766,53 +8993,66 @@ class FocusManagerController {
|
|
|
8766
8993
|
}
|
|
8767
8994
|
return __classPrivateFieldGet$1(this, _FocusManagerController_instances, "m", _FocusManagerController_findQueriedById).call(this, this.activeDescendant);
|
|
8768
8995
|
}
|
|
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
|
+
}
|
|
8769
9006
|
/**
|
|
8770
9007
|
* If none of the options are selected, the first option receives focus; otherwise, the
|
|
8771
9008
|
* focus moves to the next option.
|
|
8772
9009
|
* If we are at the end of the `queried` array, the focus moves to the first option.
|
|
8773
9010
|
*/
|
|
8774
|
-
focusNext() {
|
|
8775
|
-
this.focus('next');
|
|
9011
|
+
focusNext(options) {
|
|
9012
|
+
this.focus('next', options);
|
|
8776
9013
|
}
|
|
8777
9014
|
/**
|
|
8778
9015
|
* If none of the options are selected, the last option receives focus; otherwise, the
|
|
8779
9016
|
* focus moves to the next option.
|
|
8780
9017
|
* If we are at the start of the `queried` array, the focus moves to the last option.
|
|
8781
9018
|
*/
|
|
8782
|
-
focusPrevious() {
|
|
8783
|
-
this.focus('previous');
|
|
9019
|
+
focusPrevious(options) {
|
|
9020
|
+
this.focus('previous', options);
|
|
8784
9021
|
}
|
|
8785
9022
|
/**
|
|
8786
9023
|
* Focus the first element in `queried`.
|
|
8787
9024
|
*/
|
|
8788
|
-
focusFirst() {
|
|
8789
|
-
this.focus(0);
|
|
9025
|
+
focusFirst(options) {
|
|
9026
|
+
this.focus(0, options);
|
|
8790
9027
|
}
|
|
8791
9028
|
/**
|
|
8792
9029
|
* Focus the last element in `queried`.
|
|
8793
9030
|
*/
|
|
8794
|
-
focusLast() {
|
|
8795
|
-
this.focus(this.queried.length - 1);
|
|
9031
|
+
focusLast(options) {
|
|
9032
|
+
this.focus(this.queried.length - 1, options);
|
|
8796
9033
|
}
|
|
8797
9034
|
/**
|
|
8798
9035
|
* Focus the given element or the element at the given index or position, based on `queried`.
|
|
8799
9036
|
*/
|
|
8800
|
-
focus(where) {
|
|
9037
|
+
focus(where, options) {
|
|
8801
9038
|
if (typeof where === 'number') {
|
|
8802
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, where);
|
|
9039
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusIndex, "f").call(this, where, options);
|
|
9040
|
+
}
|
|
9041
|
+
else if (where instanceof HTMLElement) {
|
|
9042
|
+
this.focusElement(where, options);
|
|
8803
9043
|
}
|
|
8804
|
-
else if (
|
|
8805
|
-
__classPrivateFieldGet$1(this, _FocusManagerController_focusPosition, "f").call(this, where);
|
|
9044
|
+
else if (isPositionalFocus(where)) {
|
|
9045
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusPosition, "f").call(this, where, options);
|
|
8806
9046
|
}
|
|
8807
9047
|
else {
|
|
8808
|
-
__classPrivateFieldGet$1(this,
|
|
9048
|
+
__classPrivateFieldGet$1(this, _FocusManagerController_focusId, "f").call(this, where, options);
|
|
8809
9049
|
}
|
|
8810
9050
|
}
|
|
8811
9051
|
/**
|
|
8812
9052
|
* Remove the visual focus (`.is-focused` class) from the currently focused element and
|
|
8813
9053
|
* clear the `activeDescendant` attribute.
|
|
8814
9054
|
*/
|
|
8815
|
-
clear() {
|
|
9055
|
+
clear(options) {
|
|
8816
9056
|
this.getInteractiveElement(this.host).removeAttribute('aria-activedescendant');
|
|
8817
9057
|
const element = this.focused;
|
|
8818
9058
|
this.activeDescendant = null;
|
|
@@ -8820,9 +9060,10 @@ class FocusManagerController {
|
|
|
8820
9060
|
return;
|
|
8821
9061
|
}
|
|
8822
9062
|
element.classList.remove('is-focused');
|
|
9063
|
+
options?.onBlur?.(element);
|
|
8823
9064
|
}
|
|
8824
9065
|
}
|
|
8825
|
-
|
|
9066
|
+
_FocusManagerController_focusIndex = new WeakMap(), _FocusManagerController_focusId = new WeakMap(), _FocusManagerController_focusPosition = new WeakMap(), _FocusManagerController_handleKeyUp = new WeakMap(), _FocusManagerController_clearBufferAfterDelay = new WeakMap(), _FocusManagerController_findMatchInRange = new WeakMap(), _FocusManagerController_instances = new WeakSet(), _FocusManagerController_getIndexOfQueried = function _FocusManagerController_getIndexOfQueried(element) {
|
|
8826
9067
|
if (!element) {
|
|
8827
9068
|
return -1;
|
|
8828
9069
|
}
|
|
@@ -8833,6 +9074,90 @@ _FocusManagerController_focusElement = new WeakMap(), _FocusManagerController_fo
|
|
|
8833
9074
|
}) ?? null);
|
|
8834
9075
|
};
|
|
8835
9076
|
|
|
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
|
+
|
|
8836
9161
|
var _KeyboardSupportController_instances, _KeyboardSupportController_handleKey, _KeyboardSupportController_subscribe, _KeyboardSupportController_unsubscribe;
|
|
8837
9162
|
const logger$a = createLogger('keyboard-support-controller');
|
|
8838
9163
|
function getShortcutKey(shortcut) {
|
|
@@ -8905,37 +9230,43 @@ _KeyboardSupportController_handleKey = new WeakMap(), _KeyboardSupportController
|
|
|
8905
9230
|
target?.removeEventListener(this.event, __classPrivateFieldGet$1(this, _KeyboardSupportController_handleKey, "f"));
|
|
8906
9231
|
};
|
|
8907
9232
|
|
|
8908
|
-
const TRIGGER_SELECTOR
|
|
9233
|
+
const TRIGGER_SELECTOR = '[aria-haspopup="true"]';
|
|
8909
9234
|
const MENU_SELECTOR$1 = '[role="menu"]';
|
|
8910
|
-
const ITEM_SELECTOR = '[role="menuitem"]';
|
|
8911
|
-
|
|
9235
|
+
const ITEM_SELECTOR$1 = '[role="menuitem"]';
|
|
8912
9236
|
function dropdownStyles() {
|
|
8913
9237
|
return [
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
floatingSelector: `::slotted(${MENU_SELECTOR$1})`,
|
|
8917
|
-
}),
|
|
9238
|
+
popoverHostStyles(),
|
|
9239
|
+
expandableHostStyles(),
|
|
8918
9240
|
i$9 `
|
|
8919
9241
|
:host {
|
|
8920
|
-
--m-popover-floating-spacing-x: ${getToken$1('spacing-2')};
|
|
8921
|
-
--m-popover-floating-spacing-y: ${getToken$1('spacing-2')};
|
|
8922
|
-
/* TODO: figure out a way to avoid layout shift when using narrow triggers */
|
|
8923
|
-
--m-popover-width: max-content;
|
|
8924
|
-
--m-popover-min-width: 16ch;
|
|
8925
|
-
|
|
8926
9242
|
display: inline-block;
|
|
9243
|
+
box-sizing: border-box;
|
|
8927
9244
|
}
|
|
8928
9245
|
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
outline: none;
|
|
9246
|
+
:host([hidden]) {
|
|
9247
|
+
display: none;
|
|
8933
9248
|
}
|
|
8934
9249
|
|
|
8935
|
-
|
|
9250
|
+
::slotted(${r$8(MENU_SELECTOR$1)}) {
|
|
9251
|
+
outline: none;
|
|
8936
9252
|
display: inline-flex;
|
|
8937
|
-
|
|
8938
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;
|
|
9262
|
+
|
|
9263
|
+
overflow: auto;
|
|
9264
|
+
|
|
9265
|
+
border: none;
|
|
9266
|
+
border-radius: ${getToken$1('border-radius-m')};
|
|
9267
|
+
|
|
9268
|
+
background-color: ${getColor('color-background-primary')};
|
|
9269
|
+
color: ${getColor('color-text-secondary')};
|
|
8939
9270
|
}
|
|
8940
9271
|
`,
|
|
8941
9272
|
];
|
|
@@ -8944,7 +9275,7 @@ function triggerStyles() {
|
|
|
8944
9275
|
return [
|
|
8945
9276
|
i$9 `
|
|
8946
9277
|
:host {
|
|
8947
|
-
--m-dropdown-trigger-background-color:
|
|
9278
|
+
--m-dropdown-trigger-background-color: inherit;
|
|
8948
9279
|
--m-dropdown-trigger-border-color: ${getColor('color-border-input')};
|
|
8949
9280
|
--m-dropdown-trigger-border-radius: ${getToken$1('border-radius-s')};
|
|
8950
9281
|
--m-dropdown-trigger-color: ${getColor('color-text-tertiary')};
|
|
@@ -9048,6 +9379,14 @@ function triggerStyles() {
|
|
|
9048
9379
|
`,
|
|
9049
9380
|
];
|
|
9050
9381
|
}
|
|
9382
|
+
function menuStyles() {
|
|
9383
|
+
return [
|
|
9384
|
+
expandableElementStyles(),
|
|
9385
|
+
popoverFloatingStyles({
|
|
9386
|
+
floatingSelector: ':host',
|
|
9387
|
+
}),
|
|
9388
|
+
];
|
|
9389
|
+
}
|
|
9051
9390
|
function itemStyles() {
|
|
9052
9391
|
return [
|
|
9053
9392
|
i$9 `
|
|
@@ -9152,16 +9491,12 @@ class Dropdown extends Popover {
|
|
|
9152
9491
|
constructor() {
|
|
9153
9492
|
super();
|
|
9154
9493
|
_Dropdown_controllers.set(this, void 0);
|
|
9155
|
-
// eslint-disable-next-line class-methods-use-this
|
|
9156
|
-
this.getFloatingOffset = () => {
|
|
9157
|
-
return 4;
|
|
9158
|
-
};
|
|
9159
9494
|
_Dropdown_handleClick.set(this, (event) => {
|
|
9160
9495
|
const { target } = event;
|
|
9161
9496
|
if (!target) {
|
|
9162
9497
|
return;
|
|
9163
9498
|
}
|
|
9164
|
-
if (target.matches(ITEM_SELECTOR)) {
|
|
9499
|
+
if (target.matches(ITEM_SELECTOR$1)) {
|
|
9165
9500
|
/**
|
|
9166
9501
|
* we set focus so we can trigger the item click event when the user
|
|
9167
9502
|
* presses <Enter> or <Space>, through the KeyboardSupportController.
|
|
@@ -9180,7 +9515,7 @@ class Dropdown extends Popover {
|
|
|
9180
9515
|
* - https://css-tricks.com/when-a-click-is-not-just-a-click/
|
|
9181
9516
|
* - https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail
|
|
9182
9517
|
*/
|
|
9183
|
-
if (target.matches(TRIGGER_SELECTOR
|
|
9518
|
+
if (target.matches(TRIGGER_SELECTOR) &&
|
|
9184
9519
|
event.detail > 0) {
|
|
9185
9520
|
this.toggle();
|
|
9186
9521
|
}
|
|
@@ -9200,8 +9535,14 @@ class Dropdown extends Popover {
|
|
|
9200
9535
|
this.disabled = false;
|
|
9201
9536
|
__classPrivateFieldSet(this, _Dropdown_controllers, {
|
|
9202
9537
|
boundary: new BoundaryController(this),
|
|
9538
|
+
expandable: new ExpandableController(this, {
|
|
9539
|
+
getExpandableElement: () => {
|
|
9540
|
+
return this.getFloatingElement();
|
|
9541
|
+
},
|
|
9542
|
+
isExpanded: () => Boolean(this.open),
|
|
9543
|
+
}),
|
|
9203
9544
|
focus: new FocusManagerController(this, {
|
|
9204
|
-
query: ITEM_SELECTOR,
|
|
9545
|
+
query: ITEM_SELECTOR$1,
|
|
9205
9546
|
getInteractiveElement: () => {
|
|
9206
9547
|
return this.getFloatingElement();
|
|
9207
9548
|
},
|
|
@@ -9216,7 +9557,7 @@ class Dropdown extends Popover {
|
|
|
9216
9557
|
if (!target || this.disabled) {
|
|
9217
9558
|
return;
|
|
9218
9559
|
}
|
|
9219
|
-
if (target.matches(TRIGGER_SELECTOR
|
|
9560
|
+
if (target.matches(TRIGGER_SELECTOR)) {
|
|
9220
9561
|
this.expand({ position: 'last' });
|
|
9221
9562
|
return;
|
|
9222
9563
|
}
|
|
@@ -9234,7 +9575,7 @@ class Dropdown extends Popover {
|
|
|
9234
9575
|
if (!target || this.disabled) {
|
|
9235
9576
|
return;
|
|
9236
9577
|
}
|
|
9237
|
-
if (target.matches(TRIGGER_SELECTOR
|
|
9578
|
+
if (target.matches(TRIGGER_SELECTOR)) {
|
|
9238
9579
|
this.expand({ position: 'first' });
|
|
9239
9580
|
return;
|
|
9240
9581
|
}
|
|
@@ -9257,7 +9598,7 @@ class Dropdown extends Popover {
|
|
|
9257
9598
|
if (!target || this.disabled) {
|
|
9258
9599
|
return;
|
|
9259
9600
|
}
|
|
9260
|
-
if (target.matches(TRIGGER_SELECTOR
|
|
9601
|
+
if (target.matches(TRIGGER_SELECTOR)) {
|
|
9261
9602
|
this.toggle({ position: 'first' });
|
|
9262
9603
|
return;
|
|
9263
9604
|
}
|
|
@@ -9285,7 +9626,7 @@ class Dropdown extends Popover {
|
|
|
9285
9626
|
if (!target) {
|
|
9286
9627
|
return;
|
|
9287
9628
|
}
|
|
9288
|
-
if (target.matches(TRIGGER_SELECTOR
|
|
9629
|
+
if (target.matches(TRIGGER_SELECTOR) &&
|
|
9289
9630
|
this.open) {
|
|
9290
9631
|
__classPrivateFieldGet$1(this, _Dropdown_handleClickOutside, "f").call(this);
|
|
9291
9632
|
}
|
|
@@ -9298,14 +9639,14 @@ class Dropdown extends Popover {
|
|
|
9298
9639
|
this.addEventListener('focusout', __classPrivateFieldGet$1(this, _Dropdown_handleFocusOut, "f"));
|
|
9299
9640
|
this.addEventListener('interactout', __classPrivateFieldGet$1(this, _Dropdown_handleClickOutside, "f"));
|
|
9300
9641
|
}
|
|
9301
|
-
firstUpdated() {
|
|
9642
|
+
firstUpdated(changedProperties) {
|
|
9302
9643
|
if (this.floating?.id) {
|
|
9303
9644
|
this.reference?.setAttribute('aria-controls', this.floating.id);
|
|
9304
9645
|
}
|
|
9305
9646
|
if (this.reference?.id) {
|
|
9306
9647
|
this.floating?.setAttribute('aria-labelledby', this.reference.id);
|
|
9307
9648
|
}
|
|
9308
|
-
super.firstUpdated();
|
|
9649
|
+
super.firstUpdated(changedProperties);
|
|
9309
9650
|
}
|
|
9310
9651
|
updated(changedProperties) {
|
|
9311
9652
|
super.updated(changedProperties);
|
|
@@ -9322,7 +9663,7 @@ class Dropdown extends Popover {
|
|
|
9322
9663
|
}
|
|
9323
9664
|
}
|
|
9324
9665
|
getReferenceElement() {
|
|
9325
|
-
return this.querySelector(TRIGGER_SELECTOR
|
|
9666
|
+
return this.querySelector(TRIGGER_SELECTOR);
|
|
9326
9667
|
}
|
|
9327
9668
|
getFloatingElement() {
|
|
9328
9669
|
return this.querySelector(MENU_SELECTOR$1);
|
|
@@ -9450,6 +9791,7 @@ class DropdownMenu extends WithIdElementMixin(Component) {
|
|
|
9450
9791
|
return x `<slot name="menu-item"></slot>`;
|
|
9451
9792
|
}
|
|
9452
9793
|
}
|
|
9794
|
+
DropdownMenu.styles = [menuStyles()];
|
|
9453
9795
|
DropdownMenu.define();
|
|
9454
9796
|
|
|
9455
9797
|
class DropdownItem extends WithIdElementMixin(Component) {
|
|
@@ -13255,25 +13597,20 @@ _SideNavigationTrigger_handleClick = new WeakMap();
|
|
|
13255
13597
|
SideNavigationTrigger.styles = [sideNavigationTriggerStyles()];
|
|
13256
13598
|
SideNavigationTrigger.define();
|
|
13257
13599
|
|
|
13258
|
-
const TRIGGER_SELECTOR = '[role="combobox"]';
|
|
13259
|
-
const MENU_SELECTOR = '[role="listbox"]';
|
|
13260
13600
|
const SEARCH_DELAY = 250;
|
|
13261
13601
|
|
|
13602
|
+
const MENU_SELECTOR = '[role="listbox"]';
|
|
13603
|
+
const ITEM_SELECTOR = 'm-option';
|
|
13262
13604
|
function selectStyles() {
|
|
13263
13605
|
return [
|
|
13264
|
-
|
|
13265
|
-
|
|
13606
|
+
expandableStyles({
|
|
13607
|
+
expandableSelector: MENU_SELECTOR,
|
|
13608
|
+
}),
|
|
13609
|
+
popoverStyles({
|
|
13266
13610
|
floatingSelector: MENU_SELECTOR,
|
|
13267
13611
|
}),
|
|
13268
13612
|
i$9 `
|
|
13269
13613
|
:host {
|
|
13270
|
-
--m-popover-floating-spacing-x: ${getToken$1('spacing-2')};
|
|
13271
|
-
--m-popover-floating-spacing-y: ${getToken$1('spacing-2')};
|
|
13272
|
-
/* TODO: figure out a way to avoid layout shift when using narrow triggers */
|
|
13273
|
-
--m-popover-width: max-content;
|
|
13274
|
-
--m-popover-min-width: 16ch;
|
|
13275
|
-
--m-popover-color: ${getColor('color-text-secondary')};
|
|
13276
|
-
|
|
13277
13614
|
--m-select-min-width: 10ch;
|
|
13278
13615
|
--m-select-max-width: 280px;
|
|
13279
13616
|
--m-select-max-height: 240px;
|
|
@@ -13292,17 +13629,32 @@ function selectStyles() {
|
|
|
13292
13629
|
}
|
|
13293
13630
|
|
|
13294
13631
|
${r$8(MENU_SELECTOR)} {
|
|
13295
|
-
|
|
13296
|
-
|
|
13632
|
+
display: inline-flex;
|
|
13633
|
+
flex-direction: column;
|
|
13297
13634
|
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
}
|
|
13635
|
+
padding-inline: ${getToken$1('spacing-2')};
|
|
13636
|
+
padding-block: ${getToken$1('spacing-2')};
|
|
13301
13637
|
|
|
13302
|
-
|
|
13303
|
-
display: inline-flex;
|
|
13638
|
+
margin: 0;
|
|
13304
13639
|
|
|
13305
|
-
|
|
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;
|
|
13655
|
+
|
|
13656
|
+
max-block-size: var(--m-select-max-height);
|
|
13657
|
+
outline: none;
|
|
13306
13658
|
}
|
|
13307
13659
|
|
|
13308
13660
|
/**
|
|
@@ -13501,7 +13853,7 @@ function pickerStyles() {
|
|
|
13501
13853
|
*/
|
|
13502
13854
|
:host([type='single']:not(:focus-within)) #clear,
|
|
13503
13855
|
:host([type='single']:focus-within)
|
|
13504
|
-
#trigger-wrapper:has(> #trigger:placeholder-shown)
|
|
13856
|
+
#trigger-wrapper:has(${r$8('> #trigger:placeholder-shown')})
|
|
13505
13857
|
~ #clear {
|
|
13506
13858
|
visibility: hidden;
|
|
13507
13859
|
opacity: 0;
|
|
@@ -15106,7 +15458,8 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15106
15458
|
},
|
|
15107
15459
|
loading: { type: Boolean },
|
|
15108
15460
|
name: { type: String, reflect: true },
|
|
15109
|
-
placeholder: { type: String },
|
|
15461
|
+
placeholder: { type: String, reflect: true },
|
|
15462
|
+
label: { type: String, reflect: true },
|
|
15110
15463
|
size: { type: String, reflect: true },
|
|
15111
15464
|
status: { type: String, reflect: true },
|
|
15112
15465
|
type: { type: String, reflect: true },
|
|
@@ -15161,6 +15514,7 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15161
15514
|
__classPrivateFieldGet$1(this, _Select_instances, "m", _Select_updatePicker).call(this);
|
|
15162
15515
|
__classPrivateFieldGet$1(this, _Select_controllers, "f").boundary.deactivate();
|
|
15163
15516
|
__classPrivateFieldGet$1(this, _Select_controllers, "f").focus.clear();
|
|
15517
|
+
this.trigger?.focus();
|
|
15164
15518
|
this.emit('collapse');
|
|
15165
15519
|
};
|
|
15166
15520
|
/**
|
|
@@ -15186,13 +15540,23 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15186
15540
|
this.expand();
|
|
15187
15541
|
}
|
|
15188
15542
|
this.loading = true;
|
|
15189
|
-
|
|
15190
|
-
|
|
15191
|
-
|
|
15192
|
-
|
|
15193
|
-
|
|
15194
|
-
|
|
15195
|
-
|
|
15543
|
+
try {
|
|
15544
|
+
this.filteredOptions = this.slottedOptions.filter((descendant) => {
|
|
15545
|
+
const itemTextLowerCase = descendant.label.toLowerCase();
|
|
15546
|
+
const matches = itemTextLowerCase.includes(normalizedSearchTerm);
|
|
15547
|
+
descendant.toggleAttribute('hidden', !matches);
|
|
15548
|
+
return matches;
|
|
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
|
+
}
|
|
15196
15560
|
if (options.emit) {
|
|
15197
15561
|
this.emit('search');
|
|
15198
15562
|
}
|
|
@@ -15249,6 +15613,10 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15249
15613
|
option.toggleAttribute('hidden', false);
|
|
15250
15614
|
}
|
|
15251
15615
|
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
|
+
});
|
|
15252
15620
|
});
|
|
15253
15621
|
_Select_clearSearchDebounce.set(this, () => {
|
|
15254
15622
|
window.clearTimeout(__classPrivateFieldGet$1(this, _Select_searchDebounce, "f"));
|
|
@@ -15305,17 +15673,15 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15305
15673
|
/**
|
|
15306
15674
|
* we are only intested when the event happens during the selection of an option,
|
|
15307
15675
|
* not, for example, when the user hits enter to remove a tag.
|
|
15308
|
-
* we check for the trigger selector because that's what the target will be when the user
|
|
15309
|
-
* is selecting an option.
|
|
15310
15676
|
*/
|
|
15311
|
-
if (!element.matches(
|
|
15677
|
+
if (!element.matches(ITEM_SELECTOR)) {
|
|
15312
15678
|
return;
|
|
15313
15679
|
}
|
|
15314
15680
|
const option = __classPrivateFieldGet$1(this, _Select_controllers, "f").focus.focused;
|
|
15315
15681
|
if (!option || option.disabled) {
|
|
15316
15682
|
return;
|
|
15317
15683
|
}
|
|
15318
|
-
|
|
15684
|
+
// at this point, roving focus is already set to the selected option
|
|
15319
15685
|
this.toggleOptions(option.value);
|
|
15320
15686
|
if (!this.isMultiple) {
|
|
15321
15687
|
this.collapse();
|
|
@@ -15362,9 +15728,8 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15362
15728
|
return;
|
|
15363
15729
|
}
|
|
15364
15730
|
const element = event.target;
|
|
15365
|
-
if (element.matches(
|
|
15731
|
+
if (element.matches(ITEM_SELECTOR) && element.value) {
|
|
15366
15732
|
this.toggleOptions(element.value);
|
|
15367
|
-
this.trigger?.focus();
|
|
15368
15733
|
if (!this.isMultiple) {
|
|
15369
15734
|
this.collapse();
|
|
15370
15735
|
return;
|
|
@@ -15374,7 +15739,6 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15374
15739
|
}
|
|
15375
15740
|
if (!this.open && !element.matches('m-close-button')) {
|
|
15376
15741
|
this.expand();
|
|
15377
|
-
this.trigger?.focus();
|
|
15378
15742
|
}
|
|
15379
15743
|
});
|
|
15380
15744
|
_Select_handleClickOutside.set(this, async () => {
|
|
@@ -15405,9 +15769,11 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15405
15769
|
flatten: true,
|
|
15406
15770
|
})
|
|
15407
15771
|
.filter((descendant) => {
|
|
15408
|
-
return descendant.matches(
|
|
15772
|
+
return descendant.matches(ITEM_SELECTOR);
|
|
15409
15773
|
});
|
|
15410
15774
|
this.slottedOptions = elements;
|
|
15775
|
+
// Initialize focus controller now that options are slotted
|
|
15776
|
+
__classPrivateFieldGet$1(this, _Select_controllers, "f").focus.initialize();
|
|
15411
15777
|
});
|
|
15412
15778
|
_Select_handleStatusChange.set(this, (status) => {
|
|
15413
15779
|
/**
|
|
@@ -15460,7 +15826,7 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15460
15826
|
* Sync the `selected` attributes for the queriable options.
|
|
15461
15827
|
*/
|
|
15462
15828
|
_Select_updateOptions.set(this, () => {
|
|
15463
|
-
for (const element of
|
|
15829
|
+
for (const element of this.slottedOptions) {
|
|
15464
15830
|
element.selected = __classPrivateFieldGet$1(this, _Select_controllers, "f").selection.has(element.value);
|
|
15465
15831
|
}
|
|
15466
15832
|
});
|
|
@@ -15472,22 +15838,28 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15472
15838
|
this.position = 'absolute';
|
|
15473
15839
|
this.placement = 'bottom-start';
|
|
15474
15840
|
this.size = 'default';
|
|
15841
|
+
this.label = 'Select';
|
|
15475
15842
|
__classPrivateFieldSet(this, _Select_controllers, {
|
|
15476
15843
|
boundary: new BoundaryController(this),
|
|
15477
|
-
|
|
15844
|
+
expandable: new ExpandableController(this, {
|
|
15845
|
+
getExpandableElement: () => {
|
|
15846
|
+
return this.renderRoot?.querySelector(MENU_SELECTOR);
|
|
15847
|
+
},
|
|
15848
|
+
isExpanded: () => Boolean(this.open),
|
|
15849
|
+
}),
|
|
15850
|
+
focus: new RovingFocusController(this, {
|
|
15478
15851
|
query: () => {
|
|
15479
|
-
const selectors =
|
|
15852
|
+
const selectors = `${ITEM_SELECTOR}:not([hidden])`;
|
|
15480
15853
|
return Array.from(this.querySelectorAll(selectors));
|
|
15481
15854
|
},
|
|
15482
15855
|
// search on type should happen via the input, not keyboard shortcuts.
|
|
15483
15856
|
focusOnType: false,
|
|
15484
15857
|
getInteractiveElement: () => {
|
|
15485
|
-
return this.
|
|
15858
|
+
return this.trigger;
|
|
15486
15859
|
},
|
|
15487
15860
|
}),
|
|
15488
15861
|
keyboard: new KeyboardSupportController(this, __classPrivateFieldGet$1(this, _Select_getKeyboardShortcuts, "f").call(this), {
|
|
15489
15862
|
event: 'keydown',
|
|
15490
|
-
getEventTarget: () => this.renderRoot,
|
|
15491
15863
|
}),
|
|
15492
15864
|
selection: new SelectionController$1(this, {
|
|
15493
15865
|
getSelectionType: () => this.type,
|
|
@@ -15569,11 +15941,13 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15569
15941
|
type="text"
|
|
15570
15942
|
id="trigger"
|
|
15571
15943
|
role="combobox"
|
|
15944
|
+
autocomplete="off"
|
|
15572
15945
|
aria-haspopup="true"
|
|
15573
15946
|
aria-controls="menu"
|
|
15574
15947
|
aria-autocomplete="list"
|
|
15575
15948
|
aria-expanded=${this.open ? 'true' : 'false'}
|
|
15576
15949
|
placeholder="${o$3(this.placeholder)}"
|
|
15950
|
+
aria-label="${o$3(this.label)}"
|
|
15577
15951
|
?disabled=${this.disabled}
|
|
15578
15952
|
@change=${__classPrivateFieldGet$1(this, _Select_handleTriggerChange, "f")}
|
|
15579
15953
|
@input=${__classPrivateFieldGet$1(this, _Select_handleTriggerInput, "f")}
|
|
@@ -15648,7 +16022,7 @@ class Select extends WithSelectionControlMixin(Popover) {
|
|
|
15648
16022
|
}
|
|
15649
16023
|
}
|
|
15650
16024
|
_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) {
|
|
15651
|
-
const firstOption =
|
|
16025
|
+
const firstOption = this.slottedOptions.find((option) => option.matches(':not([hidden])'));
|
|
15652
16026
|
if (!firstOption) {
|
|
15653
16027
|
logger$6.warn('No options found in the select');
|
|
15654
16028
|
return;
|
|
@@ -17522,7 +17896,7 @@ function tableControlExpandStyles() {
|
|
|
17522
17896
|
}
|
|
17523
17897
|
function tableControlSelectStyles() {
|
|
17524
17898
|
return [
|
|
17525
|
-
styles$
|
|
17899
|
+
styles$r(),
|
|
17526
17900
|
i$9 `
|
|
17527
17901
|
:host {
|
|
17528
17902
|
display: inline-flex;
|
|
@@ -20149,7 +20523,7 @@ function toggleGroupStyles() {
|
|
|
20149
20523
|
}
|
|
20150
20524
|
function toggleStyles() {
|
|
20151
20525
|
return [
|
|
20152
|
-
styles$
|
|
20526
|
+
styles$E(),
|
|
20153
20527
|
i$9 `
|
|
20154
20528
|
:host {
|
|
20155
20529
|
${typography('button-md')};
|
|
@@ -20458,15 +20832,94 @@ function convertTriggerFromAttribute(value) {
|
|
|
20458
20832
|
|
|
20459
20833
|
function styles$3() {
|
|
20460
20834
|
return [
|
|
20461
|
-
|
|
20462
|
-
floatingSelector: ':host',
|
|
20835
|
+
popoverStyles({
|
|
20836
|
+
floatingSelector: ':host',
|
|
20463
20837
|
}),
|
|
20464
20838
|
i$9 `
|
|
20465
20839
|
:host {
|
|
20466
|
-
|
|
20467
|
-
|
|
20468
|
-
--m-
|
|
20469
|
-
--m-
|
|
20840
|
+
${typography('body-md')};
|
|
20841
|
+
|
|
20842
|
+
--m-tooltip-min-width: 80px;
|
|
20843
|
+
--m-tooltip-max-width: 240px;
|
|
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
|
+
}
|
|
20470
20923
|
}
|
|
20471
20924
|
`,
|
|
20472
20925
|
];
|
|
@@ -20562,11 +21015,14 @@ class Tooltip extends WithIdElementMixin(Popover) {
|
|
|
20562
21015
|
this.reference.removeEventListener('mouseover', __classPrivateFieldGet$1(this, _Tooltip_handleMouseOver, "f"));
|
|
20563
21016
|
this.reference.removeEventListener('mouseout', __classPrivateFieldGet$1(this, _Tooltip_handleMouseOut, "f"));
|
|
20564
21017
|
}
|
|
20565
|
-
firstUpdated() {
|
|
20566
|
-
super.firstUpdated();
|
|
21018
|
+
firstUpdated(changedProperties) {
|
|
21019
|
+
super.firstUpdated(changedProperties);
|
|
20567
21020
|
if (this.reference) {
|
|
20568
21021
|
this.reference.setAttribute('aria-describedby', this.id);
|
|
20569
21022
|
}
|
|
21023
|
+
if (!this.open) {
|
|
21024
|
+
this.style.display = 'none';
|
|
21025
|
+
}
|
|
20570
21026
|
}
|
|
20571
21027
|
update(changedProperties) {
|
|
20572
21028
|
if (changedProperties.has('open')) {
|
|
@@ -20596,6 +21052,17 @@ class Tooltip extends WithIdElementMixin(Popover) {
|
|
|
20596
21052
|
${this.renderArrow()}
|
|
20597
21053
|
`;
|
|
20598
21054
|
}
|
|
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
|
+
}
|
|
20599
21066
|
}
|
|
20600
21067
|
_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();
|
|
20601
21068
|
Tooltip.styles = [styles$3()];
|