@esri/calcite-components 5.2.0-next.26 → 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/{CMHLAP37.js → 2E2HNNH2.js} +1 -1
- package/dist/cdn/{N2DITPQJ.js → 2IKGML53.js} +1 -1
- package/dist/cdn/{CK5B5R6U.js → 2RIRZGTD.js} +1 -1
- package/dist/cdn/{ABQXQQTD.js → 2RRYUBIT.js} +1 -1
- package/dist/cdn/{FT6QVSRZ.js → 3CSRXFJW.js} +1 -1
- package/dist/cdn/{KBTEJEHY.js → 3D3ZE3AV.js} +1 -1
- package/dist/cdn/{X5S3R7LB.js → 3PTSQGQ4.js} +1 -1
- package/dist/cdn/{LPBYUS4A.js → 3QEEGDL2.js} +1 -1
- package/dist/cdn/{PH2CD5UK.js → 3RUO37FL.js} +1 -1
- package/dist/cdn/{A6OOE4XC.js → 3UG4OBPY.js} +1 -1
- package/dist/cdn/{7ZODOUH3.js → 434V4M2M.js} +1 -1
- package/dist/cdn/{ZOIAK627.js → 45ZYKQE3.js} +1 -1
- package/dist/cdn/{EEALSBCV.js → 4DGU5WAM.js} +1 -1
- package/dist/cdn/{Q5MEWMLL.js → 4GNWDODR.js} +1 -1
- package/dist/cdn/{7Q4Q74RC.js → 4XHOV2IB.js} +1 -1
- package/dist/cdn/{BWZAQSEB.js → 52GLXO3F.js} +1 -1
- package/dist/cdn/{KYD4KF6K.js → 55JI2KM3.js} +1 -1
- package/dist/cdn/{DQHUXUAD.js → 577F4C5S.js} +1 -1
- package/dist/cdn/{YYUV535W.js → 5CIZJDH4.js} +1 -1
- package/dist/cdn/{N6ZB46CU.js → 5FIEB2GN.js} +1 -1
- package/dist/cdn/{OSVBIM3S.js → 5OHNKQWV.js} +1 -1
- package/dist/cdn/{X2JBN7DG.js → 5WQ2C6RW.js} +1 -1
- package/dist/cdn/{2O4EHBDX.js → 66VO5GUE.js} +1 -1
- package/dist/cdn/{XIDSUIX5.js → 6CNCRFM7.js} +1 -1
- package/dist/cdn/{52I6NOWN.js → 6JYNMBDK.js} +1 -1
- package/dist/cdn/{GESADUIF.js → 6KHLKOOJ.js} +1 -1
- package/dist/cdn/{SZNCGU3M.js → 6LJCNGXA.js} +1 -1
- package/dist/cdn/{W56YIY3T.js → 6SDKS5RF.js} +1 -1
- package/dist/cdn/{LS6VL42N.js → 6WOOJEYP.js} +1 -1
- package/dist/cdn/{I7L6O4HE.js → 734QWGWC.js} +1 -1
- package/dist/cdn/{6QMZKSSL.js → 74KDWRVX.js} +1 -1
- package/dist/cdn/{6HMQ5QLG.js → 7KC3OEWO.js} +1 -1
- package/dist/cdn/{QDE3TOJ6.js → 7SI4ZH3U.js} +1 -1
- package/dist/cdn/{24ZHYGZU.js → 7ZXODZ55.js} +1 -1
- package/dist/cdn/{MWAQRFEF.js → AI4XUN7T.js} +1 -1
- package/dist/cdn/{C3Z5W2SN.js → AVFPIIYD.js} +1 -1
- package/dist/cdn/{2S4PR2ZC.js → AWBOXGRI.js} +1 -1
- package/dist/cdn/{ID4ALXYF.js → B6HJCUNB.js} +1 -1
- package/dist/cdn/{TJBLZZM2.js → BANFJIOX.js} +1 -1
- package/dist/cdn/{DU7JQORB.js → BTQLWXE6.js} +1 -1
- package/dist/cdn/{LRLQUWO6.js → C4ATS7KD.js} +1 -1
- package/dist/cdn/{2R3GNHTZ.js → CLP2N6JK.js} +1 -1
- package/dist/cdn/{MI4R7D5D.js → CQ3LBQKG.js} +1 -1
- package/dist/cdn/{5NRNNDMO.js → CXAD4HFV.js} +1 -1
- package/dist/cdn/{EQ7HREV6.js → CXQWUUER.js} +1 -1
- package/dist/cdn/{KR4G2433.js → DC3ELSB6.js} +1 -1
- package/dist/cdn/{NCDWLTSG.js → DK4DNW4C.js} +1 -1
- package/dist/cdn/{DZCKESME.js → DLURVO4B.js} +1 -1
- package/dist/cdn/{H47PM2FM.js → DXC3UTIW.js} +1 -1
- package/dist/cdn/{QRJSNQRO.js → EL2JDNNT.js} +1 -1
- package/dist/cdn/{LJ24DZVN.js → ELXIITC7.js} +1 -1
- package/dist/cdn/{HONBZXPD.js → EOXXTARN.js} +1 -1
- package/dist/cdn/{SUA2HNWV.js → F7H7EWJF.js} +1 -1
- package/dist/cdn/{P3DBLZME.js → FBJCSJ77.js} +1 -1
- package/dist/cdn/{LSKH56ZD.js → FC6ETGWK.js} +1 -1
- package/dist/cdn/{EBUAAKXX.js → FGTWFZXZ.js} +1 -1
- package/dist/cdn/{EK7R2WN3.js → FRDLYEDP.js} +1 -1
- package/dist/cdn/{OEG62PYV.js → FVD66FPI.js} +1 -1
- package/dist/cdn/{RMSLTN3G.js → G24N3DUG.js} +1 -1
- package/dist/cdn/{4L2S4LBN.js → G3O5THFM.js} +1 -1
- package/dist/cdn/{FMX66HBG.js → GGXZIBUZ.js} +1 -1
- package/dist/cdn/{AG5AD62U.js → GHZXKK7L.js} +1 -1
- package/dist/cdn/{7G4IUKWR.js → GKSTTARB.js} +1 -1
- package/dist/cdn/{4XF6GNEV.js → GNHIT7M5.js} +1 -1
- package/dist/cdn/{GHBPYFXC.js → GVJ2AKG3.js} +1 -1
- package/dist/cdn/{ZRT3YHOC.js → HVTZF67O.js} +1 -1
- package/dist/cdn/{XATLMRBL.js → HW3PMER6.js} +1 -1
- package/dist/cdn/{JYQVGSSE.js → IAY7IPXZ.js} +1 -1
- package/dist/cdn/{SXSDOGF5.js → ICRU3I3L.js} +1 -1
- package/dist/cdn/{UFMCAKSG.js → IH7OCMMJ.js} +1 -1
- package/dist/cdn/{IQEURB4M.js → IPSYJGZO.js} +1 -1
- package/dist/cdn/{EZ3W36HO.js → IPU2N4O2.js} +1 -1
- package/dist/cdn/{PCVVO2LU.js → IYOM6IMC.js} +1 -1
- package/dist/cdn/{ZGMOWWSN.js → J4NT5R6J.js} +1 -1
- package/dist/cdn/{G6CPHTU6.js → JABG3KYM.js} +1 -1
- package/dist/cdn/{6D5YOEHL.js → JHJAIYHD.js} +1 -1
- package/dist/cdn/{PXY4HUMH.js → JLMUK6ZP.js} +1 -1
- package/dist/cdn/{IQAYFWEU.js → JNCC7SAQ.js} +1 -1
- package/dist/cdn/{MSS5Z3QK.js → JP4VWDKC.js} +1 -1
- package/dist/cdn/{2B3OHLGE.js → KCSFRKSB.js} +1 -1
- package/dist/cdn/{GHVGLOC3.js → KL3FCHTH.js} +1 -1
- package/dist/cdn/{VS7H6NUI.js → KVKIW2QN.js} +1 -1
- package/dist/cdn/{VS42WYZU.js → LA5PMICI.js} +1 -1
- package/dist/cdn/{XG4M2J7K.js → LDVQPEDI.js} +1 -1
- package/dist/cdn/{2OV3ZC3U.js → LFLRRCQZ.js} +1 -1
- package/dist/cdn/{N5UTUVWB.js → LK2JLUPD.js} +1 -1
- package/dist/cdn/{2HWQWQFR.js → LMW77PIN.js} +1 -1
- package/dist/cdn/{SHN5U3TZ.js → LRFYLYII.js} +1 -1
- package/dist/cdn/{HSNEJ5K4.js → LU3E6DWW.js} +1 -1
- package/dist/cdn/{XO3OF7Y2.js → M27X4SWN.js} +1 -1
- package/dist/cdn/{OS52MRUG.js → M372HGT6.js} +1 -1
- package/dist/cdn/{VASPB7A6.js → M4U43OVR.js} +1 -1
- package/dist/cdn/{XRKV6FCN.js → MBPXL7PA.js} +1 -1
- package/dist/cdn/{3NLYHKPU.js → MNERHI5N.js} +1 -1
- package/dist/cdn/{UG7H27EI.js → N7DQVDQ3.js} +1 -1
- package/dist/cdn/{PJHDZ6P5.js → NRKOSQ4X.js} +1 -1
- package/dist/cdn/{U2GJTVTY.js → NVAFQRJI.js} +1 -1
- package/dist/cdn/{MWVLHQP3.js → NWAVCA2H.js} +1 -1
- package/dist/cdn/{XJ6UQSY5.js → OQ4I52NN.js} +1 -1
- package/dist/cdn/{ASRBL2ZE.js → OQMPVKYB.js} +1 -1
- package/dist/cdn/{U2PLI7AH.js → P3H6ZPMH.js} +1 -1
- package/dist/cdn/P5VTALCW.js +2 -0
- package/dist/cdn/{YFEQV3KJ.js → PCKN44RF.js} +1 -1
- package/dist/cdn/{X3N7F6XB.js → PDM7J3DD.js} +1 -1
- package/dist/cdn/{55IOBMXF.js → PFXJM5VP.js} +1 -1
- package/dist/cdn/{R3PX5IDV.js → PHZOZ7CR.js} +1 -1
- package/dist/cdn/{ZFI7OHSZ.js → PK4MNVDE.js} +1 -1
- package/dist/cdn/{OBAHIIXJ.js → PKNLVSPM.js} +1 -1
- package/dist/cdn/{HXTURWDO.js → PNQMNODP.js} +1 -1
- package/dist/cdn/{ORQRGJ6Q.js → PQFHZAOY.js} +1 -1
- package/dist/cdn/{WZHF6EZE.js → PU6NJXEA.js} +1 -1
- package/dist/cdn/{MZVLEDYU.js → QCAUQCDS.js} +1 -1
- package/dist/cdn/{P2QHPFRF.js → QHPG3LCJ.js} +1 -1
- package/dist/cdn/{DDGSI6WD.js → QLA727GA.js} +1 -1
- package/dist/cdn/{57PWHZRG.js → QPIBV5IK.js} +1 -1
- package/dist/cdn/{VX4UZ46Y.js → QUHRYME6.js} +1 -1
- package/dist/cdn/{UJI6NDVC.js → QVSW2CVK.js} +1 -1
- package/dist/cdn/{WTYEV5H5.js → QX2CMLKN.js} +1 -1
- package/dist/cdn/{EC3R4W45.js → RDL62V4B.js} +1 -1
- package/dist/cdn/{ATSY7NF7.js → RRCTCH7X.js} +1 -1
- package/dist/cdn/{HP7QTBBL.js → RRNFNLLC.js} +1 -1
- package/dist/cdn/{65OBBZ32.js → S4DL25BH.js} +1 -1
- package/dist/cdn/{KQOUAI7L.js → S6J5UBAP.js} +1 -1
- package/dist/cdn/{HL6Q42EQ.js → SE632YLP.js} +1 -1
- package/dist/cdn/{OBXIDXM7.js → SMRCLAPJ.js} +1 -1
- package/dist/cdn/{6WIQUPII.js → SWOVF2SN.js} +1 -1
- package/dist/cdn/{6NMFPEGT.js → T5ELXKJ3.js} +1 -1
- package/dist/cdn/{S3O5HU5G.js → T5ROHA6B.js} +1 -1
- package/dist/cdn/{WG23UJRX.js → TPCQSAI4.js} +1 -1
- package/dist/cdn/{H6YWM3TU.js → TS6AOLWQ.js} +1 -1
- package/dist/cdn/{CXFK53DG.js → UDEBAKSM.js} +1 -1
- package/dist/cdn/{XTR6Y33Q.js → UYZPKUHX.js} +1 -1
- package/dist/cdn/{W72IGX7Z.js → VOGVU5LD.js} +1 -1
- package/dist/cdn/{MTYNVQCO.js → X6T3MWZM.js} +1 -1
- package/dist/cdn/{PO6JL5MY.js → XMJIBCZR.js} +1 -1
- package/dist/cdn/{73QBHCTA.js → XOCT2IJ5.js} +1 -1
- package/dist/cdn/{NFDGKI2A.js → XS3XH72H.js} +1 -1
- package/dist/cdn/XVUOBV2T.js +2 -0
- package/dist/cdn/{HNH7QOK2.js → YE2IVWN6.js} +1 -1
- package/dist/cdn/{LIA5P72D.js → YKG6VH2S.js} +1 -1
- package/dist/cdn/{ABO725LZ.js → YO54Y5HP.js} +1 -1
- package/dist/cdn/{3MM6T5YC.js → YV6C2KEY.js} +1 -1
- package/dist/cdn/{644L4TLB.js → YZP2PPZE.js} +1 -1
- package/dist/cdn/{GBMTB7V5.js → ZFLU2PWW.js} +1 -1
- package/dist/cdn/{A5MOM6AK.js → ZLVZNGWF.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +4 -4
- 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 +90 -14
- 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/EMHQ7VAN.js +0 -2
- package/dist/cdn/ISFLBMKR.js +0 -2
package/dist/loader.js
CHANGED
|
@@ -83,7 +83,7 @@ const defineCustomElements = makeDefineCustomElements(runtime, {
|
|
|
83
83
|
"calcite-select": [() => import("./components/calcite-select/customElement.js"), "disabled,form,label,labelText,messageOverrides:,name,required,scale,selectedOption:,status,validationIcon,validationMessage,validity:,value,width;setFocus", 1],
|
|
84
84
|
"calcite-sheet": [() => import("./components/calcite-sheet/customElement.js"), "beforeClose:,displayMode,embedded,escapeDisabled,focusTrapDisabled,focusTrapOptions:,height,heightScale,label,messageOverrides:,messages:,open,opened,outsideCloseDisabled,position,resizable,topLayerDisabled,width,widthScale;setFocus,updateFocusTrapElements,updateSize"],
|
|
85
85
|
"calcite-shell": [() => import("./components/calcite-shell/customElement.js"), "contentBehind"],
|
|
86
|
-
"calcite-shell-panel": [() => import("./components/calcite-shell-panel/customElement.js"), "collapsed,displayMode,height,heightScale,layout,messageOverrides:,position,resizable,width,widthScale;updateSize"],
|
|
86
|
+
"calcite-shell-panel": [() => import("./components/calcite-shell-panel/customElement.js"), "actionBarPosition,collapsed,displayMode,height,heightScale,layout,messageOverrides:,position,resizable,width,widthScale;updateSize"],
|
|
87
87
|
"calcite-slider": [() => import("./components/calcite-slider/customElement.js"), "disabled,fillPlacement,form,groupSeparator,hasHistogram,histogram:,histogramStops:,labelFormatter:,labelHandles,labelText,labelTicks,max,maxLabel,maxValue,messageOverrides:,min,minLabel,minValue,mirrored,name,numberingSystem,pageStep,precise,required,scale,snap,status,step,ticks,validationIcon,validationMessage,validity:,value;setFocus", 1],
|
|
88
88
|
"calcite-sort-handle": [() => import("./components/calcite-sort-handle/customElement.js"), "addToItems:,disabled,flipPlacements:,label,messageOverrides:,messages:,moveToItems:,open,overlayPositioning,placement,scale,setPosition,setSize,sortDisabled,topLayerDisabled,widthScale;setFocus"],
|
|
89
89
|
"calcite-sortable-list": [() => import("./components/calcite-sortable-list/customElement.js"), "canPull:,canPut:,disabled,dragSelector,group,handleSelector,layout,loading"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -508,7 +508,7 @@ interface LuminaCalciteSheet extends Required<Pick<Sheet, "label">>, Partial<Pic
|
|
|
508
508
|
interface LuminaCalciteShell extends Partial<Pick<Shell, "contentBehind">>, h.JSX.HTMLAttributes<Shell> {
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
interface LuminaCalciteShellPanel extends Partial<Pick<ShellPanel, "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, h.JSX.HTMLAttributes<ShellPanel> {
|
|
511
|
+
interface LuminaCalciteShellPanel extends Partial<Pick<ShellPanel, "actionBarPosition" | "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, h.JSX.HTMLAttributes<ShellPanel> {
|
|
512
512
|
oncalciteShellPanelCollapse?: EventHandler<ShellPanel["calciteShellPanelCollapse"]>;
|
|
513
513
|
oncalciteShellPanelExpand?: EventHandler<ShellPanel["calciteShellPanelExpand"]>;
|
|
514
514
|
}
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -509,7 +509,7 @@ interface PreactCalciteSheet extends Required<Pick<Sheet, "label">>, Partial<Pic
|
|
|
509
509
|
interface PreactCalciteShell extends Partial<Pick<Shell, "contentBehind">>, HTMLAttributes<Shell> {
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
interface PreactCalciteShellPanel extends Partial<Pick<ShellPanel, "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, HTMLAttributes<ShellPanel> {
|
|
512
|
+
interface PreactCalciteShellPanel extends Partial<Pick<ShellPanel, "actionBarPosition" | "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, HTMLAttributes<ShellPanel> {
|
|
513
513
|
oncalciteShellPanelCollapse?: EventHandler<ShellPanel["calciteShellPanelCollapse"]>;
|
|
514
514
|
oncalciteShellPanelExpand?: EventHandler<ShellPanel["calciteShellPanelExpand"]>;
|
|
515
515
|
}
|
package/dist/types/react.d.ts
CHANGED
|
@@ -509,7 +509,7 @@ interface ReactCalciteSheet extends Required<Pick<Sheet, "label">>, Partial<Pick
|
|
|
509
509
|
interface ReactCalciteShell extends Partial<Pick<Shell, "contentBehind">>, HTMLProps<Shell> {
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
interface ReactCalciteShellPanel extends Partial<Pick<ShellPanel, "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, HTMLProps<ShellPanel> {
|
|
512
|
+
interface ReactCalciteShellPanel extends Partial<Pick<ShellPanel, "actionBarPosition" | "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, HTMLProps<ShellPanel> {
|
|
513
513
|
oncalciteShellPanelCollapse?: EventHandler<ShellPanel["calciteShellPanelCollapse"]>;
|
|
514
514
|
oncalciteShellPanelExpand?: EventHandler<ShellPanel["calciteShellPanelExpand"]>;
|
|
515
515
|
}
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -509,7 +509,7 @@ interface StencilCalciteSheet extends Required<Pick<Sheet, "label">>, Partial<Pi
|
|
|
509
509
|
interface StencilCalciteShell extends Partial<Pick<Shell, "contentBehind">>, StencilJsx.HTMLAttributes<Shell> {
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
interface StencilCalciteShellPanel extends Partial<Pick<ShellPanel, "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, StencilJsx.HTMLAttributes<ShellPanel> {
|
|
512
|
+
interface StencilCalciteShellPanel extends Partial<Pick<ShellPanel, "actionBarPosition" | "collapsed" | "displayMode" | "height" | "heightScale" | "layout" | "messageOverrides" | "position" | "resizable" | "width" | "widthScale">>, StencilJsx.HTMLAttributes<ShellPanel> {
|
|
513
513
|
onCalciteShellPanelCollapse?: EventHandler<ShellPanel["calciteShellPanelCollapse"]>;
|
|
514
514
|
onCalciteShellPanelExpand?: EventHandler<ShellPanel["calciteShellPanelExpand"]>;
|
|
515
515
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/calcite-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.28",
|
|
4
4
|
"description": "Web Components for Esri's Calcite Design System.",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/calcite-design-system/",
|
|
6
6
|
"repository": {
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"dist/docs/vscode.html-custom-data.json"
|
|
109
109
|
],
|
|
110
110
|
"web-types": "dist/docs/web-types.json",
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "3919298312de642fa9d9460ee0e796cf155b328e"
|
|
112
112
|
}
|
package/dist/cdn/EMHQ7VAN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as n}from"./QDE3TOJ6.js";import{s as i,t as r}from"./CXFK53DG.js";import{G as g,H as s,S as u,g as f,h as a}from"./JYQVGSSE.js";var b=f`: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}`,o={main:"main",content:"content",contentBehind:"content--behind",contentBottom:"content-bottom",contentNonInteractive:"content--non-interactive",footer:"footer",positionedSlotWrapper:"positioned-slot-wrapper",contentBehindCenterContent:"center-content"},l={panelStart:"panel-start",panelEnd:"panel-end",panelTop:"panel-top",panelBottom:"panel-bottom",header:"header",footer:"footer",alerts:"alerts",sheets:"sheets",dialogs:"dialogs"},h=class extends g{constructor(){super(),this.hasAlerts=!1,this.hasDialogs=!1,this.hasFooter=!1,this.hasHeader=!1,this.hasOnlyPanelBottom=!1,this.hasPanelBottom=!1,this.hasPanelTop=!1,this.hasSheets=!1,this.panelIsResizing=!1,this.contentBehind=!1,this.listen("calciteInternalShellPanelResizeStart",this.handleCalciteInternalShellPanelResizeStart),this.listen("calciteInternalShellPanelResizeEnd",this.handleCalciteInternalShellPanelResizeEnd)}static{this.properties={hasAlerts:[16,{},{state:!0}],hasDialogs:[16,{},{state:!0}],hasFooter:[16,{},{state:!0}],hasHeader:[16,{},{state:!0}],hasOnlyPanelBottom:[16,{},{state:!0}],hasPanelBottom:[16,{},{state:!0}],hasPanelTop:[16,{},{state:!0}],hasSheets:[16,{},{state:!0}],panelIsResizing:[16,{},{state:!0}],contentBehind:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=b}willUpdate(t){(t.has("hasPanelTop")&&(this.hasUpdated||this.hasPanelTop!==!1)||t.has("hasPanelBottom")&&(this.hasUpdated||this.hasPanelBottom!==!1))&&(this.hasOnlyPanelBottom=!this.hasPanelTop&&this.hasPanelBottom)}handleCalciteInternalShellPanelResizeStart(t){this.panelIsResizing=!0,t.stopPropagation()}handleCalciteInternalShellPanelResizeEnd(t){this.panelIsResizing=!1,t.stopPropagation()}handleHeaderSlotChange(t){this.hasHeader=!!i(t)}handleFooterSlotChange(t){this.hasFooter=!!i(t)}handleAlertsSlotChange(t){this.hasAlerts=!!i(t),r(t).filter(e=>e?.matches("calcite-alert")).forEach(e=>{e.embedded=!0})}handleSheetsSlotChange(t){this.hasSheets=!!i(t),r(t).filter(e=>e?.matches("calcite-sheet")).forEach(e=>{e.embedded=!0})}handlePanelTopChange(t){this.hasPanelTop=i(t),r(t).filter(e=>e?.matches("calcite-shell-panel")).forEach(e=>{e.layout="horizontal",e.position="start"})}handlePanelBottomChange(t){this.hasPanelBottom=i(t),r(t).filter(e=>e?.matches("calcite-shell-panel")).forEach(e=>{e.layout="horizontal",e.position="end"})}handlePanelStartChange(t){r(t).filter(e=>e?.matches("calcite-shell-panel")).forEach(e=>{e.layout="vertical",e.position="start"})}handlePanelEndChange(t){r(t).filter(e=>e?.matches("calcite-shell-panel")).forEach(e=>{e.layout="vertical",e.position="end"})}handleDialogsSlotChange(t){this.hasDialogs=!!i(t),r(t).filter(e=>e?.matches("calcite-dialog")).forEach(e=>{e.embedded=!0})}renderHeader(){return a`<div .hidden=${!this.hasHeader}>${n("header",a`<slot name=${l.header} @slotchange=${this.handleHeaderSlotChange}></slot>`)}</div>`}renderFooter(){return n("footer",a`<div class=${s(o.footer)} .hidden=${!this.hasFooter}><slot name=${l.footer} @slotchange=${this.handleFooterSlotChange}></slot></div>`)}renderAlerts(){return a`<div .hidden=${!this.hasAlerts}>${n("alerts",a`<slot name=${l.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</div>`}renderSheets(){return a`<div .hidden=${!this.hasSheets}>${n("sheets",a`<slot name=${l.sheets} @slotchange=${this.handleSheetsSlotChange}></slot>`)}</div>`}renderDialogs(){return a`<div .hidden=${!this.hasDialogs}>${n("dialogs",a`<slot name=${l.dialogs} @slotchange=${this.handleDialogsSlotChange}></slot>`)}</div>`}renderContent(){let{panelIsResizing:t}=this,e=n("default-slot",a`<slot></slot>`),d=t?a`<div class=${s(o.contentNonInteractive)}>${e}</div>`:e,c=n("panel-bottom-slot",a`<slot name=${l.panelBottom} @slotchange=${this.handlePanelBottomChange}></slot>`),p=n("panel-top-slot",a`<slot name=${l.panelTop} @slotchange=${this.handlePanelTopChange}></slot>`),m="content-container";return this.contentBehind?[n(m,a`<div class=${s({[o.content]:!0,[o.contentBehind]:!0})}>${d}</div>`),a`<div class=${s({[o.contentBehindCenterContent]:!0,[o.contentBottom]:this.hasOnlyPanelBottom})}>${p}${c}</div>`]:[n(m,a`<div class=${s({[o.content]:!0,[o.contentBottom]:this.hasOnlyPanelBottom})}>${p}${d}${c}</div>`)]}renderMain(){return a`<div class=${s(o.main)}><slot name=${l.panelStart} @slotchange=${this.handlePanelStartChange}></slot>${this.renderContent()}<slot name=${l.panelEnd} @slotchange=${this.handlePanelEndChange}></slot></div>`}renderPositionedSlots(){return a`<div class=${s(o.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderDialogs()}${this.renderSheets()}</div>`}render(){return a`${this.renderHeader()}${this.renderMain()}${this.renderFooter()}${this.renderPositionedSlots()}`}};u("calcite-shell",h);export{h as Shell};
|
package/dist/cdn/ISFLBMKR.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a as B,b as P}from"./VS7H6NUI.js";import{a as R}from"./735UOYTJ.js";import{a as y}from"./QDE3TOJ6.js";import{a as g}from"./GZZYSINJ.js";import{a as O}from"./U2PLI7AH.js";import{e as U}from"./X3N7F6XB.js";import"./ZFI7OHSZ.js";import{C as u,s as E,t as L}from"./CXFK53DG.js";import{E as S,F as I,G as H,H as s,M as p,O as A,P as _,S as D,g as k,h as d,p as x}from"./JYQVGSSE.js";var K=k`.calcite-animate{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{animation-name:in}.calcite-animate__in-down{animation-name:in-down}.calcite-animate__in-up{animation-name:in-up}.calcite-animate__in-right{animation-name:in-right}.calcite-animate__in-left{animation-name:in-left}.calcite-animate__in-scale{animation-name:in-scale}@keyframes in{0%{opacity:0}to{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0,-5px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-right{0%{opacity:0;transform:translate3D(-5px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-left{0%{opacity:0;transform:translate3D(5px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(.95,.95,1)}to{opacity:1;transform:scaleZ(1)}}`,o={container:"container",actionBarContainer:"action-bar-container",contentContainer:"content-container",content:"content",contentHeader:"content__header",contentBody:"content__body",contentOverlay:"content--overlay",floatAll:"float-all",floatContent:"float--content",resizeHandle:"resize-handle",resizeHandleBar:"resize-handle-bar"},M={actionBar:"action-bar",header:"header"},N={dragVertical:"drag-resize-vertical",dragHorizontal:"drag-resize-horizontal"},T=k`: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)}.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}`,V=class extends H{constructor(){super(...arguments),this.direction=U(),this.resizeHandleRef=S(),this.actionBars=[],this.contentRef=S(),this.messages=O(),this.sizeOverride=P({targetElement:this.contentRef,getBounds:()=>({inline:{min:this.resizeValues.minInlineSize,max:this.resizeValues.maxInlineSize},block:{min:this.resizeValues.minBlockSize,max:this.resizeValues.maxBlockSize}}),onResize:e=>{this.resizeValues=e}}),this.resizeValues={inlineSize:null,blockSize:null,minInlineSize:null,minBlockSize:null,maxInlineSize:null,maxBlockSize:null},this.hasHeader=!1,this.collapsed=!1,this.displayMode="dock",this.layout="vertical",this.position="start",this.resizable=!1,this.widthScale="m",this.calciteInternalShellPanelResizeEnd=x({cancelable:!1}),this.calciteInternalShellPanelResizeStart=x({cancelable:!1}),this.calciteShellPanelCollapse=x({cancelable:!1}),this.calciteShellPanelExpand=x({cancelable:!1})}static{this.properties={resizeValues:[16,{},{state:!0}],hasHeader:[16,{},{state:!0}],collapsed:[7,{},{reflect:!0,type:Boolean}],displayMode:[3,{},{reflect:!0}],heightScale:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],position:[3,{},{reflect:!0}],resizable:[7,{},{reflect:!0,type:Boolean}],height:[3,{},{reflect:!0}],widthScale:[3,{},{reflect:!0}],width:[3,{},{reflect:!0}]}}static{this.styles=[T,K]}async updateSize(e){this.updateSizeInternal(e)}connectedCallback(){super.connectedCallback(),this.hasUpdated&&this.refreshResize()}willUpdate(e){let t=!1;e.has("layout")&&(this.hasUpdated||this.layout!=="vertical")&&(this.setActionBarsLayout(this.actionBars),this.updateSizeInternal({inline:null,block:null}),t=!0),(e.has("direction")&&this.hasUpdated||e.has("position")&&(this.hasUpdated||this.position!=="start"))&&(t=!0),(e.has("collapsed")&&(this.hasUpdated||this.collapsed!==!1)||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&(t=this.resizable&&!this.collapsed,t||this.cleanUpInteractions()),t&&this.refreshResize(),e.has("collapsed")&&this.hasUpdated&&(this.collapsed?this.calciteShellPanelCollapse.emit():this.calciteShellPanelExpand.emit())}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpInteractions()}updateSizeInternal(e){this.contentRef.value&&this.sizeOverride.resize(e)}handleKeyDown(e){let{key:t,defaultPrevented:h,shiftKey:r}=e,{position:l,layout:a,resizable:n,contentRef:i,resizeValues:{maxBlockSize:m,maxInlineSize:z,minBlockSize:v,minInlineSize:b}}=this,$=[...a==="horizontal"?["ArrowUp","ArrowDown"]:["ArrowLeft","ArrowRight"],"Home","End"];if(!n||!i.value||h||!$.includes(t))return;let w=i.value.getBoundingClientRect(),C=this.direction==="rtl"?-1:1,c=r?_:A;switch(t){case"ArrowUp":this.updateSizeInternal({block:w.height+(a==="horizontal"&&l==="end"?c:-c)}),e.preventDefault();break;case"ArrowDown":this.updateSizeInternal({block:w.height+(a==="horizontal"&&l==="end"?-c:c)}),e.preventDefault();break;case"ArrowLeft":this.updateSizeInternal({inline:w.width+(a==="vertical"&&l==="end"?c:-c)*C}),e.preventDefault();break;case"ArrowRight":this.updateSizeInternal({inline:w.width+(a==="vertical"&&l==="end"?-c:c)*C}),e.preventDefault();break;case"Home":this.updateSizeInternal(a==="horizontal"?{block:v}:{inline:b}),e.preventDefault();break;case"End":this.updateSizeInternal(a==="horizontal"?{block:m}:{inline:z}),e.preventDefault();break}}cleanUpInteractions(){this.interaction?.unset()}updateResizeValues(){let{contentRef:e}=this;if(!e.value)return;let t=window.getComputedStyle(e.value);this.resizeValues={inlineSize:u(t.inlineSize),blockSize:u(t.blockSize),minInlineSize:u(t.minInlineSize),minBlockSize:u(t.minBlockSize),maxInlineSize:u(t.maxInlineSize)||window.innerWidth,maxBlockSize:u(t.maxBlockSize)||window.innerHeight}}async refreshResize(){await this.componentOnReady(),await this.updateComplete,this.updateResizeValues(),this.setUpResizeInteractions()}setUpResizeInteractions(){this.cleanUpInteractions();let{el:e,contentRef:t,resizable:h,position:r,collapsed:l,resizeHandleRef:a,layout:n}=this,i=a.value;if(!t.value||l||!h||!i)return;let m=this.direction==="rtl",z=this.resizeValues.minInlineSize===null||this.resizeValues.minBlockSize===null?void 0:{width:this.resizeValues.minInlineSize,height:this.resizeValues.minBlockSize},v=this.resizeValues.maxInlineSize===null||this.resizeValues.maxBlockSize===null?void 0:{width:this.resizeValues.maxInlineSize,height:this.resizeValues.maxBlockSize};this.interaction=B(t.value,{context:e.ownerDocument}).resizable({edges:{top:r==="end"&&n==="horizontal"?i:!1,right:r===(m?"end":"start")&&n==="vertical"?i:!1,bottom:r==="start"&&n==="horizontal"?i:!1,left:r===(m?"start":"end")&&n==="vertical"?i:!1},modifiers:[B.modifiers.restrictSize({min:z,max:v})],listeners:{resizestart:()=>{this.calciteInternalShellPanelResizeStart.emit()},resizeend:()=>{this.calciteInternalShellPanelResizeEnd.emit()},move:({rect:b})=>{let f=n==="horizontal";this.updateSize(f?{block:b.height}:{inline:b.width})}}})}setActionBarsLayout(e){e.forEach(t=>t.layout=this.layout)}handleActionBarSlotChange(e){let t=L(e).filter(h=>h?.matches("calcite-action-bar"));this.actionBars=t,this.setActionBarsLayout(t)}handleHeaderSlotChange(e){this.hasHeader=E(e)}getResizeIcon(){let{layout:e}=this;return e==="horizontal"?N.dragVertical:N.dragHorizontal}renderHeader(){return y("header",d`<div class=${s(o.contentHeader)} .hidden=${!this.hasHeader}><slot name=${M.header} @slotchange=${this.handleHeaderSlotChange}></slot></div>`)}render(){let{collapsed:e,position:t,resizable:h,layout:r,displayMode:l,resizeValues:a}=this,n=this.direction,i=r==="horizontal",m=!e&&h?y("resize-handle",d`<div .ariaLabel=${this.messages.resize} .ariaOrientation=${i?"vertical":"horizontal"} .ariaValueMax=${g(i?"block":"inline",a.maxBlockSize,a.maxInlineSize)} .ariaValueMin=${g(i?"block":"inline",a.minBlockSize,a.minInlineSize)} .ariaValueNow=${g(i?"block":"inline",a.blockSize,a.inlineSize)} class=${s(o.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${I(this.resizeHandleRef)}><div class=${s(o.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`):null,z=()=>r==="horizontal"?t==="start"?p.calciteAnimateInDown:p.calciteAnimateInUp:n==="ltr"&&t==="end"||n==="rtl"&&t==="start"?p.calciteAnimateInLeft:p.calciteAnimateInRight,v=d`<div class=${s(o.contentContainer)}>${y("content",d`<div class=${s({[p.rtl]:n==="rtl",[o.content]:!0,[o.contentOverlay]:l==="overlay",[o.floatContent]:l==="float-content"||l==="float",[p.calciteAnimate]:l==="overlay",[z()]:l==="overlay",[R("width",this.width,this.widthScale)]:!!(this.width||this.widthScale),[R("height",this.height,this.heightScale)]:!!(this.height||this.heightScale)})} .hidden=${e} ${I(this.contentRef)}>${this.renderHeader()}<div class=${s(o.contentBody)}><slot></slot></div>${m}</div>`)}</div>`,f=[y("action-bar-container",d`<div class=${s(o.actionBarContainer)}><slot name=${M.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`),v];return t==="end"&&f.reverse(),d`<div class=${s({[o.container]:!0,[o.floatAll]:l==="float-all"})}>${f}</div>`}};D("calcite-shell-panel",V);export{V as ShellPanel};
|