@esri/solutions-components 0.3.5 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/buffer-tools_6.cjs.entry.js +26 -8
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +2 -2
- package/dist/cjs/calcite-input-message_5.cjs.entry.js +6 -4
- package/dist/cjs/calcite-shell-panel_14.cjs.entry.js +2 -2
- package/dist/cjs/{csvUtils-83af7ae1.js → csvUtils-34666909.js} +1 -1
- package/dist/cjs/{interfaces-772edf61.js → interfaces-17c631bf.js} +1 -1
- package/dist/cjs/layer-table.cjs.entry.js +3 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/map-card.cjs.entry.js +1 -1
- package/dist/cjs/{mapViewUtils-55ac76cb.js → mapViewUtils-24d1d859.js} +1 -1
- package/dist/cjs/public-notification.cjs.entry.js +41 -7
- package/dist/cjs/solution-configuration.cjs.entry.js +2 -2
- package/dist/cjs/solution-contents_3.cjs.entry.js +2 -2
- package/dist/cjs/{solution-store-39726b81.js → solution-store-2dbab624.js} +1 -1
- package/dist/cjs/solutions-components.cjs.js +1 -1
- package/dist/collection/components/buffer-tools/buffer-tools.js +48 -0
- package/dist/collection/components/map-draw-tools/map-draw-tools.js +10 -4
- package/dist/collection/components/public-notification/public-notification.css +12 -12
- package/dist/collection/components/public-notification/public-notification.js +50 -4
- package/dist/collection/components/refine-selection/refine-selection.js +4 -2
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.css +1 -0
- package/dist/collection/components/refine-selection-tools/refine-selection-tools.js +3 -1
- package/dist/collection/demos/new-public-notification.html +7 -6
- package/dist/collection/utils/interfaces.js +1 -1
- package/dist/collection/utils/interfaces.ts +7 -2
- package/dist/components/buffer-tools2.js +10 -0
- package/dist/components/interfaces3.js +1 -1
- package/dist/components/map-draw-tools2.js +10 -4
- package/dist/components/public-notification.js +40 -6
- package/dist/components/refine-selection-tools2.js +4 -2
- package/dist/components/refine-selection2.js +4 -2
- package/dist/esm/buffer-tools_6.entry.js +26 -8
- package/dist/esm/calcite-combobox_3.entry.js +2 -2
- package/dist/esm/calcite-input-message_5.entry.js +6 -4
- package/dist/esm/calcite-shell-panel_14.entry.js +2 -2
- package/dist/esm/{csvUtils-eb231cfb.js → csvUtils-ae3004b9.js} +1 -1
- package/dist/esm/{interfaces-3b23a5f9.js → interfaces-d0d83efa.js} +1 -1
- package/dist/esm/layer-table.entry.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/map-card.entry.js +1 -1
- package/dist/esm/{mapViewUtils-e5d8a1e1.js → mapViewUtils-541e7a3c.js} +1 -1
- package/dist/esm/public-notification.entry.js +41 -7
- package/dist/esm/solution-configuration.entry.js +2 -2
- package/dist/esm/solution-contents_3.entry.js +2 -2
- package/dist/esm/{solution-store-c0bf9200.js → solution-store-41e15f1c.js} +1 -1
- package/dist/esm/solutions-components.js +1 -1
- package/dist/solutions-components/demos/new-public-notification.html +7 -6
- package/dist/solutions-components/p-05e64bd1.js +498 -2
- package/dist/solutions-components/p-08a95b33.entry.js +138 -0
- package/dist/solutions-components/p-0da5bbdf.entry.js +91 -0
- package/dist/solutions-components/p-0ef91144.entry.js +913 -0
- package/dist/solutions-components/p-0f523243.entry.js +1916 -0
- package/dist/solutions-components/p-11b9510e.entry.js +173 -0
- package/dist/solutions-components/p-1b875d94.entry.js +58 -0
- package/dist/solutions-components/p-1c567f3a.js +23 -16
- package/dist/solutions-components/p-1c883db9.entry.js +43 -0
- package/dist/solutions-components/p-1f225056.js +322 -0
- package/dist/solutions-components/p-1f499e67.entry.js +72 -0
- package/dist/solutions-components/p-20d3d758.entry.js +881 -0
- package/dist/solutions-components/p-2274ac9e.entry.js +160 -0
- package/dist/solutions-components/p-23ec5ac5.entry.js +93 -0
- package/dist/solutions-components/p-2447798c.entry.js +155 -0
- package/dist/solutions-components/p-2525e691.entry.js +432 -0
- package/dist/solutions-components/p-2561f5b5.js +4092 -0
- package/dist/solutions-components/p-29f887c0.entry.js +234 -0
- package/dist/solutions-components/p-2a0d8047.entry.js +345 -0
- package/dist/solutions-components/p-2c177e6a.entry.js +101 -0
- package/dist/solutions-components/p-2e9ed892.js +46 -1
- package/dist/solutions-components/p-316f56db.js +219 -2
- package/dist/solutions-components/p-327f3ebf.entry.js +98 -0
- package/dist/solutions-components/p-356f8b54.entry.js +138 -0
- package/dist/solutions-components/p-359c58de.entry.js +172 -0
- package/dist/solutions-components/p-37336c0d.entry.js +116 -0
- package/dist/solutions-components/p-374a5031.js +105 -2
- package/dist/solutions-components/p-39ea6ef4.entry.js +71 -0
- package/dist/solutions-components/p-3b010ce1.js +17 -1
- package/dist/solutions-components/p-4307dacd.js +194 -1
- package/dist/solutions-components/p-44da2507.js +405 -14
- package/dist/solutions-components/p-46bdffe8.entry.js +54 -0
- package/dist/solutions-components/p-4894bbeb.js +53 -2
- package/dist/solutions-components/p-4cd569f1.entry.js +1298 -0
- package/dist/solutions-components/p-4d4160f9.entry.js +121 -0
- package/dist/solutions-components/p-4e32bf8c.js +482 -1
- package/dist/solutions-components/p-4e9cbd32.entry.js +184 -0
- package/dist/solutions-components/p-508317b3.js +13 -2
- package/dist/solutions-components/p-54697d58.entry.js +198 -0
- package/dist/solutions-components/p-55c79103.entry.js +311 -0
- package/dist/solutions-components/p-57fd19c0.entry.js +706 -0
- package/dist/solutions-components/p-59b48fde.entry.js +443 -0
- package/dist/solutions-components/p-60e0e6a0.entry.js +214 -0
- package/dist/solutions-components/p-621d0534.entry.js +123 -0
- package/dist/solutions-components/p-63f6e8f1.js +14 -1
- package/dist/solutions-components/p-66aeec57.entry.js +61 -0
- package/dist/solutions-components/p-69834f46.entry.js +618 -0
- package/dist/solutions-components/p-6d9da8e5.entry.js +21530 -0
- package/dist/solutions-components/p-6e0da576.js +13 -1
- package/dist/solutions-components/p-6ec3f294.entry.js +106 -0
- package/dist/solutions-components/p-6fe17794.js +9 -1
- package/dist/solutions-components/p-7024cb16.entry.js +72 -0
- package/dist/solutions-components/p-70535506.entry.js +226 -0
- package/dist/solutions-components/p-708a63a8.js +12 -1
- package/dist/solutions-components/p-729708a3.js +14 -1
- package/dist/solutions-components/p-73e23995.js +6 -1
- package/dist/solutions-components/p-74b29d75.entry.js +231 -0
- package/dist/solutions-components/p-74b7ee25.entry.js +711 -0
- package/dist/solutions-components/p-77182c3a.js +3015 -1
- package/dist/solutions-components/p-78b3ef80.entry.js +456 -0
- package/dist/solutions-components/p-79709c19.js +60 -3
- package/dist/solutions-components/p-7a46ef97.js +181 -2
- package/dist/solutions-components/p-7be159e6.entry.js +175 -0
- package/dist/solutions-components/p-7d4451c2.entry.js +71 -0
- package/dist/solutions-components/p-7daea1df.js +41 -1
- package/dist/solutions-components/p-7e39e5ad.entry.js +102 -0
- package/dist/solutions-components/p-7fb45059.entry.js +43 -0
- package/dist/solutions-components/p-815533de.js +306 -3
- package/dist/solutions-components/p-816622ca.entry.js +248 -0
- package/dist/solutions-components/p-83166522.js +205 -2
- package/dist/solutions-components/p-83bd1991.entry.js +36 -0
- package/dist/solutions-components/p-856464d7.entry.js +572 -0
- package/dist/solutions-components/p-8c349bad.entry.js +347 -0
- package/dist/solutions-components/p-8dccb390.entry.js +1986 -0
- package/dist/solutions-components/p-904c185a.entry.js +228 -0
- package/dist/solutions-components/p-9092f8b3.entry.js +156 -0
- package/dist/solutions-components/p-9371145a.entry.js +477 -0
- package/dist/solutions-components/p-93d3119d.js +1948 -1
- package/dist/solutions-components/p-95ec8062.entry.js +173 -0
- package/dist/solutions-components/p-991ee695.js +109 -1
- package/dist/solutions-components/p-9a57dab7.entry.js +213 -0
- package/dist/solutions-components/p-9a9955db.js +41 -1
- package/dist/solutions-components/p-9c1ebc90.js +35 -16
- package/dist/solutions-components/p-9eba5c66.js +399 -3
- package/dist/solutions-components/p-a033a507.entry.js +252 -0
- package/dist/solutions-components/p-a3773415.entry.js +1132 -0
- package/dist/solutions-components/p-a44fe40f.entry.js +94 -0
- package/dist/solutions-components/p-a5b1ab03.js +33 -3
- package/dist/solutions-components/p-a5b2c13d.entry.js +723 -0
- package/dist/solutions-components/p-a6d729b7.entry.js +85 -0
- package/dist/solutions-components/p-a8005026.entry.js +565 -0
- package/dist/solutions-components/p-a80b3880.js +14 -1
- package/dist/solutions-components/p-a89198a3.entry.js +2620 -0
- package/dist/solutions-components/p-aa04bd1f.entry.js +95 -0
- package/dist/solutions-components/p-aa0a0922.entry.js +80 -0
- package/dist/solutions-components/p-ae1fd76b.js +11 -1
- package/dist/solutions-components/p-b2cf435e.entry.js +87 -0
- package/dist/solutions-components/p-b359dc78.js +41 -1
- package/dist/solutions-components/p-b57bc4eb.entry.js +71 -0
- package/dist/solutions-components/p-b75cc407.entry.js +145 -0
- package/dist/solutions-components/p-b911cb75.entry.js +71 -0
- package/dist/solutions-components/p-b965e177.entry.js +335 -0
- package/dist/solutions-components/p-b978636e.js +14 -1
- package/dist/solutions-components/p-ba10a5c8.entry.js +42 -0
- package/dist/solutions-components/p-bd67334c.js +122 -2
- package/dist/solutions-components/p-bde20dba.entry.js +212 -0
- package/dist/solutions-components/p-be0b5a94.entry.js +248 -0
- package/dist/solutions-components/p-c023e6a1.js +2028 -2
- package/dist/solutions-components/p-c27b0c2d.entry.js +150 -0
- package/dist/solutions-components/p-c579ed60.entry.js +447 -0
- package/dist/solutions-components/p-c92bc231.js +101 -2
- package/dist/solutions-components/p-cc815aca.js +839 -16
- package/dist/solutions-components/p-cc8beabb.entry.js +695 -0
- package/dist/solutions-components/p-cdc46c0c.js +1751 -2
- package/dist/solutions-components/p-d12e6992.entry.js +118 -0
- package/dist/solutions-components/p-d1dfed6b.entry.js +179 -0
- package/dist/solutions-components/p-d48a24e6.js +754 -2
- package/dist/solutions-components/p-d96ee3ef.entry.js +579 -0
- package/dist/solutions-components/p-dbc9a5a8.js +80 -0
- package/dist/solutions-components/p-dcdbe712.entry.js +278 -0
- package/dist/solutions-components/p-de39206f.entry.js +113 -0
- package/dist/solutions-components/p-de5416e8.js +28 -1
- package/dist/solutions-components/p-df420d54.entry.js +213 -0
- package/dist/solutions-components/p-e3138cf0.entry.js +20 -0
- package/dist/solutions-components/p-e4845fec.entry.js +152 -0
- package/dist/solutions-components/p-e611d8c8.js +28 -1
- package/dist/solutions-components/p-e947d3b0.js +5 -1
- package/dist/solutions-components/p-ea534300.js +41 -2
- package/dist/solutions-components/p-ec84ee85.entry.js +55 -0
- package/dist/solutions-components/p-ed36c637.entry.js +85 -0
- package/dist/solutions-components/p-f0add71c.js +74 -0
- package/dist/solutions-components/p-f42e014b.js +171 -2
- package/dist/solutions-components/p-fc02e7de.entry.js +308 -0
- package/dist/solutions-components/p-fc884dd6.js +28 -16
- package/dist/solutions-components/p-fcbfa59c.entry.js +181 -0
- package/dist/solutions-components/p-fdc5cf5f.entry.js +138 -0
- package/dist/solutions-components/solutions-components.esm.js +20 -1
- package/dist/solutions-components/utils/interfaces.ts +7 -2
- package/dist/types/components/buffer-tools/buffer-tools.d.ts +9 -1
- package/dist/types/components/public-notification/public-notification.d.ts +26 -0
- package/dist/types/components.d.ts +9 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/utils/interfaces.d.ts +4 -0
- package/package.json +1 -1
- package/dist/solutions-components/p-021432b8.entry.js +0 -12
- package/dist/solutions-components/p-03440b1e.entry.js +0 -11
- package/dist/solutions-components/p-0512635b.entry.js +0 -6
- package/dist/solutions-components/p-086ef115.entry.js +0 -29
- package/dist/solutions-components/p-0b4bf57f.entry.js +0 -6
- package/dist/solutions-components/p-0c088725.entry.js +0 -6
- package/dist/solutions-components/p-0f820c08.entry.js +0 -6
- package/dist/solutions-components/p-164780a0.entry.js +0 -6
- package/dist/solutions-components/p-179a68a0.entry.js +0 -6
- package/dist/solutions-components/p-184b5005.entry.js +0 -11
- package/dist/solutions-components/p-1d082fee.entry.js +0 -11
- package/dist/solutions-components/p-1e6c02a2.entry.js +0 -11
- package/dist/solutions-components/p-20a58e62.entry.js +0 -17
- package/dist/solutions-components/p-20b2458c.entry.js +0 -11
- package/dist/solutions-components/p-245d47c1.entry.js +0 -6
- package/dist/solutions-components/p-2cb057a9.entry.js +0 -11
- package/dist/solutions-components/p-2cc72806.entry.js +0 -23
- package/dist/solutions-components/p-2de1db9c.entry.js +0 -11
- package/dist/solutions-components/p-2e9c7055.entry.js +0 -11
- package/dist/solutions-components/p-2ed5e6c8.entry.js +0 -11
- package/dist/solutions-components/p-3109d940.entry.js +0 -6
- package/dist/solutions-components/p-31a8bcfa.entry.js +0 -6
- package/dist/solutions-components/p-3f88ba73.entry.js +0 -6
- package/dist/solutions-components/p-3fa9b3c8.js +0 -36
- package/dist/solutions-components/p-40c41709.entry.js +0 -6
- package/dist/solutions-components/p-40e963c7.entry.js +0 -11
- package/dist/solutions-components/p-40f480da.entry.js +0 -11
- package/dist/solutions-components/p-49d5d2d3.entry.js +0 -11
- package/dist/solutions-components/p-4f7049a4.entry.js +0 -11
- package/dist/solutions-components/p-506e4d78.entry.js +0 -6
- package/dist/solutions-components/p-576fdcab.entry.js +0 -6
- package/dist/solutions-components/p-5bd0cf34.entry.js +0 -23
- package/dist/solutions-components/p-65e177f1.entry.js +0 -6
- package/dist/solutions-components/p-67d710c2.entry.js +0 -6
- package/dist/solutions-components/p-7268b445.entry.js +0 -11
- package/dist/solutions-components/p-75ea4667.entry.js +0 -6
- package/dist/solutions-components/p-778c0a36.entry.js +0 -17
- package/dist/solutions-components/p-7a22509b.entry.js +0 -12
- package/dist/solutions-components/p-7bff51db.entry.js +0 -6
- package/dist/solutions-components/p-7d2d0d5d.entry.js +0 -6
- package/dist/solutions-components/p-7f0036f1.entry.js +0 -11
- package/dist/solutions-components/p-8060fb94.entry.js +0 -6
- package/dist/solutions-components/p-80a1b305.entry.js +0 -6
- package/dist/solutions-components/p-81eae877.entry.js +0 -12
- package/dist/solutions-components/p-84e86b8b.entry.js +0 -6
- package/dist/solutions-components/p-877dd0dc.entry.js +0 -18
- package/dist/solutions-components/p-9106950a.entry.js +0 -11
- package/dist/solutions-components/p-979804a4.entry.js +0 -11
- package/dist/solutions-components/p-9862baa8.entry.js +0 -11
- package/dist/solutions-components/p-9b5a9117.entry.js +0 -12
- package/dist/solutions-components/p-9deff0c2.entry.js +0 -6
- package/dist/solutions-components/p-9f400eeb.entry.js +0 -6
- package/dist/solutions-components/p-a0639ad1.entry.js +0 -11
- package/dist/solutions-components/p-a33c044e.entry.js +0 -6
- package/dist/solutions-components/p-a516c658.entry.js +0 -6
- package/dist/solutions-components/p-aa0ef36d.entry.js +0 -11
- package/dist/solutions-components/p-aaccbdf3.entry.js +0 -18
- package/dist/solutions-components/p-ab03a5c9.entry.js +0 -11
- package/dist/solutions-components/p-ad469b92.entry.js +0 -11
- package/dist/solutions-components/p-adc86ac3.entry.js +0 -6
- package/dist/solutions-components/p-addc1156.entry.js +0 -11
- package/dist/solutions-components/p-ae846934.entry.js +0 -11
- package/dist/solutions-components/p-b0572fc4.entry.js +0 -37
- package/dist/solutions-components/p-b4e476b7.js +0 -257
- package/dist/solutions-components/p-b668daf8.js +0 -21
- package/dist/solutions-components/p-b6e6eae1.entry.js +0 -6
- package/dist/solutions-components/p-bc317a7f.entry.js +0 -6
- package/dist/solutions-components/p-bd4d0773.entry.js +0 -6
- package/dist/solutions-components/p-be41429f.js +0 -21
- package/dist/solutions-components/p-bf6b6353.entry.js +0 -11
- package/dist/solutions-components/p-c2e3dfbb.entry.js +0 -11
- package/dist/solutions-components/p-c4afae53.entry.js +0 -12
- package/dist/solutions-components/p-c9da1c26.entry.js +0 -6
- package/dist/solutions-components/p-cbf8cd49.entry.js +0 -6
- package/dist/solutions-components/p-cc1a064a.entry.js +0 -11
- package/dist/solutions-components/p-d09a168c.entry.js +0 -6
- package/dist/solutions-components/p-d377f913.entry.js +0 -11
- package/dist/solutions-components/p-d4cefead.entry.js +0 -37
- package/dist/solutions-components/p-d7bc0baf.entry.js +0 -16
- package/dist/solutions-components/p-d8968487.entry.js +0 -11
- package/dist/solutions-components/p-e00a0b86.entry.js +0 -11
- package/dist/solutions-components/p-e9a7ed49.entry.js +0 -11
- package/dist/solutions-components/p-ec27e493.entry.js +0 -11
- package/dist/solutions-components/p-ed6404eb.entry.js +0 -6
- package/dist/solutions-components/p-ef21e195.entry.js +0 -23
- package/dist/solutions-components/p-f6068a2d.entry.js +0 -11
- package/dist/solutions-components/p-f6c4cff3.entry.js +0 -11
- package/dist/solutions-components/p-f847291f.entry.js +0 -6
- package/dist/solutions-components/p-f90fd262.entry.js +0 -11
- package/dist/solutions-components/p-fc973005.entry.js +0 -6
- package/dist/solutions-components/p-ff9fb6bc.entry.js +0 -11
@@ -0,0 +1,432 @@
|
|
1
|
+
/*!
|
2
|
+
* Copyright 2022 Esri
|
3
|
+
* Licensed under the Apache License, Version 2.0
|
4
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
*/
|
6
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './p-c023e6a1.js';
|
7
|
+
import { S as SLOTS$1, C as CSS$1, I as ICONS, T as TEXT, H as HEADING_LEVEL } from './p-b359dc78.js';
|
8
|
+
import { b as getElementDir, t as toAriaBoolean, a as getSlotted } from './p-83166522.js';
|
9
|
+
import { H as Heading } from './p-508317b3.js';
|
10
|
+
import { S as SLOTS$2 } from './p-6e0da576.js';
|
11
|
+
import { u as updateHostInteraction } from './p-7daea1df.js';
|
12
|
+
import { c as createObserver } from './p-9a9955db.js';
|
13
|
+
import { c as connectConditionalSlotComponent, d as disconnectConditionalSlotComponent } from './p-ea534300.js';
|
14
|
+
import './p-729708a3.js';
|
15
|
+
import './p-a80b3880.js';
|
16
|
+
|
17
|
+
const panelCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host([disabled]){pointer-events:none;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}:host{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3);--calcite-panel-max-height:unset;--calcite-panel-width:100%;--calcite-panel-min-width:unset;--calcite-panel-max-width:unset}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}.container{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;max-block-size:var(--calcite-panel-max-height);inline-size:var(--calcite-panel-width);max-inline-size:var(--calcite-panel-max-width);min-inline-size:var(--calcite-panel-min-width);transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}:host([height-scale=s]){--calcite-panel-max-height:40vh}:host([height-scale=m]){--calcite-panel-max-height:60vh}:host([height-scale=l]){--calcite-panel-max-height:80vh}:host([width-scale=s]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 12vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 300px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 150px)}:host([width-scale=m]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 20vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 420px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 240px)}:host([width-scale=l]){--calcite-panel-width:calc(var(--calcite-panel-width-multiplier) * 45vw);--calcite-panel-max-width:calc(var(--calcite-panel-width-multiplier) * 680px);--calcite-panel-min-width:calc(var(--calcite-panel-width-multiplier) * 340px)}.container[hidden]{display:none}.header{-webkit-border-after:1px solid;border-block-end:1px solid;position:sticky;inset-block-start:0px;z-index:400;inline-size:100%;align-items:stretch;justify-content:flex-start;background-color:var(--calcite-ui-foreground-1);border-block-end-color:var(--calcite-ui-border-3);flex:0 0 auto}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;-webkit-margin-end:auto;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}.header-content .heading:only-child{-webkit-margin-after:0px;margin-block-end:0px}.header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{-webkit-margin-start:auto;margin-inline-start:auto}.content-wrapper{overflow:auto}.content-height{block-size:100%}.content-container{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;background-color:var(--calcite-ui-background)}.footer{-webkit-border-before:1px solid;border-block-start:1px solid;position:sticky;inset-block-end:0px;display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);border-block-start-color:var(--calcite-ui-border-3);flex:0 0 auto;min-block-size:3rem;padding:0.5rem}.fab-container{position:sticky;inset-block-end:0px;z-index:300;margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}[hidden]{display:none}";
|
18
|
+
|
19
|
+
const Panel = class {
|
20
|
+
constructor(hostRef) {
|
21
|
+
registerInstance(this, hostRef);
|
22
|
+
this.calcitePanelClose = createEvent(this, "calcitePanelClose", 6);
|
23
|
+
this.calcitePanelDismiss = createEvent(this, "calcitePanelDismiss", 6);
|
24
|
+
this.calcitePanelDismissedChange = createEvent(this, "calcitePanelDismissedChange", 6);
|
25
|
+
this.calcitePanelScroll = createEvent(this, "calcitePanelScroll", 6);
|
26
|
+
this.calcitePanelBackClick = createEvent(this, "calcitePanelBackClick", 6);
|
27
|
+
// --------------------------------------------------------------------------
|
28
|
+
//
|
29
|
+
// Properties
|
30
|
+
//
|
31
|
+
// --------------------------------------------------------------------------
|
32
|
+
/**
|
33
|
+
* When `true`, hides the component.
|
34
|
+
*
|
35
|
+
* @deprecated use `closed` instead.
|
36
|
+
*/
|
37
|
+
this.dismissed = false;
|
38
|
+
/** When `true`, the component will be hidden. */
|
39
|
+
this.closed = false;
|
40
|
+
/**
|
41
|
+
* When `true`, interaction is prevented and the component is displayed with lower opacity.
|
42
|
+
*/
|
43
|
+
this.disabled = false;
|
44
|
+
/**
|
45
|
+
* When `true`, a close button is added to the component.
|
46
|
+
*
|
47
|
+
* @deprecated use `closable` instead
|
48
|
+
*/
|
49
|
+
this.dismissible = false;
|
50
|
+
/** When `true`, displays a close button in the trailing side of the header. */
|
51
|
+
this.closable = false;
|
52
|
+
/**
|
53
|
+
* When `true`, displays a back button in the header.
|
54
|
+
*
|
55
|
+
* @deprecated use `calcite-flow-item` instead.
|
56
|
+
*/
|
57
|
+
this.showBackButton = false;
|
58
|
+
/**
|
59
|
+
* When `true`, a busy indicator is displayed.
|
60
|
+
*/
|
61
|
+
this.loading = false;
|
62
|
+
/**
|
63
|
+
* When `true`, the action menu items in the `header-menu-actions` slot are open.
|
64
|
+
*/
|
65
|
+
this.menuOpen = false;
|
66
|
+
this.resizeObserver = createObserver("resize", () => this.resizeHandler());
|
67
|
+
this.hasStartActions = false;
|
68
|
+
this.hasEndActions = false;
|
69
|
+
this.hasMenuItems = false;
|
70
|
+
this.hasHeaderContent = false;
|
71
|
+
this.hasFooterContent = false;
|
72
|
+
this.hasFooterActions = false;
|
73
|
+
this.hasFab = false;
|
74
|
+
// --------------------------------------------------------------------------
|
75
|
+
//
|
76
|
+
// Private Methods
|
77
|
+
//
|
78
|
+
// --------------------------------------------------------------------------
|
79
|
+
this.resizeHandler = () => {
|
80
|
+
const { panelScrollEl } = this;
|
81
|
+
if (!panelScrollEl ||
|
82
|
+
typeof panelScrollEl.scrollHeight !== "number" ||
|
83
|
+
typeof panelScrollEl.offsetHeight !== "number") {
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
panelScrollEl.tabIndex = panelScrollEl.scrollHeight > panelScrollEl.offsetHeight ? 0 : -1;
|
87
|
+
};
|
88
|
+
this.setContainerRef = (node) => {
|
89
|
+
this.containerEl = node;
|
90
|
+
};
|
91
|
+
this.setCloseRef = (node) => {
|
92
|
+
this.closeButtonEl = node;
|
93
|
+
};
|
94
|
+
this.setBackRef = (node) => {
|
95
|
+
this.backButtonEl = node;
|
96
|
+
};
|
97
|
+
this.panelKeyDownHandler = (event) => {
|
98
|
+
if (this.closable && event.key === "Escape" && !event.defaultPrevented) {
|
99
|
+
this.close();
|
100
|
+
event.preventDefault();
|
101
|
+
}
|
102
|
+
};
|
103
|
+
this.close = () => {
|
104
|
+
this.closed = true;
|
105
|
+
this.calcitePanelDismiss.emit();
|
106
|
+
this.calcitePanelClose.emit();
|
107
|
+
};
|
108
|
+
this.panelScrollHandler = () => {
|
109
|
+
this.calcitePanelScroll.emit();
|
110
|
+
};
|
111
|
+
this.backButtonClick = () => {
|
112
|
+
this.calcitePanelBackClick.emit();
|
113
|
+
};
|
114
|
+
this.handleHeaderActionsStartSlotChange = (event) => {
|
115
|
+
const elements = event.target.assignedElements({
|
116
|
+
flatten: true
|
117
|
+
});
|
118
|
+
this.hasStartActions = !!elements.length;
|
119
|
+
};
|
120
|
+
this.handleHeaderActionsEndSlotChange = (event) => {
|
121
|
+
const elements = event.target.assignedElements({
|
122
|
+
flatten: true
|
123
|
+
});
|
124
|
+
this.hasEndActions = !!elements.length;
|
125
|
+
};
|
126
|
+
this.handleHeaderMenuActionsSlotChange = (event) => {
|
127
|
+
const elements = event.target.assignedElements({
|
128
|
+
flatten: true
|
129
|
+
});
|
130
|
+
this.hasMenuItems = !!elements.length;
|
131
|
+
};
|
132
|
+
this.handleHeaderContentSlotChange = (event) => {
|
133
|
+
const elements = event.target.assignedElements({
|
134
|
+
flatten: true
|
135
|
+
});
|
136
|
+
this.hasHeaderContent = !!elements.length;
|
137
|
+
};
|
138
|
+
this.handleFooterSlotChange = (event) => {
|
139
|
+
const elements = event.target.assignedElements({
|
140
|
+
flatten: true
|
141
|
+
});
|
142
|
+
this.hasFooterContent = !!elements.length;
|
143
|
+
};
|
144
|
+
this.handleFooterActionsSlotChange = (event) => {
|
145
|
+
const elements = event.target.assignedElements({
|
146
|
+
flatten: true
|
147
|
+
});
|
148
|
+
this.hasFooterActions = !!elements.length;
|
149
|
+
};
|
150
|
+
this.handleFabSlotChange = (event) => {
|
151
|
+
const elements = event.target.assignedElements({
|
152
|
+
flatten: true
|
153
|
+
});
|
154
|
+
this.hasFab = !!elements.length;
|
155
|
+
};
|
156
|
+
this.setPanelScrollEl = (el) => {
|
157
|
+
var _a, _b;
|
158
|
+
this.panelScrollEl = el;
|
159
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
160
|
+
if (el) {
|
161
|
+
(_b = this.resizeObserver) === null || _b === void 0 ? void 0 : _b.observe(el);
|
162
|
+
this.resizeHandler();
|
163
|
+
}
|
164
|
+
};
|
165
|
+
}
|
166
|
+
dismissedHandler(value) {
|
167
|
+
this.closed = value;
|
168
|
+
this.calcitePanelDismissedChange.emit();
|
169
|
+
}
|
170
|
+
closedHandler(value) {
|
171
|
+
this.dismissed = value;
|
172
|
+
}
|
173
|
+
dismissibleHandler(value) {
|
174
|
+
this.closable = value;
|
175
|
+
}
|
176
|
+
closableHandler(value) {
|
177
|
+
this.dismissible = value;
|
178
|
+
}
|
179
|
+
//--------------------------------------------------------------------------
|
180
|
+
//
|
181
|
+
// Lifecycle
|
182
|
+
//
|
183
|
+
//--------------------------------------------------------------------------
|
184
|
+
componentDidRender() {
|
185
|
+
updateHostInteraction(this);
|
186
|
+
}
|
187
|
+
// --------------------------------------------------------------------------
|
188
|
+
//
|
189
|
+
// Lifecycle
|
190
|
+
//
|
191
|
+
// --------------------------------------------------------------------------
|
192
|
+
connectedCallback() {
|
193
|
+
const isClosed = this.dismissed || this.closed;
|
194
|
+
const isClosable = this.dismissible || this.closable;
|
195
|
+
if (isClosed) {
|
196
|
+
this.dismissedHandler(isClosed);
|
197
|
+
this.closedHandler(isClosed);
|
198
|
+
}
|
199
|
+
if (isClosable) {
|
200
|
+
this.dismissibleHandler(isClosable);
|
201
|
+
this.closableHandler(isClosable);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
disconnectedCallback() {
|
205
|
+
var _a;
|
206
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
207
|
+
}
|
208
|
+
// --------------------------------------------------------------------------
|
209
|
+
//
|
210
|
+
// Methods
|
211
|
+
//
|
212
|
+
// --------------------------------------------------------------------------
|
213
|
+
/**
|
214
|
+
* Sets focus on the component.
|
215
|
+
*
|
216
|
+
* @param focusId
|
217
|
+
*/
|
218
|
+
async setFocus(focusId) {
|
219
|
+
const { backButtonEl, closeButtonEl, containerEl } = this;
|
220
|
+
if (focusId === "back-button") {
|
221
|
+
backButtonEl === null || backButtonEl === void 0 ? void 0 : backButtonEl.setFocus();
|
222
|
+
return;
|
223
|
+
}
|
224
|
+
if (focusId === "dismiss-button") {
|
225
|
+
closeButtonEl === null || closeButtonEl === void 0 ? void 0 : closeButtonEl.setFocus();
|
226
|
+
return;
|
227
|
+
}
|
228
|
+
if (backButtonEl) {
|
229
|
+
backButtonEl.setFocus();
|
230
|
+
return;
|
231
|
+
}
|
232
|
+
if (closeButtonEl) {
|
233
|
+
closeButtonEl.setFocus();
|
234
|
+
return;
|
235
|
+
}
|
236
|
+
containerEl === null || containerEl === void 0 ? void 0 : containerEl.focus();
|
237
|
+
}
|
238
|
+
/**
|
239
|
+
* Scrolls the component's content to a specified set of coordinates.
|
240
|
+
*
|
241
|
+
* @example
|
242
|
+
* myCalciteFlowItem.scrollContentTo({
|
243
|
+
* left: 0, // Specifies the number of pixels along the X axis to scroll the window or element.
|
244
|
+
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
245
|
+
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
246
|
+
* });
|
247
|
+
* @param options
|
248
|
+
*/
|
249
|
+
async scrollContentTo(options) {
|
250
|
+
var _a;
|
251
|
+
(_a = this.panelScrollEl) === null || _a === void 0 ? void 0 : _a.scrollTo(options);
|
252
|
+
}
|
253
|
+
// --------------------------------------------------------------------------
|
254
|
+
//
|
255
|
+
// Render Methods
|
256
|
+
//
|
257
|
+
// --------------------------------------------------------------------------
|
258
|
+
renderBackButton() {
|
259
|
+
const { el } = this;
|
260
|
+
const rtl = getElementDir(el) === "rtl";
|
261
|
+
const { showBackButton, intlBack, backButtonClick } = this;
|
262
|
+
const label = intlBack || TEXT.back;
|
263
|
+
const icon = rtl ? ICONS.backRight : ICONS.backLeft;
|
264
|
+
return showBackButton ? (h("calcite-action", { "aria-label": label, class: CSS$1.backButton, icon: icon, key: "back-button", onClick: backButtonClick, ref: this.setBackRef, scale: "s", slot: SLOTS$1.headerActionsStart, text: label })) : null;
|
265
|
+
}
|
266
|
+
renderHeaderContent() {
|
267
|
+
const { heading, headingLevel, summary, description, hasHeaderContent } = this;
|
268
|
+
const headingNode = heading ? (h(Heading, { class: CSS$1.heading, level: headingLevel || HEADING_LEVEL }, heading)) : null;
|
269
|
+
const descriptionNode = description || summary ? h("span", { class: CSS$1.description }, description || summary) : null;
|
270
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (h("div", { class: CSS$1.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
271
|
+
}
|
272
|
+
/**
|
273
|
+
* Allows user to override the entire header-content node.
|
274
|
+
*/
|
275
|
+
renderHeaderSlottedContent() {
|
276
|
+
return (h("div", { class: CSS$1.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, h("slot", { name: SLOTS$1.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
277
|
+
}
|
278
|
+
renderHeaderStartActions() {
|
279
|
+
const { hasStartActions } = this;
|
280
|
+
return (h("div", { class: { [CSS$1.headerActionsStart]: true, [CSS$1.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, h("slot", { name: SLOTS$1.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
281
|
+
}
|
282
|
+
renderHeaderActionsEnd() {
|
283
|
+
const { close, hasEndActions, intlClose, closable } = this;
|
284
|
+
const text = intlClose || TEXT.close;
|
285
|
+
const closableNode = closable ? (h("calcite-action", { "aria-label": text, icon: ICONS.close, onClick: close, ref: this.setCloseRef, text: text })) : null;
|
286
|
+
const slotNode = (h("slot", { name: SLOTS$1.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
287
|
+
const showContainer = hasEndActions || closableNode;
|
288
|
+
return (h("div", { class: { [CSS$1.headerActionsEnd]: true, [CSS$1.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, closableNode));
|
289
|
+
}
|
290
|
+
renderMenu() {
|
291
|
+
const { hasMenuItems, intlOptions, menuOpen } = this;
|
292
|
+
return (h("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: intlOptions || TEXT.options, open: menuOpen, placement: "bottom-end" }, h("calcite-action", { icon: ICONS.menu, slot: SLOTS$2.trigger, text: intlOptions || TEXT.options }), h("slot", { name: SLOTS$1.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
|
293
|
+
}
|
294
|
+
renderHeaderNode() {
|
295
|
+
const { showBackButton, hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems } = this;
|
296
|
+
const headerContentNode = this.renderHeaderContent();
|
297
|
+
const showHeader = showBackButton ||
|
298
|
+
hasHeaderContent ||
|
299
|
+
headerContentNode ||
|
300
|
+
hasStartActions ||
|
301
|
+
hasEndActions ||
|
302
|
+
closable ||
|
303
|
+
hasMenuItems;
|
304
|
+
return (h("header", { class: CSS$1.header, hidden: !showHeader }, this.renderBackButton(), this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd(), this.renderMenu()));
|
305
|
+
}
|
306
|
+
renderFooterNode() {
|
307
|
+
const { hasFooterContent, hasFooterActions } = this;
|
308
|
+
const showFooter = hasFooterContent || hasFooterActions;
|
309
|
+
return (h("footer", { class: CSS$1.footer, hidden: !showFooter }, h("slot", { key: "footer-slot", name: SLOTS$1.footer, onSlotchange: this.handleFooterSlotChange }), h("slot", { key: "footer-actions-slot", name: SLOTS$1.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
310
|
+
}
|
311
|
+
renderContent() {
|
312
|
+
const { hasFab } = this;
|
313
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
314
|
+
const containerNode = hasFab ? (h("section", { class: CSS$1.contentContainer }, defaultSlotNode)) : (defaultSlotNode);
|
315
|
+
return (h("div", { class: {
|
316
|
+
[CSS$1.contentWrapper]: true,
|
317
|
+
[CSS$1.contentContainer]: !hasFab,
|
318
|
+
[CSS$1.contentHeight]: hasFab
|
319
|
+
}, onScroll: this.panelScrollHandler, ref: this.setPanelScrollEl }, containerNode, this.renderFab()));
|
320
|
+
}
|
321
|
+
renderFab() {
|
322
|
+
return (h("div", { class: CSS$1.fabContainer, hidden: !this.hasFab }, h("slot", { name: SLOTS$1.fab, onSlotchange: this.handleFabSlotChange })));
|
323
|
+
}
|
324
|
+
render() {
|
325
|
+
const { loading, panelKeyDownHandler, closed, closable } = this;
|
326
|
+
const panelNode = (h("article", { "aria-busy": toAriaBoolean(loading), class: CSS$1.container, hidden: closed, onKeyDown: panelKeyDownHandler, ref: this.setContainerRef, tabIndex: closable ? 0 : -1 }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
327
|
+
return (h(Fragment, null, loading ? h("calcite-scrim", { loading: loading }) : null, panelNode));
|
328
|
+
}
|
329
|
+
get el() { return getElement(this); }
|
330
|
+
static get watchers() { return {
|
331
|
+
"dismissed": ["dismissedHandler"],
|
332
|
+
"closed": ["closedHandler"],
|
333
|
+
"dismissible": ["dismissibleHandler"],
|
334
|
+
"closable": ["closableHandler"]
|
335
|
+
}; }
|
336
|
+
};
|
337
|
+
Panel.style = panelCss;
|
338
|
+
|
339
|
+
/*!
|
340
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
341
|
+
* See https://github.com/Esri/calcite-components/blob/master/LICENSE.md for details.
|
342
|
+
* v1.0.0-beta.97
|
343
|
+
*/
|
344
|
+
const CSS = {
|
345
|
+
main: "main",
|
346
|
+
mainReversed: "main--reversed",
|
347
|
+
content: "content",
|
348
|
+
contentBehind: "content--behind",
|
349
|
+
footer: "footer"
|
350
|
+
};
|
351
|
+
const SLOTS = {
|
352
|
+
centerRow: "center-row",
|
353
|
+
primaryPanel: "primary-panel",
|
354
|
+
contextualPanel: "contextual-panel",
|
355
|
+
panelStart: "panel-start",
|
356
|
+
panelEnd: "panel-end",
|
357
|
+
header: "header",
|
358
|
+
footer: "footer"
|
359
|
+
};
|
360
|
+
|
361
|
+
const shellCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.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-scale{animation-name:in-scale}@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0.01}}:host{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:root{--calcite-floating-ui-transition:var(--calcite-animation-timing)}:host([hidden]){display:none}:host{position:absolute;inset:0px;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing:26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.main--reversed{flex-direction:row-reverse}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0px;border-width:0px;z-index:calc(1 - 1);display:initial}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-end]::slotted(calcite-shell-panel){-webkit-margin-start:auto;margin-inline-start:auto}::slotted(calcite-shell-panel),::slotted(calcite-shell-center-row){position:relative;z-index:1}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-ui-border-3)}::slotted(calcite-tip-manager){position:absolute;z-index:500;box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:0.25rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 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:0.5rem;inset-inline:var(--calcite-shell-tip-spacing)}";
|
362
|
+
|
363
|
+
const Shell = class {
|
364
|
+
constructor(hostRef) {
|
365
|
+
registerInstance(this, hostRef);
|
366
|
+
// --------------------------------------------------------------------------
|
367
|
+
//
|
368
|
+
// Properties
|
369
|
+
//
|
370
|
+
// --------------------------------------------------------------------------
|
371
|
+
/**
|
372
|
+
* Positions the center content behind any `calcite-shell-panel`s.
|
373
|
+
*/
|
374
|
+
this.contentBehind = false;
|
375
|
+
}
|
376
|
+
// --------------------------------------------------------------------------
|
377
|
+
//
|
378
|
+
// Lifecycle
|
379
|
+
//
|
380
|
+
// --------------------------------------------------------------------------
|
381
|
+
connectedCallback() {
|
382
|
+
connectConditionalSlotComponent(this);
|
383
|
+
}
|
384
|
+
disconnectedCallback() {
|
385
|
+
disconnectConditionalSlotComponent(this);
|
386
|
+
}
|
387
|
+
// --------------------------------------------------------------------------
|
388
|
+
//
|
389
|
+
// Render Methods
|
390
|
+
//
|
391
|
+
// --------------------------------------------------------------------------
|
392
|
+
renderHeader() {
|
393
|
+
const hasHeader = !!getSlotted(this.el, SLOTS.header);
|
394
|
+
return hasHeader ? h("slot", { key: "header", name: SLOTS.header }) : null;
|
395
|
+
}
|
396
|
+
renderContent() {
|
397
|
+
const defaultSlotNode = h("slot", { key: "default-slot" });
|
398
|
+
const centerRowSlotNode = h("slot", { key: "center-row-slot", name: SLOTS.centerRow });
|
399
|
+
const contentContainerKey = "content-container";
|
400
|
+
const content = !!this.contentBehind
|
401
|
+
? [
|
402
|
+
h("div", { class: {
|
403
|
+
[CSS.content]: true,
|
404
|
+
[CSS.contentBehind]: true
|
405
|
+
}, key: contentContainerKey }, defaultSlotNode),
|
406
|
+
centerRowSlotNode
|
407
|
+
]
|
408
|
+
: [
|
409
|
+
h("div", { class: CSS.content, key: contentContainerKey }, defaultSlotNode, centerRowSlotNode)
|
410
|
+
];
|
411
|
+
return content;
|
412
|
+
}
|
413
|
+
renderFooter() {
|
414
|
+
const hasFooter = !!getSlotted(this.el, SLOTS.footer);
|
415
|
+
return hasFooter ? (h("div", { class: CSS.footer, key: "footer" }, h("slot", { name: SLOTS.footer }))) : null;
|
416
|
+
}
|
417
|
+
renderMain() {
|
418
|
+
const primaryPanel = getSlotted(this.el, SLOTS.primaryPanel);
|
419
|
+
const mainClasses = {
|
420
|
+
[CSS.main]: true,
|
421
|
+
[CSS.mainReversed]: (primaryPanel === null || primaryPanel === void 0 ? void 0 : primaryPanel.position) === "end"
|
422
|
+
};
|
423
|
+
return (h("div", { class: mainClasses }, h("slot", { name: SLOTS.primaryPanel }), h("slot", { name: SLOTS.panelStart }), this.renderContent(), h("slot", { name: SLOTS.panelEnd }), h("slot", { name: SLOTS.contextualPanel })));
|
424
|
+
}
|
425
|
+
render() {
|
426
|
+
return (h(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter()));
|
427
|
+
}
|
428
|
+
get el() { return getElement(this); }
|
429
|
+
};
|
430
|
+
Shell.style = shellCss;
|
431
|
+
|
432
|
+
export { Panel as calcite_panel, Shell as calcite_shell };
|