@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
|
@@ -70,6 +70,8 @@ class Carousel extends LitElement {
|
|
|
70
70
|
this.setMaxItemsToBreakpoint(width);
|
|
71
71
|
};
|
|
72
72
|
this.resizeObserver = createObserver("resize", (entries) => entries.forEach(this.resizeHandler));
|
|
73
|
+
this.slideDurationInterval = null;
|
|
74
|
+
this.slideInterval = null;
|
|
73
75
|
this.tabListRef = createRef();
|
|
74
76
|
this.timer = () => {
|
|
75
77
|
let time = this.slideDurationRemaining;
|
|
@@ -95,7 +97,6 @@ class Carousel extends LitElement {
|
|
|
95
97
|
this.items = [];
|
|
96
98
|
this.maxItems = centerItemsByBreakpoint.xxsmall;
|
|
97
99
|
this.playing = false;
|
|
98
|
-
this.selectedIndex = 0;
|
|
99
100
|
this.slideDurationRemaining = 1;
|
|
100
101
|
this.suspendedDueToFocus = false;
|
|
101
102
|
this.suspendedDueToHover = false;
|
|
@@ -121,7 +122,7 @@ class Carousel extends LitElement {
|
|
|
121
122
|
this.styles = styles;
|
|
122
123
|
}
|
|
123
124
|
async play() {
|
|
124
|
-
if (this.playing || !this.hasMultiple || this.autoplay !== "" && this.autoplay
|
|
125
|
+
if (this.playing || !this.hasMultiple || this.autoplay !== "" && !this.autoplay && this.autoplay !== "paused") {
|
|
125
126
|
return;
|
|
126
127
|
}
|
|
127
128
|
this.handlePlay(true);
|
|
@@ -286,7 +287,7 @@ class Carousel extends LitElement {
|
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
289
|
handleItemSelection(event) {
|
|
289
|
-
const item = event.
|
|
290
|
+
const item = event.target;
|
|
290
291
|
const requestedPosition = parseInt(item.dataset.index);
|
|
291
292
|
if (requestedPosition === this.selectedIndex) {
|
|
292
293
|
return;
|
|
@@ -354,7 +355,7 @@ class Carousel extends LitElement {
|
|
|
354
355
|
case " ":
|
|
355
356
|
case "Enter":
|
|
356
357
|
event.preventDefault();
|
|
357
|
-
if (this.autoplay === "" || this.autoplay
|
|
358
|
+
if (this.autoplay === "" || this.autoplay || this.autoplay === "paused") {
|
|
358
359
|
this.toggleRotation();
|
|
359
360
|
}
|
|
360
361
|
break;
|
|
@@ -424,7 +425,7 @@ class Carousel extends LitElement {
|
|
|
424
425
|
return html`<div class=${safeClassMap({
|
|
425
426
|
[CSS.pagination]: true,
|
|
426
427
|
[CSS.containerOverlaid]: this.controlOverlay
|
|
427
|
-
})} @keydown=${this.tabListKeyDownHandler} ${ref(this.tabListRef)}>${(this.playing || this.autoplay === "" || this.autoplay
|
|
428
|
+
})} @keydown=${this.tabListKeyDownHandler} ${ref(this.tabListRef)}>${(this.playing || this.autoplay === "" || this.autoplay || this.autoplay === "paused") && this.hasMultiple && this.renderRotationControl() || ""}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("previous") || ""}${this.paginationDisabled ? this.renderPaginationAriaLive() : this.renderPaginationItems()}${this.arrowType === "inline" && this.hasMultiple && this.renderArrow("next") || ""}</div>`;
|
|
428
429
|
}
|
|
429
430
|
renderPaginationItems() {
|
|
430
431
|
const { selectedIndex, maxItems, items, label, handleItemSelection } = this;
|
|
@@ -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;
|
|
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;
|
|
42
42
|
/** Specifies the component's label text. */
|
|
43
|
-
accessor labelText: string
|
|
43
|
+
accessor labelText: string;
|
|
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;
|
|
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.
|
|
@@ -15,7 +15,7 @@ const CSS = {
|
|
|
15
15
|
toggle: "toggle",
|
|
16
16
|
check: "check-svg"
|
|
17
17
|
};
|
|
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([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-
|
|
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([scale=s]) .check-svg,:host([scale=s]) .toggle{inline-size:var(--calcite-checkbox-size, .75rem);block-size:var(--calcite-checkbox-size, .75rem)}:host([scale=m]) .check-svg,:host([scale=m]) .toggle{inline-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base));block-size:var(--calcite-checkbox-size, var(--calcite-font-size-relative-base))}:host([scale=l]) .check-svg,:host([scale=l]) .toggle{inline-size:var(--calcite-checkbox-size, 1rem);block-size:var(--calcite-checkbox-size, 1rem)}:host{position:relative;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}:host .check-svg{pointer-events:none;box-sizing:border-box;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);fill:currentColor;stroke:currentColor;stroke-width:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;box-shadow:inset 0 0 0 1px var(--calcite-checkbox-border-color, var(--calcite-color-border-input));color:var(--calcite-checkbox-icon-color, var(--calcite-color-background))}:host([status=invalid]:not([checked])) .check-svg{box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([status=invalid]:not([checked])) .toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([status=invalid]:not([checked])) .toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([checked]) .check-svg,:host([indeterminate]) .check-svg{background-color:var(--calcite-color-brand);box-shadow:inset 0 0 0 1px var(--calcite-color-brand)}:host([checked]) .toggle:hover .check-svg,:host([indeterminate]) .toggle:hover .check-svg{background-color:var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}:host([checked]) .toggle:active .check-svg,:host([indeterminate]) .toggle:active .check-svg{background-color:var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press));box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}:host([hovered]) .toggle .check-svg,:host .toggle:hover .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-hover, var(--calcite-color-brand-hover))}.toggle:active .check-svg{box-shadow:inset 0 0 0 2px var(--calcite-checkbox-border-color-press, var(--calcite-color-brand-press))}.toggle{position:relative;outline-color:transparent}.toggle:active,.toggle:focus,.toggle: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(var(--calcite-spacing-base) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.toggle:after,.toggle:before{inset-block-start:50%;inset-inline-start:50%;min-block-size:1.5rem;min-inline-size:1.5rem;position:absolute}.toggle:not(.calcite--rtl):after{content:"";transform:translate(-50%) translateY(-50%)}.toggle.calcite--rtl:before{content:"";transform:translate(50%) translateY(-50%)}@media(forced-colors:active){.check-svg{border:1px solid currentColor}}.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)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}::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}`;
|
|
19
19
|
class Checkbox extends LitElement {
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
@@ -9,33 +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
|
-
|
|
13
|
-
title: "title",
|
|
14
|
-
close: "close",
|
|
15
|
-
imageContainer: "image-container",
|
|
16
|
-
chipIcon: "chip-icon",
|
|
17
|
-
textSlotted: "text--slotted",
|
|
18
|
-
container: "container",
|
|
19
|
-
imageSlotted: "image--slotted",
|
|
20
|
-
closable: "closable",
|
|
21
|
-
multiple: "multiple",
|
|
22
|
-
single: "single",
|
|
23
|
-
selectable: "selectable",
|
|
24
|
-
selectIcon: "select-icon",
|
|
25
|
-
selectIconActive: "select-icon--active",
|
|
26
|
-
nonInteractive: "non-interactive",
|
|
27
|
-
isCircle: "is-circle",
|
|
28
|
-
selected: "selected"
|
|
29
|
-
};
|
|
30
|
-
const SLOTS = {
|
|
31
|
-
image: "image"
|
|
32
|
-
};
|
|
33
|
-
const ICONS = {
|
|
34
|
-
close: "x",
|
|
35
|
-
checkedSingle: "circle-f",
|
|
36
|
-
uncheckedMultiple: "square",
|
|
37
|
-
checkedMultiple: "check-square-f"
|
|
38
|
-
};
|
|
12
|
+
import { S as SLOTS, C as CSS, I as ICONS } from "../../chunks/resources5.js";
|
|
39
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}`;
|
|
40
14
|
class Chip extends LitElement {
|
|
41
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;
|
|
@@ -879,7 +879,7 @@ class ColorPicker extends LitElement {
|
|
|
879
879
|
})}</div></calcite-tab>`);
|
|
880
880
|
}
|
|
881
881
|
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} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus}
|
|
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} @keydown=${this.handleKeyDown} @calciteInputNumberChange=${this.handleChannelChange} @calciteInputNumberInput=${this.handleChannelInput} @calciteInternalInputNumberBlur=${this.handleChannelBlur} @calciteInternalInputNumberFocus=${this.handleChannelFocus} .scale=${this.scale === "l" ? "m" : "s"} style=${safeStyleMap({
|
|
883
883
|
marginLeft: index > 0 && !(this.scale === "s" && this.alphaChannel && index === 3) ? "-1px" : ""
|
|
884
884
|
})} .suffixText=${suffix} .value=${value?.toString()}></calcite-input-number>`);
|
|
885
885
|
}
|
|
@@ -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} @keydown=${this.onInputKeyDown} @paste=${this.onHexInputPaste} @calciteInputTextChange=${this.onHexInputChange} @calciteInputTextInput=${this.onHexInputInput} @calciteInternalInputTextBlur=${this.onHexInputBlur} @calciteInternalInputTextFocus=${this.onInputFocus} 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} @keydown=${this.onInputKeyDown} @calciteInputNumberInput=${this.onOpacityInputInput} @calciteInternalInputNumberBlur=${this.onOpacityInputBlur} @calciteInternalInputNumberFocus=${this.onInputFocus} .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);
|