@esri/calcite-components 6.0.0-next.3 → 6.0.0-next.30
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/README.md +1 -1
- package/THIRD-PARTY-NOTICES.md +0 -1
- package/dist/cdn/{KE3GJVSQ.js → 22NLVRMQ.js} +1 -1
- package/dist/cdn/26ZHQ7BU.js +2 -0
- package/dist/cdn/{H72BDLS4.js → 27RYO3S3.js} +1 -1
- package/dist/cdn/2MQ3WWV6.js +2 -0
- package/dist/cdn/{XWKUAYS3.js → 2ZG5MX5W.js} +1 -1
- package/dist/cdn/{3NDSBNMP.js → 32L6XZV2.js} +1 -1
- package/dist/cdn/34LORM54.js +2 -0
- package/dist/cdn/{5IR56ZP3.js → 3B2ZDL33.js} +1 -1
- package/dist/cdn/3INSFKSX.js +2 -0
- package/dist/cdn/444236DE.js +2 -0
- package/dist/cdn/47WLTGVK.js +2 -0
- package/dist/cdn/{273FNCX2.js → 4F4R7KYO.js} +1 -1
- package/dist/cdn/4GJVPFBQ.js +2 -0
- package/dist/cdn/4LQENKOC.js +2 -0
- package/dist/cdn/4PMDXBZR.js +2 -0
- package/dist/cdn/4U3UP55J.js +2 -0
- package/dist/cdn/4YAW7S6I.js +2 -0
- package/dist/cdn/{MAWTYBZ2.js → 54Y2XWNM.js} +1 -1
- package/dist/cdn/5LZ756VG.js +2 -0
- package/dist/cdn/5QTRE4DW.js +2 -0
- package/dist/cdn/{OHLKMQOL.js → 5RCRYCLG.js} +1 -1
- package/dist/cdn/5VOEKVT2.js +2 -0
- package/dist/cdn/5XN6EOKV.js +2 -0
- package/dist/cdn/65S2O64A.js +2 -0
- package/dist/cdn/{ITFHBH6Z.js → 66MGO5ZU.js} +1 -1
- package/dist/cdn/66VFQ7FS.js +2 -0
- package/dist/cdn/{XDGVGNRC.js → 6FZVJGKC.js} +1 -1
- package/dist/cdn/6I7EXQHZ.js +2 -0
- package/dist/cdn/{KLJ33TCR.js → 6PI5JKRE.js} +1 -1
- package/dist/cdn/{7YEZVXC4.js → 6RCNPDD6.js} +1 -1
- package/dist/cdn/6SZN3UEC.js +2 -0
- package/dist/cdn/6TP6A2OR.js +2 -0
- package/dist/cdn/6WXRX7AM.js +2 -0
- package/dist/cdn/7KM376VM.js +2 -0
- package/dist/cdn/7KQIWP5A.js +2 -0
- package/dist/cdn/{GLEHSZR7.js → 7RQHFOJK.js} +1 -1
- package/dist/cdn/{DPRLR4WC.js → 7XS2SBMV.js} +1 -1
- package/dist/cdn/AE5P23AX.js +2 -0
- package/dist/cdn/AGD2EOLY.js +2 -0
- package/dist/cdn/AKAXKJA2.js +2 -0
- package/dist/cdn/{NBOTH5XL.js → ASXRP7XI.js} +1 -1
- package/dist/cdn/{KRVMZWGR.js → AU5A2EFG.js} +1 -1
- package/dist/cdn/AWYSKRFD.js +2 -0
- package/dist/cdn/{NY4HO46K.js → BBSSYLOF.js} +1 -1
- package/dist/cdn/BEI2Q4QV.js +2 -0
- package/dist/cdn/BIBBX2NQ.js +2 -0
- package/dist/cdn/{U7YCVXZ3.js → BJAWDVEF.js} +1 -1
- package/dist/cdn/BMHY44X2.js +2 -0
- package/dist/cdn/BOPWFMNV.js +2 -0
- package/dist/cdn/BTB6KHWC.js +2 -0
- package/dist/cdn/{PLYFLSNW.js → BUD3X4EV.js} +1 -1
- package/dist/cdn/BZ7XAOLC.js +2 -0
- package/dist/cdn/BZD6X5QP.js +2 -0
- package/dist/cdn/{DUT6OG3U.js → BZZ3PDRE.js} +1 -1
- package/dist/cdn/{ZFZW2ZQN.js → C664KWJK.js} +1 -1
- package/dist/cdn/C6JSMZCR.js +2 -0
- package/dist/cdn/{QQJAAD4D.js → C75XSIWC.js} +1 -1
- package/dist/cdn/C7SUNBF3.js +2 -0
- package/dist/cdn/{FAA5LDA2.js → CGICD7ZG.js} +1 -1
- package/dist/cdn/{KAADRWY5.js → CNNZUX2A.js} +1 -1
- package/dist/cdn/{Z6XSTP6H.js → CRJ7GEOB.js} +1 -1
- package/dist/cdn/D6FYHCKK.js +2 -0
- package/dist/cdn/DC52WCG4.js +2 -0
- package/dist/cdn/{CD4ZLAWD.js → DM56VGTT.js} +1 -1
- package/dist/cdn/{UE76JFYY.js → DOIHMBBW.js} +1 -1
- package/dist/cdn/{737AN2CX.js → DQIUIZK3.js} +1 -1
- package/dist/cdn/DR4XSQZU.js +2 -0
- package/dist/cdn/{RXLHCQ6I.js → DV5KMXKC.js} +1 -1
- package/dist/cdn/E4TS5FQE.js +2 -0
- package/dist/cdn/E67XH4JQ.js +2 -0
- package/dist/cdn/EGLMU2AU.js +2 -0
- package/dist/cdn/ERP7JCOT.js +2 -0
- package/dist/cdn/EYRAVDKP.js +2 -0
- package/dist/cdn/{4ARQELX5.js → F6OZCUVP.js} +1 -1
- package/dist/cdn/FGPKBUR3.js +2 -0
- package/dist/cdn/{G7RVPH4C.js → FQF5KOVN.js} +1 -1
- package/dist/cdn/{SXAW7MNS.js → FR6PIDS2.js} +1 -1
- package/dist/cdn/FS4CDB52.js +2 -0
- package/dist/cdn/G7VCDZAH.js +4 -0
- package/dist/cdn/GBTJTOXL.js +2 -0
- package/dist/cdn/GLRXNYZY.js +2 -0
- package/dist/cdn/GYAMAUXY.js +2 -0
- package/dist/cdn/H2LEXNC7.js +2 -0
- package/dist/cdn/H5ZWUCNU.js +2 -0
- package/dist/cdn/HAEXMEIN.js +2 -0
- package/dist/cdn/{XKHMRAUY.js → HBWRRDGG.js} +1 -1
- package/dist/cdn/{KEN2XAZH.js → HDWQ7NSI.js} +1 -1
- package/dist/cdn/{N3XQQ7UF.js → HEQ6QW3K.js} +1 -1
- package/dist/cdn/{ZDSVHHRM.js → HJHRSII7.js} +1 -1
- package/dist/cdn/HUTTOR7N.js +2 -0
- package/dist/cdn/{5M7QROTK.js → I4AFXPRB.js} +1 -1
- package/dist/cdn/I6UMOKHJ.js +2 -0
- package/dist/cdn/{YGMF5XGG.js → IBUMIXPU.js} +1 -1
- package/dist/cdn/IE3D5G6W.js +2 -0
- package/dist/cdn/IH6VM7RW.js +2 -0
- package/dist/cdn/{2ZGOGJF6.js → IR2A2F5H.js} +1 -1
- package/dist/cdn/{LZFZSZYL.js → IROQKMX4.js} +1 -1
- package/dist/cdn/{L52YMQCF.js → J2OH4U4P.js} +1 -1
- package/dist/cdn/J3NX74VT.js +2 -0
- package/dist/cdn/JED2BFML.js +2 -0
- package/dist/cdn/JLH4SXHH.js +2 -0
- package/dist/cdn/{OMH7X2JO.js → JNL2MGPV.js} +1 -1
- package/dist/cdn/JWRK3M36.js +2 -0
- package/dist/cdn/JXSCNDAH.js +4 -0
- package/dist/cdn/{YWJV2ZJH.js → K4N2EM4F.js} +1 -1
- package/dist/cdn/{GRF4BRX4.js → K773C63U.js} +1 -1
- package/dist/cdn/{FC34MHXD.js → KETKIVWP.js} +1 -1
- package/dist/cdn/{JLMPSTPZ.js → KF2PRC3N.js} +1 -1
- package/dist/cdn/KGTOCD7C.js +2 -0
- package/dist/cdn/KIT7NU4F.js +2 -0
- package/dist/cdn/{QKMJAWTV.js → KLALTZ6M.js} +1 -1
- package/dist/cdn/{CM47HAMG.js → KOOUNRK4.js} +1 -1
- package/dist/cdn/L2PORTM4.js +2 -0
- package/dist/cdn/LKSMSNM7.js +2 -0
- package/dist/cdn/LKYZVTZF.js +2 -0
- package/dist/cdn/{EZ3DQN5J.js → LQX75TZ6.js} +1 -1
- package/dist/cdn/LRGOLZEK.js +2 -0
- package/dist/cdn/LZ6OXXTM.js +2 -0
- package/dist/cdn/{IBJPVXIV.js → N4Y4IVWT.js} +1 -1
- package/dist/cdn/N5725US7.js +2 -0
- package/dist/cdn/{2GVIO72I.js → NBZ37GX7.js} +1 -1
- package/dist/cdn/{LHJS25PA.js → ODU6JYNH.js} +1 -1
- package/dist/cdn/OR22OBUK.js +2 -0
- package/dist/cdn/{CTFG7BKR.js → OS5XNQXP.js} +1 -1
- package/dist/cdn/OUGIMZJ3.js +2 -0
- package/dist/cdn/OYQLEYK5.js +2 -0
- package/dist/cdn/P2PASM66.js +2 -0
- package/dist/cdn/{ZORTPH5J.js → PERDWZWY.js} +1 -1
- package/dist/cdn/PO6YL62I.js +2 -0
- package/dist/cdn/PQ6MRDKH.js +2 -0
- package/dist/cdn/{NHJS3MYI.js → Q4DOOVM7.js} +1 -1
- package/dist/cdn/Q4WATFR3.js +2 -0
- package/dist/cdn/QDYPYDT7.js +2 -0
- package/dist/cdn/QEVG42UL.js +2 -0
- package/dist/cdn/QEW6GSYQ.js +2 -0
- package/dist/cdn/QLODMQBD.js +2 -0
- package/dist/cdn/{4XVKHJ2X.js → QYVKOLJZ.js} +1 -1
- package/dist/cdn/RHG4MWDQ.js +2 -0
- package/dist/cdn/ROZEV7RT.js +2 -0
- package/dist/cdn/RRBGCYLX.js +2 -0
- package/dist/cdn/S3MNGCZD.js +2 -0
- package/dist/cdn/SIEIL7FM.js +2 -0
- package/dist/cdn/SN5B3KVW.js +2 -0
- package/dist/cdn/{YKOI3XVI.js → SRUYXOUG.js} +1 -1
- package/dist/cdn/SVFPRHA6.js +2 -0
- package/dist/cdn/T7YGUZSK.js +20 -0
- package/dist/cdn/TCRMJM5C.js +2 -0
- package/dist/cdn/{AYRJ7NYC.js → TJGNWJF6.js} +1 -1
- package/dist/cdn/TNDQWC77.js +2 -0
- package/dist/cdn/U5TTY3OC.js +2 -0
- package/dist/cdn/UR6MPMXC.js +2 -0
- package/dist/cdn/{5FEYYIAA.js → URTYW475.js} +1 -1
- package/dist/cdn/{YSW3EMMW.js → UTXN6YZB.js} +1 -1
- package/dist/cdn/V2AKOENX.js +2 -0
- package/dist/cdn/{NX4HQRQ4.js → V3KLQ5UF.js} +1 -1
- package/dist/cdn/VCZHUG3S.js +2 -0
- package/dist/cdn/{USPSQ6BJ.js → VSQINAGH.js} +1 -1
- package/dist/cdn/WB7RXQJA.js +2 -0
- package/dist/cdn/{TDXNMJRX.js → WBQQBVVC.js} +1 -1
- package/dist/cdn/WCZUTUTW.js +2 -0
- package/dist/cdn/WTNYMVTD.js +2 -0
- package/dist/cdn/{ZDW4YKG2.js → X4VMA74R.js} +1 -1
- package/dist/cdn/XF25BJXC.js +2 -0
- package/dist/cdn/{LWZSWEUH.js → XI5BUNVP.js} +1 -1
- package/dist/cdn/{ECJJHTCC.js → XIERF7M3.js} +1 -1
- package/dist/cdn/{RUGBI54D.js → XY2NGASJ.js} +1 -1
- package/dist/cdn/Y2BRPES3.js +2 -0
- package/dist/cdn/YDT6TQRJ.js +2 -0
- package/dist/cdn/YXTWPSNG.js +2 -0
- package/dist/cdn/{C3AM5CRL.js → YZOCZJGM.js} +1 -1
- package/dist/cdn/{RB45HFMH.js → Z2C6GGRO.js} +1 -1
- package/dist/cdn/{MTFZVNGV.js → ZDSKF5YJ.js} +1 -1
- package/dist/cdn/ZEIISDRS.js +2 -0
- package/dist/cdn/{PFUAK4OK.js → ZF366KLH.js} +1 -1
- package/dist/cdn/assets/icon/alignBottom16.json +1 -1
- package/dist/cdn/assets/icon/alignBottom24.json +1 -1
- package/dist/cdn/assets/icon/alignBottom32.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal24.json +1 -1
- package/dist/cdn/assets/icon/alignCenterHorizontal32.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical16.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical24.json +1 -1
- package/dist/cdn/assets/icon/alignCenterVertical32.json +1 -1
- package/dist/cdn/assets/icon/alignLeft16.json +1 -1
- package/dist/cdn/assets/icon/alignLeft24.json +1 -1
- package/dist/cdn/assets/icon/alignLeft32.json +1 -1
- package/dist/cdn/assets/icon/alignRight16.json +1 -1
- package/dist/cdn/assets/icon/alignRight24.json +1 -1
- package/dist/cdn/assets/icon/alignRight32.json +1 -1
- package/dist/cdn/assets/icon/alignTop16.json +1 -1
- package/dist/cdn/assets/icon/alignTop24.json +1 -1
- package/dist/cdn/assets/icon/alignTop32.json +1 -1
- package/dist/cdn/assets/icon/filterX16.json +1 -0
- package/dist/cdn/assets/icon/filterX24.json +1 -0
- package/dist/cdn/assets/icon/filterX32.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal16.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal24.json +1 -1
- package/dist/cdn/assets/icon/stretchHorizontal32.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical16.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical24.json +1 -1
- package/dist/cdn/assets/icon/stretchVertical32.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +2 -2
- package/dist/chunks/aria.js +5 -0
- package/dist/chunks/dom.js +33 -32
- package/dist/chunks/header.js +1 -1
- package/dist/chunks/manager.js +13 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources10.js +6 -56
- package/dist/chunks/resources11.js +21 -5
- package/dist/chunks/resources12.js +1 -1
- package/dist/chunks/resources13.js +1 -1
- package/dist/chunks/resources15.js +2 -3
- package/dist/chunks/resources17.js +1 -1
- package/dist/chunks/resources18.js +1 -1
- package/dist/chunks/resources2.js +18 -22
- package/dist/chunks/resources20.js +1 -1
- package/dist/chunks/resources21.js +1 -1
- package/dist/chunks/resources22.js +1 -1
- package/dist/chunks/resources23.js +1 -1
- package/dist/chunks/resources24.js +1 -1
- package/dist/chunks/resources25.js +1 -1
- package/dist/chunks/resources26.js +2 -3
- package/dist/chunks/resources27.js +1 -1
- package/dist/chunks/resources28.js +1 -1
- package/dist/chunks/resources29.js +1 -1
- package/dist/chunks/resources3.js +20 -18
- package/dist/chunks/resources30.js +1 -1
- package/dist/chunks/resources31.js +1 -1
- package/dist/chunks/resources32.js +1 -2
- package/dist/chunks/resources33.js +1 -1
- package/dist/chunks/resources34.js +1 -1
- package/dist/chunks/resources4.js +9 -19
- package/dist/chunks/resources5.js +19 -7
- package/dist/chunks/resources6.js +39 -13
- package/dist/chunks/resources7.js +20 -38
- package/dist/chunks/resources8.js +23 -21
- package/dist/chunks/resources9.js +52 -27
- package/dist/chunks/responsive.js +2 -2
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/sortable.js +1 -1
- package/dist/chunks/useFocusable.js +25 -2
- package/dist/chunks/useSizeOverride.js +2 -2
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils3.js +4 -4
- package/dist/chunks/utils4.js +1 -2
- package/dist/components/calcite-accordion/customElement.d.ts +1 -0
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +2 -0
- package/dist/components/calcite-accordion-item/customElement.js +2 -2
- package/dist/components/calcite-action/customElement.d.ts +4 -1
- package/dist/components/calcite-action/customElement.js +3 -3
- package/dist/components/calcite-action-bar/customElement.d.ts +1 -0
- package/dist/components/calcite-action-bar/customElement.js +46 -15
- package/dist/components/calcite-action-group/customElement.d.ts +1 -0
- package/dist/components/calcite-action-group/customElement.js +5 -5
- package/dist/components/calcite-action-menu/customElement.js +6 -6
- package/dist/components/calcite-alert/customElement.js +4 -4
- package/dist/components/calcite-autocomplete/customElement.d.ts +1 -0
- package/dist/components/calcite-autocomplete/customElement.js +10 -10
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +2 -0
- package/dist/components/calcite-autocomplete-item/customElement.js +2 -2
- package/dist/components/calcite-autocomplete-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +4 -4
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +1 -53
- package/dist/components/calcite-block/customElement.js +5 -34
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +4 -8
- package/dist/components/calcite-block-group/customElement.js +6 -7
- package/dist/components/calcite-block-section/customElement.d.ts +2 -0
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.d.ts +4 -1
- package/dist/components/calcite-button/customElement.js +7 -7
- package/dist/components/calcite-card/customElement.d.ts +1 -0
- package/dist/components/calcite-card/customElement.js +3 -3
- package/dist/components/calcite-card-group/customElement.d.ts +4 -1
- package/dist/components/calcite-card-group/customElement.js +4 -4
- package/dist/components/calcite-carousel/customElement.d.ts +4 -1
- package/dist/components/calcite-carousel/customElement.js +3 -3
- package/dist/components/calcite-carousel-item/customElement.d.ts +5 -1
- package/dist/components/calcite-checkbox/customElement.js +2 -2
- package/dist/components/calcite-chip/customElement.d.ts +1 -0
- package/dist/components/calcite-chip/customElement.js +3 -3
- package/dist/components/calcite-chip-group/customElement.d.ts +4 -1
- package/dist/components/calcite-chip-group/customElement.js +4 -4
- package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.js +3 -3
- package/dist/components/calcite-color-picker-hex-input/customElement.js +2 -2
- package/dist/components/calcite-combobox/customElement.d.ts +1 -0
- package/dist/components/calcite-combobox/customElement.js +5 -5
- package/dist/components/calcite-combobox-item/customElement.d.ts +2 -0
- package/dist/components/calcite-combobox-item/customElement.js +2 -2
- package/dist/components/calcite-combobox-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-date-picker/customElement.js +2 -2
- package/dist/components/calcite-date-picker-day/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +8 -5
- package/dist/components/calcite-dialog/customElement.d.ts +3 -1
- package/dist/components/calcite-dialog/customElement.js +8 -7
- package/dist/components/calcite-dropdown/customElement.d.ts +3 -4
- package/dist/components/calcite-dropdown/customElement.js +378 -103
- package/dist/components/calcite-dropdown-group/customElement.d.ts +5 -1
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.d.ts +6 -1
- package/dist/components/calcite-dropdown-item/customElement.js +13 -9
- package/dist/components/calcite-fab/customElement.d.ts +1 -0
- package/dist/components/calcite-fab/customElement.js +2 -2
- package/dist/components/calcite-filter/customElement.js +2 -2
- package/dist/components/calcite-flow/customElement.d.ts +4 -1
- package/dist/components/calcite-flow/customElement.js +3 -3
- package/dist/components/calcite-flow-item/customElement.d.ts +2 -0
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-icon/customElement.js +1 -1
- package/dist/components/calcite-inline-editable/customElement.js +3 -3
- package/dist/components/calcite-input/customElement.d.ts +1 -0
- package/dist/components/calcite-input/customElement.js +3 -3
- package/dist/components/calcite-input-date-picker/customElement.d.ts +4 -7
- package/dist/components/calcite-input-date-picker/customElement.js +6 -6
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-message/customElement.js +2 -2
- package/dist/components/calcite-input-number/customElement.d.ts +1 -0
- package/dist/components/calcite-input-number/customElement.js +3 -3
- package/dist/components/calcite-input-text/customElement.d.ts +1 -0
- package/dist/components/calcite-input-text/customElement.js +3 -3
- package/dist/components/calcite-input-time-picker/customElement.d.ts +4 -1
- package/dist/components/calcite-input-time-picker/customElement.js +3 -3
- package/dist/components/calcite-input-time-zone/customElement.d.ts +4 -1
- package/dist/components/calcite-input-time-zone/customElement.js +3 -3
- package/dist/components/calcite-label/customElement.d.ts +1 -3
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.js +2 -2
- package/dist/components/calcite-list/customElement.d.ts +3 -10
- package/dist/components/calcite-list/customElement.js +8 -8
- package/dist/components/calcite-list/index.js +1 -1
- package/dist/components/calcite-list-item/customElement.d.ts +13 -1
- package/dist/components/calcite-list-item/customElement.js +3 -3
- package/dist/components/calcite-list-item-group/customElement.d.ts +5 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.d.ts +0 -6
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +1 -0
- package/dist/components/calcite-menu/customElement.js +3 -3
- package/dist/components/calcite-menu-item/customElement.d.ts +5 -1
- package/dist/components/calcite-menu-item/customElement.js +3 -3
- package/dist/components/calcite-meter/customElement.js +2 -2
- package/dist/components/calcite-navigation/customElement.d.ts +1 -6
- package/dist/components/calcite-navigation/customElement.js +3 -3
- package/dist/components/calcite-navigation-logo/customElement.d.ts +4 -0
- package/dist/components/calcite-navigation-logo/customElement.js +2 -2
- package/dist/components/calcite-navigation-user/customElement.d.ts +4 -0
- package/dist/components/calcite-navigation-user/customElement.js +2 -2
- package/dist/components/calcite-notice/customElement.d.ts +1 -3
- package/dist/components/calcite-notice/customElement.js +4 -4
- package/dist/components/calcite-option/customElement.d.ts +4 -0
- package/dist/components/calcite-option-group/customElement.d.ts +5 -1
- package/dist/components/calcite-pagination/customElement.js +2 -2
- package/dist/components/calcite-panel/customElement.js +5 -5
- package/dist/components/calcite-popover/customElement.d.ts +2 -4
- package/dist/components/calcite-popover/customElement.js +2 -2
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.d.ts +1 -0
- package/dist/components/calcite-radio-button/customElement.js +2 -2
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -0
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +8 -8
- package/dist/components/calcite-scrim/customElement.js +2 -2
- package/dist/components/calcite-segmented-control/customElement.d.ts +1 -2
- package/dist/components/calcite-segmented-control/customElement.js +3 -3
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +4 -0
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -2
- package/dist/components/calcite-select/customElement.d.ts +2 -3
- package/dist/components/calcite-select/customElement.js +3 -3
- package/dist/components/calcite-sheet/customElement.d.ts +4 -4
- package/dist/components/calcite-sheet/customElement.js +24 -20
- package/dist/components/calcite-shell/customElement.d.ts +1 -0
- package/dist/components/calcite-shell/customElement.js +5 -3
- package/dist/components/calcite-shell-panel/customElement.d.ts +7 -6
- package/dist/components/calcite-shell-panel/customElement.js +11 -3
- package/dist/components/calcite-shell-panel/types.d.ts +1 -1
- package/dist/components/calcite-slider/customElement.js +3 -3
- package/dist/components/calcite-sort-handle/customElement.js +2 -2
- package/dist/components/calcite-split-button/customElement.d.ts +5 -4
- package/dist/components/calcite-split-button/customElement.js +2 -2
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.d.ts +4 -1
- package/dist/components/calcite-stepper/customElement.js +2 -2
- package/dist/components/calcite-stepper-item/customElement.d.ts +5 -1
- package/dist/components/calcite-stepper-item/customElement.js +7 -6
- package/dist/components/calcite-swatch/customElement.d.ts +4 -1
- package/dist/components/calcite-swatch/customElement.js +2 -2
- package/dist/components/calcite-swatch-group/customElement.d.ts +4 -1
- package/dist/components/calcite-swatch-group/customElement.js +3 -3
- package/dist/components/calcite-switch/customElement.js +2 -2
- package/dist/components/calcite-tab/customElement.d.ts +5 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.d.ts +5 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.d.ts +2 -0
- package/dist/components/calcite-tab-title/customElement.js +2 -2
- package/dist/components/calcite-table/customElement.d.ts +1 -0
- package/dist/components/calcite-table-cell/customElement.d.ts +5 -7
- package/dist/components/calcite-table-cell/customElement.js +2 -2
- package/dist/components/calcite-table-header/customElement.d.ts +4 -6
- package/dist/components/calcite-table-header/customElement.js +2 -2
- package/dist/components/calcite-table-row/customElement.d.ts +5 -7
- package/dist/components/calcite-table-row/customElement.js +2 -2
- package/dist/components/calcite-tabs/customElement.d.ts +1 -0
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text/customElement.js +7 -7
- package/dist/components/calcite-text-area/customElement.js +2 -2
- package/dist/components/calcite-tile/customElement.d.ts +1 -0
- package/dist/components/calcite-tile/customElement.js +2 -5
- package/dist/components/calcite-tile-group/customElement.d.ts +5 -3
- package/dist/components/calcite-tile-group/customElement.js +2 -2
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tooltip/customElement.d.ts +2 -4
- package/dist/components/calcite-tooltip/customElement.js +2 -3
- package/dist/components/calcite-tree/customElement.d.ts +4 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.d.ts +2 -0
- package/dist/components/calcite-tree-item/customElement.js +3 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +0 -44
- package/dist/loader.js +4 -9
- package/dist/types/lumina.d.ts +4 -43
- package/dist/types/preact.d.ts +4 -48
- package/dist/types/react.d.ts +4 -53
- package/dist/types/stencil.d.ts +4 -43
- package/package.json +18 -23
- package/dist/cdn/26EBQ7BO.js +0 -2
- package/dist/cdn/2IANBFM6.js +0 -2
- package/dist/cdn/2M4ETWZU.js +0 -2
- package/dist/cdn/2T5X3M5E.js +0 -2
- package/dist/cdn/3HO52NG7.js +0 -2
- package/dist/cdn/3MHENUIC.js +0 -2
- package/dist/cdn/4DKMSU6Z.js +0 -2
- package/dist/cdn/4DQBCTK5.js +0 -2
- package/dist/cdn/4SAOFK6O.js +0 -2
- package/dist/cdn/5FCTDL7G.js +0 -2
- package/dist/cdn/5PZI55YS.js +0 -2
- package/dist/cdn/5RSUVC46.js +0 -2
- package/dist/cdn/6LFASDRC.js +0 -2
- package/dist/cdn/6PT32OH7.js +0 -2
- package/dist/cdn/7AZBSCVZ.js +0 -2
- package/dist/cdn/A2325LH3.js +0 -2
- package/dist/cdn/A5OQTYIZ.js +0 -2
- package/dist/cdn/AM5SDT4L.js +0 -2
- package/dist/cdn/APFM3D76.js +0 -2
- package/dist/cdn/AR4ILRPR.js +0 -2
- package/dist/cdn/ASZIXWT4.js +0 -2
- package/dist/cdn/AYN5GLRO.js +0 -2
- package/dist/cdn/B3OV6FHO.js +0 -2
- package/dist/cdn/BULP7WVW.js +0 -2
- package/dist/cdn/BXP555XZ.js +0 -2
- package/dist/cdn/C2MPWA6Z.js +0 -2
- package/dist/cdn/C7B6A5F3.js +0 -2
- package/dist/cdn/CI3JJQR3.js +0 -2
- package/dist/cdn/CNCLROBO.js +0 -2
- package/dist/cdn/D4WV3TPQ.js +0 -2
- package/dist/cdn/DLDRJFX6.js +0 -2
- package/dist/cdn/DPEHAD62.js +0 -2
- package/dist/cdn/DXKAHRLD.js +0 -2
- package/dist/cdn/ECLCETW7.js +0 -2
- package/dist/cdn/EMYSYIHF.js +0 -2
- package/dist/cdn/FHJF5Y4W.js +0 -2
- package/dist/cdn/FI4ZJEGU.js +0 -2
- package/dist/cdn/FMOKCBXC.js +0 -2
- package/dist/cdn/FMPPIBGR.js +0 -2
- package/dist/cdn/FOSSJYES.js +0 -2
- package/dist/cdn/FUQZD45A.js +0 -2
- package/dist/cdn/GHOCOWAX.js +0 -2
- package/dist/cdn/GZU5JWQA.js +0 -2
- package/dist/cdn/HBHKWBSL.js +0 -2
- package/dist/cdn/HFZ3JBX3.js +0 -2
- package/dist/cdn/HT6S3JB2.js +0 -2
- package/dist/cdn/HVY5Z4ZE.js +0 -2
- package/dist/cdn/HXUZPY6M.js +0 -2
- package/dist/cdn/JBETQLOC.js +0 -2
- package/dist/cdn/JI5RWOTK.js +0 -2
- package/dist/cdn/K2U66OMX.js +0 -2
- package/dist/cdn/KW5O7Q5U.js +0 -2
- package/dist/cdn/KX37QNZL.js +0 -2
- package/dist/cdn/L63ZGIEN.js +0 -2
- package/dist/cdn/LIW4MPMT.js +0 -2
- package/dist/cdn/LY5CVPQW.js +0 -2
- package/dist/cdn/MB3HCDKS.js +0 -2
- package/dist/cdn/MC2WGZF2.js +0 -2
- package/dist/cdn/MHVBIP37.js +0 -2
- package/dist/cdn/MYNMXCYR.js +0 -4
- package/dist/cdn/NBOQAXNF.js +0 -2
- package/dist/cdn/NFEQJBP7.js +0 -4
- package/dist/cdn/NND3XN2F.js +0 -2
- package/dist/cdn/NO7JSF6I.js +0 -2
- package/dist/cdn/NQXLVDN3.js +0 -2
- package/dist/cdn/NRM2HPFP.js +0 -2
- package/dist/cdn/NSBFWMM5.js +0 -2
- package/dist/cdn/O6ITPHGB.js +0 -2
- package/dist/cdn/OSRHBE57.js +0 -2
- package/dist/cdn/P24NAPP2.js +0 -2
- package/dist/cdn/PAYXHDGS.js +0 -2
- package/dist/cdn/PF6KXJAD.js +0 -2
- package/dist/cdn/PQHCV2EH.js +0 -2
- package/dist/cdn/PTMEHJYU.js +0 -2
- package/dist/cdn/QBUNYICS.js +0 -2
- package/dist/cdn/QK3PJQSP.js +0 -2
- package/dist/cdn/R32U6GR5.js +0 -2
- package/dist/cdn/R7Q4B474.js +0 -2
- package/dist/cdn/RL2726VB.js +0 -2
- package/dist/cdn/RPHVGK24.js +0 -2
- package/dist/cdn/RTXMXTD7.js +0 -2
- package/dist/cdn/SSBVIDHX.js +0 -2
- package/dist/cdn/SYUTHN7P.js +0 -2
- package/dist/cdn/T2XWF65H.js +0 -2
- package/dist/cdn/TAY7CE7Q.js +0 -2
- package/dist/cdn/TLPTHUUB.js +0 -2
- package/dist/cdn/TOVIKNP3.js +0 -2
- package/dist/cdn/UDRROY4Z.js +0 -2
- package/dist/cdn/UETAH5YG.js +0 -2
- package/dist/cdn/UMCOVSS6.js +0 -2
- package/dist/cdn/V4VVCJQQ.js +0 -2
- package/dist/cdn/V6OVHKAM.js +0 -2
- package/dist/cdn/VL7QTJSE.js +0 -2
- package/dist/cdn/VML2B6QT.js +0 -2
- package/dist/cdn/W66DG22M.js +0 -20
- package/dist/cdn/W7JWDUOG.js +0 -2
- package/dist/cdn/WLMEAMND.js +0 -2
- package/dist/cdn/WQEXBVCY.js +0 -2
- package/dist/cdn/WXQ55QAU.js +0 -2
- package/dist/cdn/XBD4VBNH.js +0 -2
- package/dist/cdn/XDPHHPWF.js +0 -2
- package/dist/cdn/XXKKP6IQ.js +0 -2
- package/dist/cdn/YF7W5TNY.js +0 -2
- package/dist/cdn/YUXLFP7T.js +0 -2
- package/dist/cdn/YV4JKSOA.js +0 -2
- package/dist/cdn/YYMBFIIY.js +0 -2
- package/dist/cdn/ZB6NPHER.js +0 -2
- package/dist/cdn/ZCB6BGVI.js +0 -2
- package/dist/cdn/ZEOYQETG.js +0 -2
- package/dist/cdn/assets/action-pad/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/action-pad/t9n/messages.zh-TW.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.en.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/handle/t9n/messages.zh-TW.json +0 -1
- package/dist/chunks/ExpandToggle.js +0 -48
- package/dist/components/calcite-action-pad/customElement.d.ts +0 -96
- package/dist/components/calcite-action-pad/customElement.js +0 -185
- package/dist/components/calcite-action-pad/index.d.ts +0 -1
- package/dist/components/calcite-action-pad/index.js +0 -3
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +0 -25
- package/dist/components/calcite-color-picker-swatch/customElement.js +0 -104
- package/dist/components/calcite-color-picker-swatch/index.d.ts +0 -1
- package/dist/components/calcite-color-picker-swatch/index.js +0 -1
- package/dist/components/calcite-focus-trap/customElement.d.ts +0 -53
- package/dist/components/calcite-focus-trap/customElement.js +0 -61
- package/dist/components/calcite-focus-trap/index.d.ts +0 -1
- package/dist/components/calcite-focus-trap/index.js +0 -1
- package/dist/components/calcite-handle/customElement.d.ts +0 -66
- package/dist/components/calcite-handle/customElement.js +0 -128
- package/dist/components/calcite-handle/index.d.ts +0 -1
- package/dist/components/calcite-handle/index.js +0 -2
- package/dist/components/calcite-handle/types.d.ts +0 -3
- package/dist/components/calcite-list/resources.d.ts +0 -1
- package/dist/components/calcite-sortable-list/customElement.d.ts +0 -52
- package/dist/components/calcite-sortable-list/customElement.js +0 -133
- package/dist/components/calcite-sortable-list/index.d.ts +0 -1
- package/dist/components/calcite-sortable-list/index.js +0 -1
- /package/dist/cdn/{ZZDNIBT7.js → 2IM7ZZ7U.js} +0 -0
- /package/dist/cdn/{NYT7VOUO.js → TIIRIEHJ.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { FocusTrapOptions } from "../../controllers/useFocusTrap.js";
|
|
4
|
-
|
|
5
|
-
/** @slot - A slot for adding focus-trapped content. */
|
|
6
|
-
export abstract class FocusTrap extends LitElement {
|
|
7
|
-
/**
|
|
8
|
-
* Indicates whether the component's focus trap is currently active.
|
|
9
|
-
*
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
get active(): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* When `true`, prevents focus trapping.
|
|
15
|
-
*
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
accessor focusTrapDisabled: boolean;
|
|
19
|
-
/** When defined, provides a condition to disable focus trapping. When `true`, prevents focus trapping. */
|
|
20
|
-
accessor focusTrapDisabledOverride: (() => boolean) | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Specifies custom focus trap configuration on the component.
|
|
23
|
-
*
|
|
24
|
-
* - `"allowOutsideClick"` allows outside clicks.
|
|
25
|
-
* - `"initialFocus"` enables initial focus.
|
|
26
|
-
* - `"returnFocusOnDeactivate"` returns focus when not active.
|
|
27
|
-
* - `"extraContainers"` specifies additional focusable elements external to the trap.
|
|
28
|
-
* - `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated.
|
|
29
|
-
*/
|
|
30
|
-
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
31
|
-
/** Activates the component's focus trap. */
|
|
32
|
-
activate(): Promise<void>;
|
|
33
|
-
/** Deactivates the component's focus trap. */
|
|
34
|
-
deactivate(): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Sets focus on the component's first focusable element.
|
|
37
|
-
*
|
|
38
|
-
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
39
|
-
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
40
|
-
*/
|
|
41
|
-
setFocus(options?: FocusOptions): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* Updates the element(s) that are included in the focus-trap of the component.
|
|
44
|
-
*
|
|
45
|
-
* @param extraContainers - Additional elements to include in the focus trap. This is useful for including elements that may have related parts rendered outside the main focus trapping element.
|
|
46
|
-
*/
|
|
47
|
-
updateFocusTrapElements(extraContainers?: FocusTrapOptions["extraContainers"]): Promise<void>;
|
|
48
|
-
/** Fires when the focus-trap active state has changed. */
|
|
49
|
-
readonly calciteFocusTrapActiveChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
50
|
-
readonly "@eventTypes": {
|
|
51
|
-
calciteFocusTrapActiveChange: FocusTrap["calciteFocusTrapActiveChange"]["detail"];
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
|
-
import { css, html } from "lit";
|
|
4
|
-
import { LitElement, createEvent } from "@arcgis/lumina";
|
|
5
|
-
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
6
|
-
import { u as useFocusable } from "../../chunks/useFocusable.js";
|
|
7
|
-
const styles = css`:host{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
8
|
-
class FocusTrap extends LitElement {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this._active = false;
|
|
12
|
-
this.focusSetter = useFocusable()(this);
|
|
13
|
-
this.focusTrapController = useFocusTrap({
|
|
14
|
-
focusTrapOptions: {
|
|
15
|
-
onActivate: () => {
|
|
16
|
-
this.setActive(true);
|
|
17
|
-
},
|
|
18
|
-
onDeactivate: () => {
|
|
19
|
-
this.setActive(false);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
})(this);
|
|
23
|
-
this.focusTrapDisabled = false;
|
|
24
|
-
this.calciteFocusTrapActiveChange = createEvent({ cancelable: false });
|
|
25
|
-
}
|
|
26
|
-
static {
|
|
27
|
-
this.properties = { focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], active: [32, {}, { attribute: false, readOnly: true }], focusTrapDisabledOverride: [0, {}, { attribute: false }], focusTrapOptions: [0, {}, { attribute: false }] };
|
|
28
|
-
}
|
|
29
|
-
static {
|
|
30
|
-
this.styles = styles;
|
|
31
|
-
}
|
|
32
|
-
get active() {
|
|
33
|
-
return this._active;
|
|
34
|
-
}
|
|
35
|
-
async activate() {
|
|
36
|
-
this.focusTrapController.activate();
|
|
37
|
-
}
|
|
38
|
-
async deactivate() {
|
|
39
|
-
this.focusTrapController.deactivate();
|
|
40
|
-
}
|
|
41
|
-
async setFocus(options) {
|
|
42
|
-
return this.focusSetter(() => this.el, options);
|
|
43
|
-
}
|
|
44
|
-
async updateFocusTrapElements(extraContainers) {
|
|
45
|
-
this.focusTrapController.setExtraContainers(extraContainers);
|
|
46
|
-
this.focusTrapController.updateContainerElements();
|
|
47
|
-
}
|
|
48
|
-
setActive(active) {
|
|
49
|
-
const oldActive = this._active;
|
|
50
|
-
this._active = active;
|
|
51
|
-
this.requestUpdate("active", oldActive);
|
|
52
|
-
this.calciteFocusTrapActiveChange.emit();
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
return html`<slot></slot>`;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
customElement("calcite-focus-trap", FocusTrap);
|
|
59
|
-
export {
|
|
60
|
-
FocusTrap
|
|
61
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { HandleNudge } from "./types.js";
|
|
4
|
-
|
|
5
|
-
declare module "@arcgis/lumina" {
|
|
6
|
-
export interface DeclareCssProperties {
|
|
7
|
-
/** Specifies the component's background color. */
|
|
8
|
-
"--calcite-handle-background-color": "*";
|
|
9
|
-
/** Specifies the component's background color on hover. */
|
|
10
|
-
"--calcite-handle-background-color-hover": "*";
|
|
11
|
-
/** Specifies the component's background color when selected. */
|
|
12
|
-
"--calcite-handle-background-color-selected": "*";
|
|
13
|
-
/** Specifies the component's icon color. */
|
|
14
|
-
"--calcite-handle-icon-color": "*";
|
|
15
|
-
/** Specifies the component's icon color on hover. */
|
|
16
|
-
"--calcite-handle-icon-color-hover": "*";
|
|
17
|
-
/** Specifies the component's icon color when selected. */
|
|
18
|
-
"--calcite-handle-icon-color-selected": "*";
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** @deprecated in v3.0.0, removal target v6.0.0. Use the `calcite-sort-handle` component instead. */
|
|
23
|
-
export abstract class Handle extends LitElement {
|
|
24
|
-
/**
|
|
25
|
-
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
26
|
-
*
|
|
27
|
-
* @default false
|
|
28
|
-
*/
|
|
29
|
-
accessor disabled: boolean;
|
|
30
|
-
/** Value for the button title attribute. */
|
|
31
|
-
accessor dragHandle: string | undefined;
|
|
32
|
-
/**
|
|
33
|
-
* Replace localized message strings with your own strings.
|
|
34
|
-
*
|
|
35
|
-
* _**Note**: Individual message keys may change between releases._
|
|
36
|
-
*/
|
|
37
|
-
accessor messageOverrides: {
|
|
38
|
-
dragHandle?: string | undefined;
|
|
39
|
-
dragHandleUntitled?: string | undefined;
|
|
40
|
-
dragHandleActive?: string | undefined;
|
|
41
|
-
dragHandleChange?: string | undefined;
|
|
42
|
-
dragHandleCommit?: string | undefined;
|
|
43
|
-
dragHandleIdle?: string | undefined;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* When `true`, the component is selected.
|
|
47
|
-
*
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
accessor selected: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Sets focus on the component.
|
|
53
|
-
*
|
|
54
|
-
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
55
|
-
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
56
|
-
*/
|
|
57
|
-
setFocus(options?: FocusOptions): Promise<void>;
|
|
58
|
-
/** Fires whenever the component is selected or unselected. */
|
|
59
|
-
readonly calciteHandleChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
60
|
-
/** Fires when the handle is selected and the up or down arrow key is pressed. */
|
|
61
|
-
readonly calciteHandleNudge: import("@arcgis/lumina").TargetedEvent<this, HandleNudge>;
|
|
62
|
-
readonly "@eventTypes": {
|
|
63
|
-
calciteHandleChange: Handle["calciteHandleChange"]["detail"];
|
|
64
|
-
calciteHandleNudge: Handle["calciteHandleNudge"]["detail"];
|
|
65
|
-
};
|
|
66
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { l as logger, c as customElement } from "../../chunks/runtime.js";
|
|
3
|
-
import { css, nothing, html } from "lit";
|
|
4
|
-
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
|
-
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
7
|
-
import { u as useFocusable } from "../../chunks/useFocusable.js";
|
|
8
|
-
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
|
-
const CSS = {
|
|
10
|
-
handle: "handle",
|
|
11
|
-
handleSelected: "handle--selected"
|
|
12
|
-
};
|
|
13
|
-
const ICONS = {
|
|
14
|
-
drag: "drag"
|
|
15
|
-
};
|
|
16
|
-
const SUBSTITUTIONS = {
|
|
17
|
-
itemLabel: "{itemLabel}",
|
|
18
|
-
position: "{position}",
|
|
19
|
-
total: "{total}"
|
|
20
|
-
};
|
|
21
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.handle{display:flex;align-items:center;justify-content:center;align-self:stretch;border-style:none;outline-color:transparent;color:var(--calcite-handle-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-handle-background-color, transparent);padding-block:.75rem;padding-inline:.25rem;line-height:0}.handle calcite-icon{color:inherit}:host(:not([disabled])) .handle{cursor:move}:host(:not([disabled])) .handle:hover{color:var(--calcite-handle-icon-color-hover, var(--calcite-color-text-1));background-color:var(--calcite-handle-background-color-hover, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)))}:host(:not([disabled])) .handle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));color:var(--calcite-handle-icon-color-hover, var(--calcite-color-text-1))}:host(:not([disabled])) .handle--selected{color:var(--calcite-handle-icon-color-selected, var(--calcite-color-text-1));background-color:var(--calcite-handle-background-color-selected, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
22
|
-
class Handle extends LitElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.handleButtonRef = createRef();
|
|
26
|
-
this.messages = useT9n({ blocking: true });
|
|
27
|
-
this.focusSetter = useFocusable()(this);
|
|
28
|
-
this.interactiveContainer = useInteractive(this);
|
|
29
|
-
this.blurUnselectDisabled = false;
|
|
30
|
-
this.disabled = false;
|
|
31
|
-
this.selected = false;
|
|
32
|
-
this.calciteHandleChange = createEvent({ cancelable: false });
|
|
33
|
-
this.calciteHandleNudge = createEvent({ cancelable: false });
|
|
34
|
-
this.calciteInternalAssistiveTextChange = createEvent({ cancelable: false });
|
|
35
|
-
}
|
|
36
|
-
static {
|
|
37
|
-
this.properties = { blurUnselectDisabled: [5, {}, { type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }], selected: [7, {}, { reflect: true, type: Boolean }], setPosition: [9, {}, { type: Number }], setSize: [9, {}, { type: Number }] };
|
|
38
|
-
}
|
|
39
|
-
static {
|
|
40
|
-
this.styles = styles;
|
|
41
|
-
}
|
|
42
|
-
async setFocus(options) {
|
|
43
|
-
return this.focusSetter(() => this.handleButtonRef.value, options);
|
|
44
|
-
}
|
|
45
|
-
willUpdate(changes) {
|
|
46
|
-
if (changes.has("messages") || changes.has("label") || changes.has("selected") && (this.hasUpdated || this.selected !== false) || changes.has("setPosition") || changes.has("setSize")) {
|
|
47
|
-
this.handleAriaTextChange();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
loaded() {
|
|
51
|
-
logger.deprecated("component", {
|
|
52
|
-
component: this,
|
|
53
|
-
name: "handle",
|
|
54
|
-
removalVersion: 5,
|
|
55
|
-
suggested: "sort-handle"
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
handleAriaTextChange() {
|
|
59
|
-
const message = this.getAriaText("live");
|
|
60
|
-
if (message) {
|
|
61
|
-
this.calciteInternalAssistiveTextChange.emit({
|
|
62
|
-
message
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
getTooltip() {
|
|
67
|
-
const { label, messages } = this;
|
|
68
|
-
if (!messages) {
|
|
69
|
-
return "";
|
|
70
|
-
}
|
|
71
|
-
if (!label) {
|
|
72
|
-
return messages.dragHandleUntitled;
|
|
73
|
-
}
|
|
74
|
-
return messages.dragHandle.replace(SUBSTITUTIONS.itemLabel, label);
|
|
75
|
-
}
|
|
76
|
-
getAriaText(type) {
|
|
77
|
-
const { setPosition, setSize, label, messages, selected } = this;
|
|
78
|
-
if (!messages || !label || typeof setSize !== "number" || typeof setPosition !== "number") {
|
|
79
|
-
return void 0;
|
|
80
|
-
}
|
|
81
|
-
const text = type === "label" ? selected ? messages.dragHandleChange : messages.dragHandleIdle : selected ? messages.dragHandleActive : messages.dragHandleCommit;
|
|
82
|
-
const replacePosition = text.replace(SUBSTITUTIONS.position, setPosition.toString());
|
|
83
|
-
const replaceLabel = replacePosition.replace(SUBSTITUTIONS.itemLabel, label);
|
|
84
|
-
return replaceLabel.replace(SUBSTITUTIONS.total, setSize.toString());
|
|
85
|
-
}
|
|
86
|
-
handleKeyDown(event) {
|
|
87
|
-
if (this.disabled) {
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
switch (event.key) {
|
|
91
|
-
case " ":
|
|
92
|
-
this.selected = !this.selected;
|
|
93
|
-
this.calciteHandleChange.emit();
|
|
94
|
-
event.preventDefault();
|
|
95
|
-
break;
|
|
96
|
-
case "ArrowUp":
|
|
97
|
-
if (!this.selected) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
event.preventDefault();
|
|
101
|
-
this.calciteHandleNudge.emit({ direction: "up" });
|
|
102
|
-
break;
|
|
103
|
-
case "ArrowDown":
|
|
104
|
-
if (!this.selected) {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
event.preventDefault();
|
|
108
|
-
this.calciteHandleNudge.emit({ direction: "down" });
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
handleBlur() {
|
|
113
|
-
if (this.blurUnselectDisabled || this.disabled) {
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
if (this.selected) {
|
|
117
|
-
this.selected = false;
|
|
118
|
-
this.calciteHandleChange.emit();
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
render() {
|
|
122
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<span .ariaChecked=${this.disabled ? void 0 : this.selected} .ariaDisabled=${this.disabled ? this.disabled : void 0} .ariaLabel=${this.disabled ? void 0 : this.getAriaText("label")} class=${safeClassMap({ [CSS.handle]: true, [CSS.handleSelected]: !this.disabled && this.selected })} @blur=${this.handleBlur} @keydown=${this.handleKeyDown} role=radio tabindex=${(this.disabled ? void 0 : 0) ?? nothing} title=${this.getTooltip() ?? nothing} ${ref(this.handleButtonRef)}><calcite-icon .icon=${ICONS.drag} scale=s></calcite-icon></span>` });
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
customElement("calcite-handle", Handle);
|
|
126
|
-
export {
|
|
127
|
-
Handle
|
|
128
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type SelectionAppearance = "border" | "highlight" | "icon";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { Layout } from "../types.js";
|
|
4
|
-
import type { DragDetail } from "../../controllers/useSortable.js";
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated in v3.0.0, removal target v6.0.0. Use the `calcite-block-group` component instead.
|
|
8
|
-
* @slot - A slot for adding sortable items.
|
|
9
|
-
*/
|
|
10
|
-
export abstract class SortableList extends LitElement {
|
|
11
|
-
/** When provided, the method will be called to determine whether the element can move from the list. */
|
|
12
|
-
accessor canPull: ((detail: DragDetail) => boolean) | undefined;
|
|
13
|
-
/** When provided, the method will be called to determine whether the element can be added from another list. */
|
|
14
|
-
accessor canPut: ((detail: DragDetail) => boolean) | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* When `true`, disabled prevents interaction. This state shows items with lower opacity/grayed.
|
|
17
|
-
*
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
accessor disabled: boolean;
|
|
21
|
-
/** Specifies which items inside the element should be draggable. */
|
|
22
|
-
accessor dragSelector: string | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the list's group.
|
|
25
|
-
*
|
|
26
|
-
* To drag elements from one list into another, both lists must have the same group value.
|
|
27
|
-
*/
|
|
28
|
-
accessor group: string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Specifies the selector for the handle elements.
|
|
31
|
-
*
|
|
32
|
-
* @default "calcite-handle"
|
|
33
|
-
*/
|
|
34
|
-
accessor handleSelector: string;
|
|
35
|
-
/**
|
|
36
|
-
* Indicates the horizontal or vertical orientation of the component.
|
|
37
|
-
*
|
|
38
|
-
* @default "vertical"
|
|
39
|
-
*/
|
|
40
|
-
accessor layout: Extract<"horizontal" | "vertical" | "grid", Layout>;
|
|
41
|
-
/**
|
|
42
|
-
* When `true`, content is waiting to be loaded. This state shows a busy indicator.
|
|
43
|
-
*
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
accessor loading: boolean;
|
|
47
|
-
/** Fires when the order of the list changes. */
|
|
48
|
-
readonly calciteListOrderChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
49
|
-
readonly "@eventTypes": {
|
|
50
|
-
calciteListOrderChange: SortableList["calciteListOrderChange"]["detail"];
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { l as logger, c as customElement } from "../../chunks/runtime.js";
|
|
3
|
-
import { css, html } from "lit";
|
|
4
|
-
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
|
-
import { c as createObserver } from "../../chunks/observers.js";
|
|
6
|
-
import { f as focusElement } from "../../chunks/dom.js";
|
|
7
|
-
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
8
|
-
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
9
|
-
const CSS = {
|
|
10
|
-
container: "container",
|
|
11
|
-
containerHorizontal: "container--horizontal",
|
|
12
|
-
containerVertical: "container--vertical"
|
|
13
|
-
};
|
|
14
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{display:flex;flex:1 1 auto}.container--vertical{flex-direction:column}.container--horizontal{flex-direction:row}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
15
|
-
class SortableList extends LitElement {
|
|
16
|
-
constructor() {
|
|
17
|
-
super();
|
|
18
|
-
this.dragEnabled = true;
|
|
19
|
-
this.items = [];
|
|
20
|
-
this.mutationObserver = createObserver("mutation", () => {
|
|
21
|
-
this.setUpSorting();
|
|
22
|
-
});
|
|
23
|
-
this.sortable = useSortable()(this);
|
|
24
|
-
this.interactiveContainer = useInteractive(this);
|
|
25
|
-
this.disabled = false;
|
|
26
|
-
this.handleSelector = "calcite-handle";
|
|
27
|
-
this.layout = "vertical";
|
|
28
|
-
this.loading = false;
|
|
29
|
-
this.calciteListOrderChange = createEvent({ cancelable: false });
|
|
30
|
-
this.listen("calciteHandleNudge", this.calciteHandleNudgeNextHandler);
|
|
31
|
-
}
|
|
32
|
-
static {
|
|
33
|
-
this.properties = { canPull: [0, {}, { attribute: false }], canPut: [0, {}, { attribute: false }], disabled: [7, {}, { reflect: true, type: Boolean }], dragSelector: [3, {}, { reflect: true }], group: [3, {}, { reflect: true }], handleSelector: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], loading: [7, {}, { reflect: true, type: Boolean }] };
|
|
34
|
-
}
|
|
35
|
-
static {
|
|
36
|
-
this.styles = styles;
|
|
37
|
-
}
|
|
38
|
-
connectedCallback() {
|
|
39
|
-
super.connectedCallback();
|
|
40
|
-
this.setUpSorting();
|
|
41
|
-
this.beginObserving();
|
|
42
|
-
}
|
|
43
|
-
load() {
|
|
44
|
-
logger.deprecated("component", {
|
|
45
|
-
component: this,
|
|
46
|
-
name: "sortable-list",
|
|
47
|
-
removalVersion: 5,
|
|
48
|
-
suggested: "block-group"
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
disconnectedCallback() {
|
|
52
|
-
super.disconnectedCallback();
|
|
53
|
-
this.endObserving();
|
|
54
|
-
}
|
|
55
|
-
calciteHandleNudgeNextHandler(event) {
|
|
56
|
-
this.handleNudgeEvent(event);
|
|
57
|
-
}
|
|
58
|
-
onGlobalDragStart() {
|
|
59
|
-
this.endObserving();
|
|
60
|
-
}
|
|
61
|
-
onGlobalDragEnd() {
|
|
62
|
-
this.beginObserving();
|
|
63
|
-
}
|
|
64
|
-
onDragEnd() {
|
|
65
|
-
}
|
|
66
|
-
onDragStart() {
|
|
67
|
-
}
|
|
68
|
-
onDragSort() {
|
|
69
|
-
this.items = Array.from(this.el.children);
|
|
70
|
-
this.calciteListOrderChange.emit();
|
|
71
|
-
}
|
|
72
|
-
handleNudgeEvent(event) {
|
|
73
|
-
const { direction } = event.detail;
|
|
74
|
-
const handle = event.composedPath().find((el) => el.matches(this.handleSelector));
|
|
75
|
-
const sortItem = this.items.find((item) => {
|
|
76
|
-
return handle && item.contains(handle) || event.composedPath().includes(item);
|
|
77
|
-
});
|
|
78
|
-
const lastIndex = this.items.length - 1;
|
|
79
|
-
const startingIndex = sortItem ? this.items.indexOf(sortItem) : -1;
|
|
80
|
-
let appendInstead = false;
|
|
81
|
-
let buddyIndex;
|
|
82
|
-
if (direction === "up") {
|
|
83
|
-
if (startingIndex === 0) {
|
|
84
|
-
appendInstead = true;
|
|
85
|
-
} else {
|
|
86
|
-
buddyIndex = startingIndex - 1;
|
|
87
|
-
}
|
|
88
|
-
} else {
|
|
89
|
-
if (startingIndex === lastIndex) {
|
|
90
|
-
buddyIndex = 0;
|
|
91
|
-
} else if (startingIndex === lastIndex - 1) {
|
|
92
|
-
appendInstead = true;
|
|
93
|
-
} else {
|
|
94
|
-
buddyIndex = startingIndex + 2;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
this.endObserving();
|
|
98
|
-
if (appendInstead) {
|
|
99
|
-
sortItem.parentElement.appendChild(sortItem);
|
|
100
|
-
} else {
|
|
101
|
-
sortItem.parentElement.insertBefore(sortItem, this.items[buddyIndex]);
|
|
102
|
-
}
|
|
103
|
-
this.items = Array.from(this.el.children);
|
|
104
|
-
this.beginObserving();
|
|
105
|
-
requestAnimationFrame(() => focusElement(handle));
|
|
106
|
-
if (handle && "selected" in handle) {
|
|
107
|
-
handle.selected = true;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
setUpSorting() {
|
|
111
|
-
this.items = Array.from(this.el.children);
|
|
112
|
-
this.sortable.reset();
|
|
113
|
-
}
|
|
114
|
-
beginObserving() {
|
|
115
|
-
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
116
|
-
}
|
|
117
|
-
endObserving() {
|
|
118
|
-
this.mutationObserver?.disconnect();
|
|
119
|
-
}
|
|
120
|
-
render() {
|
|
121
|
-
const { disabled, layout } = this;
|
|
122
|
-
const horizontal = layout === "horizontal" || false;
|
|
123
|
-
return this.interactiveContainer({ disabled, children: html`<div class=${safeClassMap({
|
|
124
|
-
[CSS.container]: true,
|
|
125
|
-
[CSS.containerVertical]: !horizontal,
|
|
126
|
-
[CSS.containerHorizontal]: horizontal
|
|
127
|
-
})}><slot></slot></div>` });
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
customElement("calcite-sortable-list", SortableList);
|
|
131
|
-
export {
|
|
132
|
-
SortableList
|
|
133
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
File without changes
|
|
File without changes
|