@esri/calcite-components 5.1.1 → 5.1.2-next.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/dist/cdn/{ROJYTRK6.js → 2CU7DKE2.js} +1 -1
- package/dist/cdn/{QEJBAQOY.js → 2L2UNCTJ.js} +1 -1
- package/dist/cdn/{JDVSVNSE.js → 2NTH4LWU.js} +1 -1
- package/dist/cdn/{IHYNJVS4.js → 35VGR3XO.js} +1 -1
- package/dist/cdn/3AQRM2KH.js +2 -0
- package/dist/cdn/{PB3LTBSS.js → 3FCQ4V5Q.js} +1 -1
- package/dist/cdn/{5O6YGOJE.js → 3HEBAEY5.js} +1 -1
- package/dist/cdn/{6V3FX2W2.js → 3SZQJ5VM.js} +1 -1
- package/dist/cdn/{JPPCKAMD.js → 46UF5N55.js} +1 -1
- package/dist/cdn/47TWTWBY.js +2 -0
- package/dist/cdn/{V7PYDILT.js → 47Z3743F.js} +1 -1
- package/dist/cdn/{KCN4PBFZ.js → 4DBX7CV4.js} +1 -1
- package/dist/cdn/{VDJMOKVP.js → 4GWDVUXR.js} +1 -1
- package/dist/cdn/{GDFQSWZ7.js → 4K6O44GL.js} +1 -1
- package/dist/cdn/{PM5MZR4Z.js → 53JE6CCO.js} +1 -1
- package/dist/cdn/55B3DHRL.js +2 -0
- package/dist/cdn/{ZRMTOZ3B.js → 56Z7V2KB.js} +1 -1
- package/dist/cdn/{ELXBBUY5.js → 5FGJKE6I.js} +1 -1
- package/dist/cdn/{47Q2AE5B.js → 5HHFIGVW.js} +1 -1
- package/dist/cdn/{OWIJSXYV.js → 5LD3NWQK.js} +1 -1
- package/dist/cdn/{3TYJSBP3.js → 6BEQZOCM.js} +1 -1
- package/dist/cdn/{G2G6FHMB.js → 6G45I3QG.js} +1 -1
- package/dist/cdn/{TYQB2FN4.js → 6G7XHQRI.js} +1 -1
- package/dist/cdn/{BSMPD6VA.js → 6IQITD2D.js} +1 -1
- package/dist/cdn/6JEYN7OP.js +2 -0
- package/dist/cdn/{JCVLN6XL.js → 6KRTBFQA.js} +1 -1
- package/dist/cdn/{2P3LOGHK.js → 6L35BYWP.js} +1 -1
- package/dist/cdn/{HA65OOQD.js → 6QWHLAKJ.js} +1 -1
- package/dist/cdn/{IMUM436K.js → 7QAG4N44.js} +1 -1
- package/dist/cdn/7Z3FNQKK.js +2 -0
- package/dist/cdn/{RUUD543Z.js → A4PS7QHZ.js} +1 -1
- package/dist/cdn/A5BQ2FR3.js +2 -0
- package/dist/cdn/{IRANNKJ2.js → AB5SZONG.js} +1 -1
- package/dist/cdn/{ND7KY7GE.js → AE6WIDBA.js} +1 -1
- package/dist/cdn/{QC5NB4VL.js → AFYLPOO3.js} +1 -1
- package/dist/cdn/{ODGJXDZK.js → AH3GOPDP.js} +1 -1
- package/dist/cdn/{CDNETLLO.js → AXFCT6T6.js} +1 -1
- package/dist/cdn/{4UHTWXNV.js → B2QW54L5.js} +1 -1
- package/dist/cdn/{V3X47NBI.js → BFDEONWS.js} +1 -1
- package/dist/cdn/BFERIIZD.js +2 -0
- package/dist/cdn/{U4GRIQVY.js → BFNSTPU4.js} +1 -1
- package/dist/cdn/{5D7IEY6J.js → BGDVBJXB.js} +1 -1
- package/dist/cdn/BHFCZH65.js +2 -0
- package/dist/cdn/{MHE72N53.js → BINIHZVX.js} +1 -1
- package/dist/cdn/BNZVUF7A.js +2 -0
- package/dist/cdn/{YYAYEKGB.js → C6GAKO4D.js} +1 -1
- package/dist/cdn/{E7GXKIIO.js → CIOGICAT.js} +1 -1
- package/dist/cdn/{ETEMG44R.js → CMB4P6YF.js} +1 -1
- package/dist/cdn/{Z3IP3JBL.js → CNZSHYJN.js} +1 -1
- package/dist/cdn/{5X2CR2NN.js → CQMH7FNX.js} +1 -1
- package/dist/cdn/{NBAYHB3K.js → CR6V2BRH.js} +1 -1
- package/dist/cdn/{6HRHKHF5.js → D2QZJE6E.js} +1 -1
- package/dist/cdn/{7SDGC2RW.js → DF52STT7.js} +1 -1
- package/dist/cdn/{NTD2BJWG.js → DHBXZGPJ.js} +1 -1
- package/dist/cdn/{WER7FADP.js → DJWXY3E4.js} +1 -1
- package/dist/cdn/{YKL7MIG5.js → DS7N2ZRJ.js} +1 -1
- package/dist/cdn/{6XMUSNRS.js → DWQYJRFK.js} +1 -1
- package/dist/cdn/{2JJ5YBBT.js → E7Y2KS7L.js} +1 -1
- package/dist/cdn/{QGF4JJQO.js → ECBDXQWQ.js} +1 -1
- package/dist/cdn/{XRUJ4D7O.js → EF64PC2O.js} +1 -1
- package/dist/cdn/{Q56UST3A.js → EHJWHGSU.js} +1 -1
- package/dist/cdn/{SJCWFQNF.js → F5JHKEU6.js} +1 -1
- package/dist/cdn/{SNY2QKQJ.js → FLL5S6IX.js} +1 -1
- package/dist/cdn/{DP2TY4KH.js → FQMDLHY6.js} +1 -1
- package/dist/cdn/{PHEMAFCT.js → GAAAQTI2.js} +1 -1
- package/dist/cdn/{TVU7KEKM.js → GNCY5J35.js} +1 -1
- package/dist/cdn/{7B4FOF3S.js → GUYOZ5IV.js} +1 -1
- package/dist/cdn/{TTCZVBEF.js → HLQG3GYF.js} +1 -1
- package/dist/cdn/{LOJBKHVF.js → HP4MJQEO.js} +1 -1
- package/dist/cdn/{ID2LCYSN.js → HWUQQAC7.js} +1 -1
- package/dist/cdn/{PIR7PWBO.js → I2SPPXEM.js} +1 -1
- package/dist/cdn/{GDYGEN45.js → IFDDWATG.js} +1 -1
- package/dist/cdn/{NG7BG3QY.js → IHG36OXA.js} +1 -1
- package/dist/cdn/IPBRUCJX.js +2 -0
- package/dist/cdn/{ALLL4LZ4.js → IPHJHRQ6.js} +1 -1
- package/dist/cdn/J2KX3JW3.js +2 -0
- package/dist/cdn/{E6X6BQLH.js → J2ZQ3UJT.js} +1 -1
- package/dist/cdn/{CEWOZ7LP.js → J7F2URNC.js} +1 -1
- package/dist/cdn/{3KWJQXAT.js → JE22TLFT.js} +1 -1
- package/dist/cdn/{S2BIRHQ7.js → JGVRYRKU.js} +1 -1
- package/dist/cdn/JIDJQEZ3.js +2 -0
- package/dist/cdn/{XT4GLBAQ.js → JODPCONC.js} +1 -1
- package/dist/cdn/{6VP3K6WL.js → JVPMJ2MI.js} +1 -1
- package/dist/cdn/{524MMG22.js → K4KCUAGT.js} +1 -1
- package/dist/cdn/{6X3QWKZL.js → K7UT7UDE.js} +1 -1
- package/dist/cdn/{SNJLHXVG.js → K7UX5HSY.js} +1 -1
- package/dist/cdn/{2J4U5E4U.js → KMPEGQSK.js} +1 -1
- package/dist/cdn/KXVN4L2R.js +2 -0
- package/dist/cdn/KZAI3CI3.js +2 -0
- package/dist/cdn/{NCSMOKFP.js → LNDFYKAA.js} +1 -1
- package/dist/cdn/{TWVXE232.js → M6GDSLP7.js} +1 -1
- package/dist/cdn/MK5D6DUQ.js +2 -0
- package/dist/cdn/{VEZBAZZG.js → MR7Q3LT3.js} +1 -1
- package/dist/cdn/{Q4V5DVKS.js → NPHRYNDM.js} +1 -1
- package/dist/cdn/NX5LYVTC.js +2 -0
- package/dist/cdn/OI5Z75UV.js +2 -0
- package/dist/cdn/{GTH6QFMV.js → OJRKE24N.js} +1 -1
- package/dist/cdn/{EQKCU4NC.js → OXCX2JYQ.js} +1 -1
- package/dist/cdn/{GCAYSD7G.js → P3FETVF2.js} +1 -1
- package/dist/cdn/{WCUO6JQN.js → PDIVD53H.js} +1 -1
- package/dist/cdn/{YHAJICJ2.js → PIZB2UU4.js} +1 -1
- package/dist/cdn/PNQURWQR.js +2 -0
- package/dist/cdn/{TVYIJRI2.js → QMZ2G6WF.js} +1 -1
- package/dist/cdn/{U7OJQ4EC.js → QRJIJZC3.js} +1 -1
- package/dist/cdn/{KJCVGOXF.js → QVY5E66G.js} +1 -1
- package/dist/cdn/{ICGT7C6U.js → QWHPERZB.js} +1 -1
- package/dist/cdn/{KLNQGCK2.js → R4PS3KVA.js} +1 -1
- package/dist/cdn/{LI2CATYC.js → R5A44F3R.js} +1 -1
- package/dist/cdn/{COXLBEPM.js → RIHHQ4P5.js} +1 -1
- package/dist/cdn/{TKK3AWQJ.js → S4EMFPQN.js} +1 -1
- package/dist/cdn/S5JURZJV.js +2 -0
- package/dist/cdn/{SW5TNX5V.js → SBRNKQZR.js} +1 -1
- package/dist/cdn/SDTW62DH.js +2 -0
- package/dist/cdn/{JGCJVDJA.js → SE3EQB55.js} +1 -1
- package/dist/cdn/{W57IL7KF.js → SEHPIQCS.js} +1 -1
- package/dist/cdn/{IEWVQCQW.js → TFXHHWCL.js} +1 -1
- package/dist/cdn/{7QS3Z4ZJ.js → TPPIRT4M.js} +1 -1
- package/dist/cdn/UNLFQ2X5.js +2 -0
- package/dist/cdn/{44VCOKJX.js → USISHLZA.js} +1 -1
- package/dist/cdn/UTJ6CSF2.js +2 -0
- package/dist/cdn/UWYYS2CJ.js +2 -0
- package/dist/cdn/{WQCT4VLB.js → V3P34C4L.js} +1 -1
- package/dist/cdn/{KXD6O3ZI.js → VDVHXKFM.js} +1 -1
- package/dist/cdn/{OXCL3M4W.js → VHTR3YLE.js} +1 -1
- package/dist/cdn/{CM45J66U.js → VJEFLAMF.js} +1 -1
- package/dist/cdn/{CENYPZ3Y.js → VNG5JX4F.js} +1 -1
- package/dist/cdn/{MW5MGBT4.js → VSMJ6GNS.js} +1 -1
- package/dist/cdn/{UTVGUMUM.js → VZ34CEPE.js} +1 -1
- package/dist/cdn/{VZ2YR2UG.js → WDRZWXPS.js} +1 -1
- package/dist/cdn/{L3D2OBOR.js → WFCDKH3A.js} +1 -1
- package/dist/cdn/WGSMIQUI.js +2 -0
- package/dist/cdn/{DDUIHGBF.js → WHZ2Y73O.js} +1 -1
- package/dist/cdn/{DK3SDSZL.js → WJ7C6DWY.js} +1 -1
- package/dist/cdn/{LJSR66HF.js → WKX35O7E.js} +1 -1
- package/dist/cdn/WQKOEKWG.js +2 -0
- package/dist/cdn/{6VDGKXTH.js → WWMYIHOG.js} +1 -1
- package/dist/cdn/{3RRY5HHA.js → WXS7HUGX.js} +1 -1
- package/dist/cdn/X7GZQYSF.js +2 -0
- package/dist/cdn/{LKYA2H2B.js → XF7YQY5Y.js} +1 -1
- package/dist/cdn/XLDNKUOK.js +2 -0
- package/dist/cdn/XM4U2QML.js +2 -0
- package/dist/cdn/XPV23QFC.js +2 -0
- package/dist/cdn/{4NUFBGFK.js → Y2MMRFEI.js} +1 -1
- package/dist/cdn/{ST6WRTR2.js → YUMTBVTL.js} +1 -1
- package/dist/cdn/{I4IDQ735.js → Z52JB5CD.js} +1 -1
- package/dist/cdn/{NL77UDLL.js → ZALKWH4R.js} +1 -1
- package/dist/cdn/{ECVX7SVS.js → ZIO5GS2X.js} +1 -1
- package/dist/cdn/{V7YPIVAX.js → ZQVZ5W4Z.js} +1 -1
- package/dist/cdn/{34ENIUR5.js → ZXBVCAEX.js} +1 -1
- package/dist/cdn/assets/icon/buildingIndex16.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex24.json +1 -0
- package/dist/cdn/assets/icon/buildingIndex32.json +1 -0
- package/dist/cdn/assets/icon/fireIndex16.json +1 -0
- package/dist/cdn/assets/icon/fireIndex24.json +1 -0
- package/dist/cdn/assets/icon/fireIndex32.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex16.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex24.json +1 -0
- package/dist/cdn/assets/icon/geologyIndex32.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose16.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose24.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryFullSuperimpose32.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose16.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose24.json +1 -0
- package/dist/cdn/assets/icon/orientedImageryHalfSuperimpose32.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly16.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly24.json +1 -0
- package/dist/cdn/assets/icon/orientedImagerySceneOnly32.json +1 -0
- package/dist/cdn/assets/icon/parquetFeatureLayer16.json +1 -0
- package/dist/cdn/assets/icon/parquetFeatureLayer24.json +1 -0
- package/dist/cdn/assets/icon/parquetFeatureLayer32.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault16.json +1 -1
- package/dist/cdn/assets/icon/returnToDefault32.json +1 -1
- package/dist/cdn/assets/icon/snowIndex16.json +1 -0
- package/dist/cdn/assets/icon/snowIndex24.json +1 -0
- package/dist/cdn/assets/icon/snowIndex32.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/soilAdjustedVegetationIndex32.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex16.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex24.json +1 -0
- package/dist/cdn/assets/icon/vegetationIndex32.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ExpandToggle.js +1 -1
- package/dist/chunks/date.js +3 -3
- package/dist/chunks/dom.js +15 -3
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/label.js +6 -6
- package/dist/chunks/locale.js +3 -6
- package/dist/chunks/manager.js +5 -5
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources10.js +4 -48
- package/dist/chunks/resources11.js +63 -0
- package/dist/chunks/resources5.js +37 -23
- package/dist/chunks/resources6.js +27 -52
- package/dist/chunks/resources7.js +48 -45
- package/dist/chunks/resources8.js +49 -7
- package/dist/chunks/resources9.js +9 -11
- package/dist/chunks/runtime.js +3 -3
- package/dist/chunks/useTime.js +40 -45
- package/dist/chunks/utils.js +9 -15
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-alert/customElement.d.ts +2 -2
- package/dist/components/calcite-alert/customElement.js +6 -4
- package/dist/components/calcite-autocomplete/customElement.d.ts +16 -16
- package/dist/components/calcite-autocomplete/customElement.js +4 -4
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +5 -5
- package/dist/components/calcite-avatar/customElement.d.ts +5 -5
- package/dist/components/calcite-block/customElement.d.ts +9 -9
- package/dist/components/calcite-block/customElement.js +8 -49
- package/dist/components/calcite-block-group/customElement.js +3 -5
- package/dist/components/calcite-block-section/customElement.d.ts +5 -5
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.d.ts +8 -8
- package/dist/components/calcite-button/customElement.js +3 -3
- package/dist/components/calcite-card/customElement.d.ts +1 -1
- package/dist/components/calcite-carousel/customElement.js +5 -6
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -4
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +3 -3
- package/dist/components/calcite-color-picker/customElement.js +24 -21
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +5 -5
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.js +13 -8
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +2 -11
- package/dist/components/calcite-dialog/customElement.js +8 -8
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.d.ts +2 -2
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +7 -1
- package/dist/components/calcite-flow-item/customElement.js +2 -2
- package/dist/components/calcite-input/customElement.js +2 -5
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-zone/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.d.ts +4 -4
- package/dist/components/calcite-list/customElement.js +5 -6
- package/dist/components/calcite-list-item/customElement.d.ts +6 -6
- package/dist/components/calcite-list-item/customElement.js +13 -16
- package/dist/components/calcite-list-item-group/customElement.d.ts +1 -1
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.js +3 -3
- package/dist/components/calcite-menu-item/customElement.d.ts +7 -7
- package/dist/components/calcite-menu-item/customElement.js +3 -0
- package/dist/components/calcite-meter/customElement.d.ts +6 -6
- package/dist/components/calcite-meter/customElement.js +14 -7
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +3 -0
- package/dist/components/calcite-panel/customElement.d.ts +6 -6
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-popover/customElement.d.ts +4 -4
- package/dist/components/calcite-popover/customElement.js +1 -1
- package/dist/components/calcite-progress/customElement.d.ts +2 -2
- package/dist/components/calcite-radio-button/customElement.d.ts +5 -5
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -4
- package/dist/components/calcite-radio-button-group/customElement.js +3 -3
- package/dist/components/calcite-rating/customElement.d.ts +7 -7
- package/dist/components/calcite-rating/customElement.js +13 -9
- package/dist/components/calcite-sheet/customElement.js +32 -27
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.d.ts +1 -1
- package/dist/components/calcite-tab/customElement.js +2 -1
- package/dist/components/calcite-tab-nav/customElement.d.ts +3 -3
- package/dist/components/calcite-tab-nav/customElement.js +12 -7
- package/dist/components/calcite-tab-title/customElement.d.ts +3 -3
- package/dist/components/calcite-tab-title/customElement.js +2 -0
- package/dist/components/calcite-table/customElement.js +22 -14
- package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
- package/dist/components/calcite-table-cell/customElement.js +6 -0
- package/dist/components/calcite-table-header/customElement.d.ts +4 -4
- package/dist/components/calcite-table-header/customElement.js +2 -0
- package/dist/components/calcite-table-row/customElement.js +5 -3
- package/dist/components/calcite-tabs/customElement.js +3 -2
- package/dist/components/calcite-text-area/customElement.d.ts +12 -12
- package/dist/components/calcite-text-area/customElement.js +5 -3
- package/dist/components/calcite-tile/customElement.d.ts +6 -6
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.js +35 -15
- package/dist/components/calcite-tooltip/customElement.d.ts +2 -2
- package/dist/components/calcite-tooltip/customElement.js +1 -1
- package/dist/components/calcite-tree/customElement.js +7 -6
- package/dist/components/calcite-tree-item/customElement.d.ts +3 -3
- package/dist/components/calcite-tree-item/customElement.js +12 -6
- package/dist/controllers/useSortable.d.ts +2 -2
- package/dist/controllers/useTime.d.ts +20 -20
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/dom.d.ts +1 -1
- package/package.json +8 -9
- package/dist/cdn/25SUELBY.js +0 -2
- package/dist/cdn/44HFP2I6.js +0 -2
- package/dist/cdn/5VAPN2S2.js +0 -2
- package/dist/cdn/6S3G75WP.js +0 -2
- package/dist/cdn/6SZY5PY7.js +0 -2
- package/dist/cdn/A6V4I2J3.js +0 -2
- package/dist/cdn/BCRYMNH7.js +0 -2
- package/dist/cdn/C462ZIJD.js +0 -2
- package/dist/cdn/C4DW27AP.js +0 -2
- package/dist/cdn/C4OX3FC4.js +0 -2
- package/dist/cdn/CVJBK7K3.js +0 -2
- package/dist/cdn/DSQ47C3C.js +0 -2
- package/dist/cdn/HYIVUAZU.js +0 -2
- package/dist/cdn/JSXQ6NFN.js +0 -2
- package/dist/cdn/KOWFGIAY.js +0 -2
- package/dist/cdn/L5IKT3WY.js +0 -2
- package/dist/cdn/LGB6OAXT.js +0 -2
- package/dist/cdn/ORIGVFX7.js +0 -2
- package/dist/cdn/QZJ7GLQ3.js +0 -2
- package/dist/cdn/RK2LH73E.js +0 -2
- package/dist/cdn/RRKFBHMW.js +0 -2
- package/dist/cdn/SXXFODM6.js +0 -2
- package/dist/cdn/TV47CRME.js +0 -2
- package/dist/cdn/UCWB5EGV.js +0 -2
- package/dist/cdn/X3HV2NYH.js +0 -2
- package/dist/cdn/Y7O6UR4T.js +0 -2
- package/dist/cdn/ZK2W2KJX.js +0 -2
- package/dist/cdn/ZOEJDQXA.js +0 -2
- /package/dist/cdn/{72YUATHS.js → 2G2ZTAXT.js} +0 -0
- /package/dist/cdn/{MO64UYDH.js → 5ZULUIQ5.js} +0 -0
- /package/dist/cdn/{IIA2H2SU.js → EWIZKNXQ.js} +0 -0
- /package/dist/cdn/{LKL63VXR.js → EZQV6OUW.js} +0 -0
- /package/dist/cdn/{Q55YTOMB.js → SXELOWJI.js} +0 -0
- /package/dist/cdn/{VXBJOP6X.js → U5CB5AOH.js} +0 -0
|
@@ -37,7 +37,7 @@ export abstract class Alert extends LitElement {
|
|
|
37
37
|
* When `true`, shows a default recommended icon. Alternatively,
|
|
38
38
|
* pass a Calcite UI Icon name to display a specific icon.
|
|
39
39
|
*/
|
|
40
|
-
accessor icon: IconName | boolean;
|
|
40
|
+
accessor icon: IconName | boolean | undefined;
|
|
41
41
|
/**
|
|
42
42
|
* When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
43
43
|
*
|
|
@@ -59,7 +59,7 @@ export abstract class Alert extends LitElement {
|
|
|
59
59
|
/** Overrides individual strings used by the component. */
|
|
60
60
|
accessor messageOverrides: { close?: string; };
|
|
61
61
|
/** Specifies the Unicode numeral system used by the component for localization. */
|
|
62
|
-
accessor numberingSystem: NumberingSystem;
|
|
62
|
+
accessor numberingSystem: NumberingSystem | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* When `true`, displays and positions the component.
|
|
65
65
|
*
|
|
@@ -95,7 +95,9 @@ const manager = new AlertManager();
|
|
|
95
95
|
class Alert extends LitElement {
|
|
96
96
|
constructor() {
|
|
97
97
|
super(...arguments);
|
|
98
|
-
this.
|
|
98
|
+
this.initialOpenTime = -1;
|
|
99
|
+
this.isHovered = false;
|
|
100
|
+
this.lastMouseOverBegin = -1;
|
|
99
101
|
this.transitionProp = "opacity";
|
|
100
102
|
this.totalHoverTime = 0;
|
|
101
103
|
this.totalOpenTime = 0;
|
|
@@ -226,7 +228,7 @@ class Alert extends LitElement {
|
|
|
226
228
|
}
|
|
227
229
|
clearAutoCloseTimeout() {
|
|
228
230
|
window.clearTimeout(this.autoCloseTimeoutId);
|
|
229
|
-
this.autoCloseTimeoutId =
|
|
231
|
+
this.autoCloseTimeoutId = void 0;
|
|
230
232
|
}
|
|
231
233
|
closeAlert() {
|
|
232
234
|
this.open = false;
|
|
@@ -286,10 +288,10 @@ class Alert extends LitElement {
|
|
|
286
288
|
[`${CSS.container}--${placement}`]: true,
|
|
287
289
|
[CSS.containerEmbedded]: this.embedded,
|
|
288
290
|
[CSS.focused]: this.isFocused
|
|
289
|
-
})} @pointerenter=${this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver :
|
|
291
|
+
})} @pointerenter=${this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : void 0} @pointerleave=${this.autoClose ? this.handleMouseLeave : void 0} .popover=${!this.embedded ? "manual" : void 0} ${ref(this.transitionRef)}>${effectiveIcon && this.renderIcon(effectiveIcon) || ""}<div class=${safeClassMap(CSS.textContainer)} @focusin=${this.autoClose && this.autoCloseTimeoutId ? this.handleKeyBoardFocus : void 0} @focusout=${this.autoClose ? this.handleKeyBoardBlur : void 0}><slot name=${SLOTS.title}></slot><slot name=${SLOTS.message}></slot><slot name=${SLOTS.link}></slot></div>${this.renderActionsEnd()}${hasQueuedAlerts ? this.renderQueueCount() : void 0}${this.renderCloseButton()}${open && active && autoClose ? html`<div class=${safeClassMap(CSS.dismissProgress)}></div>` : void 0}</div>`;
|
|
290
292
|
}
|
|
291
293
|
renderCloseButton() {
|
|
292
|
-
return html`<calcite-action class=${safeClassMap(CSS.close)} icon=x .label=${this.messages.close} @click=${this.closeAlert} @focusin=${this.autoClose ? this.handleKeyBoardFocus :
|
|
294
|
+
return html`<calcite-action class=${safeClassMap(CSS.close)} icon=x .label=${this.messages.close} @click=${this.closeAlert} @focusin=${this.autoClose ? this.handleKeyBoardFocus : void 0} @focusout=${this.autoClose ? this.handleKeyBoardBlur : void 0} .scale=${this.scale} .text=${this.messages.close}></calcite-action>`;
|
|
293
295
|
}
|
|
294
296
|
renderQueueCount() {
|
|
295
297
|
const { openAlertCount } = this;
|
|
@@ -46,7 +46,7 @@ export abstract class Autocomplete extends LitElement {
|
|
|
46
46
|
*
|
|
47
47
|
* @see [MDN - autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
|
|
48
48
|
*/
|
|
49
|
-
accessor autocomplete: AutoFill;
|
|
49
|
+
accessor autocomplete: AutoFill | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
52
52
|
*
|
|
@@ -54,19 +54,19 @@ export abstract class Autocomplete extends LitElement {
|
|
|
54
54
|
*/
|
|
55
55
|
accessor disabled: boolean;
|
|
56
56
|
/** Specifies the component's fallback `placement` for slotted content when it's initial or specified `placement` has insufficient space available. */
|
|
57
|
-
accessor flipPlacements: FlipPlacement[];
|
|
57
|
+
accessor flipPlacements: FlipPlacement[] | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* Specifies the `id` of the component's associated form.
|
|
60
60
|
*
|
|
61
61
|
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
62
62
|
*/
|
|
63
|
-
accessor form: string;
|
|
63
|
+
accessor form: string | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* When `true` or not set, shows a default recommended icon. Alternatively, pass a Calcite UI Icon name to display a specific icon.
|
|
66
66
|
*
|
|
67
67
|
* To hide the default icon, set the property to `false` using JavaScript.
|
|
68
68
|
*/
|
|
69
|
-
accessor icon: IconName | boolean;
|
|
69
|
+
accessor icon: IconName | boolean | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* When `true`, the icon will be flipped when the element direction is right-to-left (`"rtl"`).
|
|
72
72
|
*
|
|
@@ -74,11 +74,11 @@ export abstract class Autocomplete extends LitElement {
|
|
|
74
74
|
*/
|
|
75
75
|
accessor iconFlipRtl: boolean;
|
|
76
76
|
/** Specifies the text typed into the component and is used to filter slotted `autocomplete-item`s. */
|
|
77
|
-
accessor inputValue: string;
|
|
77
|
+
accessor inputValue: string | undefined;
|
|
78
78
|
/** Specifies an accessible label for the component. */
|
|
79
|
-
accessor label: string;
|
|
79
|
+
accessor label: string | undefined;
|
|
80
80
|
/** Specifies the component's label text. */
|
|
81
|
-
accessor labelText: string;
|
|
81
|
+
accessor labelText: string | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* When `true`, a busy indicator is displayed.
|
|
84
84
|
*
|
|
@@ -91,7 +91,7 @@ export abstract class Autocomplete extends LitElement {
|
|
|
91
91
|
*
|
|
92
92
|
* @see [MDN - maxlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength)
|
|
93
93
|
*/
|
|
94
|
-
accessor maxLength: number;
|
|
94
|
+
accessor maxLength: number | undefined;
|
|
95
95
|
/** Overrides individual strings used by the component. */
|
|
96
96
|
accessor messageOverrides: {
|
|
97
97
|
clear?: string;
|
|
@@ -104,7 +104,7 @@ export abstract class Autocomplete extends LitElement {
|
|
|
104
104
|
*
|
|
105
105
|
* @see [MDN - minlength](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minlength)
|
|
106
106
|
*/
|
|
107
|
-
accessor minLength: number;
|
|
107
|
+
accessor minLength: number | undefined;
|
|
108
108
|
/**
|
|
109
109
|
* Specifies the name of the component.
|
|
110
110
|
*
|
|
@@ -112,7 +112,7 @@ export abstract class Autocomplete extends LitElement {
|
|
|
112
112
|
*
|
|
113
113
|
* @see [MDN - name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name)
|
|
114
114
|
*/
|
|
115
|
-
accessor name: string;
|
|
115
|
+
accessor name: string | undefined;
|
|
116
116
|
/**
|
|
117
117
|
* When `true`, displays and positions the component.
|
|
118
118
|
*
|
|
@@ -136,13 +136,13 @@ export abstract class Autocomplete extends LitElement {
|
|
|
136
136
|
*
|
|
137
137
|
* @see [MDN - step](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern)
|
|
138
138
|
*/
|
|
139
|
-
accessor pattern: string;
|
|
139
|
+
accessor pattern: string | undefined;
|
|
140
140
|
/**
|
|
141
141
|
* Specifies placeholder text for the component.
|
|
142
142
|
*
|
|
143
143
|
* @see [MDN - placeholder](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder)
|
|
144
144
|
*/
|
|
145
|
-
accessor placeholder: string;
|
|
145
|
+
accessor placeholder: string | undefined;
|
|
146
146
|
/**
|
|
147
147
|
* Determines where the component will be positioned relative to the container element.
|
|
148
148
|
*
|
|
@@ -150,7 +150,7 @@ export abstract class Autocomplete extends LitElement {
|
|
|
150
150
|
*/
|
|
151
151
|
accessor placement: MenuPlacement;
|
|
152
152
|
/** Specifies the component's prefix text. */
|
|
153
|
-
accessor prefixText: string;
|
|
153
|
+
accessor prefixText: string | undefined;
|
|
154
154
|
/**
|
|
155
155
|
* When `true`, the component's value can be read, but cannot be modified.
|
|
156
156
|
*
|
|
@@ -178,7 +178,7 @@ export abstract class Autocomplete extends LitElement {
|
|
|
178
178
|
*/
|
|
179
179
|
accessor status: Status;
|
|
180
180
|
/** Specifies the component's suffix text. */
|
|
181
|
-
accessor suffixText: string;
|
|
181
|
+
accessor suffixText: string | undefined;
|
|
182
182
|
/**
|
|
183
183
|
* When `true` and the component is `open`, disables top layer placement.
|
|
184
184
|
*
|
|
@@ -189,9 +189,9 @@ export abstract class Autocomplete extends LitElement {
|
|
|
189
189
|
*/
|
|
190
190
|
accessor topLayerDisabled: boolean;
|
|
191
191
|
/** Specifies the validation icon to display under the component. */
|
|
192
|
-
accessor validationIcon: IconName | boolean;
|
|
192
|
+
accessor validationIcon: IconName | boolean | undefined;
|
|
193
193
|
/** Specifies the validation message to display under the component. */
|
|
194
|
-
accessor validationMessage: string;
|
|
194
|
+
accessor validationMessage: string | undefined;
|
|
195
195
|
/**
|
|
196
196
|
* The component's current validation state.
|
|
197
197
|
*
|
|
@@ -130,7 +130,7 @@ class Autocomplete extends LitElement {
|
|
|
130
130
|
this.transitionRef.value?.scrollTo(options);
|
|
131
131
|
}
|
|
132
132
|
async selectText() {
|
|
133
|
-
return this.referenceEl
|
|
133
|
+
return this.referenceEl?.selectText();
|
|
134
134
|
}
|
|
135
135
|
async setFocus(options) {
|
|
136
136
|
return this.focusSetter(() => this.referenceEl, options);
|
|
@@ -163,7 +163,7 @@ class Autocomplete extends LitElement {
|
|
|
163
163
|
}
|
|
164
164
|
let itemsAndGroupsUpdated = false;
|
|
165
165
|
if (changes.has("inputValue") && (this.hasUpdated || this.inputValue)) {
|
|
166
|
-
this.inputValueMatchPattern = this.inputValue
|
|
166
|
+
this.inputValueMatchPattern = this.inputValue ? new RegExp(`(${escapeRegExp(this.inputValue)})`, "i") : void 0;
|
|
167
167
|
this.updateItems();
|
|
168
168
|
this.updateGroups();
|
|
169
169
|
itemsAndGroupsUpdated = true;
|
|
@@ -260,7 +260,7 @@ class Autocomplete extends LitElement {
|
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
updateItems() {
|
|
263
|
-
let activeDescendant =
|
|
263
|
+
let activeDescendant = "";
|
|
264
264
|
this.items.forEach((item) => {
|
|
265
265
|
item.scale = this.scale;
|
|
266
266
|
item.inputValueMatchPattern = this.inputValueMatchPattern;
|
|
@@ -386,7 +386,7 @@ class Autocomplete extends LitElement {
|
|
|
386
386
|
const autofocus = this.el.autofocus;
|
|
387
387
|
const enterKeyHint = this.el.enterKeyHint;
|
|
388
388
|
const inputMode = this.el.inputMode;
|
|
389
|
-
return this.interactiveContainer({ disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div class=${safeClassMap(CSS.inputContainer)}><calcite-input .alignment=${this.alignment} aria-activedescendant=${this.activeDescendant ?? nothing} aria-controls=${listId ?? nothing} aria-label=${getLabelText(this) ?? nothing} aria-owns=${listId ?? nothing} aria-autocomplete=list .ariaExpanded=${isOpen} aria-haspopup=listbox .autocomplete=${this.autocomplete} .autofocus=${autofocus} class=${safeClassMap(CSS.input)} clearable .disabled=${disabled} enterkeyhint=${enterKeyHint ?? nothing} .form=${this.form} .icon=${this.icon ?? true} .iconFlipRtl=${this.iconFlipRtl} id=${inputId ?? nothing} inputmode=${inputMode ?? nothing} .label=${this.label} .loading=${this.loading} .maxLength=${this.maxLength} .messageOverrides=${this.messages} .minLength=${this.minLength} .name=${this.name} @
|
|
389
|
+
return this.interactiveContainer({ disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div class=${safeClassMap(CSS.inputContainer)}><calcite-input .alignment=${this.alignment} aria-activedescendant=${this.activeDescendant ?? nothing} aria-controls=${listId ?? nothing} aria-label=${getLabelText(this) ?? nothing} aria-owns=${listId ?? nothing} aria-autocomplete=list .ariaExpanded=${isOpen} aria-haspopup=listbox .autocomplete=${this.autocomplete} .autofocus=${autofocus} class=${safeClassMap(CSS.input)} clearable .disabled=${disabled} enterkeyhint=${enterKeyHint ?? nothing} .form=${this.form} .icon=${this.icon ?? true} .iconFlipRtl=${this.iconFlipRtl} id=${inputId ?? nothing} inputmode=${inputMode ?? nothing} .label=${this.label} .loading=${this.loading} .maxLength=${this.maxLength} .messageOverrides=${this.messages} .minLength=${this.minLength} .name=${this.name} @calciteInputChange=${this.changeHandler} @calciteInputInput=${this.inputHandler} @calciteInternalInputFocus=${this.handleInputFocus} @click=${this.inputClickHandler} @keydown=${this.keyDownHandler} .pattern=${this.pattern} .placeholder=${this.placeholder} .prefixText=${this.prefixText} .readOnly=${this.readOnly} .required=${this.required} role=combobox .scale=${this.scale} .status=${this.status} .suffixText=${this.suffixText} type=search .value=${this.inputValue} ${ref(this.setReferenceEl)}></calcite-input>${this.renderListBox()}<div class=${safeClassMap({
|
|
390
390
|
[CSS.contentContainer]: true,
|
|
391
391
|
[CSS.floatingUIContainer]: true,
|
|
392
392
|
[CSS.floatingUIContainerActive]: isOpen
|
|
@@ -13,7 +13,7 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
13
13
|
*/
|
|
14
14
|
export abstract class AutocompleteItem extends LitElement {
|
|
15
15
|
/** Specifies a description for the component. Displays below the label text. */
|
|
16
|
-
accessor description: string;
|
|
16
|
+
accessor description: string | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
19
19
|
*
|
|
@@ -27,13 +27,13 @@ export abstract class AutocompleteItem extends LitElement {
|
|
|
27
27
|
*/
|
|
28
28
|
accessor heading: string;
|
|
29
29
|
/** Specifies an icon to display at the end of the component. */
|
|
30
|
-
accessor iconEnd: IconName;
|
|
30
|
+
accessor iconEnd: IconName | undefined;
|
|
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 | undefined;
|
|
33
33
|
/** Specifies an icon to display at the start of the component. */
|
|
34
|
-
accessor iconStart: IconName;
|
|
34
|
+
accessor iconStart: IconName | undefined;
|
|
35
35
|
/** Specifies an accessible label for the component. */
|
|
36
|
-
accessor label: string;
|
|
36
|
+
accessor label: string | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* When `true`, the component is selected.
|
|
39
39
|
*
|
|
@@ -9,9 +9,9 @@ import type { Scale } from "../interfaces.js";
|
|
|
9
9
|
*/
|
|
10
10
|
export abstract class Avatar extends LitElement {
|
|
11
11
|
/** Specifies the full name of the user. When `label` and `thumbnail` are not defined, specifies the accessible name for the component. */
|
|
12
|
-
accessor fullName: string;
|
|
12
|
+
accessor fullName: string | undefined;
|
|
13
13
|
/** Specifies alternative text when `thumbnail` is defined, otherwise specifies an accessible label for the component. */
|
|
14
|
-
accessor label: string;
|
|
14
|
+
accessor label: string | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Specifies the size of the component.
|
|
17
17
|
*
|
|
@@ -19,9 +19,9 @@ export abstract class Avatar extends LitElement {
|
|
|
19
19
|
*/
|
|
20
20
|
accessor scale: Scale;
|
|
21
21
|
/** Specifies the `src` to an image. If the image is private, include an access token in the URL. */
|
|
22
|
-
accessor thumbnail: string;
|
|
22
|
+
accessor thumbnail: string | undefined;
|
|
23
23
|
/** Specifies the unique id of the user. */
|
|
24
|
-
accessor userId: string;
|
|
24
|
+
accessor userId: string | undefined;
|
|
25
25
|
/** Specifies the username of the user. */
|
|
26
|
-
accessor username: string;
|
|
26
|
+
accessor username: string | undefined;
|
|
27
27
|
}
|
|
@@ -36,7 +36,7 @@ export abstract class Block extends LitElement {
|
|
|
36
36
|
*/
|
|
37
37
|
accessor collapsible: boolean;
|
|
38
38
|
/** Specifies a description for the component. Displays below the heading. */
|
|
39
|
-
accessor description: string;
|
|
39
|
+
accessor description: string | undefined;
|
|
40
40
|
/**
|
|
41
41
|
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
|
42
42
|
*
|
|
@@ -63,17 +63,17 @@ export abstract class Block extends LitElement {
|
|
|
63
63
|
*/
|
|
64
64
|
accessor expanded: boolean;
|
|
65
65
|
/** Specifies the component's heading text. */
|
|
66
|
-
accessor heading: string;
|
|
66
|
+
accessor heading: string | undefined;
|
|
67
67
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
68
|
-
accessor headingLevel: HeadingLevel;
|
|
68
|
+
accessor headingLevel: HeadingLevel | undefined;
|
|
69
69
|
/** Specifies an icon to display at the end of the component. */
|
|
70
|
-
accessor iconEnd: IconName;
|
|
70
|
+
accessor iconEnd: IconName | undefined;
|
|
71
71
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
72
|
-
accessor iconFlipRtl: FlipContext;
|
|
72
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
73
73
|
/** Specifies an icon to display at the start of the component. */
|
|
74
|
-
accessor iconStart: IconName;
|
|
74
|
+
accessor iconStart: IconName | undefined;
|
|
75
75
|
/** Specifies an accessible label for the component. */
|
|
76
|
-
accessor label: string;
|
|
76
|
+
accessor label: string | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* When `true`, a busy indicator is displayed.
|
|
79
79
|
*
|
|
@@ -81,7 +81,7 @@ export abstract class Block extends LitElement {
|
|
|
81
81
|
*/
|
|
82
82
|
accessor loading: boolean;
|
|
83
83
|
/** Specifies the component's fallback `menuPlacement` when it's initial or specified `menuPlacement` has insufficient space available. */
|
|
84
|
-
accessor menuFlipPlacements: FlipPlacement[];
|
|
84
|
+
accessor menuFlipPlacements: FlipPlacement[] | undefined;
|
|
85
85
|
/**
|
|
86
86
|
* Determines where the action menu will be positioned.
|
|
87
87
|
*
|
|
@@ -129,7 +129,7 @@ export abstract class Block extends LitElement {
|
|
|
129
129
|
*
|
|
130
130
|
* @deprecated in v3.0.0, removal target v6.0.0 - Use the `icon-start` property instead.
|
|
131
131
|
*/
|
|
132
|
-
accessor status: Status;
|
|
132
|
+
accessor status: Status | undefined;
|
|
133
133
|
/**
|
|
134
134
|
* When `true` and the component is `open`, disables top layer placement.
|
|
135
135
|
*
|
|
@@ -15,46 +15,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
15
15
|
import { s as styles$2 } from "../../chunks/sortable.js";
|
|
16
16
|
import { s as styles$1 } from "../../chunks/header.js";
|
|
17
17
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
18
|
-
|
|
19
|
-
content: "content",
|
|
20
|
-
toggle: "toggle",
|
|
21
|
-
header: "header"
|
|
22
|
-
};
|
|
23
|
-
const CSS = {
|
|
24
|
-
actionsEnd: "actions-end",
|
|
25
|
-
container: "container",
|
|
26
|
-
content: "content",
|
|
27
|
-
contentEnd: "content-end",
|
|
28
|
-
contentStart: "content-start",
|
|
29
|
-
description: "description",
|
|
30
|
-
header: "header",
|
|
31
|
-
headerContainer: "header-container",
|
|
32
|
-
headerHasContent: "header--has-content",
|
|
33
|
-
headerDraggable: "header--draggable",
|
|
34
|
-
heading: "heading",
|
|
35
|
-
icon: "icon",
|
|
36
|
-
iconStart: "icon--start",
|
|
37
|
-
iconEnd: "icon--end",
|
|
38
|
-
iconEndContainer: "icon-end-container",
|
|
39
|
-
invalid: "invalid",
|
|
40
|
-
statusIcon: "status-icon",
|
|
41
|
-
title: "title",
|
|
42
|
-
toggle: "toggle",
|
|
43
|
-
toggleIcon: "toggle-icon",
|
|
44
|
-
valid: "valid"
|
|
45
|
-
};
|
|
46
|
-
const SLOTS = {
|
|
47
|
-
actionsEnd: "actions-end",
|
|
48
|
-
contentEnd: "content-end",
|
|
49
|
-
contentStart: "content-start",
|
|
50
|
-
headerMenuActions: "header-menu-actions"
|
|
51
|
-
};
|
|
52
|
-
const ICONS = {
|
|
53
|
-
expanded: "chevron-up",
|
|
54
|
-
collapsed: "chevron-down",
|
|
55
|
-
valid: "check-circle",
|
|
56
|
-
invalid: "exclamation-mark-triangle"
|
|
57
|
-
};
|
|
18
|
+
import { C as CSS, I as ICONS, S as SLOTS, a as IDS } from "../../chunks/resources5.js";
|
|
58
19
|
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]) .header{gap:var(--calcite-spacing-sm)}:host([scale=s]) .icon-end-container{gap:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm)}:host([scale=s]) .description{font-size:var(--calcite-font-size-xs)}:host([scale=s]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-sm);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-xxs)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) )}:host([scale=m]) .header{gap:var(--calcite-spacing-md)}:host([scale=m]) .icon-end-container{gap:var(--calcite-spacing-md);padding-inline-end:var(--calcite-spacing-md)}:host([scale=m]) .heading{font-size:var(--calcite-font-size)}:host([scale=m]) .description{font-size:var(--calcite-font-size-sm)}:host([scale=m]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xxs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-md);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-sm)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) )}:host([scale=l]) .header{gap:var(--calcite-spacing-lg)}:host([scale=l]) .icon-end-container{gap:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md)}:host([scale=l]) .description{font-size:var(--calcite-font-size)}:host([scale=l]){--calcite-internal-block-actions-spacing: var(--calcite-spacing-xs);--calcite-internal-block-header-content-padding: var(--calcite-spacing-lg);--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-md)) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-spacing-lg)) )}:host{display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:0px;border-block-end-width:1px;border-style:solid;padding:0;transition-property:margin;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.215,.44,.42,.88);flex-basis:auto;border-color:var(--calcite-block-border-color, var(--calcite-color-border-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{justify-content:flex-start}.header--has-content{padding:var(--calcite-internal-block-header-content-padding)}.header--draggable{padding-inline-start:var(--calcite-spacing-xxs)}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto auto auto;grid-template-areas:"handle header icon-end menu actions-end"}.icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.actions-end{align-items:center;display:flex;gap:var(--calcite-internal-block-actions-spacing);grid-area:actions-end;padding-block:var(--calcite-internal-block-actions-spacing);padding-inline-end:var(--calcite-internal-block-actions-spacing)}.toggle{margin:0;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;padding:0;outline-color:transparent;font-family:inherit;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-color-foreground-2))}.toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.toggle:active{background-color:var(--calcite-block-header-background-color-press, var(--calcite-color-foreground-3))}calcite-loader[inline]{align-self:center}calcite-sort-handle{align-self:center;grid-area:handle;margin-block:var(--calcite-internal-block-actions-spacing);padding-inline-start:var(--calcite-spacing-xxs)}.title{display:flex;flex-direction:column}.header .title .heading{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-normal);line-height:var(--calcite-font-line-height-relative-snug)}.description{padding:0;word-wrap:break-word;word-break:break-word;color:var(--calcite-block-description-text-color, var(--calcite-color-text-3));font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-snug)}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;grid-area:icon-end}.toggle-icon{align-self:center;justify-self:end;transition-property:color;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1);color:var(--calcite-block-collapsible-icon-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.toggle:hover .toggle-icon{color:var(--calcite-block-collapsible-icon-color-hover, var(--calcite-block-icon-color-hover, var(--calcite-color-text-1)))}.container{position:relative;display:flex;block-size:100%;flex-direction:column}.content{position:relative;min-block-size:0px;flex:1 1 0%;opacity:0;padding-block:var(--calcite-internal-block-padding-block);padding-inline:var(--calcite-internal-block-padding-inline);transition:opacity var(--calcite-internal-animation-timing-slow) ease-in-out}.content-end,.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}calcite-action-menu{align-self:center;grid-area:menu;margin-inline-end:var(--calcite-internal-block-actions-spacing)}:host([expanded]){margin-block:.5rem}:host([expanded]) .header .title .heading{color:var(--calcite-block-heading-text-color, var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1)));font-weight:var(--calcite-font-weight-medium)}:host([expanded]) .description{color:var(--calcite-block-description-text-color, var(--calcite-color-text-2))}:host([expanded]) .icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .content{opacity:1}@starting-style{:host([expanded]){margin-block-start:0;opacity:0}}:host([expanded][scale=s]){margin-block:var(--calcite-spacing-xxs)}:host([expanded][scale=l]){margin-block:var(--calcite-spacing-md)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
59
20
|
class Block extends LitElement {
|
|
60
21
|
constructor() {
|
|
@@ -80,8 +41,6 @@ class Block extends LitElement {
|
|
|
80
41
|
this.sortDisabled = false;
|
|
81
42
|
this.overlayPositioning = "absolute";
|
|
82
43
|
this.scale = "m";
|
|
83
|
-
this.setPosition = null;
|
|
84
|
-
this.setSize = null;
|
|
85
44
|
this.sortHandleOpen = false;
|
|
86
45
|
this.topLayerDisabled = false;
|
|
87
46
|
this.calciteBlockBeforeClose = createEvent({ cancelable: false });
|
|
@@ -216,12 +175,12 @@ class Block extends LitElement {
|
|
|
216
175
|
return [loading ? html`<calcite-scrim .loading=${loading}></calcite-scrim>` : null, defaultSlot];
|
|
217
176
|
}
|
|
218
177
|
renderLoaderStatusIcon() {
|
|
219
|
-
const { loading, messages, status
|
|
220
|
-
return loading ? keyed("loader", html`<div class=${safeClassMap(CSS.icon)}><calcite-loader inline .label=${messages.loading} .scale=${this.scale}></calcite-loader></div>`) :
|
|
178
|
+
const { loading, messages, status } = this;
|
|
179
|
+
return loading ? keyed("loader", html`<div class=${safeClassMap(CSS.icon)}><calcite-loader inline .label=${messages.loading} .scale=${this.scale}></calcite-loader></div>`) : status ? keyed("status-icon", html`<div class=${safeClassMap(CSS.icon)}><calcite-icon class=${safeClassMap({
|
|
221
180
|
[CSS.statusIcon]: true,
|
|
222
|
-
[CSS.valid]:
|
|
223
|
-
[CSS.invalid]:
|
|
224
|
-
})} .icon=${ICONS[
|
|
181
|
+
[CSS.valid]: status == "valid",
|
|
182
|
+
[CSS.invalid]: status == "invalid"
|
|
183
|
+
})} .icon=${ICONS[status]} .scale=${getIconScale(this.scale)}></calcite-icon></div>`) : null;
|
|
225
184
|
}
|
|
226
185
|
renderActionsEnd() {
|
|
227
186
|
return html`<div class=${safeClassMap(CSS.actionsEnd)} .hidden=${!this.hasEndActions}><slot name=${SLOTS.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot></div>`;
|
|
@@ -247,7 +206,7 @@ class Block extends LitElement {
|
|
|
247
206
|
return keyed(iconValue, html`<calcite-icon class=${safeClassMap(iconClass)} .flipRtl=${flipRtl} .icon=${iconValue} .scale=${getIconScale(this.scale)}></calcite-icon>`);
|
|
248
207
|
}
|
|
249
208
|
render() {
|
|
250
|
-
const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart } = this;
|
|
209
|
+
const { collapsible, loading, expanded, label, heading, messages, description, menuFlipPlacements, menuPlacement, moveToItems, addToItems, setPosition, setSize, dragDisabled, sortDisabled, iconEnd, hasContentEnd, hasContentStart, iconStart, status } = this;
|
|
251
210
|
const toggleLabel = expanded ? messages.collapse : messages.expand;
|
|
252
211
|
const headerHasContent = !!(heading || description || hasContentEnd || hasContentStart || iconStart || loading || status);
|
|
253
212
|
const headerContent = html`<header class=${safeClassMap({
|
|
@@ -256,7 +215,7 @@ class Block extends LitElement {
|
|
|
256
215
|
[CSS.headerDraggable]: this.dragHandle
|
|
257
216
|
})} id=${IDS.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`;
|
|
258
217
|
const collapseIcon = expanded ? ICONS.expanded : ICONS.collapsed;
|
|
259
|
-
const headerNode = html`<div class=${safeClassMap(CSS.headerContainer)}>${this.dragHandle ? html`<calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${heading || label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle>` : null}${collapsible ? html`<button aria-controls=${IDS.content} aria-describedby=${IDS.header} .ariaExpanded=${collapsible ? expanded :
|
|
218
|
+
const headerNode = html`<div class=${safeClassMap(CSS.headerContainer)}>${this.dragHandle ? html`<calcite-sort-handle .addToItems=${addToItems} .disabled=${dragDisabled} .label=${heading || label} .moveToItems=${moveToItems} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${setPosition} .setSize=${setSize} .sortDisabled=${sortDisabled} .topLayerDisabled=${this.topLayerDisabled} ${ref(this.setSortHandleEl)}></calcite-sort-handle>` : null}${collapsible ? html`<button aria-controls=${IDS.content} aria-describedby=${IDS.header} .ariaExpanded=${collapsible ? expanded : void 0} class=${safeClassMap(CSS.toggle)} id=${IDS.toggle} @click=${this.onHeaderClick} title=${toggleLabel ?? nothing}>${headerContent}<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}<calcite-icon class=${safeClassMap(CSS.toggleIcon)} .icon=${collapseIcon} .scale=${getIconScale(this.scale)}></calcite-icon></div></button>` : headerContent}${iconEnd && !collapsible ? html`<div class=${safeClassMap(CSS.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}</div>` : !iconEnd && !collapsible ? this.renderContentEnd() : null}<calcite-action-menu .flipPlacements=${menuFlipPlacements ?? ["top", "bottom"]} .hidden=${!this.hasMenuActions} .label=${messages.options} .overlayPositioning=${this.overlayPositioning} .placement=${menuPlacement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled}><slot name=${SLOTS.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;
|
|
260
219
|
return this.interactiveContainer({ disabled: this.disabled, children: html`<article aria-label=${label ?? nothing} .ariaBusy=${loading} class=${safeClassMap({
|
|
261
220
|
[CSS.container]: true
|
|
262
221
|
})}>${headerNode}<section aria-labelledby=${IDS.toggle} class=${safeClassMap(CSS.content)} .hidden=${!expanded} id=${IDS.content}>${this.renderScrim()}</section></article>` });
|
|
@@ -10,9 +10,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
10
10
|
import { u as useCancelable } from "../../chunks/useCancelable.js";
|
|
11
11
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
12
12
|
import { u as useSortable } from "../../chunks/useSortable.js";
|
|
13
|
-
|
|
14
|
-
return element.tagName === "CALCITE-BLOCK";
|
|
15
|
-
}
|
|
13
|
+
import { i as isBlock } from "../../chunks/resources5.js";
|
|
16
14
|
const CSS = {
|
|
17
15
|
container: "container",
|
|
18
16
|
groupContainer: "group-container",
|
|
@@ -180,12 +178,12 @@ class BlockGroup extends LitElement {
|
|
|
180
178
|
this.calciteBlockGroupOrderChange.emit(detail);
|
|
181
179
|
}
|
|
182
180
|
setParentBlockGroup() {
|
|
183
|
-
this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector);
|
|
181
|
+
this.parentBlockGroupEl = this.el.parentElement?.closest(blockGroupSelector) || void 0;
|
|
184
182
|
}
|
|
185
183
|
handleDefaultSlotChange(event) {
|
|
186
184
|
const blockChildren = [];
|
|
187
185
|
this.blockAndGroups = slotChangeGetAssignedElements(event).filter((el) => {
|
|
188
|
-
if (el
|
|
186
|
+
if (isBlock(el)) {
|
|
189
187
|
blockChildren.push(el);
|
|
190
188
|
}
|
|
191
189
|
return el.matches(blockSelector) || el.matches(blockGroupSelector);
|
|
@@ -21,11 +21,11 @@ export abstract class BlockSection extends LitElement {
|
|
|
21
21
|
*/
|
|
22
22
|
accessor expanded: boolean;
|
|
23
23
|
/** Specifies an icon to display at the end of the component. */
|
|
24
|
-
accessor iconEnd: IconName;
|
|
24
|
+
accessor iconEnd: IconName | undefined;
|
|
25
25
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
26
|
-
accessor iconFlipRtl: FlipContext;
|
|
26
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
27
27
|
/** Specifies an icon to display at the start of the component. */
|
|
28
|
-
accessor iconStart: IconName;
|
|
28
|
+
accessor iconStart: IconName | undefined;
|
|
29
29
|
/** Overrides individual strings used by the component. */
|
|
30
30
|
accessor messageOverrides: {
|
|
31
31
|
collapse?: string;
|
|
@@ -49,9 +49,9 @@ export abstract class BlockSection extends LitElement {
|
|
|
49
49
|
*
|
|
50
50
|
* @deprecated in v2.8.1, removal target v6.0.0 - Use `icon-start` instead.
|
|
51
51
|
*/
|
|
52
|
-
accessor status: Status;
|
|
52
|
+
accessor status: Status | undefined;
|
|
53
53
|
/** The component header text. */
|
|
54
|
-
accessor text: string;
|
|
54
|
+
accessor text: string | undefined;
|
|
55
55
|
/**
|
|
56
56
|
* Specifies how the component's toggle is displayed, where:
|
|
57
57
|
*
|
|
@@ -94,7 +94,7 @@ class BlockSection extends LitElement {
|
|
|
94
94
|
}
|
|
95
95
|
renderStatusIcon() {
|
|
96
96
|
const { status } = this;
|
|
97
|
-
const statusIcon = ICONS[status]
|
|
97
|
+
const statusIcon = status && ICONS[status];
|
|
98
98
|
const statusIconClasses = {
|
|
99
99
|
[CSS.statusIcon]: true,
|
|
100
100
|
[CSS.valid]: status == "valid",
|
|
@@ -50,15 +50,15 @@ export abstract class Button extends LitElement {
|
|
|
50
50
|
*
|
|
51
51
|
* When not set, the component is associated with its ancestor form element, if one exists.
|
|
52
52
|
*/
|
|
53
|
-
accessor form: string;
|
|
53
|
+
accessor form: string | undefined;
|
|
54
54
|
/** Specifies the URL of the linked resource, which can be set as an absolute or relative path. */
|
|
55
|
-
accessor href: string;
|
|
55
|
+
accessor href: string | undefined;
|
|
56
56
|
/** Specifies an icon to display at the end of the component. */
|
|
57
|
-
accessor iconEnd: IconName;
|
|
57
|
+
accessor iconEnd: IconName | undefined;
|
|
58
58
|
/** Displays the `iconStart` and/or `iconEnd` as flipped when the element direction is right-to-left (`"rtl"`). */
|
|
59
|
-
accessor iconFlipRtl: FlipContext;
|
|
59
|
+
accessor iconFlipRtl: FlipContext | undefined;
|
|
60
60
|
/** Specifies an icon to display at the start of the component. */
|
|
61
|
-
accessor iconStart: IconName;
|
|
61
|
+
accessor iconStart: IconName | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Specifies the kind of the component, which will apply to the border and background if applicable.
|
|
64
64
|
*
|
|
@@ -66,7 +66,7 @@ export abstract class Button extends LitElement {
|
|
|
66
66
|
*/
|
|
67
67
|
accessor kind: Extract<"brand" | "danger" | "inverse" | "neutral", Kind>;
|
|
68
68
|
/** Specifies an accessible label for the component. */
|
|
69
|
-
accessor label: string;
|
|
69
|
+
accessor label: string | undefined;
|
|
70
70
|
/**
|
|
71
71
|
* When `true`, a busy indicator is displayed.
|
|
72
72
|
*
|
|
@@ -82,7 +82,7 @@ export abstract class Button extends LitElement {
|
|
|
82
82
|
*
|
|
83
83
|
* @see [MDN - rel](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel)
|
|
84
84
|
*/
|
|
85
|
-
accessor rel: string;
|
|
85
|
+
accessor rel: string | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* When `true`, adds a round style to the component.
|
|
88
88
|
*
|
|
@@ -106,7 +106,7 @@ export abstract class Button extends LitElement {
|
|
|
106
106
|
*
|
|
107
107
|
* @see [MDN - target](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target)
|
|
108
108
|
*/
|
|
109
|
-
accessor target: string;
|
|
109
|
+
accessor target: string | undefined;
|
|
110
110
|
/**
|
|
111
111
|
* Specifies the default behavior of the component.
|
|
112
112
|
*
|
|
@@ -96,7 +96,7 @@ class Button extends LitElement {
|
|
|
96
96
|
setTooltipText() {
|
|
97
97
|
const { contentRef: { value: contentEl } } = this;
|
|
98
98
|
if (contentEl) {
|
|
99
|
-
this.tooltipText = contentEl.offsetWidth < contentEl.scrollWidth ? this.el.innerText ||
|
|
99
|
+
this.tooltipText = contentEl.offsetWidth < contentEl.scrollWidth ? this.el.innerText || void 0 : void 0;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
setChildEl(el) {
|
|
@@ -111,13 +111,13 @@ class Button extends LitElement {
|
|
|
111
111
|
const iconStartEl = html`<calcite-icon class=${safeClassMap({ [CSS.icon]: true, [CSS.iconStart]: true })} .flipRtl=${this.iconFlipRtl === "start" || this.iconFlipRtl === "both"} .icon=${this.iconStart} .scale=${getIconScale(this.scale)}></calcite-icon>`;
|
|
112
112
|
const iconEndEl = html`<calcite-icon class=${safeClassMap({ [CSS.icon]: true, [CSS.iconEnd]: true })} .flipRtl=${this.iconFlipRtl === "end" || this.iconFlipRtl === "both"} .icon=${this.iconEnd} .scale=${getIconScale(this.scale)}></calcite-icon>`;
|
|
113
113
|
const contentEl = html`<span class=${safeClassMap(CSS.content)} ${ref(this.contentRef)}><slot></slot></span>`;
|
|
114
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html$1`<${DynamicHtmlTag} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded ? this.el.ariaExpanded :
|
|
114
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html$1`<${DynamicHtmlTag} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded ? this.el.ariaExpanded : void 0} .ariaLabel=${!this.loading ? getLabelText(this) : this.messages.loading} aria-live=polite class=${safeClassMap({
|
|
115
115
|
[CSS.buttonPadding]: noStartEndIcons,
|
|
116
116
|
[CSS.buttonPaddingShrunk]: !noStartEndIcons,
|
|
117
117
|
[CSS.contentSlotted]: this.hasContent,
|
|
118
118
|
[CSS.iconStartEmpty]: !this.iconStart,
|
|
119
119
|
[CSS.iconEndEmpty]: !this.iconEnd
|
|
120
|
-
})} .disabled=${childElType === "button" ? this.disabled :
|
|
120
|
+
})} .disabled=${childElType === "button" ? this.disabled : void 0} download=${(childElType === "a" ? this.download === true || this.download === "" ? "" : this.download || void 0 : void 0) ?? nothing} href=${(childElType === "a" ? this.href : void 0) ?? nothing} name=${(childElType === "button" ? this.name : void 0) ?? nothing} rel=${(childElType === "a" ? this.rel : void 0) ?? nothing} tabindex=${(this.disabled ? -1 : void 0) ?? nothing} target=${(childElType === "a" ? this.target : void 0) ?? nothing} title=${this.tooltipText ?? nothing} type=${(childElType === "button" ? this.type : void 0) ?? nothing} ${ref(this.setChildEl)}>${loaderNode}${this.iconStart ? iconStartEl : null}${this.hasContent ? contentEl : null}${this.iconEnd ? iconEndEl : null}</${DynamicHtmlTag}>` });
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
customElement("calcite-button", Button);
|
|
@@ -30,7 +30,7 @@ export abstract class Card extends LitElement {
|
|
|
30
30
|
*/
|
|
31
31
|
accessor disabled: boolean;
|
|
32
32
|
/** Specifies an accessible label for the component. */
|
|
33
|
-
accessor label: string;
|
|
33
|
+
accessor label: string | undefined;
|
|
34
34
|
/**
|
|
35
35
|
* When `true`, a busy indicator is displayed.
|
|
36
36
|
*
|
|
@@ -70,8 +70,6 @@ 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;
|
|
75
73
|
this.tabListRef = createRef();
|
|
76
74
|
this.timer = () => {
|
|
77
75
|
let time = this.slideDurationRemaining;
|
|
@@ -97,6 +95,7 @@ class Carousel extends LitElement {
|
|
|
97
95
|
this.items = [];
|
|
98
96
|
this.maxItems = centerItemsByBreakpoint.xxsmall;
|
|
99
97
|
this.playing = false;
|
|
98
|
+
this.selectedIndex = 0;
|
|
100
99
|
this.slideDurationRemaining = 1;
|
|
101
100
|
this.suspendedDueToFocus = false;
|
|
102
101
|
this.suspendedDueToHover = false;
|
|
@@ -122,7 +121,7 @@ class Carousel extends LitElement {
|
|
|
122
121
|
this.styles = styles;
|
|
123
122
|
}
|
|
124
123
|
async play() {
|
|
125
|
-
if (this.playing || !this.hasMultiple || this.autoplay !== "" &&
|
|
124
|
+
if (this.playing || !this.hasMultiple || this.autoplay !== "" && this.autoplay !== true && this.autoplay !== "paused") {
|
|
126
125
|
return;
|
|
127
126
|
}
|
|
128
127
|
this.handlePlay(true);
|
|
@@ -287,7 +286,7 @@ class Carousel extends LitElement {
|
|
|
287
286
|
}
|
|
288
287
|
}
|
|
289
288
|
handleItemSelection(event) {
|
|
290
|
-
const item = event.
|
|
289
|
+
const item = event.currentTarget;
|
|
291
290
|
const requestedPosition = parseInt(item.dataset.index);
|
|
292
291
|
if (requestedPosition === this.selectedIndex) {
|
|
293
292
|
return;
|
|
@@ -355,7 +354,7 @@ class Carousel extends LitElement {
|
|
|
355
354
|
case " ":
|
|
356
355
|
case "Enter":
|
|
357
356
|
event.preventDefault();
|
|
358
|
-
if (this.autoplay === "" || this.autoplay || this.autoplay === "paused") {
|
|
357
|
+
if (this.autoplay === "" || this.autoplay === true || this.autoplay === "paused") {
|
|
359
358
|
this.toggleRotation();
|
|
360
359
|
}
|
|
361
360
|
break;
|
|
@@ -425,7 +424,7 @@ class Carousel extends LitElement {
|
|
|
425
424
|
return html`<div class=${safeClassMap({
|
|
426
425
|
[CSS.pagination]: true,
|
|
427
426
|
[CSS.containerOverlaid]: this.controlOverlay
|
|
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>`;
|
|
427
|
+
})} @keydown=${this.tabListKeyDownHandler} ${ref(this.tabListRef)}>${(this.playing || this.autoplay === "" || this.autoplay === true || 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>`;
|
|
429
428
|
}
|
|
430
429
|
renderPaginationItems() {
|
|
431
430
|
const { selectedIndex, maxItems, items, label, handleItemSelection } = this;
|