@esri/calcite-components 6.0.0-next.35 → 6.0.0-next.37
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/{HJQ36VT7.js → 2HHATYJR.js} +1 -1
- package/dist/cdn/{AZT356ZW.js → 2NVP6HW7.js} +1 -1
- package/dist/cdn/2S3WKYGY.js +2 -0
- package/dist/cdn/{FG35O2TI.js → 2SAQVDK6.js} +1 -1
- package/dist/cdn/{WZLK6FF3.js → 3E7SA7JK.js} +1 -1
- package/dist/cdn/{GI3X4LRL.js → 3HLN5YDB.js} +1 -1
- package/dist/cdn/{FTPXHYUM.js → 3HZ7HUWN.js} +1 -1
- package/dist/cdn/{Q2IVHQWV.js → 3JIBHCE2.js} +1 -1
- package/dist/cdn/{XO6F4EUM.js → 3PDPB7QZ.js} +1 -1
- package/dist/cdn/{V6PDTYZJ.js → 4DRQQQ4F.js} +1 -1
- package/dist/cdn/{UXKRZCTK.js → 4FD5JJQH.js} +1 -1
- package/dist/cdn/{HEYW3BN6.js → 4Y7A3UFB.js} +1 -1
- package/dist/cdn/{SLQTZKPD.js → 4YHGXXQL.js} +1 -1
- package/dist/cdn/{3BB64I3Y.js → 524WBBTB.js} +1 -1
- package/dist/cdn/{OPC3AXX7.js → 54O57WQV.js} +1 -1
- package/dist/cdn/{4AGX5QON.js → 57Q6EBY2.js} +1 -1
- package/dist/cdn/{BWSK2TRU.js → 5VVULODW.js} +1 -1
- package/dist/cdn/{DUVBA3CY.js → 64M6GGX4.js} +1 -1
- package/dist/cdn/{K2F26XH4.js → 6K6I3E2P.js} +1 -1
- package/dist/cdn/{DHYHGCNT.js → 6TAUFYMH.js} +1 -1
- package/dist/cdn/{MPWY3Z45.js → 7CFSRB5X.js} +1 -1
- package/dist/cdn/{UJUKQASK.js → 7F2QIPTY.js} +1 -1
- package/dist/cdn/{G3LMPCHS.js → 7PWVZVGL.js} +1 -1
- package/dist/cdn/{QIVSUBHR.js → 7TS7GCWB.js} +1 -1
- package/dist/cdn/{KQIZLHW2.js → 7USZJATR.js} +1 -1
- package/dist/cdn/{B5KUJSNG.js → 7WMZPIRC.js} +1 -1
- package/dist/cdn/{B75IY2Z2.js → A4SZIADG.js} +1 -1
- package/dist/cdn/{G22C2ZMX.js → AGOHJA6M.js} +1 -1
- package/dist/cdn/{4DK4NDYM.js → AQROGW2K.js} +1 -1
- package/dist/cdn/{MWW6XMD3.js → ASSN355L.js} +1 -1
- package/dist/cdn/{F6Y4UN4J.js → B53L3WV4.js} +1 -1
- package/dist/cdn/{XB3WZDSZ.js → B5K4B2QD.js} +1 -1
- package/dist/cdn/{ZZSS6ASQ.js → BOKGEQ2O.js} +1 -1
- package/dist/cdn/{OIW4I4C2.js → C2APFZNF.js} +1 -1
- package/dist/cdn/{QMBCTXBP.js → CDCG7OXE.js} +1 -1
- package/dist/cdn/{O4PYWOHX.js → CKCH7TWX.js} +1 -1
- package/dist/cdn/{7QO4KZRQ.js → CQEEBNPA.js} +1 -1
- package/dist/cdn/{FAMY4RAB.js → CTBLHDKO.js} +1 -1
- package/dist/cdn/{CL6POMDX.js → DFI5QYMB.js} +1 -1
- package/dist/cdn/{GV4J5PRK.js → DJWPH4BH.js} +1 -1
- package/dist/cdn/{D34OXKEF.js → DPVRDJJ2.js} +1 -1
- package/dist/cdn/{7YOQW5K4.js → DTXHHBDA.js} +1 -1
- package/dist/cdn/{AUNDQFRR.js → E4GZAXJH.js} +1 -1
- package/dist/cdn/{YA3CJFJS.js → EDXPXNKO.js} +1 -1
- package/dist/cdn/{PYHRXB7L.js → EM4CCBMC.js} +1 -1
- package/dist/cdn/{P3UAVD2E.js → EUQMVFBJ.js} +1 -1
- package/dist/cdn/{IWORUG5T.js → FSO4HHTR.js} +1 -1
- package/dist/cdn/{QJQG5TLH.js → G3PFNMA4.js} +1 -1
- package/dist/cdn/{EOHL7O6K.js → GC3N62DP.js} +1 -1
- package/dist/cdn/{FEHYMFKH.js → GJNUGSFY.js} +1 -1
- package/dist/cdn/{7BLGEIZ6.js → GP34CHYQ.js} +1 -1
- package/dist/cdn/{7A5557NP.js → GTDETCHZ.js} +1 -1
- package/dist/cdn/H7W2VIUC.js +2 -0
- package/dist/cdn/{EQ4CWDCC.js → HKLCZISC.js} +1 -1
- package/dist/cdn/{YT4LIOWF.js → HMH2MKYA.js} +1 -1
- package/dist/cdn/{6AZJ2GT4.js → HYCXQXFM.js} +1 -1
- package/dist/cdn/{ICVKMQOX.js → IH43SDJS.js} +1 -1
- package/dist/cdn/{J6SDQZRH.js → IJVTRSXL.js} +1 -1
- package/dist/cdn/{KPV7VAJS.js → IUS6A7OU.js} +1 -1
- package/dist/cdn/{4ULODE4O.js → JDMUVSFJ.js} +1 -1
- package/dist/cdn/{N6YGUT6A.js → JFUV6THY.js} +1 -1
- package/dist/cdn/{MA6XR4L2.js → K47G242V.js} +1 -1
- package/dist/cdn/{IHTLCAAZ.js → K6K5YII7.js} +1 -1
- package/dist/cdn/{RBO4BCWH.js → K7DQPJIP.js} +1 -1
- package/dist/cdn/{I7SM6STY.js → KCTLWHLJ.js} +1 -1
- package/dist/cdn/{HDGFJLSF.js → KDYAEA4Z.js} +1 -1
- package/dist/cdn/{PNHIBHV7.js → KNGFRNBZ.js} +1 -1
- package/dist/cdn/{LO2B6LPY.js → KPC3MYFR.js} +1 -1
- package/dist/cdn/{FQ3NEJBC.js → LFCH7RWW.js} +1 -1
- package/dist/cdn/{CIEL5S7P.js → LS7OFBNJ.js} +1 -1
- package/dist/cdn/{FJBY3JWA.js → M5IRAD3I.js} +1 -1
- package/dist/cdn/M6KP3FHZ.js +2 -0
- package/dist/cdn/{FVYW7W3L.js → MDNGPOJD.js} +1 -1
- package/dist/cdn/{6XMCVAN6.js → MJT3EHT7.js} +1 -1
- package/dist/cdn/{ZZUTC4SF.js → MLJKWSY7.js} +1 -1
- package/dist/cdn/{S4WE2SO2.js → MO64TA77.js} +1 -1
- package/dist/cdn/{DZIKAA2A.js → MQ3VSM63.js} +1 -1
- package/dist/cdn/{Q6ESZDOZ.js → MRIBAYUU.js} +1 -1
- package/dist/cdn/{AMXSW3WN.js → N2RJZ5Y5.js} +1 -1
- package/dist/cdn/{F4MQFTSR.js → N3VFPAWV.js} +1 -1
- package/dist/cdn/{YFYGKLY2.js → NAZZ36GI.js} +1 -1
- package/dist/cdn/{LAMR36RX.js → NHG33M47.js} +1 -1
- package/dist/cdn/{DHSWWP33.js → NNT7XBCO.js} +1 -1
- package/dist/cdn/{4UCJSQ74.js → NXXWJSTA.js} +1 -1
- package/dist/cdn/{P3FV4UMG.js → O7D7G6EN.js} +1 -1
- package/dist/cdn/{NJN5G4UY.js → ODCCWLHO.js} +1 -1
- package/dist/cdn/{TF5TRLU2.js → OU7MVR4B.js} +1 -1
- package/dist/cdn/{CEMR27ST.js → OX7V2M4A.js} +1 -1
- package/dist/cdn/{OIXBTRKC.js → OYPBMICI.js} +1 -1
- package/dist/cdn/OYWYTVOL.js +2 -0
- package/dist/cdn/{WCO5P2JH.js → P3Z3U6EW.js} +1 -1
- package/dist/cdn/{LLKQ7TX7.js → P4XE6ZZZ.js} +1 -1
- package/dist/cdn/{4BSIUBYC.js → Q5WSLHDY.js} +1 -1
- package/dist/cdn/{UORALTUQ.js → Q7DS5DWT.js} +1 -1
- package/dist/cdn/{H3I7WACM.js → QBRBNIXR.js} +1 -1
- package/dist/cdn/{WXHKWVY6.js → QDKWQYXS.js} +1 -1
- package/dist/cdn/{ZHELEVWD.js → QKTLZQUN.js} +1 -1
- package/dist/cdn/{CTG52KS2.js → QLFVND6A.js} +1 -1
- package/dist/cdn/{UITARQM7.js → QPJKCWHN.js} +1 -1
- package/dist/cdn/{5UA6626W.js → QV6GOHCV.js} +1 -1
- package/dist/cdn/{2BRZBSTI.js → QVFPMVEH.js} +1 -1
- package/dist/cdn/{VZ3XS4TA.js → QVVLZSSP.js} +1 -1
- package/dist/cdn/{WKWVCOIG.js → R32WAJSG.js} +1 -1
- package/dist/cdn/{ZT43CYF5.js → RQZW427W.js} +1 -1
- package/dist/cdn/{Z2JSHKJZ.js → S33ZYVXV.js} +1 -1
- package/dist/cdn/{L4EGKE5Z.js → SBOWGNMI.js} +1 -1
- package/dist/cdn/{BU4ICFFZ.js → SXLMXADA.js} +1 -1
- package/dist/cdn/{CZ75K7DI.js → T4O5U2M2.js} +1 -1
- package/dist/cdn/{PCDEZ3A2.js → TFBMGUXL.js} +1 -1
- package/dist/cdn/{3LFH6GRF.js → TO7FSXTE.js} +1 -1
- package/dist/cdn/{FFG334BY.js → TVYZ5MJ6.js} +1 -1
- package/dist/cdn/{QWX4EGTZ.js → TXWO4UHN.js} +1 -1
- package/dist/cdn/{FPKHQRVB.js → TZ4SFAU3.js} +1 -1
- package/dist/cdn/{N74LOYWW.js → UFC7THL7.js} +1 -1
- package/dist/cdn/{EDQZ57RS.js → UO66ZNK4.js} +1 -1
- package/dist/cdn/{YZYK7DMP.js → URTZ72R2.js} +1 -1
- package/dist/cdn/{S4UWLELO.js → V32PCMHG.js} +1 -1
- package/dist/cdn/{V2I7OEHG.js → VE5BG7IA.js} +1 -1
- package/dist/cdn/{HXTM3NXE.js → VEWZWHDK.js} +1 -1
- package/dist/cdn/{LYSJFR43.js → VQI3TQZQ.js} +1 -1
- package/dist/cdn/VTI62NNC.js +2 -0
- package/dist/cdn/{QCZSN6XZ.js → VYKZSTNK.js} +1 -1
- package/dist/cdn/{3HGP3YNQ.js → W4P4NJPK.js} +1 -1
- package/dist/cdn/{AYCBH4DC.js → W5XNH3IT.js} +1 -1
- package/dist/cdn/{MY7ASGHV.js → W62GA6NU.js} +1 -1
- package/dist/cdn/{MJ6HK3JH.js → WAORKQF4.js} +1 -1
- package/dist/cdn/{NQOPLORW.js → WTPN2BAF.js} +1 -1
- package/dist/cdn/{RM5B7CIM.js → WUDAEBFN.js} +1 -1
- package/dist/cdn/{NYOXROIM.js → WZLOFBQS.js} +1 -1
- package/dist/cdn/{3Z6K5AJO.js → X6J3NQE6.js} +1 -1
- package/dist/cdn/{OML32CAX.js → XEKZJRA5.js} +1 -1
- package/dist/cdn/{6CVC25Y4.js → Y2KXRSAR.js} +1 -1
- package/dist/cdn/Y2QT4M6Q.js +2 -0
- package/dist/cdn/{36NBQURH.js → YE24NTR7.js} +1 -1
- package/dist/cdn/YUSU4EBS.js +2 -0
- package/dist/cdn/{KIZ5H4NQ.js → YYSUCY5P.js} +1 -1
- package/dist/cdn/{YDQP3IQW.js → ZBRSK3VD.js} +1 -1
- package/dist/cdn/{5EUTBUYN.js → ZK42RZZS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/locale.js +11 -14
- package/dist/chunks/resources3.js +0 -1
- package/dist/chunks/runtime.js +4 -4
- package/dist/components/calcite-action/customElement.d.ts +0 -7
- package/dist/components/calcite-action/customElement.js +4 -6
- package/dist/components/calcite-action-bar/customElement.d.ts +0 -7
- package/dist/components/calcite-action-bar/customElement.js +2 -14
- package/dist/components/calcite-date-picker-month-header/customElement.js +2 -2
- package/dist/components/calcite-dialog/customElement.d.ts +4 -2
- package/dist/components/calcite-flow-item/customElement.d.ts +4 -2
- package/dist/components/calcite-panel/customElement.d.ts +4 -2
- package/dist/components/calcite-panel/customElement.js +5 -3
- package/dist/components/calcite-stepper/customElement.js +2 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.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 +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cdn/D65VLP5P.js +0 -2
- package/dist/cdn/J4YI2TU3.js +0 -2
- package/dist/cdn/KN2LZPWP.js +0 -2
- package/dist/cdn/MTBIXRQ7.js +0 -2
- package/dist/cdn/QC3Z5J6R.js +0 -2
- package/dist/cdn/SSBCAA2K.js +0 -2
- package/dist/cdn/UTXN6YZB.js +0 -2
|
@@ -9,7 +9,7 @@ import { b as dateFromRange, n as nextMonth, p as prevMonth, f as formatCalendar
|
|
|
9
9
|
import { c as closestElementCrossShadowBoundary, l as getTextWidth } from "../../chunks/dom.js";
|
|
10
10
|
import { i as isActivationKey } from "../../chunks/key.js";
|
|
11
11
|
import { n as numberStringFormatter } from "../../chunks/locale.js";
|
|
12
|
-
const styles = css`:host{display:block}.header{display:flex;justify-content:space-between;align-items:center;block-size:100%}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-theme-space-xs, var(--calcite-spacing-xs));margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));margin-inline-start:var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=l]){block-size:44px;margin:var(--calcite-theme-space-xs, var(--calcite-spacing-xs));margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}.chevron{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;outline-color:transparent;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;inline-size:100%;block-size:100%;--calcite-internal-action-padding-block: 0;--calcite-action-background-color: var(--calcite-date-picker-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-date-picker-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-date-picker-header-action-background-color-press);--calcite-action-text-color: var(--calcite-date-picker-header-action-text-color);--calcite-action-text-color-press: var(--calcite-date-picker-header-action-text-color-press)}.chevron: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)))}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{inline-size:100%;block-size:100%;display:flex;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:var(--calcite-font-line-height-relative-base);gap:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{margin-inline:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));font-weight:var(--calcite-font-weight-medium);color:var(--calcite-date-picker-year-text-color, var(--calcite-color-text-1));font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{font-family:inherit;position:relative;outline-color:transparent;border-style:none;display:inline-block;background-color:transparent;text-align:center;inline-size:44px}.year:hover{transition-timing-function:var(--calcite-animation-easing-function);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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)))}.month-select{--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-internal-select-spacing-inline: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-md));--calcite-select-text-color: var(--calcite-date-picker-month-select-text-color, var(--calcite-color-text-1));--calcite-select-icon-color: var(--calcite-date-picker-month-select-icon-color);--calcite-select-icon-color-hover: var(--calcite-date-picker-month-select-icon-color-hover);--calcite-internal-select-spacing-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-select-icon-container-padding-inline: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-lg);--calcite-internal-select-font-weight: var(--calcite-font-weight-medium)}:host([scale=s]) .month-year-container .month-select{--calcite-internal-select-spacing-inline: var(--calcite-theme-space-base, var(--calcite-spacing-base));--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size));--calcite-internal-select-spacing-block: var(--calcite-theme-space-base, var(--calcite-spacing-base));--calcite-internal-select-icon-container-padding-inline: var( --calcite-theme-space-base, var(--calcite-spacing-base) );--calcite-internal-select-block-size: 24px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-internal-select-spacing-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-lg));--calcite-internal-select-spacing-block: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-select-icon-container-padding-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-select-block-size: 44px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
12
|
+
const styles = css`:host{display:block}.header{display:flex;justify-content:space-between;align-items:center;block-size:100%}.chevron-container{display:flex;align-items:center}:host([scale=s]){block-size:24px;margin:var(--calcite-theme-space-xs, var(--calcite-spacing-xs));margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .chevron-container,:host([scale=s]) .chevron{min-inline-size:24px;block-size:24px}:host([scale=m]){block-size:32px;margin:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));margin-inline-start:var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}:host([scale=m]) .chevron-container,:host([scale=m]) .chevron{min-inline-size:32px;block-size:32px;--calcite-internal-action-padding-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=l]){block-size:44px;margin:var(--calcite-theme-space-xs, var(--calcite-spacing-xs));margin-inline-start:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=l]) .chevron-container,:host([scale=l]) .chevron{min-inline-size:44px;block-size:44px;--calcite-internal-action-padding-block: var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}.chevron{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;outline-color:transparent;box-sizing:content-box;display:flex;flex-grow:0;cursor:pointer;align-items:center;justify-content:center;border-style:none;inline-size:100%;block-size:100%;--calcite-internal-action-padding-block: 0;--calcite-internal-action-padding-inline: var(--calcite-theme-space-none, var(--calcite-spacing-none));--calcite-action-background-color: var(--calcite-date-picker-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-date-picker-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-date-picker-header-action-background-color-press);--calcite-action-text-color: var(--calcite-date-picker-header-action-text-color);--calcite-action-text-color-press: var(--calcite-date-picker-header-action-text-color-press)}.chevron: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)))}.chevron[aria-disabled=true]{pointer-events:none}.month-year-container{inline-size:100%;block-size:100%;display:flex;flex:1 1 auto;align-items:center;justify-content:flex-start;text-align:center;line-height:var(--calcite-font-line-height-relative-base);gap:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.month-year-container.range-calendar{justify-content:center}.year-container{position:relative;display:flex;block-size:100%}.suffix{display:flex;align-items:center}.year,.suffix{margin-inline:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));font-weight:var(--calcite-font-weight-medium);color:var(--calcite-date-picker-year-text-color, var(--calcite-color-text-1));font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-fixed-lg)}.year{font-family:inherit;position:relative;outline-color:transparent;border-style:none;display:inline-block;background-color:transparent;text-align:center;inline-size:44px}.year:hover{transition-timing-function:var(--calcite-animation-easing-function);transition-property:outline-color;outline:2px solid var(--calcite-color-border-2);outline-offset:-2px}.year: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)))}.month-select{--calcite-select-internal-border-width: 0;--calcite-select-internal-icon-border-inline-end-width: 0;--calcite-internal-select-spacing-inline: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-md));--calcite-select-text-color: var(--calcite-date-picker-month-select-text-color, var(--calcite-color-text-1));--calcite-select-icon-color: var(--calcite-date-picker-month-select-icon-color);--calcite-select-icon-color-hover: var(--calcite-date-picker-month-select-icon-color-hover);--calcite-internal-select-spacing-block: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-select-icon-container-padding-inline: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-lg);--calcite-internal-select-font-weight: var(--calcite-font-weight-medium)}:host([scale=s]) .month-year-container .month-select{--calcite-internal-select-spacing-inline: var(--calcite-theme-space-base, var(--calcite-spacing-base));--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size));--calcite-internal-select-spacing-block: var(--calcite-theme-space-base, var(--calcite-spacing-base));--calcite-internal-select-icon-container-padding-inline: var( --calcite-theme-space-base, var(--calcite-spacing-base) );--calcite-internal-select-block-size: 24px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-base)}:host([scale=s]) .month-year-container .year{inline-size:40px}:host([scale=s]) .month-year-container .year,:host([scale=s]) .month-year-container .suffix{font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-fixed-base)}:host([scale=l]) .month-year-container .month-select{--calcite-internal-select-spacing-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-select-font-size: var(--calcite-date-picker-month-select-font-size, var(--calcite-font-size-lg));--calcite-internal-select-spacing-block: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-select-icon-container-padding-inline: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-select-block-size: 44px;--calcite-internal-select-line-height: var(--calcite-font-line-height-fixed-xl)}:host([scale=l]) .month-year-container .year{inline-size:48px}:host([scale=l]) .month-year-container .year,:host([scale=l]) .month-year-container .suffix{font-size:var(--calcite-font-size-lg);line-height:var(--calcite-font-line-height-fixed-xl)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
13
13
|
const CSS = {
|
|
14
14
|
header: "header",
|
|
15
15
|
chevron: "chevron",
|
|
@@ -279,7 +279,7 @@ class DatePickerMonthHeader extends LitElement {
|
|
|
279
279
|
const activeMonth = this.activeDate.getFullYear() * 12 + this.activeDate.getMonth();
|
|
280
280
|
const targetMonth = targetDate && targetDate.getFullYear() * 12 + targetDate.getMonth();
|
|
281
281
|
const isDisabled = targetMonth === void 0 || (isDirectionRight ? targetMonth <= activeMonth : targetMonth >= activeMonth);
|
|
282
|
-
return html`<calcite-action alignment=center .ariaDisabled=${isDisabled} .ariaLabel=${isDirectionRight ? this.messages.nextMonth : this.messages.prevMonth} class=${safeClassMap(CSS.chevron)}
|
|
282
|
+
return html`<calcite-action alignment=center .ariaDisabled=${isDisabled} .ariaLabel=${isDirectionRight ? this.messages.nextMonth : this.messages.prevMonth} class=${safeClassMap(CSS.chevron)} data-direction=${direction ?? nothing} .disabled=${isDisabled} .icon=${isDirectionRight ? ICON.chevronRight : ICON.chevronLeft} icon-flip-rtl @click=${isDirectionRight ? this.nextMonthClick : this.prevMonthClick} @keydown=${isDirectionRight ? this.nextMonthKeydown : this.prevMonthKeydown} role=button .scale=${this.scale} .text=${isDirectionRight ? this.messages.nextMonth : this.messages.prevMonth} ${ref(isDirectionRight ? this.nextMonthActionRef : this.prevMonthActionRef)}></calcite-action>`;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
customElement("calcite-date-picker-month-header", DatePickerMonthHeader);
|
|
@@ -77,10 +77,12 @@ export interface DeclareCssProperties {
|
|
|
77
77
|
/**
|
|
78
78
|
* @slot - A slot for adding content.
|
|
79
79
|
* @slot [custom-content] - A slot for displaying custom content. Will prevent the rendering of any default component UI, except for `box-shadow` and `corner-radius`.
|
|
80
|
-
* @slot [action-bar] -
|
|
80
|
+
* @slot [action-bar] - DEPRECATED in v6.0.0, removal target v7.0.0 - Use the `content-top` slot with `--calcite-dialog-content-top-space` set to `0` instead. Set `layout` to `"horizontal"` on the slotted `calcite-action-bar`.
|
|
81
81
|
* @slot [alerts] - A slot for adding `calcite-alert`s to the component.
|
|
82
82
|
* @slot [content-bottom] - A slot for adding content below the unnamed (default) slot and - if populated - the `footer` slot.
|
|
83
|
-
* @slot
|
|
83
|
+
* @slot
|
|
84
|
+
* [content-top] - A slot for adding content above the unnamed (default) slot and - if populated - below the `action-bar` slot.
|
|
85
|
+
* A directly slotted `calcite-action-bar` has an `inline-size` of `100%`. Set its `layout` to `"horizontal"` and the component's `--calcite-dialog-content-top-space` to `0` to match the `action-bar` slot.
|
|
84
86
|
* @slot [header-actions-start] - A slot for adding actions or content to the starting side of the component's header.
|
|
85
87
|
* @slot [header-actions-end] - A slot for adding actions or content to the ending side of the component's header.
|
|
86
88
|
* @slot [header-content] - A slot for adding custom content to the component's header.
|
|
@@ -77,9 +77,11 @@ export interface DeclareCssProperties {
|
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* @slot - A slot for adding custom content.
|
|
80
|
-
* @slot [action-bar] -
|
|
80
|
+
* @slot [action-bar] - DEPRECATED in v6.0.0, removal target v7.0.0 - Use the `content-top` slot with `--calcite-flow-content-top-space` set to `0` instead. Set `layout` to `"horizontal"` on the slotted `calcite-action-bar`.
|
|
81
81
|
* @slot [alerts] - A slot for adding `calcite-alert`s to the component.
|
|
82
|
-
* @slot
|
|
82
|
+
* @slot
|
|
83
|
+
* [content-top] - A slot for adding content above the unnamed (default) slot and below the `action-bar` slot (if populated).
|
|
84
|
+
* A directly slotted `calcite-action-bar` has an `inline-size` of `100%`. Set its `layout` to `"horizontal"` and the component's `--calcite-flow-content-top-space` to `0` to match the `action-bar` slot.
|
|
83
85
|
* @slot [content-bottom] - A slot for adding content below the unnamed (default) slot and above the footer slot (if populated)
|
|
84
86
|
* @slot [header-top] - A slot for adding custom content above the header actions and content.
|
|
85
87
|
* @slot [header-actions-start] - A slot for adding `calcite-action`s or content to the start side of the component's header.
|
|
@@ -70,10 +70,12 @@ export interface DeclareCssProperties {
|
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @slot - A slot for adding custom content.
|
|
73
|
-
* @slot [action-bar] -
|
|
73
|
+
* @slot [action-bar] - DEPRECATED in v6.0.0, removal target v7.0.0 - Use the `content-top` slot with `--calcite-panel-content-top-space` set to `0` instead. Set `layout` to `"horizontal"` on the slotted `calcite-action-bar`.
|
|
74
74
|
* @slot [alerts] - A slot for adding `calcite-alert`s to the component.
|
|
75
75
|
* @slot [content-bottom] - A slot for adding content below the unnamed (default) slot and above the footer slot (if populated).
|
|
76
|
-
* @slot
|
|
76
|
+
* @slot
|
|
77
|
+
* [content-top] - A slot for adding content above the unnamed (default) slot and below the `action-bar` slot (if populated).
|
|
78
|
+
* A directly slotted `calcite-action-bar` has an `inline-size` of `100%`. Set its `layout` to `"horizontal"` and the component's `--calcite-panel-content-top-space` to `0` to match the `action-bar` slot.
|
|
77
79
|
* @slot [header-top] - A slot for adding custom content above the header actions and content.
|
|
78
80
|
* @slot [header-actions-start] - A slot for adding actions or content to the start side of the header.
|
|
79
81
|
* @slot [header-actions-end] - A slot for adding actions or content to the end side of the header.
|
|
@@ -18,7 +18,7 @@ import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
|
18
18
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
19
19
|
import { C as CSS, S as SLOTS, I as IDS, a as ICONS } from "../../chunks/resources14.js";
|
|
20
20
|
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
21
|
-
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{position:relative;display:flex;inline-size:100%;block-size:100%;flex:1 1 auto;overflow:hidden;box-sizing:border-box;border-radius:var(--calcite-panel-corner-radius, var(--calcite-theme-corner-radius-none, var(--calcite-corner-radius-sharp)))}slot[name=alerts]::slotted(calcite-alert){block-size:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-panel-header-vertical-padding: var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=s]) .header-content .icon{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-panel-header-vertical-padding: var(--calcite-theme-space-md-plus, var(--calcite-spacing-md-plus))}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=m]) .header-content .icon{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host(:is([scale=s],[scale=m])){--calcite-internal-panel-action-spacing: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=l]){--calcite-internal-panel-action-spacing: var(--calcite-theme-space-xs, var(--calcite-spacing-xs));--calcite-internal-panel-default-space: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-panel-header-vertical-padding: var(--calcite-theme-space-xl, var(--calcite-spacing-xl))}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}:host([scale=l]) .header-content .icon{margin-inline-end:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}.content-top{padding:var(--calcite-panel-content-top-space, var(--calcite-internal-panel-default-space))}.content-bottom{padding:var(--calcite-panel-content-bottom-space, var(--calcite-internal-panel-default-space))}.container{position:relative;background-color:var(--calcite-theme-color-surface-1, var(--calcite-color-background));margin:var(--calcite-space-none);display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:var(--calcite-space-none);overflow:hidden;box-sizing:border-box;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);font-size:var(--calcite-font-size-relative-base)}.container *{box-sizing:border-box}.header{display:flex;flex-direction:column;z-index:var(--calcite-z-index-header);background-color:var(--calcite-panel-header-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header--no-row{border-block-end:0}.content-top--no-border{border-block-start:0}.header-container{display:flex;flex-direction:row;inline-size:100%;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-top{inline-size:100%;border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-header-top-space, var(--calcite-internal-panel-default-space))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:var(--calcite-space-md);padding-block:var(--calcite-space-md-plus);margin-inline-end:auto;justify-content:center}.header-content .heading-text-content{flex:1 1 auto;overflow:hidden}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:var(--calcite-space-none);line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:var(--calcite-space-none)}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}#close,#collapse,calcite-action-menu{--calcite-action-background-color: var(--calcite-panel-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press);--calcite-action-text-color: var(--calcite-panel-header-action-text-color);--calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press)}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;margin:auto;gap:var(--calcite-internal-panel-action-spacing)}.header-actions--start{margin-inline-start:var(--calcite-internal-panel-action-spacing)}.header-actions--end{margin-inline-end:var(--calcite-internal-panel-action-spacing)}.content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;block-size:100%;outline-color:var(--calcite-color-transparent);color:var(--calcite-color-text-2);position:relative;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.content-wrapper:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header--slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.header-content.header--non-slotted-content{align-items:center;flex-direction:row}.footer{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);display:flex;margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:center;align-items:center;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}.footer-content{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1 1 0%}.footer-start{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:1 1 0%;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex:1 1 0%;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:var(--calcite-space-none);margin-block:var(--calcite-space-none);margin-inline:auto;display:block;padding:var(--calcite-space-sm);z-index:var(--calcite-z-index-sticky);inset-inline:0;inline-size:fit-content}calcite-icon{--calcite-icon-color: var(--calcite-panel-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-1)))}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
21
|
+
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{position:relative;display:flex;inline-size:100%;block-size:100%;flex:1 1 auto;overflow:hidden;box-sizing:border-box;border-radius:var(--calcite-panel-corner-radius, var(--calcite-theme-corner-radius-none, var(--calcite-corner-radius-sharp)))}slot[name=alerts]::slotted(calcite-alert){block-size:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:var(--calcite-opacity-full)}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-panel-header-vertical-padding: var(--calcite-theme-space-sm-plus, var(--calcite-spacing-sm-plus))}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=s]) .header-content .icon{margin-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-panel-header-vertical-padding: var(--calcite-theme-space-md-plus, var(--calcite-spacing-md-plus))}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=m]) .header-content .icon{margin-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host(:is([scale=s],[scale=m])){--calcite-internal-panel-action-spacing: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([scale=l]){--calcite-internal-panel-action-spacing: var(--calcite-theme-space-xs, var(--calcite-spacing-xs));--calcite-internal-panel-default-space: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-panel-header-vertical-padding: var(--calcite-theme-space-xl, var(--calcite-spacing-xl))}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}:host([scale=l]) .header-content .icon{margin-inline-end:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}.content-top{padding:var(--calcite-panel-content-top-space, var(--calcite-internal-panel-default-space))}.content-bottom{padding:var(--calcite-panel-content-bottom-space, var(--calcite-internal-panel-default-space))}.container{position:relative;background-color:var(--calcite-theme-color-surface-1, var(--calcite-color-background));margin:var(--calcite-space-none);display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:var(--calcite-space-none);overflow:hidden;box-sizing:border-box;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);font-size:var(--calcite-font-size-relative-base)}.container *{box-sizing:border-box}.header{display:flex;flex-direction:column;z-index:var(--calcite-z-index-header);background-color:var(--calcite-panel-header-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header--no-row{border-block-end:0}.content-top--no-border{border-block-start:0}.header-container{display:flex;flex-direction:row;inline-size:100%;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-top{inline-size:100%;border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-header-top-space, var(--calcite-internal-panel-default-space))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar),.content-top ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:var(--calcite-space-md);padding-block:var(--calcite-space-md-plus);margin-inline-end:auto;justify-content:center}.header-content .heading-text-content{flex:1 1 auto;overflow:hidden}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:var(--calcite-space-none);line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:var(--calcite-space-none)}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}#close,#collapse,calcite-action-menu{--calcite-action-background-color: var(--calcite-panel-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press);--calcite-action-text-color: var(--calcite-panel-header-action-text-color);--calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press)}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;margin:auto;gap:var(--calcite-internal-panel-action-spacing)}.header-actions--start{margin-inline-start:var(--calcite-internal-panel-action-spacing)}.header-actions--end{margin-inline-end:var(--calcite-internal-panel-action-spacing)}.content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;block-size:100%;outline-color:var(--calcite-color-transparent);color:var(--calcite-color-text-2);position:relative;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-theme-color-surface-1, var(--calcite-color-background)))}.content-wrapper:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header--slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.header-content.header--non-slotted-content{align-items:center;flex-direction:row}.footer{font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);display:flex;margin-block-start:auto;flex-direction:row;align-content:space-between;justify-content:center;align-items:center;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}.footer-content{display:flex;flex-direction:row;align-items:center;justify-content:center;flex:1 1 0%}.footer-start{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex:1 1 0%;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;flex:1 1 0%;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:var(--calcite-space-none);margin-block:var(--calcite-space-none);margin-inline:auto;display:block;padding:var(--calcite-space-sm);z-index:var(--calcite-z-index-sticky);inset-inline:0;inline-size:fit-content}calcite-icon{--calcite-icon-color: var(--calcite-panel-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-1)))}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
22
22
|
class Panel extends LitElement {
|
|
23
23
|
constructor() {
|
|
24
24
|
super();
|
|
@@ -43,6 +43,7 @@ class Panel extends LitElement {
|
|
|
43
43
|
this.hasActionBar = false;
|
|
44
44
|
this.hasContentBottom = false;
|
|
45
45
|
this.hasContentTop = false;
|
|
46
|
+
this.hasContentTopActionBar = false;
|
|
46
47
|
this.hasEndActions = false;
|
|
47
48
|
this.hasFab = false;
|
|
48
49
|
this.hasFooterContent = false;
|
|
@@ -78,7 +79,7 @@ class Panel extends LitElement {
|
|
|
78
79
|
this.listen("calcitePanelClose", this.panelCloseHandler);
|
|
79
80
|
}
|
|
80
81
|
static {
|
|
81
|
-
this.properties = { hasActionBar: [16, {}, { state: true }], hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }], hasEndActions: [16, {}, { state: true }], hasFab: [16, {}, { state: true }], hasFooterContent: [16, {}, { state: true }], hasFooterEndContent: [16, {}, { state: true }], hasFooterStartContent: [16, {}, { state: true }], hasHeaderContent: [16, {}, { state: true }], hasHeaderDescription: [16, {}, { state: true }], hasHeaderHeading: [16, {}, { state: true }], hasHeaderTop: [16, {}, { state: true }], hasMenuItems: [16, {}, { state: true }], hasStartActions: [16, {}, { state: true }], showHeaderContent: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], closable: [7, {}, { reflect: true, type: Boolean }], closed: [7, {}, { reflect: true, type: Boolean }], collapseDirection: 1, collapsed: [7, {}, { reflect: true, type: Boolean }], collapsible: [7, {}, { reflect: true, type: Boolean }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], heading: 1, headingLevel: [11, {}, { type: Number, reflect: true }], icon: [3, {}, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], loading: [7, {}, { reflect: true, type: Boolean }], focusTrapEnabledByParent: [5, {}, { type: Boolean }], focusTrapDisabled: [5, {}, { type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }], menuFlipPlacements: [0, {}, { attribute: false }], menuOpen: [7, {}, { reflect: true, type: Boolean }], menuPlacement: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
82
|
+
this.properties = { hasActionBar: [16, {}, { state: true }], hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }], hasContentTopActionBar: [16, {}, { state: true }], hasEndActions: [16, {}, { state: true }], hasFab: [16, {}, { state: true }], hasFooterContent: [16, {}, { state: true }], hasFooterEndContent: [16, {}, { state: true }], hasFooterStartContent: [16, {}, { state: true }], hasHeaderContent: [16, {}, { state: true }], hasHeaderDescription: [16, {}, { state: true }], hasHeaderHeading: [16, {}, { state: true }], hasHeaderTop: [16, {}, { state: true }], hasMenuItems: [16, {}, { state: true }], hasStartActions: [16, {}, { state: true }], showHeaderContent: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], closable: [7, {}, { reflect: true, type: Boolean }], closed: [7, {}, { reflect: true, type: Boolean }], collapseDirection: 1, collapsed: [7, {}, { reflect: true, type: Boolean }], collapsible: [7, {}, { reflect: true, type: Boolean }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], heading: 1, headingLevel: [11, {}, { type: Number, reflect: true }], icon: [3, {}, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], loading: [7, {}, { reflect: true, type: Boolean }], focusTrapEnabledByParent: [5, {}, { type: Boolean }], focusTrapDisabled: [5, {}, { type: Boolean }], focusTrapOptions: [0, {}, { attribute: false }], menuFlipPlacements: [0, {}, { attribute: false }], menuOpen: [7, {}, { reflect: true, type: Boolean }], menuPlacement: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
82
83
|
}
|
|
83
84
|
static {
|
|
84
85
|
this.styles = [styles$1, styles];
|
|
@@ -224,6 +225,7 @@ class Panel extends LitElement {
|
|
|
224
225
|
}
|
|
225
226
|
contentTopSlotChangeHandler(event) {
|
|
226
227
|
this.hasContentTop = slotChangeHasAssignedElement(event);
|
|
228
|
+
this.hasContentTopActionBar = slotChangeGetAssignedElements(event).some(isActionBar);
|
|
227
229
|
}
|
|
228
230
|
setPanelScrollEl(el) {
|
|
229
231
|
updateRefObserver(this.resizeObserver, this.panelScrollEl, el);
|
|
@@ -304,7 +306,7 @@ class Panel extends LitElement {
|
|
|
304
306
|
renderContentTop() {
|
|
305
307
|
return html`<div class=${safeClassMap({
|
|
306
308
|
[CSS.contentTop]: true,
|
|
307
|
-
[CSS.contentTopNoBorder]: this.
|
|
309
|
+
[CSS.contentTopNoBorder]: !this.hasHeaderRow && !this.hasActionBar && (this.hasHeaderTop || this.hasContentTopActionBar)
|
|
308
310
|
})} .hidden=${!this.hasContentTop}><slot name=${SLOTS.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`;
|
|
309
311
|
}
|
|
310
312
|
renderFab() {
|
|
@@ -39,7 +39,7 @@ const StepBar = ({ disabled, active, complete, error }) => html`<svg class=${saf
|
|
|
39
39
|
[CSS.stepBarError]: error,
|
|
40
40
|
[CSS.stepBarInActive]: true
|
|
41
41
|
})} width=100% x=0 y=0 />`}</svg>`;
|
|
42
|
-
const styles = css`:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-action-block-size: 2.75rem;--calcite-internal-stepper-action-inline-size: 2rem;--calcite-internal-step-bar-gap: .25rem}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-action-block-size: 3.25rem;--calcite-internal-stepper-action-inline-size: 2.5rem}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-action-block-size: 4rem;--calcite-internal-stepper-action-inline-size: 3rem;--calcite-internal-step-bar-gap: .75rem}:host{display:flex}.container{position:relative;display:flex;inline-size:100%;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]) .container{flex:1 1 auto;flex-direction:column}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:grid;grid-template-areas:"items" "content";gap:.5rem var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s));grid-template-rows:auto 1fr}:host([layout=horizontal][scale=s]) .container,:host([layout=horizontal-single][scale=s]) .container{gap:.25rem var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host([layout=horizontal][scale=l]) .container,:host([layout=horizontal-single][scale=l]) .container{gap:.75rem var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host([layout=horizontal]) .container.single-view{display:flex;grid-template-columns:none}.action-icon{display:flex;position:relative;flex-grow:0;block-size:var(--calcite-internal-stepper-action-block-size);inline-size:var(--calcite-internal-stepper-action-inline-size)}.action-container{position:absolute;display:flex;justify-content:space-between;padding-block:.25rem;inline-size:100%}.step-bar{display:flex;block-size:100%;inline-size:100%}.step-bar-container{display:flex;position:absolute;justify-content:space-between;align-items:flex-start;block-size:.125rem;inline-size:100%;gap:var(--calcite-stepper-bar-gap, var(--calcite-internal-step-bar-gap, .5rem))}.step-bar--inactive{fill:var(--calcite-stepper-bar-inactive-fill-color, var(--calcite-color-border-3, #dfdfdf));fill-opacity:1;block-size:100%}.step-bar--active{fill:var(--calcite-stepper-bar-active-fill-color, var(--calcite-color-brand))}.step-bar--complete{fill:var(--calcite-stepper-bar-complete-fill-color, var(--calcite-color-brand));fill-opacity:.5}.step-bar--error{fill:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}.step-bar--disabled{opacity:.5}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
42
|
+
const styles = css`:host([scale=s]){--calcite-internal-stepper-item-spacing-unit-s: .25rem;--calcite-internal-stepper-action-block-size: 2.75rem;--calcite-internal-stepper-action-inline-size: 2rem;--calcite-internal-step-bar-gap: .25rem}:host([scale=m]){--calcite-internal-stepper-item-spacing-unit-s: .5rem;--calcite-internal-stepper-action-block-size: 3.25rem;--calcite-internal-stepper-action-inline-size: 2.5rem}:host([scale=l]){--calcite-internal-stepper-item-spacing-unit-s: .75rem;--calcite-internal-stepper-action-block-size: 4rem;--calcite-internal-stepper-action-inline-size: 3rem;--calcite-internal-step-bar-gap: .75rem}:host{display:flex}.container{position:relative;display:flex;inline-size:100%;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}:host([layout=vertical]) .container{flex:1 1 auto;flex-direction:column}:host([layout=horizontal]) .container,:host([layout=horizontal-single]) .container{display:grid;grid-template-areas:"items" "content";gap:.5rem var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s));grid-template-rows:auto 1fr}:host([layout=horizontal][scale=s]) .container,:host([layout=horizontal-single][scale=s]) .container{gap:.25rem var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host([layout=horizontal][scale=l]) .container,:host([layout=horizontal-single][scale=l]) .container{gap:.75rem var(--calcite-stepper-bar-gap, var(--calcite-internal-stepper-item-spacing-unit-s))}:host([layout=horizontal]) .container.single-view{display:flex;grid-template-columns:none}.action-icon{display:flex;position:relative;flex-grow:0;block-size:var(--calcite-internal-stepper-action-block-size);inline-size:var(--calcite-internal-stepper-action-inline-size);--calcite-internal-action-padding-inline: var(--calcite-theme-space-none, var(--calcite-spacing-none))}.action-container{position:absolute;display:flex;justify-content:space-between;padding-block:.25rem;inline-size:100%}.step-bar{display:flex;block-size:100%;inline-size:100%}.step-bar-container{display:flex;position:absolute;justify-content:space-between;align-items:flex-start;block-size:.125rem;inline-size:100%;gap:var(--calcite-stepper-bar-gap, var(--calcite-internal-step-bar-gap, .5rem))}.step-bar--inactive{fill:var(--calcite-stepper-bar-inactive-fill-color, var(--calcite-color-border-3, #dfdfdf));fill-opacity:1;block-size:100%}.step-bar--active{fill:var(--calcite-stepper-bar-active-fill-color, var(--calcite-color-brand))}.step-bar--complete{fill:var(--calcite-stepper-bar-complete-fill-color, var(--calcite-color-brand));fill-opacity:.5}.step-bar--error{fill:var(--calcite-stepper-bar-error-fill-color, var(--calcite-color-status-danger))}.step-bar--disabled{opacity:.5}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
43
43
|
class Stepper extends LitElement {
|
|
44
44
|
constructor() {
|
|
45
45
|
super();
|
|
@@ -261,7 +261,7 @@ class Stepper extends LitElement {
|
|
|
261
261
|
const disabled = this.getEnabledStepIndex(currentActivePosition + offset, direction) === null;
|
|
262
262
|
return layout === "horizontal-single" && !multipleViewMode ? html`<calcite-action alignment=center class=${safeClassMap({
|
|
263
263
|
[CSS$1.actionIcon]: true
|
|
264
|
-
})}
|
|
264
|
+
})} data-position=${position ?? nothing} .disabled=${disabled} .icon=${path} icon-flip-rtl id=${id ?? nothing} @click=${this.handleActionClick} .scale=${this.scale} .text=${isPositionStart ? this.messages.previousStep : this.messages.nextStep}></calcite-action>` : null;
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
customElement("calcite-stepper", Stepper);
|