@esri/calcite-components 6.0.0-next.2 → 6.0.0-next.20
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/dist/cdn/{KE3GJVSQ.js → 22NLVRMQ.js} +1 -1
- package/dist/cdn/{TT36J74O.js → 26SKFA7H.js} +1 -1
- package/dist/cdn/{KCDRJSQ5.js → 2ERADWX5.js} +1 -1
- package/dist/cdn/{CITN3SES.js → 2M4URDWG.js} +1 -1
- package/dist/cdn/{GXSJJCPQ.js → 2TIS2MT6.js} +1 -1
- package/dist/cdn/{B6T5RNLF.js → 352QTXGL.js} +1 -1
- package/dist/cdn/{KHJVFQLY.js → 3H7BHSWS.js} +1 -1
- package/dist/cdn/{WZEY6HY6.js → 3MKROW7D.js} +1 -1
- package/dist/cdn/3QZNUHZN.js +2 -0
- package/dist/cdn/3ZNJNYLQ.js +2 -0
- package/dist/cdn/47T3GQOF.js +2 -0
- package/dist/cdn/{NAJMABPV.js → 4EPSJDMC.js} +1 -1
- package/dist/cdn/{273FNCX2.js → 4F4R7KYO.js} +1 -1
- package/dist/cdn/4FCP3TFX.js +2 -0
- package/dist/cdn/4OQDH6ML.js +2 -0
- package/dist/cdn/4PMDXBZR.js +2 -0
- package/dist/cdn/55ZSMEHY.js +2 -0
- package/dist/cdn/5AGKW7GW.js +2 -0
- package/dist/cdn/{K4PBH6SD.js → 5QXIAHK7.js} +1 -1
- package/dist/cdn/{NRDEJY44.js → 5VCXRHKV.js} +1 -1
- package/dist/cdn/5VOEKVT2.js +2 -0
- package/dist/cdn/62W5GAI2.js +2 -0
- package/dist/cdn/{V2KL5GNR.js → 67UBUW46.js} +1 -1
- package/dist/cdn/{XDGVGNRC.js → 6FZVJGKC.js} +1 -1
- package/dist/cdn/6MDH7C4R.js +2 -0
- package/dist/cdn/6QUUBHCN.js +2 -0
- package/dist/cdn/{7YEZVXC4.js → 6RCNPDD6.js} +1 -1
- package/dist/cdn/73UJQHUJ.js +2 -0
- package/dist/cdn/{NM4JGNN2.js → 77NLVPBD.js} +1 -1
- package/dist/cdn/77TK7LRB.js +2 -0
- package/dist/cdn/{W2W3CKTH.js → 7AZ57PED.js} +1 -1
- package/dist/cdn/{KOVKQZ54.js → 7IASAQ7D.js} +1 -1
- package/dist/cdn/{N2LW56CP.js → 7QGFB6LY.js} +1 -1
- package/dist/cdn/{DPRLR4WC.js → 7XS2SBMV.js} +1 -1
- package/dist/cdn/{SKGY35V6.js → AF5N73PK.js} +1 -1
- package/dist/cdn/AG73SIBX.js +2 -0
- package/dist/cdn/AGMPWK3B.js +2 -0
- package/dist/cdn/{7IAXXX5I.js → AGX2R2FQ.js} +1 -1
- package/dist/cdn/{NBOTH5XL.js → ASXRP7XI.js} +1 -1
- package/dist/cdn/{KRVMZWGR.js → AU5A2EFG.js} +1 -1
- package/dist/cdn/AYYWY4FE.js +2 -0
- package/dist/cdn/{2DSTJBKW.js → B2MS3P2I.js} +1 -1
- package/dist/cdn/{NY4HO46K.js → BBSSYLOF.js} +1 -1
- package/dist/cdn/BISG4LDB.js +2 -0
- package/dist/cdn/{U7YCVXZ3.js → BJAWDVEF.js} +1 -1
- package/dist/cdn/{2FAOL3TJ.js → C6XPR34H.js} +1 -1
- package/dist/cdn/{QQJAAD4D.js → C75XSIWC.js} +1 -1
- package/dist/cdn/CKMYPQDQ.js +2 -0
- package/dist/cdn/CTGSTFNT.js +2 -0
- package/dist/cdn/{S7LNFWY3.js → CZO3L5SA.js} +1 -1
- package/dist/cdn/{HHUWPN3A.js → D56BPCF2.js} +1 -1
- package/dist/cdn/{JXF6UBUW.js → DBXOMBNK.js} +1 -1
- package/dist/cdn/{SIYPJMXG.js → DDNUWCV6.js} +1 -1
- package/dist/cdn/{66U3YQAK.js → DGHV63ZL.js} +1 -1
- package/dist/cdn/DOHECLK5.js +2 -0
- package/dist/cdn/{UE76JFYY.js → DOIHMBBW.js} +1 -1
- package/dist/cdn/{737AN2CX.js → DQIUIZK3.js} +1 -1
- package/dist/cdn/E5BC5QKH.js +2 -0
- package/dist/cdn/{MKQQ4JY5.js → E6AHBWHN.js} +1 -1
- package/dist/cdn/EHHDQ55E.js +4 -0
- package/dist/cdn/{KAADRWY5.js → F3VMM64Y.js} +1 -1
- package/dist/cdn/{IHGUGSQZ.js → F54DLL4E.js} +1 -1
- package/dist/cdn/{4XVKHJ2X.js → F5ITNV4F.js} +1 -1
- package/dist/cdn/FGAGMZ65.js +2 -0
- package/dist/cdn/{SODPWZHI.js → FMFRWNOX.js} +1 -1
- package/dist/cdn/FMX2HLIF.js +2 -0
- package/dist/cdn/{ALDTCMFW.js → FNMUXYJK.js} +1 -1
- package/dist/cdn/{SXAW7MNS.js → FR6PIDS2.js} +1 -1
- package/dist/cdn/G4GNSXXB.js +2 -0
- package/dist/cdn/{2M4ETWZU.js → G4SOANDF.js} +1 -1
- package/dist/cdn/{5ZMT3SCL.js → GEX42V2X.js} +1 -1
- package/dist/cdn/GHNUQ7YS.js +2 -0
- package/dist/cdn/GODDGRIM.js +2 -0
- package/dist/cdn/{LPAMEVHT.js → GOGEX4ZP.js} +1 -1
- package/dist/cdn/{XOFZSKJF.js → H6GIBAIH.js} +1 -1
- package/dist/cdn/{XKHMRAUY.js → HBWRRDGG.js} +1 -1
- package/dist/cdn/HCU5UUAA.js +2 -0
- package/dist/cdn/HD3HSAAD.js +2 -0
- package/dist/cdn/{GGNXTSYK.js → HIKJEHYI.js} +1 -1
- package/dist/cdn/{ZDSVHHRM.js → HJHRSII7.js} +1 -1
- package/dist/cdn/{G7RVPH4C.js → HKXJXU7S.js} +1 -1
- package/dist/cdn/I34PZLRU.js +2 -0
- package/dist/cdn/{4RK2IZYL.js → I465CPMF.js} +1 -1
- package/dist/cdn/{DYQWA4UX.js → I4G7ZB4P.js} +1 -1
- package/dist/cdn/I5PTU3Q5.js +2 -0
- package/dist/cdn/IFGDFXTG.js +2 -0
- package/dist/cdn/{2ZGOGJF6.js → IR2A2F5H.js} +1 -1
- package/dist/cdn/{UOBTIKWI.js → IYZWM4FM.js} +1 -1
- package/dist/cdn/{L52YMQCF.js → J2OH4U4P.js} +1 -1
- package/dist/cdn/{A4NOGVP7.js → JAR2VTHU.js} +1 -1
- package/dist/cdn/JIKTRB5Y.js +2 -0
- package/dist/cdn/JYHXYYGU.js +2 -0
- package/dist/cdn/{YWJV2ZJH.js → K4N2EM4F.js} +1 -1
- package/dist/cdn/KL4S3ITD.js +2 -0
- package/dist/cdn/KTV65ZLA.js +2 -0
- package/dist/cdn/KW5HDNRL.js +2 -0
- package/dist/cdn/KY5KZ3TP.js +2 -0
- package/dist/cdn/LAW7YN32.js +2 -0
- package/dist/cdn/{CEXDJV3D.js → LG7XKQE5.js} +1 -1
- package/dist/cdn/{JIIKBJJW.js → M7DSCHPP.js} +1 -1
- package/dist/cdn/MCHCHOX2.js +2 -0
- package/dist/cdn/{FMBZL2MH.js → MIJMEBBT.js} +1 -1
- package/dist/cdn/{WMSWABKA.js → MV5VZTG4.js} +1 -1
- package/dist/cdn/{O6FVXXVE.js → MZEWBDY5.js} +1 -1
- package/dist/cdn/{72VQX4HV.js → NA4WBXVV.js} +1 -1
- package/dist/cdn/{6KYJOPZY.js → NIKLMX5K.js} +1 -1
- package/dist/cdn/{YF7W5TNY.js → NO3H5PAJ.js} +1 -1
- package/dist/cdn/NYER5O2A.js +2 -0
- package/dist/cdn/{LHJS25PA.js → ODU6JYNH.js} +1 -1
- package/dist/cdn/ON35XWXF.js +2 -0
- package/dist/cdn/ONY6IA3S.js +2 -0
- package/dist/cdn/{D6ZKUE5D.js → OOWXHCQX.js} +1 -1
- package/dist/cdn/{CTFG7BKR.js → OS5XNQXP.js} +1 -1
- package/dist/cdn/OUGIMZJ3.js +2 -0
- package/dist/cdn/{KWWA7UIP.js → OVPEWR26.js} +1 -1
- package/dist/cdn/{77QBHZFJ.js → P36DALSW.js} +1 -1
- package/dist/cdn/PHFOHCAR.js +2 -0
- package/dist/cdn/PI3UGAL6.js +2 -0
- package/dist/cdn/PRTNSPHR.js +2 -0
- package/dist/cdn/PZ4KRU67.js +2 -0
- package/dist/cdn/Q2HLWSB3.js +2 -0
- package/dist/cdn/Q3V3YTJP.js +2 -0
- package/dist/cdn/{QLYXW2TH.js → Q53JZPXE.js} +1 -1
- package/dist/cdn/QH7JGATU.js +2 -0
- package/dist/cdn/{AULZNBSL.js → QWS3NTOY.js} +1 -1
- package/dist/cdn/QXBEVQ6N.js +2 -0
- package/dist/cdn/{WQKFWH55.js → RADU4FG4.js} +1 -1
- package/dist/cdn/RHZDPDYF.js +4 -0
- package/dist/cdn/RIILA76Y.js +2 -0
- package/dist/cdn/{NBJ5NTDK.js → RJQT2IJV.js} +1 -1
- package/dist/cdn/{MSTEJZOI.js → RKMSN5Z6.js} +1 -1
- package/dist/cdn/ROSOTUC6.js +2 -0
- package/dist/cdn/{QKYO5KKT.js → RPZA26PT.js} +1 -1
- package/dist/cdn/S45ARFE5.js +2 -0
- package/dist/cdn/S56DZ7HX.js +2 -0
- package/dist/cdn/{XPSSVDAR.js → S5LQF6KX.js} +1 -1
- package/dist/cdn/{XWKUAYS3.js → SDU4R5MI.js} +1 -1
- package/dist/cdn/SFVC7634.js +2 -0
- package/dist/cdn/{DAT73NDQ.js → SNG25NUL.js} +1 -1
- package/dist/cdn/{YKOI3XVI.js → SRUYXOUG.js} +1 -1
- package/dist/cdn/TBUV6LXL.js +2 -0
- package/dist/cdn/{AYRJ7NYC.js → TJGNWJF6.js} +1 -1
- package/dist/cdn/{LVU4SIXV.js → TNX6HV4E.js} +1 -1
- package/dist/cdn/{G5CKYQMY.js → TP6227SF.js} +1 -1
- package/dist/cdn/{CWBXU2F7.js → TXHV24AS.js} +1 -1
- package/dist/cdn/{3CCUB4RN.js → UPZOW3QC.js} +1 -1
- package/dist/cdn/{GRW5KE52.js → UTMNNT2G.js} +1 -1
- package/dist/cdn/{YSW3EMMW.js → UTXN6YZB.js} +1 -1
- package/dist/cdn/{BWWSTZBC.js → V5B5TLVR.js} +1 -1
- package/dist/cdn/{II4VOTYZ.js → VDWZNBQ2.js} +1 -1
- package/dist/cdn/VHVTQW5W.js +2 -0
- package/dist/cdn/{AJUUWTFC.js → VKDNMFWC.js} +1 -1
- package/dist/cdn/VLAYRY7T.js +2 -0
- package/dist/cdn/VMNZNHPM.js +2 -0
- package/dist/cdn/{WIHQLE5T.js → VSZ73WMA.js} +1 -1
- package/dist/cdn/{NPSRHHXM.js → VTWFALP4.js} +1 -1
- package/dist/cdn/WDALO54G.js +2 -0
- package/dist/cdn/{T6FDJHAC.js → WFZWGXCL.js} +1 -1
- package/dist/cdn/{M3FI5WF2.js → WG4RAPSY.js} +1 -1
- package/dist/cdn/{MEWOQUB3.js → WHTHZOC4.js} +1 -1
- package/dist/cdn/X4UTJBGS.js +2 -0
- package/dist/cdn/X72CO2GR.js +2 -0
- package/dist/cdn/{4SPWA3PB.js → XAMGXDQM.js} +1 -1
- package/dist/cdn/{ECJJHTCC.js → XIERF7M3.js} +1 -1
- package/dist/cdn/XPHFRVKY.js +2 -0
- package/dist/cdn/XXUPRH2U.js +2 -0
- package/dist/cdn/{RUGBI54D.js → XY2NGASJ.js} +1 -1
- package/dist/cdn/YRP2DNSL.js +2 -0
- package/dist/cdn/{WHGMG5VX.js → YV7JYJCI.js} +1 -1
- package/dist/cdn/YYPRBJGS.js +20 -0
- package/dist/cdn/{XHNFLVLS.js → Z6UTYXNI.js} +1 -1
- package/dist/cdn/ZBN4CXKG.js +2 -0
- package/dist/cdn/ZCTSQDC2.js +2 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal16.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/dom.js +6 -16
- 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 +1 -1
- 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 +1 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/sortable.js +1 -1
- package/dist/chunks/useForm.js +1 -1
- package/dist/chunks/useSizeOverride.js +2 -2
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-action/customElement.js +2 -2
- package/dist/components/calcite-action-bar/customElement.js +45 -14
- package/dist/components/calcite-action-group/customElement.js +3 -3
- package/dist/components/calcite-action-menu/customElement.js +3 -3
- package/dist/components/calcite-alert/customElement.js +2 -2
- package/dist/components/calcite-autocomplete/customElement.js +8 -8
- package/dist/components/calcite-autocomplete-item/customElement.js +2 -2
- package/dist/components/calcite-autocomplete-item-group/customElement.js +3 -3
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +0 -35
- package/dist/components/calcite-block/customElement.js +3 -32
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +0 -7
- package/dist/components/calcite-block-group/customElement.js +3 -4
- package/dist/components/calcite-card/customElement.js +1 -1
- package/dist/components/calcite-card-group/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +3 -3
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +2 -2
- package/dist/components/calcite-dialog/customElement.js +5 -4
- package/dist/components/calcite-dropdown/customElement.d.ts +2 -4
- package/dist/components/calcite-dropdown/customElement.js +2 -2
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.js +1 -1
- package/dist/components/calcite-input-message/customElement.d.ts +1 -4
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-picker/customElement.js +2 -2
- package/dist/components/calcite-input-time-zone/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/calcite-list/customElement.d.ts +1 -8
- package/dist/components/calcite-list/customElement.js +1 -2
- package/dist/components/calcite-list/index.js +1 -1
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +2 -2
- package/dist/components/calcite-navigation/customElement.js +2 -2
- package/dist/components/calcite-navigation-logo/customElement.js +1 -1
- package/dist/components/calcite-navigation-user/customElement.js +1 -1
- package/dist/components/calcite-notice/customElement.d.ts +1 -3
- package/dist/components/calcite-notice/customElement.js +2 -2
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.js +3 -3
- package/dist/components/calcite-popover/customElement.d.ts +2 -4
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +7 -7
- package/dist/components/calcite-segmented-control/customElement.d.ts +0 -2
- package/dist/components/calcite-segmented-control/customElement.js +1 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +1 -3
- package/dist/components/calcite-select/customElement.js +2 -2
- package/dist/components/calcite-shell/customElement.js +4 -2
- package/dist/components/calcite-shell-panel/customElement.d.ts +5 -6
- package/dist/components/calcite-shell-panel/customElement.js +9 -1
- package/dist/components/calcite-shell-panel/types.d.ts +1 -1
- package/dist/components/calcite-slider/customElement.js +2 -2
- package/dist/components/calcite-split-button/customElement.d.ts +1 -3
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-swatch/customElement.js +1 -1
- package/dist/components/calcite-switch/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-text/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-tile/customElement.js +1 -4
- package/dist/components/calcite-tile-group/customElement.d.ts +1 -2
- package/dist/components/calcite-tooltip/customElement.d.ts +2 -4
- package/dist/components/calcite-tooltip/customElement.js +2 -2
- package/dist/components/calcite-tree-item/customElement.js +2 -2
- 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 +0 -5
- package/dist/types/lumina.d.ts +0 -39
- package/dist/types/preact.d.ts +0 -44
- package/dist/types/react.d.ts +0 -49
- package/dist/types/stencil.d.ts +0 -39
- package/package.json +17 -17
- package/dist/cdn/2VTY5LQ6.js +0 -2
- package/dist/cdn/337IVZQ5.js +0 -2
- package/dist/cdn/3CTVLEWD.js +0 -2
- package/dist/cdn/3IUKHKSX.js +0 -20
- package/dist/cdn/3U524SQH.js +0 -2
- package/dist/cdn/3WA7E4ZU.js +0 -2
- package/dist/cdn/4DQBCTK5.js +0 -2
- package/dist/cdn/663G76DR.js +0 -2
- package/dist/cdn/6E3UFQ5L.js +0 -2
- package/dist/cdn/6M2GRSL6.js +0 -2
- package/dist/cdn/6NZ4M3JI.js +0 -2
- package/dist/cdn/6ZEJRYDB.js +0 -2
- package/dist/cdn/7NQLZR6U.js +0 -2
- package/dist/cdn/A6ZG6CH4.js +0 -2
- package/dist/cdn/B3OV6FHO.js +0 -2
- package/dist/cdn/C7HSJAUY.js +0 -2
- package/dist/cdn/CQYIOPJS.js +0 -2
- package/dist/cdn/CS2JG65P.js +0 -2
- package/dist/cdn/D256R6DP.js +0 -2
- package/dist/cdn/D2SW4SVQ.js +0 -2
- package/dist/cdn/DP6CN6HN.js +0 -2
- package/dist/cdn/E5NJW2ZG.js +0 -2
- package/dist/cdn/EHVRGGHS.js +0 -2
- package/dist/cdn/EIEKGCTH.js +0 -2
- package/dist/cdn/EKMBB3NE.js +0 -2
- package/dist/cdn/F5J2JR3T.js +0 -2
- package/dist/cdn/FPXP76XS.js +0 -2
- package/dist/cdn/GAAKV2C3.js +0 -2
- package/dist/cdn/GJRL6GXH.js +0 -2
- package/dist/cdn/GYQADZBQ.js +0 -2
- package/dist/cdn/HQOZ7PVD.js +0 -2
- package/dist/cdn/HRQCTYB2.js +0 -2
- package/dist/cdn/IZ5CUQJA.js +0 -2
- package/dist/cdn/J7SLQZST.js +0 -2
- package/dist/cdn/JI5RWOTK.js +0 -2
- package/dist/cdn/JUUVUH5Y.js +0 -2
- package/dist/cdn/JYQEVQED.js +0 -2
- package/dist/cdn/KA3HIFHL.js +0 -2
- package/dist/cdn/MBPSINVB.js +0 -2
- package/dist/cdn/MVZRXC34.js +0 -2
- package/dist/cdn/N2LRLEKB.js +0 -2
- package/dist/cdn/NPLTKVWC.js +0 -2
- package/dist/cdn/NSIM6YJP.js +0 -2
- package/dist/cdn/OF7EDP7Y.js +0 -2
- package/dist/cdn/OMRGS6YG.js +0 -2
- package/dist/cdn/ONL7KCBI.js +0 -2
- package/dist/cdn/Q26NSEOR.js +0 -2
- package/dist/cdn/Q4PGLETQ.js +0 -2
- package/dist/cdn/QEXI4SMX.js +0 -2
- package/dist/cdn/QGQY72AI.js +0 -2
- package/dist/cdn/R4JCPBLC.js +0 -2
- package/dist/cdn/R6WKGKSU.js +0 -2
- package/dist/cdn/RDQF6AQS.js +0 -2
- package/dist/cdn/RT5ZS4VX.js +0 -2
- package/dist/cdn/SL3MH5OT.js +0 -2
- package/dist/cdn/THWEI3K2.js +0 -2
- package/dist/cdn/TOTGM2SP.js +0 -2
- package/dist/cdn/TRRY5LN7.js +0 -2
- package/dist/cdn/TWU5BV7Z.js +0 -2
- package/dist/cdn/UAICETTE.js +0 -2
- package/dist/cdn/UDLWRVR4.js +0 -4
- package/dist/cdn/UGD4VOGZ.js +0 -2
- package/dist/cdn/VBMZS3ZU.js +0 -2
- package/dist/cdn/VL7QTJSE.js +0 -2
- package/dist/cdn/VXTRPJJ4.js +0 -2
- package/dist/cdn/W32WN6PV.js +0 -2
- package/dist/cdn/WCO6AFY3.js +0 -2
- package/dist/cdn/WN6KY7GO.js +0 -2
- package/dist/cdn/X2TR4NTP.js +0 -2
- package/dist/cdn/XG62B2V7.js +0 -2
- package/dist/cdn/XODDJIYV.js +0 -2
- package/dist/cdn/XVEFLGJR.js +0 -2
- package/dist/cdn/Y5VG6YLH.js +0 -4
- package/dist/cdn/YBX7RUMR.js +0 -2
- package/dist/cdn/YKOLRZEJ.js +0 -2
- package/dist/cdn/YTDEBSOG.js +0 -2
- package/dist/cdn/YV4JKSOA.js +0 -2
- package/dist/cdn/ZS5MSUS7.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-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
|
-
{"dragHandle":"Positionera om: {itemLabel}","dragHandleUntitled":"Positionera om","dragHandleActive":"Ändrar ordning på {itemLabel}, aktuell position {position} för {total}.","dragHandleChange":"{itemLabel}, ny position {position} för {total}. Tryck på blanksteg för att bekräfta.","dragHandleCommit":"{itemLabel}, aktuell position {position} för {total}.","dragHandleIdle":"{itemLabel}, tryck på blanksteg och använd piltangenterna för att ändra ordning på innehållet. Den aktuella positionen {position} för {total}."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dragHandle":"ปรับตำแหน่ง: {itemLabel}","dragHandleUntitled":"ปรับตำแหน่ง","dragHandleActive":"กำลังเรียงลำดับใหม่ {itemLabel}, ตำแหน่งปัจจุบัน {position} จาก {total}","dragHandleChange":"{itemLabel}, ตำแหน่งใหม่ {position} จาก {total} กด Space เพื่อยืนยัน","dragHandleCommit":"{itemLabel}, ตำแหน่งปัจจุบัน {position} จาก {total}","dragHandleIdle":"{itemLabel}, กด Space และใช้ปุ่มลูกศรเพื่อเรียงลำดับเนื้อหาใหม่ ตำแหน่งที่ตั้งปัจจุบัน {position} ของ {total}"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dragHandle":"Yeniden Konumlandır: {itemLabel}","dragHandleUntitled":"Yeniden Konumlandır","dragHandleActive":"{itemLabel} yeniden sıralanıyor, geçerli konum {position} / {total}.","dragHandleChange":"{itemLabel}, yeni konum {position} / {total}. Onaylamak için boşluk tuşuna basın.","dragHandleCommit":"{itemLabel}, geçerli konum {position} / {total}.","dragHandleIdle":"{itemLabel}, içeriği yeniden sıralamak için boşluk tuşuna basın ve ok tuşlarını kullanın. Geçerli konum {position} / {total}."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dragHandle":"Змінити положення: {itemLabel}","dragHandleUntitled":"Змінити положення","dragHandleActive":"Перевпорядкування {itemLabel}, поточне положення {position} з {total}.","dragHandleChange":"{itemLabel}, нове положення {position} з {total}. Натисніть пробіл для підтвердження.","dragHandleCommit":"{itemLabel}, поточне положення {position} з {total}.","dragHandleIdle":"{itemLabel}, натисніть пробіл і використовуйте клавіші зі стрілками, щоб змінити порядок змісту. Поточне положення {position} з {total}."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dragHandle":"Định vị lại: {itemLabel}","dragHandleUntitled":"Định vị lại","dragHandleActive":"Sắp xếp lại {itemLabel}, vị trí hiện tại {position} trên {total}.","dragHandleChange":"{itemLabel}, vị trí mới {position} trên {total}. Nhấn dấu cách để xác nhận.","dragHandleCommit":"{itemLabel}, vị trí hiện tại {position} trên {total}.","dragHandleIdle":"{itemLabel}, nhấn dấu cách và sử dụng các phím mũi tên để sắp xếp lại nội dung. Vị trí hiện tại {position} trên {total}."}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dragHandle":"重新定位:{itemLabel}","dragHandleUntitled":"重新定位","dragHandleActive":"重新排序 {itemLabel},当前位置 {position},共 {total} 个。","dragHandleChange":"{itemLabel},新位置 {position},共 {total} 个。 按空格键确认。","dragHandleCommit":"{itemLabel},当前位置 {position},共 {total} 个。","dragHandleIdle":"{itemLabel},按空格键并使用方向键重新排序内容。 当前位置 {position}/{total}。"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dragHandle":"重新定位: {itemLabel}","dragHandleUntitled":"重新定位","dragHandleActive":"正在重新排序 {itemLabel},目前位置 {position}/{total}。","dragHandleChange":"{itemLabel},新位置 {position}/{total}。 按空格鍵確認。","dragHandleCommit":"{itemLabel},目前位置 {position}/{total}。","dragHandleIdle":"{itemLabel},按空格鍵,然後使用方向鍵重新排序內容。 目前位置 {position}/{total}。"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"dragHandle":"重新定位: {itemLabel}","dragHandleUntitled":"重新定位","dragHandleActive":"正在重新排序 {itemLabel},目前位置 {position}/{total}。","dragHandleChange":"{itemLabel},新位置 {position}/{total}。 按空格鍵確認。","dragHandleCommit":"{itemLabel},目前位置 {position}/{total}。","dragHandleIdle":"{itemLabel},按空格鍵,然後使用方向鍵重新排序內容。 目前位置 {position}/{total}。"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { ref } from "lit/directives/ref.js";
|
|
3
|
-
import { nothing, html } from "lit";
|
|
4
|
-
import { S as SLOTS } from "./resources.js";
|
|
5
|
-
import { S as SLOTS$1 } from "./resources2.js";
|
|
6
|
-
const ICONS = {
|
|
7
|
-
chevronsLeft: "chevrons-left",
|
|
8
|
-
chevronsRight: "chevrons-right"
|
|
9
|
-
};
|
|
10
|
-
function getCalcitePosition(el, position) {
|
|
11
|
-
return position || el.closest("calcite-shell-panel")?.position || "start";
|
|
12
|
-
}
|
|
13
|
-
function toggleActionBarChildActionText({ actions, expandables, expanded }) {
|
|
14
|
-
actions.filter((el) => el.slot !== SLOTS.menuActions).forEach((action) => action.textEnabled = expanded);
|
|
15
|
-
expandables.forEach((item) => item.expanded = expanded);
|
|
16
|
-
}
|
|
17
|
-
function legacyToggleChildActionText({ el, expanded }) {
|
|
18
|
-
Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.slot !== SLOTS.menuActions && (action.closest("calcite-action-menu") ? action.slot === SLOTS$1.trigger : true)).forEach((action) => action.textEnabled = expanded);
|
|
19
|
-
el.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((expandable) => expandable.expanded = expanded);
|
|
20
|
-
}
|
|
21
|
-
const setTooltipReference = ({ tooltip, referenceElement, expanded, ref: ref2 }) => {
|
|
22
|
-
if (tooltip) {
|
|
23
|
-
tooltip.referenceElement = !expanded && referenceElement ? referenceElement : void 0;
|
|
24
|
-
}
|
|
25
|
-
if (ref2) {
|
|
26
|
-
ref2(referenceElement);
|
|
27
|
-
}
|
|
28
|
-
return referenceElement;
|
|
29
|
-
};
|
|
30
|
-
const ExpandToggle = ({ collapseText, collapseLabel, direction, expanded, expandText, expandLabel, toggle, el, position, tooltip, ref: ref$1, scale }) => {
|
|
31
|
-
const rtl = direction === "rtl";
|
|
32
|
-
const text = expanded ? collapseText : expandText;
|
|
33
|
-
const label = expanded ? collapseLabel : expandLabel;
|
|
34
|
-
const icons = [ICONS.chevronsLeft, ICONS.chevronsRight];
|
|
35
|
-
if (rtl) {
|
|
36
|
-
icons.reverse();
|
|
37
|
-
}
|
|
38
|
-
const end = getCalcitePosition(el, position) === "end";
|
|
39
|
-
const expandIcon = end ? icons[1] : icons[0];
|
|
40
|
-
const collapseIcon = end ? icons[0] : icons[1];
|
|
41
|
-
const actionNode = html`<calcite-action .aria=${{ expanded }} .icon=${expanded ? expandIcon : collapseIcon} id=expand-toggle .label=${label} @click=${toggle} .scale=${scale} .text=${text} .textEnabled=${expanded} title=${(!expanded && !tooltip ? text : void 0) ?? nothing} ${ref((referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref: ref$1 }))}></calcite-action>`;
|
|
42
|
-
return actionNode;
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
ExpandToggle as E,
|
|
46
|
-
legacyToggleChildActionText as l,
|
|
47
|
-
toggleActionBarChildActionText as t
|
|
48
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { Layout, Position, Scale, SelectionAppearance } from "../types.js";
|
|
4
|
-
import type { OverlayPositioning } from "../../utils/floating-ui.js";
|
|
5
|
-
|
|
6
|
-
declare module "@arcgis/lumina" {
|
|
7
|
-
export interface DeclareCssProperties {
|
|
8
|
-
/** Specifies the component's border radius. */
|
|
9
|
-
"--calcite-action-pad-corner-radius": "*";
|
|
10
|
-
/** When `expanded` and `layout` is `"vertical"`, specifies the component's maximum width. */
|
|
11
|
-
"--calcite-action-pad-expanded-max-width": "*";
|
|
12
|
-
/** Specifies the component's space between slotted components. */
|
|
13
|
-
"--calcite-action-pad-items-space": "*";
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated in v5.0.0, removal target v6.0.0 - Use the `calcite-action-bar` component instead.
|
|
19
|
-
* @slot - A slot for adding `calcite-action`s to the component.
|
|
20
|
-
* @slot [expand-tooltip] - A slot to set the `calcite-tooltip` for the expand toggle.
|
|
21
|
-
*/
|
|
22
|
-
export abstract class ActionPad extends LitElement {
|
|
23
|
-
/** Specifies the accessible label for the last `calcite-action-group`. */
|
|
24
|
-
accessor actionsEndGroupLabel: string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* When `true`, the expand-toggling behavior is disabled.
|
|
27
|
-
*
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
accessor expandDisabled: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* When `true`, expands the component and its contents.
|
|
33
|
-
*
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
accessor expanded: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Specifies the layout of the component.
|
|
39
|
-
*
|
|
40
|
-
* @default "vertical"
|
|
41
|
-
*/
|
|
42
|
-
accessor layout: Extract<"horizontal" | "vertical" | "grid", Layout>;
|
|
43
|
-
/**
|
|
44
|
-
* Replace localized message strings with your own strings.
|
|
45
|
-
*
|
|
46
|
-
* _**Note**: Individual message keys may change between releases._
|
|
47
|
-
*/
|
|
48
|
-
accessor messageOverrides: {
|
|
49
|
-
expand?: string | undefined;
|
|
50
|
-
collapse?: string | undefined;
|
|
51
|
-
expandLabel?: string | undefined;
|
|
52
|
-
collapseLabel?: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Specifies the type of positioning to use for overlaid content.
|
|
56
|
-
*
|
|
57
|
-
* - `"absolute"` works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout.
|
|
58
|
-
*
|
|
59
|
-
* - `"fixed"` is used to escape an overflowing parent container, or when the reference element's `position` CSS property is `"fixed"`.
|
|
60
|
-
*
|
|
61
|
-
* @default "absolute"
|
|
62
|
-
*/
|
|
63
|
-
accessor overlayPositioning: OverlayPositioning;
|
|
64
|
-
/** Specifies the position of the component depending on the element's `dir` property. */
|
|
65
|
-
accessor position: Extract<"start" | "end", Position> | undefined;
|
|
66
|
-
/**
|
|
67
|
-
* Specifies the size of the expand `calcite-action`.
|
|
68
|
-
*
|
|
69
|
-
* @default "m"
|
|
70
|
-
*/
|
|
71
|
-
accessor scale: Scale;
|
|
72
|
-
/**
|
|
73
|
-
* Specifies the selection appearance of the component
|
|
74
|
-
*
|
|
75
|
-
* @default "neutral"
|
|
76
|
-
*/
|
|
77
|
-
accessor selectionAppearance: Extract<"neutral" | "highlight", SelectionAppearance>;
|
|
78
|
-
/**
|
|
79
|
-
* Sets focus on the component's first focusable element.
|
|
80
|
-
*
|
|
81
|
-
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
82
|
-
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
83
|
-
*/
|
|
84
|
-
setFocus(options?: FocusOptions): Promise<void>;
|
|
85
|
-
/** Fires when the component's content area is collapsed. */
|
|
86
|
-
readonly calciteActionPadCollapse: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
87
|
-
/** Fires when the component's content area is expanded. */
|
|
88
|
-
readonly calciteActionPadExpand: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
89
|
-
/** Fires when the `expanded` property is toggled. */
|
|
90
|
-
readonly calciteActionPadToggle: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
91
|
-
readonly "@eventTypes": {
|
|
92
|
-
calciteActionPadCollapse: ActionPad["calciteActionPadCollapse"]["detail"];
|
|
93
|
-
calciteActionPadExpand: ActionPad["calciteActionPadExpand"]["detail"];
|
|
94
|
-
calciteActionPadToggle: ActionPad["calciteActionPadToggle"]["detail"];
|
|
95
|
-
};
|
|
96
|
-
}
|
|
@@ -1,185 +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 { useDirection } from "@arcgis/lumina/controllers";
|
|
6
|
-
import { b as slotChangeGetAssignedElements, e as focusElementInGroup } from "../../chunks/dom.js";
|
|
7
|
-
import { l as legacyToggleChildActionText, E as ExpandToggle } from "../../chunks/ExpandToggle.js";
|
|
8
|
-
import { c as createObserver } from "../../chunks/observers.js";
|
|
9
|
-
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
10
|
-
import { i as isTooltip } from "../../chunks/resources11.js";
|
|
11
|
-
import { i as isAction } from "../../chunks/resources4.js";
|
|
12
|
-
import { u as useFocusable } from "../../chunks/useFocusable.js";
|
|
13
|
-
const CSS = {
|
|
14
|
-
actionGroupEnd: "action-group--end",
|
|
15
|
-
container: "container"
|
|
16
|
-
};
|
|
17
|
-
const SLOTS = {
|
|
18
|
-
expandTooltip: "expand-tooltip"
|
|
19
|
-
};
|
|
20
|
-
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([scale=s]){--calcite-internal-action-pad-gap: var( --calcite-action-pad-items-space, var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs)) );--calcite-internal-action-pad-padding: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=m]){--calcite-internal-action-pad-gap: var( --calcite-action-pad-items-space, var(--calcite-theme-space-sm, var(--calcite-spacing-sm)) );--calcite-internal-action-pad-padding: var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]){--calcite-internal-action-pad-gap: var(--calcite-action-pad-items-space, var(--calcite-space-sm-plus));--calcite-internal-action-pad-padding: var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}:host{display:block}@keyframes in{0%{opacity:0}to{opacity:1}}:host{animation:in var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:var(--calcite-action-pad-corner-radius, .125rem);background:transparent}:host([expanded][layout=vertical]) .container{max-inline-size:var(--calcite-action-pad-expanded-max-width, auto)}:host([layout=vertical]) ::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:1px;padding-block-end:var(--calcite-internal-action-pad-padding)}.container{display:inline-flex;flex-direction:column;overflow:hidden;box-shadow:var(--calcite-shadow-md);border-radius:calc(var(--calcite-action-pad-corner-radius, .125rem) * 2);background-color:var(--calcite-action-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));gap:var(--calcite-internal-action-pad-gap);padding:var(--calcite-internal-action-pad-padding)}.action-group--bottom{flex-grow:1;justify-content:flex-end;padding-block-end:0px}:host([layout=horizontal]) .container{flex-direction:row}:host([layout=horizontal]) .container .action-group--bottom{padding:0}:host([layout=horizontal]) .container ::slotted(calcite-action-group:not(:last-of-type)){border-inline-end-width:1px;padding-inline-end:var(--calcite-internal-action-pad-padding)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
21
|
-
class ActionPad extends LitElement {
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
this.actions = [];
|
|
25
|
-
this.direction = useDirection();
|
|
26
|
-
this.mutationObserver = createObserver("mutation", () => this.mutationObserverHandler());
|
|
27
|
-
this.toggleExpand = () => {
|
|
28
|
-
this.expanded = !this.expanded;
|
|
29
|
-
this.calciteActionPadToggle.emit();
|
|
30
|
-
};
|
|
31
|
-
this.messages = useT9n({ blocking: true });
|
|
32
|
-
this.focusSetter = useFocusable()(this);
|
|
33
|
-
this.expandDisabled = false;
|
|
34
|
-
this.expanded = false;
|
|
35
|
-
this.layout = "vertical";
|
|
36
|
-
this.overlayPositioning = "absolute";
|
|
37
|
-
this.scale = "m";
|
|
38
|
-
this.selectionAppearance = "neutral";
|
|
39
|
-
this.calciteActionPadCollapse = createEvent({ cancelable: false });
|
|
40
|
-
this.calciteActionPadExpand = createEvent({ cancelable: false });
|
|
41
|
-
this.calciteActionPadToggle = createEvent({ cancelable: false });
|
|
42
|
-
this.listen("calciteActionMenuOpen", this.actionMenuOpenHandler);
|
|
43
|
-
this.listen("keydown", this.handleKeyDown);
|
|
44
|
-
}
|
|
45
|
-
static {
|
|
46
|
-
this.properties = { expandTooltip: [16, {}, { state: true }], actionsEndGroupLabel: 1, expandDisabled: [7, {}, { reflect: true, type: Boolean }], expanded: [7, {}, { reflect: true, type: Boolean }], layout: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], position: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
|
|
47
|
-
}
|
|
48
|
-
static {
|
|
49
|
-
this.shadowRootOptions = { mode: "open", delegatesFocus: true };
|
|
50
|
-
}
|
|
51
|
-
static {
|
|
52
|
-
this.styles = styles;
|
|
53
|
-
}
|
|
54
|
-
async setFocus(options) {
|
|
55
|
-
return this.focusSetter(() => this.el, options);
|
|
56
|
-
}
|
|
57
|
-
connectedCallback() {
|
|
58
|
-
super.connectedCallback();
|
|
59
|
-
this.updateActions();
|
|
60
|
-
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
61
|
-
}
|
|
62
|
-
async load() {
|
|
63
|
-
logger.deprecated("component", {
|
|
64
|
-
component: this,
|
|
65
|
-
name: "action-pad",
|
|
66
|
-
removalVersion: 5,
|
|
67
|
-
suggested: "action-bar"
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
willUpdate(changes) {
|
|
71
|
-
if (changes.has("expanded") && this.hasUpdated) {
|
|
72
|
-
legacyToggleChildActionText({ el: this.el, expanded: this.expanded });
|
|
73
|
-
}
|
|
74
|
-
if (changes.has("layout") && (this.hasUpdated || this.layout !== "vertical")) {
|
|
75
|
-
this.updateGroups();
|
|
76
|
-
}
|
|
77
|
-
if (changes.has("expanded") && this.hasUpdated) {
|
|
78
|
-
if (this.expanded) {
|
|
79
|
-
this.calciteActionPadExpand.emit();
|
|
80
|
-
} else {
|
|
81
|
-
this.calciteActionPadCollapse.emit();
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
if (changes.has("selectionAppearance") && (this.hasUpdated || this.selectionAppearance !== "neutral")) {
|
|
85
|
-
this.updateActions();
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
disconnectedCallback() {
|
|
89
|
-
super.disconnectedCallback();
|
|
90
|
-
this.mutationObserver?.disconnect();
|
|
91
|
-
}
|
|
92
|
-
actionMenuOpenHandler(event) {
|
|
93
|
-
if (event.target.menuOpen) {
|
|
94
|
-
const composedPath = event.composedPath();
|
|
95
|
-
this.actionGroups?.forEach((group) => {
|
|
96
|
-
if (!composedPath.includes(group)) {
|
|
97
|
-
group.menuOpen = false;
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
updateGroups() {
|
|
103
|
-
const groups = Array.from(this.el.querySelectorAll("calcite-action-group"));
|
|
104
|
-
this.actionGroups = groups;
|
|
105
|
-
this.setGroupLayout(groups);
|
|
106
|
-
}
|
|
107
|
-
setGroupLayout(groups) {
|
|
108
|
-
groups.forEach((group) => group.layout = this.layout);
|
|
109
|
-
}
|
|
110
|
-
handleDefaultSlotChange() {
|
|
111
|
-
this.updateGroups();
|
|
112
|
-
this.queryAndStoreActions();
|
|
113
|
-
this.updateActions();
|
|
114
|
-
}
|
|
115
|
-
handleTooltipSlotChange(event) {
|
|
116
|
-
const tooltips = slotChangeGetAssignedElements(event).filter(isTooltip);
|
|
117
|
-
this.expandTooltip = tooltips[0];
|
|
118
|
-
}
|
|
119
|
-
handleKeyDown(event) {
|
|
120
|
-
this.queryAndStoreActions();
|
|
121
|
-
const actions = this.actions.filter((action) => !action.disabled);
|
|
122
|
-
const current = document.activeElement;
|
|
123
|
-
if (!isAction(current) || !actions.includes(current)) {
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
switch (event.key) {
|
|
127
|
-
case "ArrowRight":
|
|
128
|
-
case "ArrowDown":
|
|
129
|
-
focusElementInGroup(actions, current, "next", true);
|
|
130
|
-
event.preventDefault();
|
|
131
|
-
break;
|
|
132
|
-
case "ArrowLeft":
|
|
133
|
-
case "ArrowUp":
|
|
134
|
-
focusElementInGroup(actions, current, "previous", true);
|
|
135
|
-
event.preventDefault();
|
|
136
|
-
break;
|
|
137
|
-
case "Home":
|
|
138
|
-
focusElementInGroup(actions, current, "first", true);
|
|
139
|
-
event.preventDefault();
|
|
140
|
-
break;
|
|
141
|
-
case "End":
|
|
142
|
-
focusElementInGroup(actions, current, "last", true);
|
|
143
|
-
event.preventDefault();
|
|
144
|
-
break;
|
|
145
|
-
case "Tab":
|
|
146
|
-
this.updateTabIndexOfItems(current);
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
updateActions() {
|
|
151
|
-
this.actions.forEach((action) => {
|
|
152
|
-
action.selectionAppearance = this.selectionAppearance;
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
updateTabIndexOfItems(active) {
|
|
156
|
-
this.actions.forEach((action) => {
|
|
157
|
-
const tabIndex = !action.disabled && action === active ? 0 : -1;
|
|
158
|
-
if (tabIndex === 0) {
|
|
159
|
-
action.removeAttribute("tabindex");
|
|
160
|
-
} else {
|
|
161
|
-
action.tabIndex = tabIndex;
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
queryAndStoreActions() {
|
|
166
|
-
this.actions = Array.from(this.el.querySelectorAll("calcite-action"));
|
|
167
|
-
}
|
|
168
|
-
mutationObserverHandler() {
|
|
169
|
-
this.updateGroups();
|
|
170
|
-
this.queryAndStoreActions();
|
|
171
|
-
this.updateActions();
|
|
172
|
-
}
|
|
173
|
-
renderBottomActionGroup() {
|
|
174
|
-
const { expanded, expandDisabled, messages, el, position, toggleExpand, scale, layout, actionsEndGroupLabel, overlayPositioning } = this;
|
|
175
|
-
const expandToggleNode = !expandDisabled ? ExpandToggle({ collapseLabel: messages.collapseLabel, collapseText: messages.collapse, direction: this.direction, el, expanded, expandLabel: messages.expandLabel, expandText: messages.expand, position, scale, toggle: toggleExpand, tooltip: this.expandTooltip }) : null;
|
|
176
|
-
return expandToggleNode ? html`<calcite-action-group class=${safeClassMap(CSS.actionGroupEnd)} .label=${actionsEndGroupLabel} .layout=${layout} .overlayPositioning=${overlayPositioning} .scale=${scale}><slot name=${SLOTS.expandTooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${expandToggleNode}</calcite-action-group>` : null;
|
|
177
|
-
}
|
|
178
|
-
render() {
|
|
179
|
-
return html`<div class=${safeClassMap(CSS.container)}><slot @slotchange=${this.handleDefaultSlotChange}></slot>${this.renderBottomActionGroup()}</div>`;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
customElement("calcite-action-pad", ActionPad);
|
|
183
|
-
export {
|
|
184
|
-
ActionPad
|
|
185
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./customElement.js";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { Scale } from "../types.js";
|
|
4
|
-
|
|
5
|
-
/** @deprecated in v3.3.0, removal target v6.0.0. Use the `calcite-swatch-group` and `calcite-swatch` components instead. */
|
|
6
|
-
export abstract class ColorPickerSwatch extends LitElement {
|
|
7
|
-
/**
|
|
8
|
-
* When `true`, the component is active.
|
|
9
|
-
*
|
|
10
|
-
* @default false
|
|
11
|
-
*/
|
|
12
|
-
accessor active: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The color value.
|
|
15
|
-
*
|
|
16
|
-
* @see [MDN - Color CSS data type](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
|
|
17
|
-
*/
|
|
18
|
-
accessor color: string | undefined;
|
|
19
|
-
/**
|
|
20
|
-
* Specifies the size of the component.
|
|
21
|
-
*
|
|
22
|
-
* @default "m"
|
|
23
|
-
*/
|
|
24
|
-
accessor scale: Scale;
|
|
25
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
|
-
import { keyed } from "lit/directives/keyed.js";
|
|
4
|
-
import Color from "color";
|
|
5
|
-
import { css, html, nothing, svg } from "lit";
|
|
6
|
-
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
7
|
-
import { y as getModeName } from "../../chunks/dom.js";
|
|
8
|
-
import { h as hexify } from "../../chunks/utils3.js";
|
|
9
|
-
const CSS = {
|
|
10
|
-
swatch: "swatch",
|
|
11
|
-
noColorSwatch: "swatch--no-color",
|
|
12
|
-
checker: "checker"
|
|
13
|
-
};
|
|
14
|
-
const COLORS = {
|
|
15
|
-
borderLight: "rgba(0, 0, 0, 0.3)",
|
|
16
|
-
borderDark: "rgba(255, 255, 255, 0.15)"
|
|
17
|
-
};
|
|
18
|
-
const checkerSquareSize = 4;
|
|
19
|
-
const CHECKER_DIMENSIONS = {
|
|
20
|
-
squareSize: checkerSquareSize,
|
|
21
|
-
size: checkerSquareSize * 2
|
|
22
|
-
};
|
|
23
|
-
const IDS = {
|
|
24
|
-
checker: "checker",
|
|
25
|
-
shape: "shape"
|
|
26
|
-
};
|
|
27
|
-
const styles = css`:host{position:relative;display:inline-flex}:host([scale=s]){block-size:1.25rem;inline-size:1.25rem}:host([scale=m]){block-size:1.5rem;inline-size:1.5rem}:host([scale=l]){block-size:2rem;inline-size:2rem}.swatch{overflow:hidden;block-size:inherit;inline-size:inherit}.swatch rect{transition-property:all;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1)}.swatch--no-color rect{fill:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))}.swatch--no-color line{stroke:var(--calcite-color-status-danger)}.checker{fill:#cacaca}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
28
|
-
class ColorPickerSwatch extends LitElement {
|
|
29
|
-
constructor() {
|
|
30
|
-
super(...arguments);
|
|
31
|
-
this.active = false;
|
|
32
|
-
this.scale = "m";
|
|
33
|
-
}
|
|
34
|
-
static {
|
|
35
|
-
this.properties = { active: [7, {}, { reflect: true, type: Boolean }], color: 1, scale: [3, {}, { reflect: true }] };
|
|
36
|
-
}
|
|
37
|
-
static {
|
|
38
|
-
this.styles = styles;
|
|
39
|
-
}
|
|
40
|
-
load() {
|
|
41
|
-
this.handleColorChange(this.color);
|
|
42
|
-
}
|
|
43
|
-
willUpdate(changes) {
|
|
44
|
-
if (changes.has("color")) {
|
|
45
|
-
this.handleColorChange(this.color);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
handleColorChange(color) {
|
|
49
|
-
this.internalColor = color ? Color(color) : void 0;
|
|
50
|
-
}
|
|
51
|
-
render() {
|
|
52
|
-
const isEmpty = !this.internalColor;
|
|
53
|
-
const classes = {
|
|
54
|
-
[CSS.swatch]: true,
|
|
55
|
-
[CSS.noColorSwatch]: isEmpty
|
|
56
|
-
};
|
|
57
|
-
return html`<svg class=${safeClassMap(classes)} xmlns=http://www.w3.org/2000/svg>${this.renderSwatch()}</svg>`;
|
|
58
|
-
}
|
|
59
|
-
renderSwatch() {
|
|
60
|
-
const { active, el, internalColor } = this;
|
|
61
|
-
const borderRadius = active ? "100%" : "0";
|
|
62
|
-
const theme = getModeName(el);
|
|
63
|
-
const borderColor = theme === "light" ? COLORS.borderLight : COLORS.borderDark;
|
|
64
|
-
const isEmpty = !internalColor;
|
|
65
|
-
const commonSwatchProps = {
|
|
66
|
-
height: "100%",
|
|
67
|
-
rx: borderRadius,
|
|
68
|
-
stroke: borderColor,
|
|
69
|
-
strokeWidth: "2",
|
|
70
|
-
width: "100%"
|
|
71
|
-
};
|
|
72
|
-
if (isEmpty) {
|
|
73
|
-
return svg`<clipPath id=${IDS.shape}><rect height=100% rx=${borderRadius ?? nothing} width=100% /></clipPath>${this.renderSwatchRect({
|
|
74
|
-
clipPath: `inset(0 round ${borderRadius})`,
|
|
75
|
-
...commonSwatchProps
|
|
76
|
-
})}<line clip-path=url(#shape) stroke-width=3 x1=100% x2=0 y1=0 y2=100% />`;
|
|
77
|
-
}
|
|
78
|
-
const alpha = internalColor.alpha();
|
|
79
|
-
const hex = hexify(internalColor);
|
|
80
|
-
const hexa = hexify(internalColor, alpha < 1);
|
|
81
|
-
return svg`<title>${hexa}</title><defs><pattern height=${CHECKER_DIMENSIONS.size} id=${IDS.checker} patternUnits=userSpaceOnUse width=${CHECKER_DIMENSIONS.size} x=0 y=0><rect class=${safeClassMap(CSS.checker)} height=${CHECKER_DIMENSIONS.squareSize} width=${CHECKER_DIMENSIONS.squareSize} x=0 y=0 /><rect class=${safeClassMap(CSS.checker)} height=${CHECKER_DIMENSIONS.squareSize} width=${CHECKER_DIMENSIONS.squareSize} x=${CHECKER_DIMENSIONS.squareSize} y=${CHECKER_DIMENSIONS.squareSize} /></pattern></defs>${this.renderSwatchRect({
|
|
82
|
-
fill: "url(#checker)",
|
|
83
|
-
rx: commonSwatchProps.rx,
|
|
84
|
-
height: commonSwatchProps.height,
|
|
85
|
-
width: commonSwatchProps.width
|
|
86
|
-
})}${this.renderSwatchRect({
|
|
87
|
-
clipPath: alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`,
|
|
88
|
-
fill: hex,
|
|
89
|
-
...commonSwatchProps
|
|
90
|
-
})}${alpha < 1 ? this.renderSwatchRect({
|
|
91
|
-
clipPath: "polygon(100% 0, 100% 100%, 0 100%)",
|
|
92
|
-
fill: hexa,
|
|
93
|
-
key: "opacity-fill",
|
|
94
|
-
...commonSwatchProps
|
|
95
|
-
}) : null}`;
|
|
96
|
-
}
|
|
97
|
-
renderSwatchRect({ clipPath, fill, height, key, rx, stroke, strokeWidth, width }) {
|
|
98
|
-
return keyed(key, svg`<rect clip-path=${clipPath ?? nothing} fill=${fill ?? nothing} height=${height ?? nothing} rx=${rx ?? nothing} stroke=${stroke ?? nothing} stroke-width=${strokeWidth ?? nothing} width=${width ?? nothing} />`);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
customElement("calcite-color-picker-swatch", ColorPickerSwatch);
|
|
102
|
-
export {
|
|
103
|
-
ColorPickerSwatch
|
|
104
|
-
};
|
|
@@ -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";
|