@esri/calcite-components 6.0.0-next.13 → 6.0.0-next.15
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/{OA2SW6H5.js → 2DCDJUO3.js} +1 -1
- package/dist/cdn/{5G4JK7EP.js → 2GIGNUD7.js} +1 -1
- package/dist/cdn/{IUTHPOYA.js → 2GSM346K.js} +1 -1
- package/dist/cdn/{7CDUFNOT.js → 2HVUPKLV.js} +1 -1
- package/dist/cdn/{G5N32YCA.js → 2IESNZ4X.js} +1 -1
- package/dist/cdn/{5QKS6AF6.js → 2XVHY3CP.js} +1 -1
- package/dist/cdn/{FGKPQHWD.js → 2YDF63CE.js} +1 -1
- package/dist/cdn/{WAUWGWKC.js → 36DPBN7V.js} +1 -1
- package/dist/cdn/{7GEEWGKD.js → 3DFRUKAO.js} +1 -1
- package/dist/cdn/{3AF57EN5.js → 3DHZHS4L.js} +1 -1
- package/dist/cdn/{A5G2FMJG.js → 3TTIA5XB.js} +1 -1
- package/dist/cdn/{YHWEQSNG.js → 4NYN6D2X.js} +1 -1
- package/dist/cdn/{ZGBWQZ7P.js → 5AM6LHG2.js} +1 -1
- package/dist/cdn/{FOTKHFJB.js → 5GUS4IJL.js} +1 -1
- package/dist/cdn/{JT555CD7.js → 5LICWMG4.js} +1 -1
- package/dist/cdn/{ET243IG2.js → 5VOEKVT2.js} +1 -1
- package/dist/cdn/{373VDNNQ.js → 5WQE57LV.js} +1 -1
- package/dist/cdn/{5MLUCZYU.js → 6HA4PPC3.js} +1 -1
- package/dist/cdn/{XH7LIFAH.js → 6TYRP5NM.js} +1 -1
- package/dist/cdn/{COJZES3W.js → 6WJWGWLR.js} +1 -1
- package/dist/cdn/{N5NNCC3H.js → 6YTH2EAA.js} +1 -1
- package/dist/cdn/{R4PJXVCL.js → 74N3QTX7.js} +1 -1
- package/dist/cdn/{XDYHK7EH.js → 74OL6XUR.js} +1 -1
- package/dist/cdn/{WOGE2EIU.js → 75YHCP7V.js} +1 -1
- package/dist/cdn/{2F5HVMTE.js → 77OPXWUD.js} +1 -1
- package/dist/cdn/{PA7ZBW2C.js → 7FPLLYNC.js} +1 -1
- package/dist/cdn/{L37MHWEB.js → 7TXHM4DL.js} +1 -1
- package/dist/cdn/{XB2H7XNW.js → AIGQ4HKM.js} +1 -1
- package/dist/cdn/{M5X7W27T.js → AJWS4APY.js} +1 -1
- package/dist/cdn/{3T6UOLV5.js → AKPHSNSC.js} +1 -1
- package/dist/cdn/{X6SZL76G.js → AXZPMMQJ.js} +1 -1
- package/dist/cdn/{AFM7NSV5.js → B2QWF4FQ.js} +1 -1
- package/dist/cdn/{NGZWQRX2.js → B5O6HOTC.js} +1 -1
- package/dist/cdn/{25AC5C7W.js → B6HOB7XV.js} +1 -1
- package/dist/cdn/{6ISN6GCN.js → B7EH25X4.js} +1 -1
- package/dist/cdn/{SCC6SB5D.js → B7J7BIDS.js} +1 -1
- package/dist/cdn/{J56BCSJU.js → BFSKGQKN.js} +1 -1
- package/dist/cdn/{PPMNVX3X.js → BLALGKX5.js} +1 -1
- package/dist/cdn/{TXGCXYKU.js → BQG54GPV.js} +1 -1
- package/dist/cdn/{KV5RO6NY.js → BRKP5DYQ.js} +1 -1
- package/dist/cdn/{RZHVFBWW.js → BRMF5MZ3.js} +1 -1
- package/dist/cdn/{QWO5ZEUN.js → CIVHX7CP.js} +1 -1
- package/dist/cdn/{5H5CIGV2.js → CPPIY2OG.js} +1 -1
- package/dist/cdn/{LIGDZYKW.js → CWTUHGTW.js} +1 -1
- package/dist/cdn/{TXLQEMY2.js → CYAFE7DA.js} +1 -1
- package/dist/cdn/{DZ7GWTDD.js → D2Y2JDPU.js} +1 -1
- package/dist/cdn/{6IWVLV7R.js → DFXJJLMQ.js} +1 -1
- package/dist/cdn/DOFTWTWW.js +2 -0
- package/dist/cdn/{EFZAH3PV.js → DV7SAVOZ.js} +1 -1
- package/dist/cdn/{DKZSKQAN.js → DYS774TJ.js} +1 -1
- package/dist/cdn/{HRWKELOU.js → E4THMLJL.js} +1 -1
- package/dist/cdn/{ICJCH2RL.js → ECXUQJCX.js} +1 -1
- package/dist/cdn/{G35SXZVG.js → EKTNUYP6.js} +1 -1
- package/dist/cdn/{O46OGK26.js → ETCZNK6P.js} +1 -1
- package/dist/cdn/{LCVXGRQZ.js → F3A24VJV.js} +1 -1
- package/dist/cdn/{7FRYRKJP.js → FJCGFUPF.js} +1 -1
- package/dist/cdn/{P56WXDRK.js → FJYZWPVI.js} +1 -1
- package/dist/cdn/{JIVW23TP.js → FNG347VK.js} +1 -1
- package/dist/cdn/{JLSSZCCB.js → FOXXK3D4.js} +1 -1
- package/dist/cdn/{RSMPA7WQ.js → G226XBTC.js} +1 -1
- package/dist/cdn/{SF3Q6HQG.js → G5YLFBW4.js} +1 -1
- package/dist/cdn/{BXK7U4YZ.js → GGXMB5I2.js} +1 -1
- package/dist/cdn/{7R7FYTFO.js → HLU7SFPA.js} +1 -1
- package/dist/cdn/{JDUAXC4R.js → HNOTQZZL.js} +1 -1
- package/dist/cdn/{M7AG7JI5.js → I4JJEAMV.js} +1 -1
- package/dist/cdn/{UIJKBLJA.js → I4MLWP26.js} +1 -1
- package/dist/cdn/{JA5M6SHF.js → IDAH2UN2.js} +1 -1
- package/dist/cdn/{KA2QN7G6.js → IEGKTIVZ.js} +1 -1
- package/dist/cdn/{YTYFAOSD.js → IIS6LZHB.js} +1 -1
- package/dist/cdn/{QHTE6DUC.js → IKPJDQTL.js} +1 -1
- package/dist/cdn/{GSJ64IDO.js → ILC5EO6V.js} +1 -1
- package/dist/cdn/{VCCBNAVJ.js → IOEM2NNJ.js} +1 -1
- package/dist/cdn/{ZKIQHS4D.js → IOYL4EOL.js} +1 -1
- package/dist/cdn/{4Y4ERS26.js → J2A5YXKX.js} +1 -1
- package/dist/cdn/{E4MQMBU4.js → J4WBYVN7.js} +1 -1
- package/dist/cdn/{CONIUIT2.js → J7TZNZCY.js} +1 -1
- package/dist/cdn/{FIDTJZ6W.js → JUTSQCSF.js} +1 -1
- package/dist/cdn/{VU7OR7CC.js → KE6OMY53.js} +1 -1
- package/dist/cdn/{RZNHMJPS.js → KRVBUYK6.js} +1 -1
- package/dist/cdn/{3AQJP3FW.js → KVPR44TP.js} +1 -1
- package/dist/cdn/{3PVQMGD2.js → KZHR7MM7.js} +1 -1
- package/dist/cdn/{63SVBPGY.js → LML3GUYX.js} +1 -1
- package/dist/cdn/{PEBOE53V.js → MB2A2G6D.js} +1 -1
- package/dist/cdn/{TFBUCIQ6.js → MSVMDJSX.js} +1 -1
- package/dist/cdn/{YPERMSMA.js → MXL63SIR.js} +1 -1
- package/dist/cdn/{2QVUEQ7K.js → MYRE52UV.js} +1 -1
- package/dist/cdn/{3XLIACB5.js → MZ47FA5O.js} +1 -1
- package/dist/cdn/{HGWDN53S.js → N4MVJFPU.js} +1 -1
- package/dist/cdn/{ZVHS2ZAE.js → NBN6DIZV.js} +1 -1
- package/dist/cdn/OKPW3DD3.js +2 -0
- package/dist/cdn/{PK4KPLFR.js → OTZT242V.js} +1 -1
- package/dist/cdn/{R6RAHJPH.js → OUNDGE3C.js} +1 -1
- package/dist/cdn/{MMJULRYU.js → OUUHSLTS.js} +1 -1
- package/dist/cdn/{BOLMTIRL.js → OV66KQLK.js} +1 -1
- package/dist/cdn/{ESWOUN4F.js → P3DKIVDE.js} +1 -1
- package/dist/cdn/{MVY2R2QJ.js → P44PV7J2.js} +1 -1
- package/dist/cdn/{REQFPJMT.js → PAJZMXPB.js} +1 -1
- package/dist/cdn/{72DB27F3.js → PC3ZPCP5.js} +1 -1
- package/dist/cdn/{DUE24OJG.js → PCF5IOFT.js} +1 -1
- package/dist/cdn/{NYPUO4CE.js → PKTTVEGN.js} +1 -1
- package/dist/cdn/{CZCANPBM.js → QOXS5GJU.js} +1 -1
- package/dist/cdn/{D3QWDLXT.js → QTMGNJSM.js} +1 -1
- package/dist/cdn/{DQ2ILDEO.js → QW2ICJD3.js} +1 -1
- package/dist/cdn/{SYIFJZ4P.js → QXA77OJI.js} +1 -1
- package/dist/cdn/{U2QG2CEZ.js → RCKI322C.js} +1 -1
- package/dist/cdn/{R7OS62VQ.js → RCOMH7KG.js} +1 -1
- package/dist/cdn/RIXXQAPN.js +2 -0
- package/dist/cdn/{EWEQDQII.js → S47HQFYM.js} +1 -1
- package/dist/cdn/{I66SOI2P.js → S7ISPDHD.js} +1 -1
- package/dist/cdn/{3VB4PCVU.js → SIDUBAYI.js} +1 -1
- package/dist/cdn/{NBRIVTRZ.js → SKT7G2EI.js} +1 -1
- package/dist/cdn/{WJ6KI2RM.js → SL77VKQW.js} +1 -1
- package/dist/cdn/{M6W6FK6G.js → TA6BWXVY.js} +1 -1
- package/dist/cdn/{MXVNB2OC.js → TGJQJYKX.js} +1 -1
- package/dist/cdn/{MARYJQ3G.js → U4RV4IKE.js} +1 -1
- package/dist/cdn/{F2BPZ3AE.js → UHCDDVQO.js} +1 -1
- package/dist/cdn/{ZGMIJJ7L.js → UYZEHIYC.js} +1 -1
- package/dist/cdn/{HPNQDRGT.js → V7QP3RVI.js} +1 -1
- package/dist/cdn/{5SSPDEHF.js → VHLBKPXF.js} +1 -1
- package/dist/cdn/{7C5725DW.js → VP2G6HKI.js} +1 -1
- package/dist/cdn/{CJAVR3NL.js → VSKZZ5DI.js} +1 -1
- package/dist/cdn/{O7VUYQBN.js → VSLCBUGQ.js} +1 -1
- package/dist/cdn/VSTPER5Q.js +4 -0
- package/dist/cdn/{GG3GNV5I.js → VSWDX2UT.js} +1 -1
- package/dist/cdn/{VW4QO7EH.js → VYIP4TQE.js} +1 -1
- package/dist/cdn/{VOLYRMZA.js → W2P2LQCQ.js} +1 -1
- package/dist/cdn/{FWMNZ3PQ.js → W2XGHWZH.js} +1 -1
- package/dist/cdn/{V72U2ITR.js → WRUP63MR.js} +1 -1
- package/dist/cdn/{ETWYQ6QH.js → X7Q5UKJR.js} +1 -1
- package/dist/cdn/{GOSNO7C7.js → XPPVHMUI.js} +1 -1
- package/dist/cdn/{ZQ3IMFRO.js → Y6JOX56N.js} +1 -1
- package/dist/cdn/{JMYZEURP.js → YICRC66R.js} +1 -1
- package/dist/cdn/{T7WMQHDG.js → Z43NR3ZE.js} +1 -1
- package/dist/cdn/{FWAKJA7C.js → ZHL6W4RA.js} +1 -1
- package/dist/cdn/{QFRLTOMV.js → ZOYW6XU5.js} +1 -1
- package/dist/cdn/{ZJAWNJFT.js → ZWMQBOMI.js} +1 -1
- package/dist/cdn/{4G3OMXLI.js → ZYR56P72.js} +1 -1
- package/dist/cdn/{YDGQYQDK.js → ZZQBTABS.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/resources6.js +1 -0
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useSizeOverride.js +2 -2
- package/dist/components/calcite-block/customElement.js +2 -7
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block-group/customElement.js +1 -1
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.js +1 -1
- package/dist/components/calcite-list/index.js +1 -1
- package/dist/components/calcite-panel/customElement.js +1 -1
- package/dist/components/calcite-shell/customElement.js +3 -1
- package/dist/components/calcite-shell-panel/customElement.js +8 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +7 -7
- package/dist/cdn/7ICPEOYB.js +0 -2
- package/dist/cdn/CCG4XUGO.js +0 -2
- package/dist/cdn/FFVOHLWX.js +0 -4
- package/dist/cdn/I3M5I4FT.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/calcite-components",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.15",
|
|
4
4
|
"description": "Web Components for Esri's Calcite Design System.",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/calcite-design-system/",
|
|
6
6
|
"repository": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@arcgis/eslint-config": ">=6.0.0-next.16 <7.0.0",
|
|
58
58
|
"@arcgis/lumina-compiler": ">=6.0.0-next.16 <7.0.0",
|
|
59
59
|
"@cloudfour/simple-svg-placeholder": "1.2.0",
|
|
60
|
-
"@esri/calcite-tailwind-preset": "1.2.0-next.
|
|
60
|
+
"@esri/calcite-tailwind-preset": "1.2.0-next.1",
|
|
61
61
|
"@esri/calcite-typescript-config": "0.0.1-next.7",
|
|
62
62
|
"@esri/eslint-config-calcite": "0.0.1-next.14",
|
|
63
63
|
"@esri/eslint-plugin-calcite-components": "2.0.5-next.0",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@types/node": "24.10.0",
|
|
76
76
|
"@vitest/browser-playwright": "4.1.11",
|
|
77
77
|
"@vitest/coverage-v8": "4.1.11",
|
|
78
|
-
"@vitest/eslint-plugin": "1.6.
|
|
78
|
+
"@vitest/eslint-plugin": "1.6.28",
|
|
79
79
|
"@whitespace/storybook-addon-html": "9.0.0",
|
|
80
80
|
"autoprefixer": "10.6.1",
|
|
81
81
|
"axe-core": "4.13.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"chalk": "5.6.2",
|
|
84
84
|
"change-case": "5.4.4",
|
|
85
85
|
"chromatic": "16.6.3",
|
|
86
|
-
"concurrently": "9.2.
|
|
86
|
+
"concurrently": "9.2.5",
|
|
87
87
|
"cpy": "12.1.0",
|
|
88
88
|
"cpy-cli": "6.0.0",
|
|
89
89
|
"csstype": "3.2.3",
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
"eslint-plugin-unused-imports": "4.4.1",
|
|
95
95
|
"gh-pages": "6.3.0",
|
|
96
96
|
"globals": "17.6.0",
|
|
97
|
-
"globby": "16.2.
|
|
98
|
-
"happy-dom": "
|
|
97
|
+
"globby": "16.2.4",
|
|
98
|
+
"happy-dom": "21.0.4",
|
|
99
99
|
"jest-axe": "10.0.0",
|
|
100
100
|
"lint-staged": "16.4.0",
|
|
101
101
|
"markdownlint-cli2": "0.22.1",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"puppeteer": "23.4.1",
|
|
107
107
|
"rimraf": "6.1.3",
|
|
108
108
|
"sass-embedded": "1.104.1",
|
|
109
|
-
"storybook": "10.
|
|
109
|
+
"storybook": "10.6.2",
|
|
110
110
|
"storybook-addon-rtl": "3.0.1",
|
|
111
111
|
"stylelint": "17.13.0",
|
|
112
112
|
"stylelint-config-recommended-scss": "17.0.1",
|
package/dist/cdn/7ICPEOYB.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as T}from"./COJZES3W.js";import{a as A}from"./E4MQMBU4.js";import{b as D}from"./VOLYRMZA.js";import{a as o,b as t,c as d,d as v}from"./ET243IG2.js";import{a as O}from"./U2QG2CEZ.js";import"./WJ6KI2RM.js";import{a as P}from"./ZQ3IMFRO.js";import"./5K4OZJAZ.js";import{b as z}from"./A5OQTYIZ.js";import{a as g}from"./QFRLTOMV.js";import{a as I}from"./HGWDN53S.js";import"./2IM7ZZ7U.js";import{a as w}from"./BOLMTIRL.js";import{a as m}from"./VMHJHFFS.js";import"./ZKIQHS4D.js";import"./XB2H7XNW.js";import{w as H,x as r,y as B}from"./G4SOANDF.js";import{F as C,G as y,H as c,Q as p,T as E,g as S,h as a,l as u,p as n}from"./YHWEQSNG.js";var Z=S`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1));color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host([scale=s]) .header{gap:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .icon-end-container{gap:var(--calcite-theme-space-sm, var(--calcite-spacing-sm));padding-inline-end:var(--calcite-theme-space-sm, var(--calcite-spacing-sm))}:host([scale=s]) .heading{font-size:var(--calcite-font-size-sm)}:host([scale=s]) .description{font-size:var(--calcite-font-size-xs)}:host([scale=s]){--calcite-internal-block-actions-spacing: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-block-header-content-padding: var(--calcite-theme-space-sm, var(--calcite-spacing-sm));--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-theme-space-sm, var(--calcite-spacing-sm))) )}:host([scale=m]) .header{gap:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=m]) .icon-end-container{gap:var(--calcite-theme-space-md, var(--calcite-spacing-md));padding-inline-end:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([scale=m]) .heading{font-size:var(--calcite-font-size)}:host([scale=m]) .description{font-size:var(--calcite-font-size-sm)}:host([scale=m]){--calcite-internal-block-actions-spacing: var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs));--calcite-internal-block-header-content-padding: var(--calcite-theme-space-md, var(--calcite-spacing-md));--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-theme-space-sm, var(--calcite-spacing-sm))) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-theme-space-md, var(--calcite-spacing-md))) )}:host([scale=l]) .header{gap:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([scale=l]) .icon-end-container{gap:var(--calcite-theme-space-lg, var(--calcite-spacing-lg));padding-inline-end:var(--calcite-theme-space-lg, var(--calcite-spacing-lg))}:host([scale=l]) .heading{font-size:var(--calcite-font-size-md)}:host([scale=l]) .description{font-size:var(--calcite-font-size)}:host([scale=l]){--calcite-internal-block-actions-spacing: var(--calcite-theme-space-xs, var(--calcite-spacing-xs));--calcite-internal-block-header-content-padding: var(--calcite-theme-space-lg, var(--calcite-spacing-lg));--calcite-internal-block-padding-block: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-theme-space-md, var(--calcite-spacing-md))) );--calcite-internal-block-padding-inline: var( --calcite-block-content-space, var(--calcite-block-padding, var(--calcite-theme-space-lg, var(--calcite-spacing-lg))) )}:host{transition-property:margin;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;transition-timing-function:var(--calcite-animation-easing-function);display:flex;flex-shrink:0;flex-grow:0;flex-direction:column;border-width:var(--calcite-border-width-none);border-block-end-width:var(--calcite-border-width-sm);border-style:solid;padding:0;flex-basis:auto;border-color:var(--calcite-block-border-color, var(--calcite-color-border-3));background-color:var(--calcite-block-background-color, var(--calcite-theme-color-surface-2, var(--calcite-color-foreground-1)))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{justify-content:flex-start}.header--has-content{padding:var(--calcite-internal-block-header-content-padding)}.header--draggable{padding-inline-start:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.header,.toggle{grid-area:header}.header-container{display:grid;align-items:stretch;grid-template:auto/auto 1fr auto auto auto auto;grid-template-areas:"handle header icon-end menu actions-end"}.icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-3)))}.actions-end{align-items:center;display:flex;gap:var(--calcite-internal-block-actions-spacing);grid-area:actions-end;padding-block:var(--calcite-internal-block-actions-spacing);padding-inline-end:var(--calcite-internal-block-actions-spacing)}.toggle{outline-color:transparent;display:flex;cursor:pointer;flex-wrap:nowrap;align-items:center;justify-content:space-between;border-style:none;margin:0;padding:0;font-family:inherit;text-align:initial;background-color:var(--calcite-block-header-background-color, transparent)}.toggle:hover{background-color:var(--calcite-block-header-background-color-hover, var(--calcite-theme-color-surface-3, var(--calcite-color-foreground-2)))}.toggle:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-1 * var(--calcite-space-base) * (1 - 2 * clamp(0,var(--calcite-offset-invert-focus),1)))}.toggle:active{background-color:var(--calcite-block-header-background-color-press, var(--calcite-theme-color-surface-4, var(--calcite-color-foreground-3)))}calcite-loader[inline]{align-self:center}calcite-sort-handle{align-self:center;grid-area:handle;margin-block:var(--calcite-internal-block-actions-spacing);padding-inline-start:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}.title{display:flex;flex-direction:column}.header .title .heading{overflow-wrap:break-word;word-break:break-word;padding:0;color:var(--calcite-block-heading-text-color, var(--calcite-color-text-1));font-weight:var(--calcite-theme-font-weight-regular, var(--calcite-font-weight-normal));line-height:var(--calcite-font-line-height-relative-snug)}.description{overflow-wrap:break-word;word-break:break-word;padding:0;color:var(--calcite-block-description-text-color, var(--calcite-color-text-3));font-weight:var(--calcite-font-weight-regular);line-height:var(--calcite-font-line-height-relative-snug)}.icon{display:flex}.status-icon.valid{color:var(--calcite-color-status-success)}.status-icon.invalid{color:var(--calcite-color-status-danger)}@keyframes spin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.icon-end-container{display:flex;align-items:center;grid-area:icon-end}.toggle-icon{transition-property:color;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;align-self:center;justify-self:end;transition-timing-function:var(--calcite-animation-easing-function);color:var(--calcite-block-expandable-icon-color, var(--calcite-block-collapsible-icon-color, var(--calcite-block-icon-color, var(--calcite-color-text-3))))}.toggle:hover .toggle-icon{color:var(--calcite-block-expandable-icon-color-hover, var(--calcite-block-collapsible-icon-color-hover, var(--calcite-block-icon-color-hover, var(--calcite-color-text-1))))}.container{display:flex;flex-direction:column;block-size:100%;position:relative}.content{flex:1 1 0%;position:relative;min-block-size:0;opacity:0;transition:opacity var(--calcite-internal-animation-timing-slow) ease-in-out}.has-slotted-content{padding-block:var(--calcite-internal-block-padding-block);padding-inline:var(--calcite-internal-block-padding-inline)}.content-end,.content-start{display:flex;align-items:center;color:var(--calcite-block-text-color, var(--calcite-color-text-3))}calcite-action-menu{align-self:center;grid-area:menu;margin-inline-end:var(--calcite-internal-block-actions-spacing)}:host([expanded]){margin-block:var(--calcite-space-sm)}:host([expanded]) .header .title .heading{color:var(--calcite-block-heading-text-color, var(--calcite-block-heading-text-color-press, var(--calcite-color-text-1)));font-weight:var(--calcite-font-weight-medium)}:host([expanded]) .description{color:var(--calcite-block-description-text-color, var(--calcite-color-text-2))}:host([expanded]) .icon--start{color:var(--calcite-block-icon-start-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .icon--end{color:var(--calcite-block-icon-end-color, var(--calcite-block-icon-color, var(--calcite-color-text-1)))}:host([expanded]) .content{opacity:1}@starting-style{:host([expanded]){margin-block-start:0;opacity:0}}:host([expanded][scale=s]){margin-block:var(--calcite-theme-space-2xs, var(--calcite-spacing-xxs))}:host([expanded][scale=l]){margin-block:var(--calcite-theme-space-md, var(--calcite-spacing-md))}:host([hidden]){display:none}[hidden]{display:none}slot[name=children]::slotted(calcite-block){border-block-end-width:0}`,f=class extends y{constructor(){super(...arguments),this.blockSectionChildren=[],this.messages=I(),this.focusSetter=w()(this),this.interactiveContainer=P(this),this.hasContentEnd=!1,this.hasContentStart=!1,this.hasEndActions=!1,this.hasMenuActions=!1,this.hasContent=!1,this.disabled=!1,this.dragDisabled=!1,this.dragHandle=!1,this.expanded=!1,this.expandable=!1,this.loading=!1,this.menuPlacement=D,this.addToItems=[],this.moveToItems=[],this.sortDisabled=!1,this.overlayPositioning="absolute",this.scale="m",this.sortHandleOpen=!1,this.toggleDisplay="button",this.topLayerDisabled=!1,this.calciteBlockCollapse=n({cancelable:!1}),this.calciteBlockExpand=n({cancelable:!1}),this.calciteBlockSortHandleBeforeClose=n({cancelable:!1}),this.calciteBlockSortHandleBeforeOpen=n({cancelable:!1}),this.calciteBlockSortHandleClose=n({cancelable:!1}),this.calciteBlockSortHandleOpen=n({cancelable:!1}),this.calciteInternalBlockChange=n({cancelable:!1}),this.calciteInternalBlockUpdateSortMenuItems=n({cancelable:!1})}static{this.properties={hasContentEnd:[16,{},{state:!0}],hasContentStart:[16,{},{state:!0}],hasEndActions:[16,{},{state:!0}],hasMenuActions:[16,{},{state:!0}],hasContent:[16,{},{state:!0}],description:1,disabled:[7,{},{reflect:!0,type:Boolean}],dragDisabled:[7,{},{reflect:!0,type:Boolean}],dragHandle:[7,{},{reflect:!0,type:Boolean}],expanded:[7,{},{reflect:!0,type:Boolean}],expandable:[7,{},{reflect:!0,type:Boolean}],collapsible:[7,{},{reflect:!0,type:Boolean}],heading:1,headingLevel:[11,{},{type:Number,reflect:!0}],iconEnd:[3,{},{reflect:!0}],iconFlipRtl:[3,{},{reflect:!0}],iconStart:[3,{},{reflect:!0}],loading:[7,{},{reflect:!0,type:Boolean}],label:1,menuFlipPlacements:[0,{},{attribute:!1}],menuPlacement:[3,{},{reflect:!0}],messageOverrides:[0,{},{attribute:!1}],addToItems:[0,{},{attribute:!1}],moveToItems:[0,{},{attribute:!1}],sortDisabled:[5,{},{type:Boolean}],open:[7,{},{reflect:!0,type:Boolean}],overlayPositioning:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}],setPosition:[9,{},{type:Number}],setSize:[9,{},{type:Number}],sortHandleOpen:[7,{},{reflect:!0,type:Boolean}],status:[3,{},{reflect:!0}],toggleDisplay:[3,{},{reflect:!0}],topLayerDisabled:[7,{},{reflect:!0,type:Boolean}]}}static{this.styles=[T,Z,A]}get collapsible(){return this.expandable}set collapsible(e){p.deprecated("property",{component:this,name:"collapsible",removalVersion:7,suggested:"expandable"}),this.expandable=e}get open(){return this.expanded}set open(e){p.deprecated("property",{component:this,name:"open",removalVersion:5,suggested:"expanded"}),this.expanded=e}async setFocus(e){return this.focusSetter(()=>this.el,e)}connectedCallback(){super.connectedCallback(),this.setParentBlockGroupElement()}load(){!this.heading&&!this.label&&p.warn(`${this.el.tagName} is missing both heading & label. Please provide a heading or label for the component to be accessible.`)}willUpdate(e){e.has("sortHandleOpen")&&(this.hasUpdated||this.sortHandleOpen!==!1)&&this.sortHandleOpenHandler(),e.has("expanded")&&this.hasUpdated&&(this.expanded?this.calciteBlockExpand.emit():this.calciteBlockCollapse.emit()),e.has("scale")&&this.hasUpdated&&this.updateBlockSectionScale(),(e.has("moveToItems")||e.has("addToItems"))&&this.hasUpdated&&this.setParentBlockGroupElement()}sortHandleOpenHandler(){this.sortHandleEl&&(this.sortHandleEl.open=this.sortHandleOpen)}setSortHandleEl(e){this.sortHandleEl=e,this.sortHandleOpenHandler()}handleSortHandleBeforeOpen(e){e.stopPropagation(),this.calciteBlockSortHandleBeforeOpen.emit()}handleSortHandleBeforeClose(e){e.stopPropagation(),this.calciteBlockSortHandleBeforeClose.emit()}handleSortHandleClose(e){e.stopPropagation(),this.sortHandleOpen=!1,this.calciteBlockSortHandleClose.emit()}handleSortHandleOpen(e){e.stopPropagation(),this.sortHandleOpen=!0,this.calciteBlockSortHandleOpen.emit()}onHeaderClick(){this.parentBlockGroupElement?this.calciteInternalBlockChange.emit({el:this.el,parentElement:this.parentBlockGroupElement}):this.expanded=!this.expanded}menuActionsSlotChangeHandler(e){this.hasMenuActions=r(e)}actionsEndSlotChangeHandler(e){this.hasEndActions=r(e)}handleContentEndSlotChange(e){this.hasContentEnd=r(e)}handleContentStartSlotChange(e){this.hasContentStart=r(e)}handleDefaultSlotChange(e){this.blockSectionChildren=B(e,"calcite-block-section"),this.hasContent=H(e)||r(e),this.updateBlockSectionScale()}updateBlockSectionScale(){this.blockSectionChildren.forEach(e=>{e.scale=this.scale})}setParentBlockGroupElement(){this.parentBlockGroupElement=this.el.parentElement?.closest("calcite-block-group")}renderScrim(){let{loading:e}=this,l=a`<slot @slotchange=${this.handleDefaultSlotChange}></slot>`;return[e?a`<calcite-scrim .loading=${e}></calcite-scrim>`:null,l]}renderLoaderStatusIcon(){let{loading:e,messages:l,status:i}=this;return e?g("loader",a`<div class=${c(t.icon)}><calcite-loader inline .label=${l.loading} .scale=${this.scale}></calcite-loader></div>`):i?g("status-icon",a`<div class=${c(t.icon)}><calcite-icon class=${c({[t.statusIcon]:!0,[t.valid]:i=="valid",[t.invalid]:i=="invalid"})} .icon=${v[i]} .scale=${m(this.scale)}></calcite-icon></div>`):null}renderActionsEnd(){return a`<div class=${c(t.actionsEnd)} .hidden=${!this.hasEndActions}><slot name=${d.actionsEnd} @slotchange=${this.actionsEndSlotChangeHandler}></slot></div>`}renderContentEnd(){return a`<div class=${c({[t.iconEndContainer]:!this.iconEnd&&!this.expandable})} .hidden=${!this.hasContentEnd}><div class=${c(t.contentEnd)}><slot name=${d.contentEnd} @slotchange=${this.handleContentEndSlotChange}></slot></div></div>`}renderContentStart(){return a`<div class=${c(t.contentStart)} .hidden=${!this.hasContentStart}><slot name=${d.contentStart} @slotchange=${this.handleContentStartSlotChange}></slot></div>`}renderTitle(){let{heading:e,headingLevel:l,description:i}=this;return e||i?a`<div class=${c(t.title)}>${O({class:t.heading,level:l,children:e})}${i?a`<div class=${c(t.description)}>${i}</div>`:null}</div>`:null}renderIcon(e){let{iconFlipRtl:l}=this,i=l==="both"||e==="start"?l==="start":l==="end",s=e==="start"?this.iconStart:this.iconEnd,h=e==="start"?t.iconStart:t.iconEnd;if(s)return g(s,a`<calcite-icon class=${c(h)} .flipRtl=${i} .icon=${s} .scale=${m(this.scale)}></calcite-icon>`)}render(){let{expandable:e,loading:l,expanded:i,label:s,heading:h,messages:b,description:L,menuFlipPlacements:M,menuPlacement:G,moveToItems:F,addToItems:N,setPosition:U,setSize:R,dragDisabled:j,sortDisabled:V,iconEnd:k,hasContentEnd:q,hasContentStart:J,iconStart:K,status:Q}=this,$=i?b.collapse:b.expand,W=!!(h||L||q||J||K||l||Q),x=a`<header class=${c({[t.header]:!0,[t.headerHasContent]:W,[t.headerDraggable]:this.dragHandle})} id=${o.header}>${this.renderIcon("start")}${this.renderContentStart()}${this.renderLoaderStatusIcon()}${this.renderTitle()}</header>`,X=i?v.expanded:v.collapsed,Y=a`<div class=${c(t.headerContainer)}>${this.dragHandle?a`<calcite-sort-handle .addToItems=${N} .disabled=${j} .label=${h||s} .moveToItems=${F} @calciteSortHandleBeforeClose=${this.handleSortHandleBeforeClose} @calciteSortHandleBeforeOpen=${this.handleSortHandleBeforeOpen} @calciteSortHandleClose=${this.handleSortHandleClose} @calciteSortHandleOpen=${this.handleSortHandleOpen} overlay-positioning=fixed .scale=${this.scale} .setPosition=${U} .setSize=${R} .sortDisabled=${V} .topLayerDisabled=${this.topLayerDisabled} ${C(this.setSortHandleEl)}></calcite-sort-handle>`:null}${e?a`<button aria-controls=${o.content} aria-describedby=${o.header} .ariaExpanded=${e?i:void 0} class=${c(t.toggle)} id=${o.toggle} @click=${this.onHeaderClick} title=${$??u} type=button>${x}<div class=${c(t.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}${this.toggleDisplay==="switch"?a`<calcite-switch .checked=${i} .disabled=${this.disabled} inert .label=${$} .scale=${this.scale}></calcite-switch>`:a`<calcite-icon class=${c(t.toggleIcon)} .icon=${X} .scale=${m(this.scale)}></calcite-icon>`}</div></button>`:x}${k&&!e?a`<div class=${c(t.iconEndContainer)}>${this.renderContentEnd()}${this.renderIcon("end")}</div>`:!k&&!e?this.renderContentEnd():null}<calcite-action-menu .flipPlacements=${M??["top","bottom"]} .hidden=${!this.hasMenuActions} .label=${b.options} .overlayPositioning=${this.overlayPositioning} .placement=${G} .scale=${this.scale} .topLayerDisabled=${this.topLayerDisabled}><slot name=${d.headerMenuActions} @slotchange=${this.menuActionsSlotChangeHandler}></slot></calcite-action-menu>${this.renderActionsEnd()}</div>`;return this.interactiveContainer({disabled:this.disabled,children:a`<article aria-label=${s??u} .ariaBusy=${z(l,void 0)} class=${c({[t.container]:!0})}>${Y}<section aria-labelledby=${o.toggle} class=${c({[t.content]:!0,[t.hasSlottedContent]:this.hasContent||l})} .hidden=${!i} id=${o.content}>${this.renderScrim()}</section><slot .hidden=${!i} name=${d.children}></slot></article>`})}};E("calcite-block",f);export{f as Block};
|
package/dist/cdn/CCG4XUGO.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as s,c as r,d}from"./DZ7GWTDD.js";import"./ZKIQHS4D.js";import"./XB2H7XNW.js";import"./G4SOANDF.js";import{G as n,H as c,T as o,g as a,h as l,p as i}from"./YHWEQSNG.js";var h={container:"container"},b=a`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,t=class extends n{constructor(){super(),this.alignment="start",this.layout="block",this.scale="m",this.calciteInternalLabelClick=i({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=b}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(s))}willUpdate(e){e.has("for")&&d(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(r))}labelClickHandler(e){window.getSelection()?.type==="Range"||e.defaultPrevented||this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return l`<div class=${c(h.container)}><slot></slot></div>`}};o("calcite-label",t);export{t as Label};
|
package/dist/cdn/FFVOHLWX.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as Z}from"./ZKIQHS4D.js";import{a as C,b as ee,c as te,d as R,e as _,f as ae,o as re}from"./G4SOANDF.js";import{R as X}from"./YHWEQSNG.js";function U(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,u=Array(e);i<e;i++)u[i]=r[i];return u}function pe(r){if(Array.isArray(r))return U(r)}function ne(r,e){var i=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!i){if(Array.isArray(r)||(i=se(r))||e){i&&(r=i);var u=0,y=function(){};return{s:y,n:function(){return u>=r.length?{done:!0}:{done:!1,value:r[u++]}},e:function(h){throw h},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,n=!0,b=!1;return{s:function(){i=i.call(r)},n:function(){var h=i.next();return n=h.done,h},e:function(h){b=!0,s=h},f:function(){try{n||i.return==null||i.return()}finally{if(b)throw s}}}}function ye(r,e,i){return(e=Te(e))in r?Object.defineProperty(r,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[e]=i,r}function me(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function he(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ie(r,e){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);e&&(u=u.filter(function(y){return Object.getOwnPropertyDescriptor(r,y).enumerable})),i.push.apply(i,u)}return i}function oe(r){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?ie(Object(i),!0).forEach(function(u){ye(r,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):ie(Object(i)).forEach(function(u){Object.defineProperty(r,u,Object.getOwnPropertyDescriptor(i,u))})}return r}function ge(r){return pe(r)||me(r)||se(r)||he()}function we(r,e){if(typeof r!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var u=i.call(r,e);if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Te(r){var e=we(r,"string");return typeof e=="symbol"?e:e+""}function se(r,e){if(r){if(typeof r=="string")return U(r,e);var i={}.toString.call(r).slice(8,-1);return i==="Object"&&r.constructor&&(i=r.constructor.name),i==="Map"||i==="Set"?Array.from(r):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?U(r,e):void 0}}var E={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,i){var u=E.getActiveTrap(e);i!==u&&E.pauseTrap(e);var y=e.indexOf(i);y===-1||e.splice(y,1),e.push(i)},deactivateTrap:function(e,i){var u=e.indexOf(i);u!==-1&&e.splice(u,1),E.unpauseTrap(e)},pauseTrap:function(e){var i=E.getActiveTrap(e);i?._setPausedState(!0)},unpauseTrap:function(e){var i=E.getActiveTrap(e);i&&!i._isManuallyPaused()&&i._setPausedState(!1)}},Fe=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ne=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},L=function(e){return e?.key==="Tab"||e?.keyCode===9},ke=function(e){return L(e)&&!e.shiftKey},Ee=function(e){return L(e)&&e.shiftKey},ue=function(e){return setTimeout(e,0)},j=function(e){for(var i=arguments.length,u=new Array(i>1?i-1:0),y=1;y<i;y++)u[y-1]=arguments[y];return typeof e=="function"?e.apply(void 0,u):e},x=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},De=[],ce=function(e,i){var u=i?.document||document,y=i?.trapStack||De,s=oe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,delayReturnFocus:!0,isolateSubtrees:!1,isKeyForward:ke,isKeyBackward:Ee},i),n={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},b,h=function(t,a,o){return t&&t[a]!==void 0?t[a]:s[o||a]},N=function(t,a){var o=typeof a?.composedPath=="function"?a.composedPath():void 0;return n.containerGroups.findIndex(function(f){var l=f.container,p=f.tabbableNodes;return l.contains(t)||o?.includes(l)||p.find(function(c){return c===t})})},D=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.hasFallback,f=o===void 0?!1:o,l=a.params,p=l===void 0?[]:l,c=s[t];if(typeof c=="function"&&(c=c.apply(void 0,ge(p))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var v=c;if(typeof c=="string"){try{v=u.querySelector(c)}catch(d){throw new Error("`".concat(t,'` appears to be an invalid selector; error="').concat(d.message,'"'))}if(!v&&!f)throw new Error("`".concat(t,"` as selector refers to no known node"))}return v},A=function(t){var a=t.activeElement;return a?a.shadowRoot&&a.shadowRoot.activeElement!==null?A(a.shadowRoot):a:null},k=function(){var t=D("initialFocus",{hasFallback:!0});if(t===!1)return!1;if(t===void 0||t&&!_(t,s.tabbableOptions)){var a=A(u);if(N(a)>=0)t=a;else{var o=n.tabbableGroups[0],f=o&&o.firstTabbableNode;t=f||D("fallbackFocus")}}else t===null&&(t=D("fallbackFocus"));if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},O=function(){if(n.containerGroups=n.containers.map(function(t){var a=ee(t,s.tabbableOptions),o=te(t,s.tabbableOptions),f=a.length>0?a[0]:void 0,l=a.length>0?a[a.length-1]:void 0,p=o.find(function(d){return R(d)}),c=o.slice().reverse().find(function(d){return R(d)}),v=!!a.find(function(d){return C(d)>0});return{container:t,tabbableNodes:a,focusableNodes:o,posTabIndexesFound:v,firstTabbableNode:f,lastTabbableNode:l,firstDomTabbableNode:p,lastDomTabbableNode:c,nextTabbableNode:function(g){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,F=a.indexOf(g);return F<0?T?o.slice(o.indexOf(g)+1).find(function(S){return R(S)}):o.slice(0,o.indexOf(g)).reverse().find(function(S){return R(S)}):a[F+(T?1:-1)]}}}),n.tabbableGroups=n.containerGroups.filter(function(t){return t.tabbableNodes.length>0}),n.tabbableGroups.length<=0&&!D("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(n.containerGroups.find(function(t){return t.posTabIndexesFound})&&n.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},w=function(t){if(t!==!1&&t!==A(document)){if(!t||!t.focus){w(k());return}t.focus({preventScroll:!!s.preventScroll}),n.mostRecentlyFocusedNode=t,Fe(t)&&t.select()}},K=function(t){var a=D("setReturnFocus",{params:[t]});return a||(a===!1?!1:t)},V=function(t){var a=t.target,o=t.event,f=t.isBackward,l=f===void 0?!1:f;a=a||x(o),O();var p=null;if(n.tabbableGroups.length>0){var c=N(a,o),v=c>=0?n.containerGroups[c]:void 0;if(c<0)l?p=n.tabbableGroups[n.tabbableGroups.length-1].lastTabbableNode:p=n.tabbableGroups[0].firstTabbableNode;else if(l){var d=n.tabbableGroups.findIndex(function(M){var q=M.firstTabbableNode;return a===q});if(d<0&&(v.container===a||_(a,s.tabbableOptions)&&!R(a,s.tabbableOptions)&&!v.nextTabbableNode(a,!1))&&(d=c),d>=0){var g=d===0?n.tabbableGroups.length-1:d-1,T=n.tabbableGroups[g];p=C(a)>=0?T.lastTabbableNode:T.lastDomTabbableNode}else L(o)||(p=v.nextTabbableNode(a,!1))}else{var F=n.tabbableGroups.findIndex(function(M){var q=M.lastTabbableNode;return a===q});if(F<0&&(v.container===a||_(a,s.tabbableOptions)&&!R(a,s.tabbableOptions)&&!v.nextTabbableNode(a))&&(F=c),F>=0){var S=F===n.tabbableGroups.length-1?0:F+1,P=n.tabbableGroups[S];p=C(a)>=0?P.firstTabbableNode:P.firstDomTabbableNode}else L(o)||(p=v.nextTabbableNode(a))}}else p=D("fallbackFocus");return p},B=function(t){var a=x(t);if(!(N(a,t)>=0)){if(j(s.clickOutsideDeactivates,t)){b.deactivate({returnFocus:s.returnFocusOnDeactivate});return}j(s.allowOutsideClick,t)||t.preventDefault()}},W=function(t){var a=x(t),o=N(a,t)>=0;if(o||a instanceof Document)o&&(n.mostRecentlyFocusedNode=a);else{t.stopImmediatePropagation();var f,l=!0;if(n.mostRecentlyFocusedNode)if(C(n.mostRecentlyFocusedNode)>0){var p=N(n.mostRecentlyFocusedNode),c=n.containerGroups[p].tabbableNodes;if(c.length>0){var v=c.findIndex(function(d){return d===n.mostRecentlyFocusedNode});v>=0&&(s.isKeyForward(n.recentNavEvent)?v+1<c.length&&(f=c[v+1],l=!1):v-1>=0&&(f=c[v-1],l=!1))}}else n.containerGroups.some(function(d){return d.tabbableNodes.some(function(g){return C(g)>0})})||(l=!1);else l=!1;l&&(f=V({target:n.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(n.recentNavEvent)})),w(f||n.mostRecentlyFocusedNode||k())}n.recentNavEvent=void 0},de=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n.recentNavEvent=t;var o=V({event:t,isBackward:a});o&&(L(t)&&t.preventDefault(),w(o))},Y=function(t){(s.isKeyForward(t)||s.isKeyBackward(t))&&de(t,s.isKeyBackward(t))},$=function(t){Ne(t)&&j(s.escapeDeactivates,t)!==!1&&(t.preventDefault(),b.deactivate())},z=function(t){var a=x(t);N(a,t)>=0||j(s.clickOutsideDeactivates,t)||j(s.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())},J=function(){if(n.active){E.activateTrap(y,b);var t;return s.delayInitialFocus?t=new Promise(function(a){n.delayInitialFocusTimer=ue(function(){w(k()),a()})}):w(k()),u.addEventListener("focusin",W,!0),u.addEventListener("mousedown",B,{capture:!0,passive:!1}),u.addEventListener("touchstart",B,{capture:!0,passive:!1}),u.addEventListener("click",z,{capture:!0,passive:!1}),u.addEventListener("keydown",Y,{capture:!0,passive:!1}),u.addEventListener("keydown",$),t}},ve=function(t){n.active&&!n.paused&&b._setSubtreeIsolation(!1),n.adjacentElements.clear(),n.alreadySilent.clear();var a=new Set,o=new Set,f=ne(t),l;try{for(f.s();!(l=f.n()).done;){var p=l.value;a.add(p);for(var c=typeof ShadowRoot<"u"&&p.getRootNode()instanceof ShadowRoot,v=p;v;){a.add(v);var d=v.parentElement,g=[];d?g=d.children:!d&&c&&(g=v.getRootNode().children,d=v.getRootNode().host,c=typeof ShadowRoot<"u"&&d.getRootNode()instanceof ShadowRoot);var T=ne(g),F;try{for(T.s();!(F=T.n()).done;){var S=F.value;o.add(S)}}catch(P){T.e(P)}finally{T.f()}v=d}}}catch(P){f.e(P)}finally{f.f()}a.forEach(function(P){o.delete(P)}),n.adjacentElements=o},Q=function(){if(n.active)return u.removeEventListener("focusin",W,!0),u.removeEventListener("mousedown",B,!0),u.removeEventListener("touchstart",B,!0),u.removeEventListener("click",z,!0),u.removeEventListener("keydown",Y,!0),u.removeEventListener("keydown",$),b},be=function(t){var a=n.mostRecentlyFocusedNode;if(a){var o=t.some(function(l){var p=Array.from(l.removedNodes);return p.some(function(c){return c===a||typeof c.contains=="function"&&c.contains(a)})});if(o&&n.containers.some(function(l){return l?.isConnected})){O();var f=k();w(f)}}},H=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(be):void 0,I=function(){H&&(H.disconnect(),n.active&&!n.paused&&n.containers.map(function(t){H.observe(t,{subtree:!0,childList:!0})}))};return b={get active(){return n.active},get paused(){return n.paused},activate:function(t){if(n.active)return this;var a=h(t,"onActivate"),o=h(t,"onPostActivate"),f=h(t,"checkCanFocusTrap"),l=E.getActiveTrap(y),p=!1;if(l&&!l.paused){var c;(c=l._setSubtreeIsolation)===null||c===void 0||c.call(l,!1),p=!0}try{f||O(),n.active=!0,n.paused=!1,n.nodeFocusedBeforeActivation=A(u),a?.({trap:b});var v=function(){f&&O();var T=function(){b._setSubtreeIsolation(!0),I(),o?.({trap:b})},F=J();F?F.then(T):T()};if(f)return f(n.containers.concat()).then(v,v),this;v()}catch(g){if(l===E.getActiveTrap(y)&&p){var d;(d=l._setSubtreeIsolation)===null||d===void 0||d.call(l,!0)}throw g}return this},deactivate:function(t){if(!n.active)return this;var a=oe({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},t);clearTimeout(n.delayInitialFocusTimer),n.delayInitialFocusTimer=void 0,n.paused||b._setSubtreeIsolation(!1),n.alreadySilent.clear(),Q(),n.active=!1,n.paused=!1,I(),E.deactivateTrap(y,b);var o=h(a,"onDeactivate"),f=h(a,"onPostDeactivate"),l=h(a,"checkCanReturnFocus"),p=h(a,"delayReturnFocus"),c=h(a,"returnFocus","returnFocusOnDeactivate");o?.({trap:b});var v=function(){c&&w(K(n.nodeFocusedBeforeActivation)),f?.({trap:b})},d=function(){p&&c?ue(v):v()};return c&&l?(l(K(n.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(t){return n.active?(n.manuallyPaused=!0,this._setPausedState(!0,t)):this},unpause:function(t){return n.active?(n.manuallyPaused=!1,y[y.length-1]!==this?this:this._setPausedState(!1,t)):this},updateContainerElements:function(t){var a=[].concat(t).filter(Boolean);return n.containers=a.map(function(o){return typeof o=="string"?u.querySelector(o):o}),s.isolateSubtrees&&ve(n.containers),n.active&&(O(),n.paused||b._setSubtreeIsolation(!0)),I(),this}},Object.defineProperties(b,{_isManuallyPaused:{value:function(){return n.manuallyPaused}},_setPausedState:{value:function(t,a){if(n.paused===t)return this;if(n.paused=t,t){var o=h(a,"onPause"),f=h(a,"onPostPause");o?.({trap:b}),Q(),b._setSubtreeIsolation(!1),I(),f?.({trap:b})}else{var l=h(a,"onUnpause"),p=h(a,"onPostUnpause");l?.({trap:b});var c=function(){O();var d=function(){b._setSubtreeIsolation(!0),I(),p?.({trap:b})},g=J();g?g.then(d):d()};c()}return this}},_setSubtreeIsolation:{value:function(t){s.isolateSubtrees&&n.adjacentElements.forEach(function(a){var o;t?s.isolateSubtrees==="aria-hidden"?((a.ariaHidden==="true"||((o=a.getAttribute("aria-hidden"))===null||o===void 0?void 0:o.toLowerCase())==="true")&&n.alreadySilent.add(a),a.setAttribute("aria-hidden","true")):((a.inert||a.hasAttribute("inert"))&&n.alreadySilent.add(a),a.setAttribute("inert",!0)):n.alreadySilent.has(a)||(s.isolateSubtrees==="aria-hidden"?a.removeAttribute("aria-hidden"):a.removeAttribute("inert"))})}}}),b.updateContainerElements(e),b};function le(r,{focusTrapOptions:e},i){return!e?.extraContainers&&!i?r:[r,...fe(e?.extraContainers),...fe(i)]}function fe(r=[]){return Array.isArray(r)?r:[r]}var G=new WeakSet;function Ae(r,e){let i=e&&e!==document.body&&e!==document.documentElement;return!G.has(r)&&i&&re(e),!1}function Se(r,e){let i=e?.fallbackFocus||r,u=e?.clickOutsideDeactivates??!0,y;return{fallbackFocus:i,...e,document:r.ownerDocument,tabbableOptions:ae,trapStack:X().focusTrapStack,clickOutsideDeactivates:s=>(G.has(r)||G.add(r),typeof u=="function"?u(s):u),onActivate:s=>{e?.escapeDeactivates&&(y=new AbortController,r.addEventListener("keydown",n=>{if(n.key==="Escape"){let b=e?.escapeDeactivates;(typeof b=="function"?b(n):b??!0)&&s.trap.deactivate()}},{signal:y.signal})),e?.onActivate?.(s)},onDeactivate:s=>{y?.abort(),y=void 0,e?.onDeactivate?.(s)},onPostDeactivate:()=>{G.delete(r)},setReturnFocus:s=>{let n=typeof e?.setReturnFocus=="function"?e.setReturnFocus(s):e?.setReturnFocus;return n===void 0?Ae(r,s):n}}}var Le=(r={})=>Z((e,i)=>{let u,y,s,n=!1,b=r.focusTrapOptions,h=()=>r.triggerProp?!!e[r.triggerProp]:!0,N=()=>r.triggerProp?h():n,D=()=>typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled,A=()=>{let w=y||e.el;w.isConnected&&(u||(s||=le(w,e),u=ce(s,Se(w,{...b,...e.focusTrapOptions}))),D()&&u.activate())},k=()=>{u?.deactivate()};return i.onConnected(()=>{u&&N()&&A()}),i.onUpdate(w=>{if(!(!e.hasUpdated||!w.has("focusTrapDisabled"))){if(e.focusTrapDisabled||!h()){k();return}N()&&A()}}),i.onDisconnected(()=>k()),{get _instance(){},activate:()=>{n=!0,A()},deactivate:()=>{n=!1,k()},overrideFocusTrapEl:w=>{if(u)throw new Error("Focus trap already created");y=w},setExtraContainers:w=>{let K=y||e.el;s=le(K,e,w)},updateContainerElements:()=>u?.updateContainerElements(s)}});export{Le as a};
|
package/dist/cdn/I3M5I4FT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{d as y}from"./DOIHMBBW.js";import{d as u}from"./4F4R7KYO.js";import{e as C}from"./OUGIMZJ3.js";import{d as P}from"./J2OH4U4P.js";import{a as i}from"./QFRLTOMV.js";import"./2IM7ZZ7U.js";import{H as g,x as d,y as c}from"./G4SOANDF.js";import{E as f,F as m,G as z,H as h,T as x,g as $,h as l}from"./YHWEQSNG.js";var B=$`:host{box-sizing:border-box;background-color:var(--calcite-theme-color-surface-2, 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-theme-font-weight-regular, 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}`,s={main:"main",content:"content",contentBehind:"content--behind",contentBottom:"content-bottom",contentNonInteractive:"content--non-interactive",footer:"footer",positionedSlotWrapper:"positioned-slot-wrapper",contentBehindCenterContent:"center-content"},r={panelStart:"panel-start",panelEnd:"panel-end",panelTop:"panel-top",panelBottom:"panel-bottom",header:"header",footer:"footer",alerts:"alerts",sheets:"sheets",dialogs:"dialogs"},b=class extends z{constructor(){super(),this.defaultSlotRef=f(),this.panelBottomSlotRef=f(),this.panelEndSlotRef=f(),this.panelStartSlotRef=f(),this.panelTopSlotRef=f(),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(e){(e.has("hasPanelTop")&&(this.hasUpdated||this.hasPanelTop!==!1)||e.has("hasPanelBottom")&&(this.hasUpdated||this.hasPanelBottom!==!1))&&(this.hasOnlyPanelBottom=!this.hasPanelTop&&this.hasPanelBottom)}handleCalciteInternalShellPanelResizeStart(e){this.panelIsResizing=!0,e.stopPropagation()}handleCalciteInternalShellPanelResizeEnd(e){this.panelIsResizing=!1,e.stopPropagation()}handleHeaderSlotChange(e){this.hasHeader=!!d(e)}handleFooterSlotChange(e){this.hasFooter=!!d(e)}handleAlertsSlotChange(e){this.hasAlerts=!!d(e),c(e).filter(P).forEach(t=>{t.embedded=!0})}handleSheetsSlotChange(e){this.hasSheets=!!d(e),c(e).filter(y).forEach(t=>{t.embedded=!0})}configurePanels(e,t,o){e.forEach(n=>{let a=n;n.layout=t,n.position=o,a.shellSizingDataProvider=p=>this.getShellPanelSizingData(n,p)})}getDefaultSlotMinSize(e){return this.defaultSlotRef.value?.assignedElements({flatten:!0}).reduce((t,o)=>{let n=window.getComputedStyle(o);return e==="inline"?t+g(n.borderInlineStartWidth)+g(n.borderInlineEndWidth):t+g(n.borderBlockStartWidth)+g(n.borderBlockEndWidth)},0)??0}getDefaultSlotBounds(){let e=this.defaultSlotRef.value?.assignedElements({flatten:!0})??[];return e.length?e.reduce((t,o)=>{let n=o.getBoundingClientRect();return t?{bottom:Math.max(t.bottom,n.bottom),left:Math.min(t.left,n.left),right:Math.max(t.right,n.right),top:Math.min(t.top,n.top)}:{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},null):null}getShellPanelSizingData(e,t){let o=e.assignedSlot?.parentElement;if(!o)return null;let n=o.getBoundingClientRect(),a=this.getDefaultSlotBounds();if(!a)return{availableSize:t==="inline"?n.width:n.height};let p=this.getDefaultSlotMinSize(t),v=window.getComputedStyle(this).direction==="rtl",S;if(t==="inline"){let w=e.position==="start";S=v?w?n.right-a.left:a.right-n.left:w?a.right-n.left:n.right-a.left}else S=e.position==="start"?a.bottom-n.top:n.bottom-a.top;return{availableSize:Math.max(Math.floor(S)-Math.ceil(p),0)}}handlePanelTopChange(e){let t=c(e).filter(u);this.hasPanelTop=d(e),this.configurePanels(t,"horizontal","start"),t.forEach(o=>{o.layout="horizontal",o.position="start"})}handlePanelBottomChange(e){let t=c(e).filter(u);this.hasPanelBottom=d(e),this.configurePanels(t,"horizontal","end"),t.forEach(o=>{o.layout="horizontal",o.position="end"})}handlePanelStartChange(e){let t=c(e).filter(u);this.configurePanels(t,"vertical","start"),t.forEach(o=>{o.layout="vertical",o.position="start"})}handlePanelEndChange(e){let t=c(e).filter(u);this.configurePanels(t,"vertical","end"),t.forEach(o=>{o.layout="vertical",o.position="end"})}handleDialogsSlotChange(e){this.hasDialogs=!!d(e),c(e).filter(C).forEach(t=>{t.embedded=!0})}renderHeader(){return l`<div .hidden=${!this.hasHeader}>${i("header",l`<slot name=${r.header} @slotchange=${this.handleHeaderSlotChange}></slot>`)}</div>`}renderFooter(){return i("footer",l`<div class=${h(s.footer)} .hidden=${!this.hasFooter}><slot name=${r.footer} @slotchange=${this.handleFooterSlotChange}></slot></div>`)}renderAlerts(){return l`<div .hidden=${!this.hasAlerts}>${i("alerts",l`<slot name=${r.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</div>`}renderSheets(){return l`<div .hidden=${!this.hasSheets}>${i("sheets",l`<slot name=${r.sheets} @slotchange=${this.handleSheetsSlotChange}></slot>`)}</div>`}renderDialogs(){return l`<div .hidden=${!this.hasDialogs}>${i("dialogs",l`<slot name=${r.dialogs} @slotchange=${this.handleDialogsSlotChange}></slot>`)}</div>`}renderContent(){let{panelIsResizing:e}=this,t=i("default-slot",l`<slot ${m(this.defaultSlotRef)}></slot>`),o=e?l`<div class=${h(s.contentNonInteractive)}>${t}</div>`:t,n=i("panel-bottom-slot",l`<slot name=${r.panelBottom} @slotchange=${this.handlePanelBottomChange} ${m(this.panelBottomSlotRef)}></slot>`),a=i("panel-top-slot",l`<slot name=${r.panelTop} @slotchange=${this.handlePanelTopChange} ${m(this.panelTopSlotRef)}></slot>`),p="content-container";return this.contentBehind?[i(p,l`<div class=${h({[s.content]:!0,[s.contentBehind]:!0})}>${o}</div>`),l`<div class=${h({[s.contentBehindCenterContent]:!0,[s.contentBottom]:this.hasOnlyPanelBottom})}>${a}${n}</div>`]:[i(p,l`<div class=${h({[s.content]:!0,[s.contentBottom]:this.hasOnlyPanelBottom})}>${a}${o}${n}</div>`)]}renderMain(){return l`<div class=${h(s.main)}><slot name=${r.panelStart} @slotchange=${this.handlePanelStartChange} ${m(this.panelStartSlotRef)}></slot>${this.renderContent()}<slot name=${r.panelEnd} @slotchange=${this.handlePanelEndChange} ${m(this.panelEndSlotRef)}></slot></div>`}renderPositionedSlots(){return l`<div class=${h(s.positionedSlotWrapper)}>${this.renderAlerts()}${this.renderDialogs()}${this.renderSheets()}</div>`}render(){return l`${this.renderHeader()}${this.renderMain()}${this.renderFooter()}${this.renderPositionedSlots()}`}};x("calcite-shell",b);export{b as Shell};
|