@esri/calcite-components 5.1.1 → 5.1.2-next.0
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/{WQCT4VLB.js → 22ZEEBHY.js} +1 -1
- package/dist/cdn/{Q56UST3A.js → 2E5VWP5F.js} +1 -1
- package/dist/cdn/{W57IL7KF.js → 2IH3A7XP.js} +1 -1
- package/dist/cdn/{G2G6FHMB.js → 35O6UEOL.js} +1 -1
- package/dist/cdn/{CM45J66U.js → 3DHLIYTZ.js} +1 -1
- package/dist/cdn/{Q4V5DVKS.js → 3LBQM6E5.js} +1 -1
- package/dist/cdn/{PM5MZR4Z.js → 3OUO73FE.js} +1 -1
- package/dist/cdn/3UQ52WEC.js +2 -0
- package/dist/cdn/{EQKCU4NC.js → 46QVRBZQ.js} +1 -1
- package/dist/cdn/{LKYA2H2B.js → 4DEE5DJG.js} +1 -1
- package/dist/cdn/{ID2LCYSN.js → 4ESXF6CD.js} +1 -1
- package/dist/cdn/4GINWH77.js +2 -0
- package/dist/cdn/{KJCVGOXF.js → 4GLWWIFB.js} +1 -1
- package/dist/cdn/55B3DHRL.js +2 -0
- package/dist/cdn/{TYQB2FN4.js → 5AIYVBUE.js} +1 -1
- package/dist/cdn/{KXD6O3ZI.js → 5GSQDOTM.js} +1 -1
- package/dist/cdn/{ECVX7SVS.js → 5JMEGSKG.js} +1 -1
- package/dist/cdn/{V3X47NBI.js → 5P6PZGTL.js} +1 -1
- package/dist/cdn/{TWVXE232.js → 5RKV22NY.js} +1 -1
- package/dist/cdn/{SW5TNX5V.js → 5XBX6MS4.js} +1 -1
- package/dist/cdn/{LOJBKHVF.js → 65AE3WDH.js} +1 -1
- package/dist/cdn/{ALLL4LZ4.js → 6DMJVTU7.js} +1 -1
- package/dist/cdn/7CPR7ZY6.js +2 -0
- package/dist/cdn/{U7OJQ4EC.js → 7LJPLUHO.js} +1 -1
- package/dist/cdn/{COXLBEPM.js → 7Q7ZAE37.js} +1 -1
- package/dist/cdn/{VDJMOKVP.js → 7S7I3ZX6.js} +1 -1
- package/dist/cdn/{47Q2AE5B.js → 7TIC7MWH.js} +1 -1
- package/dist/cdn/{ND7KY7GE.js → AE6WIDBA.js} +1 -1
- package/dist/cdn/ANR6MBC5.js +2 -0
- package/dist/cdn/AQZ7H27V.js +2 -0
- package/dist/cdn/AUY3K2CK.js +2 -0
- package/dist/cdn/B2ZOCHY5.js +2 -0
- package/dist/cdn/{KCN4PBFZ.js → B74ZW4VM.js} +1 -1
- package/dist/cdn/BSFLNK3G.js +2 -0
- package/dist/cdn/BX7JMSW4.js +2 -0
- package/dist/cdn/{TTCZVBEF.js → BXUDOEEY.js} +1 -1
- package/dist/cdn/{KLNQGCK2.js → BZW75APA.js} +1 -1
- package/dist/cdn/CCMLFJRX.js +2 -0
- package/dist/cdn/{TVYIJRI2.js → CHVYZBJP.js} +1 -1
- package/dist/cdn/{5X2CR2NN.js → CQMH7FNX.js} +1 -1
- package/dist/cdn/{MW5MGBT4.js → D5RB7ITG.js} +1 -1
- package/dist/cdn/{YHAJICJ2.js → D7WOEWO3.js} +1 -1
- package/dist/cdn/DAUDD3TU.js +2 -0
- package/dist/cdn/{PB3LTBSS.js → DH7CVA3S.js} +1 -1
- package/dist/cdn/{IEWVQCQW.js → DIVK7SUE.js} +1 -1
- package/dist/cdn/{4NUFBGFK.js → DUFMSJ4N.js} +1 -1
- package/dist/cdn/{CDNETLLO.js → DVG3NA3H.js} +1 -1
- package/dist/cdn/{34ENIUR5.js → DZ2ML6RL.js} +1 -1
- package/dist/cdn/{S2BIRHQ7.js → E274U5KY.js} +1 -1
- package/dist/cdn/{NBAYHB3K.js → E5KOELX6.js} +1 -1
- package/dist/cdn/{E7GXKIIO.js → EBDWLL34.js} +1 -1
- package/dist/cdn/{3KWJQXAT.js → EH5Y2TRK.js} +1 -1
- package/dist/cdn/{HA65OOQD.js → FA5NVFJF.js} +1 -1
- package/dist/cdn/{IMUM436K.js → FPSAFKXP.js} +1 -1
- package/dist/cdn/{NTD2BJWG.js → FQTCAXYA.js} +1 -1
- package/dist/cdn/{3RRY5HHA.js → FQZZCTBU.js} +1 -1
- package/dist/cdn/FR5GKBKS.js +2 -0
- package/dist/cdn/{GTH6QFMV.js → FTH3OHTR.js} +1 -1
- package/dist/cdn/{QEJBAQOY.js → GA2SRL7F.js} +1 -1
- package/dist/cdn/{SNY2QKQJ.js → GCCKUDLZ.js} +1 -1
- package/dist/cdn/{2J4U5E4U.js → GFJSIQAL.js} +1 -1
- package/dist/cdn/{WER7FADP.js → GQV6EPVW.js} +1 -1
- package/dist/cdn/{5O6YGOJE.js → GUYWR6OU.js} +1 -1
- package/dist/cdn/{4UHTWXNV.js → GVPG6GL6.js} +1 -1
- package/dist/cdn/{ST6WRTR2.js → H5OQUUCS.js} +1 -1
- package/dist/cdn/{JDVSVNSE.js → HNFN5XI4.js} +1 -1
- package/dist/cdn/{MHE72N53.js → HOZFU3MX.js} +1 -1
- package/dist/cdn/{OXCL3M4W.js → HS67EN4X.js} +1 -1
- package/dist/cdn/{QC5NB4VL.js → I5FHLUKC.js} +1 -1
- package/dist/cdn/{OWIJSXYV.js → IDT2SXTU.js} +1 -1
- package/dist/cdn/{2P3LOGHK.js → IIK67UVJ.js} +1 -1
- package/dist/cdn/J4NTIVMX.js +2 -0
- package/dist/cdn/{GCAYSD7G.js → JBJREVM7.js} +1 -1
- package/dist/cdn/{7B4FOF3S.js → JGIGYWX4.js} +1 -1
- package/dist/cdn/JKB2GJ3L.js +2 -0
- package/dist/cdn/{UTVGUMUM.js → KJ3CYYKH.js} +1 -1
- package/dist/cdn/{YYAYEKGB.js → KRJOJQ44.js} +1 -1
- package/dist/cdn/KZAI3CI3.js +2 -0
- package/dist/cdn/{ELXBBUY5.js → LBE47OKH.js} +1 -1
- package/dist/cdn/{7QS3Z4ZJ.js → LELOCWEB.js} +1 -1
- package/dist/cdn/{44VCOKJX.js → LWJGPTE6.js} +1 -1
- package/dist/cdn/{WCUO6JQN.js → M3FXEHEJ.js} +1 -1
- package/dist/cdn/{VEZBAZZG.js → MOFJZGJJ.js} +1 -1
- package/dist/cdn/{5D7IEY6J.js → MSMAWAGB.js} +1 -1
- package/dist/cdn/{V7YPIVAX.js → NFJSGECW.js} +1 -1
- package/dist/cdn/{QGF4JJQO.js → NFSJVK6S.js} +1 -1
- package/dist/cdn/NV73Q6Y3.js +2 -0
- package/dist/cdn/{ODGJXDZK.js → NWCJZZUP.js} +1 -1
- package/dist/cdn/{XRUJ4D7O.js → NXXNNPTZ.js} +1 -1
- package/dist/cdn/OAHYAUPC.js +2 -0
- package/dist/cdn/{CEWOZ7LP.js → OJOSD3I3.js} +1 -1
- package/dist/cdn/{3TYJSBP3.js → OKEUM3YZ.js} +1 -1
- package/dist/cdn/ON5SZ43I.js +2 -0
- package/dist/cdn/{XT4GLBAQ.js → OO4DL46D.js} +1 -1
- package/dist/cdn/{6V3FX2W2.js → OXAULX56.js} +1 -1
- package/dist/cdn/{E6X6BQLH.js → OYI5HS2H.js} +1 -1
- package/dist/cdn/{NCSMOKFP.js → PF2E72GP.js} +1 -1
- package/dist/cdn/{NG7BG3QY.js → PGOMURMZ.js} +1 -1
- package/dist/cdn/PTENM6H3.js +2 -0
- package/dist/cdn/PZBMDHWQ.js +2 -0
- package/dist/cdn/{GDYGEN45.js → QEET4SDM.js} +1 -1
- package/dist/cdn/QEJPO65G.js +2 -0
- package/dist/cdn/{ZRMTOZ3B.js → QU4Q7ONO.js} +1 -1
- package/dist/cdn/{Z3IP3JBL.js → QUBOBRBE.js} +1 -1
- package/dist/cdn/{GDFQSWZ7.js → QUFMR3GW.js} +1 -1
- package/dist/cdn/{6X3QWKZL.js → R6QHGRLY.js} +1 -1
- package/dist/cdn/{6VP3K6WL.js → RAPPDCJC.js} +1 -1
- package/dist/cdn/RCKGNXG5.js +2 -0
- package/dist/cdn/{ICGT7C6U.js → ROD7LNFF.js} +1 -1
- package/dist/cdn/{YKL7MIG5.js → RRG7YZBV.js} +1 -1
- package/dist/cdn/{VZ2YR2UG.js → RUFVN26P.js} +1 -1
- package/dist/cdn/SNI7EAIB.js +2 -0
- package/dist/cdn/{JGCJVDJA.js → T3FWIMHQ.js} +1 -1
- package/dist/cdn/{IRANNKJ2.js → THKF3UIU.js} +1 -1
- package/dist/cdn/{6XMUSNRS.js → TLYY3J5P.js} +1 -1
- package/dist/cdn/{BSMPD6VA.js → TMJJBLP6.js} +1 -1
- package/dist/cdn/{RUUD543Z.js → TNK2ZMWI.js} +1 -1
- package/dist/cdn/{L3D2OBOR.js → TO7Y5WZH.js} +1 -1
- package/dist/cdn/{PHEMAFCT.js → TPA4W766.js} +1 -1
- package/dist/cdn/{CENYPZ3Y.js → TPACOVOQ.js} +1 -1
- package/dist/cdn/{ETEMG44R.js → TQ5ZBZVK.js} +1 -1
- package/dist/cdn/{TKK3AWQJ.js → UANLRLKZ.js} +1 -1
- package/dist/cdn/{LI2CATYC.js → UILRTNAY.js} +1 -1
- package/dist/cdn/{DP2TY4KH.js → UJSGNQNS.js} +1 -1
- package/dist/cdn/{7SDGC2RW.js → UMNCTZMZ.js} +1 -1
- package/dist/cdn/{I4IDQ735.js → UQADROG7.js} +1 -1
- package/dist/cdn/{6HRHKHF5.js → UU6TKA7Y.js} +1 -1
- package/dist/cdn/{LJSR66HF.js → V7X5QMP5.js} +1 -1
- package/dist/cdn/{6VDGKXTH.js → VKOMYCKU.js} +1 -1
- package/dist/cdn/{JCVLN6XL.js → VL5MBQLU.js} +1 -1
- package/dist/cdn/VLTH6OI4.js +2 -0
- package/dist/cdn/{2JJ5YBBT.js → VTIIXIO2.js} +1 -1
- package/dist/cdn/VVLIBG27.js +2 -0
- package/dist/cdn/{SJCWFQNF.js → W776TYSB.js} +1 -1
- package/dist/cdn/WBG5KGIT.js +2 -0
- package/dist/cdn/{TVU7KEKM.js → WE6LDLUR.js} +1 -1
- package/dist/cdn/{ROJYTRK6.js → WJLDQOSL.js} +1 -1
- package/dist/cdn/{DK3SDSZL.js → WMAINNWS.js} +1 -1
- package/dist/cdn/{DDUIHGBF.js → WMRHH4QJ.js} +1 -1
- package/dist/cdn/{SNJLHXVG.js → WYWBO53V.js} +1 -1
- package/dist/cdn/XPV23QFC.js +2 -0
- package/dist/cdn/{NL77UDLL.js → XXOHZXFG.js} +1 -1
- package/dist/cdn/{V7PYDILT.js → Y7HCDFPY.js} +1 -1
- package/dist/cdn/{U4GRIQVY.js → YCBJZOJS.js} +1 -1
- package/dist/cdn/{IHYNJVS4.js → YETMUH7M.js} +1 -1
- package/dist/cdn/YPGTWYGF.js +2 -0
- package/dist/cdn/{PIR7PWBO.js → YVT2GP5U.js} +1 -1
- package/dist/cdn/{JPPCKAMD.js → ZAWIMU5V.js} +1 -1
- package/dist/cdn/{524MMG22.js → ZU6VN5T5.js} +1 -1
- package/dist/cdn/assets/icon/buildingIndex16.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex24.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex32.json +1 -0
- package/dist/cdn/assets/icon/fireIndex16.json +1 -0
- package/dist/cdn/assets/icon/fireIndex24.json +1 -0
- package/dist/cdn/assets/icon/fireIndex32.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex16.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex24.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex32.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose16.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose24.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose32.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose16.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose24.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose32.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly16.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly24.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly32.json +1 -0
- package/dist/cdn/assets/icon/parquetFeatureLayer16.json +1 -0
- package/dist/cdn/assets/icon/parquetFeatureLayer24.json +1 -0
- package/dist/cdn/assets/icon/parquetFeatureLayer32.json +1 -0
- package/dist/cdn/assets/icon/snowIndex16.json +1 -0
- package/dist/cdn/assets/icon/snowIndex24.json +1 -0
- package/dist/cdn/assets/icon/snowIndex32.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex32.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/date.js +3 -3
- package/dist/chunks/dom.js +15 -3
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/label.js +6 -6
- package/dist/chunks/locale.js +3 -6
- package/dist/chunks/manager.js +5 -5
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources10.js +4 -48
- package/dist/chunks/resources11.js +63 -0
- package/dist/chunks/resources5.js +37 -23
- package/dist/chunks/resources6.js +27 -52
- package/dist/chunks/resources7.js +48 -45
- package/dist/chunks/resources8.js +49 -7
- package/dist/chunks/resources9.js +9 -11
- package/dist/chunks/runtime.js +3 -3
- package/dist/chunks/useTime.js +40 -45
- package/dist/chunks/utils.js +9 -15
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-alert/customElement.d.ts +2 -2
- package/dist/components/calcite-alert/customElement.js +6 -4
- package/dist/components/calcite-autocomplete/customElement.d.ts +16 -16
- package/dist/components/calcite-autocomplete/customElement.js +4 -4
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +5 -5
- package/dist/components/calcite-avatar/customElement.d.ts +5 -5
- package/dist/components/calcite-block/customElement.d.ts +9 -9
- package/dist/components/calcite-block/customElement.js +8 -49
- package/dist/components/calcite-block-group/customElement.js +3 -5
- package/dist/components/calcite-block-section/customElement.d.ts +5 -5
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.d.ts +8 -8
- package/dist/components/calcite-button/customElement.js +3 -3
- package/dist/components/calcite-card/customElement.d.ts +1 -1
- package/dist/components/calcite-carousel/customElement.js +5 -6
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -4
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +3 -3
- package/dist/components/calcite-color-picker/customElement.js +24 -21
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +5 -5
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +13 -8
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +2 -11
- package/dist/components/calcite-dialog/customElement.js +8 -8
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.d.ts +2 -2
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +7 -1
- package/dist/components/calcite-flow-item/customElement.js +2 -2
- package/dist/components/calcite-input/customElement.js +2 -5
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-zone/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.d.ts +4 -4
- package/dist/components/calcite-list/customElement.js +5 -6
- package/dist/components/calcite-list-item/customElement.d.ts +6 -6
- package/dist/components/calcite-list-item/customElement.js +13 -16
- package/dist/components/calcite-list-item-group/customElement.d.ts +1 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.js +3 -3
- package/dist/components/calcite-menu-item/customElement.d.ts +7 -7
- package/dist/components/calcite-menu-item/customElement.js +3 -0
- package/dist/components/calcite-meter/customElement.d.ts +6 -6
- package/dist/components/calcite-meter/customElement.js +14 -7
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +3 -0
- package/dist/components/calcite-panel/customElement.d.ts +6 -6
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-popover/customElement.d.ts +4 -4
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-progress/customElement.d.ts +2 -2
- package/dist/components/calcite-radio-button/customElement.d.ts +5 -5
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -4
- package/dist/components/calcite-radio-button-group/customElement.js +3 -3
- package/dist/components/calcite-rating/customElement.d.ts +7 -7
- package/dist/components/calcite-rating/customElement.js +13 -9
- package/dist/components/calcite-sheet/customElement.js +32 -27
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.d.ts +1 -1
- package/dist/components/calcite-tab/customElement.js +2 -1
- package/dist/components/calcite-tab-nav/customElement.d.ts +3 -3
- package/dist/components/calcite-tab-nav/customElement.js +12 -7
- package/dist/components/calcite-tab-title/customElement.d.ts +3 -3
- package/dist/components/calcite-tab-title/customElement.js +2 -0
- package/dist/components/calcite-table/customElement.js +22 -14
- package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
- package/dist/components/calcite-table-cell/customElement.js +6 -0
- package/dist/components/calcite-table-header/customElement.d.ts +4 -4
- package/dist/components/calcite-table-header/customElement.js +2 -0
- package/dist/components/calcite-table-row/customElement.js +5 -3
- package/dist/components/calcite-tabs/customElement.js +3 -2
- package/dist/components/calcite-text-area/customElement.d.ts +12 -12
- package/dist/components/calcite-text-area/customElement.js +5 -3
- package/dist/components/calcite-tile/customElement.d.ts +6 -6
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.js +35 -15
- package/dist/components/calcite-tooltip/customElement.d.ts +2 -2
- package/dist/components/calcite-tooltip/customElement.js +1 -1
- package/dist/components/calcite-tree/customElement.js +7 -6
- package/dist/components/calcite-tree-item/customElement.d.ts +3 -3
- package/dist/components/calcite-tree-item/customElement.js +12 -6
- package/dist/controllers/useSortable.d.ts +2 -2
- package/dist/controllers/useTime.d.ts +20 -20
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/dom.d.ts +1 -1
- package/package.json +8 -9
- package/dist/cdn/25SUELBY.js +0 -2
- package/dist/cdn/44HFP2I6.js +0 -2
- package/dist/cdn/5VAPN2S2.js +0 -2
- package/dist/cdn/6S3G75WP.js +0 -2
- package/dist/cdn/6SZY5PY7.js +0 -2
- package/dist/cdn/A6V4I2J3.js +0 -2
- package/dist/cdn/BCRYMNH7.js +0 -2
- package/dist/cdn/C462ZIJD.js +0 -2
- package/dist/cdn/C4DW27AP.js +0 -2
- package/dist/cdn/C4OX3FC4.js +0 -2
- package/dist/cdn/CVJBK7K3.js +0 -2
- package/dist/cdn/DSQ47C3C.js +0 -2
- package/dist/cdn/HYIVUAZU.js +0 -2
- package/dist/cdn/JSXQ6NFN.js +0 -2
- package/dist/cdn/KOWFGIAY.js +0 -2
- package/dist/cdn/L5IKT3WY.js +0 -2
- package/dist/cdn/LGB6OAXT.js +0 -2
- package/dist/cdn/ORIGVFX7.js +0 -2
- package/dist/cdn/QZJ7GLQ3.js +0 -2
- package/dist/cdn/RK2LH73E.js +0 -2
- package/dist/cdn/RRKFBHMW.js +0 -2
- package/dist/cdn/SXXFODM6.js +0 -2
- package/dist/cdn/TV47CRME.js +0 -2
- package/dist/cdn/UCWB5EGV.js +0 -2
- package/dist/cdn/X3HV2NYH.js +0 -2
- package/dist/cdn/Y7O6UR4T.js +0 -2
- package/dist/cdn/ZK2W2KJX.js +0 -2
- package/dist/cdn/ZOEJDQXA.js +0 -2
- /package/dist/cdn/{72YUATHS.js → 2G2ZTAXT.js} +0 -0
- /package/dist/cdn/{MO64UYDH.js → 5ZULUIQ5.js} +0 -0
- /package/dist/cdn/{IIA2H2SU.js → EWIZKNXQ.js} +0 -0
- /package/dist/cdn/{LKL63VXR.js → EZQV6OUW.js} +0 -0
- /package/dist/cdn/{Q55YTOMB.js → SXELOWJI.js} +0 -0
- /package/dist/cdn/{VXBJOP6X.js → U5CB5AOH.js} +0 -0
|
@@ -27,7 +27,7 @@ export abstract class Checkbox extends LitElement {
|
|
|
27
27
|
*
|
|
28
28
|
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
29
29
|
*/
|
|
30
|
-
accessor form: string;
|
|
30
|
+
accessor form: string | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* When `true`, the component is initially indeterminate, which is independent from its `checked` value.
|
|
33
33
|
*
|
|
@@ -38,13 +38,13 @@ export abstract class Checkbox extends LitElement {
|
|
|
38
38
|
*/
|
|
39
39
|
accessor indeterminate: boolean;
|
|
40
40
|
/** Specifies an accessible label for the component. */
|
|
41
|
-
accessor label: string;
|
|
41
|
+
accessor label: string | undefined;
|
|
42
42
|
/** Specifies the component's label text. */
|
|
43
|
-
accessor labelText: string;
|
|
43
|
+
accessor labelText: string | undefined;
|
|
44
44
|
/** Overrides individual strings used by the component. */
|
|
45
45
|
accessor messageOverrides: { required?: string; };
|
|
46
46
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
47
|
-
accessor name: string;
|
|
47
|
+
accessor name: string | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* When `true` and the component resides in a form,
|
|
50
50
|
* the component must have a value in order for the form to submit.
|
|
@@ -9,7 +9,7 @@ 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/resources6.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() {
|
|
@@ -91,7 +91,7 @@ class ChipGroup extends LitElement {
|
|
|
91
91
|
event.stopPropagation();
|
|
92
92
|
}
|
|
93
93
|
updateItems(event) {
|
|
94
|
-
const itemsFromSlot = this.slotRef.value?.assignedElements({ flatten: true }).filter((el) => el?.matches("calcite-chip"));
|
|
94
|
+
const itemsFromSlot = this.slotRef.value?.assignedElements({ flatten: true }).filter((el) => el?.matches("calcite-chip")) || [];
|
|
95
95
|
this.items = !event ? itemsFromSlot : slotChangeGetAssignedElements(event);
|
|
96
96
|
if (this.items?.length < 1) {
|
|
97
97
|
return;
|
|
@@ -95,7 +95,7 @@ export abstract class ColorPicker extends LitElement {
|
|
|
95
95
|
value?: string;
|
|
96
96
|
};
|
|
97
97
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
98
|
-
accessor numberingSystem: NumberingSystem;
|
|
98
|
+
accessor numberingSystem: NumberingSystem | undefined;
|
|
99
99
|
/**
|
|
100
100
|
* When `true`, hides the saved colors section.
|
|
101
101
|
*
|
|
@@ -109,7 +109,7 @@ export abstract class ColorPicker extends LitElement {
|
|
|
109
109
|
*/
|
|
110
110
|
accessor scale: Scale;
|
|
111
111
|
/** Specifies the storage ID for colors. */
|
|
112
|
-
accessor storageId: string;
|
|
112
|
+
accessor storageId: string | undefined;
|
|
113
113
|
/**
|
|
114
114
|
* The component's value, where the value can be a CSS color string, or a RGB, HSL or HSV object.
|
|
115
115
|
*
|
|
@@ -118,7 +118,7 @@ export abstract class ColorPicker extends LitElement {
|
|
|
118
118
|
* @see [MDN - CSS Color](https://developer.mozilla.org/en-US/docs/Web/CSS/color),
|
|
119
119
|
* @see [ColorValue](https://github.com/Esri/calcite-design-system/blob/dev/packages/components/src/components/color-picker/interfaces.ts#L10).
|
|
120
120
|
*/
|
|
121
|
-
accessor value: ColorValue | null;
|
|
121
|
+
accessor value: ColorValue | null | undefined;
|
|
122
122
|
/**
|
|
123
123
|
* Sets focus on the component's first focusable element.
|
|
124
124
|
*
|
|
@@ -26,13 +26,11 @@ class ColorPicker extends LitElement {
|
|
|
26
26
|
this.colorFieldScopeRef = createRef();
|
|
27
27
|
this.direction = useDirection();
|
|
28
28
|
this.hueScopeRef = createRef();
|
|
29
|
-
this.internalColorUpdateContext = null;
|
|
30
29
|
this.isActiveChannelInputEmpty = false;
|
|
31
30
|
this.mode = CSSColorMode.HEX;
|
|
32
31
|
this.opacityScopeRef = createRef();
|
|
33
32
|
this.resizeObserver = createObserver("resize", (entries) => this.resizeCanvas(entries));
|
|
34
33
|
this.shiftKeyChannelAdjustment = 0;
|
|
35
|
-
this.upOrDownArrowKeyTracker = null;
|
|
36
34
|
this._valueWasSet = false;
|
|
37
35
|
this.messages = useT9n({ blocking: true });
|
|
38
36
|
this.captureColorFieldColor = (x, y, skipEqual = true) => {
|
|
@@ -94,7 +92,7 @@ class ColorPicker extends LitElement {
|
|
|
94
92
|
return;
|
|
95
93
|
}
|
|
96
94
|
const previouslyDragging = this.activeCanvasInfo;
|
|
97
|
-
this.activeCanvasInfo =
|
|
95
|
+
this.activeCanvasInfo = void 0;
|
|
98
96
|
this.drawColorControls();
|
|
99
97
|
if (previouslyDragging) {
|
|
100
98
|
this.calciteColorPickerChange.emit();
|
|
@@ -168,8 +166,9 @@ class ColorPicker extends LitElement {
|
|
|
168
166
|
}
|
|
169
167
|
set value(value) {
|
|
170
168
|
const oldValue = this._value;
|
|
171
|
-
|
|
172
|
-
this.
|
|
169
|
+
const effectiveValue = value || void 0;
|
|
170
|
+
this._value = effectiveValue;
|
|
171
|
+
this.handleValueChange(effectiveValue, oldValue);
|
|
173
172
|
this._valueWasSet = true;
|
|
174
173
|
}
|
|
175
174
|
async setFocus(options) {
|
|
@@ -184,7 +183,8 @@ class ColorPicker extends LitElement {
|
|
|
184
183
|
if (!this._valueWasSet) {
|
|
185
184
|
this._value ??= normalizeHex(hexify(DEFAULT_COLOR, this.alphaChannel));
|
|
186
185
|
}
|
|
187
|
-
const { clearable, color, format
|
|
186
|
+
const { clearable, color, format } = this;
|
|
187
|
+
const value = this.value;
|
|
188
188
|
const willSetNoColor = clearable && !value;
|
|
189
189
|
const parsedMode = parseMode(value);
|
|
190
190
|
const valueIsCompatible = willSetNoColor || format === "auto" && parsedMode || format === parsedMode;
|
|
@@ -197,8 +197,11 @@ class ColorPicker extends LitElement {
|
|
|
197
197
|
this.updateStaticDimensions(this.scale);
|
|
198
198
|
this.updateDynamicDimensions(STATIC_DIMENSIONS[this.scale].minWidth);
|
|
199
199
|
const storageKey = `${DEFAULT_STORAGE_KEY_PREFIX}${this.storageId}`;
|
|
200
|
-
if (this.storageId
|
|
201
|
-
|
|
200
|
+
if (this.storageId) {
|
|
201
|
+
const storedItem = localStorage.getItem(storageKey);
|
|
202
|
+
if (storedItem) {
|
|
203
|
+
this.savedColors = JSON.parse(storedItem);
|
|
204
|
+
}
|
|
202
205
|
}
|
|
203
206
|
}
|
|
204
207
|
willUpdate(changes) {
|
|
@@ -263,7 +266,7 @@ class ColorPicker extends LitElement {
|
|
|
263
266
|
return;
|
|
264
267
|
}
|
|
265
268
|
modeChanged = this.mode !== nextMode;
|
|
266
|
-
this.setMode(nextMode, this.internalColorUpdateContext ===
|
|
269
|
+
this.setMode(nextMode, this.internalColorUpdateContext === void 0);
|
|
267
270
|
}
|
|
268
271
|
const dragging = this.activeCanvasInfo;
|
|
269
272
|
if (this.internalColorUpdateContext === "initial") {
|
|
@@ -323,7 +326,7 @@ class ColorPicker extends LitElement {
|
|
|
323
326
|
const input = event.target;
|
|
324
327
|
const hex = input.value;
|
|
325
328
|
if (clearable && !hex) {
|
|
326
|
-
this.internalColorSet(
|
|
329
|
+
this.internalColorSet(void 0);
|
|
327
330
|
return;
|
|
328
331
|
}
|
|
329
332
|
const normalizedHex = color && normalizeHex(hexify(color, alphaCompatible(this.mode)));
|
|
@@ -344,7 +347,7 @@ class ColorPicker extends LitElement {
|
|
|
344
347
|
if (!input.value) {
|
|
345
348
|
inputValue = "";
|
|
346
349
|
this.isActiveChannelInputEmpty = true;
|
|
347
|
-
this.upOrDownArrowKeyTracker =
|
|
350
|
+
this.upOrDownArrowKeyTracker = void 0;
|
|
348
351
|
} else {
|
|
349
352
|
const value = Number(input.value);
|
|
350
353
|
const adjustedValue = value + this.shiftKeyChannelAdjustment;
|
|
@@ -364,7 +367,7 @@ class ColorPicker extends LitElement {
|
|
|
364
367
|
const channels = [...this.channels];
|
|
365
368
|
const restoreValueDueToEmptyInput = !input.value && !this.clearable;
|
|
366
369
|
if (restoreValueDueToEmptyInput) {
|
|
367
|
-
input.value = channels[channelIndex]?.toString();
|
|
370
|
+
input.value = channels[channelIndex]?.toString() ?? "";
|
|
368
371
|
}
|
|
369
372
|
}
|
|
370
373
|
handleChannelFocus(event) {
|
|
@@ -399,18 +402,18 @@ class ColorPicker extends LitElement {
|
|
|
399
402
|
handleChannelChange(event) {
|
|
400
403
|
const input = event.currentTarget;
|
|
401
404
|
const channelIndex = Number(input.getAttribute("data-channel-index"));
|
|
402
|
-
const channels = [...this.channels];
|
|
403
405
|
const shouldClearChannels = this.clearable && !input.value;
|
|
404
406
|
if (shouldClearChannels) {
|
|
405
|
-
this.channels = [
|
|
406
|
-
this.internalColorSet(
|
|
407
|
+
this.channels = [void 0, void 0, void 0, void 0];
|
|
408
|
+
this.internalColorSet(void 0);
|
|
407
409
|
return;
|
|
408
410
|
}
|
|
411
|
+
const channels = [...this.channels];
|
|
409
412
|
const isAlphaChannel = channelIndex === 3;
|
|
410
413
|
if (this.isActiveChannelInputEmpty && this.upOrDownArrowKeyTracker) {
|
|
411
414
|
input.value = this.upOrDownArrowKeyTracker === "up" ? (channels[channelIndex] + 1 <= this.getChannelInputLimit(channelIndex) ? channels[channelIndex] + 1 : this.getChannelInputLimit(channelIndex)).toString() : (channels[channelIndex] - 1 >= 0 ? channels[channelIndex] - 1 : 0).toString();
|
|
412
415
|
this.isActiveChannelInputEmpty = false;
|
|
413
|
-
this.upOrDownArrowKeyTracker =
|
|
416
|
+
this.upOrDownArrowKeyTracker = void 0;
|
|
414
417
|
}
|
|
415
418
|
const value = input.value ? Number(input.value) : channels[channelIndex];
|
|
416
419
|
channels[channelIndex] = isAlphaChannel ? opacityToAlpha(value) : value;
|
|
@@ -497,11 +500,11 @@ class ColorPicker extends LitElement {
|
|
|
497
500
|
this.internalColorUpdateContext = context;
|
|
498
501
|
this.color = color;
|
|
499
502
|
this.value = this.toValue(color);
|
|
500
|
-
this.internalColorUpdateContext =
|
|
503
|
+
this.internalColorUpdateContext = void 0;
|
|
501
504
|
}
|
|
502
505
|
toValue(color, format = this.mode) {
|
|
503
506
|
if (!color) {
|
|
504
|
-
return
|
|
507
|
+
return void 0;
|
|
505
508
|
}
|
|
506
509
|
const hexMode = "hex";
|
|
507
510
|
if (format.includes(hexMode)) {
|
|
@@ -814,7 +817,7 @@ class ColorPicker extends LitElement {
|
|
|
814
817
|
this.internalColorSet(Color(channels, this.channelMode));
|
|
815
818
|
}
|
|
816
819
|
updateChannelsFromColor(color) {
|
|
817
|
-
this.channels = color ? this.toChannels(color) : [
|
|
820
|
+
this.channels = color ? this.toChannels(color) : [void 0, void 0, void 0, void 0];
|
|
818
821
|
}
|
|
819
822
|
toChannels(color) {
|
|
820
823
|
const { channelMode } = this;
|
|
@@ -830,7 +833,7 @@ class ColorPicker extends LitElement {
|
|
|
830
833
|
render() {
|
|
831
834
|
const { channelsDisabled, color, colorFieldScopeLeft, colorFieldScopeTop, staticDimensions: { thumb: { radius: thumbRadius } }, fieldDisabled, hexDisabled, hueScopeLeft, messages, alphaChannel, opacityScopeLeft, savedColors, savedDisabled, scale, scopeOrientation } = this;
|
|
832
835
|
const sliderWidth = this.effectiveSliderWidth;
|
|
833
|
-
const selectedColorInHex = color ? hexify(color, alphaChannel) :
|
|
836
|
+
const selectedColorInHex = color ? hexify(color, alphaChannel) : void 0;
|
|
834
837
|
const hueTop = thumbRadius;
|
|
835
838
|
const hueLeft = hueScopeLeft ?? sliderWidth * DEFAULT_COLOR.hue() / HSV_LIMITS.h;
|
|
836
839
|
const opacityTop = thumbRadius;
|
|
@@ -879,7 +882,7 @@ class ColorPicker extends LitElement {
|
|
|
879
882
|
})}</div></calcite-tab>`);
|
|
880
883
|
}
|
|
881
884
|
renderChannel(value, index, ariaLabel, direction, suffix) {
|
|
882
|
-
return keyed(index, html`<calcite-input-number class=${safeClassMap(CSS.channel)} data-channel-index=${index ?? nothing} dir=${direction ?? nothing} .label=${ariaLabel} lang=${this.messages._lang ?? nothing} number-button-type=none .numberingSystem=${this.numberingSystem} @
|
|
885
|
+
return keyed(index, html`<calcite-input-number class=${safeClassMap(CSS.channel)} data-channel-index=${index ?? nothing} dir=${direction ?? nothing} .label=${ariaLabel} lang=${this.messages._lang ?? nothing} number-button-type=none .numberingSystem=${this.numberingSystem} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} @keydown=${this.handleKeyDown} .scale=${this.scale === "l" ? "m" : "s"} style=${safeStyleMap({
|
|
883
886
|
marginLeft: index > 0 && !(this.scale === "s" && this.alphaChannel && index === 3) ? "-1px" : ""
|
|
884
887
|
})} .suffixText=${suffix} .value=${value?.toString()}></calcite-input-number>`);
|
|
885
888
|
}
|
|
@@ -39,7 +39,7 @@ class ColorPickerHexInput extends LitElement {
|
|
|
39
39
|
}
|
|
40
40
|
connectedCallback() {
|
|
41
41
|
super.connectedCallback();
|
|
42
|
-
this.
|
|
42
|
+
this.previousDefinedValue = this.value;
|
|
43
43
|
const { allowEmpty, alphaChannel, value } = this;
|
|
44
44
|
if (value) {
|
|
45
45
|
const normalized = normalizeHex(value, alphaChannel);
|
|
@@ -144,7 +144,7 @@ class ColorPickerHexInput extends LitElement {
|
|
|
144
144
|
const oldValue = this.value;
|
|
145
145
|
if (isNudgeKey) {
|
|
146
146
|
if (!value) {
|
|
147
|
-
this.internalSetValue(this.
|
|
147
|
+
this.internalSetValue(this.previousDefinedValue, oldValue);
|
|
148
148
|
event.preventDefault();
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
@@ -162,7 +162,7 @@ class ColorPickerHexInput extends LitElement {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
onHexInputPaste(event) {
|
|
165
|
-
const hex = event.clipboardData
|
|
165
|
+
const hex = event.clipboardData?.getData("text");
|
|
166
166
|
if (isValidHex(hex, this.alphaChannel) && isLonghandHex(hex, this.alphaChannel)) {
|
|
167
167
|
event.preventDefault();
|
|
168
168
|
this.hexInputRef.value.value = hex.slice(1);
|
|
@@ -179,7 +179,7 @@ class ColorPickerHexInput extends LitElement {
|
|
|
179
179
|
const normalizedLonghand = normalizeHex(hexify(nextColor, alphaChannel), alphaChannel);
|
|
180
180
|
const changed = !currentColor || normalizedLonghand !== normalizeHex(hexify(currentColor, alphaChannel), alphaChannel);
|
|
181
181
|
this.internalColor = nextColor;
|
|
182
|
-
this.
|
|
182
|
+
this.previousDefinedValue = normalizedLonghand;
|
|
183
183
|
this.value = normalizedLonghand;
|
|
184
184
|
if (changed && emit) {
|
|
185
185
|
this.calciteColorPickerHexInputChange.emit();
|
|
@@ -223,7 +223,7 @@ class ColorPickerHexInput extends LitElement {
|
|
|
223
223
|
const hexInputValue = this.formatHexForInternalInput(value);
|
|
224
224
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
225
225
|
const inputScale = scale === "l" ? "m" : "s";
|
|
226
|
-
return html`<div class=${safeClassMap(CSS.container)}><calcite-input-text class=${safeClassMap(CSS.hexInput)} .label=${messages?.hex || hexLabel} .maxLength=${this.alphaChannel ? 8 : 6} @
|
|
226
|
+
return html`<div class=${safeClassMap(CSS.container)}><calcite-input-text class=${safeClassMap(CSS.hexInput)} .label=${messages?.hex || hexLabel} .maxLength=${this.alphaChannel ? 8 : 6} @calciteInputTextChange=${this.onHexInputChange} @calciteInputTextInput=${this.onHexInputInput} @calciteInternalInputTextBlur=${this.onHexInputBlur} @calciteInternalInputTextFocus=${this.onInputFocus} @keydown=${this.onInputKeyDown} @paste=${this.onHexInputPaste} prefix-text=# .scale=${inputScale} .value=${hexInputValue} ${ref(this.hexInputRef)}></calcite-input-text>${alphaChannel ? keyed("opacity-input", html`<calcite-input-number class=${safeClassMap(CSS.opacityInput)} .label=${messages?.opacity} .max=${OPACITY_LIMITS.max} max-length=3 .min=${OPACITY_LIMITS.min} number-button-type=none .numberingSystem=${this.numberingSystem} @calciteInputNumberInput=${this.onOpacityInputInput} @calciteInternalInputNumberBlur=${this.onOpacityInputBlur} @calciteInternalInputNumberFocus=${this.onInputFocus} @keydown=${this.onInputKeyDown} .scale=${inputScale} suffix-text=% .value=${opacityInputValue} ${ref(this.opacityInputRef)}></calcite-input-number>`) : null}</div>`;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
customElement("calcite-color-picker-hex-input", ColorPickerHexInput);
|
|
@@ -15,7 +15,7 @@ export abstract class ColorPickerSwatch extends LitElement {
|
|
|
15
15
|
*
|
|
16
16
|
* @see [MDN - Color CSS data type](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).
|
|
17
17
|
*/
|
|
18
|
-
accessor color: string |
|
|
18
|
+
accessor color: string | undefined;
|
|
19
19
|
/**
|
|
20
20
|
* Specifies the size of the component.
|
|
21
21
|
*
|
|
@@ -27,8 +27,8 @@ import { u as useCancelable } from "../../chunks/useCancelable.js";
|
|
|
27
27
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
28
28
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
29
29
|
import { u as useForm } from "../../chunks/useForm.js";
|
|
30
|
-
import { i as isChip } from "../../chunks/
|
|
31
|
-
import { I as IDS, C as CSS, a as ComboboxItemSelector, b as ComboboxItemGroupSelector, c as ICONS } from "../../chunks/
|
|
30
|
+
import { i as isChip } from "../../chunks/resources6.js";
|
|
31
|
+
import { I as IDS, C as CSS, a as ComboboxItemSelector, b as ComboboxItemGroupSelector, c as ICONS } from "../../chunks/resources7.js";
|
|
32
32
|
import { h as hasActiveChildren, i as isSingleLike, o as orderValuesByPrevious, a as orderByPrevious, g as getLabel, b as getItemAncestors, c as getItemChildren } from "../../chunks/utils2.js";
|
|
33
33
|
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{position:relative;display:block}:host([scale=s]){font-size:var(--calcite-font-size-relative-sm);--calcite-internal-combobox-spacing-unit-l: .5rem;--calcite-internal-combobox-spacing-unit-s: .25rem;--calcite-internal-combobox-padding-inline-end: var(--calcite-space-2xs);--calcite-internal-combobox-no-matches-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) ;--calcite-internal-close-size: 1rem}:host([scale=m]){font-size:var(--calcite-font-size-relative-base);--calcite-internal-combobox-spacing-unit-l: .75rem;--calcite-internal-combobox-spacing-unit-s: .5rem;--calcite-internal-combobox-padding-inline-end: var(--calcite-space-sm);--calcite-internal-combobox-no-matches-spacing-unit-s: .375rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) ;--calcite-internal-close-size: 1.5rem}:host([scale=l]){font-size:var(--calcite-font-size-relative-md);--calcite-internal-combobox-spacing-unit-l: 1rem;--calcite-internal-combobox-spacing-unit-s: .75rem;--calcite-internal-combobox-padding-inline-end: var(--calcite-space-sm-plus);--calcite-internal-combobox-no-matches-spacing-unit-s: var(--calcite-space-sm-plus);--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(var(--calcite-space-sm-plus) - 1px);--calcite-internal-close-size: 2rem}.wrapper{display:flex;border-width:1px;border-style:solid;outline-color:transparent;padding-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);padding-inline:var(--calcite-internal-combobox-spacing-unit-l) var(--calcite-internal-combobox-padding-inline-end);background-color:var(--calcite-combobox-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));border-color:var(--calcite-combobox-input-border-color, var(--calcite-color-border-input))}.wrapper:hover .icon{color:var(--calcite-combobox-icon-color-hover, var(--calcite-color-text-1))}:host(:focus-within) .wrapper,.wrapper--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))))}:host([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l) var(--calcite-internal-combobox-padding-inline-end);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-internal-combobox-spacing-unit-s);margin-inline-end:var(--calcite-internal-combobox-spacing-unit-s)}.grid-input.selection-display--fit,.grid-input.selection-display--single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-internal-combobox-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.placeholder-icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-width:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.floating-ui-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.floating-ui-container{opacity:0;inset-block-start:0;left:0}}:host([top-layer-disabled]) .floating-ui-container{--calcite-floating-ui-z-index: var(--calcite-z-index-dropdown)}.floating-ui-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.floating-ui-container:popover-open{display:block}.floating-ui-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}.floating-ui-container .calcite-floating-ui-anim{box-shadow:var(--calcite-shadow-md)}@media(forced-colors:active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.list-container{max-height:45vh;overflow-y:auto;inline-size:var(--calcite-dropdown-width, 100%);background-color:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1))}.list{margin:0;display:block;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.list--hide{height:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);max-inline-size:100%}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.select-all{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-1));border-block-end-color:var(--calcite-combobox-divider-color, var(--calcite-combobox-item-border-color, var(--calcite-color-border-3)));border-block-end-style:solid;border-block-end-width:var(--calcite-border-width-sm);inset-block-start:0;position:sticky;z-index:var(--calcite-z-index-sticky)}.no-matches{padding-block:var(--calcite-internal-combobox-no-matches-spacing-unit-s);padding-inline:var(--calcite-internal-combobox-spacing-unit-l);color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));background:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1));cursor:pointer}.no-matches-placeholder{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3));cursor:default}.disabled{opacity:.5}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.clear-button--container{display:flex;cursor:pointer;align-items:center}.clear-button--container:hover calcite-action{--calcite-action-background-color: var(--calcite-clear-button-background-color-hover, var(--calcite-color-foreground-3));--calcite-action-text-color: var(--calcite-clear-button-icon-color-hover, var(--calcite-color-text-1))}.clear-button--container:active calcite-action{--calcite-action-background-color: var(--calcite-clear-button-background-color-press, var(--calcite-color-border-2));--calcite-action-text-color: var(--calcite-clear-button-icon-color-press, var(--calcite-color-text-1))}.clear-button--container calcite-action{--calcite-internal-action-height: 100%;--calcite-internal-action-padding-inline: var(--calcite-spacing-none);--calcite-internal-action-padding-block: var(--calcite-spacing-none);--calcite-action-background-color: var(--calcite-clear-button-background-color, var(--calcite-color-foreground-2));--calcite-action-text-color: var(--calcite-clear-button-icon-color)}.clear-button--container calcite-action:hover{--calcite-action-background-color-hover: var(--calcite-clear-button-background-color-hover, var(--calcite-color-foreground-3));--calcite-action-text-color-press: var(--calcite-clear-button-icon-color-hover)}.clear-button--container calcite-action:active{--calcite-action-background-color-press: var(--calcite-clear-button-background-color-press, var(--calcite-color-border-2));--calcite-action-text-color-press: var(--calcite-clear-button-icon-color-press)}:host([scale=s]) .clear-button--container{padding:var(--calcite-spacing-xxs)}:host([scale=m]) .clear-button--container{padding:var(--calcite-spacing-xxs);padding-inline-end:var(--calcite-space-sm)}:host([scale=l]) .clear-button--container{padding-inline-end:var(--calcite-spacing-sm-plus)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`;
|
|
34
34
|
class Combobox extends LitElement {
|
|
@@ -535,9 +535,9 @@ class Combobox extends LitElement {
|
|
|
535
535
|
break;
|
|
536
536
|
case " ":
|
|
537
537
|
if (!this.textInputRef.value.value && !event.defaultPrevented) {
|
|
538
|
-
if (!this.open) {
|
|
538
|
+
if (!this.open && this.keyboardNavItems.length) {
|
|
539
539
|
this.open = true;
|
|
540
|
-
this.
|
|
540
|
+
this.ensureRecentSelectedItemIsActive();
|
|
541
541
|
}
|
|
542
542
|
event.preventDefault();
|
|
543
543
|
}
|
|
@@ -620,7 +620,7 @@ class Combobox extends LitElement {
|
|
|
620
620
|
this.topLayer.show();
|
|
621
621
|
this.reposition();
|
|
622
622
|
this.calciteComboboxBeforeOpen.emit();
|
|
623
|
-
setTimeout(() => this.scrollToActiveOrSelectedItem(
|
|
623
|
+
setTimeout(() => this.scrollToActiveOrSelectedItem(this.activeItemIndex < 0), 0);
|
|
624
624
|
}
|
|
625
625
|
onOpen() {
|
|
626
626
|
this.calciteComboboxOpen.emit();
|
|
@@ -669,9 +669,14 @@ class Combobox extends LitElement {
|
|
|
669
669
|
this.ensureRecentSelectedItemIsActive();
|
|
670
670
|
}
|
|
671
671
|
ensureRecentSelectedItemIsActive() {
|
|
672
|
-
const { selectedItems } = this;
|
|
673
|
-
|
|
674
|
-
|
|
672
|
+
const { activeItemIndex, selectedItems, keyboardNavItems } = this;
|
|
673
|
+
if (activeItemIndex > -1 && keyboardNavItems[activeItemIndex]) {
|
|
674
|
+
this.updateActiveItemIndex(activeItemIndex);
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
const selectedItem = selectedItems[selectedItems.length - 1];
|
|
678
|
+
const targetIndex = selectedItem ? keyboardNavItems.indexOf(selectedItem) : keyboardNavItems.length ? 0 : -1;
|
|
679
|
+
this.updateActiveItemIndex(targetIndex > -1 ? targetIndex : keyboardNavItems.length ? 0 : -1);
|
|
675
680
|
}
|
|
676
681
|
hideChip(chipEl) {
|
|
677
682
|
chipEl.classList.add(CSS.chipInvisible);
|
|
@@ -30,7 +30,7 @@ class DatePicker extends LitElement {
|
|
|
30
30
|
this.listen("keydown", this.keyDownHandler);
|
|
31
31
|
}
|
|
32
32
|
static {
|
|
33
|
-
this.properties = { activeEndDate: [16, {}, { state: true }], activeStartDate: [16, {}, { state: true }], dateTimeFormat: [16, {}, { state: true }],
|
|
33
|
+
this.properties = { activeEndDate: [16, {}, { state: true }], activeStartDate: [16, {}, { state: true }], dateTimeFormat: [16, {}, { state: true }], hoverRange: [16, {}, { state: true }], localeData: [16, {}, { state: true }], activeDate: [0, {}, { attribute: false }], activeRange: [3, {}, { reflect: true }], calendars: [11, {}, { type: Number, reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], layout: [3, {}, { reflect: true }], max: [3, {}, { reflect: true }], maxAsDate: [0, {}, { attribute: false }], messageOverrides: [0, {}, { attribute: false }], min: [3, {}, { reflect: true }], minAsDate: [0, {}, { attribute: false }], monthStyle: 1, numberingSystem: [3, {}, { reflect: true }], proximitySelectionDisabled: [7, {}, { reflect: true, type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], value: 1, valueAsDate: [0, {}, { attribute: false }] };
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
36
36
|
this.styles = styles;
|
|
@@ -36,7 +36,7 @@ class DatePickerDay extends LitElement {
|
|
|
36
36
|
this.listen("keydown", this.keyDownHandler);
|
|
37
37
|
}
|
|
38
38
|
static {
|
|
39
|
-
this.properties = { active: [7, {}, { reflect: true, type: Boolean }], currentMonth: [7, {}, { reflect: true, type: Boolean }], dateTimeFormat: [0, {}, { attribute: false }], day: [9, {}, { type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], endOfRange: [7, {}, { reflect: true, type: Boolean }], highlighted: [7, {}, { reflect: true, type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }],
|
|
39
|
+
this.properties = { active: [7, {}, { reflect: true, type: Boolean }], currentMonth: [7, {}, { reflect: true, type: Boolean }], dateTimeFormat: [0, {}, { attribute: false }], day: [9, {}, { type: Number }], disabled: [7, {}, { reflect: true, type: Boolean }], endOfRange: [7, {}, { reflect: true, type: Boolean }], highlighted: [7, {}, { reflect: true, type: Boolean }], range: [7, {}, { reflect: true, type: Boolean }], rangeHover: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selected: [7, {}, { reflect: true, type: Boolean }], startOfRange: [7, {}, { reflect: true, type: Boolean }], value: [0, {}, { attribute: false }] };
|
|
40
40
|
}
|
|
41
41
|
static {
|
|
42
42
|
this.styles = styles;
|
|
@@ -11,10 +11,8 @@ const CSS = {
|
|
|
11
11
|
calendarStart: "calendar--start",
|
|
12
12
|
currentDay: "current-day",
|
|
13
13
|
dayContainer: "day-container",
|
|
14
|
-
insideRangeHover: "inside-range--hover",
|
|
15
14
|
month: "month",
|
|
16
15
|
noncurrent: "noncurrent",
|
|
17
|
-
outsideRangeHover: "outside-range--hover",
|
|
18
16
|
weekDays: "week-days",
|
|
19
17
|
weekHeader: "week-header",
|
|
20
18
|
weekHeaderContainer: "week-header-container"
|
|
@@ -246,15 +244,12 @@ class DatePickerMonth extends LitElement {
|
|
|
246
244
|
let month = this.activeDate.getMonth();
|
|
247
245
|
const nextMonth2 = month + 1;
|
|
248
246
|
month = position === "end" ? nextMonth2 : month;
|
|
249
|
-
let dayInWeek = 0;
|
|
250
|
-
const getDayInWeek = () => dayInWeek++ % 7;
|
|
251
247
|
const year = this.activeDate.getFullYear();
|
|
252
248
|
const days = [
|
|
253
249
|
...prevMonthDays.map((day) => {
|
|
254
250
|
return {
|
|
255
251
|
active: false,
|
|
256
252
|
day,
|
|
257
|
-
dayInWeek: getDayInWeek(),
|
|
258
253
|
date: new Date(year, month - 1, day)
|
|
259
254
|
};
|
|
260
255
|
}),
|
|
@@ -267,7 +262,6 @@ class DatePickerMonth extends LitElement {
|
|
|
267
262
|
currentMonth: true,
|
|
268
263
|
currentDay: isCurrentDay,
|
|
269
264
|
day,
|
|
270
|
-
dayInWeek: getDayInWeek(),
|
|
271
265
|
date
|
|
272
266
|
};
|
|
273
267
|
}),
|
|
@@ -275,7 +269,6 @@ class DatePickerMonth extends LitElement {
|
|
|
275
269
|
return {
|
|
276
270
|
active: false,
|
|
277
271
|
day,
|
|
278
|
-
dayInWeek: getDayInWeek(),
|
|
279
272
|
date: new Date(year, nextMonth2, day)
|
|
280
273
|
};
|
|
281
274
|
})
|
|
@@ -326,14 +319,12 @@ class DatePickerMonth extends LitElement {
|
|
|
326
319
|
const nextMonthDays = this.getDays(endCalendarPrevMonDays, endCalendarCurrMonDays, endCalendarNextMonDays, "end");
|
|
327
320
|
return html`<div class=${safeClassMap({ [CSS.calendarContainer]: true })} role=grid>${this.renderCalendar(adjustedWeekDays, days)}${this.range && this.calendars === 2 && this.renderCalendar(adjustedWeekDays, nextMonthDays, true) || ""}</div>`;
|
|
328
321
|
}
|
|
329
|
-
renderDateDay({ active, currentMonth, currentDay, date, day
|
|
322
|
+
renderDateDay({ active, currentMonth, currentDay, date, day }, key) {
|
|
330
323
|
const isDateInRange = inRange(date, this.min, this.max);
|
|
331
324
|
return keyed(key, html`<div class=${safeClassMap({ [CSS.dayContainer]: true })} role=gridcell><calcite-date-picker-day .active=${active} class=${safeClassMap({
|
|
332
325
|
[CSS.currentDay]: currentDay,
|
|
333
|
-
[CSS.insideRangeHover]: this.isHoverInRange(),
|
|
334
|
-
[CSS.outsideRangeHover]: !this.isHoverInRange(),
|
|
335
326
|
[CSS.noncurrent]: this.range && this.calendars === 2 && !currentMonth
|
|
336
|
-
})} .currentMonth=${currentMonth} .dateTimeFormat=${this.dateTimeFormat} .day=${day} .disabled=${!isDateInRange} .endOfRange=${this.isEndOfRange(date)} .highlighted=${this.betweenSelectedRange(date)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate)} .
|
|
327
|
+
})} .currentMonth=${currentMonth} .dateTimeFormat=${this.dateTimeFormat} .day=${day} .disabled=${!isDateInRange} .endOfRange=${this.isEndOfRange(date)} .highlighted=${this.betweenSelectedRange(date)} @calciteInternalDayHover=${this.dayHover} @calciteInternalDaySelect=${this.daySelect} .range=${!!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate)} .rangeHover=${isDateInRange && this.isRangeHover(date)} .scale=${this.scale} .selected=${this.isSelected(date)} .startOfRange=${this.isStartOfRange(date)} .value=${date} ${ref(this.storeDayRef)}></calcite-date-picker-day></div>`);
|
|
337
328
|
}
|
|
338
329
|
renderCalendar(weekDays, days, isEndCalendar = false) {
|
|
339
330
|
return html`<div class=${safeClassMap({
|
|
@@ -9,7 +9,7 @@ import { g as getStylePixelValue } from "../../chunks/dom.js";
|
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
11
11
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
12
|
-
import { S as SLOTS$1 } from "../../chunks/
|
|
12
|
+
import { S as SLOTS$1 } from "../../chunks/resources8.js";
|
|
13
13
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
14
14
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
15
15
|
import { u as usePreventDocumentScroll } from "../../chunks/usePreventDocumentScroll.js";
|
|
@@ -158,11 +158,11 @@ class Dialog extends LitElement {
|
|
|
158
158
|
connectedCallback() {
|
|
159
159
|
super.connectedCallback();
|
|
160
160
|
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
161
|
-
this.
|
|
161
|
+
this.setUpInteractions();
|
|
162
162
|
}
|
|
163
163
|
willUpdate(changes) {
|
|
164
164
|
if (changes.has("open") && (this.hasUpdated || this.open !== false) || changes.has("placement") && (this.hasUpdated || this.placement !== "center") || changes.has("resizable") && (this.hasUpdated || this.resizable !== false) || changes.has("dragEnabled") && (this.hasUpdated || this.dragEnabled !== false)) {
|
|
165
|
-
this.
|
|
165
|
+
this.setUpInteractions();
|
|
166
166
|
}
|
|
167
167
|
if (changes.has("messages") || changes.has("dragEnabled") && (this.hasUpdated || this.dragEnabled !== false) || changes.has("resizable") && (this.hasUpdated || this.resizable !== false)) {
|
|
168
168
|
this.updateAssistiveText();
|
|
@@ -175,7 +175,7 @@ class Dialog extends LitElement {
|
|
|
175
175
|
super.disconnectedCallback();
|
|
176
176
|
this.mutationObserver?.disconnect();
|
|
177
177
|
this.embedded = false;
|
|
178
|
-
this.
|
|
178
|
+
this.cleanUpInteractions();
|
|
179
179
|
}
|
|
180
180
|
focusTrapDisabledOverride() {
|
|
181
181
|
return !this.modal && this.focusTrapDisabled;
|
|
@@ -335,7 +335,7 @@ class Dialog extends LitElement {
|
|
|
335
335
|
const translateY = Math.round(y + top + bottom);
|
|
336
336
|
this.transitionEl.style.transform = translateX || translateY ? `translate(${translateX}px, ${translateY}px)` : null;
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
cleanUpInteractions() {
|
|
339
339
|
this.interaction?.unset();
|
|
340
340
|
this.updateSizeInternal({
|
|
341
341
|
inline: null,
|
|
@@ -345,8 +345,8 @@ class Dialog extends LitElement {
|
|
|
345
345
|
this.resizePosition = { ...initialResizePosition };
|
|
346
346
|
this.updateTransform();
|
|
347
347
|
}
|
|
348
|
-
async
|
|
349
|
-
this.
|
|
348
|
+
async setUpInteractions() {
|
|
349
|
+
this.cleanUpInteractions();
|
|
350
350
|
const { el, transitionEl, resizable, dragEnabled, resizePosition, dragPosition } = this;
|
|
351
351
|
if (!transitionEl || !this.open) {
|
|
352
352
|
return;
|
|
@@ -447,7 +447,7 @@ class Dialog extends LitElement {
|
|
|
447
447
|
return;
|
|
448
448
|
}
|
|
449
449
|
this.transitionEl = el;
|
|
450
|
-
this.
|
|
450
|
+
this.setUpInteractions();
|
|
451
451
|
}
|
|
452
452
|
handleInternalPanelScroll(event) {
|
|
453
453
|
if (event.target !== this.panelRef.value) {
|
|
@@ -3,7 +3,7 @@ import { 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 { c as createObserver } from "../../chunks/observers.js";
|
|
6
|
-
import { C as CSS$1 } from "../../chunks/
|
|
6
|
+
import { C as CSS$1 } from "../../chunks/resources9.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
title: "title",
|
|
9
9
|
firstTitle: "first-title",
|
|
@@ -7,7 +7,7 @@ import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
|
7
7
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
8
8
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
9
9
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
10
|
-
import { C as CSS, I as ICONS } from "../../chunks/
|
|
10
|
+
import { C as CSS, I as ICONS } from "../../chunks/resources9.js";
|
|
11
11
|
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{position:relative;display:flex;flex-grow:1;align-items:center;outline:2px solid transparent;outline-offset:2px}.container{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;text-decoration-line:none;color:var(--calcite-dropdown-item-text-color, var(--calcite-color-text-1));text-align:start}.container a{outline:none;position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;text-decoration-line:none;color:var(--calcite-dropdown-item-text-color, var(--calcite-color-text-1))}.content{flex:1 1 auto}.icon{position:relative;opacity:0;transition-timing-function:cubic-bezier(.4,0,.2,1);transform:scale(.9)}.icon--start,.icon--end{--calcite-icon-color: var(--calcite-dropdown-item-text-color, var(--calcite-color-text-3))}:host([scale=s]) .container{padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm)}:host([scale=s]) .icon,:host([scale=s]) .icon--start{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .icon--end{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .container{padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base)}:host([scale=m]) .icon,:host([scale=m]) .icon--start{padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .icon--end{padding-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .container{padding-block:var(--calcite-space-sm-plus);padding-inline:1rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md)}:host([scale=l]) .icon,:host([scale=l]) .icon--start{padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .icon--end{padding-inline-start:var(--calcite-spacing-lg)}:host(:focus) .container,:host([active-descendant]) .container{text-decoration-line:none;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(:hover:not([disabled])) .container{background-color:var(--calcite-dropdown-item-background-color-hover, var(--calcite-color-foreground-2))}:host(:active:not([disabled])) .container{background-color:var(--calcite-dropdown-item-background-color-press, var(--calcite-color-foreground-3))}:host(:hover:not([disabled])) .container,:host(:active:not([disabled])) .container{text-decoration-line:none;color:var(--calcite-dropdown-item-text-color-press, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .icon--start,:host(:hover:not([disabled])) .icon--end,:host(:active:not([disabled])) .icon--start,:host(:active:not([disabled])) .icon--end{--calcite-icon-color: var(--calcite-dropdown-item-text-color-press, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .link,:host(:active:not([disabled])) .link{color:var(--calcite-dropdown-item-text-color-press, var(--calcite-color-text-1))}:host([selected]) .container:not(.container--none-selection),:host([selected]) .link{font-weight:var(--calcite-font-weight-medium);--calcite-internal-dropdown-item-text-color: var( --calcite-dropdown-item-text-color-press, var(--calcite-color-text-1) );color:var(--calcite-internal-dropdown-item-text-color)}:host([selected]) .container:not(.container--none-selection) .icon,:host([selected]) .link .icon{--calcite-icon-color: var(--calcite-dropdown-item-icon-color-press, var(--calcite-color-brand))}:host([selected]) .container:not(.container--none-selection) .icon--start,:host([selected]) .container:not(.container--none-selection) .icon--end,:host([selected]) .link .icon--start,:host([selected]) .link .icon--end{--calcite-icon-color: var(--calcite-internal-dropdown-item-text-color)}:host(:hover:not([disabled])) .icon{--calcite-icon-color: var(--calcite-dropdown-item-icon-color-hover)}:host([selected]) .icon{opacity:1}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`;
|
|
12
12
|
class DropdownItem extends LitElement {
|
|
13
13
|
constructor() {
|
|
@@ -11,9 +11,9 @@ export abstract class Flow extends LitElement {
|
|
|
11
11
|
/**
|
|
12
12
|
* Removes selection of the currently active `calcite-flow-item`.
|
|
13
13
|
*
|
|
14
|
-
* @returns Promise<HTMLCalciteFlowItemElement | FlowItemLikeElement>
|
|
14
|
+
* @returns Promise<HTMLCalciteFlowItemElement | FlowItemLikeElement | undefined>
|
|
15
15
|
*/
|
|
16
|
-
back(): Promise<FlowItem | FlowItemLikeElement>;
|
|
16
|
+
back(): Promise<FlowItem | FlowItemLikeElement | undefined>;
|
|
17
17
|
/**
|
|
18
18
|
* Sets focus on the component.
|
|
19
19
|
*
|
|
@@ -122,7 +122,7 @@ class Flow extends LitElement {
|
|
|
122
122
|
}
|
|
123
123
|
findSelectedFlowItemIndex(items) {
|
|
124
124
|
const selectedItem = items.slice(0).reverse().find((item) => !!item.selected);
|
|
125
|
-
return items.indexOf(selectedItem);
|
|
125
|
+
return selectedItem ? items.indexOf(selectedItem) : -1;
|
|
126
126
|
}
|
|
127
127
|
ensureSelectedFlowItemExists() {
|
|
128
128
|
const { items } = this;
|