@esri/calcite-components 5.2.0-next.27 → 5.2.0-next.28
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/{X3FTOJI7.js → 2E2HNNH2.js} +1 -1
- package/dist/cdn/{25JTH5JZ.js → 2IKGML53.js} +1 -1
- package/dist/cdn/{GATR2JV3.js → 2RIRZGTD.js} +1 -1
- package/dist/cdn/{5YWAJ3PK.js → 2RRYUBIT.js} +1 -1
- package/dist/cdn/{KY52F6AP.js → 3CSRXFJW.js} +1 -1
- package/dist/cdn/{4UDJGXC6.js → 3D3ZE3AV.js} +1 -1
- package/dist/cdn/{BR7YJU5K.js → 3PTSQGQ4.js} +1 -1
- package/dist/cdn/{NB3V544P.js → 3QEEGDL2.js} +1 -1
- package/dist/cdn/{DYLPERNP.js → 3RUO37FL.js} +1 -1
- package/dist/cdn/{2HTOK4S2.js → 3UG4OBPY.js} +1 -1
- package/dist/cdn/{R7HPOJG7.js → 434V4M2M.js} +1 -1
- package/dist/cdn/{7MERFIP3.js → 45ZYKQE3.js} +1 -1
- package/dist/cdn/{KOU3O5MY.js → 4DGU5WAM.js} +1 -1
- package/dist/cdn/{462INL55.js → 4GNWDODR.js} +1 -1
- package/dist/cdn/{TI64XYI3.js → 4XHOV2IB.js} +1 -1
- package/dist/cdn/{WHRPZJ3H.js → 52GLXO3F.js} +1 -1
- package/dist/cdn/{YRJBEQ2J.js → 55JI2KM3.js} +1 -1
- package/dist/cdn/{RDWMCHFG.js → 577F4C5S.js} +1 -1
- package/dist/cdn/{CMHRM52D.js → 5CIZJDH4.js} +1 -1
- package/dist/cdn/{F6AXMUMQ.js → 5FIEB2GN.js} +1 -1
- package/dist/cdn/{AVZ2PNUZ.js → 5OHNKQWV.js} +1 -1
- package/dist/cdn/{FEIPWR5E.js → 5WQ2C6RW.js} +1 -1
- package/dist/cdn/{HDID743H.js → 66VO5GUE.js} +1 -1
- package/dist/cdn/{WVGIVERM.js → 6CNCRFM7.js} +1 -1
- package/dist/cdn/{UKSAXQ2X.js → 6JYNMBDK.js} +1 -1
- package/dist/cdn/{X4ECMORG.js → 6KHLKOOJ.js} +1 -1
- package/dist/cdn/{SYHBX5DP.js → 6LJCNGXA.js} +1 -1
- package/dist/cdn/{7BVGRSH3.js → 6SDKS5RF.js} +1 -1
- package/dist/cdn/{GGPVBIOO.js → 6WOOJEYP.js} +1 -1
- package/dist/cdn/{CSSMAMEV.js → 734QWGWC.js} +1 -1
- package/dist/cdn/{XABXMFPW.js → 74KDWRVX.js} +1 -1
- package/dist/cdn/{URAODIY5.js → 7KC3OEWO.js} +1 -1
- package/dist/cdn/{36GWEXE6.js → 7SI4ZH3U.js} +1 -1
- package/dist/cdn/{HVTW3JBZ.js → 7ZXODZ55.js} +1 -1
- package/dist/cdn/{YI43AAZG.js → AI4XUN7T.js} +1 -1
- package/dist/cdn/{JXPHI6YA.js → AVFPIIYD.js} +1 -1
- package/dist/cdn/{6DBCNPXB.js → AWBOXGRI.js} +1 -1
- package/dist/cdn/{PKBJQHGH.js → B6HJCUNB.js} +1 -1
- package/dist/cdn/{4XMWVRSF.js → BANFJIOX.js} +1 -1
- package/dist/cdn/{D4EDUC63.js → BTQLWXE6.js} +1 -1
- package/dist/cdn/{S2YY7C4Y.js → C4ATS7KD.js} +1 -1
- package/dist/cdn/{AG3XLM2O.js → CLP2N6JK.js} +1 -1
- package/dist/cdn/{JWPBJ67C.js → CQ3LBQKG.js} +1 -1
- package/dist/cdn/{KJWFLAHG.js → CXAD4HFV.js} +1 -1
- package/dist/cdn/{IWWPQRPA.js → CXQWUUER.js} +1 -1
- package/dist/cdn/{6Q3LMXVL.js → DC3ELSB6.js} +1 -1
- package/dist/cdn/{ANTSMKKW.js → DK4DNW4C.js} +1 -1
- package/dist/cdn/{4HRHYIFP.js → DLURVO4B.js} +1 -1
- package/dist/cdn/{ZGFEMUZJ.js → DXC3UTIW.js} +1 -1
- package/dist/cdn/{PTSTRUT3.js → EL2JDNNT.js} +1 -1
- package/dist/cdn/{A7RFXBGG.js → ELXIITC7.js} +1 -1
- package/dist/cdn/{74DY7KQ3.js → EOXXTARN.js} +1 -1
- package/dist/cdn/{D3XQI472.js → F7H7EWJF.js} +1 -1
- package/dist/cdn/{I7ANIZUG.js → FBJCSJ77.js} +1 -1
- package/dist/cdn/{OAEHJYTS.js → FC6ETGWK.js} +1 -1
- package/dist/cdn/{C2BZ5IBG.js → FGTWFZXZ.js} +1 -1
- package/dist/cdn/{75WM6SUI.js → FRDLYEDP.js} +1 -1
- package/dist/cdn/{QQTRSNPR.js → FVD66FPI.js} +1 -1
- package/dist/cdn/{JYHEHYNS.js → G24N3DUG.js} +1 -1
- package/dist/cdn/{XYD5NORN.js → G3O5THFM.js} +1 -1
- package/dist/cdn/{55HTPQBW.js → GGXZIBUZ.js} +1 -1
- package/dist/cdn/{3DSGCSTJ.js → GHZXKK7L.js} +1 -1
- package/dist/cdn/{M2TOWXTC.js → GKSTTARB.js} +1 -1
- package/dist/cdn/{KD64ET5Z.js → GNHIT7M5.js} +1 -1
- package/dist/cdn/{C2I73OXK.js → GVJ2AKG3.js} +1 -1
- package/dist/cdn/{ILO2IKWA.js → HVTZF67O.js} +1 -1
- package/dist/cdn/{QLN57OE5.js → HW3PMER6.js} +1 -1
- package/dist/cdn/{UK4QQHWN.js → IAY7IPXZ.js} +1 -1
- package/dist/cdn/{GFO7VFQB.js → ICRU3I3L.js} +1 -1
- package/dist/cdn/{ZNIRU3ET.js → IH7OCMMJ.js} +1 -1
- package/dist/cdn/{GNAT3E3I.js → IPSYJGZO.js} +1 -1
- package/dist/cdn/{7Q54OU4S.js → IPU2N4O2.js} +1 -1
- package/dist/cdn/{FGAXV2IK.js → IYOM6IMC.js} +1 -1
- package/dist/cdn/{PM3XIBZF.js → J4NT5R6J.js} +1 -1
- package/dist/cdn/{OQXZ4ND2.js → JABG3KYM.js} +1 -1
- package/dist/cdn/{ZGVWXZ5U.js → JHJAIYHD.js} +1 -1
- package/dist/cdn/{BQCZNRP3.js → JLMUK6ZP.js} +1 -1
- package/dist/cdn/{KN6BLYFY.js → JNCC7SAQ.js} +1 -1
- package/dist/cdn/{XSF4UOHH.js → JP4VWDKC.js} +1 -1
- package/dist/cdn/{XJLLCQU3.js → KCSFRKSB.js} +1 -1
- package/dist/cdn/{W4VYVU6F.js → KL3FCHTH.js} +1 -1
- package/dist/cdn/{UIMEFJ6W.js → KVKIW2QN.js} +1 -1
- package/dist/cdn/{KQ7A2STL.js → LA5PMICI.js} +1 -1
- package/dist/cdn/{OVB7O5NN.js → LDVQPEDI.js} +1 -1
- package/dist/cdn/{X3MXBDS6.js → LFLRRCQZ.js} +1 -1
- package/dist/cdn/{NLIZBPER.js → LK2JLUPD.js} +1 -1
- package/dist/cdn/{7XX2Y24W.js → LMW77PIN.js} +1 -1
- package/dist/cdn/{HKZSVHNB.js → LRFYLYII.js} +1 -1
- package/dist/cdn/{RBH6KCBG.js → LU3E6DWW.js} +1 -1
- package/dist/cdn/{SNHWXLZI.js → M27X4SWN.js} +1 -1
- package/dist/cdn/{6E7F67LI.js → M372HGT6.js} +1 -1
- package/dist/cdn/{SCFINL6N.js → M4U43OVR.js} +1 -1
- package/dist/cdn/{3KV4FKIT.js → MBPXL7PA.js} +1 -1
- package/dist/cdn/{JOZXCYEQ.js → MNERHI5N.js} +1 -1
- package/dist/cdn/{HDTI2S5G.js → N7DQVDQ3.js} +1 -1
- package/dist/cdn/{JQKINPWD.js → NRKOSQ4X.js} +1 -1
- package/dist/cdn/{5TYUO5CG.js → NVAFQRJI.js} +1 -1
- package/dist/cdn/{3YEVADOH.js → NWAVCA2H.js} +1 -1
- package/dist/cdn/{CB6SF3C6.js → OQ4I52NN.js} +1 -1
- package/dist/cdn/{UFEE5C36.js → OQMPVKYB.js} +1 -1
- package/dist/cdn/{64QYDLBV.js → P3H6ZPMH.js} +1 -1
- package/dist/cdn/P5VTALCW.js +2 -0
- package/dist/cdn/{RBKPCB7W.js → PCKN44RF.js} +1 -1
- package/dist/cdn/{PNJ5RJQE.js → PDM7J3DD.js} +1 -1
- package/dist/cdn/{HGT5FRVB.js → PFXJM5VP.js} +1 -1
- package/dist/cdn/{YNOLSGXI.js → PHZOZ7CR.js} +1 -1
- package/dist/cdn/{WM5JIPBY.js → PK4MNVDE.js} +1 -1
- package/dist/cdn/{6LX4KJAW.js → PKNLVSPM.js} +1 -1
- package/dist/cdn/{KPE3PX63.js → PNQMNODP.js} +1 -1
- package/dist/cdn/{V43IDM56.js → PQFHZAOY.js} +1 -1
- package/dist/cdn/{M5EI4NIV.js → PU6NJXEA.js} +1 -1
- package/dist/cdn/{A6A3OAEW.js → QCAUQCDS.js} +1 -1
- package/dist/cdn/{I6AMO637.js → QHPG3LCJ.js} +1 -1
- package/dist/cdn/{VSGW24HH.js → QLA727GA.js} +1 -1
- package/dist/cdn/{KJ4SM4YT.js → QPIBV5IK.js} +1 -1
- package/dist/cdn/{G6J2Q5KH.js → QUHRYME6.js} +1 -1
- package/dist/cdn/{QFXCAPBJ.js → QVSW2CVK.js} +1 -1
- package/dist/cdn/{SPAHMJ6F.js → QX2CMLKN.js} +1 -1
- package/dist/cdn/{EARECEOA.js → RDL62V4B.js} +1 -1
- package/dist/cdn/{JYS7RKIA.js → RRCTCH7X.js} +1 -1
- package/dist/cdn/{P3XLERBK.js → RRNFNLLC.js} +1 -1
- package/dist/cdn/{GG5ZC4V2.js → S4DL25BH.js} +1 -1
- package/dist/cdn/{UF6P65RT.js → S6J5UBAP.js} +1 -1
- package/dist/cdn/{W5FHFLK3.js → SE632YLP.js} +1 -1
- package/dist/cdn/{ILMHBP2Z.js → SMRCLAPJ.js} +1 -1
- package/dist/cdn/{DMUEDCEU.js → SWOVF2SN.js} +1 -1
- package/dist/cdn/{O7WD6NKI.js → T5ELXKJ3.js} +1 -1
- package/dist/cdn/{JQAH5AD3.js → T5ROHA6B.js} +1 -1
- package/dist/cdn/{5S2FRHLD.js → TPCQSAI4.js} +1 -1
- package/dist/cdn/{BUQNWHWD.js → TS6AOLWQ.js} +1 -1
- package/dist/cdn/{74SVBZ6L.js → UDEBAKSM.js} +1 -1
- package/dist/cdn/{FX5JOI53.js → UYZPKUHX.js} +1 -1
- package/dist/cdn/{XAHNAJAB.js → VOGVU5LD.js} +1 -1
- package/dist/cdn/{6CTBT4GS.js → X6T3MWZM.js} +1 -1
- package/dist/cdn/{RO7SIHBU.js → XMJIBCZR.js} +1 -1
- package/dist/cdn/{QSTQONN7.js → XOCT2IJ5.js} +1 -1
- package/dist/cdn/{TRY5UAWL.js → XS3XH72H.js} +1 -1
- package/dist/cdn/XVUOBV2T.js +2 -0
- package/dist/cdn/{CNLHC33W.js → YE2IVWN6.js} +1 -1
- package/dist/cdn/{FSH2S3NB.js → YKG6VH2S.js} +1 -1
- package/dist/cdn/{BA6NFCQN.js → YO54Y5HP.js} +1 -1
- package/dist/cdn/{C4IQ2T74.js → YV6C2KEY.js} +1 -1
- package/dist/cdn/{JRN77J6G.js → YZP2PPZE.js} +1 -1
- package/dist/cdn/{W73AHSNI.js → ZFLU2PWW.js} +1 -1
- package/dist/cdn/{QGEHMQWM.js → ZLVZNGWF.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +3 -3
- package/dist/components/calcite-shell/customElement.js +64 -7
- package/dist/components/calcite-shell-panel/customElement.d.ts +2 -0
- package/dist/components/calcite-shell-panel/customElement.js +89 -13
- 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 +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +2 -2
- package/dist/cdn/PJ6ZI5JB.js +0 -2
- package/dist/cdn/ZLIZNEHX.js +0 -2
|
@@ -4,13 +4,16 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { LitElement, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { s as slotChangeHasAssignedElement, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
|
-
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:var(--calcite-shell-corner-radius);box-shadow:var(--calcite-shell-shadow)}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-panel){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=panel-top]::slotted(calcite-shell-panel:not([display-mode^=float])),slot[name=panel-bottom]::slotted(calcite-shell-panel:not([display-mode^=float])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-panel){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=panel-bottom]::slotted(calcite-shell-panel){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-panel){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
7
|
+
const styles = css`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:var(--calcite-shell-corner-radius);box-shadow:var(--calcite-shell-shadow)}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-panel){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:var(--calcite-border-width-sm);border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-none);border-inline-end-width:var(--calcite-border-width-none);border-style:solid}slot[name=panel-top]::slotted(calcite-shell-panel:not([display-mode^=float])),slot[name=panel-bottom]::slotted(calcite-shell-panel:not([display-mode^=float])){border-color:var(--calcite-shell-border-color, var(--calcite-color-border-3));border-inline-start-width:var(--calcite-border-width-sm);border-inline-end-width:var(--calcite-border-width-sm)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-panel){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing, 26vw)}slot[name=panel-bottom]::slotted(calcite-shell-panel){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-panel){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}.main.has-resizable-panel-top ::slotted(calcite-panel){border-block-start:none}.main.has-resizable-panel-bottom ::slotted(calcite-panel){border-block-end:none}.main.has-action-bar-position-panel ::slotted(calcite-panel){border:0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
8
8
|
const CSS = {
|
|
9
9
|
main: "main",
|
|
10
10
|
content: "content",
|
|
11
11
|
contentBehind: "content--behind",
|
|
12
12
|
contentBottom: "content-bottom",
|
|
13
13
|
contentNonInteractive: "content--non-interactive",
|
|
14
|
+
hasActionBarPositionPanel: "has-action-bar-position-panel",
|
|
15
|
+
hasResizablePanelBottom: "has-resizable-panel-bottom",
|
|
16
|
+
hasResizablePanelTop: "has-resizable-panel-top",
|
|
14
17
|
footer: "footer",
|
|
15
18
|
positionedSlotWrapper: "positioned-slot-wrapper",
|
|
16
19
|
contentBehindCenterContent: "center-content"
|
|
@@ -26,24 +29,36 @@ const SLOTS = {
|
|
|
26
29
|
sheets: "sheets",
|
|
27
30
|
dialogs: "dialogs"
|
|
28
31
|
};
|
|
32
|
+
const panelSlots = ["panel-start", "panel-end", "panel-top", "panel-bottom"];
|
|
29
33
|
class Shell extends LitElement {
|
|
30
34
|
constructor() {
|
|
31
35
|
super();
|
|
36
|
+
this.panelSlotState = {
|
|
37
|
+
"panel-start": { elements: [], resizable: false },
|
|
38
|
+
"panel-end": { elements: [], resizable: false },
|
|
39
|
+
"panel-top": { elements: [], resizable: false },
|
|
40
|
+
"panel-bottom": { elements: [], resizable: false }
|
|
41
|
+
};
|
|
32
42
|
this.hasAlerts = false;
|
|
33
43
|
this.hasDialogs = false;
|
|
34
44
|
this.hasFooter = false;
|
|
35
45
|
this.hasHeader = false;
|
|
46
|
+
this.hasActionBarPositionPanel = false;
|
|
36
47
|
this.hasOnlyPanelBottom = false;
|
|
37
48
|
this.hasPanelBottom = false;
|
|
38
49
|
this.hasPanelTop = false;
|
|
50
|
+
this.hasResizablePanelBottom = false;
|
|
51
|
+
this.hasResizablePanelTop = false;
|
|
39
52
|
this.hasSheets = false;
|
|
40
53
|
this.panelIsResizing = false;
|
|
41
54
|
this.contentBehind = false;
|
|
42
55
|
this.listen("calciteInternalShellPanelResizeStart", this.handleCalciteInternalShellPanelResizeStart);
|
|
43
56
|
this.listen("calciteInternalShellPanelResizeEnd", this.handleCalciteInternalShellPanelResizeEnd);
|
|
57
|
+
this.listen("calciteInternalShellPanelResizableChange", this.handleCalciteInternalShellPanelResizableChange);
|
|
58
|
+
this.listen("calciteInternalShellPanelActionBarPositionChange", this.handleCalciteInternalShellPanelActionBarPositionChange);
|
|
44
59
|
}
|
|
45
60
|
static {
|
|
46
|
-
this.properties = { hasAlerts: [16, {}, { state: true }], hasDialogs: [16, {}, { state: true }], hasFooter: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }], hasOnlyPanelBottom: [16, {}, { state: true }], hasPanelBottom: [16, {}, { state: true }], hasPanelTop: [16, {}, { state: true }], hasSheets: [16, {}, { state: true }], panelIsResizing: [16, {}, { state: true }], contentBehind: [7, {}, { reflect: true, type: Boolean }] };
|
|
61
|
+
this.properties = { hasAlerts: [16, {}, { state: true }], hasDialogs: [16, {}, { state: true }], hasFooter: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }], hasActionBarPositionPanel: [16, {}, { state: true }], hasOnlyPanelBottom: [16, {}, { state: true }], hasPanelBottom: [16, {}, { state: true }], hasPanelTop: [16, {}, { state: true }], hasResizablePanelBottom: [16, {}, { state: true }], hasResizablePanelTop: [16, {}, { state: true }], hasSheets: [16, {}, { state: true }], panelIsResizing: [16, {}, { state: true }], contentBehind: [7, {}, { reflect: true, type: Boolean }] };
|
|
47
62
|
}
|
|
48
63
|
static {
|
|
49
64
|
this.styles = styles;
|
|
@@ -53,6 +68,20 @@ class Shell extends LitElement {
|
|
|
53
68
|
this.hasOnlyPanelBottom = !this.hasPanelTop && this.hasPanelBottom;
|
|
54
69
|
}
|
|
55
70
|
}
|
|
71
|
+
handleCalciteInternalShellPanelResizableChange(event) {
|
|
72
|
+
const panel = event.composedPath().find((el) => el?.matches?.("calcite-shell-panel"));
|
|
73
|
+
if (panel?.slot && panelSlots.includes(panel.slot)) {
|
|
74
|
+
this.updateResizableSlotState(panel.slot);
|
|
75
|
+
}
|
|
76
|
+
event.stopPropagation();
|
|
77
|
+
}
|
|
78
|
+
handleCalciteInternalShellPanelActionBarPositionChange(event) {
|
|
79
|
+
const panel = event.composedPath().find((el) => el?.matches?.("calcite-shell-panel"));
|
|
80
|
+
if (panel?.slot && panelSlots.includes(panel.slot)) {
|
|
81
|
+
this.updateResizableSlotState(panel.slot);
|
|
82
|
+
}
|
|
83
|
+
event.stopPropagation();
|
|
84
|
+
}
|
|
56
85
|
handleCalciteInternalShellPanelResizeStart(event) {
|
|
57
86
|
this.panelIsResizing = true;
|
|
58
87
|
event.stopPropagation();
|
|
@@ -80,30 +109,38 @@ class Shell extends LitElement {
|
|
|
80
109
|
});
|
|
81
110
|
}
|
|
82
111
|
handlePanelTopChange(event) {
|
|
112
|
+
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
83
113
|
this.hasPanelTop = slotChangeHasAssignedElement(event);
|
|
84
|
-
|
|
114
|
+
panelElements.forEach((el) => {
|
|
85
115
|
el.layout = "horizontal";
|
|
86
116
|
el.position = "start";
|
|
87
117
|
});
|
|
118
|
+
this.updateResizableSlotState("panel-top", panelElements);
|
|
88
119
|
}
|
|
89
120
|
handlePanelBottomChange(event) {
|
|
121
|
+
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
90
122
|
this.hasPanelBottom = slotChangeHasAssignedElement(event);
|
|
91
|
-
|
|
123
|
+
panelElements.forEach((el) => {
|
|
92
124
|
el.layout = "horizontal";
|
|
93
125
|
el.position = "end";
|
|
94
126
|
});
|
|
127
|
+
this.updateResizableSlotState("panel-bottom", panelElements);
|
|
95
128
|
}
|
|
96
129
|
handlePanelStartChange(event) {
|
|
97
|
-
slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"))
|
|
130
|
+
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
131
|
+
panelElements.forEach((el) => {
|
|
98
132
|
el.layout = "vertical";
|
|
99
133
|
el.position = "start";
|
|
100
134
|
});
|
|
135
|
+
this.updateResizableSlotState("panel-start", panelElements);
|
|
101
136
|
}
|
|
102
137
|
handlePanelEndChange(event) {
|
|
103
|
-
slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"))
|
|
138
|
+
const panelElements = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-shell-panel"));
|
|
139
|
+
panelElements.forEach((el) => {
|
|
104
140
|
el.layout = "vertical";
|
|
105
141
|
el.position = "end";
|
|
106
142
|
});
|
|
143
|
+
this.updateResizableSlotState("panel-end", panelElements);
|
|
107
144
|
}
|
|
108
145
|
handleDialogsSlotChange(event) {
|
|
109
146
|
this.hasDialogs = !!slotChangeHasAssignedElement(event);
|
|
@@ -111,6 +148,21 @@ class Shell extends LitElement {
|
|
|
111
148
|
el.embedded = true;
|
|
112
149
|
});
|
|
113
150
|
}
|
|
151
|
+
updateResizableSlotState(slot, panelElements = this.panelSlotState[slot].elements) {
|
|
152
|
+
this.panelSlotState[slot] = {
|
|
153
|
+
elements: panelElements,
|
|
154
|
+
resizable: panelElements.some((panel) => panel.resizable)
|
|
155
|
+
};
|
|
156
|
+
this.syncResizableState();
|
|
157
|
+
this.syncActionBarPositionPanelState();
|
|
158
|
+
}
|
|
159
|
+
syncActionBarPositionPanelState() {
|
|
160
|
+
this.hasActionBarPositionPanel = panelSlots.some((slot) => this.panelSlotState[slot].elements.some((panel) => !!panel.actionBarPosition));
|
|
161
|
+
}
|
|
162
|
+
syncResizableState() {
|
|
163
|
+
this.hasResizablePanelBottom = this.panelSlotState["panel-bottom"].resizable;
|
|
164
|
+
this.hasResizablePanelTop = this.panelSlotState["panel-top"].resizable;
|
|
165
|
+
}
|
|
114
166
|
renderHeader() {
|
|
115
167
|
return html`<div .hidden=${!this.hasHeader}>${keyed("header", html`<slot name=${SLOTS.header} @slotchange=${this.handleHeaderSlotChange}></slot>`)}</div>`;
|
|
116
168
|
}
|
|
@@ -148,7 +200,12 @@ class Shell extends LitElement {
|
|
|
148
200
|
return content;
|
|
149
201
|
}
|
|
150
202
|
renderMain() {
|
|
151
|
-
return html`<div class=${safeClassMap(
|
|
203
|
+
return html`<div class=${safeClassMap({
|
|
204
|
+
[CSS.main]: true,
|
|
205
|
+
[CSS.hasActionBarPositionPanel]: this.hasActionBarPositionPanel,
|
|
206
|
+
[CSS.hasResizablePanelBottom]: this.hasResizablePanelBottom,
|
|
207
|
+
[CSS.hasResizablePanelTop]: this.hasResizablePanelTop
|
|
208
|
+
})}><slot name=${SLOTS.panelStart} @slotchange=${this.handlePanelStartChange}></slot>${this.renderContent()}<slot name=${SLOTS.panelEnd} @slotchange=${this.handlePanelEndChange}></slot></div>`;
|
|
152
209
|
}
|
|
153
210
|
renderPositionedSlots() {
|
|
154
211
|
return html`<div class=${safeClassMap(CSS.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderDialogs()}${this.renderSheets()}</div>`;
|
|
@@ -20,6 +20,8 @@ import type { DisplayMode } from "./interfaces.js";
|
|
|
20
20
|
* @slot [action-bar] - A slot for adding a `calcite-action-bar` to the component.
|
|
21
21
|
*/
|
|
22
22
|
export abstract class ShellPanel extends LitElement {
|
|
23
|
+
/** Specifies the placement of the `calcite-action-bar` (when slotted). */
|
|
24
|
+
accessor actionBarPosition: Position | undefined;
|
|
23
25
|
/**
|
|
24
26
|
* When `true`, hides the component's content area.
|
|
25
27
|
*
|
|
@@ -7,6 +7,7 @@ import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
|
7
7
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
8
8
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
9
9
|
import { g as getStylePixelValue, a as slotChangeGetAssignedElements, s as slotChangeHasAssignedElement } from "../../chunks/dom.js";
|
|
10
|
+
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
11
|
import { g as getDimensionClass } from "../../chunks/dynamicClasses.js";
|
|
11
12
|
import { a as ariaValueFromSize } from "../../chunks/aria.js";
|
|
12
13
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -16,6 +17,7 @@ const CSS = {
|
|
|
16
17
|
actionBarContainer: "action-bar-container",
|
|
17
18
|
contentContainer: "content-container",
|
|
18
19
|
content: "content",
|
|
20
|
+
contentActionBarExpanded: "content--action-bar-expanded",
|
|
19
21
|
contentHeader: "content__header",
|
|
20
22
|
contentBody: "content__body",
|
|
21
23
|
contentOverlay: "content--overlay",
|
|
@@ -32,13 +34,19 @@ const ICONS = {
|
|
|
32
34
|
dragVertical: "drag-resize-vertical",
|
|
33
35
|
dragHorizontal: "drag-resize-horizontal"
|
|
34
36
|
};
|
|
35
|
-
const styles = css`:host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-z-index));--calcite-shell-panel-max-height: unset;--calcite-internal-shell-panel-shadow-block-start: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-block-end: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-start: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl.content--overlay{--calcite-internal-shell-panel-shadow-inline-start: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index-header) + 1))}:host([layout=vertical][display-mode=float-all]) .content{flex:2}:host([layout=vertical]:not([display-mode=float-all])) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 300px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][display-mode=float-all]) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical]:not([display-mode=float-all])) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 420px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][display-mode=float-all]) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical]:not([display-mode=float-all])) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 680px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=vertical][display-mode=float-all]) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal]) .content{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 30vh)}:host([layout=horizontal]) .height-s{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 20vh)}:host([layout=horizontal]) .height-l{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 40vh)}:host([display-mode=float-all][height=s]),:host([display-mode=float-all][height-scale=s]) .content{min-block-size:var(--calcite-shell-panel-height, 20vh)}:host([display-mode=float-all][height=m]),:host([display-mode=float-all][height-scale=m]) .content{min-block-size:var(--calcite-shell-panel-height, 30vh)}:host([display-mode=float-all][height=l]),:host([display-mode=float-all][height-scale=l]) .content{min-block-size:var(--calcite-shell-panel-height, 40vh)}.container{pointer-events:none;box-sizing:border-box;display:flex;block-size:100%;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-shell-panel-text-color, var(--calcite-color-text-2))}.container *{box-sizing:border-box}.container.float-all{margin-block:var(--calcite-spacing-sm);margin-inline:var(--calcite-spacing-sm)}.float-all{max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) );box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));overflow:hidden}:host([layout=vertical][position=start]) .float-all{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-shell-panel-border-color, var(--calcite-color-border-3))}:host([layout=vertical][position=end]) .float-all{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .float-all{border-inline:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .container{block-size:auto;inline-size:100%;flex-direction:column}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-shell-panel-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-header);touch-action:none}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-text-1));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-color-foreground-3))}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-color-background))}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=start][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-end:var(--calcite-internal-shell-panel-resize-handle-offset);block-size:100%}:host([position=start][layout=vertical]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([position=start][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}:host([position=end][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-start:var(--calcite-internal-shell-panel-resize-handle-offset);block-size:100%}:host([position=end][layout=vertical]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([position=end][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}:host([position=start][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=start][layout=horizontal]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([position=start][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}:host([position=end][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=end][layout=horizontal]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([position=end][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}.action-bar-container{pointer-events:auto;box-sizing:border-box;display:flex;flex:1 1 auto}.content-container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:stretch;align-self:stretch}:host([layout=horizontal]) .action-bar-container,:host([layout=horizontal]) .content-container{flex-direction:column}.content{pointer-events:auto;position:relative;box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;padding:0;background-color:var(--calcite-shell-panel-background-color, var(--calcite-color-background));transition:max-block-size var(--calcite-animation-timing),max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]:not([display-mode=float-all])) .content{inline-size:var(--calcite-internal-shell-panel-width);max-inline-size:var(--calcite-internal-shell-panel-max-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=vertical][display-mode=float-all]) .content{inline-size:var(--calcite-internal-shell-panel-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=horizontal]) .content{block-size:var(--calcite-internal-shell-panel-height);max-block-size:var(--calcite-internal-shell-panel-max-height);min-block-size:var(--calcite-internal-shell-panel-min-height)}:host([resizable][layout=vertical][position=start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=vertical][position=end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm))}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-start)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-end)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-start)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-end)}.float--content{margin-block-end:auto;block-size:auto;overflow:hidden;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));margin-inline:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm);max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) )}.float--content ::slotted(calcite-panel),.float--content ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .float--content{margin-block:var(--calcite-spacing-sm)}:host([position=start]) .float--content ::slotted(calcite-panel),:host([position=start]) .float--content ::slotted(calcite-flow),:host([position=end]) .float--content ::slotted(calcite-panel),:host([position=end]) .float--content ::slotted(calcite-flow){border-style:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([position=start]:not([slot=panel-end])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-flow),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-panel),:host([position=end][slot=panel-start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end][slot=panel-start]) .content ::slotted(calcite-flow),:host([position=end][slot=panel-start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([resizable][layout=vertical]) .content ::slotted(calcite-flow),:host([resizable][layout=vertical]) .content ::slotted(calcite-panel){border-inline-start:none;border-inline-end:none}:host([resizable][layout=horizontal]) .content ::slotted(calcite-flow),:host([resizable][layout=horizontal]) .content ::slotted(calcite-panel){border-block-start:none;border-block-end:none}:host([position=end]:not([slot=panel-start])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-flow),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-panel),:host([position=start][slot=panel-end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start][slot=panel-end]) .content ::slotted(calcite-flow),:host([position=start][slot=panel-end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([display-mode=dock]) .resize-handle-bar,:host([display-mode=float-all]) .resize-handle-bar,:host([display-mode=overlay]) .resize-handle-bar{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
37
|
+
const styles = css`:host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-z-index));--calcite-shell-panel-max-height: unset;--calcite-internal-shell-panel-shadow-block-start: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-block-end: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-start: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-border: var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3));--calcite-internal-shell-panel-resize-handle-thickness: var(--calcite-size-fixed-xxl);--calcite-internal-shell-panel-resize-handle-bar-thickness: var(--calcite-size-4xs);--calcite-internal-shell-panel-resize-handle-side-thickness: calc( var(--calcite-internal-shell-panel-resize-handle-thickness) - var( --calcite-internal-shell-panel-resize-handle-bar-thickness ) ) / 2}.calcite--rtl.content--overlay{--calcite-internal-shell-panel-shadow-inline-start: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index-header) + 1))}:host([layout=vertical][display-mode=float-all]) .content{flex:2}:host([layout=vertical]:not([display-mode=float-all])) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 300px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][display-mode=float-all]) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical]:not([display-mode=float-all])) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 420px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][display-mode=float-all]) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical]:not([display-mode=float-all])) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 680px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=vertical][display-mode=float-all]) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal]) .content{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 30vh)}:host([layout=horizontal]) .height-s{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 20vh)}:host([layout=horizontal]) .height-l{--calcite-internal-shell-panel-height: var(--calcite-shell-panel-height);--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 40vh)}:host([display-mode=float-all][height=s]),:host([display-mode=float-all][height-scale=s]) .content{min-block-size:var(--calcite-shell-panel-height, 20vh)}:host([display-mode=float-all][height=m]),:host([display-mode=float-all][height-scale=m]) .content{min-block-size:var(--calcite-shell-panel-height, 30vh)}:host([display-mode=float-all][height=l]),:host([display-mode=float-all][height-scale=l]) .content{min-block-size:var(--calcite-shell-panel-height, 40vh)}.container{pointer-events:none;box-sizing:border-box;display:flex;block-size:100%;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-shell-panel-text-color, var(--calcite-color-text-2))}.container *{box-sizing:border-box}.container.float-all{margin-block:var(--calcite-spacing-sm);margin-inline:var(--calcite-spacing-sm)}:host([action-bar-position]) .container{flex-direction:var(--calcite-internal-shell-panel-container-flex-direction);padding-inline-start:var(--calcite-internal-shell-panel-container-padding-inline-start);padding-inline-end:var(--calcite-internal-shell-panel-container-padding-inline-end);padding-block-start:var(--calcite-internal-shell-panel-container-padding-block-start);padding-block-end:var(--calcite-internal-shell-panel-container-padding-block-end)}.float-all{max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) );box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));overflow:hidden}:host([layout=vertical][position=start]) .float-all{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-shell-panel-border-color, var(--calcite-color-border-3))}:host([layout=vertical][position=end]) .float-all{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .float-all{border-inline:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-shell-panel-border-color, var(--calcite-color-border-3)))}:host([layout=horizontal]) .container{block-size:auto;inline-size:100%;flex-direction:column}:host([layout=horizontal]):host([action-bar-position]) .container{flex-direction:var(--calcite-internal-shell-panel-container-flex-direction, column)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-shell-panel-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );inset-inline-start:var(--calcite-internal-shell-panel-resize-handle-inset-inline-start);inset-inline-end:var(--calcite-internal-shell-panel-resize-handle-inset-inline-end);inset-block-start:var(--calcite-internal-shell-panel-resize-handle-inset-block-start);inset-block-end:var(--calcite-internal-shell-panel-resize-handle-inset-block-end);z-index:var(--calcite-z-index-header);touch-action:none}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-text-1));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-color-foreground-3))}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-color-background))}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=start][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);block-size:100%;inset-inline-end:var(--calcite-internal-shell-panel-resize-handle-inset-inline-end, var(--calcite-internal-shell-panel-resize-handle-offset))}:host([position=start][layout=vertical]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:var(--calcite-internal-shell-panel-border)}:host([position=start][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}:host([position=start][layout=vertical]):host([action-bar-position]) .resize-handle{inline-size:var(--calcite-internal-shell-panel-resize-handle-inline-size, var(--calcite-size-fixed-sm-plus));block-size:var(--calcite-internal-shell-panel-resize-handle-block-size, 100%)}:host([position=start][layout=vertical]):host([action-bar-position]) .resize-handle-bar{border-inline-start:var(--calcite-internal-shell-panel-resize-handle-bar-border-inline-start, var(--calcite-internal-shell-panel-border))}:host([position=start][layout=vertical]):host([action-bar-position=top]){--calcite-internal-shell-panel-resize-handle-inset-block-start: calc( var(--calcite-internal-shell-panel-action-bar-height) * -1 )}:host([position=start][layout=vertical]):host([action-bar-position=top]) .resize-handle{block-size:calc(100% + var(--calcite-internal-shell-panel-action-bar-height))}:host([position=start][layout=vertical]):host([action-bar-position=bottom]) .resize-handle{block-size:calc(100% + var(--calcite-internal-shell-panel-action-bar-height))}:host([position=end][layout=vertical]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);inset-inline-start:var(--calcite-internal-shell-panel-resize-handle-offset);block-size:100%}:host([position=end][layout=vertical]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:var(--calcite-internal-shell-panel-border)}:host([position=end][layout=vertical]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}:host([position=end][layout=vertical]):host([action-bar-position]) .resize-handle{inline-size:var(--calcite-internal-shell-panel-resize-handle-inline-size, var(--calcite-size-fixed-sm-plus));block-size:var(--calcite-internal-shell-panel-resize-handle-block-size, 100%);inset-inline-start:var(--calcite-internal-shell-panel-resize-handle-inset-inline-start, var(--calcite-internal-shell-panel-resize-handle-offset))}:host([position=end][layout=vertical]):host([action-bar-position=top]){--calcite-internal-shell-panel-resize-handle-inset-block-start: calc( var(--calcite-internal-shell-panel-action-bar-height) * -1 )}:host([position=end][layout=vertical]):host([action-bar-position=top]) .resize-handle{block-size:calc(100% + var(--calcite-internal-shell-panel-action-bar-height))}:host([position=end][layout=vertical]):host([action-bar-position=bottom]) .resize-handle{block-size:calc(100% + var(--calcite-internal-shell-panel-action-bar-height))}:host([position=start][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=start][layout=horizontal]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:var(--calcite-internal-shell-panel-border)}:host([position=start][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-end-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-end-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}:host([position=start][layout=horizontal]):host([action-bar-position]) .resize-handle{inline-size:var(--calcite-internal-shell-panel-resize-handle-inline-size, 100%);inset-block-end:var(--calcite-internal-shell-panel-resize-handle-inset-block-end, var(--calcite-internal-shell-panel-resize-handle-offset))}:host([position=end][layout=horizontal]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-shell-panel-resize-handle-offset)}:host([position=end][layout=horizontal]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:var(--calcite-internal-shell-panel-border)}:host([position=end][layout=horizontal]):host([display-mode^=float]) .resize-handle-bar{border-start-start-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));border-start-end-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round))}:host([position=end][layout=horizontal]):host([action-bar-position]) .resize-handle{inline-size:var(--calcite-internal-shell-panel-resize-handle-inline-size, 100%);block-size:var(--calcite-internal-shell-panel-resize-handle-block-size, var(--calcite-size-fixed-xxl));inset-block-start:var(--calcite-internal-shell-panel-resize-handle-inset-block-start, var(--calcite-internal-shell-panel-resize-handle-offset))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}.action-bar-container{pointer-events:auto;box-sizing:border-box;display:flex;flex:1 1 auto}.content-container{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;align-items:stretch;align-self:stretch}:host([layout=horizontal]) .action-bar-container,:host([layout=horizontal]) .content-container{flex-direction:column}.content{pointer-events:auto;position:relative;box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;padding:0;background-color:var(--calcite-shell-panel-background-color, var(--calcite-color-background));transition:max-block-size var(--calcite-animation-timing),max-inline-size var(--calcite-animation-timing)}:host([action-bar-position]) .content{padding-inline-start:var(--calcite-internal-shell-panel-content-padding-inline-start);padding-inline-end:var(--calcite-internal-shell-panel-content-padding-inline-end);padding-block-start:var(--calcite-internal-shell-panel-content-padding-block-start);padding-block-end:var(--calcite-internal-shell-panel-content-padding-block-end)}.content--action-bar-expanded{--calcite-internal-shell-panel-max-width: 100%}:host([layout=vertical]:not([display-mode=float-all])) .content{inline-size:var(--calcite-internal-shell-panel-width);max-inline-size:var(--calcite-internal-shell-panel-max-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=vertical][display-mode=float-all]) .content{inline-size:var(--calcite-internal-shell-panel-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=horizontal]) .content{block-size:var(--calcite-internal-shell-panel-height);max-block-size:var(--calcite-internal-shell-panel-max-height);min-block-size:var(--calcite-internal-shell-panel-min-height)}:host([resizable][layout=vertical][position=start]) .content{padding-inline-end:var(--calcite-internal-shell-panel-content-padding-inline-end, var(--calcite-size-fixed-sm-plus))}:host([resizable][layout=vertical][position=end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=vertical][position=end]):host([action-bar-position]) .content{padding-inline-start:var(--calcite-internal-shell-panel-content-padding-inline-start, var(--calcite-size-fixed-sm-plus))}:host([resizable][layout=horizontal][position=start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=start]):host([action-bar-position]) .content{padding-block-end:var(--calcite-internal-shell-panel-content-padding-block-end, var(--calcite-size-fixed-sm-plus))}:host([resizable][layout=horizontal][position=end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][layout=horizontal][position=end]):host([action-bar-position]) .content{padding-block-start:var(--calcite-internal-shell-panel-content-padding-block-start, var(--calcite-size-fixed-sm-plus))}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm))}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-start)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-end)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-start)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-end)}.float--content{margin-block-end:auto;block-size:auto;overflow:hidden;box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));margin-inline:var(--calcite-spacing-sm);margin-block-start:var(--calcite-spacing-sm);max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) )}.float--content ::slotted(calcite-panel),.float--content ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .float--content{margin-block:var(--calcite-spacing-sm)}:host([position=start]) .float--content ::slotted(calcite-panel),:host([position=start]) .float--content ::slotted(calcite-flow),:host([position=end]) .float--content ::slotted(calcite-panel),:host([position=end]) .float--content ::slotted(calcite-flow){border-style:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border:var(--calcite-border-width-sm) solid var(--calcite-shell-border-color, var(--calcite-color-border-3))}:host([action-bar-position]) .content ::slotted(calcite-flow),:host([action-bar-position]) .content ::slotted(calcite-panel:not([closed])){border-inline-start:var(--calcite-internal-shell-panel-slotted-panel-border-inline-start, var(--calcite-internal-shell-panel-border));border-inline-end:var(--calcite-internal-shell-panel-slotted-panel-border-inline-end, var(--calcite-internal-shell-panel-border));border-block-start:var(--calcite-internal-shell-panel-slotted-panel-border-block-start, var(--calcite-internal-shell-panel-border));border-block-end:var(--calcite-internal-shell-panel-slotted-panel-border-block-end, var(--calcite-internal-shell-panel-border))}:host([action-bar-position]) slot[name=action-bar]::slotted(calcite-action-bar){border-block-start:var(--calcite-internal-shell-panel-action-bar-border-block-start);border-block-end:var(--calcite-internal-shell-panel-action-bar-border-block-end)}:host([position=start]:not([slot=panel-end])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-flow),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-panel),:host([position=end][slot=panel-start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end][slot=panel-start]) .content ::slotted(calcite-flow),:host([position=end][slot=panel-start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=start]:not([slot=panel-end])):host([action-bar-position]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end][slot=panel-start]):host([action-bar-position]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline-start:var(--calcite-internal-shell-panel-action-bar-border-inline-start, none);border-inline-end:var(--calcite-internal-shell-panel-action-bar-border-inline-end);border-block-start:var(--calcite-internal-shell-panel-action-bar-border-block-start);border-block-end:var(--calcite-internal-shell-panel-action-bar-border-block-end)}:host([resizable][layout=vertical]) .content ::slotted(calcite-flow),:host([resizable][layout=vertical]) .content ::slotted(calcite-panel){border-inline-start:none;border-inline-end:none}:host([resizable][layout=vertical]):host([action-bar-position]) .content ::slotted(calcite-flow),:host([resizable][layout=vertical]):host([action-bar-position]) .content ::slotted(calcite-panel){border-inline-start:var(--calcite-internal-shell-panel-slotted-panel-border-inline-start, none);border-inline-end:var(--calcite-internal-shell-panel-slotted-panel-border-inline-end, none)}:host([resizable][layout=horizontal]) .content ::slotted(calcite-flow),:host([resizable][layout=horizontal]) .content ::slotted(calcite-panel){border-block-start:none;border-block-end:none}:host([resizable][layout=horizontal]):host([action-bar-position]) .content ::slotted(calcite-flow),:host([resizable][layout=horizontal]):host([action-bar-position]) .content ::slotted(calcite-panel){border-block-start:var(--calcite-internal-shell-panel-slotted-panel-border-block-start, none);border-block-end:var(--calcite-internal-shell-panel-slotted-panel-border-block-end, none)}:host([position=end]:not([slot=panel-start])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-flow),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-panel),:host([position=start][slot=panel-end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start][slot=panel-end]) .content ::slotted(calcite-flow),:host([position=start][slot=panel-end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([position=end]:not([slot=panel-start])):host([action-bar-position]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start][slot=panel-end]):host([action-bar-position]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline-start:var(--calcite-internal-shell-panel-action-bar-border-inline-start);border-inline-end:var(--calcite-internal-shell-panel-action-bar-border-inline-end, none)}:host([position=end]:not([slot=panel-start])):host([action-bar-position]) .content ::slotted(calcite-flow),:host([position=end]:not([slot=panel-start])):host([action-bar-position]) .content ::slotted(calcite-panel),:host([position=start][slot=panel-end]):host([action-bar-position]) .content ::slotted(calcite-flow),:host([position=start][slot=panel-end]):host([action-bar-position]) .content ::slotted(calcite-panel){border-inline-start:var(--calcite-internal-shell-panel-slotted-panel-border-inline-start);border-inline-end:var(--calcite-internal-shell-panel-slotted-panel-border-inline-end, none)}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([display-mode=dock]) .resize-handle-bar,:host([display-mode=float-all]) .resize-handle-bar,:host([display-mode=overlay]) .resize-handle-bar{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}:host([display-mode=dock]):host([action-bar-position]) .resize-handle-bar,:host([display-mode=float-all]):host([action-bar-position]) .resize-handle-bar,:host([display-mode=overlay]):host([action-bar-position]) .resize-handle-bar{border-inline-end:var(--calcite-internal-shell-panel-resize-handle-bar-border-inline-end, var(--calcite-border-width-sm) solid var(--calcite-color-border-3));border-block-start:var(--calcite-internal-shell-panel-resize-handle-bar-border-block-start, var(--calcite-border-width-sm) solid var(--calcite-color-border-3));border-block-end:var(--calcite-internal-shell-panel-resize-handle-bar-border-block-end, var(--calcite-border-width-sm) solid var(--calcite-color-border-3))}:host([action-bar-position]) ::slotted(calcite-action-bar){display:flex;flex:1 1 0}:host([action-bar-position=start][slot=panel-start]){--calcite-internal-shell-panel-action-bar-border-inline-start: 0;--calcite-internal-shell-panel-action-bar-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-start: 0;--calcite-internal-shell-panel-action-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-inline-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-resize-handle-inset-inline-end: calc( var(--calcite-internal-shell-panel-resize-handle-side-thickness) * -1 );--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=start][slot=panel-end]){--calcite-internal-shell-panel-action-bar-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-inline-end: 0;--calcite-internal-shell-panel-slotted-panel-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-resize-handle-inset-inline-start: calc( calc( var(--calcite-internal-shell-panel-action-bar-width) + var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-resize-handle-inset-inline-end: auto;--calcite-internal-shell-panel-content-padding-inline-start: 0;--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=start][slot=panel-end]):host([resizable]){--calcite-internal-shell-panel-container-padding-inline-start: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=end][slot=panel-start]){--calcite-internal-shell-panel-action-bar-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-inline-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-resize-handle-inset-inline-start: auto;--calcite-internal-shell-panel-resize-handle-inset-inline-end: calc( calc( var(--calcite-internal-shell-panel-action-bar-width) + var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-container-padding-inline-end: 0;--calcite-internal-shell-panel-content-padding-inline-end: 0;--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=end][slot=panel-start]):host([resizable]){--calcite-internal-shell-panel-container-padding-inline-end: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=end][slot=panel-end]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-action-bar-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-resize-handle-inset-inline-start: calc( var(--calcite-internal-shell-panel-resize-handle-side-thickness) * -1 );--calcite-internal-shell-panel-content-padding-inline-start: 0;--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=end][slot=panel-end]):host([resizable]){--calcite-internal-shell-panel-content-padding-inline-start: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=top][slot=panel-start]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-action-bar-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-container-flex-direction: column;--calcite-internal-shell-panel-resize-handle-inset-inline-end: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=top][slot=panel-start]):host([resizable]){--calcite-internal-shell-panel-container-padding-inline-end: var( --calcite-internal-shell-panel-resize-handle-bar-thickness );--calcite-internal-shell-panel-content-padding-inline-end: 0}:host([action-bar-position=top][slot=panel-end]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-action-bar-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-container-flex-direction: column;--calcite-internal-shell-panel-resize-handle-inset-inline-start: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=top][slot=panel-end]):host([resizable]){--calcite-internal-shell-panel-container-padding-inline-start: var( --calcite-internal-shell-panel-resize-handle-bar-thickness );--calcite-internal-shell-panel-content-padding-inline-start: 0}:host([action-bar-position=bottom][slot=panel-start]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-action-bar-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-container-flex-direction: column;--calcite-internal-shell-panel-resize-handle-inset-inline-end: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-content-padding-inline-end: 0;--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=bottom][slot=panel-start]):host([resizable]){--calcite-internal-shell-panel-container-padding-inline-end: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=bottom][slot=panel-end]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: 0;--calcite-internal-shell-panel-action-bar-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-container-flex-direction: column;--calcite-internal-shell-panel-resize-handle-inset-inline-start: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-resize-handle-inline-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=bottom][slot=panel-end]):host([resizable]){--calcite-internal-shell-panel-container-padding-inline-start: var( --calcite-internal-shell-panel-resize-handle-bar-thickness );--calcite-internal-shell-panel-content-padding-inline-start: 0}:host([action-bar-position=top][slot=panel-top]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-shell-panel-z-index: var(--calcite-z-index-sticky)}:host([action-bar-position=top][slot=panel-bottom]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-resize-handle-inset-block-start: calc( calc( var(--calcite-internal-shell-panel-action-bar-height) + var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 )}:host([action-bar-position=top][slot=panel-bottom]):host([resizable]){--calcite-internal-shell-panel-container-padding-block-start: var( --calcite-internal-shell-panel-resize-handle-bar-thickness );--calcite-internal-shell-panel-content-padding-block-start: 0}:host([action-bar-position=bottom][slot=panel-top]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-resize-handle-inset-block-end: calc( calc( var(--calcite-internal-shell-panel-action-bar-height) + var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-content-padding-block-end: 0;--calcite-shell-panel-z-index: var(--calcite-z-index-sticky)}:host([action-bar-position=bottom][slot=panel-top]):host([resizable]){--calcite-internal-shell-panel-container-padding-block-end: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=bottom][slot=panel-bottom]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-start: var(--calcite-internal-shell-panel-border)}:host([action-bar-position=start][slot=panel-top]){--calcite-internal-shell-panel-action-bar-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-resize-handle-inset-inline-start: calc( var(--calcite-internal-shell-panel-action-bar-width) * -1 );--calcite-internal-shell-panel-resize-handle-inset-inline-end: 0;--calcite-internal-shell-panel-resize-handle-inset-block-end: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-container-flex-direction: row;--calcite-internal-shell-panel-content-padding-block-end: 0;--calcite-internal-shell-panel-resize-handle-inline-size: auto;--calcite-shell-panel-z-index: var(--calcite-z-index-sticky)}:host([action-bar-position=start][slot=panel-top]):host([resizable]){--calcite-internal-shell-panel-container-padding-block-end: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=end][slot=panel-top]){--calcite-internal-shell-panel-action-bar-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-slotted-panel-border-block-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-container-flex-direction: row;--calcite-internal-shell-panel-resize-handle-inset-inline-start: 0;--calcite-internal-shell-panel-resize-handle-inset-inline-end: calc( var(--calcite-internal-shell-panel-action-bar-width) * -1 );--calcite-internal-shell-panel-resize-handle-inset-block-end: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-content-padding-block-end: 0;--calcite-internal-shell-panel-resize-handle-inline-size: auto;--calcite-shell-panel-z-index: var(--calcite-z-index-sticky)}:host([action-bar-position=end][slot=panel-top]):host([resizable]){--calcite-internal-shell-panel-container-padding-block-end: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=start][slot=panel-bottom]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-action-bar-border-inline-end: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-container-flex-direction: row;--calcite-internal-shell-panel-resize-handle-inset-inline-start: calc( var(--calcite-internal-shell-panel-action-bar-width) * -1 );--calcite-internal-shell-panel-resize-handle-inset-inline-end: 0;--calcite-internal-shell-panel-resize-handle-inset-block-start: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-resize-handle-inline-size: auto;--calcite-internal-shell-panel-resize-handle-block-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=start][slot=panel-bottom]):host([resizable]){--calcite-internal-shell-panel-content-padding-block-start: 0;--calcite-internal-shell-panel-container-padding-block-start: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([action-bar-position=end][slot=panel-bottom]){--calcite-internal-shell-panel-resize-handle-bar-border-inline-end: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-start: 0;--calcite-internal-shell-panel-resize-handle-bar-border-block-end: 0;--calcite-internal-shell-panel-action-bar-border-inline-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-action-bar-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-slotted-panel-border-block-start: var(--calcite-internal-shell-panel-border);--calcite-internal-shell-panel-container-flex-direction: row;--calcite-internal-shell-panel-resize-handle-inset-inline-start: 0;--calcite-internal-shell-panel-resize-handle-inset-inline-end: calc( var(--calcite-internal-shell-panel-action-bar-width) * -1 );--calcite-internal-shell-panel-resize-handle-inset-block-start: calc( calc( var(--calcite-internal-shell-panel-resize-handle-bar-thickness) + var(--calcite-internal-shell-panel-resize-handle-side-thickness) ) * -1 );--calcite-internal-shell-panel-resize-handle-inline-size: auto;--calcite-internal-shell-panel-resize-handle-block-size: var(--calcite-size-fixed-xxl)}:host([action-bar-position=end][slot=panel-bottom]):host([resizable]){--calcite-internal-shell-panel-content-padding-block-start: 0;--calcite-internal-shell-panel-container-padding-block-start: var( --calcite-internal-shell-panel-resize-handle-bar-thickness )}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
36
38
|
class ShellPanel extends LitElement {
|
|
37
39
|
constructor() {
|
|
38
|
-
super(
|
|
40
|
+
super();
|
|
39
41
|
this.direction = useDirection();
|
|
40
42
|
this.resizeHandleRef = createRef();
|
|
41
|
-
this.
|
|
43
|
+
this.actionBarContainerResizeObserver = createObserver("resize", () => this.updateActionBarSize());
|
|
44
|
+
this.handleActionBarExpand = () => {
|
|
45
|
+
this.isActionBarExpanded = true;
|
|
46
|
+
};
|
|
47
|
+
this.handleActionBarCollapse = () => {
|
|
48
|
+
this.isActionBarExpanded = false;
|
|
49
|
+
};
|
|
42
50
|
this.contentRef = createRef();
|
|
43
51
|
this.messages = useT9n();
|
|
44
52
|
this.sizeOverride = useSizeOverride({
|
|
@@ -59,6 +67,7 @@ class ShellPanel extends LitElement {
|
|
|
59
67
|
maxInlineSize: null,
|
|
60
68
|
maxBlockSize: null
|
|
61
69
|
};
|
|
70
|
+
this.isActionBarExpanded = false;
|
|
62
71
|
this.hasHeader = false;
|
|
63
72
|
this.collapsed = false;
|
|
64
73
|
this.displayMode = "dock";
|
|
@@ -66,13 +75,17 @@ class ShellPanel extends LitElement {
|
|
|
66
75
|
this.position = "start";
|
|
67
76
|
this.resizable = false;
|
|
68
77
|
this.widthScale = "m";
|
|
78
|
+
this.calciteInternalShellPanelActionBarPositionChange = createEvent({ cancelable: false });
|
|
79
|
+
this.calciteInternalShellPanelResizableChange = createEvent({ cancelable: false });
|
|
69
80
|
this.calciteInternalShellPanelResizeEnd = createEvent({ cancelable: false });
|
|
70
81
|
this.calciteInternalShellPanelResizeStart = createEvent({ cancelable: false });
|
|
71
82
|
this.calciteShellPanelCollapse = createEvent({ cancelable: false });
|
|
72
83
|
this.calciteShellPanelExpand = createEvent({ cancelable: false });
|
|
84
|
+
this.listen("calciteActionBarExpand", this.handleActionBarExpandEvent);
|
|
85
|
+
this.listen("calciteActionBarCollapse", this.handleActionBarCollapseEvent);
|
|
73
86
|
}
|
|
74
87
|
static {
|
|
75
|
-
this.properties = { resizeValues: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }], collapsed: [7, {}, { reflect: true, type: Boolean }], displayMode: [3, {}, { reflect: true }], heightScale: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], position: [3, {}, { reflect: true }], resizable: [7, {}, { reflect: true, type: Boolean }], height: [3, {}, { reflect: true }], widthScale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
|
|
88
|
+
this.properties = { resizeValues: [16, {}, { state: true }], isActionBarExpanded: [16, {}, { state: true }], hasHeader: [16, {}, { state: true }], actionBarPosition: [3, {}, { reflect: true }], collapsed: [7, {}, { reflect: true, type: Boolean }], displayMode: [3, {}, { reflect: true }], heightScale: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], position: [3, {}, { reflect: true }], resizable: [7, {}, { reflect: true, type: Boolean }], height: [3, {}, { reflect: true }], widthScale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }] };
|
|
76
89
|
}
|
|
77
90
|
static {
|
|
78
91
|
this.styles = [styles, styles$1];
|
|
@@ -84,12 +97,13 @@ class ShellPanel extends LitElement {
|
|
|
84
97
|
super.connectedCallback();
|
|
85
98
|
if (this.hasUpdated) {
|
|
86
99
|
this.refreshResize();
|
|
100
|
+
this.syncActionBarExpandedState();
|
|
87
101
|
}
|
|
88
102
|
}
|
|
89
103
|
willUpdate(changes) {
|
|
90
104
|
let shouldRefreshResize = false;
|
|
91
105
|
if (changes.has("layout") && (this.hasUpdated || this.layout !== "vertical")) {
|
|
92
|
-
this.
|
|
106
|
+
this.setActionBarLayout(this.actionBar);
|
|
93
107
|
this.updateSizeInternal({ inline: null, block: null });
|
|
94
108
|
shouldRefreshResize = true;
|
|
95
109
|
}
|
|
@@ -105,6 +119,12 @@ class ShellPanel extends LitElement {
|
|
|
105
119
|
if (shouldRefreshResize) {
|
|
106
120
|
this.refreshResize();
|
|
107
121
|
}
|
|
122
|
+
if (changes.has("actionBarPosition") && this.hasUpdated) {
|
|
123
|
+
this.setActionBarLayout(this.actionBar);
|
|
124
|
+
}
|
|
125
|
+
if (changes.has("resizable") && this.hasUpdated) {
|
|
126
|
+
this.calciteInternalShellPanelResizableChange.emit();
|
|
127
|
+
}
|
|
108
128
|
if (changes.has("collapsed") && this.hasUpdated) {
|
|
109
129
|
if (this.collapsed) {
|
|
110
130
|
this.calciteShellPanelCollapse.emit();
|
|
@@ -113,9 +133,17 @@ class ShellPanel extends LitElement {
|
|
|
113
133
|
}
|
|
114
134
|
}
|
|
115
135
|
}
|
|
136
|
+
updated(changes) {
|
|
137
|
+
if (changes.has("actionBarPosition")) {
|
|
138
|
+
this.calciteInternalShellPanelActionBarPositionChange.emit();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
116
141
|
disconnectedCallback() {
|
|
117
142
|
super.disconnectedCallback();
|
|
118
143
|
this.cleanUpInteractions();
|
|
144
|
+
if (this.actionBarContainerEl) {
|
|
145
|
+
this.actionBarContainerResizeObserver?.unobserve(this.actionBarContainerEl);
|
|
146
|
+
}
|
|
119
147
|
}
|
|
120
148
|
updateSizeInternal(size) {
|
|
121
149
|
if (!this.contentRef.value) {
|
|
@@ -225,13 +253,53 @@ class ShellPanel extends LitElement {
|
|
|
225
253
|
}
|
|
226
254
|
});
|
|
227
255
|
}
|
|
228
|
-
|
|
229
|
-
|
|
256
|
+
setActionBarContainerEl(el) {
|
|
257
|
+
if (this.actionBarContainerEl) {
|
|
258
|
+
this.actionBarContainerResizeObserver?.unobserve(this.actionBarContainerEl);
|
|
259
|
+
}
|
|
260
|
+
this.actionBarContainerEl = el;
|
|
261
|
+
if (el) {
|
|
262
|
+
this.actionBarContainerResizeObserver?.observe(el);
|
|
263
|
+
this.updateActionBarSize();
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
updateActionBarSize() {
|
|
267
|
+
if (!this.actionBarContainerEl) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
const rect = this.actionBarContainerEl.getBoundingClientRect();
|
|
271
|
+
const width = rect.width;
|
|
272
|
+
const height = rect.height;
|
|
273
|
+
this.el.style.setProperty("--calcite-internal-shell-panel-action-bar-width", `${width}px`);
|
|
274
|
+
this.el.style.setProperty("--calcite-internal-shell-panel-action-bar-height", `${height}px`);
|
|
275
|
+
}
|
|
276
|
+
setActionBarLayout(actionBar) {
|
|
277
|
+
if (!actionBar) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
if (this.actionBarPosition) {
|
|
281
|
+
actionBar.layout = this.actionBarPosition === "top" || this.actionBarPosition === "bottom" ? "horizontal" : "vertical";
|
|
282
|
+
return;
|
|
283
|
+
}
|
|
284
|
+
actionBar.layout = this.layout;
|
|
230
285
|
}
|
|
231
286
|
handleActionBarSlotChange(event) {
|
|
232
|
-
const
|
|
233
|
-
this.
|
|
234
|
-
this.
|
|
287
|
+
const actionBar = slotChangeGetAssignedElements(event).find((el) => el.matches("calcite-action-bar"));
|
|
288
|
+
this.actionBar = actionBar;
|
|
289
|
+
this.setActionBarLayout(actionBar);
|
|
290
|
+
this.syncActionBarExpandedState(actionBar);
|
|
291
|
+
}
|
|
292
|
+
handleActionBarExpandEvent(event) {
|
|
293
|
+
if (event.target !== this.actionBar) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
this.handleActionBarExpand();
|
|
297
|
+
}
|
|
298
|
+
handleActionBarCollapseEvent(event) {
|
|
299
|
+
if (event.target !== this.actionBar) {
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
this.handleActionBarCollapse();
|
|
235
303
|
}
|
|
236
304
|
handleHeaderSlotChange(event) {
|
|
237
305
|
this.hasHeader = slotChangeHasAssignedElement(event);
|
|
@@ -240,6 +308,9 @@ class ShellPanel extends LitElement {
|
|
|
240
308
|
const { layout } = this;
|
|
241
309
|
return layout === "horizontal" ? ICONS.dragVertical : ICONS.dragHorizontal;
|
|
242
310
|
}
|
|
311
|
+
syncActionBarExpandedState(actionBar = this.actionBar) {
|
|
312
|
+
this.isActionBarExpanded = !!actionBar?.expanded;
|
|
313
|
+
}
|
|
243
314
|
renderHeader() {
|
|
244
315
|
return keyed("header", html`<div class=${safeClassMap(CSS.contentHeader)} .hidden=${!this.hasHeader}><slot name=${SLOTS.header} @slotchange=${this.handleHeaderSlotChange}></slot></div>`);
|
|
245
316
|
}
|
|
@@ -259,6 +330,7 @@ class ShellPanel extends LitElement {
|
|
|
259
330
|
const contentNode = html`<div class=${safeClassMap(CSS.contentContainer)}>${keyed("content", html`<div class=${safeClassMap({
|
|
260
331
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
261
332
|
[CSS.content]: true,
|
|
333
|
+
[CSS.contentActionBarExpanded]: this.isActionBarExpanded,
|
|
262
334
|
[CSS.contentOverlay]: displayMode === "overlay",
|
|
263
335
|
[CSS.floatContent]: displayMode === "float-content" || displayMode === "float",
|
|
264
336
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
@@ -266,12 +338,16 @@ class ShellPanel extends LitElement {
|
|
|
266
338
|
[getDimensionClass("width", this.width, this.widthScale)]: !!(this.width || this.widthScale),
|
|
267
339
|
[getDimensionClass("height", this.height, this.heightScale)]: !!(this.height || this.heightScale)
|
|
268
340
|
})} .hidden=${collapsed} ${ref(this.contentRef)}>${this.renderHeader()}<div class=${safeClassMap(CSS.contentBody)}><slot></slot></div>${separatorNode}</div>`)}</div>`;
|
|
269
|
-
const actionBarNode = keyed("action-bar-container", html`<div class=${safeClassMap(CSS.actionBarContainer)}><slot name=${SLOTS.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`);
|
|
341
|
+
const actionBarNode = keyed("action-bar-container", html`<div class=${safeClassMap(CSS.actionBarContainer)} ${ref(this.setActionBarContainerEl)}><slot name=${SLOTS.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`);
|
|
342
|
+
const effectivePosition = this.actionBarPosition || position;
|
|
270
343
|
const mainNodes = [actionBarNode, contentNode];
|
|
271
|
-
if (
|
|
344
|
+
if (effectivePosition === "end" || effectivePosition === "bottom") {
|
|
272
345
|
mainNodes.reverse();
|
|
273
346
|
}
|
|
274
|
-
return html`<div class=${safeClassMap({
|
|
347
|
+
return html`<div class=${safeClassMap({
|
|
348
|
+
[CSS.container]: true,
|
|
349
|
+
[CSS.floatAll]: displayMode === "float-all"
|
|
350
|
+
})}>${mainNodes}</div>`;
|
|
275
351
|
}
|
|
276
352
|
}
|
|
277
353
|
customElement("calcite-shell-panel", ShellPanel);
|