@esri/calcite-components 5.1.1-next.6 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/{BTSHRUHD.js → 2J4U5E4U.js} +1 -1
- package/dist/cdn/{FZTLSQJL.js → 2JJ5YBBT.js} +1 -1
- package/dist/cdn/{KQGUXAM6.js → 2P3LOGHK.js} +1 -1
- package/dist/cdn/{RIEKXKB2.js → 34ENIUR5.js} +1 -1
- package/dist/cdn/{YNG6JO67.js → 3KWJQXAT.js} +1 -1
- package/dist/cdn/{E4MGJ47Y.js → 3RRY5HHA.js} +1 -1
- package/dist/cdn/{MD2UCHOX.js → 3TYJSBP3.js} +1 -1
- package/dist/cdn/44HFP2I6.js +2 -0
- package/dist/cdn/44VCOKJX.js +2 -0
- package/dist/cdn/{CUSR767T.js → 47Q2AE5B.js} +1 -1
- package/dist/cdn/{CDGEWGDD.js → 4NUFBGFK.js} +1 -1
- package/dist/cdn/{7YNDWV76.js → 4UHTWXNV.js} +1 -1
- package/dist/cdn/{72EJ64LI.js → 524MMG22.js} +1 -1
- package/dist/cdn/{Y6WCKCHJ.js → 5D7IEY6J.js} +1 -1
- package/dist/cdn/{CUTXFNYN.js → 5O6YGOJE.js} +1 -1
- package/dist/cdn/{VCDOY22T.js → 5VAPN2S2.js} +1 -1
- package/dist/cdn/{ZEEFJOPQ.js → 6HRHKHF5.js} +1 -1
- package/dist/cdn/6S3G75WP.js +2 -0
- package/dist/cdn/6SZY5PY7.js +2 -0
- package/dist/cdn/{GEKASHNF.js → 6V3FX2W2.js} +1 -1
- package/dist/cdn/{FE3TGEP7.js → 6VDGKXTH.js} +1 -1
- package/dist/cdn/{HQHM5NWX.js → 6VP3K6WL.js} +1 -1
- package/dist/cdn/{6N246L5H.js → 6X3QWKZL.js} +1 -1
- package/dist/cdn/{ERBKUSSX.js → 6XMUSNRS.js} +1 -1
- package/dist/cdn/{773VWCGD.js → 7B4FOF3S.js} +1 -1
- package/dist/cdn/{SBQVCX2M.js → 7QS3Z4ZJ.js} +1 -1
- package/dist/cdn/{34WAUXUE.js → 7SDGC2RW.js} +1 -1
- package/dist/cdn/A6V4I2J3.js +2 -0
- package/dist/cdn/{QN4XN67Z.js → ALLL4LZ4.js} +1 -1
- package/dist/cdn/BCRYMNH7.js +2 -0
- package/dist/cdn/{CBUNIAKL.js → BSMPD6VA.js} +1 -1
- package/dist/cdn/C462ZIJD.js +2 -0
- package/dist/cdn/{QABVNEOF.js → C4DW27AP.js} +1 -1
- package/dist/cdn/C4OX3FC4.js +2 -0
- package/dist/cdn/{RZR44QGM.js → CDNETLLO.js} +1 -1
- package/dist/cdn/{NDVX6CLP.js → CENYPZ3Y.js} +1 -1
- package/dist/cdn/{RVXZUGJA.js → CEWOZ7LP.js} +1 -1
- package/dist/cdn/{WVJUNLFN.js → CM45J66U.js} +1 -1
- package/dist/cdn/{VYXKMJSU.js → COXLBEPM.js} +1 -1
- package/dist/cdn/CVJBK7K3.js +2 -0
- package/dist/cdn/{RUNWK23I.js → DDUIHGBF.js} +1 -1
- package/dist/cdn/{XCNAJ4XA.js → DK3SDSZL.js} +1 -1
- package/dist/cdn/{DJMAPSDY.js → DP2TY4KH.js} +1 -1
- package/dist/cdn/{TPML2DIA.js → E6X6BQLH.js} +1 -1
- package/dist/cdn/{JMKB4CRU.js → E7GXKIIO.js} +1 -1
- package/dist/cdn/{3XFDQDVC.js → ECVX7SVS.js} +1 -1
- package/dist/cdn/{UE4QYUAU.js → ELXBBUY5.js} +1 -1
- package/dist/cdn/{F5MS5PBN.js → EQKCU4NC.js} +1 -1
- package/dist/cdn/{SH7DQCS7.js → ETEMG44R.js} +1 -1
- package/dist/cdn/{MWMTHMMN.js → G2G6FHMB.js} +1 -1
- package/dist/cdn/{VVJGLEIA.js → GCAYSD7G.js} +1 -1
- package/dist/cdn/{YBFI2FQL.js → GDFQSWZ7.js} +1 -1
- package/dist/cdn/{72XY7IDN.js → GDYGEN45.js} +1 -1
- package/dist/cdn/{G62VTWNT.js → GTH6QFMV.js} +1 -1
- package/dist/cdn/{WAXTXFBL.js → HA65OOQD.js} +1 -1
- package/dist/cdn/HYIVUAZU.js +2 -0
- package/dist/cdn/{UIFHJ5IO.js → I4IDQ735.js} +1 -1
- package/dist/cdn/{O6PZKJ7R.js → ICGT7C6U.js} +1 -1
- package/dist/cdn/{3BUDIEL3.js → ID2LCYSN.js} +1 -1
- package/dist/cdn/{5RJTKL4J.js → IEWVQCQW.js} +1 -1
- package/dist/cdn/{3H6RVKMN.js → IHYNJVS4.js} +1 -1
- package/dist/cdn/{5N32D533.js → IMUM436K.js} +1 -1
- package/dist/cdn/{PJSI5N6F.js → IRANNKJ2.js} +1 -1
- package/dist/cdn/{C4DX6ZIA.js → JCVLN6XL.js} +1 -1
- package/dist/cdn/{5QXKHC54.js → JDVSVNSE.js} +1 -1
- package/dist/cdn/{6MUZLYOR.js → JGCJVDJA.js} +1 -1
- package/dist/cdn/{6UM5PQBD.js → JPPCKAMD.js} +1 -1
- package/dist/cdn/{OWJYARYV.js → JSXQ6NFN.js} +1 -1
- package/dist/cdn/KCN4PBFZ.js +2 -0
- package/dist/cdn/{7M4ANW77.js → KJCVGOXF.js} +1 -1
- package/dist/cdn/{OXKGEAUB.js → KLNQGCK2.js} +1 -1
- package/dist/cdn/KOWFGIAY.js +2 -0
- package/dist/cdn/{Y44WJ7Z2.js → KXD6O3ZI.js} +1 -1
- package/dist/cdn/{TFTS26NS.js → L3D2OBOR.js} +1 -1
- package/dist/cdn/L5IKT3WY.js +2 -0
- package/dist/cdn/LGB6OAXT.js +2 -0
- package/dist/cdn/{3NNR2AZU.js → LI2CATYC.js} +1 -1
- package/dist/cdn/{4NYY44U4.js → LJSR66HF.js} +1 -1
- package/dist/cdn/{YFUBBPNI.js → LKYA2H2B.js} +1 -1
- package/dist/cdn/{MRRVOAJL.js → LOJBKHVF.js} +1 -1
- package/dist/cdn/{A332WZ6V.js → MHE72N53.js} +1 -1
- package/dist/cdn/{REW7C42W.js → MW5MGBT4.js} +1 -1
- package/dist/cdn/{5SYOHCLD.js → NBAYHB3K.js} +1 -1
- package/dist/cdn/{3VNZC64N.js → NCSMOKFP.js} +1 -1
- package/dist/cdn/{XTGDCTQE.js → NG7BG3QY.js} +1 -1
- package/dist/cdn/NL77UDLL.js +2 -0
- package/dist/cdn/{D2HPEC7F.js → NTD2BJWG.js} +1 -1
- package/dist/cdn/{FKX46Z6K.js → ODGJXDZK.js} +1 -1
- package/dist/cdn/{OGNY6ZIB.js → ORIGVFX7.js} +1 -1
- package/dist/cdn/{N6V2UT62.js → OWIJSXYV.js} +1 -1
- package/dist/cdn/{EJUEMY56.js → OXCL3M4W.js} +1 -1
- package/dist/cdn/{I2DNOFC6.js → PB3LTBSS.js} +1 -1
- package/dist/cdn/{PW2XM5HR.js → PHEMAFCT.js} +1 -1
- package/dist/cdn/{FKPCRFUW.js → PIR7PWBO.js} +1 -1
- package/dist/cdn/PM5MZR4Z.js +2 -0
- package/dist/cdn/{TQJK5WF5.js → Q4V5DVKS.js} +1 -1
- package/dist/cdn/{YI3ZMHS5.js → Q56UST3A.js} +1 -1
- package/dist/cdn/{TMWGSGAP.js → QC5NB4VL.js} +1 -1
- package/dist/cdn/{5L5RJCKK.js → QEJBAQOY.js} +1 -1
- package/dist/cdn/{JDAOWOTY.js → QGF4JJQO.js} +1 -1
- package/dist/cdn/{DZSC3TJX.js → QZJ7GLQ3.js} +1 -1
- package/dist/cdn/RK2LH73E.js +2 -0
- package/dist/cdn/{5CBFI2KM.js → ROJYTRK6.js} +1 -1
- package/dist/cdn/{DAXLXKIY.js → RRKFBHMW.js} +1 -1
- package/dist/cdn/{KCENWQ6Z.js → RUUD543Z.js} +1 -1
- package/dist/cdn/{N3YQ6P66.js → S2BIRHQ7.js} +1 -1
- package/dist/cdn/{CQYI4Z2Z.js → SJCWFQNF.js} +1 -1
- package/dist/cdn/SNJLHXVG.js +2 -0
- package/dist/cdn/{IXQQO6HC.js → SNY2QKQJ.js} +1 -1
- package/dist/cdn/{27MK2V4G.js → ST6WRTR2.js} +1 -1
- package/dist/cdn/{WYGNUS2B.js → SW5TNX5V.js} +1 -1
- package/dist/cdn/SXXFODM6.js +2 -0
- package/dist/cdn/{4Q7PL2KY.js → TKK3AWQJ.js} +1 -1
- package/dist/cdn/{45C4ENM6.js → TTCZVBEF.js} +1 -1
- package/dist/cdn/TV47CRME.js +2 -0
- package/dist/cdn/{DEQNFOAS.js → TVU7KEKM.js} +1 -1
- package/dist/cdn/{C4PPQBLW.js → TVYIJRI2.js} +1 -1
- package/dist/cdn/{3XMNPYNB.js → TWVXE232.js} +1 -1
- package/dist/cdn/{32QFEQZS.js → TYQB2FN4.js} +1 -1
- package/dist/cdn/{ZBN5LXKS.js → U4GRIQVY.js} +1 -1
- package/dist/cdn/{Z2GSU7Q2.js → U7OJQ4EC.js} +1 -1
- package/dist/cdn/UCWB5EGV.js +2 -0
- package/dist/cdn/{CZPSEMDH.js → UTVGUMUM.js} +1 -1
- package/dist/cdn/{NAJTDRNC.js → V3X47NBI.js} +1 -1
- package/dist/cdn/{R4C3WA5S.js → V7PYDILT.js} +1 -1
- package/dist/cdn/{5JIKOOZ6.js → V7YPIVAX.js} +1 -1
- package/dist/cdn/{ROY5CHB3.js → VDJMOKVP.js} +1 -1
- package/dist/cdn/{2MRL4RKW.js → VEZBAZZG.js} +1 -1
- package/dist/cdn/VXBJOP6X.js +2 -0
- package/dist/cdn/{74UIHSVE.js → VZ2YR2UG.js} +1 -1
- package/dist/cdn/{KB2WIMAL.js → W57IL7KF.js} +1 -1
- package/dist/cdn/{5WFJNGXP.js → WCUO6JQN.js} +1 -1
- package/dist/cdn/{F3E7QPPC.js → WER7FADP.js} +1 -1
- package/dist/cdn/{F7RQCNJ4.js → WQCT4VLB.js} +1 -1
- package/dist/cdn/X3HV2NYH.js +2 -0
- package/dist/cdn/{SGZ3IG5W.js → XRUJ4D7O.js} +1 -1
- package/dist/cdn/{EHS7L663.js → XT4GLBAQ.js} +1 -1
- package/dist/cdn/{GYYFBZS2.js → Y7O6UR4T.js} +1 -1
- package/dist/cdn/{IHGSINVA.js → YHAJICJ2.js} +1 -1
- package/dist/cdn/{IRDSJTUK.js → YKL7MIG5.js} +1 -1
- package/dist/cdn/YYAYEKGB.js +2 -0
- package/dist/cdn/{TRN7FUFM.js → Z3IP3JBL.js} +1 -1
- package/dist/cdn/ZK2W2KJX.js +2 -0
- package/dist/cdn/ZOEJDQXA.js +2 -0
- package/dist/cdn/{RDOHAXOA.js → ZRMTOZ3B.js} +1 -1
- 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 +3 -15
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/label.js +6 -6
- package/dist/chunks/locale.js +6 -3
- package/dist/chunks/manager.js +5 -5
- package/dist/chunks/resources10.js +63 -0
- package/dist/chunks/resources5.js +27 -52
- package/dist/chunks/resources6.js +48 -45
- package/dist/chunks/resources7.js +49 -7
- package/dist/chunks/resources8.js +9 -11
- package/dist/chunks/resources9.js +4 -48
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useTime.js +45 -40
- package/dist/chunks/utils2.js +59 -6
- 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 +4 -6
- 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-card/customElement.d.ts +1 -1
- package/dist/components/calcite-carousel/customElement.js +6 -5
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -4
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -27
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +292 -143
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +11 -2
- 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.js +2 -2
- package/dist/components/calcite-input/customElement.js +5 -2
- package/dist/components/calcite-input-date-picker/customElement.js +5 -10
- package/dist/components/calcite-input-text/customElement.js +2 -2
- 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 +6 -5
- package/dist/components/calcite-list-item/customElement.d.ts +6 -6
- package/dist/components/calcite-list-item/customElement.js +16 -13
- 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 +0 -3
- package/dist/components/calcite-meter/customElement.d.ts +6 -6
- package/dist/components/calcite-meter/customElement.js +7 -14
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +0 -3
- 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 +9 -13
- package/dist/components/calcite-sheet/customElement.js +27 -32
- 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 +1 -2
- package/dist/components/calcite-tab-nav/customElement.d.ts +3 -3
- package/dist/components/calcite-tab-nav/customElement.js +7 -12
- package/dist/components/calcite-tab-title/customElement.d.ts +3 -3
- package/dist/components/calcite-tab-title/customElement.js +0 -2
- package/dist/components/calcite-table/customElement.js +14 -22
- package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
- package/dist/components/calcite-table-cell/customElement.js +0 -6
- package/dist/components/calcite-table-header/customElement.d.ts +4 -4
- package/dist/components/calcite-table-header/customElement.js +0 -2
- package/dist/components/calcite-table-row/customElement.js +3 -5
- package/dist/components/calcite-tabs/customElement.js +2 -3
- package/dist/components/calcite-text-area/customElement.d.ts +12 -12
- package/dist/components/calcite-text-area/customElement.js +3 -5
- 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 +15 -35
- 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 +6 -7
- package/dist/components/calcite-tree-item/customElement.d.ts +3 -3
- package/dist/components/calcite-tree-item/customElement.js +6 -12
- 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/utils/dom.d.ts +1 -1
- package/package.json +9 -8
- package/dist/cdn/2PEF7GQE.js +0 -2
- package/dist/cdn/2VL3OCAZ.js +0 -2
- package/dist/cdn/6W4CWLXH.js +0 -2
- package/dist/cdn/73EQ5TEB.js +0 -2
- package/dist/cdn/74CLXGQH.js +0 -2
- package/dist/cdn/7AOQ4FPG.js +0 -2
- package/dist/cdn/ATWAUE4R.js +0 -2
- package/dist/cdn/BZJYGCDK.js +0 -2
- package/dist/cdn/C2BK5CUC.js +0 -2
- package/dist/cdn/I5HZNPIE.js +0 -2
- package/dist/cdn/JQIHTMWX.js +0 -2
- package/dist/cdn/KJNTF66K.js +0 -2
- package/dist/cdn/M2TFDONT.js +0 -2
- package/dist/cdn/OB3Z74X6.js +0 -2
- package/dist/cdn/OJO5NPP3.js +0 -2
- package/dist/cdn/QXPWDVC2.js +0 -2
- package/dist/cdn/SS4J7QES.js +0 -2
- package/dist/cdn/U6NA5WAH.js +0 -2
- package/dist/cdn/UOSSQPFY.js +0 -2
- package/dist/cdn/VWQPK5JA.js +0 -2
- package/dist/cdn/VYZ6WAWT.js +0 -2
- package/dist/cdn/W3N2DKPC.js +0 -2
- package/dist/cdn/WRQD4O6A.js +0 -2
- package/dist/cdn/WUBPEGFV.js +0 -2
- package/dist/cdn/Z7NNDJEN.js +0 -2
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose16.json +0 -1
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose24.json +0 -1
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose32.json +0 -1
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose16.json +0 -1
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose24.json +0 -1
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose32.json +0 -1
- package/dist/cdn/assets/icon/orientedImagerySceneOnly16.json +0 -1
- package/dist/cdn/assets/icon/orientedImagerySceneOnly24.json +0 -1
- package/dist/cdn/assets/icon/orientedImagerySceneOnly32.json +0 -1
- package/dist/cdn/assets/icon/parquetFeatureLayer16.json +0 -1
- package/dist/cdn/assets/icon/parquetFeatureLayer24.json +0 -1
- package/dist/cdn/assets/icon/parquetFeatureLayer32.json +0 -1
- /package/dist/cdn/{IYGANVDT.js → 72YUATHS.js} +0 -0
- /package/dist/cdn/{MYDCGCGV.js → IIA2H2SU.js} +0 -0
- /package/dist/cdn/{DCWL5FUH.js → LKL63VXR.js} +0 -0
- /package/dist/cdn/{UM6KICQF.js → MO64UYDH.js} +0 -0
- /package/dist/cdn/{R6HABYRV.js → Q55YTOMB.js} +0 -0
|
@@ -14,7 +14,7 @@ import { s as styles$1 } from "../../chunks/sortable.js";
|
|
|
14
14
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
15
15
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
16
16
|
import { a as listSelector, g as getDepth, c as getListItemChildren } from "../../chunks/utils4.js";
|
|
17
|
-
import { a as activeCellTestAttribute, I as ICONS, C as CSS, S as SLOTS } from "../../chunks/
|
|
17
|
+
import { a as activeCellTestAttribute, I as ICONS, C as CSS, S as SLOTS } from "../../chunks/resources10.js";
|
|
18
18
|
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;flex-direction:column}:host([scale=s]){--calcite-internal-list-action-spacing: var(--calcite-spacing-xxs)}:host([scale=m]){--calcite-internal-list-action-spacing: var(--calcite-spacing-xxs)}:host([scale=l]){--calcite-internal-list-action-spacing: var(--calcite-spacing-xs)}:host([filter-hidden]),:host([closed]){display:none}.wrapper--bordered{border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.container{box-sizing:border-box;display:flex;flex:1 1 0%;overflow:hidden;background-color:var(--calcite-list-background-color, var(--calcite-color-foreground-1))}.container *{box-sizing:border-box}.container--border{position:relative}.container--border:before{position:absolute;inline-size:var(--calcite-border-width-lg);inset-block:0;inset-inline-start:0;background-color:transparent;content:""}.container--border-selected:before{background-color:var(--calcite-list-selection-border-color, var(--calcite-color-brand))}.container--border-selected:focus{box-shadow:inset var(--calcite-border-width-lg) 0 0 0 var(--calcite-list-selection-border-color, var(--calcite-color-brand))}.container--highlight-selected{background-color:var(--calcite-color-surface-highlight)}.nested-container{display:none;flex-direction:column;border-width:0px;border-style:solid;border-color:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3));margin-inline-start:var(--calcite-list-spacing-indent, 1.5rem)}.nested-container--expanded{display:flex}.selection-container{display:flex;padding-block:0px;color:var(--calcite-list-icon-color, var(--calcite-color-border-input))}:host([selected]) .selection-container{color:var(--calcite-list-icon-color, var(--calcite-color-brand))}.content-container-wrapper{display:flex;flex:1 1 auto}.content-container-wrapper--bordered{border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3))}.content-container{display:flex;flex:1 1 auto;align-items:stretch;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-list-content-text-color, var(--calcite-color-text-2))}.content-container--unavailable{opacity:var(--calcite-opacity-disabled)}:host(:not([interaction-mode=static])):not([disabled]):not([selected]) .container:hover .selection-container--single{color:var(--calcite-list-icon-color, var(--calcite-color-border-input))}:host(:not([interaction-mode=static])):not([disabled]) .expanded-container:hover{color:var(--calcite-list-icon-color, var(--calcite-color-text-1))}:host(:not([interaction-mode=static]))[selected]:hover .selection-container,:host(:not([interaction-mode=static]))[selected]:hover .selection-container--single{color:var(--calcite-list-icon-color, var(--calcite-color-brand))}:host(:not([interaction-mode=static])) .content-container{-webkit-user-select:none;user-select:none}:host(:not([interaction-mode=static])) .container--hover:hover{cursor:pointer;background-color:var(--calcite-list-background-color-hover, var(--calcite-color-foreground-2))}:host(:not([interaction-mode=static])) .container:active{background-color:var(--calcite-list-background-color-press, var(--calcite-color-foreground-3))}:host(:not([interaction-mode=static])) .icon:hover,:host(:not([interaction-mode=static])) .icon:active{color:var(--calcite-color-text-1)}.row,.grid-cell{outline-color:transparent}.row{position:relative}.row:focus,.grid-cell: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))))}.content,.custom-content{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;line-height:var(--calcite-font-line-height-relative-snug)}.label{color:var(--calcite-list-label-text-color, var(--calcite-color-text-1))}.description{color:var(--calcite-list-description-text-color, var(--calcite-color-text-3))}.icon{align-self:center;color:var(--calcite-list-icon-color, var(--calcite-color-text-3))}.actions-start,.actions-end{margin-inline-end:var(--calcite-internal-list-action-spacing);gap:var(--calcite-internal-list-action-spacing)}:host([scale=s]) .content-container{gap:var(--calcite-spacing-sm);min-block-size:32px;padding-block:var(--calcite-spacing-xxs);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .content,:host([scale=s]) .custom-content,:host([scale=s]) .label{font-size:var(--calcite-font-size--2)}:host([scale=s]) .description{font-size:var(--calcite-font-size--3)}:host([scale=s][display-mode=flat]:not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=s][display-mode=flat]:not([drag-handle])) .selection-container{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s][display-mode=flat][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=s][display-mode=nested]) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-sm)}:host([scale=s][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=s][display-mode=nested][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs)}:host([scale=m]) .content-container{gap:var(--calcite-spacing-sm);min-block-size:40px;padding-block:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .content,:host([scale=m]) .custom-content{font-size:var(--calcite-font-size--2)}:host([scale=m]) .label{font-size:var(--calcite-font-size--1)}:host([scale=m]) .description{font-size:var(--calcite-font-size--2)}:host([scale=m][display-mode=flat]) .container{padding-inline-start:var(--calcite-spacing-md)}:host([scale=m][display-mode=flat]) .selection-container{padding-inline-end:var(--calcite-spacing-sm)}:host([scale=m][display-mode=flat][drag-handle]) .container{padding-inline-start:0}:host([scale=m][display-mode=flat][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs) var(--calcite-spacing-sm)}:host([scale=m][display-mode=nested]) .container{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=m][display-mode=nested]) .selection-container{padding-inline-end:var(--calcite-spacing-xxs)}:host([scale=m][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-md)}:host([scale=m][display-mode=nested][drag-handle]) .container{padding-inline-start:0}:host([scale=m][display-mode=nested][drag-handle]) .selection-container{padding-inline:var(--calcite-spacing-xxs)}:host([scale=l]) .content-container{gap:var(--calcite-spacing-md);min-block-size:56px;padding-block:var(--calcite-space-sm-plus);padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .content,:host([scale=l]) .custom-content,:host([scale=l]) .label{font-size:var(--calcite-font-size-0)}:host([scale=l]) .description{font-size:var(--calcite-font-size--1)}:host([scale=l]) .nested-container{margin-inline-start:1.75rem}:host([scale=l][display-mode=flat]) .container{padding-inline-start:var(--calcite-spacing-lg)}:host([scale=l][display-mode=flat]) .selection-container{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l][display-mode=flat][drag-handle]) .container{padding-inline-start:0}:host([scale=l][display-mode=flat][drag-handle]) .selection-container{padding-inline-end:var(--calcite-spacing-md)}:host([scale=l][display-mode=nested]) .container{padding-inline-start:var(--calcite-spacing-xxs)}:host([scale=l][display-mode=nested][drag-handle]) .container{padding-inline-start:0}:host([scale=l][display-mode=nested][selection-appearance=icon]:not([selection-mode=none]):not([drag-handle])) .container{padding-inline-start:var(--calcite-spacing-lg)}.label,.description,.content-bottom{font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}:host([selected]) .label{font-weight:var(--calcite-font-weight-medium)}:host([selected]) .icon{color:var(--calcite-list-icon-color, var(--calcite-color-text-1))}:host([selected]) .description{color:var(--calcite-list-description-text-color, var(--calcite-color-text-2))}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-start,.content-end{flex:1 1 auto}.content-start ::slotted(calcite-icon),.content-end ::slotted(calcite-icon){align-self:center}.content-bottom{display:flex;flex-direction:column}.content-container--has-center-content .content-start,.content-container--has-center-content .content-end{flex:0 1 auto}.expanded-container{color:var(--calcite-list-icon-color, var(--calcite-color-text-3));padding-inline:var(--calcite-spacing-xxs)}.actions-start,.actions-end,.content-start,.content-end,.selection-container,.drag-container,.expanded-container,.close{display:flex;align-items:center}.drag-container,.selection-container,.expanded-container{padding-block-end:var(--calcite-spacing-px)}.expanded-container,.selection-container{cursor:pointer}.actions-start,.actions-end{position:relative;padding:0}.actions-start ::slotted(calcite-action),.actions-start ::slotted(calcite-action-menu),.actions-start ::slotted(calcite-sort-handle),.actions-start ::slotted(calcite-dropdown),.actions-end ::slotted(calcite-action),.actions-end ::slotted(calcite-action-menu),.actions-end ::slotted(calcite-sort-handle),.actions-end ::slotted(calcite-dropdown){color:inherit}.row:focus:after,.row:focus:before{position:absolute;content:"";inline-size:.125rem;z-index:var(--calcite-z-index-header);background-color:var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));inset-block:0}.row:focus:before{inset-inline-start:0}.row:focus:after{inset-inline-end:0}.container--border:focus:before{display:none}::slotted(calcite-list:empty){border-block-start-width:0px}.drag-container calcite-action,.drag-container ::slotted(calcite-action),.actions-start calcite-action,.actions-start ::slotted(calcite-action),.actions-end calcite-action,.actions-end ::slotted(calcite-action),.close calcite-action,.close ::slotted(calcite-action){align-items:center}.drag-container{margin-inline:var(--calcite-spacing-xxs)}:host([display-mode=nested]) .drag-container,:host([selection-appearance=icon]:not([selection-mode=none])) .drag-container{margin-inline:var(--calcite-spacing-xxs) 0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
19
19
|
const focusMap = /* @__PURE__ */ new Map();
|
|
20
20
|
class ListItem extends LitElement {
|
|
@@ -36,6 +36,7 @@ class ListItem extends LitElement {
|
|
|
36
36
|
this.hasContentEnd = false;
|
|
37
37
|
this.hasContentStart = false;
|
|
38
38
|
this.hasCustomContent = false;
|
|
39
|
+
this.level = null;
|
|
39
40
|
this.expandable = false;
|
|
40
41
|
this.active = false;
|
|
41
42
|
this.bordered = false;
|
|
@@ -47,11 +48,13 @@ class ListItem extends LitElement {
|
|
|
47
48
|
this.dragHandle = false;
|
|
48
49
|
this.expanded = false;
|
|
49
50
|
this.filterHidden = false;
|
|
51
|
+
this.interactionMode = null;
|
|
50
52
|
this.displayMode = "flat";
|
|
51
53
|
this.addToItems = [];
|
|
52
54
|
this.moveToItems = [];
|
|
53
55
|
this.scale = "m";
|
|
54
56
|
this.selected = false;
|
|
57
|
+
this.selectionMode = null;
|
|
55
58
|
this.sortHandleOpen = false;
|
|
56
59
|
this.unavailable = false;
|
|
57
60
|
this.topLayerDisabled = false;
|
|
@@ -108,7 +111,7 @@ class ListItem extends LitElement {
|
|
|
108
111
|
connectedCallback() {
|
|
109
112
|
super.connectedCallback();
|
|
110
113
|
const { el } = this;
|
|
111
|
-
this.parentListEl = el.closest(listSelector)
|
|
114
|
+
this.parentListEl = el.closest(listSelector);
|
|
112
115
|
this.level = getDepth(el) + 1;
|
|
113
116
|
this.setSelectionDefaults();
|
|
114
117
|
}
|
|
@@ -152,7 +155,7 @@ class ListItem extends LitElement {
|
|
|
152
155
|
}
|
|
153
156
|
activeHandler(active) {
|
|
154
157
|
if (!active) {
|
|
155
|
-
this.focusCell(
|
|
158
|
+
this.focusCell(null, false);
|
|
156
159
|
}
|
|
157
160
|
}
|
|
158
161
|
handleClosedChange() {
|
|
@@ -290,7 +293,7 @@ class ListItem extends LitElement {
|
|
|
290
293
|
this.actionsStartRef.value,
|
|
291
294
|
this.contentRef.value,
|
|
292
295
|
this.actionsEndRef.value
|
|
293
|
-
].filter((el) =>
|
|
296
|
+
].filter((el) => el && !el.hidden);
|
|
294
297
|
}
|
|
295
298
|
handleItemKeyDown(event) {
|
|
296
299
|
if (event.defaultPrevented) {
|
|
@@ -301,7 +304,7 @@ class ListItem extends LitElement {
|
|
|
301
304
|
const { containerRef, actionsStartRef: { value: actionsStartEl }, actionsEndRef: { value: actionsEndEl }, expanded, expandable } = this;
|
|
302
305
|
const cells = this.getGridCells();
|
|
303
306
|
const currentIndex = cells.findIndex((cell) => composedPath.includes(cell));
|
|
304
|
-
if (key === "Enter" &&
|
|
307
|
+
if (key === "Enter" && !composedPath.includes(actionsStartEl) && !composedPath.includes(actionsEndEl)) {
|
|
305
308
|
event.preventDefault();
|
|
306
309
|
this.toggleSelected(event.shiftKey);
|
|
307
310
|
} else if (key === "ArrowRight") {
|
|
@@ -310,7 +313,7 @@ class ListItem extends LitElement {
|
|
|
310
313
|
if (currentIndex === -1) {
|
|
311
314
|
if (!expanded && expandable) {
|
|
312
315
|
this.toggle(true);
|
|
313
|
-
this.focusCell();
|
|
316
|
+
this.focusCell(null);
|
|
314
317
|
} else if (cells[0]) {
|
|
315
318
|
this.focusCell(cells[0]);
|
|
316
319
|
}
|
|
@@ -321,27 +324,27 @@ class ListItem extends LitElement {
|
|
|
321
324
|
event.preventDefault();
|
|
322
325
|
const prevIndex = currentIndex - 1;
|
|
323
326
|
if (currentIndex === -1) {
|
|
324
|
-
this.focusCell();
|
|
327
|
+
this.focusCell(null);
|
|
325
328
|
if (expanded && expandable) {
|
|
326
329
|
this.toggle(false);
|
|
327
330
|
} else {
|
|
328
331
|
this.calciteInternalFocusPreviousItem.emit();
|
|
329
332
|
}
|
|
330
333
|
} else if (currentIndex === 0) {
|
|
331
|
-
this.focusCell();
|
|
334
|
+
this.focusCell(null);
|
|
332
335
|
containerRef.value.focus();
|
|
333
336
|
} else if (cells[currentIndex] && cells[prevIndex]) {
|
|
334
337
|
this.focusCell(cells[prevIndex]);
|
|
335
338
|
}
|
|
336
339
|
}
|
|
337
340
|
}
|
|
338
|
-
|
|
339
|
-
this.focusCell();
|
|
341
|
+
focusCellNull() {
|
|
342
|
+
this.focusCell(null);
|
|
340
343
|
}
|
|
341
344
|
setFocusCell(focusEl, focusedEl, saveFocusIndex) {
|
|
342
345
|
const { parentListEl } = this;
|
|
343
346
|
if (saveFocusIndex) {
|
|
344
|
-
focusMap.set(parentListEl,
|
|
347
|
+
focusMap.set(parentListEl, null);
|
|
345
348
|
}
|
|
346
349
|
const gridCells = this.getGridCells();
|
|
347
350
|
gridCells.forEach((tableCell) => {
|
|
@@ -460,14 +463,14 @@ class ListItem extends LitElement {
|
|
|
460
463
|
const showSelectionBorder = selectionMode !== "none" && selectionAppearance === "border";
|
|
461
464
|
const showSelectionHighlight = selectionMode !== "none" && selectionAppearance === "highlight";
|
|
462
465
|
const containerInteractive = interactionMode === "interactive";
|
|
463
|
-
return this.interactiveContainer({ disabled, children: html`<div class=${safeClassMap({ [CSS.wrapper]: true, [CSS.wrapperBordered]: wrapperBordered })}><div .ariaExpanded=${expandable ? expanded :
|
|
466
|
+
return this.interactiveContainer({ disabled, children: html`<div class=${safeClassMap({ [CSS.wrapper]: true, [CSS.wrapperBordered]: wrapperBordered })}><div .ariaExpanded=${expandable ? expanded : null} .ariaLabel=${label} .ariaLevel=${level} .ariaSelected=${selected} class=${safeClassMap({
|
|
464
467
|
[CSS.row]: true,
|
|
465
468
|
[CSS.container]: true,
|
|
466
469
|
[CSS.containerHover]: containerInteractive,
|
|
467
470
|
[CSS.containerBorder]: showSelectionBorder,
|
|
468
471
|
[CSS.containerBorderSelected]: showSelectionBorder && selected,
|
|
469
472
|
[CSS.containerHighlightSelected]: showSelectionHighlight && selected
|
|
470
|
-
})} .hidden=${closed || filterHidden} @focus=${this.
|
|
473
|
+
})} .hidden=${closed || filterHidden} @focus=${this.focusCellNull} @focusin=${this.emitInternalListItemActive} @keydown=${this.handleItemKeyDown} role=row .tabIndex=${active ? 0 : -1} ${ref(this.containerRef)}>${this.renderDragHandle()}${this.renderSelected()}${this.renderExpanded()}<div class=${safeClassMap({
|
|
471
474
|
[CSS.contentContainerWrapper]: true,
|
|
472
475
|
[CSS.contentContainerWrapperBordered]: contentContainerWrapperBordered
|
|
473
476
|
})}>${this.renderActionsStart()}${this.renderContentContainer()}${this.renderActionsEnd()}</div></div>${this.renderContentBottom()}</div>${this.renderDefaultContainer()}` });
|
|
@@ -15,7 +15,7 @@ export abstract class ListItemGroup extends LitElement {
|
|
|
15
15
|
*/
|
|
16
16
|
accessor disabled: boolean;
|
|
17
17
|
/** Specifies the heading text for the nested `calcite-list-item` rows. */
|
|
18
|
-
accessor heading: string
|
|
18
|
+
accessor heading: string;
|
|
19
19
|
/**
|
|
20
20
|
* Specifies the size of the component.
|
|
21
21
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
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
|
-
import { M as MAX_COLUMNS } from "../../chunks/
|
|
5
|
+
import { M as MAX_COLUMNS } from "../../chunks/resources10.js";
|
|
6
6
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
7
7
|
const CSS = {
|
|
8
8
|
container: "container",
|
|
@@ -82,9 +82,9 @@ class Loader extends LitElement {
|
|
|
82
82
|
const isDeterminate = type !== "indeterminate";
|
|
83
83
|
const valueNow = Math.floor(value);
|
|
84
84
|
this.el.ariaLabel = label;
|
|
85
|
-
this.el.ariaValueMax = isDeterminate ? "100" :
|
|
86
|
-
this.el.ariaValueMin = isDeterminate ? "0" :
|
|
87
|
-
this.el.ariaValueNow = isDeterminate ? valueNow.toString() :
|
|
85
|
+
this.el.ariaValueMax = isDeterminate ? "100" : void 0;
|
|
86
|
+
this.el.ariaValueMin = isDeterminate ? "0" : void 0;
|
|
87
|
+
this.el.ariaValueNow = isDeterminate ? valueNow.toString() : void 0;
|
|
88
88
|
setAttribute(this.el, "id", id);
|
|
89
89
|
this.el.role = "progressbar";
|
|
90
90
|
return html`<div class=${safeClassMap(CSS.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!inline && isDeterminate && html`<div class=${safeClassMap(CSS.percentage)}>${this.formatValue()}</div>` || ""}</div>${!inline && text && html`<div class=${safeClassMap(CSS.text)}>${text}</div>` || ""}`;
|
|
@@ -25,13 +25,13 @@ export abstract class MenuItem extends LitElement {
|
|
|
25
25
|
*/
|
|
26
26
|
accessor breadcrumb: boolean;
|
|
27
27
|
/** Specifies the URL destination of the component, which can be set as an absolute or relative path. */
|
|
28
|
-
accessor href: string
|
|
28
|
+
accessor href: string;
|
|
29
29
|
/** Specifies an icon to display at the end of the component. */
|
|
30
|
-
accessor iconEnd: IconName
|
|
30
|
+
accessor iconEnd: IconName;
|
|
31
31
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
32
|
-
accessor iconFlipRtl: FlipContext
|
|
32
|
+
accessor iconFlipRtl: FlipContext;
|
|
33
33
|
/** Specifies an icon to display at the start of the component. */
|
|
34
|
-
accessor iconStart: IconName
|
|
34
|
+
accessor iconStart: IconName;
|
|
35
35
|
/**
|
|
36
36
|
* Specifies an accessible label for the component.
|
|
37
37
|
*
|
|
@@ -54,15 +54,15 @@ export abstract class MenuItem extends LitElement {
|
|
|
54
54
|
*
|
|
55
55
|
* @see [MDN - rel](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel)
|
|
56
56
|
*/
|
|
57
|
-
accessor rel: string
|
|
57
|
+
accessor rel: string;
|
|
58
58
|
/**
|
|
59
59
|
* Specifies where to open the linked document defined in the `href` property.
|
|
60
60
|
*
|
|
61
61
|
* @see [MDN - target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
|
|
62
62
|
*/
|
|
63
|
-
accessor target: string
|
|
63
|
+
accessor target: string;
|
|
64
64
|
/** Specifies the text to display. */
|
|
65
|
-
accessor text: string
|
|
65
|
+
accessor text: string;
|
|
66
66
|
/**
|
|
67
67
|
* Sets focus on the component.
|
|
68
68
|
*
|
|
@@ -45,12 +45,9 @@ class MenuItem extends LitElement {
|
|
|
45
45
|
this.anchorRef = createRef();
|
|
46
46
|
this.direction = useDirection();
|
|
47
47
|
this.dropdownActionRef = createRef();
|
|
48
|
-
this.isFocused = false;
|
|
49
48
|
this.messages = useT9n();
|
|
50
49
|
this.focusSetter = useSetFocus()(this);
|
|
51
50
|
this.hasSubmenu = false;
|
|
52
|
-
this.active = false;
|
|
53
|
-
this.breadcrumb = false;
|
|
54
51
|
this.isTopLevelItem = false;
|
|
55
52
|
this.open = false;
|
|
56
53
|
this.calciteInternalMenuItemKeyEvent = createEvent();
|
|
@@ -42,7 +42,7 @@ export abstract class Meter extends LitElement {
|
|
|
42
42
|
*
|
|
43
43
|
* @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
|
|
44
44
|
*/
|
|
45
|
-
accessor form: string
|
|
45
|
+
accessor form: string;
|
|
46
46
|
/**
|
|
47
47
|
* When `true`, number values are displayed with a group separator corresponding to the language and country format.
|
|
48
48
|
*
|
|
@@ -50,7 +50,7 @@ export abstract class Meter extends LitElement {
|
|
|
50
50
|
*/
|
|
51
51
|
accessor groupSeparator: boolean;
|
|
52
52
|
/** Specifies a high value. When `fillType` is `"range"`, displays a different color when above the specified threshold. */
|
|
53
|
-
accessor high: number
|
|
53
|
+
accessor high: number;
|
|
54
54
|
/**
|
|
55
55
|
* Specifies an accessible label for the component.
|
|
56
56
|
*
|
|
@@ -58,7 +58,7 @@ export abstract class Meter extends LitElement {
|
|
|
58
58
|
*/
|
|
59
59
|
accessor label: string;
|
|
60
60
|
/** Specifies a low value. When `fillType` is `"range"`, displays a different color when above the specified threshold. */
|
|
61
|
-
accessor low: number
|
|
61
|
+
accessor low: number;
|
|
62
62
|
/**
|
|
63
63
|
* Specifies the component's highest allowed value.
|
|
64
64
|
*
|
|
@@ -78,9 +78,9 @@ export abstract class Meter extends LitElement {
|
|
|
78
78
|
*
|
|
79
79
|
* @deprecated in v5.1.0, removal target v6.0.0 - This property has no effect on the component.
|
|
80
80
|
*/
|
|
81
|
-
accessor name: string
|
|
81
|
+
accessor name: string;
|
|
82
82
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
83
|
-
accessor numberingSystem: NumberingSystem
|
|
83
|
+
accessor numberingSystem: NumberingSystem;
|
|
84
84
|
/**
|
|
85
85
|
* When `true`, displays the values of `high`, `low`, `min`, and `max`.
|
|
86
86
|
*
|
|
@@ -106,7 +106,7 @@ export abstract class Meter extends LitElement {
|
|
|
106
106
|
*/
|
|
107
107
|
accessor unitLabel: string;
|
|
108
108
|
/** Specifies the component's value. */
|
|
109
|
-
accessor value: number
|
|
109
|
+
accessor value: number;
|
|
110
110
|
/**
|
|
111
111
|
* When `true`, displays the `value`.
|
|
112
112
|
*
|
|
@@ -39,11 +39,6 @@ class Meter extends LitElement {
|
|
|
39
39
|
this.minPercent = 0;
|
|
40
40
|
this.resizeObserver = createObserver("resize", () => this.resizeHandler());
|
|
41
41
|
this.valueLabelRef = createRef();
|
|
42
|
-
this.currentPercent = 0;
|
|
43
|
-
this.highActive = false;
|
|
44
|
-
this.highPercent = 100;
|
|
45
|
-
this.lowActive = false;
|
|
46
|
-
this.lowPercent = 0;
|
|
47
42
|
this.appearance = "outline-fill";
|
|
48
43
|
this.disabled = false;
|
|
49
44
|
this.fillType = "range";
|
|
@@ -93,8 +88,12 @@ class Meter extends LitElement {
|
|
|
93
88
|
this.updateLabels();
|
|
94
89
|
}
|
|
95
90
|
updateLabels() {
|
|
96
|
-
this.
|
|
97
|
-
|
|
91
|
+
if (this.valueLabelRef.value) {
|
|
92
|
+
this.determineValueLabelPosition();
|
|
93
|
+
}
|
|
94
|
+
if (this.rangeLabels) {
|
|
95
|
+
this.determineVisibleLabels();
|
|
96
|
+
}
|
|
98
97
|
}
|
|
99
98
|
calculateValues() {
|
|
100
99
|
const { min, max, low, high, value } = this;
|
|
@@ -155,12 +154,9 @@ class Meter extends LitElement {
|
|
|
155
154
|
}
|
|
156
155
|
}
|
|
157
156
|
intersects(el1, el2) {
|
|
158
|
-
return
|
|
157
|
+
return el1 && el2 && intersects(el1.getBoundingClientRect(), el2.getBoundingClientRect());
|
|
159
158
|
}
|
|
160
159
|
determineVisibleLabels() {
|
|
161
|
-
if (!this.rangeLabels) {
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
160
|
const { minLabelRef: { value: minLabelEl }, lowLabelRef: { value: lowLabelEl }, highLabelRef: { value: highLabelEl }, maxLabelRef: { value: maxLabelEl } } = this;
|
|
165
161
|
const highMaxOverlap = this.intersects(highLabelEl, maxLabelEl);
|
|
166
162
|
const lowHighOverlap = this.intersects(lowLabelEl, highLabelEl);
|
|
@@ -193,9 +189,6 @@ class Meter extends LitElement {
|
|
|
193
189
|
}
|
|
194
190
|
determineValueLabelPosition() {
|
|
195
191
|
const { valueLabelRef: { value: valueLabelEl }, meterContainerRef: { value: meterContainerEl }, currentPercent } = this;
|
|
196
|
-
if (!valueLabelEl || !meterContainerEl) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
192
|
const valuePosition = currentPercent > 100 ? 100 : currentPercent > 0 ? currentPercent : 0;
|
|
200
193
|
const valueLabelWidth = valueLabelEl.getBoundingClientRect().width;
|
|
201
194
|
const containerWidth = meterContainerEl.getBoundingClientRect().width;
|
|
@@ -26,7 +26,7 @@ export abstract class Pagination extends LitElement {
|
|
|
26
26
|
last?: string;
|
|
27
27
|
};
|
|
28
28
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
29
|
-
accessor numberingSystem: NumberingSystem
|
|
29
|
+
accessor numberingSystem: NumberingSystem;
|
|
30
30
|
/**
|
|
31
31
|
* Specifies the number of items per page.
|
|
32
32
|
*
|
|
@@ -42,10 +42,7 @@ class Pagination extends LitElement {
|
|
|
42
42
|
this.resizeObserver = createObserver("resize", (entries) => entries.forEach(this.resizeHandler));
|
|
43
43
|
this.messages = useT9n();
|
|
44
44
|
this.focusSetter = useSetFocus()(this);
|
|
45
|
-
this.isXXSmall = false;
|
|
46
|
-
this.lastStartItem = 1;
|
|
47
45
|
this.maxItems = maxItemBreakpoints.xxsmall;
|
|
48
|
-
this.totalPages = 1;
|
|
49
46
|
this.groupSeparator = false;
|
|
50
47
|
this.pageSize = 20;
|
|
51
48
|
this.scale = "m";
|
|
@@ -46,7 +46,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
46
46
|
*/
|
|
47
47
|
export abstract class Panel extends LitElement {
|
|
48
48
|
/** Passes a function to run before the component closes. */
|
|
49
|
-
accessor beforeClose: (
|
|
49
|
+
accessor beforeClose: () => Promise<void>;
|
|
50
50
|
/**
|
|
51
51
|
* When `true`, displays a close button in the component.
|
|
52
52
|
*
|
|
@@ -78,7 +78,7 @@ export abstract class Panel extends LitElement {
|
|
|
78
78
|
*/
|
|
79
79
|
accessor collapsible: boolean;
|
|
80
80
|
/** Specifies a description for the component. */
|
|
81
|
-
accessor description: string
|
|
81
|
+
accessor description: string;
|
|
82
82
|
/**
|
|
83
83
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
84
84
|
*
|
|
@@ -86,11 +86,11 @@ export abstract class Panel extends LitElement {
|
|
|
86
86
|
*/
|
|
87
87
|
accessor disabled: boolean;
|
|
88
88
|
/** Specifies the component's heading text. */
|
|
89
|
-
accessor heading: string
|
|
89
|
+
accessor heading: string;
|
|
90
90
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
91
|
-
accessor headingLevel: HeadingLevel
|
|
91
|
+
accessor headingLevel: HeadingLevel;
|
|
92
92
|
/** Specifies an icon to display. */
|
|
93
|
-
accessor icon: IconName
|
|
93
|
+
accessor icon: IconName;
|
|
94
94
|
/**
|
|
95
95
|
* When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
96
96
|
*
|
|
@@ -104,7 +104,7 @@ export abstract class Panel extends LitElement {
|
|
|
104
104
|
*/
|
|
105
105
|
accessor loading: boolean;
|
|
106
106
|
/** Specifies the component's fallback `menuPlacement` when it's initial or specified `menuPlacement` has insufficient space available. */
|
|
107
|
-
accessor menuFlipPlacements: FlipPlacement[]
|
|
107
|
+
accessor menuFlipPlacements: FlipPlacement[];
|
|
108
108
|
/**
|
|
109
109
|
* When `true`, the action menu items in the `header-menu-actions` slot are open.
|
|
110
110
|
*
|
|
@@ -14,7 +14,7 @@ import { u as useT9n } from "../../chunks/useT9n.js";
|
|
|
14
14
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
15
15
|
import { s as styles$1 } from "../../chunks/header.js";
|
|
16
16
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
17
|
-
import { C as CSS, S as SLOTS, I as ICONS, a as IDS } from "../../chunks/
|
|
17
|
+
import { C as CSS, S as SLOTS, I as ICONS, a as IDS } from "../../chunks/resources7.js";
|
|
18
18
|
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;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-sharp))}slot[name=alerts]::slotted(calcite-alert){block-size:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=s]) .header-content .icon{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=m]) .header-content .icon{margin-inline-end:var(--calcite-spacing-md)}:host(:is([scale=s],[scale=m])){--calcite-internal-panel-action-spacing: var(--calcite-spacing-xxs)}:host([scale=l]){--calcite-internal-panel-action-spacing: var(--calcite-spacing-xs);--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}:host([scale=l]) .header-content .icon{margin-inline-end:var(--calcite-spacing-lg)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.content-top{padding:var(--calcite-panel-content-top-space, var(--calcite-internal-panel-default-space))}.content-bottom{padding:var(--calcite-panel-content-bottom-space, var(--calcite-internal-panel-default-space))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .heading-text-content{flex:1 1 auto;overflow:hidden}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}#close,#collapse,calcite-action-menu{--calcite-action-background-color: var(--calcite-panel-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press);--calcite-action-text-color: var(--calcite-panel-header-action-text-color);--calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press)}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;margin:auto;gap:var(--calcite-internal-panel-action-spacing)}.header-actions--start{margin-inline-start:var(--calcite-internal-panel-action-spacing)}.header-actions--end{margin-inline-end:var(--calcite-internal-panel-action-spacing)}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{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))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header--slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.header-content.header--non-slotted-content{align-items:center;flex-direction:row}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}calcite-icon{--calcite-icon-color: var(--calcite-panel-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-1)))}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
19
19
|
class Panel extends LitElement {
|
|
20
20
|
constructor() {
|
|
@@ -33,7 +33,7 @@ export abstract class Popover extends LitElement {
|
|
|
33
33
|
*/
|
|
34
34
|
accessor flipDisabled: boolean;
|
|
35
35
|
/** Specifies the component's fallback `placement` for slotted content when it's initial or specified `placement` has insufficient space available. */
|
|
36
|
-
accessor flipPlacements: FlipPlacement[]
|
|
36
|
+
accessor flipPlacements: FlipPlacement[];
|
|
37
37
|
/**
|
|
38
38
|
* When `true`, prevents focus trapping.
|
|
39
39
|
*
|
|
@@ -49,11 +49,11 @@ export abstract class Popover extends LitElement {
|
|
|
49
49
|
* `"extraContainers"` specifies additional focusable elements external to the trap, such as 3rd-party components appending elements to the document body, and
|
|
50
50
|
* `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated. Return `false` to prevent focus return, or `undefined` to use the default behavior (returning focus to the element focused before activation).
|
|
51
51
|
*/
|
|
52
|
-
accessor focusTrapOptions: Partial<FocusTrapOptions
|
|
52
|
+
accessor focusTrapOptions: Partial<FocusTrapOptions>;
|
|
53
53
|
/** Specifies the component's heading text. */
|
|
54
|
-
accessor heading: string
|
|
54
|
+
accessor heading: string;
|
|
55
55
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
56
|
-
accessor headingLevel: HeadingLevel
|
|
56
|
+
accessor headingLevel: HeadingLevel;
|
|
57
57
|
/**
|
|
58
58
|
* Specifies an accessible label for the component.
|
|
59
59
|
*
|
|
@@ -147,7 +147,7 @@ class Popover extends LitElement {
|
|
|
147
147
|
}
|
|
148
148
|
setFilteredPlacements() {
|
|
149
149
|
const { el, flipPlacements } = this;
|
|
150
|
-
this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) :
|
|
150
|
+
this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) : null;
|
|
151
151
|
}
|
|
152
152
|
hide() {
|
|
153
153
|
this.open = false;
|
|
@@ -8,7 +8,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
8
8
|
*/
|
|
9
9
|
export abstract class Progress extends LitElement {
|
|
10
10
|
/** Specifies an accessible label for the component. */
|
|
11
|
-
accessor label: string
|
|
11
|
+
accessor label: string;
|
|
12
12
|
/**
|
|
13
13
|
* When `true` and type is `"indeterminate"`, reverses the animation direction.
|
|
14
14
|
*
|
|
@@ -16,7 +16,7 @@ export abstract class Progress extends LitElement {
|
|
|
16
16
|
*/
|
|
17
17
|
accessor reversed: boolean;
|
|
18
18
|
/** Text that displays under the component's indicator. */
|
|
19
|
-
accessor text: string
|
|
19
|
+
accessor text: string;
|
|
20
20
|
/**
|
|
21
21
|
* Specifies the component type.
|
|
22
22
|
*
|
|
@@ -26,11 +26,11 @@ export abstract class RadioButton extends LitElement {
|
|
|
26
26
|
*
|
|
27
27
|
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
28
28
|
*/
|
|
29
|
-
accessor form: string
|
|
29
|
+
accessor form: string;
|
|
30
30
|
/** Specifies the component's label text. */
|
|
31
|
-
accessor labelText: string
|
|
31
|
+
accessor labelText: string;
|
|
32
32
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
33
|
-
accessor name: string
|
|
33
|
+
accessor name: string;
|
|
34
34
|
/**
|
|
35
35
|
* When `true` and the component resides in a form,
|
|
36
36
|
* the component must have a value selected from the `calcite-radio-button-group` in order for the form to submit.
|
|
@@ -56,7 +56,7 @@ export abstract class RadioButton extends LitElement {
|
|
|
56
56
|
* @internal
|
|
57
57
|
* @mdn [validationMessage](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage)
|
|
58
58
|
*/
|
|
59
|
-
accessor validationMessage: string
|
|
59
|
+
accessor validationMessage: string;
|
|
60
60
|
/**
|
|
61
61
|
* The component's current validation state.
|
|
62
62
|
*
|
|
@@ -84,7 +84,7 @@ export abstract class RadioButton extends LitElement {
|
|
|
84
84
|
* @param validationMessage
|
|
85
85
|
* @internal
|
|
86
86
|
*/
|
|
87
|
-
setValidity(validity: ValidityStateFlags, validationMessage?: string
|
|
87
|
+
setValidity(validity: ValidityStateFlags, validationMessage?: string): Promise<void>;
|
|
88
88
|
/**
|
|
89
89
|
* Fires only when the radio button is checked. This behavior is identical to the native HTML input element.
|
|
90
90
|
* Since this event does not fire when the radio button is unchecked, it's not recommended to attach a listener for this event
|
|
@@ -55,7 +55,7 @@ class RadioButton extends LitElement {
|
|
|
55
55
|
return this.focusSetter(() => this.containerRef.value, options);
|
|
56
56
|
}
|
|
57
57
|
async setValidity(validity, validationMessage = this.validationMessage) {
|
|
58
|
-
this.elementInternals.setValidity(validity, validationMessage
|
|
58
|
+
this.elementInternals.setValidity(validity, validationMessage);
|
|
59
59
|
}
|
|
60
60
|
connectedCallback() {
|
|
61
61
|
this.rootNode = this.el.getRootNode();
|
|
@@ -18,7 +18,7 @@ export abstract class RadioButtonGroup extends LitElement {
|
|
|
18
18
|
*/
|
|
19
19
|
accessor disabled: boolean;
|
|
20
20
|
/** Specifies the component's label text. */
|
|
21
|
-
accessor labelText: string
|
|
21
|
+
accessor labelText: string;
|
|
22
22
|
/**
|
|
23
23
|
* Specifies the layout of the component.
|
|
24
24
|
*
|
|
@@ -47,7 +47,7 @@ export abstract class RadioButtonGroup extends LitElement {
|
|
|
47
47
|
*/
|
|
48
48
|
accessor scale: Scale;
|
|
49
49
|
/** Specifies the component's selected item. */
|
|
50
|
-
get selectedItem(): RadioButton
|
|
50
|
+
get selectedItem(): RadioButton;
|
|
51
51
|
/**
|
|
52
52
|
* Specifies the status of the validation message.
|
|
53
53
|
*
|
|
@@ -55,9 +55,9 @@ export abstract class RadioButtonGroup extends LitElement {
|
|
|
55
55
|
*/
|
|
56
56
|
accessor status: Status;
|
|
57
57
|
/** Specifies the validation icon to display under the component. */
|
|
58
|
-
accessor validationIcon: IconName | boolean
|
|
58
|
+
accessor validationIcon: IconName | boolean;
|
|
59
59
|
/** Specifies the validation message to display under the component. */
|
|
60
|
-
accessor validationMessage: string
|
|
60
|
+
accessor validationMessage: string;
|
|
61
61
|
/**
|
|
62
62
|
* Sets focus on the fist focusable `calcite-radio-button` element in the component.
|
|
63
63
|
*
|
|
@@ -64,7 +64,7 @@ class RadioButtonGroup extends LitElement {
|
|
|
64
64
|
this.mutationObserver?.disconnect();
|
|
65
65
|
}
|
|
66
66
|
handleInvalidFormEvent(event) {
|
|
67
|
-
const message = this.validationMessage || event.target.validationMessage
|
|
67
|
+
const message = this.validationMessage || event.target.validationMessage;
|
|
68
68
|
displayValidationMessage(this, {
|
|
69
69
|
message,
|
|
70
70
|
icon: true,
|
|
@@ -73,7 +73,7 @@ class RadioButtonGroup extends LitElement {
|
|
|
73
73
|
}
|
|
74
74
|
passPropsToRadioButtons() {
|
|
75
75
|
this.radioButtons = Array.from(this.el.querySelectorAll("calcite-radio-button"));
|
|
76
|
-
this.selectedItem = Array.from(this.radioButtons).reverse().find((radioButton) => radioButton.checked)
|
|
76
|
+
this.selectedItem = Array.from(this.radioButtons).reverse().find((radioButton) => radioButton.checked) || null;
|
|
77
77
|
if (this.radioButtons.length > 0) {
|
|
78
78
|
this.radioButtons.forEach((radioButton) => {
|
|
79
79
|
if (this.hasUpdated) {
|
|
@@ -87,7 +87,7 @@ class RadioButtonGroup extends LitElement {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
getFocusableRadioButton() {
|
|
90
|
-
return this.radioButtons.find((radiobutton) => !radiobutton.disabled);
|
|
90
|
+
return this.radioButtons.find((radiobutton) => !radiobutton.disabled) ?? null;
|
|
91
91
|
}
|
|
92
92
|
radioButtonChangeHandler(event) {
|
|
93
93
|
this.selectedItem = event.target;
|
|
@@ -15,9 +15,9 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
15
15
|
*/
|
|
16
16
|
export abstract class Rating extends LitElement {
|
|
17
17
|
/** Specifies a cumulative average from previous ratings to display. */
|
|
18
|
-
accessor average: number
|
|
18
|
+
accessor average: number;
|
|
19
19
|
/** Specifies the number of previous ratings to display. */
|
|
20
|
-
accessor count: number
|
|
20
|
+
accessor count: number;
|
|
21
21
|
/**
|
|
22
22
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
23
23
|
*
|
|
@@ -29,9 +29,9 @@ export abstract class Rating extends LitElement {
|
|
|
29
29
|
*
|
|
30
30
|
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
31
31
|
*/
|
|
32
|
-
accessor form: string
|
|
32
|
+
accessor form: string;
|
|
33
33
|
/** Specifies the component's label text. */
|
|
34
|
-
accessor labelText: string
|
|
34
|
+
accessor labelText: string;
|
|
35
35
|
/** Overrides individual strings used by the component. */
|
|
36
36
|
accessor messageOverrides: {
|
|
37
37
|
rating?: string;
|
|
@@ -39,7 +39,7 @@ export abstract class Rating extends LitElement {
|
|
|
39
39
|
stars?: string;
|
|
40
40
|
};
|
|
41
41
|
/** Specifies the name of the component. Required to pass the component's `value` on form submission. */
|
|
42
|
-
accessor name: string
|
|
42
|
+
accessor name: string;
|
|
43
43
|
/**
|
|
44
44
|
* When `true`, the component's value can be read, but cannot be modified.
|
|
45
45
|
*
|
|
@@ -65,9 +65,9 @@ export abstract class Rating extends LitElement {
|
|
|
65
65
|
*/
|
|
66
66
|
accessor status: Status;
|
|
67
67
|
/** Specifies the validation icon to display under the component. */
|
|
68
|
-
accessor validationIcon: IconName | boolean
|
|
68
|
+
accessor validationIcon: IconName | boolean;
|
|
69
69
|
/** Specifies the validation message to display under the component. */
|
|
70
|
-
accessor validationMessage: string
|
|
70
|
+
accessor validationMessage: string;
|
|
71
71
|
/**
|
|
72
72
|
* The component's current validation state.
|
|
73
73
|
*
|