@esri/calcite-components 6.0.0-next.56 → 6.0.0-next.57
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/255DGVF3.js +2 -0
- package/dist/cdn/{VGM25LYH.js → 2C6O7GZD.js} +1 -1
- package/dist/cdn/{LMFURA5R.js → 2P4DFN2O.js} +1 -1
- package/dist/cdn/{ZB2E7CSN.js → 2PK5LMCW.js} +1 -1
- package/dist/cdn/{E2HRYV6U.js → 2S4LRLKY.js} +1 -1
- package/dist/cdn/{HPEOY25W.js → 3723XZUX.js} +1 -1
- package/dist/cdn/{N6XXW6VX.js → 3F326EUW.js} +1 -1
- package/dist/cdn/{P6JMXGFH.js → 3K7RNV7S.js} +1 -1
- package/dist/cdn/3QXLTJ4A.js +2 -0
- package/dist/cdn/{YX7JAWEO.js → 427FF3YB.js} +1 -1
- package/dist/cdn/{6YXLU42B.js → 44XMAA3C.js} +1 -1
- package/dist/cdn/{3Q27245E.js → 47KWRQ4W.js} +1 -1
- package/dist/cdn/4HYVPSXV.js +2 -0
- package/dist/cdn/{CVIE5I57.js → 4PILPCKW.js} +1 -1
- package/dist/cdn/{5LLPOL76.js → 4TFX5NKO.js} +1 -1
- package/dist/cdn/{NXMPPV3D.js → 536UDPUJ.js} +1 -1
- package/dist/cdn/{G3SWXEXO.js → 53N3A2GQ.js} +1 -1
- package/dist/cdn/{TIJQXEQL.js → 544WHEAC.js} +1 -1
- package/dist/cdn/{U4RM5WFK.js → 5F3N7QMR.js} +1 -1
- package/dist/cdn/{K36EGHOF.js → 5ZE3EOFT.js} +1 -1
- package/dist/cdn/{UJ4PDVXW.js → 6CWE6MNV.js} +1 -1
- package/dist/cdn/{ZFOWVHHV.js → 6FRRQNIA.js} +1 -1
- package/dist/cdn/{KKRAQED3.js → 6OFRJTUT.js} +1 -1
- package/dist/cdn/6V6OLYYL.js +2 -0
- package/dist/cdn/{6CYN63JK.js → 6YRETAZF.js} +1 -1
- package/dist/cdn/{4LPCAOP3.js → 6ZUSE3GG.js} +1 -1
- package/dist/cdn/{4IKIZQG5.js → 7CQ6OL7X.js} +1 -1
- package/dist/cdn/{XP4JU5TP.js → 7I4J3QL3.js} +1 -1
- package/dist/cdn/{HTXLYAMX.js → 7URWMNOS.js} +1 -1
- package/dist/cdn/{VIGRVDJI.js → ACOYPEYA.js} +1 -1
- package/dist/cdn/{OB25XPRX.js → ACVA6KXM.js} +1 -1
- package/dist/cdn/{NKLO6TEA.js → AFAULQJZ.js} +1 -1
- package/dist/cdn/{LW5XCA4E.js → AK5R6KXR.js} +1 -1
- package/dist/cdn/{GT6RVEAO.js → AKXSJUEZ.js} +1 -1
- package/dist/cdn/{GTKKHOEO.js → AWZZDDF5.js} +1 -1
- package/dist/cdn/BBJ5QQZI.js +2 -0
- package/dist/cdn/{KSN5UAE2.js → BGVOI22E.js} +1 -1
- package/dist/cdn/{BKKTO6AH.js → BH3JLG7G.js} +1 -1
- package/dist/cdn/BJ7WZK6B.js +2 -0
- package/dist/cdn/{HPR2O65L.js → C5E6QSIS.js} +1 -1
- package/dist/cdn/{NLN5R22S.js → CFPNPSEH.js} +1 -1
- package/dist/cdn/{6LVQWWFF.js → CNATAZKN.js} +1 -1
- package/dist/cdn/{B2DHET4K.js → COJORJUY.js} +1 -1
- package/dist/cdn/{K6USGLDX.js → CPHTL2F6.js} +1 -1
- package/dist/cdn/{PGCODIXQ.js → CUXRRYYR.js} +1 -1
- package/dist/cdn/{IBBPIG5R.js → D4GBRS4G.js} +1 -1
- package/dist/cdn/{MCXI4WUS.js → DCJVJGUW.js} +1 -1
- package/dist/cdn/{4RQTCQC6.js → DIXFECD7.js} +1 -1
- package/dist/cdn/{2WHTGZQS.js → DPAMT5RL.js} +1 -1
- package/dist/cdn/{FNGAD4GO.js → DWPNKYZB.js} +1 -1
- package/dist/cdn/{CZIKULZW.js → DXHS5GYG.js} +1 -1
- package/dist/cdn/{SCFOUBMA.js → ECV3BCU2.js} +1 -1
- package/dist/cdn/{PUMDU637.js → EEOKRDQW.js} +1 -1
- package/dist/cdn/{Q3L3RVAR.js → EFCPZGE6.js} +1 -1
- package/dist/cdn/{FH4YE5OG.js → EHA27KQT.js} +1 -1
- package/dist/cdn/{BEM5ABJU.js → F4VQ6GFT.js} +1 -1
- package/dist/cdn/{QPTSBZDV.js → FNBZIEVI.js} +1 -1
- package/dist/cdn/{COEXZSGL.js → FT3LFO47.js} +1 -1
- package/dist/cdn/{2F6MZ64P.js → FZCH4GEB.js} +1 -1
- package/dist/cdn/GJJEZYW5.js +2 -0
- package/dist/cdn/{2RA7A2TQ.js → GVFKJAQB.js} +1 -1
- package/dist/cdn/{P4P5LYS7.js → GVTCSUCB.js} +1 -1
- package/dist/cdn/{CXI2QIU3.js → H5EGUTQH.js} +1 -1
- package/dist/cdn/{4SCKG4H2.js → HTGSUTHB.js} +1 -1
- package/dist/cdn/I4V7SKAA.js +2 -0
- package/dist/cdn/{DEKCVIAW.js → I5IUYLTE.js} +1 -1
- package/dist/cdn/{R4EU5AGW.js → I6RJ2VIN.js} +1 -1
- package/dist/cdn/IFYYF2UJ.js +2 -0
- package/dist/cdn/{KALCVARG.js → IVIEPOEY.js} +1 -1
- package/dist/cdn/{WUGFIAFX.js → IYAWTCCQ.js} +1 -1
- package/dist/cdn/{RRONJTJD.js → JBB74BJD.js} +1 -1
- package/dist/cdn/{WZAXRAXI.js → JI3CVRLG.js} +1 -1
- package/dist/cdn/{LWKJSNCY.js → JNYTB4OF.js} +1 -1
- package/dist/cdn/{RPEFLNLK.js → JO6B72H7.js} +1 -1
- package/dist/cdn/{DUBLDU5A.js → JRFBOXZF.js} +1 -1
- package/dist/cdn/{CLWDSEIV.js → JV6ZOC4Q.js} +1 -1
- package/dist/cdn/{MOY7GOGB.js → JX5QRWOH.js} +1 -1
- package/dist/cdn/{LQH6WHIU.js → JXXBBIQE.js} +1 -1
- package/dist/cdn/{NNBQ4QCY.js → JXYWBESB.js} +1 -1
- package/dist/cdn/K3YWTTEY.js +2 -0
- package/dist/cdn/{RCDCROAN.js → KMPESISY.js} +1 -1
- package/dist/cdn/{BRZV2V7Q.js → KOACFUL2.js} +1 -1
- package/dist/cdn/KP6ZOTOC.js +2 -0
- package/dist/cdn/{7GVADUMM.js → LZEWTLMU.js} +1 -1
- package/dist/cdn/{F4LZYMSJ.js → MADPO7KC.js} +1 -1
- package/dist/cdn/{D75B3L7X.js → MFI6726F.js} +1 -1
- package/dist/cdn/{4EDPY25E.js → MK5VDQGI.js} +1 -1
- package/dist/cdn/{TDDPJB35.js → MPKF6LGA.js} +1 -1
- package/dist/cdn/MQTYR6LO.js +2 -0
- package/dist/cdn/{IDDIQIBU.js → NADBQLBM.js} +1 -1
- package/dist/cdn/{APQDAA5X.js → NAGETJPT.js} +1 -1
- package/dist/cdn/{X5HE2EGX.js → NFMCPHWW.js} +1 -1
- package/dist/cdn/ODQTJZLA.js +2 -0
- package/dist/cdn/{SJEAMB5O.js → ODXUFMJH.js} +1 -1
- package/dist/cdn/{VGEYIES5.js → PAS5DKDX.js} +1 -1
- package/dist/cdn/{RSMT2DFP.js → PDSLJRDS.js} +1 -1
- package/dist/cdn/{MW5XU2BP.js → PFRK3XFW.js} +1 -1
- package/dist/cdn/{6AJKSTOE.js → PWKBCDNZ.js} +1 -1
- package/dist/cdn/Q2Q2QGKM.js +2 -0
- package/dist/cdn/{FPZYVCR5.js → Q4VFSQF5.js} +1 -1
- package/dist/cdn/{KCPJKURU.js → QGFOIT4W.js} +1 -1
- package/dist/cdn/QRXSGVJ3.js +2 -0
- package/dist/cdn/{TEXAGBJG.js → QT77Q2K3.js} +1 -1
- package/dist/cdn/{X5J4ZNU6.js → QUYQCGNL.js} +1 -1
- package/dist/cdn/{D7WBWJMQ.js → R4TNZDBK.js} +1 -1
- package/dist/cdn/{YVK4FAAQ.js → RJSOXSZD.js} +1 -1
- package/dist/cdn/{VGN5GA67.js → RP3EAINH.js} +1 -1
- package/dist/cdn/{UMTK4B3R.js → RR5ATBN4.js} +1 -1
- package/dist/cdn/{JNNC5DG5.js → S4JGRGUG.js} +1 -1
- package/dist/cdn/{ITL2TCG2.js → S75YSIFL.js} +1 -1
- package/dist/cdn/{EJSUPVR5.js → SP5REG7X.js} +1 -1
- package/dist/cdn/{KC4ZVNSV.js → SS34LSD2.js} +1 -1
- package/dist/cdn/{2MHWSQMP.js → SVIV7MP3.js} +1 -1
- package/dist/cdn/{DFTDOHMC.js → T4E5UUS2.js} +1 -1
- package/dist/cdn/{SZ3DGRMT.js → TLB24UHT.js} +1 -1
- package/dist/cdn/{FGK3PS7J.js → TYC5HTPV.js} +1 -1
- package/dist/cdn/{CQ4IJ5IA.js → U3YL3XUS.js} +1 -1
- package/dist/cdn/U7YUFZ25.js +2 -0
- package/dist/cdn/{UIVDNEEG.js → UAWAKMEG.js} +1 -1
- package/dist/cdn/UDA2GABL.js +2 -0
- package/dist/cdn/{OOHMQLRZ.js → UDVQVBC6.js} +1 -1
- package/dist/cdn/{QCQTO3WO.js → UPVI4NRM.js} +1 -1
- package/dist/cdn/{SO3YVK5K.js → UWHSTM2T.js} +1 -1
- package/dist/cdn/{WHEVMBOL.js → VNYD2OUD.js} +1 -1
- package/dist/cdn/{KCOIYEAT.js → VUOWO7CG.js} +1 -1
- package/dist/cdn/{LHPVX5T3.js → WUOCYAV4.js} +1 -1
- package/dist/cdn/{CYP7WL6D.js → WXN2SASK.js} +1 -1
- package/dist/cdn/{OQQ4WIQT.js → WYVF25H2.js} +1 -1
- package/dist/cdn/{WZZ532R7.js → X2Z5LB3O.js} +1 -1
- package/dist/cdn/{DGDEGFK2.js → XBAPCBIF.js} +1 -1
- package/dist/cdn/{BSDHVKNU.js → XGYS74KU.js} +1 -1
- package/dist/cdn/{WXEHJNOX.js → XK4UDEEY.js} +1 -1
- package/dist/cdn/XOAMM76F.js +2 -0
- package/dist/cdn/{6IMN7K3V.js → XQZORI5T.js} +1 -1
- package/dist/cdn/{D6XACLVY.js → XY7N5NOI.js} +1 -1
- package/dist/cdn/{2Q5MUUJN.js → Y53EJPH7.js} +1 -1
- package/dist/cdn/{EIIH2WMW.js → Y6VF2ATT.js} +1 -1
- package/dist/cdn/{CYIJUF45.js → YH6Q5VY4.js} +1 -1
- package/dist/cdn/{MZC6ZGYX.js → YI4EAC34.js} +1 -1
- package/dist/cdn/{NXVIOLHC.js → YKUXYNDA.js} +1 -1
- package/dist/cdn/{MFEOJYWD.js → YTK4BNMW.js} +1 -1
- package/dist/cdn/{QFL3O6X7.js → Z2UTWWWB.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/resources23.js +2 -2
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useInlineEdit.js +37 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.js +4 -1
- package/dist/components/calcite-block-section/customElement.d.ts +1 -14
- package/dist/components/calcite-block-section/customElement.js +7 -34
- package/dist/components/calcite-dropdown/customElement.d.ts +0 -6
- package/dist/components/calcite-dropdown/customElement.js +2 -2
- package/dist/components/calcite-field-group/customElement.js +114 -0
- package/dist/components/calcite-field-group/index.js +1 -0
- package/dist/components/calcite-field-set/customElement.js +33 -0
- package/dist/components/calcite-field-set/index.js +1 -0
- package/dist/components/calcite-input/customElement.js +21 -6
- package/dist/components/calcite-input-number/customElement.js +21 -6
- package/dist/components/calcite-input-text/customElement.js +12 -5
- package/dist/components/calcite-list-item/customElement.d.ts +0 -7
- package/dist/components/calcite-list-item/customElement.js +2 -14
- package/dist/components/calcite-meter/customElement.d.ts +0 -14
- package/dist/components/calcite-meter/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +7 -8
- package/dist/components/calcite-segmented-control/customElement.js +5 -5
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +2 -0
- package/dist/components/calcite-segmented-control-item/customElement.js +4 -4
- package/dist/components/calcite-sheet/customElement.d.ts +4 -10
- package/dist/components/calcite-sheet/customElement.js +5 -5
- package/dist/components/calcite-sort-handle/customElement.js +1 -1
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-tile/customElement.d.ts +1 -17
- package/dist/components/calcite-tile/customElement.js +2 -4
- package/dist/components/calcite-tooltip/customElement.d.ts +0 -6
- package/dist/components/calcite-tooltip/customElement.js +2 -3
- package/dist/components/types.d.ts +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +14 -12
- package/dist/types/lumina.d.ts +8 -8
- package/dist/types/preact.d.ts +8 -8
- package/dist/types/react.d.ts +8 -8
- package/dist/types/stencil.d.ts +8 -8
- package/package.json +1 -1
- package/dist/cdn/3T7XLOQ4.js +0 -2
- package/dist/cdn/5MVWIHDQ.js +0 -2
- package/dist/cdn/5R74WSRK.js +0 -2
- package/dist/cdn/5WA27XIF.js +0 -2
- package/dist/cdn/5YACCUIX.js +0 -2
- package/dist/cdn/6O654SMC.js +0 -2
- package/dist/cdn/7ABZMJV3.js +0 -2
- package/dist/cdn/CAPIYBUC.js +0 -2
- package/dist/cdn/FOJ5LIZR.js +0 -2
- package/dist/cdn/GHSGH4LV.js +0 -2
- package/dist/cdn/H5GROX4R.js +0 -2
- package/dist/cdn/RFBRZVDJ.js +0 -2
- package/dist/cdn/RXGMB6OY.js +0 -2
- package/dist/cdn/TINQCGW6.js +0 -2
- package/dist/cdn/U6OXWZGM.js +0 -2
- package/dist/cdn/XFNS3WFN.js +0 -2
|
@@ -5,12 +5,12 @@ import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
|
5
5
|
import { u as slotChangeHasContent } from "../../chunks/dom.js";
|
|
6
6
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
7
7
|
import { C as CSS, S as SLOTS } from "../../chunks/resources23.js";
|
|
8
|
-
const styles = css`:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));outline
|
|
8
|
+
const styles = css`:host{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));outline:none;transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out}.label{pointer-events:none;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-segmented-control-color, var(--calcite-theme-color-text-3, var(--calcite-color-text-3)));background-color:var(--calcite-segmented-control-background-color);border:var(--calcite-border-width-sm) solid transparent;box-shadow:var(--calcite-segmented-control-shadow);border-radius:max(0px,(var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))));transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out,color var(--calcite-internal-animation-timing-fast) ease-in-out}.label--horizontal{justify-content:center}:host(:focus){z-index:var(--calcite-z-index)}:host(:focus) .label{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)));outline-offset:-1px;border-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}.label--scale-s{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);padding-inline:var(--calcite-space-sm);padding-block:calc(var(--calcite-space-base) + var(--calcite-space-px))}.label--scale-m{font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);padding-inline:var(--calcite-space-md);padding-block:calc(var(--calcite-space-xs) + var(--calcite-space-px))}.label--scale-l{font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);padding-inline:var(--calcite-space-lg);padding-block:calc(var(--calcite-space-sm-plus) + var(--calcite-space-px))}:host(:hover) .label{background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-transparent-hover));color:var(--calcite-segmented-control-color, var(--calcite-color-text-1))}:host(:active) .label{background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-transparent-press));color:var(--calcite-segmented-control-color, var(--calcite-color-text-1))}:host([checked]) .label{cursor:default;background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-brand));color:var(--calcite-segmented-control-color, var(--calcite-color-text-inverse));border-color:var(--calcite-segmented-control-item-border-color, var(--calcite-color-brand))}:host([checked]) .label--neutral{border-color:var(--calcite-segmented-control-item-border-color, var(--calcite-color-border-input));background-color:var(--calcite-segmented-control-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));color:var(--calcite-segmented-control-color, var(--calcite-color-text-1))}:host([checked]) .label--highlight{border-color:var(--calcite-segmented-control-item-border-color, var(--calcite-color-brand));background-color:var(--calcite-segmented-control-background-color, var(--calcite-color-surface-highlight));color:var(--calcite-segmented-control-color, var(--calcite-color-text-highlight))}:host(:first-of-type) .label--horizontal{border-start-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-end-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}:host(:last-of-type) .label--horizontal{border-start-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-end-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}:host(:first-of-type) .label:not(.label--horizontal){border-start-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-start-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}:host(:last-of-type) .label:not(.label--horizontal){border-end-start-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius));border-end-end-radius:var(--calcite-segmented-control-corner-radius, var(--calcite-corner-radius))}::slotted(input){display:none}@media(forced-colors:active){:host([checked]) .label{background-color:highlight}:host([checked]) .label--neutral,:host([checked]) .label--highlight{outline:var(--calcite-border-width-md) solid transparent;outline-offset:var(--calcite-border-width-md)}:host([checked]) .label:not([class~=label--neutral]) .icon{color:highlightText}:host(:focus) .label{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)));outline-offset:-1px}}.icon{position:relative;margin:var(--calcite-space-none);display:inline-flex;line-height:inherit;margin-inline-start:var(--calcite-internal-segmented-control-icon-margin-start);margin-inline-end:var(--calcite-internal-segmented-control-icon-margin-end);--calcite-icon-color: var(--calcite-segmented-control-icon-color, currentColor)}:host([icon-start]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-end: var(--calcite-space-sm)}:host([icon-end]) .label--scale-s{--calcite-internal-segmented-control-icon-margin-start: var(--calcite-space-sm)}:host([icon-start]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-end: var(--calcite-space-md)}:host([icon-end]) .label--scale-m{--calcite-internal-segmented-control-icon-margin-start: var(--calcite-space-md)}:host([icon-start]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-end: var(--calcite-space-lg)}:host([icon-end]) .label--scale-l{--calcite-internal-segmented-control-icon-margin-start: var(--calcite-space-lg)}.label .icon--solo{--calcite-internal-segmented-control-icon-margin-start: 0;--calcite-internal-segmented-control-icon-margin-end: 0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
9
9
|
class SegmentedControlItem extends LitElement {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
12
|
this.hasSlottedContent = false;
|
|
13
|
-
this.appearance = "
|
|
13
|
+
this.appearance = "neutral";
|
|
14
14
|
this.checked = false;
|
|
15
15
|
this.iconFlipRtl = false;
|
|
16
16
|
this.layout = "horizontal";
|
|
@@ -46,8 +46,8 @@ class SegmentedControlItem extends LitElement {
|
|
|
46
46
|
[CSS.label]: true,
|
|
47
47
|
[CSS.labelScale(scale)]: true,
|
|
48
48
|
[CSS.labelHorizontal]: layout === "horizontal",
|
|
49
|
-
[CSS.
|
|
50
|
-
[CSS.
|
|
49
|
+
[CSS.labelNeutral]: appearance === "neutral",
|
|
50
|
+
[CSS.labelHighlight]: appearance === "highlight"
|
|
51
51
|
})}>${this.renderContent()}</label>`;
|
|
52
52
|
}
|
|
53
53
|
renderContent() {
|
|
@@ -68,15 +68,12 @@ export abstract class Sheet extends LitElement {
|
|
|
68
68
|
* - `"setReturnFocus"` customizes the element to which focus is returned when the trap is deactivated. Return `false` to prevent focus return, or `undefined` to use the default behavior (returning focus to the element focused before activation).
|
|
69
69
|
*/
|
|
70
70
|
accessor focusTrapOptions: Partial<FocusTrapOptions> | undefined;
|
|
71
|
-
/** Specifies the component's height. */
|
|
72
|
-
accessor height: Height | undefined;
|
|
73
71
|
/**
|
|
74
|
-
*
|
|
72
|
+
* Specifies the component's height.
|
|
75
73
|
*
|
|
76
|
-
* @deprecated in v3.0.0, removal target v6.0.0 - Use the `height` property instead.
|
|
77
74
|
* @default "m"
|
|
78
75
|
*/
|
|
79
|
-
accessor
|
|
76
|
+
accessor height: Height;
|
|
80
77
|
/**
|
|
81
78
|
* Specifies an accessible label for the component.
|
|
82
79
|
*
|
|
@@ -126,15 +123,12 @@ export abstract class Sheet extends LitElement {
|
|
|
126
123
|
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
127
124
|
*/
|
|
128
125
|
accessor topLayerDisabled: boolean;
|
|
129
|
-
/** Specifies the component's width. */
|
|
130
|
-
accessor width: Extract<Width, Scale> | undefined;
|
|
131
126
|
/**
|
|
132
|
-
*
|
|
127
|
+
* Specifies the component's width.
|
|
133
128
|
*
|
|
134
|
-
* @deprecated in v3.0.0, removal target v6.0.0 - Use the `width` property instead.
|
|
135
129
|
* @default "m"
|
|
136
130
|
*/
|
|
137
|
-
accessor
|
|
131
|
+
accessor width: Extract<Width, Scale>;
|
|
138
132
|
/**
|
|
139
133
|
* Sets focus on the component's "close" button - the first focusable item.
|
|
140
134
|
*
|
|
@@ -84,14 +84,14 @@ class Sheet extends LitElement {
|
|
|
84
84
|
this.embedded = false;
|
|
85
85
|
this.escapeDisabled = false;
|
|
86
86
|
this.focusTrapDisabled = false;
|
|
87
|
-
this.
|
|
87
|
+
this.height = "m";
|
|
88
88
|
this.modal = false;
|
|
89
89
|
this.opened = false;
|
|
90
90
|
this.outsideCloseDisabled = false;
|
|
91
91
|
this.position = "inline-start";
|
|
92
92
|
this.resizable = false;
|
|
93
93
|
this.topLayerDisabled = false;
|
|
94
|
-
this.
|
|
94
|
+
this.width = "m";
|
|
95
95
|
this.calciteSheetBeforeClose = createEvent({ cancelable: false });
|
|
96
96
|
this.calciteSheetBeforeOpen = createEvent({ cancelable: false });
|
|
97
97
|
this.calciteSheetClose = createEvent({ cancelable: false });
|
|
@@ -99,7 +99,7 @@ class Sheet extends LitElement {
|
|
|
99
99
|
this.listen("keydown", this.keyDownHandler);
|
|
100
100
|
}
|
|
101
101
|
static {
|
|
102
|
-
this.properties = { resizeValues: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], embedded: [7, {}, { reflect: true, type: Boolean }], escapeDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }],
|
|
102
|
+
this.properties = { resizeValues: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], displayMode: [3, {}, { reflect: true }], embedded: [7, {}, { reflect: true, type: Boolean }], escapeDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapDisabled: [7, {}, { reflect: true, type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }], height: [3, {}, { reflect: true }], label: 1, messageOverrides: [0, {}, { attribute: false }], modal: [7, {}, { reflect: true, type: Boolean }], open: [7, {}, { reflect: true, type: Boolean }], opened: [7, {}, { reflect: true, type: Boolean }], outsideCloseDisabled: [7, {}, { reflect: true, type: Boolean }], position: [3, {}, { reflect: true }], resizable: [7, {}, { reflect: true, type: Boolean }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }], width: [3, {}, { reflect: true }] };
|
|
103
103
|
}
|
|
104
104
|
static {
|
|
105
105
|
this.styles = styles;
|
|
@@ -337,8 +337,8 @@ class Sheet extends LitElement {
|
|
|
337
337
|
[CSS.containerOpen]: this.opened,
|
|
338
338
|
[CSS.containerEmbedded]: this.embedded,
|
|
339
339
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
340
|
-
[getDimensionClass("width", this.width
|
|
341
|
-
[getDimensionClass("height", this.height
|
|
340
|
+
[getDimensionClass("width", this.width)]: true,
|
|
341
|
+
[getDimensionClass("height", this.height)]: true
|
|
342
342
|
})} .popover=${!this.embedded ? "manual" : void 0} ${ref(this.transitionRef)}>${this.modal ? html`<calcite-scrim class=${safeClassMap(CSS.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>` : null}<div class=${safeClassMap(CSS.content)} id=${IDS.sheetContent} ${ref(this.contentRef)}><div class=${safeClassMap(CSS.contentContainer)}><slot></slot></div>${resizable ? keyed("resize-handle", html`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${isBlockPosition ? "vertical" : "horizontal"} .ariaValueMax=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.maxBlockSize, resizeValues.maxInlineSize)} .ariaValueMin=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.minBlockSize, resizeValues.minInlineSize)} .ariaValueNow=${ariaValueFromSize(isBlockPosition ? "block" : "inline", resizeValues.blockSize, resizeValues.inlineSize)} class=${safeClassMap(CSS.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${ref(this.setResizeHandleEl)}><div class=${safeClassMap(CSS.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`) : null}</div></div>`;
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -171,7 +171,7 @@ class SortHandle extends LitElement {
|
|
|
171
171
|
const { disabled, flipPlacements, hasOnlyDisabledReorderItems, open, overlayPositioning, placement, scale, widthScale, hasNoItems } = this;
|
|
172
172
|
const text = this.getLabel();
|
|
173
173
|
const isDisabled = disabled || hasNoItems || hasOnlyDisabledReorderItems;
|
|
174
|
-
return this.interactiveContainer({ disabled, children: html`<calcite-dropdown class=${safeClassMap(CSS.dropdown)} .disabled=${isDisabled} .flipPlacements=${flipPlacements} @calciteDropdownBeforeClose=${this.handleBeforeClose} @calciteDropdownBeforeOpen=${this.handleBeforeOpen} @calciteDropdownClose=${this.handleClose} @calciteDropdownOpen=${this.handleOpen} .overlayPositioning=${overlayPositioning} .placement=${placement} .scale=${scale} .topLayerDisabled=${this.topLayerDisabled} .
|
|
174
|
+
return this.interactiveContainer({ disabled, children: html`<calcite-dropdown class=${safeClassMap(CSS.dropdown)} .disabled=${isDisabled} .flipPlacements=${flipPlacements} @calciteDropdownBeforeClose=${this.handleBeforeClose} @calciteDropdownBeforeOpen=${this.handleBeforeOpen} @calciteDropdownClose=${this.handleClose} @calciteDropdownOpen=${this.handleOpen} .overlayPositioning=${overlayPositioning} .placement=${placement} .scale=${scale} .topLayerDisabled=${this.topLayerDisabled} .width=${widthScale} ${ref(this.setDropdownEl)}><calcite-action .active=${open} .aria=${{ expanded: open }} class=${safeClassMap(CSS.handle)} .dragHandle=${true} .icon=${disabled ? ICONS.blank : ICONS.drag} .label=${text} .scale=${scale} slot=${SLOTS.trigger} .text=${text} title=${text ?? nothing}></calcite-action>${this.renderReorderGroup()}${this.renderMoveToGroup()}${this.renderAddToGroup()}</calcite-dropdown>` });
|
|
175
175
|
}
|
|
176
176
|
renderAddToItem(addToItem) {
|
|
177
177
|
return keyed(addToItem.id, html`<calcite-dropdown-item data-id=${addToItem.id ?? nothing} .label=${addToItem.label} @calciteDropdownItemSelect=${this.handleAddTo}>${addToItem.label}</calcite-dropdown-item>`);
|
|
@@ -65,7 +65,7 @@ class SplitButton extends LitElement {
|
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
67
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
68
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap(CSS.container)}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .download=${this.download} .href=${this.href} .iconEnd=${this.primaryIconEnd} .iconFlipRtl=${this.primaryIconFlipRtl} .iconStart=${this.primaryIconStart} .kind=${this.kind} .label=${this.primaryLabel} .loading=${this.loading} @click=${this.calciteSplitButtonPrimaryClickHandler} .rel=${this.rel} .scale=${this.scale} split-child=primary .target=${this.target} type=button .width=${buttonWidth}>${this.primaryText}</calcite-button><div class=${safeClassMap(CSS.dividerContainer)}><div class=${safeClassMap(CSS.divider)}></div></div><calcite-dropdown .disabled=${this.disabled} .flipPlacements=${this.flipPlacements} @click=${this.calciteSplitButtonSecondaryClickHandler} .open=${this.active} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} .
|
|
68
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html`<div class=${safeClassMap(CSS.container)}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .download=${this.download} .href=${this.href} .iconEnd=${this.primaryIconEnd} .iconFlipRtl=${this.primaryIconFlipRtl} .iconStart=${this.primaryIconStart} .kind=${this.kind} .label=${this.primaryLabel} .loading=${this.loading} @click=${this.calciteSplitButtonPrimaryClickHandler} .rel=${this.rel} .scale=${this.scale} split-child=primary .target=${this.target} type=button .width=${buttonWidth}>${this.primaryText}</calcite-button><div class=${safeClassMap(CSS.dividerContainer)}><div class=${safeClassMap(CSS.divider)}></div></div><calcite-dropdown .disabled=${this.disabled} .flipPlacements=${this.flipPlacements} @click=${this.calciteSplitButtonSecondaryClickHandler} .open=${this.active} .overlayPositioning=${this.overlayPositioning} .placement=${this.placement} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled} .width=${this.scale}><calcite-button .appearance=${this.appearance} .disabled=${this.disabled} .iconStart=${this.dropdownIcon} .kind=${this.kind} .label=${this.dropdownLabel} .scale=${this.scale} slot=${SLOTS.trigger} split-child=secondary type=button></calcite-button><slot></slot></calcite-dropdown></div>` });
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
customElement("calcite-split-button", SplitButton);
|
|
@@ -46,7 +46,7 @@ const SLOTS = {
|
|
|
46
46
|
};
|
|
47
47
|
const RESIZE_TIMEOUT = 100;
|
|
48
48
|
const NO_DIMENSIONS = Object.freeze({ height: 0, width: 0 });
|
|
49
|
-
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;position:relative;inline-size:100%;block-size:100%;box-sizing:border-box;--calcite-internal-text-area-border-color: var(--calcite-text-area-border-color, var(--calcite-color-border-input));--calcite-internal-text-area-footer-border-color: var( --calcite-text-area-footer-border-color, var(--calcite-internal-text-area-border-color) );--calcite-internal-text-area-corner-radius: var(--calcite-text-area-corner-radius, var(--calcite-corner-radius));--calcite-internal-text-area-shadow: var(--calcite-text-area-shadow, var(--calcite-shadow-none));--calcite-internal-text-area-footer-background-color: var( --calcite-text-area-footer-background-color, var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))) );min-block-size:var(--calcite-text-area-min-height, calc(2 * var(--calcite-internal-text-area-padding-block) + 2 * var(--calcite-border-width-sm)));min-inline-size:var(--calcite-text-area-min-width, 12rem)}.wrapper{block-size:100%;inline-size:100%;box-sizing:border-box;box-shadow:var(--calcite-internal-text-area-shadow);border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area,.footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));padding-block:var(--calcite-internal-text-area-padding-block);padding-inline:var(--calcite-internal-text-area-padding-inline)}.footer{background-color:var(--calcite-internal-text-area-footer-background-color);border-radius:0 0 var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius)}.text-area{position:relative;display:block;box-sizing:border-box;inline-size:100%;margin:0;--calcite-internal-text-area-border-block-end-color: var(--calcite-internal-text-area-border-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-border-color);border-block-end-color:var(--calcite-internal-text-area-border-block-end-color);color:var(--calcite-text-area-text-color, var(--calcite-color-text-1));font-family:inherit;line-height:var(--calcite-font-line-height-base);max-block-size:var(--calcite-text-area-max-height);min-block-size:calc(var(--calcite-text-area-min-height, 0px) - var(--calcite-internal-text-area-footer-min-height, 0px));max-inline-size:var(--calcite-text-area-max-width);min-inline-size:var(--calcite-text-area-min-width, 12rem);background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius) 0 0}.text-area::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal))}@media screen and (max-width:480px){.text-area{resize:none}}.text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.text-area--invalid{--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}.text-area.text-area--invalid:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.footer--slotted{min-inline-size:18rem}.text-area.text-area--only{border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area:not(.text-area--only,.text-area--invalid){--calcite-internal-text-area-border-block-end-color: var( --calcite-text-area-divider-color, var(--calcite-color-border-3) )}.loader-container{position:relative;block-size:inherit}.loader{position:absolute;inset-block-start:0;inset-block-start:var(--calcite-theme-space-px, var(--calcite-spacing-px));inset-inline:var(--calcite-theme-space-px, var(--calcite-spacing-px))}.footer{display:flex;box-sizing:border-box;align-items:center;line-height:var(--calcite-font-line-height-base);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-footer-border-color);border-block-start:var(--calcite-border-width-none);min-block-size:var(--calcite-internal-text-area-footer-min-height)}.character-limit{display:flex;justify-content:flex-end;align-items:center;white-space:nowrap;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));font-weight:var(--calcite-font-weight-regular);color:var(--calcite-text-area-character-limit-text-color, var(--calcite-color-text-2));padding-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}.character--over-limit{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-status-danger)}.readonly{background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)));font-weight:var(--calcite-font-weight-medium)}.footer.readonly{background-color:var(--calcite-internal-text-area-footer-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.content,.hide{display:none}.container{display:flex;justify-content:space-between;inline-size:100%}.footer--end-only{justify-content:flex-end}.text-area.text-area--only{block-size:100%;min-block-size:var(--calcite-text-area-min-height, 0)}:host([resize=none]) .text-area{resize:none}:host([resize=horizontal]) .text-area{resize:horizontal}:host([resize=vertical]) .text-area{resize:vertical}:host([scale=s]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-footer-min-height: 1.75rem}:host([scale=s]) .text-area,:host([scale=s]) .footer,:host([scale=s]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-sm))}:host([scale=s]) .character-limit{padding-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-footer-min-height: 2.25rem}:host([scale=l]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-text-area-footer-min-height: 2.75rem}:host([scale=l]) .text-area,:host([scale=l]) .footer,:host([scale=l]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-md))}:host([scale=l]) .character-limit{padding-inline-start:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([status=invalid]){--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}:host([status=invalid]) .text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([disabled]) .text-area,:host([disabled]) .footer{opacity:var(--calcite-opacity-half)}.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-theme-space-base, 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-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-relative-md)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));color:var(--calcite-text-area-placeholder-text-color, var(--calcite-color-text-3))}`;
|
|
49
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;position:relative;inline-size:100%;block-size:100%;box-sizing:border-box;--calcite-internal-text-area-border-color: var(--calcite-text-area-border-color, var(--calcite-color-border-input));--calcite-internal-text-area-footer-border-color: var( --calcite-text-area-footer-border-color, var(--calcite-internal-text-area-border-color) );--calcite-internal-text-area-corner-radius: var(--calcite-text-area-corner-radius, var(--calcite-corner-radius));--calcite-internal-text-area-shadow: var(--calcite-text-area-shadow, var(--calcite-shadow-none));--calcite-internal-text-area-footer-background-color: var( --calcite-text-area-footer-background-color, var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1))) );--calcite-internal-text-area-block-size: inherit;min-block-size:var(--calcite-text-area-min-height, calc(2 * var(--calcite-internal-text-area-padding-block) + 2 * var(--calcite-border-width-sm)));min-inline-size:var(--calcite-text-area-min-width, 12rem)}.wrapper{block-size:100%;inline-size:100%;box-sizing:border-box;box-shadow:var(--calcite-internal-text-area-shadow);border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area,.footer{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));padding-block:var(--calcite-internal-text-area-padding-block);padding-inline:var(--calcite-internal-text-area-padding-inline)}.footer{background-color:var(--calcite-internal-text-area-footer-background-color);border-radius:0 0 var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius)}.text-area{position:relative;display:block;box-sizing:border-box;inline-size:100%;margin:0;--calcite-internal-text-area-border-block-end-color: var(--calcite-internal-text-area-border-color);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-border-color);border-block-end-color:var(--calcite-internal-text-area-border-block-end-color);color:var(--calcite-text-area-text-color, var(--calcite-color-text-1));font-family:inherit;line-height:var(--calcite-font-line-height-base);max-block-size:var(--calcite-text-area-max-height);min-block-size:calc(var(--calcite-text-area-min-height, 0px) - var(--calcite-internal-text-area-footer-min-height, 0px));max-inline-size:var(--calcite-text-area-max-width);min-inline-size:var(--calcite-text-area-min-width, 12rem);background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-radius:var(--calcite-internal-text-area-corner-radius) var(--calcite-internal-text-area-corner-radius) 0 0}.text-area::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal))}@media screen and (max-width:480px){.text-area{resize:none}}.text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.text-area--invalid{--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}.text-area.text-area--invalid:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.text-area.footer--slotted{min-inline-size:18rem}.text-area.text-area--only{border-radius:var(--calcite-internal-text-area-corner-radius)}.text-area:not(.text-area--only,.text-area--invalid){--calcite-internal-text-area-border-block-end-color: var( --calcite-text-area-divider-color, var(--calcite-color-border-3) )}.loader-container{position:relative;block-size:inherit}.loader{position:absolute;inset-block-start:0;inset-block-start:var(--calcite-theme-space-px, var(--calcite-spacing-px));inset-inline:var(--calcite-theme-space-px, var(--calcite-spacing-px))}.footer{display:flex;box-sizing:border-box;align-items:center;line-height:var(--calcite-font-line-height-base);border:var(--calcite-border-width-sm) solid var(--calcite-internal-text-area-footer-border-color);border-block-start:var(--calcite-border-width-none);min-block-size:var(--calcite-internal-text-area-footer-min-height)}.character-limit{display:flex;justify-content:flex-end;align-items:center;white-space:nowrap;font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-base));font-weight:var(--calcite-font-weight-regular);color:var(--calcite-text-area-character-limit-text-color, var(--calcite-color-text-2));padding-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}.character--over-limit{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-status-danger)}.readonly{background-color:var(--calcite-text-area-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)));font-weight:var(--calcite-font-weight-medium)}.footer.readonly{background-color:var(--calcite-internal-text-area-footer-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.content,.hide{display:none}.container{display:flex;justify-content:space-between;inline-size:100%}.footer--end-only{justify-content:flex-end}.text-area.text-area--only{block-size:var(--calcite-internal-text-area-block-size, 100%);min-block-size:var(--calcite-text-area-min-height, 0)}:host([resize=none]) .text-area{resize:none}:host([resize=horizontal]) .text-area{resize:horizontal}:host([resize=vertical]) .text-area{resize:vertical}:host([scale=s]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-footer-min-height: 1.75rem}:host([scale=s]) .text-area,:host([scale=s]) .footer,:host([scale=s]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-sm))}:host([scale=s]) .character-limit{padding-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-footer-min-height: 2.25rem}:host([scale=l]){--calcite-internal-text-area-padding-block: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-text-area-padding-inline: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-text-area-footer-min-height: 2.75rem}:host([scale=l]) .text-area,:host([scale=l]) .footer,:host([scale=l]) .character-limit{font-size:var(--calcite-text-area-font-size, var(--calcite-font-size-relative-md))}:host([scale=l]) .character-limit{padding-inline-start:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([status=invalid]){--calcite-internal-text-area-border-color: var(--calcite-color-status-danger)}:host([status=invalid]) .text-area:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(-1 * var(--calcite-theme-space-base, var(--calcite-spacing-base)) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}:host([disabled]) .text-area,:host([disabled]) .footer{opacity:var(--calcite-opacity-half)}.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-theme-space-base, 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-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size-relative-sm)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size-relative-base)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-relative-md)}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::placeholder{font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));color:var(--calcite-text-area-placeholder-text-color, var(--calcite-color-text-3))}`;
|
|
50
50
|
class TextArea extends LitElement {
|
|
51
51
|
constructor() {
|
|
52
52
|
super();
|
|
@@ -33,13 +33,6 @@ export interface DeclareCssProperties {
|
|
|
33
33
|
* @docGroup Tiles
|
|
34
34
|
*/
|
|
35
35
|
export abstract class Tile extends LitElement {
|
|
36
|
-
/**
|
|
37
|
-
* When `true`, the component is active.
|
|
38
|
-
*
|
|
39
|
-
* @deprecated in v2.8.0, removal target v6.0.0 - No longer necessary.
|
|
40
|
-
* @default false
|
|
41
|
-
*/
|
|
42
|
-
accessor active: boolean;
|
|
43
36
|
/**
|
|
44
37
|
* Specifies alignment of the component's content.
|
|
45
38
|
*
|
|
@@ -54,20 +47,11 @@ export abstract class Tile extends LitElement {
|
|
|
54
47
|
* @default false
|
|
55
48
|
*/
|
|
56
49
|
accessor disabled: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the component's embed mode.
|
|
59
|
-
*
|
|
60
|
-
* When `true`, renders without a border and padding for use by other components.
|
|
61
|
-
*
|
|
62
|
-
* @deprecated in v2.6.0, removal target v6.0.0 - No longer necessary.
|
|
63
|
-
* @default false
|
|
64
|
-
*/
|
|
65
|
-
accessor embed: boolean;
|
|
66
50
|
/** Specifies the component's heading text that displays between the `icon` and `description`. */
|
|
67
51
|
accessor heading: string | undefined;
|
|
68
52
|
/** Specifies the heading level number of the component's `heading` for proper document structure, without affecting visual styling. */
|
|
69
53
|
accessor headingLevel: HeadingLevel | undefined;
|
|
70
|
-
/**
|
|
54
|
+
/** Specifies the URL for the component. */
|
|
71
55
|
accessor href: string | undefined;
|
|
72
56
|
/** Specifies an icon to display. */
|
|
73
57
|
accessor icon: IconName | undefined;
|
|
@@ -9,7 +9,7 @@ import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
|
9
9
|
import { H as Heading } from "../../chunks/Heading.js";
|
|
10
10
|
import { S as SLOTS, I as ICONS, C as CSS } from "../../chunks/resources32.js";
|
|
11
11
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
12
|
-
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-internal-link-text-decoration-line: none;--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));padding:var(--calcite-internal-tile-spacing);position:relative;-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index)}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive:hover .icon,.container.interactive:focus .icon,.container.interactive.selected .icon{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}.container.interactive:hover ::slotted(calcite-chip),.container.interactive:focus ::slotted(calcite-chip),.container.interactive.selected ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-1))}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:calc(var(--calcite-z-index) + 1)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column;overflow-wrap:break-word;word-break:break-word;inline-size:var(--calcite-container-size-content-fluid)}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{margin:0;padding:0;color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content-container{justify-content:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-bottom]::slotted(*),:host([alignment=center]) slot[name=content-top]::slotted(*){align-self:center}:host([scale=s]){--calcite-internal-tile-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .heading{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size-relative-xs);line-height:.85938rem}:host([scale=m]){--calcite-internal-tile-spacing: var(--calcite-theme-space-md, var(--calcite-spacing-md));max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .heading{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=l]){--calcite-internal-tile-spacing: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .heading{font-size:var(--calcite-font-size-relative-md);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}.content-container--has-content,.row{gap:var(--calcite-internal-tile-spacing)}.content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-internal-tile-spacing)}:host([selection-appearance=highlight]) .container.selected{background-color:var(--calcite-color-surface-highlight)}:host(:hover:not([disabled])) .heading
|
|
12
|
+
const styles = css`:host([disabled]){opacity:var(--calcite-opacity-disabled);cursor:default;-webkit-user-select:none;user-select:none}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{box-shadow:var(--calcite-tile-shadow, var(--calcite-shadow-none));box-sizing:border-box;display:inline-block}calcite-link{--calcite-internal-link-text-decoration-line: none;--calcite-link-text-color: var(--calcite-tile-link-text-color)}.container{background-color:var(--calcite-tile-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));block-size:var(--calcite-container-size-content-fluid);border-radius:var(--calcite-tile-corner-radius, var(--calcite-corner-radius));box-sizing:border-box;color:var(--calcite-tile-text-color, var(--calcite-color-text-3));inline-size:var(--calcite-container-size-content-fluid);outline:var(--calcite-border-width-sm, 1px) solid var(--calcite-tile-border-color, var(--calcite-color-border-2));padding:var(--calcite-internal-tile-spacing);position:relative;-webkit-user-select:none;user-select:none}.container .selection-icon{color:var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-3))}.container.interactive{cursor:pointer}.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:var(--calcite-z-index)}.container.interactive:hover .selection-icon,.container.interactive:focus .selection-icon,.container.interactive.selected .selection-icon{color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}.container.interactive:hover .icon,.container.interactive:focus .icon,.container.interactive.selected .icon{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}.container.interactive:hover ::slotted(calcite-chip),.container.interactive:focus ::slotted(calcite-chip),.container.interactive.selected ::slotted(calcite-chip){--calcite-icon-color: var(--calcite-tile-text-color, var(--calcite-color-text-1))}.container.interactive:focus{box-shadow:inset 0 0 0 1px var(--calcite-tile-accent-color-press, var(--calcite-color-brand));z-index:calc(var(--calcite-z-index) + 1)}.content-container,.row{align-items:flex-start;display:flex}.content-container{flex-direction:column;overflow-wrap:break-word;word-break:break-word;inline-size:var(--calcite-container-size-content-fluid)}.text-content-container{inline-size:100%;outline-color:transparent;padding:0}.text-content{display:flex;flex-direction:column}.heading{margin:0;padding:0;color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-font-weight-medium);line-height:1.20313rem;overflow-wrap:break-word}.description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}.description{font-weight:var(--calcite-font-weight-regular);overflow-wrap:break-word}:host([alignment=center]) .icon{align-self:center}:host([alignment=center]) .text-content-container{justify-content:center}:host([alignment=center]) .text-content{text-align:center}:host([alignment=center]) slot[name=content-bottom]::slotted(*),:host([alignment=center]) slot[name=content-top]::slotted(*){align-self:center}:host([scale=s]){--calcite-internal-tile-spacing: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));max-inline-size:400px;min-inline-size:100px}:host([scale=s]) .heading{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=s]) .description{font-size:var(--calcite-font-size-relative-xs);line-height:.85938rem}:host([scale=m]){--calcite-internal-tile-spacing: var(--calcite-theme-space-md, var(--calcite-spacing-md));max-inline-size:460px;min-inline-size:140px}:host([scale=m]) .heading{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}:host([scale=m]) .description{font-size:var(--calcite-font-size-relative-sm);line-height:1.03125rem}:host([scale=l]){--calcite-internal-tile-spacing: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));max-inline-size:520px;min-inline-size:160px}:host([scale=l]) .heading{font-size:var(--calcite-font-size-relative-md);line-height:1.375rem}:host([scale=l]) .description{font-size:var(--calcite-font-size-relative-base);line-height:1.20313rem}.content-container--has-content,.row{gap:var(--calcite-internal-tile-spacing)}.content-container--has-only-content-top-and-bottom slot[name=content-top]::slotted(*){margin-block-end:var(--calcite-internal-tile-spacing)}:host([selection-appearance=highlight]) .container.selected{background-color:var(--calcite-color-surface-highlight)}:host(:hover:not([disabled])) .heading{color:var(--calcite-tile-heading-text-color, var(--calcite-color-text-1))}:host(:hover:not([disabled])) .description{color:var(--calcite-tile-text-color, var(--calcite-color-text-2))}:host([href]:focus:not([disabled])) .container,:host([href]:hover:not([disabled])) .container{outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link));z-index:var(--calcite-z-index)}:host([href]:focus:not([disabled])) .icon,:host([href]:hover:not([disabled])) .icon{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:focus:not([disabled])) .heading,:host([href]:hover:not([disabled])) .heading{color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([href]:active:not([disabled])) .container{box-shadow:inset 0 0 0 1px var(--calcite-tile-link-color, var(--calcite-color-text-link));outline-color:var(--calcite-tile-link-color, var(--calcite-color-text-link))}:host([selection-mode=none]) .container:hover,:host([selection-mode=none]) .container.selected{outline-color:var(--calcite-tile-border-color, var(--calcite-color-border-2))}:host([selection-mode=none]) .container:focus{outline-color:var(--calcite-tile-accent-color-press, var(--calcite-color-brand))}@media(forced-colors:active){.container.interactive:hover,.container.interactive:focus,.container.interactive.selected{outline-color:Highlight;z-index:calc(var(--calcite-z-index) + 1)}:host([selection-appearance=highlight]) .container.selected{outline-width:calc(var(--calcite-border-width-sm, 1px) * 3)}}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}::slotted(*){max-inline-size:100%}`;
|
|
13
13
|
class Tile extends LitElement {
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
@@ -17,10 +17,8 @@ class Tile extends LitElement {
|
|
|
17
17
|
this.interactiveContainer = useInteractive(this);
|
|
18
18
|
this.hasContentBottom = false;
|
|
19
19
|
this.hasContentTop = false;
|
|
20
|
-
this.active = false;
|
|
21
20
|
this.alignment = "start";
|
|
22
21
|
this.disabled = false;
|
|
23
|
-
this.embed = false;
|
|
24
22
|
this.iconFlipRtl = false;
|
|
25
23
|
this.interactive = false;
|
|
26
24
|
this.layout = "horizontal";
|
|
@@ -32,7 +30,7 @@ class Tile extends LitElement {
|
|
|
32
30
|
this.listen("keydown", this.keyDownHandler);
|
|
33
31
|
}
|
|
34
32
|
static {
|
|
35
|
-
this.properties = { hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }],
|
|
33
|
+
this.properties = { hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }], alignment: [3, {}, { reflect: true }], description: [3, {}, { reflect: true }], disabled: [7, {}, { reflect: true, type: Boolean }], heading: [3, {}, { reflect: true }], headingLevel: [11, {}, { type: Number, reflect: true }], href: [3, {}, { reflect: true }], icon: [3, {}, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], interactive: [5, {}, { type: Boolean }], label: 1, layout: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selected: [7, {}, { reflect: true, type: Boolean }], selectionAppearance: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }] };
|
|
36
34
|
}
|
|
37
35
|
static {
|
|
38
36
|
this.styles = styles;
|
|
@@ -26,12 +26,6 @@ export abstract class Tooltip extends LitElement {
|
|
|
26
26
|
* @default false
|
|
27
27
|
*/
|
|
28
28
|
accessor closeOnClick: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Specifies an accessible label for the component.
|
|
31
|
-
*
|
|
32
|
-
* @deprecated in v1.5.0, removal target v6.0.0 - No longer necessary. Overrides the context of the component's text description, which could confuse assistive technology users.
|
|
33
|
-
*/
|
|
34
|
-
accessor label: string | undefined;
|
|
35
29
|
/** Specifies the distance to position the component away from the `referenceElement`. */
|
|
36
30
|
accessor offsetDistance: number;
|
|
37
31
|
/**
|
|
@@ -41,7 +41,7 @@ class Tooltip extends LitElement {
|
|
|
41
41
|
this.calciteTooltipOpen = createEvent({ cancelable: false });
|
|
42
42
|
}
|
|
43
43
|
static {
|
|
44
|
-
this.properties = { floatingLayout: [16, {}, { state: true }], referenceEl: [16, {}, { state: true }], closeOnClick: [7, {}, { reflect: true, type: Boolean }],
|
|
44
|
+
this.properties = { floatingLayout: [16, {}, { state: true }], referenceEl: [16, {}, { state: true }], closeOnClick: [7, {}, { reflect: true, type: Boolean }], offsetDistance: [11, {}, { type: Number, reflect: true }], offsetSkidding: [11, {}, { reflect: true, type: Number }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placement: [3, {}, { reflect: true }], pointerDisabled: [7, {}, { reflect: true, type: Boolean }], referenceElement: 1, scale: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
47
|
this.styles = styles;
|
|
@@ -107,12 +107,11 @@ class Tooltip extends LitElement {
|
|
|
107
107
|
this.reposition(true);
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
const { referenceEl,
|
|
110
|
+
const { referenceEl, open, pointerDisabled, floatingLayout } = this;
|
|
111
111
|
const displayed = referenceEl && open;
|
|
112
112
|
const hidden = !displayed;
|
|
113
113
|
const arrowNode = !pointerDisabled ? keyed("floating-arrow", FloatingArrow({ floatingLayout, ref: this.setArrowEl })) : null;
|
|
114
114
|
this.el.inert = hidden;
|
|
115
|
-
this.el.ariaLabel = label ?? null;
|
|
116
115
|
this.el.role = "tooltip";
|
|
117
116
|
return html`<div class=${safeClassMap(CSS.positionContainer)} popover=manual ${ref(this.setFloatingEl)}><div class=${safeClassMap({
|
|
118
117
|
[FloatingCSS.animation]: true,
|
|
@@ -17,7 +17,7 @@ export type LogicalFlowPosition = "inline-start" | "inline-end" | "block-start"
|
|
|
17
17
|
|
|
18
18
|
export type Position = "start" | "end" | "top" | "bottom";
|
|
19
19
|
|
|
20
|
-
export type SelectionAppearance = "icon" | "border" | "neutral" | "highlight";
|
|
20
|
+
export type SelectionAppearance = "icon" | "border" | "neutral" | "highlight" | "brand";
|
|
21
21
|
|
|
22
22
|
export type SelectionMode = "single" | "none" | "children" | "single-persist" | "multichildren" | "ancestors" | "multiple";
|
|
23
23
|
|