@esri/calcite-components 5.2.0-next.60 → 5.2.0-next.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/23HDKDAI.js +2 -0
- package/dist/cdn/24ZPXFO2.js +2 -0
- package/dist/cdn/{2ARHNZAY.js → 2HPK3LAE.js} +1 -1
- package/dist/cdn/{RBEBWODD.js → 2RVXXWXK.js} +1 -1
- package/dist/cdn/{BNEP76EX.js → 3FOHNQKP.js} +1 -1
- package/dist/cdn/3RD6FPOP.js +2 -0
- package/dist/cdn/3TT3H2DC.js +2 -0
- package/dist/cdn/{ZPVFMZUH.js → 4FYTCYUK.js} +1 -1
- package/dist/cdn/{X2DWU333.js → 4LMXYULL.js} +3 -3
- package/dist/cdn/4MJQEGBF.js +2 -0
- package/dist/cdn/4RKMYYAL.js +2 -0
- package/dist/cdn/{LGSKYEBT.js → 53YUDUCN.js} +1 -1
- package/dist/cdn/5DJ4CKCP.js +2 -0
- package/dist/cdn/5IBOQL24.js +2 -0
- package/dist/cdn/{ACHOOOAZ.js → 5MYS7ZVM.js} +1 -1
- package/dist/cdn/5NWMGO4Y.js +2 -0
- package/dist/cdn/5Q6R6XLB.js +2 -0
- package/dist/cdn/{73DCL4EG.js → 5SNGDG25.js} +1 -1
- package/dist/cdn/66ADBSUG.js +2 -0
- package/dist/cdn/{YWJF7JUY.js → 6HUNEVQT.js} +1 -1
- package/dist/cdn/{UQFOOWZT.js → 6TYHSE52.js} +1 -1
- package/dist/cdn/{OSKBKN3N.js → 6WLVT7DS.js} +1 -1
- package/dist/cdn/{475RERZF.js → 74KBB6LH.js} +1 -1
- package/dist/cdn/77M5NVCW.js +2 -0
- package/dist/cdn/{WXRBIN4T.js → 7CZARVI4.js} +1 -1
- package/dist/cdn/7DZDSRLR.js +2 -0
- package/dist/cdn/7O43FY6X.js +2 -0
- package/dist/cdn/{LO2P3XQL.js → 7RAF4H2D.js} +1 -1
- package/dist/cdn/{D4HCATE5.js → 7TDIRY4J.js} +1 -1
- package/dist/cdn/7YCU2E3N.js +2 -0
- package/dist/cdn/{2LGV2LIH.js → 7ZPRWQGI.js} +1 -1
- package/dist/cdn/A7PK5BTB.js +2 -0
- package/dist/cdn/ABR4JGS6.js +2 -0
- package/dist/cdn/ADAMEB6V.js +2 -0
- package/dist/cdn/{MRXU2NCN.js → AGP7DPKN.js} +1 -1
- package/dist/cdn/{XURLGFDG.js → AM5HDLAS.js} +1 -1
- package/dist/cdn/{CUQN2MHW.js → AOCA3KFF.js} +1 -1
- package/dist/cdn/B26JHK23.js +2 -0
- package/dist/cdn/{F3NWTLHV.js → B4L2KEDE.js} +1 -1
- package/dist/cdn/B5TGMHUH.js +2 -0
- package/dist/cdn/{QUCBI2DK.js → B6L3NEYB.js} +1 -1
- package/dist/cdn/BBTNIUW2.js +2 -0
- package/dist/cdn/BDR42A3E.js +2 -0
- package/dist/cdn/C4WP5EBM.js +2 -0
- package/dist/cdn/{A6LKKOEC.js → CMWT2U6N.js} +1 -1
- package/dist/cdn/{L47MJPUD.js → CNIS3O63.js} +1 -1
- package/dist/cdn/{COOXR4KA.js → CYZUGX7K.js} +1 -1
- package/dist/cdn/D2EDJHY3.js +2 -0
- package/dist/cdn/DLPPHVJK.js +2 -0
- package/dist/cdn/{6MKIZYKA.js → DQVINPWR.js} +1 -1
- package/dist/cdn/DSVGFTLX.js +2 -0
- package/dist/cdn/{DWYPBWH7.js → E75D7ANJ.js} +1 -1
- package/dist/cdn/EA3CXBU3.js +2 -0
- package/dist/cdn/{WJNSGWHI.js → EDEBMMT6.js} +1 -1
- package/dist/cdn/EFKVMB36.js +2 -0
- package/dist/cdn/EHBE2PQL.js +2 -0
- package/dist/cdn/{R44SMF4M.js → EPE7MG62.js} +1 -1
- package/dist/cdn/{JQDPL76A.js → ERCYS72F.js} +1 -1
- package/dist/cdn/ESCNQWGH.js +2 -0
- package/dist/cdn/ESPMMYVP.js +2 -0
- package/dist/cdn/{KQ64XM4H.js → EW4E6W4H.js} +1 -1
- package/dist/cdn/EWR2MENT.js +2 -0
- package/dist/cdn/F4JFQNV4.js +2 -0
- package/dist/cdn/{6PUJMHS6.js → FAZOKA4U.js} +1 -1
- package/dist/cdn/FCCATXLE.js +2 -0
- package/dist/cdn/{G4LVXPLG.js → FIUZOVCS.js} +1 -1
- package/dist/cdn/FLR4OLXP.js +2 -0
- package/dist/cdn/{UH3VBILU.js → FMMROQB2.js} +1 -1
- package/dist/cdn/{UKHGKDAO.js → FRWSUYJ5.js} +1 -1
- package/dist/cdn/FXR7G326.js +2 -0
- package/dist/cdn/G5N5LP7C.js +2 -0
- package/dist/cdn/GENGQQ3E.js +2 -0
- package/dist/cdn/GKYCDJZS.js +2 -0
- package/dist/cdn/GRCGH7S7.js +2 -0
- package/dist/cdn/GV6LQKJ5.js +2 -0
- package/dist/cdn/{BBYH4VYJ.js → H6YE6FYK.js} +1 -1
- package/dist/cdn/HDNDTUJO.js +2 -0
- package/dist/cdn/{CUQRFILK.js → HHK6QXU6.js} +1 -1
- package/dist/cdn/I4LFSDKZ.js +2 -0
- package/dist/cdn/I4MV44ZF.js +2 -0
- package/dist/cdn/I77SJ3UN.js +2 -0
- package/dist/cdn/{CVTNS4ZW.js → IFOACTFJ.js} +1 -1
- package/dist/cdn/{VXPP5IWU.js → IHJAWQDP.js} +1 -1
- package/dist/cdn/IP7QMIWU.js +2 -0
- package/dist/cdn/{O3AFQFUF.js → ITSKKC7W.js} +1 -1
- package/dist/cdn/{EFRZQV4R.js → IUCOEPJG.js} +1 -1
- package/dist/cdn/J67LYBL5.js +2 -0
- package/dist/cdn/{RNZ5MJMR.js → JAZ5R36D.js} +1 -1
- package/dist/cdn/{JU5FEMV5.js → JFCRLKUS.js} +1 -1
- package/dist/cdn/JL43QOWW.js +2 -0
- package/dist/cdn/JLA3DKZP.js +2 -0
- package/dist/cdn/JOK7V4MS.js +2 -0
- package/dist/cdn/{6KHTU4WL.js → JTM6YJCI.js} +1 -1
- package/dist/cdn/{7B3O2EE3.js → JTUBWTUR.js} +1 -1
- package/dist/cdn/KDUZXP3Z.js +2 -0
- package/dist/cdn/KEVSA7QA.js +2 -0
- package/dist/cdn/KIZPZLPU.js +2 -0
- package/dist/cdn/{QG52PKXR.js → KKDSVCDI.js} +1 -1
- package/dist/cdn/KMQWZS7Y.js +2 -0
- package/dist/cdn/{PMT6RP6F.js → KQH5DKBU.js} +1 -1
- package/dist/cdn/KQHTBOH6.js +2 -0
- package/dist/cdn/{WX3MK3S3.js → KW7DFY2S.js} +1 -1
- package/dist/cdn/{KSWOOKHU.js → KWFE4DAU.js} +1 -1
- package/dist/cdn/{ZOJHKEKI.js → L7AAWH33.js} +1 -1
- package/dist/cdn/{VHTIGB7T.js → LBKDLCGS.js} +1 -1
- package/dist/cdn/{ZSBHMYFT.js → LBUT6VVH.js} +1 -1
- package/dist/cdn/{4PQZTDQS.js → LCO22QRK.js} +1 -1
- package/dist/cdn/{5TCFZJXA.js → LIP5H2L6.js} +1 -1
- package/dist/cdn/LUVDIV7Z.js +2 -0
- package/dist/cdn/MEMTVARL.js +2 -0
- package/dist/cdn/{B7MWEAQW.js → MGS6XKAR.js} +1 -1
- package/dist/cdn/{GQ4X2OQC.js → NA2ZTWW4.js} +1 -1
- package/dist/cdn/NEJF3TJF.js +2 -0
- package/dist/cdn/{M65UUX2N.js → NGDGVFFY.js} +1 -1
- package/dist/cdn/{IPNE6GDG.js → NQBHV5T4.js} +1 -1
- package/dist/cdn/{VG5XUVDY.js → NY3UKBFO.js} +1 -1
- package/dist/cdn/O3JX6E6E.js +2 -0
- package/dist/cdn/OXOUHOL7.js +2 -0
- package/dist/cdn/P34KSKSD.js +2 -0
- package/dist/cdn/{FMZ7VG53.js → PGVVBVAW.js} +1 -1
- package/dist/cdn/{HFQIDIEB.js → PJC3KHLU.js} +1 -1
- package/dist/cdn/{J7EXMBEP.js → PLCNTRPE.js} +1 -1
- package/dist/cdn/{UZEOHREL.js → Q2PXLJRW.js} +1 -1
- package/dist/cdn/{ZPSUPHPX.js → Q35TYOU3.js} +1 -1
- package/dist/cdn/QFLQKRZ2.js +2 -0
- package/dist/cdn/QIU2OYJY.js +2 -0
- package/dist/cdn/{5I7G6JLY.js → QQSO37WF.js} +1 -1
- package/dist/cdn/{ZLRHMY5Z.js → QVCA4Q3A.js} +1 -1
- package/dist/cdn/R2DIPZ3B.js +2 -0
- package/dist/cdn/{3QHHINS4.js → R33SHK7J.js} +1 -1
- package/dist/cdn/{HXXSSS5Y.js → R3SQDQXX.js} +1 -1
- package/dist/cdn/R6KFEYUV.js +2 -0
- package/dist/cdn/RLI632QM.js +2 -0
- package/dist/cdn/{HTH5EB4X.js → RXDYNL2X.js} +1 -1
- package/dist/cdn/{UR3BQTVO.js → RYGSERD6.js} +1 -1
- package/dist/cdn/{XU27LX4X.js → S34TKZAP.js} +1 -1
- package/dist/cdn/{NL25RJTH.js → SFR52MOU.js} +1 -1
- package/dist/cdn/SZUPQ4CX.js +2 -0
- package/dist/cdn/{FASMUSKO.js → TBB42H4B.js} +1 -1
- package/dist/cdn/{FWMG52AT.js → TFZI64RP.js} +1 -1
- package/dist/cdn/THIECYN6.js +2 -0
- package/dist/cdn/{2T3YF4F5.js → TOMLSGNW.js} +1 -1
- package/dist/cdn/U3Y3V2ZH.js +2 -0
- package/dist/cdn/{PMPJTYON.js → UBFONBKW.js} +1 -1
- package/dist/cdn/{DM7VOJLG.js → UCKWQ5LE.js} +1 -1
- package/dist/cdn/UCOHJ6HB.js +2 -0
- package/dist/cdn/UKNZDAOR.js +2 -0
- package/dist/cdn/{GGIMBRK5.js → ULEYWK3S.js} +1 -1
- package/dist/cdn/{J3MBWPYJ.js → UXNJ2I3X.js} +1 -1
- package/dist/cdn/{PMLCHLIE.js → V3HFGYU2.js} +1 -1
- package/dist/cdn/VEHFV22W.js +2 -0
- package/dist/cdn/{YBG5325Y.js → VFGWQVRF.js} +1 -1
- package/dist/cdn/VKNMXOGO.js +2 -0
- package/dist/cdn/VPFXLCEW.js +2 -0
- package/dist/cdn/VQ7D6WC2.js +2 -0
- package/dist/cdn/VUYX7MNO.js +2 -0
- package/dist/cdn/WK57DRIG.js +2 -0
- package/dist/cdn/WQPMPWU5.js +2 -0
- package/dist/cdn/WXUBPW4K.js +2 -0
- package/dist/cdn/{XG7NZDFJ.js → XAFFE75K.js} +1 -1
- package/dist/cdn/XDDOXJF4.js +2 -0
- package/dist/cdn/{42URAKLO.js → XI4PD2C6.js} +1 -1
- package/dist/cdn/XNB3ISIM.js +2 -0
- package/dist/cdn/XX43OXTK.js +2 -0
- package/dist/cdn/YCGTLTRR.js +2 -0
- package/dist/cdn/YEJ4DG6Z.js +2 -0
- package/dist/cdn/YGSLHDTB.js +2 -0
- package/dist/cdn/{FLYZR7QZ.js → YMLIZ6H5.js} +1 -1
- package/dist/cdn/{F6HWYMLX.js → YRGSOW7G.js} +1 -1
- package/dist/cdn/{CA7N26MN.js → YTJ3Q4D4.js} +1 -1
- package/dist/cdn/{LUB3SEVD.js → YXWA62OE.js} +1 -1
- package/dist/cdn/{DHYGUT4H.js → Z5BXSCXP.js} +1 -1
- package/dist/cdn/ZRTZSAU4.js +2 -0
- package/dist/cdn/{KYZ65ICN.js → ZTRUMW6A.js} +1 -1
- package/dist/cdn/{Z3JNHLOQ.js → ZW5SAEBQ.js} +1 -1
- package/dist/cdn/assets/icon/aiAgent16.json +1 -0
- package/dist/cdn/assets/icon/aiAgent24.json +1 -0
- package/dist/cdn/assets/icon/aiAgent32.json +1 -0
- package/dist/cdn/assets/icon/aiAgents16.json +1 -0
- package/dist/cdn/assets/icon/aiAgents24.json +1 -0
- package/dist/cdn/assets/icon/aiAgents32.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ExpandToggle.js +2 -2
- package/dist/chunks/dom.js +24 -24
- package/dist/chunks/floating-ui.js +3 -3
- package/dist/chunks/locale.js +2 -2
- package/dist/chunks/manager.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources.js +13 -20
- package/dist/chunks/resources10.js +55 -12
- package/dist/chunks/resources11.js +5 -57
- package/dist/chunks/resources12.js +11 -30
- package/dist/chunks/resources13.js +26 -20
- package/dist/chunks/resources14.js +52 -28
- package/dist/chunks/resources15.js +39 -0
- package/dist/chunks/resources16.js +12 -0
- package/dist/chunks/resources17.js +17 -0
- package/dist/chunks/resources18.js +17 -0
- package/dist/chunks/resources19.js +19 -0
- package/dist/chunks/resources2.js +17 -10
- package/dist/chunks/resources20.js +39 -0
- package/dist/chunks/resources21.js +17 -0
- package/dist/chunks/resources22.js +14 -0
- package/dist/chunks/resources23.js +20 -0
- package/dist/chunks/resources24.js +26 -0
- package/dist/chunks/resources25.js +31 -0
- package/dist/chunks/resources26.js +26 -0
- package/dist/chunks/resources27.js +38 -0
- package/dist/chunks/resources28.js +14 -0
- package/dist/chunks/resources29.js +17 -0
- package/dist/chunks/resources3.js +17 -22
- package/dist/chunks/resources30.js +17 -0
- package/dist/chunks/resources31.js +28 -0
- package/dist/chunks/resources32.js +35 -0
- package/dist/chunks/resources33.js +35 -0
- package/dist/chunks/resources34.js +73 -0
- package/dist/chunks/resources4.js +20 -13
- package/dist/chunks/resources5.js +7 -45
- package/dist/chunks/resources6.js +16 -26
- package/dist/chunks/resources7.js +41 -51
- package/dist/chunks/resources8.js +19 -48
- package/dist/chunks/resources9.js +27 -8
- package/dist/chunks/runtime.js +13 -6
- package/dist/chunks/useFocusTrap.js +1 -1
- package/dist/chunks/useForm.js +1 -1
- package/dist/chunks/useLabel.js +1 -1
- package/dist/chunks/useSetFocus.js +1 -1
- package/dist/chunks/useTime.js +1 -1
- package/dist/chunks/utils.js +94 -298
- package/dist/chunks/utils2.js +62 -98
- package/dist/chunks/utils3.js +298 -58
- package/dist/chunks/utils4.js +25 -8
- package/dist/components/calcite-action/customElement.js +1 -1
- package/dist/components/calcite-action-bar/customElement.js +16 -27
- package/dist/components/calcite-action-group/customElement.js +5 -5
- package/dist/components/calcite-action-menu/customElement.js +6 -5
- package/dist/components/calcite-action-pad/customElement.js +4 -3
- package/dist/components/calcite-alert/customElement.js +3 -26
- package/dist/components/calcite-autocomplete/customElement.js +8 -6
- package/dist/components/calcite-autocomplete-item/customElement.js +1 -18
- package/dist/components/calcite-autocomplete-item-group/customElement.js +4 -10
- package/dist/components/calcite-avatar/customElement.js +2 -2
- package/dist/components/calcite-block/customElement.js +3 -3
- package/dist/components/calcite-block-group/customElement.js +6 -3
- package/dist/components/calcite-button/customElement.js +3 -3
- package/dist/components/calcite-card/customElement.js +1 -25
- package/dist/components/calcite-card-group/customElement.js +2 -1
- package/dist/components/calcite-carousel/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +2 -2
- package/dist/components/calcite-chip-group/customElement.js +2 -2
- package/dist/components/calcite-color-picker/customElement.js +2 -2
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +2 -2
- package/dist/components/calcite-combobox/customElement.js +7 -7
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.js +4 -32
- package/dist/components/calcite-dropdown/customElement.js +4 -3
- package/dist/components/calcite-dropdown-group/customElement.js +2 -6
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-inline-editable/customElement.js +2 -2
- package/dist/components/calcite-input/customElement.js +3 -3
- package/dist/components/calcite-input-date-picker/customElement.js +6 -5
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.js +3 -3
- package/dist/components/calcite-input-text/customElement.js +2 -2
- package/dist/components/calcite-input-time-picker/customElement.js +1 -1
- package/dist/components/calcite-input-time-zone/customElement.js +3 -3
- package/dist/components/calcite-list/customElement.js +4 -19
- package/dist/components/calcite-list-item/customElement.js +2 -2
- package/dist/components/calcite-list-item-group/customElement.js +1 -5
- package/dist/components/calcite-menu/customElement.js +4 -4
- package/dist/components/calcite-menu-item/customElement.js +2 -2
- package/dist/components/calcite-navigation/customElement.js +10 -6
- package/dist/components/calcite-navigation-logo/customElement.js +1 -10
- package/dist/components/calcite-navigation-user/customElement.js +1 -7
- package/dist/components/calcite-notice/customElement.js +2 -2
- package/dist/components/calcite-panel/customElement.js +6 -5
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.js +5 -4
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -12
- package/dist/components/calcite-select/customElement.js +6 -17
- package/dist/components/calcite-sheet/customElement.js +4 -20
- package/dist/components/calcite-shell/customElement.js +14 -10
- package/dist/components/calcite-shell-panel/customElement.js +5 -25
- package/dist/components/calcite-slider/customElement.js +2 -2
- package/dist/components/calcite-sort-handle/customElement.js +1 -1
- package/dist/components/calcite-sortable-list/customElement.js +1 -1
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.js +2 -2
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-swatch/customElement.js +2 -2
- package/dist/components/calcite-swatch-group/customElement.js +2 -2
- package/dist/components/calcite-switch/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.js +6 -3
- package/dist/components/calcite-tab-nav/customElement.js +44 -56
- package/dist/components/calcite-tab-title/customElement.js +6 -3
- package/dist/components/calcite-table/customElement.js +2 -1
- package/dist/components/calcite-table-cell/customElement.js +1 -10
- package/dist/components/calcite-table-header/customElement.js +1 -20
- package/dist/components/calcite-table-row/customElement.js +5 -11
- package/dist/components/calcite-tabs/customElement.js +2 -7
- package/dist/components/calcite-text-area/customElement.js +2 -2
- package/dist/components/calcite-tile/customElement.js +1 -26
- package/dist/components/calcite-tile-group/customElement.js +2 -1
- package/dist/components/calcite-tooltip/customElement.js +2 -5
- package/dist/components/calcite-tree/customElement.js +4 -6
- package/dist/components/calcite-tree-item/customElement.js +5 -28
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.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 +7 -6
- package/dist/index.js +3 -9
- package/dist/runtime.d.ts +5 -0
- package/package.json +3 -3
- package/dist/cdn/23T3Y3GE.js +0 -2
- package/dist/cdn/2J4XUWYO.js +0 -2
- package/dist/cdn/2QCI6TGY.js +0 -2
- package/dist/cdn/34KZEKP6.js +0 -2
- package/dist/cdn/36CTZGVO.js +0 -2
- package/dist/cdn/3GFZCW2S.js +0 -2
- package/dist/cdn/3IN37UDC.js +0 -2
- package/dist/cdn/3NO7PELQ.js +0 -2
- package/dist/cdn/4PLXA7BH.js +0 -2
- package/dist/cdn/4XWM4DFD.js +0 -2
- package/dist/cdn/4Y4M7ARD.js +0 -2
- package/dist/cdn/4ZPZCAFM.js +0 -2
- package/dist/cdn/5IJ25RMA.js +0 -2
- package/dist/cdn/5J66CX7P.js +0 -2
- package/dist/cdn/6EXKM2ML.js +0 -2
- package/dist/cdn/6GIAYW5Y.js +0 -2
- package/dist/cdn/6JKGSMCW.js +0 -2
- package/dist/cdn/6XXNQZL3.js +0 -2
- package/dist/cdn/7KM6PEAO.js +0 -2
- package/dist/cdn/7L4EZFYG.js +0 -2
- package/dist/cdn/AQM2QT52.js +0 -2
- package/dist/cdn/B5YC7TWO.js +0 -2
- package/dist/cdn/BEE5ZZFY.js +0 -2
- package/dist/cdn/BYK32J57.js +0 -2
- package/dist/cdn/CU7WIQWZ.js +0 -2
- package/dist/cdn/DKLOOOBU.js +0 -2
- package/dist/cdn/DMK27J6W.js +0 -2
- package/dist/cdn/F5H4HXRA.js +0 -2
- package/dist/cdn/FD6VNHL5.js +0 -2
- package/dist/cdn/FJFIDF5X.js +0 -2
- package/dist/cdn/FKLTSNHW.js +0 -2
- package/dist/cdn/H6OMFL4C.js +0 -2
- package/dist/cdn/I54WYWFN.js +0 -2
- package/dist/cdn/IOP2EC5Y.js +0 -2
- package/dist/cdn/IUYFTZHO.js +0 -2
- package/dist/cdn/J65IBMKU.js +0 -2
- package/dist/cdn/K3KC5TPO.js +0 -2
- package/dist/cdn/KAOEUJGH.js +0 -2
- package/dist/cdn/KOR4DYKT.js +0 -2
- package/dist/cdn/KRZT7UVD.js +0 -2
- package/dist/cdn/M2UESRI2.js +0 -2
- package/dist/cdn/MFM5H6QD.js +0 -2
- package/dist/cdn/MH2UJM2V.js +0 -2
- package/dist/cdn/NQREOOD2.js +0 -2
- package/dist/cdn/NSQP35ZL.js +0 -2
- package/dist/cdn/NXWKWQ5V.js +0 -2
- package/dist/cdn/O4YJ665R.js +0 -2
- package/dist/cdn/O6ITH3QQ.js +0 -2
- package/dist/cdn/PAL5PWBK.js +0 -2
- package/dist/cdn/PXDYPEJ6.js +0 -2
- package/dist/cdn/QNRP4GC4.js +0 -2
- package/dist/cdn/RCVILOGX.js +0 -2
- package/dist/cdn/SRIC7E4A.js +0 -2
- package/dist/cdn/SWQCPUC2.js +0 -2
- package/dist/cdn/SX4QOMV2.js +0 -2
- package/dist/cdn/TIIHP3SW.js +0 -2
- package/dist/cdn/UHHRJXZZ.js +0 -2
- package/dist/cdn/VDIG2VCX.js +0 -2
- package/dist/cdn/W24BZ255.js +0 -2
- package/dist/cdn/W257N36J.js +0 -2
- package/dist/cdn/WUMVVIVR.js +0 -2
- package/dist/cdn/XCOABOUF.js +0 -2
- package/dist/cdn/XE2PPWZF.js +0 -2
- package/dist/cdn/XMLFJMMC.js +0 -2
- package/dist/cdn/XNYOZULC.js +0 -2
- package/dist/cdn/XRLXZHMJ.js +0 -2
- package/dist/cdn/ZRWKMT3E.js +0 -2
- /package/dist/cdn/{QBJZUEM2.js → 47B6Y2DM.js} +0 -0
- /package/dist/cdn/{TFGN3C6X.js → 5QN2KNKV.js} +0 -0
- /package/dist/cdn/{2YMRGSC2.js → CZERUG3F.js} +0 -0
- /package/dist/cdn/{KWIC32XQ.js → NH334SIF.js} +0 -0
- /package/dist/cdn/{Q24FQVQ4.js → V6MLAVPM.js} +0 -0
|
@@ -3,11 +3,12 @@ import { l as logger, c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
5
5
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
|
-
import {
|
|
6
|
+
import { b as slotChangeGetAssignedElements, d as focusElementInGroup } from "../../chunks/dom.js";
|
|
7
7
|
import { l as legacyToggleChildActionText, E as ExpandToggle } from "../../chunks/ExpandToggle.js";
|
|
8
8
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
9
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
10
|
-
import { i as
|
|
10
|
+
import { i as isTooltip } from "../../chunks/resources11.js";
|
|
11
|
+
import { i as isAction } from "../../chunks/resources4.js";
|
|
11
12
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
12
13
|
const CSS = {
|
|
13
14
|
actionGroupEnd: "action-group--end",
|
|
@@ -112,7 +113,7 @@ class ActionPad extends LitElement {
|
|
|
112
113
|
this.updateActions();
|
|
113
114
|
}
|
|
114
115
|
handleTooltipSlotChange(event) {
|
|
115
|
-
const tooltips = slotChangeGetAssignedElements(event).filter(
|
|
116
|
+
const tooltips = slotChangeGetAssignedElements(event).filter(isTooltip);
|
|
116
117
|
this.expandTooltip = tooltips[0];
|
|
117
118
|
}
|
|
118
119
|
handleKeyDown(event) {
|
|
@@ -4,38 +4,15 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
-
import { s as slotChangeHasAssignedElement,
|
|
7
|
+
import { s as slotChangeHasAssignedElement, v as setRequestedIcon } from "../../chunks/dom.js";
|
|
8
8
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
9
|
import { N as NumberStringFormat } from "../../chunks/locale.js";
|
|
10
10
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
11
|
-
import { K as KindIcons, a as KindIconsFilled } from "../../chunks/
|
|
11
|
+
import { K as KindIcons, a as KindIconsFilled } from "../../chunks/resources3.js";
|
|
12
12
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
13
13
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
14
14
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
15
|
-
|
|
16
|
-
slow: 14e3,
|
|
17
|
-
medium: 1e4,
|
|
18
|
-
fast: 6e3
|
|
19
|
-
};
|
|
20
|
-
const SLOTS = {
|
|
21
|
-
actionsEnd: "actions-end",
|
|
22
|
-
title: "title",
|
|
23
|
-
message: "message",
|
|
24
|
-
link: "link"
|
|
25
|
-
};
|
|
26
|
-
const CSS = {
|
|
27
|
-
actionsEnd: "actions-end",
|
|
28
|
-
close: "close",
|
|
29
|
-
container: "container",
|
|
30
|
-
containerActive: "container--active",
|
|
31
|
-
dismissProgress: "dismiss-progress",
|
|
32
|
-
icon: "icon",
|
|
33
|
-
containerEmbedded: "container--embedded",
|
|
34
|
-
queueCount: "queue-count",
|
|
35
|
-
queueCountActive: "queue-count--active",
|
|
36
|
-
textContainer: "text-container",
|
|
37
|
-
focused: "focused"
|
|
38
|
-
};
|
|
15
|
+
import { D as DURATIONS, S as SLOTS, C as CSS } from "../../chunks/resources13.js";
|
|
39
16
|
const alertQueueTimeoutMs = 300;
|
|
40
17
|
class AlertManager {
|
|
41
18
|
constructor() {
|
|
@@ -6,11 +6,13 @@ import { LitElement, createEvent, stringOrBoolean, safeClassMap } from "@arcgis/
|
|
|
6
6
|
import { useWatchAttributes, useDirection } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { escapeRegExp } from "es-toolkit/compat";
|
|
8
8
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as defaultMenuPlacement, r as reposition, c as connectFloatingUI, b as disconnectFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
10
10
|
import { g as getLabelText } from "../../chunks/label.js";
|
|
11
|
-
import { s as slotChangeHasAssignedElement,
|
|
11
|
+
import { s as slotChangeHasAssignedElement, a as getSlotAssignedElements } from "../../chunks/dom.js";
|
|
12
12
|
import { g as guid } from "../../chunks/guid.js";
|
|
13
13
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
14
|
+
import { i as isAutocompleteItem } from "../../chunks/resources6.js";
|
|
15
|
+
import { i as isAutocompleteItemGroup } from "../../chunks/resources5.js";
|
|
14
16
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
15
17
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
16
18
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
@@ -54,7 +56,6 @@ class Autocomplete extends LitElement {
|
|
|
54
56
|
inputType: "text"
|
|
55
57
|
})(this);
|
|
56
58
|
this.inputId = IDS.input(this.guid);
|
|
57
|
-
this.labelable = useLabel(this);
|
|
58
59
|
this.listId = IDS.list(this.guid);
|
|
59
60
|
this.messages = useT9n();
|
|
60
61
|
this.transitionProp = "opacity";
|
|
@@ -94,6 +95,7 @@ class Autocomplete extends LitElement {
|
|
|
94
95
|
this.calciteAutocompleteOpen = createEvent({ cancelable: false });
|
|
95
96
|
this.calciteAutocompleteTextChange = createEvent({ cancelable: false });
|
|
96
97
|
this.calciteAutocompleteTextInput = createEvent({ cancelable: false });
|
|
98
|
+
useLabel(this);
|
|
97
99
|
this.listenOn(document, "click", this.documentClickHandler);
|
|
98
100
|
this.listen("calciteAutocompleteItemSelect", this.handleAutocompleteItemSelect);
|
|
99
101
|
this.listen("calciteInternalAutocompleteItemChange", this.handleAutocompleteItemChange);
|
|
@@ -296,10 +298,10 @@ class Autocomplete extends LitElement {
|
|
|
296
298
|
this.getAllItems();
|
|
297
299
|
}
|
|
298
300
|
getAllItems() {
|
|
299
|
-
const groups = this.defaultSlotRef.value ? getSlotAssignedElements(this.defaultSlotRef.value, groupItemSelector) : Array.from(this.el.children).filter(
|
|
300
|
-
const rootItems = this.defaultSlotRef.value ? getSlotAssignedElements(this.defaultSlotRef.value, itemSelector) : Array.from(this.el.children).filter(
|
|
301
|
+
const groups = this.defaultSlotRef.value ? getSlotAssignedElements(this.defaultSlotRef.value, groupItemSelector) : Array.from(this.el.children).filter(isAutocompleteItemGroup);
|
|
302
|
+
const rootItems = this.defaultSlotRef.value ? getSlotAssignedElements(this.defaultSlotRef.value, itemSelector) : Array.from(this.el.children).filter(isAutocompleteItem);
|
|
301
303
|
const groupedItems = groups.flatMap((group) => group.items ?? []);
|
|
302
|
-
const items = Array.from(new Set([...rootItems, ...groupedItems].filter(
|
|
304
|
+
const items = Array.from(new Set([...rootItems, ...groupedItems].filter(isAutocompleteItem)));
|
|
303
305
|
this.groups = groups;
|
|
304
306
|
this.items = items;
|
|
305
307
|
this.updateItems();
|
|
@@ -6,24 +6,7 @@ import { g as getIconScale } from "../../chunks/component.js";
|
|
|
6
6
|
import { g as guid } from "../../chunks/guid.js";
|
|
7
7
|
import { h as highlightText } from "../../chunks/text.js";
|
|
8
8
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
|
-
|
|
10
|
-
container: "container",
|
|
11
|
-
containerActive: "container--active",
|
|
12
|
-
contentCenter: "content-center",
|
|
13
|
-
description: "description",
|
|
14
|
-
heading: "heading",
|
|
15
|
-
iconEnd: "icon-end",
|
|
16
|
-
iconStart: "icon-start",
|
|
17
|
-
scale: (scale) => `scale--${scale}`
|
|
18
|
-
};
|
|
19
|
-
const SLOTS = {
|
|
20
|
-
contentEnd: "content-end",
|
|
21
|
-
contentStart: "content-start"
|
|
22
|
-
};
|
|
23
|
-
const idPrefix = "autocomplete-item";
|
|
24
|
-
const IDS = {
|
|
25
|
-
host: (id) => `${idPrefix}-${id}`
|
|
26
|
-
};
|
|
9
|
+
import { I as IDS, S as SLOTS, C as CSS } from "../../chunks/resources6.js";
|
|
27
10
|
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}.scale--s{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);--calcite-internal-autocomplete-item-spacing-unit-l: .5rem;--calcite-internal-autocomplete-item-spacing-unit-s: .25rem;--calcite-internal-autocomplete-item-description-font-size: var(--calcite-font-size-xs)}.scale--m{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);--calcite-internal-autocomplete-item-spacing-unit-l: .75rem;--calcite-internal-autocomplete-item-spacing-unit-s: .375rem;--calcite-internal-autocomplete-item-description-font-size: var(--calcite-font-size-sm)}.scale--l{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);--calcite-internal-autocomplete-item-spacing-unit-l: 1rem;--calcite-internal-autocomplete-item-spacing-unit-s: var(--calcite-space-sm-plus);--calcite-internal-autocomplete-item-description-font-size: var(--calcite-font-size)}:host{display:flex}.container{position:relative;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:100%;cursor:pointer;align-items:center;outline-color:transparent;background-color:var(--calcite-autocomplete-background-color, var(--calcite-color-foreground-1));color:var(--calcite-autocomplete-text-color, var(--calcite-color-text-3));gap:var(--calcite-internal-autocomplete-item-spacing-unit-l);padding-inline:var(--calcite-internal-autocomplete-item-spacing-unit-l);padding-block:var(--calcite-internal-autocomplete-item-spacing-unit-s);overflow-wrap:break-word;word-break:break-word;justify-content:space-around}.description{color:var(--calcite-autocomplete-description-text-color);font-size:var(--calcite-internal-autocomplete-item-description-font-size)}.heading{color:var(--calcite-autocomplete-heading-text-color, var(--calcite-color-text-1))}.heading,.description{line-height:var(--calcite-font-line-height-relative-snug)}:host([selected]) .container{color:var(--calcite-color-text-1);background-color:var(--calcite-color-surface-highlight)}:host([selected]) .container .description{color:var(--calcite-autocomplete-description-text-color, var(--calcite-color-text-2))}:host([selected]) .heading{font-weight:var(--calcite-font-weight-medium)}:host(:hover:not([disabled])) .container{background-color:var(--calcite-autocomplete-background-color, var(--calcite-color-foreground-2))}:host(:hover:not([disabled])) .container .description{color:var(--calcite-autocomplete-description-text-color, var(--calcite-color-text-2))}.container--active{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))))}.content-center{display:flex;flex-direction:column;flex-grow:1;padding-block:0}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
|
|
28
11
|
class AutocompleteItem extends LitElement {
|
|
29
12
|
constructor() {
|
|
@@ -3,15 +3,9 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, createEvent, safeClassMap, nothing } from "@arcgis/lumina";
|
|
5
5
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
containerNoSpacing: "container--no-spacing",
|
|
10
|
-
firstTitle: "first-title",
|
|
11
|
-
heading: "heading",
|
|
12
|
-
scale: (scale) => `scale--${scale}`,
|
|
13
|
-
separator: "separator"
|
|
14
|
-
};
|
|
6
|
+
import { a as getSlotAssignedElements } from "../../chunks/dom.js";
|
|
7
|
+
import { i as isAutocompleteItem } from "../../chunks/resources6.js";
|
|
8
|
+
import { C as CSS } from "../../chunks/resources5.js";
|
|
15
9
|
const styles = css`.scale--s{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);--calcite-internal-autocomplete-item-group-horizontal-spacing-unit: var(--calcite-spacing-sm);--calcite-internal-autocomplete-item-group-vertical-spacing-unit: var(--calcite-spacing-xxs)}.scale--s .first-title{padding-block-start:var(--calcite-spacing-sm)}.scale--s .separator{margin-block:var(--calcite-internal-autocomplete-item-group-vertical-spacing-unit);margin-inline:var(--calcite-internal-autocomplete-item-group-horizontal-spacing-unit)}.scale--m{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);--calcite-internal-autocomplete-item-group-horizontal-spacing-unit: var(--calcite-spacing-md);--calcite-internal-autocomplete-item-group-vertical-spacing-unit: var(--calcite-spacing-xs)}.scale--m .first-title{padding-block-start:var(--calcite-spacing-md)}.scale--m .separator{margin-block:var(--calcite-internal-autocomplete-item-group-vertical-spacing-unit);margin-inline:var(--calcite-internal-autocomplete-item-group-horizontal-spacing-unit)}.scale--l{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);--calcite-internal-autocomplete-item-group-horizontal-spacing-unit: var(--calcite-spacing-lg);--calcite-internal-autocomplete-item-group-vertical-spacing-unit: var(--calcite-spacing-sm-plus)}.scale--l .first-title{padding-block-start:var(--calcite-spacing-xl)}.scale--l .separator{margin-block:var(--calcite-internal-autocomplete-item-group-vertical-spacing-unit);margin-inline:var(--calcite-internal-autocomplete-item-group-horizontal-spacing-unit)}:host{margin:0;display:flex;flex-direction:column}.container{display:flex;flex-direction:column;background-color:var(--calcite-autocomplete-background-color, var(--calcite-color-foreground-1))}.container--no-spacing{padding-block-start:0}.separator{block-size:var(--calcite-spacing-px);background-color:var(--calcite-autocomplete-border-color, var(--calcite-color-border-3))}.heading{box-sizing:border-box;inline-size:100%;min-inline-size:0px;max-inline-size:100%;font-weight:var(--calcite-font-weight-bold);word-wrap:break-word;word-break:break-word;color:var(--calcite-autocomplete-text-color, var(--calcite-color-text-1));padding-block:var(--calcite-internal-autocomplete-item-group-vertical-spacing-unit);padding-inline:var(--calcite-internal-autocomplete-item-group-horizontal-spacing-unit)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
16
10
|
const itemSelector = "calcite-autocomplete-item";
|
|
17
11
|
class AutocompleteItemGroup extends LitElement {
|
|
@@ -40,7 +34,7 @@ class AutocompleteItemGroup extends LitElement {
|
|
|
40
34
|
this.updateItems();
|
|
41
35
|
}
|
|
42
36
|
updateItems() {
|
|
43
|
-
const items = this.defaultSlotRef.value ? getSlotAssignedElements(this.defaultSlotRef.value, itemSelector) : Array.from(this.el.children).filter(
|
|
37
|
+
const items = this.defaultSlotRef.value ? getSlotAssignedElements(this.defaultSlotRef.value, itemSelector) : Array.from(this.el.children).filter(isAutocompleteItem);
|
|
44
38
|
this._items = items;
|
|
45
39
|
this.calciteInternalAutocompleteItemGroupItemsChange.emit();
|
|
46
40
|
}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, nothing, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { y as getModeName } from "../../chunks/dom.js";
|
|
6
|
+
import { w as hexToRGB, q as isValidHex } from "../../chunks/utils3.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
thumbnail: "thumbnail",
|
|
9
9
|
background: "background",
|
|
@@ -4,17 +4,17 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { ref } from "lit/directives/ref.js";
|
|
5
5
|
import { css, html, nothing } from "lit";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
7
|
-
import { s as slotChangeHasAssignedElement,
|
|
7
|
+
import { s as slotChangeHasAssignedElement, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
8
8
|
import { H as Heading } from "../../chunks/Heading.js";
|
|
9
9
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
10
10
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
11
|
-
import {
|
|
11
|
+
import { d as defaultEndMenuPlacement } from "../../chunks/floating-ui.js";
|
|
12
12
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
13
13
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
14
14
|
import { s as styles$2 } from "../../chunks/sortable.js";
|
|
15
15
|
import { s as styles$1 } from "../../chunks/header.js";
|
|
16
16
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
17
|
-
import { C as CSS, I as ICONS, S as SLOTS, a as IDS } from "../../chunks/
|
|
17
|
+
import { C as CSS, I as ICONS, S as SLOTS, a as IDS } from "../../chunks/resources7.js";
|
|
18
18
|
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}: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([scale=s]) .header{gap:var(--calcite-spacing-sm)}:host([scale=s]) .icon-end-container{gap:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm)}:host([scale=s]) .description{font-size:var(--calcite-font-size-xs)}:host([scale=s]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-sm);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-xxs)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) )}:host([scale=m]) .header{gap:var(--calcite-spacing-md)}:host([scale=m]) .icon-end-container{gap:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size)}:host([scale=m]) .description{font-size:var(--calcite-font-size-sm)}:host([scale=m]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-md);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) )}:host([scale=l]) .header{gap:var(--calcite-spacing-lg)}:host([scale=l]) .icon-end-container{gap:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md)}:host([scale=l]) .description{font-size:var(--calcite-font-size)}:host([scale=l]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-lg);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-lg)) )}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{justify-content:flex-start}.header--has-content{padding:var(--calcite-internal-block-header-content-padding)}.header--draggable{padding-inline-start:var(--calcite-spacing-xxs)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto auto auto;grid-template-areas:"handle header icon-end menu actions-end"}.icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.actions-end{align-items:center;display:flex;gap:var(--calcite-internal-block-actions-spacing);grid-area:actions-end;padding-block:var(--calcite-internal-block-actions-spacing);padding-inline-end:var(--calcite-internal-block-actions-spacing)}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;outline-color:transparent;font-family:inherit;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle: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))))}.toggle:active{background-color:var(--calcite-block-header-background-color-press, var(--calcite-color-foreground-3))}calcite-loader[inline]{align-self:center}calcite-sort-handle{align-self:center;grid-area:handle;margin-block:var(--calcite-internal-block-actions-spacing);padding-inline-start:var(--calcite-spacing-xxs)}.title{display:flex;flex-direction:column}.header .title .heading{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-font-line-height-relative-snug)}.description{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-description-text-color, var(--calcite-color-text-3));font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-snug)}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;grid-area:icon-end}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-block-collapsible-icon-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.toggle:hover .toggle-icon{color:var(--calcite-block-collapsible-icon-color-hover, var(--calcite-block-icon-color-hover, var(--calcite-color-text-1)))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%;opacity:0;transition:opacity var(--calcite-internal-animation-timing-slow) ease-in-out}.has-slotted-content{padding-block:var(--calcite-internal-block-padding-block);padding-inline:var(--calcite-internal-block-padding-inline)}.content-end,.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}calcite-action-menu{align-self:center;grid-area:menu;margin-inline-end:var(--calcite-internal-block-actions-spacing)}:host([expanded]){margin-block:.5rem}:host([expanded]) .header .title .heading{color:var(--calcite-block-heading-text-color, var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1)));font-weight:var(--calcite-font-weight-medium)}:host([expanded]) .description{color:var(--calcite-block-description-text-color, var(--calcite-color-text-2))}:host([expanded]) .icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .content{opacity:1}@starting-style{:host([expanded]){margin-block-start:0;opacity:0}}:host([expanded][scale=s]){margin-block:var(--calcite-spacing-xxs)}:host([expanded][scale=l]){margin-block:var(--calcite-spacing-md)}:host([hidden]){display:none}[hidden]{display:none}slot[name=children]::slotted(calcite-block){border-block-end-width:0}`;
|
|
19
19
|
class Block extends LitElement {
|
|
20
20
|
constructor() {
|
|
@@ -4,13 +4,14 @@ import { debounce } from "es-toolkit";
|
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
7
|
-
import {
|
|
7
|
+
import { g as getRootNode, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
8
8
|
import { g as guid } from "../../chunks/guid.js";
|
|
9
9
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
10
10
|
import { u as useCancelable } from "../../chunks/useCancelable.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
12
|
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
13
|
-
import { i as
|
|
13
|
+
import { i as isTag } from "../../chunks/resources3.js";
|
|
14
|
+
import { i as isBlock } from "../../chunks/resources7.js";
|
|
14
15
|
const CSS = {
|
|
15
16
|
container: "container",
|
|
16
17
|
groupContainer: "group-container",
|
|
@@ -19,6 +20,7 @@ const CSS = {
|
|
|
19
20
|
};
|
|
20
21
|
const blockGroupSelector = "calcite-block-group";
|
|
21
22
|
const blockSelector = "calcite-block";
|
|
23
|
+
const isBlockGroup = isTag("calcite-block-group");
|
|
22
24
|
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:block}.container{position:relative}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([slot=children]) slot::slotted(calcite-block){border-block-end-width:0}`;
|
|
23
25
|
function updateBlockChildren(blockChildren) {
|
|
24
26
|
blockChildren.forEach((block) => {
|
|
@@ -187,8 +189,9 @@ class BlockGroup extends LitElement {
|
|
|
187
189
|
this.blockAndGroups = slotChangeGetAssignedElements(event).filter((el) => {
|
|
188
190
|
if (isBlock(el)) {
|
|
189
191
|
blockChildren.push(el);
|
|
192
|
+
return true;
|
|
190
193
|
}
|
|
191
|
-
return
|
|
194
|
+
return isBlockGroup(el);
|
|
192
195
|
});
|
|
193
196
|
updateBlockChildren(blockChildren);
|
|
194
197
|
this.updateBlockAndGroupScale();
|
|
@@ -10,7 +10,7 @@ import { u as useLabel } from "../../chunks/useLabel.js";
|
|
|
10
10
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
11
11
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
12
12
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
13
|
-
import {
|
|
13
|
+
import { u as hasVisibleContent } from "../../chunks/dom.js";
|
|
14
14
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
15
15
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
16
16
|
import { u as useFormTrigger } from "../../chunks/useFormTrigger.js";
|
|
@@ -31,7 +31,7 @@ const CSS = {
|
|
|
31
31
|
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:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, var(--calcite-corner-radius)))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y: 3px;position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;box-shadow:var(--calcite-button-shadow, var(--calcite-shadow-none));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-block-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-block-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-block-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-start-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-start-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-inline-end-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-inline-end-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent))));border-style:solid;border-width:var(--calcite-border-width-sm);border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, var(--calcite-corner-radius)));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-hover, var(--calcite-color-transparent)))}:host a:focus,:host button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color))}:host a:active,:host button:active{background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color-press, var(--calcite-color-transparent)))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, var(--calcite-button-text-color, var(--calcite-internal-button-text-color))))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}.icon--start,.icon--end{color:var(--calcite-button-icon-color, var(--calcite-icon-color, var(--calcite-ui-icon-color)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]){--calcite-internal-button-background-color: var(--calcite-color-brand);--calcite-internal-button-background-color-hover: var(--calcite-color-brand-hover);--calcite-internal-button-background-color-press: var(--calcite-color-brand-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=danger]){--calcite-internal-button-background-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color-hover: var(--calcite-color-status-danger-hover);--calcite-internal-button-background-color-press: var(--calcite-color-status-danger-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([kind=neutral]){--calcite-internal-button-background-color: var(--calcite-color-foreground-3);--calcite-internal-button-background-color-hover: var(--calcite-color-foreground-2);--calcite-internal-button-background-color-press: var(--calcite-color-foreground-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1);--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([kind=inverse]){--calcite-internal-button-background-color: var(--calcite-color-inverse);--calcite-internal-button-background-color-hover: var(--calcite-color-inverse-hover);--calcite-internal-button-background-color-press: var(--calcite-color-inverse-press);--calcite-internal-button-loader-color: var(--calcite-color-text-inverse);--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([appearance=outline-fill]){--calcite-internal-button-background-color: var(--calcite-color-foreground-1);--calcite-internal-button-background-color-hover: var(--calcite-color-foreground-2);--calcite-internal-button-background-color-press: var(--calcite-color-foreground-3)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=solid][kind=neutral]){--calcite-internal-button-background-color-hover: var(--calcite-color-border-2);--calcite-internal-button-background-color-press: var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-border-input)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-border-color: var(--calcite-color-text-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-loader-color: var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button,:host([appearance=outline-fill][split-child=primary]) a,:host([appearance=outline][split-child=primary]) a{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button,:host([appearance=outline-fill][split-child=secondary]) a,:host([appearance=outline][split-child=secondary]) a{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]){--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent]:not(.enable-editing-button)){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-padding-y: 0}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]){--calcite-internal-button-background-color-hover: var(--calcite-color-transparent-hover);--calcite-internal-button-background-color-press: var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=inverse]) button calcite-loader,:host([appearance=transparent][kind=inverse]) a calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 7px;inline-size:2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y: var(--calcite-space-sm-plus)}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;block-size:2rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
32
32
|
class Button extends LitElement {
|
|
33
33
|
constructor() {
|
|
34
|
-
super(
|
|
34
|
+
super();
|
|
35
35
|
this.attributeWatch = useWatchAttributes(["aria-expanded"], this.handleGlobalAttributesChanged);
|
|
36
36
|
this.contentRef = createRef();
|
|
37
37
|
this.formTrigger = useFormTrigger({ disabled: () => !!this.href })(this);
|
|
@@ -40,7 +40,6 @@ class Button extends LitElement {
|
|
|
40
40
|
this.focusSetter = useSetFocus()(this);
|
|
41
41
|
this.messages = useT9n();
|
|
42
42
|
this.interactiveContainer = useInteractive(this);
|
|
43
|
-
this.labelable = useLabel(this);
|
|
44
43
|
this.hasContent = false;
|
|
45
44
|
this.alignment = "center";
|
|
46
45
|
this.appearance = "solid";
|
|
@@ -53,6 +52,7 @@ class Button extends LitElement {
|
|
|
53
52
|
this.splitChild = false;
|
|
54
53
|
this.type = "button";
|
|
55
54
|
this.width = "auto";
|
|
55
|
+
useLabel(this);
|
|
56
56
|
}
|
|
57
57
|
static {
|
|
58
58
|
this.properties = { hasContent: [16, {}, { state: true }], tooltipText: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], appearance: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], download: [3, { converter: stringOrBoolean }, { reflect: true }], form: [3, {}, { reflect: true }], href: [3, {}, { reflect: true }], iconEnd: [3, {}, { reflect: true }], iconFlipRtl: [3, {}, { reflect: true }], iconStart: [3, {}, { reflect: true }], kind: [3, {}, { reflect: true }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], rel: [3, {}, { reflect: true }], round: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], splitChild: [3, {}, { reflect: true }], target: [3, {}, { reflect: true }], type: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
|
|
@@ -9,31 +9,7 @@ import { i as isActivationKey } from "../../chunks/key.js";
|
|
|
9
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
10
10
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
|
-
|
|
13
|
-
container: "container",
|
|
14
|
-
contentWrapper: "content-wrapper",
|
|
15
|
-
header: "header",
|
|
16
|
-
footer: "footer",
|
|
17
|
-
checkboxWrapper: "checkbox-wrapper",
|
|
18
|
-
checkboxWrapperDeprecated: "checkbox-wrapper-deprecated",
|
|
19
|
-
thumbnailWrapper: "thumbnail-wrapper",
|
|
20
|
-
headerTextContainer: "header-text-container",
|
|
21
|
-
cardContent: "card-content",
|
|
22
|
-
hasSlottedContent: "has-slotted-content"
|
|
23
|
-
};
|
|
24
|
-
const SLOTS = {
|
|
25
|
-
thumbnail: "thumbnail",
|
|
26
|
-
heading: "heading",
|
|
27
|
-
description: "description",
|
|
28
|
-
footerStart: "footer-start",
|
|
29
|
-
footerEnd: "footer-end"
|
|
30
|
-
};
|
|
31
|
-
const ICONS = {
|
|
32
|
-
selected: "check-square-f",
|
|
33
|
-
unselected: "square",
|
|
34
|
-
selectedSingle: "circle-f",
|
|
35
|
-
unselectedSingle: "circle"
|
|
36
|
-
};
|
|
12
|
+
import { C as CSS, S as SLOTS, I as ICONS } from "../../chunks/resources8.js";
|
|
37
13
|
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:block;max-inline-size:100%}:host([scale=s]){--calcite-internal-card-header-text-container-padding-inline: var(--calcite-space-sm);--calcite-internal-card-header-text-container-padding-block: var(--calcite-space-xs);--calcite-internal-card-header-text-container-padding-right: 0;--calcite-internal-card-heading-font-size: var(--calcite-font-size-relative-sm);--calcite-internal-card-description-font-size: var(--calcite-font-size-relative-xs);--calcite-internal-card-checkbox-wrapper-padding: var(--calcite-space-xs);--calcite-internal-card-checkbox-wrapper-margin: var(--calcite-space-xs);--calcite-internal-card-slotted-content-padding: var(--calcite-space-sm);--calcite-internal-card-footer-padding-inline: var(--calcite-space-sm);--calcite-internal-card-footer-start-end-gap: var(--calcite-space-base)}:host([scale=m]){--calcite-internal-card-header-text-container-padding-inline: var(--calcite-space-md);--calcite-internal-card-header-text-container-padding-block: var(--calcite-space-sm);--calcite-internal-card-header-text-container-padding-right: var(--calcite-space-base);--calcite-internal-card-heading-font-size: var(--calcite-font-size-relative-base);--calcite-internal-card-description-font-size: var(--calcite-font-size-relative-sm);--calcite-internal-card-checkbox-wrapper-padding: var(--calcite-space-sm);--calcite-internal-card-checkbox-wrapper-margin: var(--calcite-space-sm);--calcite-internal-card-slotted-content-padding: var(--calcite-space-md);--calcite-internal-card-footer-padding-inline: var(--calcite-space-md);--calcite-internal-card-footer-start-end-gap: var(--calcite-space-2xs)}:host([scale=l]){--calcite-internal-card-header-text-container-padding-inline: var(--calcite-space-lg);--calcite-internal-card-header-text-container-padding-block: var(--calcite-space-md);--calcite-internal-card-header-text-container-padding-right: var(--calcite-space-xs);--calcite-internal-card-heading-font-size: var(--calcite-font-size-relative-md);--calcite-internal-card-description-font-size: var(--calcite-font-size-relative-base);--calcite-internal-card-checkbox-wrapper-padding: var(--calcite-space-md);--calcite-internal-card-checkbox-wrapper-margin: var(--calcite-space-md);--calcite-internal-card-slotted-content-padding: var(--calcite-space-lg);--calcite-internal-card-footer-padding-inline: var(--calcite-space-lg);--calcite-internal-card-footer-start-end-gap: var(--calcite-space-sm)}.content-wrapper{position:relative;display:flex;block-size:100%;flex-direction:column;justify-content:space-between;overflow:hidden;border:var(--calcite-border-width-sm) solid var(--calcite-card-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-card-corner-radius, var(--calcite-corner-radius-sharp));background-color:var(--calcite-card-background-color, var(--calcite-color-foreground-1));box-shadow:var(--calcite-card-shadow, var(--calcite-shadow-none));pointer-events:none}::slotted(*){pointer-events:auto}:host(:not([selectable])) .content-wrapper:not(.non-interactive){outline-color:transparent}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container{position:relative;display:flex;flex:1 1 auto;flex-direction:column}:host([loading]) .content-wrapper *:not(calcite-loader):not(.calcite-card-loader-container){pointer-events:none;opacity:0}:host([loading]) .calcite-card-loader-container{position:absolute;inset:0;display:flex;align-items:center}.header{display:flex;flex-direction:row;align-items:flex-start}.header-text-container{display:flex;flex-direction:column;inline-size:100%;justify-content:center;padding-inline:var(--calcite-internal-card-header-text-container-padding-inline);padding-block:var(--calcite-internal-card-header-text-container-padding-block)}.header-text-container:not(:only-child){padding-inline-end:var(--calcite-internal-card-header-text-container-padding-right)}.footer{display:flex;margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:space-between;padding-inline:var(--calcite-internal-card-footer-padding-inline);padding-block-start:var(--calcite-space-2xs);padding-block-end:var(--calcite-space-md)}.card-content{block-size:auto;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}.has-slotted-content{padding:var(--calcite-internal-card-slotted-content-padding)}:host([selected]) .content-wrapper{border:1px solid var(--calcite-card-accent-color-selected, var(--calcite-color-brand))}:host([selectable]) .header{padding-inline-end:var(--calcite-spacing-xxxl)}slot[name=heading]::slotted(*),*::slotted([slot=heading]){color:var(--calcite-color-text-1);margin:0;font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-snug);font-size:var(--calcite-internal-card-heading-font-size)}slot[name=description]::slotted(*),*::slotted([slot=description]){color:var(--calcite-color-text-2);margin:0;font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-font-line-height-relative-snug);font-size:var(--calcite-internal-card-description-font-size)}slot[name=thumbnail]::slotted(img),img::slotted([slot=thumbnail]){min-inline-size:100%;max-inline-size:100%}slot[name=footer-start]::slotted(*),*::slotted([slot=footer-start]){align-self:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);margin-inline-end:auto}slot[name=footer-end]::slotted(*),*::slotted([slot=footer-end]){align-self:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}.checkbox-wrapper-deprecated{pointer-events:auto;position:absolute;inset-block-start:var(--calcite-spacing-sm);inset-inline-end:var(--calcite-spacing-sm);margin:0;padding:0;color:var(--calcite-card-selection-color, var(--calcite-color-text-3))}.checkbox-wrapper-deprecated:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper-deprecated:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper{outline-color:transparent;cursor:pointer;pointer-events:auto;display:flex;align-items:center;justify-items:center;color:var(--calcite-card-selection-color, var(--calcite-color-text-3));padding:var(--calcite-internal-card-checkbox-wrapper-padding);margin:var(--calcite-internal-card-checkbox-wrapper-margin)}.checkbox-wrapper:hover{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}.checkbox-wrapper:active{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press))}.checkbox-wrapper calcite-icon{pointer-events:none}:host([selected]) .checkbox-wrapper-deprecated,:host([selected]) .checkbox-wrapper{color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host(:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-card-selection-color-hover, var(--calcite-card-selection-icon-color-hover, var(--calcite-color-text-2)))}:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper-deprecated,:host([selected]:not([selectable])) .content-wrapper:not(.non-interactive):focus .checkbox-wrapper{background-color:var(--calcite-card-selection-background-color-press, var(--calcite-color-transparent-press));color:var(--calcite-card-accent-color-selected, var(--calcite-card-selection-icon-color-selected, var(--calcite-color-brand)))}.thumbnail-wrapper{display:flex}.content-wrapper.inline{flex-direction:row}.content-wrapper.inline>.container{inline-size:60%}.content-wrapper.inline>.thumbnail-wrapper{inline-size:40%;align-items:flex-start}.content-wrapper.inline slot[name=thumbnail]::slotted(img),.content-wrapper.inline img::slotted([slot=thumbnail]){inline-size:100%}slot[name=footer-start]::slotted(*),slot[name=footer-end]::slotted(*){display:flex;gap:var(--calcite-internal-card-footer-start-end-gap)}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
|
|
38
14
|
class Card extends LitElement {
|
|
39
15
|
constructor() {
|
|
@@ -4,6 +4,7 @@ import { css, html } from "lit";
|
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { d as focusElementInGroup } from "../../chunks/dom.js";
|
|
7
|
+
import { i as isCard } from "../../chunks/resources8.js";
|
|
7
8
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
8
9
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
10
|
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:block}.container{display:flex;flex-wrap:wrap;gap:var(--calcite-card-group-space, var(--calcite-card-group-gap, var(--calcite-spacing-md)))}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
|
|
@@ -88,7 +89,7 @@ class CardGroup extends LitElement {
|
|
|
88
89
|
this.updateItemsScale();
|
|
89
90
|
}
|
|
90
91
|
updateSlottedItems(target) {
|
|
91
|
-
this.items = target?.assignedElements({ flatten: true }).filter(
|
|
92
|
+
this.items = target?.assignedElements({ flatten: true }).filter(isCard) || [];
|
|
92
93
|
}
|
|
93
94
|
updateItemsScale() {
|
|
94
95
|
this.items.forEach((el) => {
|
|
@@ -5,7 +5,7 @@ import { css, nothing, html } from "lit";
|
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
-
import {
|
|
8
|
+
import { x as whenAnimationDone, b as slotChangeGetAssignedElements, d as focusElementInGroup } from "../../chunks/dom.js";
|
|
9
9
|
import { g as guid } from "../../chunks/guid.js";
|
|
10
10
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
11
11
|
import { b as breakpoints } from "../../chunks/responsive.js";
|
|
@@ -24,7 +24,6 @@ class Checkbox extends LitElement {
|
|
|
24
24
|
this.direction = useDirection();
|
|
25
25
|
this.formSupport = useForm({ inputType: "checkbox" })(this);
|
|
26
26
|
this.indeterminatePath = "M13 8v1H3V8z";
|
|
27
|
-
this.labelable = useLabel(this);
|
|
28
27
|
this.onLabelClick = () => {
|
|
29
28
|
this.toggle();
|
|
30
29
|
};
|
|
@@ -42,6 +41,7 @@ class Checkbox extends LitElement {
|
|
|
42
41
|
this.calciteCheckboxChange = createEvent({ cancelable: false });
|
|
43
42
|
this.calciteInternalCheckboxBlur = createEvent({ cancelable: false });
|
|
44
43
|
this.calciteInternalCheckboxFocus = createEvent({ cancelable: false });
|
|
44
|
+
useLabel(this);
|
|
45
45
|
this.listen("click", this.clickHandler);
|
|
46
46
|
this.listen("keydown", this.keyDownHandler);
|
|
47
47
|
}
|
|
@@ -3,13 +3,13 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, isServer, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
|
-
import {
|
|
6
|
+
import { f as focusElement, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
7
7
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
8
8
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
9
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
10
10
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
|
-
import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/
|
|
12
|
+
import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/resources9.js";
|
|
13
13
|
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:inline-flex;cursor:default;border-radius:var(--calcite-chip-corner-radius, 9999px)}:host([closed]){display:none}:host([appearance=outline]) .container,:host([appearance=outline-fill]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([appearance=outline]):host([kind=brand]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-hover-border-color: var(--calcite-chip-border-color, var(--calcite-color-brand));--calcite-internal-chip-selectable-active-border-color: var( --calcite-chip-border-color, var(--calcite-color-brand) )}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=inverse]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-inverse))}:host([appearance=outline]):host([kind=neutral]),:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-border-color: var(--calcite-chip-border-color, var(--calcite-color-border-1))}:host([appearance=outline]){--calcite-internal-chip-background-color: transparent}:host([appearance=outline-fill]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-1))}:host([appearance=solid]){--calcite-internal-chip-border-color: transparent;--calcite-internal-chip-selectable-hover-border-color: transparent;--calcite-internal-chip-selectable-active-border-color: transparent}:host([appearance=solid]):host([kind=brand]),:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-close-background-color-hover: var(--calcite-color-transparent-inverse-hover);--calcite-internal-chip-close-background-color-press: var(--calcite-color-transparent-inverse-press);--calcite-internal-chip-close-icon-color: var(--calcite-color-text-inverse);--calcite-internal-chip-close-icon-color-hover: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]) .container,:host([appearance=solid]):host([kind=inverse]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-inverse))}:host([appearance=solid]):host([kind=brand]) .close,:host([appearance=solid]):host([kind=inverse]) .close{--calcite-color-focus: var(--calcite-color-text-inverse)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-brand))}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-inverse))}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-background-color: var(--calcite-chip-background-color, var(--calcite-color-foreground-2))}:host([kind=neutral]) .container{color:var(--calcite-chip-text-color, var(--calcite-color-text-1))}:host([selected]) .select-icon{opacity:1}:host([appearance=solid]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-border-2)}:host([appearance=solid]):host([kind=inverse]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-inverse-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-inverse-press)}:host([appearance=solid]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-brand-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline-fill]):host([kind=inverse]),:host([appearance=outline-fill]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-foreground-2);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-foreground-3)}:host([appearance=outline]):host([kind=neutral]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-hover-border-color: var(--calcite-color-border-input);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press);--calcite-internal-chip-selectable-active-border-color: var(--calcite-color-text-3)}:host([appearance=outline]):host([kind=inverse]),:host([appearance=outline]):host([kind=brand]){--calcite-internal-chip-selectable-hover-background-color: var(--calcite-color-transparent-hover);--calcite-internal-chip-selectable-active-background-color: var(--calcite-color-transparent-press)}:host([scale=s]){--calcite-internal-chip-close-padding: var(--calcite-spacing-none)}:host([scale=s]) .container{--calcite-internal-chip-block-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--2);--calcite-internal-chip-icon-size: var(--calcite-size-xs, 1rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-image-size: var(--calcite-spacing-xl, 1.25rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-close-size: var(--calcite-size-xs, 1rem) }:host([scale=s]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px)}:host([scale=s]) .container.image--slotted:has(.chip-icon),:host([scale=s]) .container.image--slotted.text--slotted,:host([scale=s]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.image--slotted:not(.text--slotted,:has(.chip-icon)),:host([scale=s]) .container.image--slotted:not(.selectable){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=s]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=s]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=s]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=s]) .container.multiple:not(.is-circle).image--slotted:not(.text--slotted){--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=m]) .container{--calcite-internal-chip-block-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-font-size: var(--calcite-font-size--1);--calcite-internal-chip-icon-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-icon-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-image-size: var(--calcite-size-sm, 1.5rem) ;--calcite-internal-chip-title-space: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-close-size: var(--calcite-size-sm, 1.5rem) }:host([scale=m]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-px)}:host([scale=m]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.image--slotted:has(.chip-icon),:host([scale=m]) .container.image--slotted.text--slotted,:host([scale=m]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-px);--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=m]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=m]) .container.multiple:not(.is-circle){--calcite-internal-chip-select-space-x-end: .125rem ;--calcite-internal-chip-select-space-x-start: .125rem }:host([scale=m]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .5rem ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=m]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]){--calcite-internal-chip-close-padding: var(--calcite-spacing-xxs)}:host([scale=l]) .container{--calcite-internal-chip-block-size: 2.75rem ;--calcite-internal-chip-container-space-x-end: .5rem ;--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-font-size: var(--calcite-font-size-0);--calcite-internal-chip-icon-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-icon-space: .5rem ;--calcite-internal-chip-image-size: var(--calcite-size-md, 2rem) ;--calcite-internal-chip-title-space: .5rem ;--calcite-internal-close-size: var(--calcite-size-md, 2rem) }:host([scale=l]) .container:not(.closable).is-circle{--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.image--slotted:not(.is-circle){--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.image--slotted:has(.chip-icon),:host([scale=l]) .container.image--slotted.text--slotted,:host([scale=l]) .container.image--slotted.closable{--calcite-internal-chip-image-space-x-end: .5rem }:host([scale=l]) .container.selectable.single:not(.is-circle).image--slotted{--calcite-internal-chip-container-space-x-start: var(--calcite-spacing-xs, .375rem) }:host([scale=l]) .container.selectable.single:not(.is-circle).selected{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-none, 0)}:host([scale=l]) .container.selectable.single:not(.is-circle).selected.image--slotted{--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xs, .375rem) ;--calcite-internal-chip-select-space-x-start: .5rem }:host([scale=l]) .container.multiple:not(.is-circle){--calcite-internal-chip-container-space-x-start: .5rem ;--calcite-internal-chip-select-space-x-end: var(--calcite-spacing-xxs, .25rem) ;--calcite-internal-chip-select-space-x-start: var(--calcite-spacing-xxs, .25rem) }:host([scale=l]) .container.multiple:not(.is-circle).image--slotted{--calcite-internal-chip-select-space-x-end: .75rem }:host([scale=l]) .container.closable:not(.is-circle){--calcite-internal-chip-container-space-x-end: var(--calcite-spacing-xs, .375rem) }.container{box-sizing:border-box;display:inline-flex;block-size:100%;max-inline-size:100%;align-items:center;justify-content:center;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-internal-chip-background-color);border-color:var(--calcite-internal-chip-border-color);border-radius:var(--calcite-chip-corner-radius, 9999px);border-width:var(--calcite-border-width-sm);border-style:solid;font-size:var(--calcite-internal-chip-font-size, var(--calcite-font-size));padding-inline-start:var(--calcite-internal-chip-container-space-x-start);padding-inline-end:var(--calcite-internal-chip-container-space-x-end);block-size:var(--calcite-internal-chip-block-size, auto);inline-size:var(--calcite-internal-chip-inline-size, auto);min-inline-size:var(--calcite-internal-chip-block-size, auto)}.container:hover .select-icon--active{opacity:var(--calcite-opacity-full, 1)}.container.selectable{cursor:pointer}.container.selectable:hover{background-color:var(--calcite-internal-chip-selectable-hover-background-color);border-color:var(--calcite-internal-chip-selectable-hover-border-color)}.container.selectable:active{background-color:var(--calcite-internal-chip-selectable-active-background-color);border-color:var(--calcite-internal-chip-selectable-active-border-color)}.container:not(.non-interactive):focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.container.text--slotted .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container:not(.text--slotted) .title,.container:not(.image--slotted) .image-container{display:none}.container.is-circle .chip-icon,.container.is-circle .image-container{padding:var(--calcite-spacing-none, 0)}.title{padding-inline:var(--calcite-internal-chip-title-space)}.image-container{display:inline-flex;overflow:hidden;align-items:center;justify-content:center;pointer-events:none;block-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-image-size, var(--calcite-spacing-xxl, 1.5rem));padding-inline-start:var(--calcite-spacing-none, 0);padding-inline-end:var(--calcite-internal-chip-image-space-x-end, 0)}.chip-icon{position:relative;margin-block:0px;display:inline-flex;transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-chip-icon-color, var(--calcite-chip-text-color, var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))));padding-inline:var(--calcite-internal-chip-icon-space, var(--calcite-spacing-xs, .375rem))}.select-icon{align-self:center;justify-content:center;align-items:center;display:flex;inset-block-start:-1px;position:absolute;visibility:hidden;inline-size:auto;opacity:0;transition:opacity .15s ease-in-out,inline-size .15s ease-in-out;color:var(--calcite-chip-select-icon-color, currentColor)}.select-icon.select-icon--active{position:relative;visibility:visible;opacity:var(--calcite-opacity-half, .5);color:var(--calcite-chip-select-icon-color-press, var(--calcite-chip-select-icon-color-pressed, var(--calcite-chip-select-icon-color, currentColor)))}.multiple .select-icon{display:flex;align-items:center;justify-content:center}.multiple .select-icon,.single .select-icon--active{padding-inline-start:var(--calcite-internal-chip-select-space-x-start);padding-inline-end:var(--calcite-internal-chip-select-space-x-end);block-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem));inline-size:var(--calcite-internal-chip-icon-size, var(--calcite-spacing-xxl, 1.5rem))}.close{--calcite-action-background-color-hover: var(--calcite-internal-chip-close-background-color-hover);--calcite-action-background-color-press: var(--calcite-internal-chip-close-background-color-press);--calcite-action-corner-radius: var(--calcite-corner-radius-pill);--calcite-action-text-color: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color)) );--calcite-action-text-color-press: var( --calcite-chip-close-icon-color, var(--calcite-close-icon-color, var(--calcite-internal-chip-close-icon-color-hover)) );--calcite-icon-color: var(--calcite-action-text-color);--calcite-internal-action-min-height: unset;--calcite-internal-action-spacing: var(--calcite-internal-chip-close-padding)}slot[name=image]::slotted(*){display:flex;block-size:100%;inline-size:100%;overflow:hidden;border-radius:50%}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
14
14
|
class Chip extends LitElement {
|
|
15
15
|
constructor() {
|
|
@@ -3,10 +3,10 @@ import { c as customElement } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
5
5
|
import { LitElement, createEvent } from "@arcgis/lumina";
|
|
6
|
-
import { d as focusElementInGroup,
|
|
6
|
+
import { d as focusElementInGroup, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
7
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
8
8
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
9
|
-
import { i as isChip } from "../../chunks/
|
|
9
|
+
import { i as isChip } from "../../chunks/resources9.js";
|
|
10
10
|
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}.container{display:flex;inline-size:100%;flex-wrap:wrap;gap:.5rem}::slotted(calcite-chip){flex:none}:host([scale=s]) .container{gap:.25rem}:host([scale=l]) .container{gap:.75rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
11
11
|
class ChipGroup extends LitElement {
|
|
12
12
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { css, html, nothing } from "lit";
|
|
|
8
8
|
import { LitElement, createEvent, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
9
9
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
10
10
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
11
|
-
import {
|
|
11
|
+
import { e as isPrimaryPointerButton } from "../../chunks/dom.js";
|
|
12
12
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
13
13
|
import { r as remap, c as clamp, a as closeToRangeEdge } from "../../chunks/math.js";
|
|
14
14
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -16,7 +16,7 @@ import { u as useCancelable } from "../../chunks/useCancelable.js";
|
|
|
16
16
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
17
17
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
18
18
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
19
|
-
import { D as DEFAULT_COLOR, C as CSSColorMode, g as getSliderWidth, a as getColorFieldDimensions, S as STATIC_DIMENSIONS, n as normalizeHex,
|
|
19
|
+
import { D as DEFAULT_COLOR, C as CSSColorMode, g as getSliderWidth, a as getColorFieldDimensions, S as STATIC_DIMENSIONS, n as normalizeHex, h as hexify, p as parseMode, c as colorFromValue, b as DEFAULT_STORAGE_KEY_PREFIX, d as alphaCompatible, e as colorEqual, O as OPACITY_LIMITS, R as RGB_LIMITS, H as HSV_LIMITS, f as CSS, o as opacityToAlpha, t as toNonAlphaMode, i as HUE_LIMIT_CONSTRAINED, j as normalizeAlpha, k as alphaToOpacity, l as SCOPE_SIZE, I as ICONS, m as toAlphaMode } from "../../chunks/utils3.js";
|
|
20
20
|
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:inline-block;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);font-weight:var(--calcite-font-weight-normal);inline-size:var(--calcite-internal-color-picker-min-width);min-inline-size:var(--calcite-internal-color-picker-min-width)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-color-picker-min-width: 200px;--calcite-color-picker-spacing: var(--calcite-spacing-sm)}:host([scale=m]){--calcite-internal-color-picker-min-width: 240px;--calcite-color-picker-spacing: var(--calcite-spacing-md)}:host([scale=l]){--calcite-internal-color-picker-min-width: 304px;--calcite-color-picker-spacing: var(--calcite-spacing-lg);font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=l]) .section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}:host([scale=l]) .control-section{display:flex;flex-direction:column;flex-wrap:wrap;align-items:baseline}:host([scale=l]) .color-hex-options{inline-size:100%;display:flex;flex-shrink:1;flex-direction:column;justify-content:space-around}:host([scale=l]) .color-mode-container{flex-shrink:3}calcite-input-number{--calcite-input-number-background-color: var(--calcite-color-picker-input-background-color);--calcite-input-number-border-color: var(--calcite-color-picker-input-border-color);--calcite-input-number-text-color: var(--calcite-color-picker-input-text-color);--calcite-input-prefix-text-color: var(--calcite-color-picker-input-prefix-text-color);--calcite-input-suffix-text-color: var(--calcite-color-picker-input-suffix-text-color)}calcite-button{--calcite-button-text-color: var(--calcite-color-picker-action-text-color);--calcite-button-text-color-press: var(--calcite-color-picker-action-text-color-press)}calcite-button:hover,calcite-button:focus{--calcite-button-text-color: var(--calcite-color-picker-action-text-color-hover)}calcite-button:active{--calcite-button-text-color: var(--calcite-color-picker-action-text-color-press)}calcite-tabs{--calcite-tab-border-color: var(--calcite-color-picker-tab-border-color);--calcite-tab-text-color: var(--calcite-color-picker-tab-text-color);--calcite-tab-accent-color-press: var(--calcite-color-picker-tab-accent-color);--calcite-swatch-corner-radius: var(--calcite-color-picker-swatch-corner-radius)}calcite-tab-title:hover{--calcite-color-text-1: var(--calcite-color-picker-tab-text-color-hover)}calcite-swatch{--calcite-swatch-corner-radius: var(--calcite-color-picker-swatch-corner-radius)}.container{display:flex;flex-direction:column;block-size:min-content;border:1px solid var(--calcite-color-picker-border-color, var(--calcite-color-border-3));background-color:var(--calcite-color-picker-background-color, var(--calcite-color-foreground-1));border-radius:var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius));box-shadow:var(--calcite-color-picker-shadow, var(--calcite-shadow-none))}.control-and-scope{position:relative;display:flex;cursor:pointer;touch-action:none}.color-field,.control-and-scope{-webkit-user-select:none;user-select:none;border-radius:var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius)) var(--calcite-color-picker-corner-radius, var(--calcite-corner-radius)) var(--calcite-corner-radius-none) var(--calcite-corner-radius-none)}.scope{pointer-events:none;position:absolute;z-index:var(--calcite-z-index);block-size:1px;inline-size:1px;border-radius:9999px;background-color:transparent;font-size:var(--calcite-font-size-relative-base);outline-color:transparent}.scope:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));outline-offset:6px}.hex-and-channels-group{display:flex;inline-size:100%;flex-direction:column;flex-wrap:wrap}.section{padding-block:0 var(--calcite-color-picker-spacing);padding-inline:var(--calcite-color-picker-spacing)}.section:first-of-type{padding-block-start:var(--calcite-color-picker-spacing)}.sliders{display:flex;flex-direction:column;justify-content:space-between;margin-inline-start:var(--calcite-color-picker-spacing);gap:var(--calcite-spacing-xxs)}.preview-and-sliders{display:flex;align-items:center;padding:var(--calcite-color-picker-spacing)}.color-hex-options,.section--split{flex-grow:1}.header{display:flex;align-items:center;justify-content:space-between;color:var(--calcite-color-picker-text-color, var(--calcite-color-text-1))}.color-mode-container{padding-block-start:var(--calcite-color-picker-spacing)}.channels{display:flex}.channel{flex-grow:1}.channel[data-channel-index="3"]{margin-inline-start:-1px;min-inline-size:81px}:host([scale=s]) .channel[data-channel-index="3"]{min-inline-size:68px}:host([scale=l]) .channel[data-channel-index="3"]{min-inline-size:88px}.saved-colors-buttons{display:flex}.swatch-group{margin-block-start:var(--calcite-color-picker-spacing)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
21
21
|
const throttleFor60FpsInMs = 16;
|
|
22
22
|
class ColorPicker extends LitElement {
|
|
@@ -5,7 +5,7 @@ import Color from "color";
|
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
|
-
import { n as normalizeHex,
|
|
8
|
+
import { n as normalizeHex, h as hexify, q as isValidHex, r as isLonghandHex, s as isShorthandHex, u as rgbToHex, o as opacityToAlpha, k as alphaToOpacity, O as OPACITY_LIMITS, v as hexChar } from "../../chunks/utils3.js";
|
|
9
9
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
10
10
|
const CSS = {
|
|
11
11
|
container: "container",
|
|
@@ -4,8 +4,8 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import Color from "color";
|
|
5
5
|
import { css, html, nothing, svg } from "lit";
|
|
6
6
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { y as getModeName } from "../../chunks/dom.js";
|
|
8
|
+
import { h as hexify } from "../../chunks/utils3.js";
|
|
9
9
|
const CSS = {
|
|
10
10
|
swatch: "swatch",
|
|
11
11
|
noColorSwatch: "swatch--no-color",
|