@esri/calcite-components 5.2.0-next.70 → 5.2.0-next.72
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/2LI2WSK2.js +2 -0
- package/dist/cdn/{DZNQR26P.js → 2UTHVUT7.js} +1 -1
- package/dist/cdn/{RESHNLJ6.js → 2WBLQI6U.js} +1 -1
- package/dist/cdn/3CJWAO5P.js +2 -0
- package/dist/cdn/3Q3NLSCQ.js +2 -0
- package/dist/cdn/3TNLC6PV.js +2 -0
- package/dist/cdn/3VZ4SWDK.js +2 -0
- package/dist/cdn/{6KXM5OYZ.js → 3WN4IEPQ.js} +1 -1
- package/dist/cdn/43WZZYF7.js +2 -0
- package/dist/cdn/4GCQDZWN.js +2 -0
- package/dist/cdn/{5QN2KNKV.js → 4IEGHLUB.js} +1 -1
- package/dist/cdn/{VOCKM3G2.js → 4QWJ3PQW.js} +1 -1
- package/dist/cdn/4ZA6ZVL6.js +2 -0
- package/dist/cdn/{DDV4NKQS.js → 5G22OBD5.js} +1 -1
- package/dist/cdn/{EJKJVQ73.js → 5ITOJWPH.js} +1 -1
- package/dist/cdn/5OBU6MKV.js +2 -0
- package/dist/cdn/5URBXOI6.js +2 -0
- package/dist/cdn/63IUCUAK.js +2 -0
- package/dist/cdn/6IFDVGXE.js +2 -0
- package/dist/cdn/6NHOF5C6.js +2 -0
- package/dist/cdn/6O5C3TC6.js +2 -0
- package/dist/cdn/76VEF2N3.js +2 -0
- package/dist/cdn/7VTO7SRW.js +2 -0
- package/dist/cdn/{QEDVJK2B.js → ABXX3YLO.js} +1 -1
- package/dist/cdn/AFYJTXE4.js +2 -0
- package/dist/cdn/{LZYVRSSC.js → AGT3CYIC.js} +1 -1
- package/dist/cdn/AH7E725Y.js +2 -0
- package/dist/cdn/AN5WJGEU.js +2 -0
- package/dist/cdn/AY7IBHGD.js +2 -0
- package/dist/cdn/B44MDPWE.js +2 -0
- package/dist/cdn/B5ZVXTPR.js +2 -0
- package/dist/cdn/BKTVJALY.js +4 -0
- package/dist/cdn/{TT5M5MYP.js → BXOKCLLN.js} +1 -1
- package/dist/cdn/C6K4YWG2.js +2 -0
- package/dist/cdn/CE7TCXV4.js +2 -0
- package/dist/cdn/CIOPRNUQ.js +2 -0
- package/dist/cdn/CR3S2P6V.js +2 -0
- package/dist/cdn/DAB4MV6S.js +2 -0
- package/dist/cdn/{EC72OBDA.js → DANMXS3Z.js} +1 -1
- package/dist/cdn/DBGQA6BS.js +2 -0
- package/dist/cdn/DBYQ6LE6.js +2 -0
- package/dist/cdn/DGILOBDM.js +2 -0
- package/dist/cdn/{Q4VBFB6I.js → DQO6DVWZ.js} +1 -1
- package/dist/cdn/{S65BOXP4.js → EEHDM3XH.js} +1 -1
- package/dist/cdn/EN5AJPE4.js +2 -0
- package/dist/cdn/ENEJFDPY.js +2 -0
- package/dist/cdn/F7UJ5OMM.js +2 -0
- package/dist/cdn/FEYKSGSJ.js +2 -0
- package/dist/cdn/FI2B7DFP.js +2 -0
- package/dist/cdn/FLWEI5GH.js +2 -0
- package/dist/cdn/FZJ5OYBK.js +2 -0
- package/dist/cdn/G2HFGHIC.js +2 -0
- package/dist/cdn/G5I6LLDZ.js +2 -0
- package/dist/cdn/GEXT4YRZ.js +2 -0
- package/dist/cdn/GIYPCJ4F.js +2 -0
- package/dist/cdn/GMESQXPP.js +2 -0
- package/dist/cdn/GMGXPKVZ.js +2 -0
- package/dist/cdn/GPQBNXZR.js +2 -0
- package/dist/cdn/GSGALXNG.js +2 -0
- package/dist/cdn/{AWGDXOB3.js → GSVOPUJG.js} +1 -1
- package/dist/cdn/{HRRQ35FT.js → H3KRI5A4.js} +1 -1
- package/dist/cdn/H5DNKLYR.js +2 -0
- package/dist/cdn/{ZJ3XEIZR.js → H6NR2LDG.js} +1 -1
- package/dist/cdn/HCNME75A.js +2 -0
- package/dist/cdn/HKTG3UPX.js +2 -0
- package/dist/cdn/HQOEHOTW.js +2 -0
- package/dist/cdn/{ORWRLRPO.js → HRQSQ4A6.js} +1 -1
- package/dist/cdn/{46RKFFGQ.js → HSGAQRYJ.js} +1 -1
- package/dist/cdn/HU2HPOQ7.js +2 -0
- package/dist/cdn/{M3AX6WGK.js → HVW246PN.js} +1 -1
- package/dist/cdn/I2VDKTAK.js +2 -0
- package/dist/cdn/{EGB22AEH.js → IE5KDMJE.js} +1 -1
- package/dist/cdn/IPYI4ZFP.js +2 -0
- package/dist/cdn/ITO7ZNSM.js +2 -0
- package/dist/cdn/{M6Q3EIP6.js → IXE72L6L.js} +1 -1
- package/dist/cdn/{IXNQ44YK.js → J3VFES7S.js} +1 -1
- package/dist/cdn/{J5D56KAD.js → JJWXUTPP.js} +1 -1
- package/dist/cdn/KDBMNDVH.js +2 -0
- package/dist/cdn/KVLA6SMF.js +2 -0
- package/dist/cdn/L6QKJ7E4.js +2 -0
- package/dist/cdn/{LV4KM6PC.js → LKTLHI7X.js} +1 -1
- package/dist/cdn/{LP6IKK7J.js → LWGDCZEG.js} +1 -1
- package/dist/cdn/M6YDGTSM.js +2 -0
- package/dist/cdn/MBM7UIXE.js +2 -0
- package/dist/cdn/{X2RWKE4D.js → MMJUSHGT.js} +1 -1
- package/dist/cdn/{D2M2O7D4.js → N4LV2C6D.js} +1 -1
- package/dist/cdn/N6SQTS7X.js +2 -0
- package/dist/cdn/{CLCNGAIT.js → N7GI37UA.js} +1 -1
- package/dist/cdn/NDDSZKIJ.js +2 -0
- package/dist/cdn/{JQGAEFTP.js → NELSF4F6.js} +1 -1
- package/dist/cdn/NF2DEJFS.js +2 -0
- package/dist/cdn/{UVW4ZA5Z.js → NWK2N3DW.js} +1 -1
- package/dist/cdn/NYMXUPSJ.js +2 -0
- package/dist/cdn/O66KCB5Y.js +2 -0
- package/dist/cdn/{STQ4T6ZL.js → OCOXLCKQ.js} +1 -1
- package/dist/cdn/OJQ3AXNW.js +2 -0
- package/dist/cdn/OMW5LQG4.js +2 -0
- package/dist/cdn/ONPRPX2R.js +2 -0
- package/dist/cdn/P5S4F3WT.js +2 -0
- package/dist/cdn/PA5Z7B74.js +2 -0
- package/dist/cdn/{LB2J5RLA.js → PGKUQ5QW.js} +1 -1
- package/dist/cdn/PGU73CNX.js +2 -0
- package/dist/cdn/PRO23RP2.js +2 -0
- package/dist/cdn/Q25ML244.js +2 -0
- package/dist/cdn/{2DKBRL6T.js → Q4GFUNOY.js} +1 -1
- package/dist/cdn/QGR3M7C6.js +2 -0
- package/dist/cdn/QORR4LYI.js +2 -0
- package/dist/cdn/QV5XDDHW.js +2 -0
- package/dist/cdn/{O6WABKEC.js → R4OTPPUP.js} +1 -1
- package/dist/cdn/R6URHBB4.js +2 -0
- package/dist/cdn/{BWX66GU4.js → REWZWI55.js} +1 -1
- package/dist/cdn/{HCK7PO6R.js → RR6RVWTZ.js} +1 -1
- package/dist/cdn/{CNWFFIWK.js → RRK2A4MY.js} +1 -1
- package/dist/cdn/RRNHUX2D.js +2 -0
- package/dist/cdn/RS2KW3Q2.js +2 -0
- package/dist/cdn/{37XKEBCL.js → RYA2FB6F.js} +1 -1
- package/dist/cdn/S73GCCFJ.js +2 -0
- package/dist/cdn/SBVY3FV5.js +2 -0
- package/dist/cdn/SF4U6LCR.js +2 -0
- package/dist/cdn/{3BY6Q466.js → SOTBM3DK.js} +1 -1
- package/dist/cdn/SP7X6II4.js +2 -0
- package/dist/cdn/SPBKPWAL.js +2 -0
- package/dist/cdn/SZZX3H5D.js +2 -0
- package/dist/cdn/U3ALLQOK.js +2 -0
- package/dist/cdn/U5EJA3RQ.js +2 -0
- package/dist/cdn/URBAY2ZY.js +2 -0
- package/dist/cdn/V2RSLNSI.js +2 -0
- package/dist/cdn/{ZBS7TLZA.js → VRKXQANL.js} +1 -1
- package/dist/cdn/VX26CS43.js +2 -0
- package/dist/cdn/VXDPJESZ.js +2 -0
- package/dist/cdn/{VGB4JQR6.js → VYPNKZGD.js} +1 -1
- package/dist/cdn/WDGNMQIH.js +2 -0
- package/dist/cdn/{3FTLZWQG.js → WSW7UPQR.js} +1 -1
- package/dist/cdn/{F3UYZQJA.js → X3ZTU626.js} +1 -1
- package/dist/cdn/X7VSUKID.js +2 -0
- package/dist/cdn/XFBBVEEE.js +2 -0
- package/dist/cdn/XIAQHYXK.js +2 -0
- package/dist/cdn/XLWUWQWC.js +2 -0
- package/dist/cdn/XOSDCSQB.js +2 -0
- package/dist/cdn/XPTORKGR.js +2 -0
- package/dist/cdn/{4HLHOCHN.js → XS2676QJ.js} +1 -1
- package/dist/cdn/{HP6NC7YO.js → XTVCYRBN.js} +1 -1
- package/dist/cdn/{2C6EYXK7.js → XZRKDUXQ.js} +1 -1
- package/dist/cdn/{LOUNVBIX.js → YVB5CIDB.js} +1 -1
- package/dist/cdn/ZCQGWUMF.js +2 -0
- package/dist/cdn/{5GK33MMO.js → ZCREBRIK.js} +1 -1
- package/dist/cdn/ZNCAUAYU.js +2 -0
- package/dist/cdn/ZPTWAELA.js +2 -0
- package/dist/cdn/assets/icon/alignBottom16.json +1 -0
- package/dist/cdn/assets/icon/alignBottom24.json +1 -0
- package/dist/cdn/assets/icon/alignBottom32.json +1 -0
- package/dist/cdn/assets/icon/alignCenterHorizontal16.json +1 -0
- package/dist/cdn/assets/icon/alignCenterHorizontal24.json +1 -0
- package/dist/cdn/assets/icon/alignCenterHorizontal32.json +1 -0
- package/dist/cdn/assets/icon/alignCenterVertical16.json +1 -0
- package/dist/cdn/assets/icon/alignCenterVertical24.json +1 -0
- package/dist/cdn/assets/icon/alignCenterVertical32.json +1 -0
- package/dist/cdn/assets/icon/alignLeft16.json +1 -0
- package/dist/cdn/assets/icon/alignLeft24.json +1 -0
- package/dist/cdn/assets/icon/alignLeft32.json +1 -0
- package/dist/cdn/assets/icon/alignRight16.json +1 -0
- package/dist/cdn/assets/icon/alignRight24.json +1 -0
- package/dist/cdn/assets/icon/alignRight32.json +1 -0
- package/dist/cdn/assets/icon/alignTop16.json +1 -0
- package/dist/cdn/assets/icon/alignTop24.json +1 -0
- package/dist/cdn/assets/icon/alignTop32.json +1 -0
- package/dist/cdn/assets/icon/spaceAroundHorizontal16.json +1 -0
- package/dist/cdn/assets/icon/spaceAroundHorizontal24.json +1 -0
- package/dist/cdn/assets/icon/spaceAroundHorizontal32.json +1 -0
- package/dist/cdn/assets/icon/spaceAroundVertical16.json +1 -0
- package/dist/cdn/assets/icon/spaceAroundVertical24.json +1 -0
- package/dist/cdn/assets/icon/spaceAroundVertical32.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal16.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal24.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenHorizontal32.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenVertical16.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenVertical24.json +1 -0
- package/dist/cdn/assets/icon/spaceBetweenVertical32.json +1 -0
- package/dist/cdn/assets/icon/spacedEvenlyHorizontal16.json +1 -0
- package/dist/cdn/assets/icon/spacedEvenlyHorizontal24.json +1 -0
- package/dist/cdn/assets/icon/spacedEvenlyHorizontal32.json +1 -0
- package/dist/cdn/assets/icon/spacedEvenlyVertical16.json +1 -0
- package/dist/cdn/assets/icon/spacedEvenlyVertical24.json +1 -0
- package/dist/cdn/assets/icon/spacedEvenlyVertical32.json +1 -0
- package/dist/cdn/assets/icon/stretchHorizontal16.json +1 -0
- package/dist/cdn/assets/icon/stretchHorizontal24.json +1 -0
- package/dist/cdn/assets/icon/stretchHorizontal32.json +1 -0
- package/dist/cdn/assets/icon/stretchVertical16.json +1 -0
- package/dist/cdn/assets/icon/stretchVertical24.json +1 -0
- package/dist/cdn/assets/icon/stretchVertical32.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/aria.js +3 -2
- package/dist/chunks/dom.js +10 -10
- package/dist/chunks/manager.js +50 -25
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useInlineEdit.js +65 -0
- package/dist/components/calcite-accordion/customElement.d.ts +0 -5
- package/dist/components/calcite-accordion-item/customElement.d.ts +0 -18
- package/dist/components/calcite-action/customElement.d.ts +1 -17
- package/dist/components/calcite-action/customElement.js +3 -2
- package/dist/components/calcite-action-bar/customElement.d.ts +0 -5
- package/dist/components/calcite-action-bar/customElement.js +1 -1
- package/dist/components/calcite-action-group/customElement.d.ts +0 -4
- package/dist/components/calcite-action-menu/customElement.d.ts +0 -1
- package/dist/components/calcite-action-pad/customElement.d.ts +0 -3
- package/dist/components/calcite-action-pad/customElement.js +1 -1
- package/dist/components/calcite-alert/customElement.d.ts +0 -5
- package/dist/components/calcite-autocomplete/customElement.d.ts +0 -23
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +0 -4
- package/dist/components/calcite-autocomplete-item-group/customElement.d.ts +1 -6
- package/dist/components/calcite-avatar/customElement.d.ts +0 -5
- package/dist/components/calcite-block/customElement.d.ts +0 -17
- package/dist/components/calcite-block/customElement.js +5 -4
- package/dist/components/calcite-block-group/customElement.js +2 -1
- package/dist/components/calcite-block-section/customElement.d.ts +0 -6
- package/dist/components/calcite-button/customElement.d.ts +0 -7
- package/dist/components/calcite-button/customElement.js +3 -2
- package/dist/components/calcite-card/customElement.d.ts +0 -12
- package/dist/components/calcite-card/customElement.js +2 -1
- package/dist/components/calcite-card-group/customElement.d.ts +1 -5
- package/dist/components/calcite-card-group/customElement.js +1 -1
- package/dist/components/calcite-carousel/customElement.d.ts +1 -14
- package/dist/components/calcite-carousel/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.d.ts +0 -7
- package/dist/components/calcite-chip/customElement.d.ts +0 -9
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +0 -19
- package/dist/components/calcite-color-picker/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +0 -9
- package/dist/components/calcite-combobox/customElement.js +1 -1
- package/dist/components/calcite-combobox-item/customElement.d.ts +0 -10
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.d.ts +1 -5
- package/dist/components/calcite-date-picker/customElement.d.ts +0 -27
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +0 -31
- package/dist/components/calcite-dialog/customElement.js +1 -1
- package/dist/components/calcite-dropdown/customElement.d.ts +0 -3
- package/dist/components/calcite-dropdown-group/customElement.d.ts +1 -5
- package/dist/components/calcite-dropdown-item/customElement.d.ts +1 -9
- package/dist/components/calcite-fab/customElement.d.ts +0 -8
- package/dist/components/calcite-filter/customElement.d.ts +0 -16
- package/dist/components/calcite-flow/customElement.d.ts +1 -4
- package/dist/components/calcite-flow-item/customElement.d.ts +0 -28
- package/dist/components/calcite-graph/customElement.d.ts +0 -1
- package/dist/components/calcite-handle/customElement.d.ts +1 -9
- package/dist/components/calcite-icon/customElement.d.ts +0 -4
- package/dist/components/calcite-inline-editable/customElement.d.ts +1 -10
- package/dist/components/calcite-inline-editable/customElement.js +2 -2
- package/dist/components/calcite-input/customElement.d.ts +15 -42
- package/dist/components/calcite-input/customElement.js +149 -62
- package/dist/components/calcite-input-date-picker/customElement.d.ts +1 -44
- package/dist/components/calcite-input-message/customElement.d.ts +0 -3
- package/dist/components/calcite-input-number/customElement.d.ts +15 -43
- package/dist/components/calcite-input-number/customElement.js +130 -59
- package/dist/components/calcite-input-text/customElement.d.ts +15 -42
- package/dist/components/calcite-input-text/customElement.js +127 -56
- package/dist/components/calcite-input-time-picker/customElement.d.ts +1 -26
- package/dist/components/calcite-input-time-picker/customElement.js +2 -1
- package/dist/components/calcite-input-time-zone/customElement.d.ts +1 -4
- package/dist/components/calcite-label/customElement.d.ts +1 -5
- package/dist/components/calcite-link/customElement.d.ts +0 -1
- package/dist/components/calcite-list/customElement.d.ts +0 -1
- package/dist/components/calcite-list/customElement.js +3 -2
- package/dist/components/calcite-list-item/customElement.d.ts +0 -9
- package/dist/components/calcite-list-item/customElement.js +1 -1
- package/dist/components/calcite-list-item-group/customElement.d.ts +1 -5
- package/dist/components/calcite-loader/customElement.d.ts +0 -12
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +1 -8
- package/dist/components/calcite-meter/customElement.d.ts +0 -9
- package/dist/components/calcite-navigation/customElement.d.ts +0 -4
- package/dist/components/calcite-navigation-logo/customElement.d.ts +0 -6
- package/dist/components/calcite-navigation-user/customElement.d.ts +0 -8
- package/dist/components/calcite-notice/customElement.d.ts +0 -13
- package/dist/components/calcite-pagination/customElement.d.ts +0 -8
- package/dist/components/calcite-panel/customElement.d.ts +0 -23
- package/dist/components/calcite-panel/customElement.js +3 -2
- package/dist/components/calcite-popover/customElement.d.ts +1 -8
- package/dist/components/calcite-progress/customElement.d.ts +0 -5
- package/dist/components/calcite-radio-button/customElement.d.ts +0 -6
- package/dist/components/calcite-radio-button-group/customElement.d.ts +0 -2
- package/dist/components/calcite-rating/customElement.d.ts +1 -10
- package/dist/components/calcite-scrim/customElement.d.ts +1 -4
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +0 -2
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +0 -6
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +0 -8
- package/dist/components/calcite-sheet/customElement.d.ts +1 -16
- package/dist/components/calcite-sheet/customElement.js +1 -1
- package/dist/components/calcite-shell/customElement.d.ts +0 -3
- package/dist/components/calcite-shell/customElement.js +1 -1
- package/dist/components/calcite-shell-panel/customElement.d.ts +0 -12
- package/dist/components/calcite-shell-panel/customElement.js +1 -1
- package/dist/components/calcite-slider/customElement.d.ts +1 -13
- package/dist/components/calcite-slider/customElement.js +1 -1
- package/dist/components/calcite-split-button/customElement.d.ts +1 -19
- package/dist/components/calcite-stack/customElement.d.ts +0 -2
- package/dist/components/calcite-stepper/customElement.d.ts +1 -8
- package/dist/components/calcite-stepper/customElement.js +1 -1
- package/dist/components/calcite-stepper-item/customElement.d.ts +1 -21
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-swatch/customElement.d.ts +1 -4
- package/dist/components/calcite-swatch-group/customElement.d.ts +1 -4
- package/dist/components/calcite-swatch-group/customElement.js +1 -1
- package/dist/components/calcite-switch/customElement.d.ts +0 -9
- package/dist/components/calcite-tab/customElement.d.ts +1 -5
- package/dist/components/calcite-tab-nav/customElement.d.ts +1 -6
- package/dist/components/calcite-tab-nav/customElement.js +6 -2
- package/dist/components/calcite-tab-title/customElement.d.ts +0 -15
- package/dist/components/calcite-table/customElement.d.ts +0 -40
- package/dist/components/calcite-table-cell/customElement.d.ts +1 -7
- package/dist/components/calcite-table-header/customElement.d.ts +0 -7
- package/dist/components/calcite-table-row/customElement.d.ts +1 -9
- package/dist/components/calcite-table-row/customElement.js +1 -1
- package/dist/components/calcite-tabs/customElement.d.ts +0 -2
- package/dist/components/calcite-text-area/customElement.d.ts +0 -14
- package/dist/components/calcite-tile/customElement.d.ts +0 -9
- package/dist/components/calcite-tile/customElement.js +1 -1
- package/dist/components/calcite-tile-group/customElement.js +1 -1
- package/dist/components/calcite-time-picker/customElement.d.ts +0 -11
- package/dist/components/calcite-tooltip/customElement.d.ts +1 -8
- package/dist/components/calcite-tree-item/customElement.d.ts +0 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +3 -3
- package/dist/types/lumina.d.ts +12 -12
- package/dist/types/preact.d.ts +12 -12
- package/dist/types/react.d.ts +12 -12
- package/dist/types/stencil.d.ts +12 -12
- package/package.json +14 -14
- package/dist/cdn/2DRYAXZA.js +0 -2
- package/dist/cdn/2QDPBMR5.js +0 -2
- package/dist/cdn/36ZI4OE2.js +0 -2
- package/dist/cdn/3EOXNRWH.js +0 -2
- package/dist/cdn/3PBE34WL.js +0 -2
- package/dist/cdn/3PHJ4VKR.js +0 -2
- package/dist/cdn/4OTRU7PP.js +0 -2
- package/dist/cdn/4V54EQG7.js +0 -2
- package/dist/cdn/4XYNB6JA.js +0 -2
- package/dist/cdn/5EBGPCB7.js +0 -2
- package/dist/cdn/5JGGEI4T.js +0 -2
- package/dist/cdn/5NUKMHTR.js +0 -2
- package/dist/cdn/6IIOOLNW.js +0 -2
- package/dist/cdn/6OAHARTN.js +0 -2
- package/dist/cdn/6SIMRTTJ.js +0 -2
- package/dist/cdn/6XZUNSYJ.js +0 -2
- package/dist/cdn/74LD6VQE.js +0 -2
- package/dist/cdn/7AX3VWZ2.js +0 -2
- package/dist/cdn/7LCQLCGJ.js +0 -2
- package/dist/cdn/7PDQJVYI.js +0 -2
- package/dist/cdn/A2PZZ6XZ.js +0 -2
- package/dist/cdn/AI34WFC4.js +0 -2
- package/dist/cdn/AR46CHOI.js +0 -2
- package/dist/cdn/BK6IFOPJ.js +0 -2
- package/dist/cdn/BLOHG5AH.js +0 -2
- package/dist/cdn/BQYRK6UJ.js +0 -2
- package/dist/cdn/C5SVC6AT.js +0 -2
- package/dist/cdn/CIYJDFL7.js +0 -2
- package/dist/cdn/CJLLJ7EG.js +0 -2
- package/dist/cdn/CLMLN73K.js +0 -2
- package/dist/cdn/CLQONTJ4.js +0 -2
- package/dist/cdn/D32AN634.js +0 -2
- package/dist/cdn/DBIXUUDH.js +0 -2
- package/dist/cdn/DJZ3PU4G.js +0 -2
- package/dist/cdn/DMH6GECA.js +0 -2
- package/dist/cdn/EWRXYHQ6.js +0 -2
- package/dist/cdn/FFIEWYUD.js +0 -2
- package/dist/cdn/FVYTBWWQ.js +0 -2
- package/dist/cdn/GGXZDUOD.js +0 -2
- package/dist/cdn/GJHAOR7O.js +0 -2
- package/dist/cdn/GVHT4OW3.js +0 -4
- package/dist/cdn/GZZYSINJ.js +0 -2
- package/dist/cdn/H4DWCZQH.js +0 -2
- package/dist/cdn/HK2ZPYSD.js +0 -2
- package/dist/cdn/HT7GHA35.js +0 -2
- package/dist/cdn/KADLGWSD.js +0 -2
- package/dist/cdn/KKZPWWJD.js +0 -2
- package/dist/cdn/L2GTZQR3.js +0 -2
- package/dist/cdn/LDJTNSDV.js +0 -2
- package/dist/cdn/LGEWD2WR.js +0 -2
- package/dist/cdn/LJ3OYEQH.js +0 -2
- package/dist/cdn/MA5ALGCB.js +0 -2
- package/dist/cdn/MJKFS4XN.js +0 -2
- package/dist/cdn/MKWABJD3.js +0 -2
- package/dist/cdn/MORH2SWC.js +0 -2
- package/dist/cdn/MTK3KBNV.js +0 -2
- package/dist/cdn/N4RZJQ3K.js +0 -2
- package/dist/cdn/NBWSLO2X.js +0 -2
- package/dist/cdn/NFZOHLUU.js +0 -2
- package/dist/cdn/NIPZWXTK.js +0 -2
- package/dist/cdn/NRDDB52R.js +0 -2
- package/dist/cdn/OATJDDUN.js +0 -2
- package/dist/cdn/OCAIF5AO.js +0 -2
- package/dist/cdn/ONPVEYDF.js +0 -2
- package/dist/cdn/OURWUBEA.js +0 -2
- package/dist/cdn/OV4LG7YB.js +0 -2
- package/dist/cdn/P6E54S7I.js +0 -2
- package/dist/cdn/PFBFXLY5.js +0 -2
- package/dist/cdn/PGJ33WXW.js +0 -2
- package/dist/cdn/PJ7JGCOT.js +0 -2
- package/dist/cdn/PM5LDKID.js +0 -2
- package/dist/cdn/PPCTIFU7.js +0 -2
- package/dist/cdn/Q2L6GYNG.js +0 -2
- package/dist/cdn/Q2NLDLBD.js +0 -2
- package/dist/cdn/Q44CAISJ.js +0 -2
- package/dist/cdn/QCTIQQGR.js +0 -2
- package/dist/cdn/QEGNJX47.js +0 -2
- package/dist/cdn/QIOX3N62.js +0 -2
- package/dist/cdn/QM2EZYTR.js +0 -2
- package/dist/cdn/QWGRJXMJ.js +0 -2
- package/dist/cdn/RHUYTUBN.js +0 -2
- package/dist/cdn/RKRK4RZK.js +0 -2
- package/dist/cdn/RXVSZC7X.js +0 -2
- package/dist/cdn/SO222KR7.js +0 -2
- package/dist/cdn/SY7A27CA.js +0 -2
- package/dist/cdn/T2VHRNVK.js +0 -2
- package/dist/cdn/T4CQISFL.js +0 -2
- package/dist/cdn/TFY4AZ4H.js +0 -2
- package/dist/cdn/TODF5AAG.js +0 -2
- package/dist/cdn/UFTNE4L5.js +0 -2
- package/dist/cdn/UQWE2VAF.js +0 -2
- package/dist/cdn/URPDRW7E.js +0 -2
- package/dist/cdn/VDJS5HED.js +0 -2
- package/dist/cdn/VZ2WOVER.js +0 -2
- package/dist/cdn/WSJB5HRN.js +0 -2
- package/dist/cdn/XK5X6LPF.js +0 -2
- package/dist/cdn/XWM3FFCD.js +0 -2
- package/dist/cdn/YCKXSWRC.js +0 -2
- package/dist/cdn/YKGEHWMP.js +0 -2
- package/dist/cdn/ZM42WAYM.js +0 -2
- package/dist/cdn/ZTRZLDAL.js +0 -2
- package/dist/chunks/useInlineEditable.js +0 -53
package/dist/chunks/manager.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { makeGenericController } from "@arcgis/lumina/controllers";
|
|
3
|
-
import { q as queryElementRoots,
|
|
3
|
+
import { q as queryElementRoots, m as getShadowRootNode, h as isPrimaryPointerButton, o as isKeyboardTriggeredClick } from "./dom.js";
|
|
4
4
|
import { l as logger } from "./runtime.js";
|
|
5
5
|
import { i as isActivationKey } from "./key.js";
|
|
6
6
|
import { t as toAriaBoolean } from "./aria.js";
|
|
@@ -68,7 +68,7 @@ const useReferenceElement = (options) => {
|
|
|
68
68
|
if (changes.has("referenceEl")) {
|
|
69
69
|
unregisterReferenceElement(changes.get("referenceEl"));
|
|
70
70
|
registerReferenceElement(component.referenceEl);
|
|
71
|
-
} else if (changes.has("open")) {
|
|
71
|
+
} else if (changes.has("open") || changes.has("triggerDisabled")) {
|
|
72
72
|
manager.updateElement(component, component.referenceEl);
|
|
73
73
|
}
|
|
74
74
|
});
|
|
@@ -115,6 +115,8 @@ function isDrag({
|
|
|
115
115
|
}
|
|
116
116
|
const referenceElementManager = (options) => {
|
|
117
117
|
const registeredElements = /* @__PURE__ */ new Map();
|
|
118
|
+
const registeredAriaControls = /* @__PURE__ */ new WeakMap();
|
|
119
|
+
const registeredAriaExpanded = /* @__PURE__ */ new WeakSet();
|
|
118
120
|
const registeredShadowRootCounts = /* @__PURE__ */ new WeakMap();
|
|
119
121
|
let activeComponents = null;
|
|
120
122
|
let clickedComponents = null;
|
|
@@ -381,14 +383,53 @@ const referenceElementManager = (options) => {
|
|
|
381
383
|
}
|
|
382
384
|
toggleFocusedComponents(components, true);
|
|
383
385
|
};
|
|
386
|
+
const updateAriaExpanded = (referenceEl, components) => {
|
|
387
|
+
if (!("ariaExpanded" in referenceEl)) {
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
const enabledComponents = components.filter((component) => !component.triggerDisabled);
|
|
391
|
+
if (enabledComponents.length) {
|
|
392
|
+
referenceEl.ariaExpanded = toAriaBoolean(enabledComponents.some((component) => component.open));
|
|
393
|
+
registeredAriaExpanded.add(referenceEl);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
if (registeredAriaExpanded.has(referenceEl)) {
|
|
397
|
+
referenceEl.ariaExpanded = null;
|
|
398
|
+
registeredAriaExpanded.delete(referenceEl);
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
const updateAriaControls = (referenceEl, component, registerComponent = !component.triggerDisabled) => {
|
|
402
|
+
if (!("ariaControlsElements" in referenceEl)) {
|
|
403
|
+
return;
|
|
404
|
+
}
|
|
405
|
+
const currentElements = referenceEl.ariaControlsElements ?? [];
|
|
406
|
+
const componentIsRegistered = currentElements.includes(component.el);
|
|
407
|
+
const registeredComponents = registeredAriaControls.get(referenceEl);
|
|
408
|
+
if (!registerComponent) {
|
|
409
|
+
if (!registeredComponents?.has(component)) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
const updatedElements = currentElements.filter((element) => element !== component.el);
|
|
413
|
+
referenceEl.ariaControlsElements = updatedElements.length > 0 ? updatedElements : null;
|
|
414
|
+
registeredComponents?.delete(component);
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
if (!componentIsRegistered) {
|
|
418
|
+
referenceEl.ariaControlsElements = [...currentElements, component.el];
|
|
419
|
+
if (!registeredComponents) {
|
|
420
|
+
registeredAriaControls.set(referenceEl, new WeakSet([component]));
|
|
421
|
+
} else {
|
|
422
|
+
registeredComponents.add(component);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
};
|
|
384
426
|
const updateElement = (component, referenceEl) => {
|
|
385
427
|
if (!referenceEl || !component.referenceElementType) {
|
|
386
428
|
return;
|
|
387
429
|
}
|
|
388
|
-
if (options.click
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
referenceEl.ariaExpanded = toAriaBoolean(component.open || existingComponentOpen);
|
|
430
|
+
if (options.click) {
|
|
431
|
+
updateAriaControls(referenceEl, component);
|
|
432
|
+
updateAriaExpanded(referenceEl, registeredElements.get(referenceEl) ?? []);
|
|
392
433
|
}
|
|
393
434
|
};
|
|
394
435
|
const addShadowListeners = (shadowRoot) => {
|
|
@@ -426,13 +467,6 @@ const referenceElementManager = (options) => {
|
|
|
426
467
|
if (existingComponents.includes(component)) {
|
|
427
468
|
return;
|
|
428
469
|
}
|
|
429
|
-
if (options.click && "ariaControlsElements" in referenceEl) {
|
|
430
|
-
const currentElements = referenceEl.ariaControlsElements ?? [];
|
|
431
|
-
if (!currentElements.includes(component.el)) {
|
|
432
|
-
const updatedElements = [...currentElements, component.el];
|
|
433
|
-
referenceEl.ariaControlsElements = updatedElements;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
470
|
if (options.hover && "ariaDescribedByElements" in referenceEl) {
|
|
437
471
|
const currentElements = referenceEl.ariaDescribedByElements ?? [];
|
|
438
472
|
if (!currentElements.includes(component.el)) {
|
|
@@ -476,18 +510,9 @@ const referenceElementManager = (options) => {
|
|
|
476
510
|
removeListeners();
|
|
477
511
|
clearHoverTimeout();
|
|
478
512
|
}
|
|
479
|
-
if (options.click
|
|
480
|
-
|
|
481
|
-
referenceEl
|
|
482
|
-
}
|
|
483
|
-
if (options.click && "ariaExpanded" in referenceEl) {
|
|
484
|
-
const hasRegisteredComponents = (updatedComponents?.length ?? 0) > 0;
|
|
485
|
-
if (hasRegisteredComponents) {
|
|
486
|
-
const existingComponentOpen = updatedComponents?.some((component2) => component2.open) ?? false;
|
|
487
|
-
referenceEl.ariaExpanded = toAriaBoolean(existingComponentOpen);
|
|
488
|
-
} else {
|
|
489
|
-
referenceEl.ariaExpanded = null;
|
|
490
|
-
}
|
|
513
|
+
if (options.click) {
|
|
514
|
+
updateAriaControls(referenceEl, component, false);
|
|
515
|
+
updateAriaExpanded(referenceEl, updatedComponents);
|
|
491
516
|
}
|
|
492
517
|
if (options.hover && "ariaDescribedByElements" in referenceEl) {
|
|
493
518
|
const newElements = (referenceEl.ariaDescribedByElements ?? []).filter((element) => element !== component.el);
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -106,9 +106,9 @@ function getConfig() {
|
|
|
106
106
|
}
|
|
107
107
|
return effectiveConfig;
|
|
108
108
|
}
|
|
109
|
-
const version = "5.2.0-next.
|
|
110
|
-
const buildDate = "2026-09-
|
|
111
|
-
const revision = "
|
|
109
|
+
const version = "5.2.0-next.72";
|
|
110
|
+
const buildDate = "2026-09-11";
|
|
111
|
+
const revision = "a0c242a65";
|
|
112
112
|
function stampVersion() {
|
|
113
113
|
const config = getConfig();
|
|
114
114
|
if (config && config.version) {
|
|
@@ -131,7 +131,7 @@ if (!isServer) {
|
|
|
131
131
|
if (process.env.NODE_ENV !== "test") {
|
|
132
132
|
queueMicrotask(stampVersion);
|
|
133
133
|
}
|
|
134
|
-
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.
|
|
134
|
+
const runtime = makeRuntime({ defaultAssetPath: "https://cdn.jsdelivr.net/npm/@esri/calcite-components@5.2.0-next.72/dist/cdn/", hydratedAttribute: "calcite-hydrated" });
|
|
135
135
|
const originalSetAssetPath = runtime.setAssetPath;
|
|
136
136
|
runtime.setAssetPath = (path) => {
|
|
137
137
|
assetPathChanged = true;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { safeClassMap } from "@arcgis/lumina";
|
|
3
|
+
import { nothing, html } from "lit";
|
|
4
|
+
import { ref } from "lit/directives/ref.js";
|
|
5
|
+
const CSS = {
|
|
6
|
+
container: "inline-edit--container",
|
|
7
|
+
enableEditing: "enable-editing",
|
|
8
|
+
confirmChanges: "confirm-changes",
|
|
9
|
+
cancelEditing: "cancel-editing"
|
|
10
|
+
};
|
|
11
|
+
const InlineEditControls = ({ cancelEditingLabel, confirmChangesLabel, inlineEditing, enableEditingLabel, enableEditingButtonRef, loading, onCancelEditing, onConfirmChanges, onEnableEditing, scale, showControls }) => html`<div class=${safeClassMap(CSS.container)}>${!inlineEditing && html`<calcite-action .ariaLabel=${enableEditingLabel} class=${safeClassMap(CSS.enableEditing)} icon=pencil @click=${onEnableEditing} .scale=${scale} .text=${enableEditingLabel} title=${enableEditingLabel ?? nothing} type=button ${ref(enableEditingButtonRef)}></calcite-action>` || ""}${showControls && [
|
|
12
|
+
html`<calcite-action .ariaLabel=${confirmChangesLabel} class=${safeClassMap(CSS.confirmChanges)} .disabled=${loading} icon=check .loading=${loading} @click=${onConfirmChanges} .scale=${scale} .text=${confirmChangesLabel} title=${confirmChangesLabel ?? nothing} type=button></calcite-action>`,
|
|
13
|
+
html`<calcite-action .ariaLabel=${cancelEditingLabel} class=${safeClassMap(CSS.cancelEditing)} .disabled=${loading} icon=x @click=${onCancelEditing} .scale=${scale} .text=${cancelEditingLabel} title=${cancelEditingLabel ?? nothing} type=button></calcite-action>`
|
|
14
|
+
] || ""}</div>`;
|
|
15
|
+
class UseInlineEdit {
|
|
16
|
+
constructor(options) {
|
|
17
|
+
this.options = options;
|
|
18
|
+
this.valuePriorToEditing = "";
|
|
19
|
+
}
|
|
20
|
+
enable() {
|
|
21
|
+
this.valuePriorToEditing = this.options.getValue();
|
|
22
|
+
this.options.setInlineEditing(true);
|
|
23
|
+
requestAnimationFrame(() => {
|
|
24
|
+
this.options.setFocus();
|
|
25
|
+
});
|
|
26
|
+
this.options.emitEnableEditingChange();
|
|
27
|
+
}
|
|
28
|
+
disable() {
|
|
29
|
+
this.options.setInlineEditing(false);
|
|
30
|
+
}
|
|
31
|
+
cancelEditing() {
|
|
32
|
+
this.options.restoreValue(this.valuePriorToEditing);
|
|
33
|
+
this.disable();
|
|
34
|
+
this.options.emitCancel();
|
|
35
|
+
this.options.emitEnableEditingChange();
|
|
36
|
+
}
|
|
37
|
+
async confirm(confirm, setLoading) {
|
|
38
|
+
if (confirm) {
|
|
39
|
+
setLoading?.(true);
|
|
40
|
+
try {
|
|
41
|
+
await confirm();
|
|
42
|
+
} finally {
|
|
43
|
+
setLoading?.(false);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
this.options.commitValue();
|
|
47
|
+
this.disable();
|
|
48
|
+
this.options.emitConfirm();
|
|
49
|
+
this.options.emitEnableEditingChange();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const inlineEditConverter = {
|
|
53
|
+
fromAttribute(value) {
|
|
54
|
+
return value === null ? false : value === "controls-disabled" ? value : true;
|
|
55
|
+
},
|
|
56
|
+
toAttribute(value) {
|
|
57
|
+
return value === false ? null : value === true ? "" : value;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
CSS as C,
|
|
62
|
+
InlineEditControls as I,
|
|
63
|
+
UseInlineEdit as U,
|
|
64
|
+
inlineEditConverter as i
|
|
65
|
+
};
|
|
@@ -4,11 +4,6 @@ import type { Appearance, Position, IconType, Scale, SelectionMode } from "../ty
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated in v5.2.0, removal target v7.0.0 - Use the `calcite-block-group` component instead.
|
|
7
|
-
* @cssproperty [--calcite-accordion-border-color] - Specifies the component's border color.
|
|
8
|
-
* @cssproperty [--calcite-accordion-background-color] - Specifies the component's background color.
|
|
9
|
-
* @cssproperty [--calcite-accordion-text-color] - Specifies the component's text color.
|
|
10
|
-
* @cssproperty [--calcite-accordion-text-color-hover] - Specifies the component's main text color on hover.
|
|
11
|
-
* @cssproperty [--calcite-accordion-text-color-press] - Specifies the component's main text color when pressed.
|
|
12
7
|
* @slot - A slot for adding `calcite-accordion-item`s. `calcite-accordion` cannot be nested, however `calcite-accordion-item`s can.
|
|
13
8
|
*/
|
|
14
9
|
export abstract class Accordion extends LitElement {
|
|
@@ -6,24 +6,6 @@ import type { HeadingLevel } from "../functional/Heading.js";
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated in v5.2.0, removal target v7.0.0 - Use the `calcite-block` component instead.
|
|
9
|
-
* @cssproperty [--calcite-accordion-border-color] - Specifies the component's border color.
|
|
10
|
-
* @cssproperty [--calcite-accordion-background-color] - Specifies the component's background color.
|
|
11
|
-
* @cssproperty [--calcite-accordion-text-color] - Specifies the component's text color.
|
|
12
|
-
* @cssproperty [--calcite-accordion-text-color-hover] - Specifies the component's main text color on hover.
|
|
13
|
-
* @cssproperty [--calcite-accordion-text-color-press] - Specifies the component's main text color when pressed.
|
|
14
|
-
* @cssproperty [--calcite-accordion-item-background-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-background-color` instead. Specifies the component's background color.
|
|
15
|
-
* @cssproperty [--calcite-accordion-item-border-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-border-color` instead. Specifies the component's border color.
|
|
16
|
-
* @cssproperty [--calcite-accordion-item-content-space] - Specifies the component's padding.
|
|
17
|
-
* @cssproperty [--calcite-accordion-item-end-icon-color] - Specifies the component's `iconEnd` color. Falls back to `--calcite-accordion-item-icon-color` or current color.
|
|
18
|
-
* @cssproperty [--calcite-accordion-item-expand-icon-color] - Specifies the component's expand icon color.
|
|
19
|
-
* @cssproperty [--calcite-accordion-item-header-background-color] - Specifies the component's `heading` background color.
|
|
20
|
-
* @cssproperty [--calcite-accordion-item-header-background-color-hover] - Specifies the component's `heading` background color when hovered.
|
|
21
|
-
* @cssproperty [--calcite-accordion-item-header-background-color-press] - Specifies the component's `heading` background color when pressed.
|
|
22
|
-
* @cssproperty [--calcite-accordion-item-heading-text-color] - Specifies the component's `heading` text color.
|
|
23
|
-
* @cssproperty [--calcite-accordion-item-icon-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-icon-color` instead. Specifies the component's default icon color.
|
|
24
|
-
* @cssproperty [--calcite-accordion-item-start-icon-color] - Specifies the component's `iconStart` color. Falls back to `--calcite-accordion-item-icon-color` or current color.
|
|
25
|
-
* @cssproperty [--calcite-accordion-item-text-color] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-text-color` instead. Specifies the component's text color.
|
|
26
|
-
* @cssproperty [--calcite-accordion-item-text-color-hover] - [Deprecated] in v3.1.0, removal target v6.0.0 - Use `--calcite-accordion-text-color-hover` instead. Specifies the component's text color on hover.
|
|
27
9
|
* @slot - A slot for adding custom content, including nested `calcite-accordion-item`s.
|
|
28
10
|
* @slot [actions-end] - A slot for adding `calcite-action`s or content to the end side of the component's header.
|
|
29
11
|
* @slot [actions-start] - A slot for adding `calcite-action`s or content to the start side of the component's header.
|
|
@@ -3,23 +3,7 @@ import type { PublicLitElement as LitElement, LuminaJsx } from "@arcgis/lumina";
|
|
|
3
3
|
import type { Alignment, Appearance, AriaAttributesCamelCased, Scale } from "../types.js";
|
|
4
4
|
import type { IconName } from "../calcite-icon/types.js";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* @cssproperty [--calcite-action-background-color-hover] - Specifies the component's background color when hovered.
|
|
8
|
-
* @cssproperty [--calcite-action-background-color-press] - Specifies the component's background color when active.
|
|
9
|
-
* @cssproperty [--calcite-action-background-color-pressed] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-background-color-press` instead. Specifies the component's background color when active.
|
|
10
|
-
* @cssproperty [--calcite-action-background-color] - Specifies the component's background color.
|
|
11
|
-
* @cssproperty [--calcite-action-corner-radius-end-end] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius end end.
|
|
12
|
-
* @cssproperty [--calcite-action-corner-radius-end-start] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius end start.
|
|
13
|
-
* @cssproperty [--calcite-action-corner-radius-start-end] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius start end.
|
|
14
|
-
* @cssproperty [--calcite-action-corner-radius-start-start] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-corner-radius` instead. Specifies the component's corner radius start start.
|
|
15
|
-
* @cssproperty [--calcite-action-corner-radius] - Specifies the component's corner radius.
|
|
16
|
-
* @cssproperty [--calcite-action-indicator-color] - Specifies the component's indicator color.
|
|
17
|
-
* @cssproperty [--calcite-action-text-color-press] - Specifies the component's text color when pressed or hovered.
|
|
18
|
-
* @cssproperty [--calcite-action-text-color-pressed] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-action-text-color-press` instead. Specifies the component's text color when hovered.
|
|
19
|
-
* @cssproperty [--calcite-action-text-color] - Specifies the component's text color.
|
|
20
|
-
* @cssproperty [--calcite-action-loader-color] - Specifies the component's loader color.
|
|
21
|
-
* @slot - A slot for adding non-interactive content, such as a `calcite-icon`.
|
|
22
|
-
*/
|
|
6
|
+
/** @slot - A slot for adding non-interactive content, such as a `calcite-icon`. */
|
|
23
7
|
export abstract class Action extends LitElement {
|
|
24
8
|
/**
|
|
25
9
|
* When `true`, the component is highlighted.
|
|
@@ -12,6 +12,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
12
12
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
13
13
|
import { u as useFormTrigger } from "../../chunks/useFormTrigger.js";
|
|
14
14
|
import { I as IDS, C as CSS } from "../../chunks/resources4.js";
|
|
15
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
15
16
|
const styles$1 = 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]){--calcite-internal-action-font-size: var(--calcite-font-size--2);--calcite-internal-action-min-height: var(--calcite-size-sm);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-action-font-size: var(--calcite-font-size--1);--calcite-internal-action-min-height: var(--calcite-size-md);--calcite-internal-action-line-height: 1rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm)}:host([scale=l]){--calcite-internal-action-font-size: var(--calcite-font-size-0);--calcite-internal-action-min-height: var(--calcite-size-lg);--calcite-internal-action-line-height: 1.25rem;--calcite-internal-action-spacing: var(--calcite-spacing-sm-plus)}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3);border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius-xs)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius-xs)))}.interaction-container{border-radius:inherit}:host([width=full]){flex:1 0 auto}:host([width=full]) .button{justify-content:center}:host([width=full]) .button .text-container--visible{flex:none}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;outline-color:transparent;box-sizing:border-box;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));border-radius:inherit;color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));cursor:inherit;flex:1 0 auto;font-family:inherit;font-size:var(--calcite-internal-action-font-size);font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-internal-action-line-height);min-block-size:var(--calcite-internal-action-height, var(--calcite-internal-action-min-height));max-block-size:var(--calcite-internal-action-height, none);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-internal-action-spacing));padding-inline:var(--calcite-internal-action-padding-inline, var(--calcite-internal-action-spacing));text-align:start}.button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.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(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.button--text-visible{gap:var(--calcite-internal-action-spacing);inline-size:100%}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition-property:opacity;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-3));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}:host([active]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-3))}:host([active]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) calcite-loader[inline]{margin-inline-end:0px;--calcite-loader-progress-color-inline: var(--calcite-action-loader-color)}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([appearance=transparent]) .button{transition-property:box-shadow;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);background-color:var(--calcite-action-background-color, var(--calcite-color-transparent))}:host([appearance=transparent]) .button:hover{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-transparent-hover))}:host([appearance=transparent]) .button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-transparent-press)))}:host([selection-appearance=highlight]):host([active]) .button{background-color:var(--calcite-color-surface-highlight);color:var(--calcite-color-text-highlight)}:host([active-descendant]) .button{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))))}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}:host([scale=s]) .indicator-with-icon{position:relative}:host([scale=s]) .indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.125rem;inset-inline-end:-.125rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([scale=s]) .indicator-without-icon{position:relative}:host([scale=s]) .indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.175rem;inset-inline-end:-.175rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand));block-size:.375rem;inline-size:.375rem}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
|
|
16
17
|
const styles = css`.screen-reader-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}`;
|
|
17
18
|
class Action extends LitElement {
|
|
@@ -117,9 +118,9 @@ class Action extends LitElement {
|
|
|
117
118
|
...internalControlsElements
|
|
118
119
|
];
|
|
119
120
|
if (this.dragHandle) {
|
|
120
|
-
return html`<span .ariaBusy=${loading} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} id=${buttonId ?? nothing} role=button tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</span>`;
|
|
121
|
+
return html`<span .ariaBusy=${toAriaBoolean(loading, void 0)} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} id=${buttonId ?? nothing} role=button tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</span>`;
|
|
121
122
|
}
|
|
122
|
-
return html`<button .ariaBusy=${loading} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} .disabled=${disabled} id=${buttonId ?? nothing} .role=${this.aria?.role} type=${this.type ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</button>`;
|
|
123
|
+
return html`<button .ariaBusy=${toAriaBoolean(loading, void 0)} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} .disabled=${disabled} id=${buttonId ?? nothing} .role=${this.aria?.role} type=${this.type ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</button>`;
|
|
123
124
|
}
|
|
124
125
|
render() {
|
|
125
126
|
return this.interactiveContainer({ disabled: this.disabled, children: html`${this.renderButton()}${this.renderIndicatorText()}` });
|
|
@@ -4,11 +4,6 @@ import type { Layout, Position, Scale, SelectionAppearance } from "../types.js";
|
|
|
4
4
|
import type { OverlayPositioning } from "../../utils/floating-ui.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @cssproperty [--calcite-action-bar-background-color] - Specifies the component's background color.
|
|
8
|
-
* @cssproperty [--calcite-action-bar-corner-radius] - Specifies the component's border radius when `floating` is `true`.
|
|
9
|
-
* @cssproperty [--calcite-action-bar-expanded-max-width] - When `layout` is `"vertical"`, specifies the component's maximum width.
|
|
10
|
-
* @cssproperty [--calcite-action-bar-items-space] - Specifies the space between slotted components in the component.
|
|
11
|
-
* @cssproperty [--calcite-action-bar-shadow] - Specifies the component's shadow when `floating` is `true`.
|
|
12
7
|
* @slot - A slot for adding `calcite-action`s that will appear at the top of the component.
|
|
13
8
|
* @slot [actions-end] - A slot for adding `calcite-action`s that will appear at the end of the component, prior to the collapse/expand button.
|
|
14
9
|
* @slot [actions-start] - A slot for adding `calcite-action`s that will appear at the start of the component. When `expandPosition` is `"start"`, actions in this slot will render after the collapse/expand button.
|
|
@@ -5,7 +5,7 @@ import { css, html, nothing } 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 { l as getStylePixelValue, C as filterDirectChildren, b as slotChangeGetAssignedElements, a as getSlotAssignedElements, e as focusElementInGroup } from "../../chunks/dom.js";
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { t as toggleActionBarChildActionText, E as ExpandToggle } from "../../chunks/ExpandToggle.js";
|
|
11
11
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -6,10 +6,6 @@ import type { Action } from "../calcite-action/customElement.js";
|
|
|
6
6
|
import type { Columns } from "./types.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* @cssproperty [--calcite-action-background-color] - Specifies the component's background color.
|
|
10
|
-
* @cssproperty [--calcite-action-group-border-color] - Specifies the component's border color when used in a `calcite-action-bar` or `calcite-action-menu`.
|
|
11
|
-
* @cssproperty [--calcite-action-group-columns] - When `layout` is `"grid"`, specifies the component's `grid-template-columns`.
|
|
12
|
-
* @cssproperty [--calcite-action-group-gap] - When `layout` is `"grid"`, specifies the component's gap.
|
|
13
9
|
* @slot - A slot for adding `calcite-action`s.
|
|
14
10
|
* @slot [menu-actions] - A slot for adding an overflow menu with `calcite-action`s inside a `calcite-dropdown`.
|
|
15
11
|
* @slot [menu-tooltip] - A slot for adding a `calcite-tooltip` for the menu.
|
|
@@ -5,7 +5,6 @@ import type { Appearance, Scale } from "../types.js";
|
|
|
5
5
|
import type { Action } from "../calcite-action/customElement.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @cssproperty [--calcite-action-menu-items-space] - Specifies the space between actions in the menu.
|
|
9
8
|
* @slot - A slot for adding `calcite-action`s.
|
|
10
9
|
* @slot [trigger] - A slot for adding a `calcite-action` to trigger opening the menu.
|
|
11
10
|
* @slot [tooltip] - A slot for adding a tooltip for the menu.
|
|
@@ -5,9 +5,6 @@ import type { OverlayPositioning } from "../../utils/floating-ui.js";
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated in v5.0.0, removal target v6.0.0 - Use the `calcite-action-bar` component instead.
|
|
8
|
-
* @cssproperty [--calcite-action-pad-corner-radius] - Specifies the component's border radius.
|
|
9
|
-
* @cssproperty [--calcite-action-pad-expanded-max-width] - When `expanded` and `layout` is `"vertical"`, specifies the component's maximum width.
|
|
10
|
-
* @cssproperty [--calcite-action-pad-items-space] - Specifies the component's space between slotted components.
|
|
11
8
|
* @slot - A slot for adding `calcite-action`s to the component.
|
|
12
9
|
* @slot [expand-tooltip] - A slot to set the `calcite-tooltip` for the expand toggle.
|
|
13
10
|
*/
|
|
@@ -3,7 +3,7 @@ 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 { b as slotChangeGetAssignedElements,
|
|
6
|
+
import { b as slotChangeGetAssignedElements, e 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,11 +10,6 @@ import type { AlertDuration, AlertQueue } from "./types.js";
|
|
|
10
10
|
* Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
|
|
11
11
|
* at the bottom of the page. Multiple opened alerts will be added to a queue, allowing users to dismiss them in the order they are provided.
|
|
12
12
|
*
|
|
13
|
-
* @cssproperty [--calcite-alert-width] - Specifies the component's width.
|
|
14
|
-
* @cssproperty [--calcite-alert-background-color] - Specifies the component's background color.
|
|
15
|
-
* @cssproperty [--calcite-alert-corner-radius] - Specifies the component's corner radius.
|
|
16
|
-
* @cssproperty [--calcite-alert-shadow] - Specifies the component's shadow.
|
|
17
|
-
* @cssproperty [--calcite-alert-offset-size] - Specifies the component's `placement` offset.
|
|
18
13
|
* @slot [title] - A slot for adding a title to the component.
|
|
19
14
|
* @slot [message] - A slot for adding main text to the component.
|
|
20
15
|
* @slot [link] - A slot for adding a `calcite-action` to take from the component such as: "undo", "try again", "link to page", etc.
|
|
@@ -5,29 +5,6 @@ import type { Alignment, Scale, Status } from "../types.js";
|
|
|
5
5
|
import type { IconName } from "../calcite-icon/types.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @cssproperty [--calcite-autocomplete-background-color] - Specifies the component's background color.
|
|
9
|
-
* @cssproperty [--calcite-autocomplete-corner-radius] - Specifies the component's corner radius.
|
|
10
|
-
* @cssproperty [--calcite-autocomplete-text-color] - Specifies the component's text color.
|
|
11
|
-
* @cssproperty [--calcite-autocomplete-menu-max-size-y] - Specifies the maximum height of the component's menu.
|
|
12
|
-
* @cssproperty [--calcite-autocomplete-input-prefix-size] - Specifies the input's prefix width, when present.
|
|
13
|
-
* @cssproperty [--calcite-autocomplete-input-suffix-size] - Specifies the input's suffix width, when present.
|
|
14
|
-
* @cssproperty [--calcite-autocomplete-input-background-color] - Specifies the background color of the component's input.
|
|
15
|
-
* @cssproperty [--calcite-autocomplete-input-border-color] - Specifies the border color of the component's input.
|
|
16
|
-
* @cssproperty [--calcite-autocomplete-input-corner-radius] - Specifies the corner radius of the component's input.
|
|
17
|
-
* @cssproperty [--calcite-autocomplete-input-shadow] - Specifies the shadow of the component's input.
|
|
18
|
-
* @cssproperty [--calcite-autocomplete-input-icon-color] - Specifies the icon color of the component's input.
|
|
19
|
-
* @cssproperty [--calcite-autocomplete-input-text-color] - Specifies the text color of the component's input.
|
|
20
|
-
* @cssproperty [--calcite-autocomplete-input-placeholder-text-color] - Specifies the placeholder text color of the component's input.
|
|
21
|
-
* @cssproperty [--calcite-autocomplete-input-actions-background-color] - Specifies the background color of the input's `clearable` element.
|
|
22
|
-
* @cssproperty [--calcite-autocomplete-input-actions-background-color-hover] - Specifies the background color of the input's `clearable` element when hovered.
|
|
23
|
-
* @cssproperty [--calcite-autocomplete-input-actions-background-color-press] - Specifies the background color of the input's `clearable` element when pressed.
|
|
24
|
-
* @cssproperty [--calcite-autocomplete-input-actions-icon-color] - Specifies the icon color of the input's `clearable` element.
|
|
25
|
-
* @cssproperty [--calcite-autocomplete-input-actions-icon-color-hover] - Specifies the icon color of the input's `clearable` element when hovered.
|
|
26
|
-
* @cssproperty [--calcite-autocomplete-input-actions-icon-color-press] - Specifies the icon color of the input's `clearable` element when pressed.
|
|
27
|
-
* @cssproperty [--calcite-autocomplete-input-loading-background-color] - Specifies the background color of the Input's `loading` element, when present.
|
|
28
|
-
* @cssproperty [--calcite-autocomplete-input-loading-fill-color] - Specifies the fill color of the Input's `loading` element, when present.
|
|
29
|
-
* @cssproperty [--calcite-autocomplete-input-prefix-text-color] - Specifies the text color of the Input's prefix, when present.
|
|
30
|
-
* @cssproperty [--calcite-autocomplete-input-suffix-text-color] - Specifies the text color of the Input's suffix, when present.
|
|
31
8
|
* @slot - A slot for adding `calcite-autocomplete-item` elements.
|
|
32
9
|
* @slot [content-bottom] - A slot for adding content below `calcite-autocomplete-item` elements.
|
|
33
10
|
* @slot [content-top] - A slot for adding content above `calcite-autocomplete-item` elements.
|
|
@@ -4,10 +4,6 @@ import type { FlipContext } from "../types.js";
|
|
|
4
4
|
import type { IconName } from "../calcite-icon/types.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @cssproperty [--calcite-autocomplete-background-color] - Specifies the component's background color.
|
|
8
|
-
* @cssproperty [--calcite-autocomplete-description-text-color] - Specifies the text color of the component's `description`.
|
|
9
|
-
* @cssproperty [--calcite-autocomplete-heading-text-color] - Specifies the text color of the component's `heading`.
|
|
10
|
-
* @cssproperty [--calcite-autocomplete-text-color] - Specifies the component's text color.
|
|
11
7
|
* @slot [content-end] - A slot for adding non-actionable elements after content of the component.
|
|
12
8
|
* @slot [content-start] - A slot for adding non-actionable elements before content of the component.
|
|
13
9
|
*/
|
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { AutocompleteItem } from "../calcite-autocomplete-item/customElement.js";
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @cssproperty [--calcite-autocomplete-background-color] - Specifies the component's background color.
|
|
7
|
-
* @cssproperty [--calcite-autocomplete-border-color] - Specifies the component's border color.
|
|
8
|
-
* @cssproperty [--calcite-autocomplete-text-color] - Specifies the component's text color.
|
|
9
|
-
* @slot - A slot for adding `calcite-autocomplete-item`s.
|
|
10
|
-
*/
|
|
5
|
+
/** @slot - A slot for adding `calcite-autocomplete-item`s. */
|
|
11
6
|
export abstract class AutocompleteItemGroup extends LitElement {
|
|
12
7
|
/**
|
|
13
8
|
* Specifies the component's heading text.
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { Scale } from "../types.js";
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @cssproperty [--calcite-avatar-corner-radius] - Specifies the component's corner radius.
|
|
7
|
-
* @cssproperty [--calcite-avatar-color] - Specifies the component's icon or initial color.
|
|
8
|
-
* @cssproperty [--calcite-avatar-background-color] - Specifies the component's background color.
|
|
9
|
-
*/
|
|
10
5
|
export abstract class Avatar extends LitElement {
|
|
11
6
|
/** Specifies the full name of the user. When `label` and `thumbnail` are not defined, specifies the accessible name for the component. */
|
|
12
7
|
accessor fullName: string | undefined;
|
|
@@ -7,23 +7,6 @@ import type { IconName } from "../calcite-icon/types.js";
|
|
|
7
7
|
import type { BlockToggleDisplay } from "./types.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @cssproperty [--calcite-block-border-color] - Specifies the component's border color.
|
|
11
|
-
* @cssproperty [--calcite-block-content-space] - Specifies the space of the component's `default` slot.
|
|
12
|
-
* @cssproperty [--calcite-block-background-color] - Specifies the component's background color.
|
|
13
|
-
* @cssproperty [--calcite-block-header-background-color] - [Deprecated] in v5.2.0, removal target v7.0.0 - Use `--calcite-block-background-color` instead. Specifies the component's `heading` background color.
|
|
14
|
-
* @cssproperty [--calcite-block-header-background-color-hover] - Specifies the component's `heading` background color when hovered.
|
|
15
|
-
* @cssproperty [--calcite-block-header-background-color-press] - Specifies the component's `heading` background color when pressed.
|
|
16
|
-
* @cssproperty [--calcite-block-heading-text-color] - Specifies the component's `heading` text color.
|
|
17
|
-
* @cssproperty [--calcite-block-heading-text-color-press] - [Deprecated] in v3.3.0, removal target v6.0.0 - Use `--calcite-block-heading-text-color` instead. When the component is `expanded`, specifies the `heading` text color.
|
|
18
|
-
* @cssproperty [--calcite-block-padding] - [Deprecated] in v3.3.0, removal target v6.0.0 - Use `--calcite-block-content-space` instead. Specifies the padding of the component's `default` slot.
|
|
19
|
-
* @cssproperty [--calcite-block-text-color] - [Deprecated] in v3.3.0, removal target v6.0.0 - Specifies the component's text color.
|
|
20
|
-
* @cssproperty [--calcite-block-description-text-color] - Specifies the component's `description` text color.
|
|
21
|
-
* @cssproperty [--calcite-block-icon-color] - [Deprecated] in v5.1.0, removal target v7.0.0 - Use `--calcite-block-collapsible-icon-color`, `--calcite-block-icon-start-color` and `--calcite-block-icon-end-color` instead. Specifies the component's `collapsible` icon, `iconStart` and `iconEnd` color.
|
|
22
|
-
* @cssproperty [--calcite-block-icon-color-hover] - [Deprecated] in v5.1.0, removal target v7.0.0 - Use `--calcite-block-collapsible-icon-color-hover` instead. Specifies the component's `collapsible` icon color when hovered.
|
|
23
|
-
* @cssproperty [--calcite-block-icon-start-color] - Specifies the component's `iconStart` color.
|
|
24
|
-
* @cssproperty [--calcite-block-icon-end-color] - Specifies the component's `iconEnd` color.
|
|
25
|
-
* @cssproperty [--calcite-block-collapsible-icon-color] - Specifies the component's `collapsible` icon color.
|
|
26
|
-
* @cssproperty [--calcite-block-collapsible-icon-color-hover] - Specifies the component's `collapsible` icon color when hovered.
|
|
27
10
|
* @slot - A slot for adding custom content.
|
|
28
11
|
* @slot [actions-end] - A slot for adding actionable `calcite-action` elements after the content of the component. It is recommended to use two or fewer actions.
|
|
29
12
|
* @slot [content-end] - A slot for adding non-actionable elements after the component's header text.
|
|
@@ -4,7 +4,7 @@ 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, b as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
|
+
import { s as slotChangeHasAssignedElement, b as slotChangeGetAssignedElements, d as slotChangeHasTextContent } 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";
|
|
@@ -15,7 +15,8 @@ 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
17
|
import { C as CSS, I as ICONS, S as SLOTS, a as IDS } from "../../chunks/resources7.js";
|
|
18
|
-
|
|
18
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
19
|
+
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));background-color:var(--calcite-block-background-color, var(--calcite-color-foreground-1))}: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-expandable-icon-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-expandable-icon-color-hover, 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
20
|
class Block extends LitElement {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
@@ -189,7 +190,7 @@ class Block extends LitElement {
|
|
|
189
190
|
}
|
|
190
191
|
handleDefaultSlotChange(event) {
|
|
191
192
|
this.blockSectionChildren = slotChangeGetAssignedElements(event, "calcite-block-section");
|
|
192
|
-
this.hasContent = slotChangeHasAssignedElement(event);
|
|
193
|
+
this.hasContent = slotChangeHasTextContent(event) || slotChangeHasAssignedElement(event);
|
|
193
194
|
this.updateBlockSectionScale();
|
|
194
195
|
}
|
|
195
196
|
updateBlockSectionScale() {
|
|
@@ -247,7 +248,7 @@ class Block extends LitElement {
|
|
|
247
248
|
})} id=${IDS.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`;
|
|
248
249
|
const collapseIcon = expanded ? ICONS.expanded : ICONS.collapsed;
|
|
249
250
|
const headerNode = html`<div class=${safeClassMap(CSS.headerContainer)}>${this.dragHandle ? html`<calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${heading || label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle>` : null}${expandable ? html`<button aria-controls=${IDS.content} aria-describedby=${IDS.header} .ariaExpanded=${expandable ? expanded : void 0} class=${safeClassMap(CSS.toggle)} id=${IDS.toggle} @click=${this.onHeaderClick} title=${toggleLabel ?? nothing} type=button>${headerContent}<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}${this.toggleDisplay === "switch" ? html`<calcite-switch .checked=${expanded} .disabled=${this.disabled} inert .label=${toggleLabel} .scale=${this.scale}></calcite-switch>` : html`<calcite-icon class=${safeClassMap(CSS.toggleIcon)} .icon=${collapseIcon} .scale=${getIconScale(this.scale)}></calcite-icon>`}</div></button>` : headerContent}${iconEnd && !expandable ? html`<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}</div>` : !iconEnd && !expandable ? this.renderContentEnd() : null}<calcite-action-menu .flipPlacements=${menuFlipPlacements ?? ["top", "bottom"]} .hidden=${!this.hasMenuActions} .label=${messages.options} .overlayPositioning=${this.overlayPositioning} .placement=${menuPlacement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled}><slot name=${SLOTS.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;
|
|
250
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<article aria-label=${label ?? nothing} .ariaBusy=${loading} class=${safeClassMap({
|
|
251
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html`<article aria-label=${label ?? nothing} .ariaBusy=${toAriaBoolean(loading, void 0)} class=${safeClassMap({
|
|
251
252
|
[CSS.container]: true
|
|
252
253
|
})}>${headerNode}<section aria-labelledby=${IDS.toggle} class=${safeClassMap({
|
|
253
254
|
[CSS.content]: true,
|
|
@@ -12,6 +12,7 @@ import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
|
12
12
|
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
13
13
|
import { i as isTag } from "../../chunks/resources3.js";
|
|
14
14
|
import { i as isBlock } from "../../chunks/resources7.js";
|
|
15
|
+
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
15
16
|
const CSS = {
|
|
16
17
|
container: "container",
|
|
17
18
|
groupContainer: "group-container",
|
|
@@ -350,7 +351,7 @@ class BlockGroup extends LitElement {
|
|
|
350
351
|
}
|
|
351
352
|
render() {
|
|
352
353
|
const { loading, label } = this;
|
|
353
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap(CSS.container)}>${this.dragEnabled ? html`<span aria-live=assertive class=${safeClassMap(CSS.assistiveText)}>${this.assistiveText}</span>` : null}${loading ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} .loading=${loading}></calcite-scrim>` : null}<div .ariaBusy=${loading} .ariaLabel=${label || ""} class=${safeClassMap(CSS.groupContainer)} role=group><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>` });
|
|
354
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap(CSS.container)}>${this.dragEnabled ? html`<span aria-live=assertive class=${safeClassMap(CSS.assistiveText)}>${this.assistiveText}</span>` : null}${loading ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} .loading=${loading}></calcite-scrim>` : null}<div .ariaBusy=${toAriaBoolean(loading, void 0)} .ariaLabel=${label || ""} class=${safeClassMap(CSS.groupContainer)} role=group><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>` });
|
|
354
355
|
}
|
|
355
356
|
}
|
|
356
357
|
customElement("calcite-block-group", BlockGroup);
|
|
@@ -6,12 +6,6 @@ import type { BlockSectionToggleDisplay } from "./types.js";
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated in v5.2.0, removal target v7.0.0 - Use the `calcite-block` component instead.
|
|
9
|
-
* @cssproperty [--calcite-block-section-background-color] - Specifies the component's background color.
|
|
10
|
-
* @cssproperty [--calcite-block-section-border-color] - Specifies the component's border color. When `expanded`, applies to the component's bottom border.
|
|
11
|
-
* @cssproperty [--calcite-block-section-header-text-color] - Specifies the component's header text color.
|
|
12
|
-
* @cssproperty [--calcite-block-section-text-color] - Specifies the component's text color.
|
|
13
|
-
* @cssproperty [--calcite-block-section-text-color-hover] - Specifies the component's text color on hover.
|
|
14
|
-
* @cssproperty [--calcite-block-section-content-space] - Specifies the padding of the component's content in `default` slot.
|
|
15
9
|
* @slot - A slot for adding custom content.
|
|
16
10
|
*/
|
|
17
11
|
export abstract class BlockSection extends LitElement {
|