@arcgis/map-components 5.0.0-next.162 → 5.0.0-next.164
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/{G4FP7GXM.js → 3UILDMTJ.js} +1 -1
- package/dist/cdn/3V6ZTS7B.js +2 -0
- package/dist/cdn/{ANP7PYGJ.js → 3XJU4K4Z.js} +1 -1
- package/dist/cdn/5KET4V4O.js +2 -0
- package/dist/cdn/7EW22PZD.js +2 -0
- package/dist/cdn/AAGYR4XM.js +2 -0
- package/dist/cdn/AZN2TGWK.js +2 -0
- package/dist/cdn/{NWXN5M4S.js → DPW55W6W.js} +1 -1
- package/dist/cdn/{SK6O74LF.js → DUHFQ4AI.js} +1 -1
- package/dist/cdn/{UNLAUFXF.js → F5I4VDXM.js} +1 -1
- package/dist/cdn/{R2FIOZIL.js → FUHAGBXL.js} +1 -1
- package/dist/cdn/{K6ZTEDKX.js → INYYRLED.js} +1 -1
- package/dist/cdn/{ESNK6MCY.js → IWXXD73F.js} +1 -1
- package/dist/cdn/{FD4A66OJ.js → KDJV5F4T.js} +1 -1
- package/dist/cdn/{SQFVC4KA.js → MJBV536L.js} +1 -1
- package/dist/cdn/MU6C77DZ.js +2 -0
- package/dist/cdn/NPEMOLA3.js +2 -0
- package/dist/cdn/{2AHY7O7C.js → POP5NTRI.js} +1 -1
- package/dist/cdn/SI3PITPE.js +2 -0
- package/dist/cdn/SU6ZGF4G.js +2 -0
- package/dist/cdn/W3AN7XLR.js +2 -0
- package/dist/cdn/{7NOD6U2Y.js → WUISNRWL.js} +1 -1
- package/dist/cdn/X25QBU47.js +2 -0
- package/dist/cdn/X7QWBVC2.js +2 -0
- package/dist/cdn/Z22BBNTK.js +2 -0
- package/dist/cdn/{YXYCWJFF.js → Z6LBCKKH.js} +1 -1
- package/dist/cdn/{AJ64UYFM.js → ZFATBY4D.js} +1 -1
- package/dist/cdn/assets/elevation-profile/t9n/messages.fr.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +3 -3
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +5 -7
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +3 -3
- package/dist/components/arcgis-bookmarks/customElement.d.ts +2 -2
- package/dist/components/arcgis-bookmarks/types.d.ts +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +4 -6
- package/dist/components/arcgis-clipboard/customElement.d.ts +2 -2
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +3 -3
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -1
- package/dist/components/arcgis-directions/customElement.d.ts +4 -5
- package/dist/components/arcgis-directions/customElement.js +5 -5
- package/dist/components/arcgis-editor/customElement.d.ts +2 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature/customElement.js +6 -6
- package/dist/components/arcgis-feature-form/customElement.d.ts +1 -2
- package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
- package/dist/components/arcgis-feature-table/customElement.d.ts +72 -24
- package/dist/components/arcgis-feature-table/customElement.js +28 -13
- package/dist/components/arcgis-feature-templates/customElement.d.ts +7 -6
- package/dist/components/arcgis-feature-templates/customElement.js +2 -2
- package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +16 -16
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +55 -55
- package/dist/components/arcgis-features/customElement.d.ts +6 -8
- package/dist/components/arcgis-features/customElement.js +16 -16
- package/dist/components/arcgis-floor-filter/customElement.d.ts +2 -2
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +1 -1
- package/dist/components/arcgis-home/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list/customElement.d.ts +9 -11
- package/dist/components/arcgis-legend/customElement.d.ts +3 -3
- package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
- package/dist/components/arcgis-link-chart/customElement.d.ts +16 -18
- package/dist/components/arcgis-link-chart/customElement.js +10 -15
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +17 -19
- package/dist/components/arcgis-map/customElement.js +1 -6
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +7 -9
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +1 -1
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +3 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +9 -9
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +3 -3
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +2 -2
- package/dist/components/arcgis-paste/customElement.d.ts +4 -4
- package/dist/components/arcgis-paste/customElement.js +44 -44
- package/dist/components/arcgis-popup/customElement.d.ts +8 -10
- package/dist/components/arcgis-popup/customElement.js +47 -52
- package/dist/components/arcgis-popup/types.d.ts +1 -1
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -2
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +16 -7
- package/dist/components/arcgis-print/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +12 -12
- package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
- package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-scale-bar/customElement.d.ts +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +22 -24
- package/dist/components/arcgis-scene/customElement.js +8 -13
- package/dist/components/arcgis-search/customElement.d.ts +7 -9
- package/dist/components/arcgis-search/customElement.js +8 -9
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +3 -3
- package/dist/components/arcgis-sketch/customElement.d.ts +3 -4
- package/dist/components/arcgis-slice/types.d.ts +2 -2
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +4 -4
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +4 -4
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +2 -2
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +4 -4
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +5 -5
- package/dist/components/arcgis-table-list/customElement.d.ts +7 -8
- package/dist/components/arcgis-time-slider/customElement.d.ts +3 -3
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +14 -2
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +2 -3
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +6 -9
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +47 -40
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +16 -4
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +84 -67
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +7 -3
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +17 -14
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +14 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +63 -50
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +2 -3
- package/dist/components/arcgis-version-management/customElement.d.ts +3 -4
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +3 -3
- package/dist/components/types.d.ts +3 -3
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +12 -12
- package/dist/types/lumina.d.ts +6 -6
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/react.d.ts +6 -6
- package/dist/types/stencil.d.ts +6 -6
- package/package.json +4 -4
- package/dist/cdn/2LQLX6UN.js +0 -2
- package/dist/cdn/BHPXKX47.js +0 -2
- package/dist/cdn/D4LTASH2.js +0 -2
- package/dist/cdn/I5M2Z7WS.js +0 -2
- package/dist/cdn/IWY2NPAG.js +0 -2
- package/dist/cdn/O4RXVEMK.js +0 -2
- package/dist/cdn/P7PWOUNZ.js +0 -2
- package/dist/cdn/Q4B4MXH4.js +0 -2
- package/dist/cdn/QZPDQ6B7.js +0 -2
- package/dist/cdn/RN57AN5P.js +0 -2
- package/dist/cdn/W53OMY3O.js +0 -2
- package/dist/cdn/WREEAAEV.js +0 -2
- package/dist/cdn/WTTBFFC2.js +0 -2
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
import { c as E } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as P, html as u } from "lit";
|
|
4
4
|
import { keyed as F } from "lit/directives/keyed.js";
|
|
5
|
-
import
|
|
6
|
-
import { u as
|
|
5
|
+
import $ from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
|
|
6
|
+
import { u as N } from "../../chunks/useT9n.js";
|
|
7
7
|
import { usePropertyChange as O } from "@arcgis/lumina/controllers";
|
|
8
8
|
import { m as L } from "../../chunks/useViewModel.js";
|
|
9
|
-
import { LitElement as
|
|
10
|
-
import { stripHTML as
|
|
11
|
-
import { unsafeGetElementDirection as
|
|
9
|
+
import { LitElement as S, createEvent as w, safeStyleMap as T, safeClassMap as _ } from "@arcgis/lumina";
|
|
10
|
+
import { stripHTML as V } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
11
|
+
import { unsafeGetElementDirection as C, classes as y } from "@arcgis/toolkit/dom";
|
|
12
12
|
import { createRef as g, ref as m } from "lit/directives/ref.js";
|
|
13
13
|
import { watch as l } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
|
-
import
|
|
15
|
-
import { t as
|
|
14
|
+
import B from "@arcgis/core/support/actions/ActionButton.js";
|
|
15
|
+
import { t as H } from "../../chunks/screenLocation.js";
|
|
16
16
|
import "../arcgis-search-result-renderer/customElement.js";
|
|
17
|
-
const I = P`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-spacing-lg) var(--calcite-spacing-lg) var(--calcite-spacing-xxxl) var(--calcite-spacing-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right{justify-content:flex-end}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}:dir(rtl) .is-docked-top-left,:dir(rtl) .is-docked-bottom-left{justify-content:flex-end}:dir(rtl) .is-docked-top-right,:dir(rtl) .is-docked-bottom-right{justify-content:flex-start}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-spacing-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-spacing-xs));opacity:0}to{transform:translate(0);opacity:1}}`;
|
|
17
|
+
const I = P`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;position:fixed;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-spacing-lg) var(--calcite-spacing-lg) var(--calcite-spacing-xxxl) var(--calcite-spacing-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right{justify-content:flex-end}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}:dir(rtl) .is-docked-top-left,:dir(rtl) .is-docked-bottom-left{justify-content:flex-end}:dir(rtl) .is-docked-top-right,:dir(rtl) .is-docked-bottom-right{justify-content:flex-start}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-spacing-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-spacing-xs));opacity:0}to{transform:translate(0);opacity:1}}`;
|
|
18
18
|
function f(b) {
|
|
19
19
|
return b && Number.parseInt(b.replaceAll(/[^-\d.]/gu, ""), 10) || 0;
|
|
20
20
|
}
|
|
21
|
-
const j = L(
|
|
21
|
+
const j = L($), x = {
|
|
22
22
|
buttonEnabled: !0,
|
|
23
23
|
position: "auto",
|
|
24
24
|
breakpoint: {
|
|
25
25
|
width: 544
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
class W extends
|
|
28
|
+
class W extends S {
|
|
29
29
|
constructor() {
|
|
30
|
-
super(...arguments), this._featuresComponent = g(), this._dockAction = new
|
|
30
|
+
super(...arguments), this._featuresComponent = g(), this._dockAction = new B({ id: "popup-dock-action" }), this._mainContainerNode = g(), this._pointerNode = g(), this.messages = N(), this.viewModel = j(this), this._containerNode = g(), this._popupResizeObserver = new ResizeObserver(() => this._positionContainer()), this._positionContainer = () => {
|
|
31
31
|
this.positionStyle = this._calculatePositionStyle();
|
|
32
|
-
}, this.screenLocation =
|
|
32
|
+
}, this.screenLocation = H(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.alignment = "auto", this.autoCloseEnabled = this.viewModel.autoCloseEnabled, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.dockEnabled = !1, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.features = this.viewModel.features, this.goToOverride = this.viewModel.goToOverride, this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideCollapseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSpinner = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.promises = this.viewModel.promises, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.state = this.viewModel.state, this.topLayerDisabled = !1, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = O()("active", "collapsed", "currentAlignment", "dockEnabled", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = w(), this.arcgisClose = w(), this.arcgisTriggerAction = w();
|
|
33
33
|
}
|
|
34
34
|
static {
|
|
35
35
|
this.properties = { screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, promises: 0, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
@@ -38,7 +38,7 @@ class W extends T {
|
|
|
38
38
|
this.styles = I;
|
|
39
39
|
}
|
|
40
40
|
get trackLocation() {
|
|
41
|
-
return this.
|
|
41
|
+
return this.active && !this.dockEnabled;
|
|
42
42
|
}
|
|
43
43
|
get _featureNavigationTop() {
|
|
44
44
|
const { currentAlignment: t, currentDockPosition: e } = this;
|
|
@@ -51,10 +51,10 @@ class W extends T {
|
|
|
51
51
|
return this._getCurrentDockPosition();
|
|
52
52
|
}
|
|
53
53
|
get dockOptions() {
|
|
54
|
-
return this._dockOptions ||
|
|
54
|
+
return this._dockOptions || x;
|
|
55
55
|
}
|
|
56
56
|
set dockOptions(t) {
|
|
57
|
-
const e = { ...
|
|
57
|
+
const e = { ...x }, i = this.viewModel?.view?.breakpoints, o = {};
|
|
58
58
|
i && (o.width = i.xsmall, o.height = i.xsmall);
|
|
59
59
|
const n = { ...e, ...t }, r = { ...e.breakpoint, ...o }, { breakpoint: a } = n;
|
|
60
60
|
typeof a == "object" ? n.breakpoint = { ...r, ...a } : a && (n.breakpoint = r), this._dockOptions = n;
|
|
@@ -99,9 +99,9 @@ class W extends T {
|
|
|
99
99
|
this.manager.onLifecycle(() => [
|
|
100
100
|
l(() => [this.viewModel?.view?.widthBreakpoint, this.dockEnabled], () => this._handleDockIcon(), { initial: !0 }),
|
|
101
101
|
l(() => [this.dockEnabled, this.messages?.undock, this.messages?.dock], () => this._handleDockEnabled(), { initial: !0 }),
|
|
102
|
-
l(() => this.dockOptions, (
|
|
103
|
-
const { _dockAction: e } = this, i = this._featuresComponent.value?.headerActions;
|
|
104
|
-
i?.remove(
|
|
102
|
+
l(() => [this.dockOptions, this._featuresComponent.value], () => {
|
|
103
|
+
const { _dockAction: t, dockOptions: e } = this, i = this._featuresComponent.value?.headerActions;
|
|
104
|
+
i?.remove(t), e.buttonEnabled && i?.add(t);
|
|
105
105
|
}, { initial: !0 }),
|
|
106
106
|
l(() => [
|
|
107
107
|
this._pointerNode.value,
|
|
@@ -114,8 +114,8 @@ class W extends T {
|
|
|
114
114
|
this.viewModel?.location,
|
|
115
115
|
this.viewModel?.view?.size
|
|
116
116
|
], () => this._positionContainer(), { initial: !0 }),
|
|
117
|
-
l(() => this._mainContainerNode.value, (t
|
|
118
|
-
|
|
117
|
+
l(() => this._mainContainerNode.value, (t) => {
|
|
118
|
+
this._popupResizeObserver.disconnect(), t && this._popupResizeObserver.observe(t);
|
|
119
119
|
}, { initial: !0 }),
|
|
120
120
|
l(() => this.viewModel?.view?.size, (t, e) => this._updateDockEnabledForViewSize(t, e)),
|
|
121
121
|
l(() => this.viewModel?.view?.ready, () => this._setDockEnabledForViewSize(this.dockOptions), { initial: !0 }),
|
|
@@ -123,11 +123,11 @@ class W extends T {
|
|
|
123
123
|
this.viewModel.map = t;
|
|
124
124
|
}, { initial: !0 }),
|
|
125
125
|
l(() => this.screenLocation, (t, e) => this._autoClose(t, e)),
|
|
126
|
-
l(() => [this.
|
|
126
|
+
l(() => [this.active, this._containerNode.value, this.dockEnabled, this.topLayerDisabled], () => this._togglePopover(), { initial: !0 })
|
|
127
127
|
]);
|
|
128
128
|
}
|
|
129
129
|
_togglePopover() {
|
|
130
|
-
this.
|
|
130
|
+
this._containerNode.value?.togglePopover(this.active && !this.dockEnabled && !this.topLayerDisabled);
|
|
131
131
|
}
|
|
132
132
|
_handleClose(t) {
|
|
133
133
|
t.stopPropagation(), this.arcgisClose.emit();
|
|
@@ -155,7 +155,7 @@ class W extends T {
|
|
|
155
155
|
const { _mainContainerNode: e, _popupRect: i, viewModel: o } = this, { view: n } = o, { screenLocation: r } = this;
|
|
156
156
|
if (r == null || !n || !i || !e.value)
|
|
157
157
|
return "top-center";
|
|
158
|
-
const a = window.getComputedStyle(e.value),
|
|
158
|
+
const a = window.getComputedStyle(e.value), c = f(a.maxHeight), s = f(a.height), d = this._getPointerSize(), { height: v, width: M } = i, h = M + d, p = Math.max(v, c, s) + d, z = this._isOutsideView({
|
|
159
159
|
popupHeight: p,
|
|
160
160
|
popupWidth: h,
|
|
161
161
|
screenLocation: r,
|
|
@@ -186,11 +186,11 @@ class W extends T {
|
|
|
186
186
|
return typeof t == "function" ? t.call(this) : t;
|
|
187
187
|
}
|
|
188
188
|
_getCurrentAlignment() {
|
|
189
|
-
return this.dockEnabled || !this.
|
|
189
|
+
return this.dockEnabled || !this.active || !this._mainContainerNode.value ? null : this._calculatePositionResult(this._calculateAutoAlignment(this._callCurrentAlignment(this.alignment)));
|
|
190
190
|
}
|
|
191
191
|
_calculatePositionResult(t) {
|
|
192
192
|
const e = ["left", "right"];
|
|
193
|
-
return
|
|
193
|
+
return C(this.el) === "rtl" && e.reverse(), t?.replace(/start/giu, e[0]).replace(/end/giu, e[1]);
|
|
194
194
|
}
|
|
195
195
|
_callDockPosition(t) {
|
|
196
196
|
return typeof t == "function" ? t.call(this) : t;
|
|
@@ -199,12 +199,12 @@ class W extends T {
|
|
|
199
199
|
return this._calculatePositionResult(this._calculateAutoDockPosition(this._callDockPosition(this.dockOptions?.position)));
|
|
200
200
|
}
|
|
201
201
|
_getCurrentDockPosition() {
|
|
202
|
-
return this.dockEnabled && this.
|
|
202
|
+
return this.dockEnabled && this.active ? this._getDockPosition() : null;
|
|
203
203
|
}
|
|
204
204
|
_calculateAutoDockPosition(t) {
|
|
205
205
|
if (t !== "auto")
|
|
206
206
|
return t;
|
|
207
|
-
const e = this.viewModel?.view, i =
|
|
207
|
+
const e = this.viewModel?.view, i = C(this.el) === "rtl" ? "top-left" : "top-right";
|
|
208
208
|
if (!e)
|
|
209
209
|
return i;
|
|
210
210
|
const { breakpoints: o } = e;
|
|
@@ -269,29 +269,24 @@ class W extends T {
|
|
|
269
269
|
left: t + i.left + a
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
|
+
_getPositionStyleValue(t) {
|
|
273
|
+
return t != null ? `${t}px` : "auto";
|
|
274
|
+
}
|
|
272
275
|
_calculatePositionStyle() {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
top: "0px",
|
|
277
|
-
left: "0px",
|
|
278
|
-
bottom: "0px",
|
|
279
|
-
right: "0px"
|
|
280
|
-
};
|
|
276
|
+
if (this.dockEnabled)
|
|
277
|
+
return;
|
|
278
|
+
const { screenLocation: t } = this;
|
|
281
279
|
if (t == null)
|
|
282
280
|
return;
|
|
281
|
+
const e = this.view?.container?.getBoundingClientRect(), i = this._mainContainerNode.value?.getBoundingClientRect();
|
|
282
|
+
this._popupRect = i;
|
|
283
283
|
const o = this._calculateAlignmentPosition(t.x, t.y, e, i);
|
|
284
284
|
if (o)
|
|
285
|
-
return {
|
|
286
|
-
top: o.top !== void 0 ? `${o.top}px` : "auto",
|
|
287
|
-
left: o.left !== void 0 ? `${o.left}px` : "auto",
|
|
288
|
-
bottom: o.bottom !== void 0 ? `${o.bottom}px` : "auto",
|
|
289
|
-
right: o.right !== void 0 ? `${o.right}px` : "auto"
|
|
290
|
-
};
|
|
285
|
+
return `inset: ${this._getPositionStyleValue(o.top)} ${this._getPositionStyleValue(o.right)} ${this._getPositionStyleValue(o.bottom)} ${this._getPositionStyleValue(o.left)};`;
|
|
291
286
|
}
|
|
292
287
|
_dockingThresholdCrossed(t, e, i) {
|
|
293
|
-
const [o, n] = t, [r, a] = e, { width:
|
|
294
|
-
return o <=
|
|
288
|
+
const [o, n] = t, [r, a] = e, { width: c = 0, height: s = 0 } = i ?? {};
|
|
289
|
+
return o <= c && r > c || o > c && r <= c || n <= s && a > s || n > s && a <= s;
|
|
295
290
|
}
|
|
296
291
|
_updateDockEnabledForViewSize(t, e) {
|
|
297
292
|
if (!t || !e)
|
|
@@ -313,7 +308,7 @@ class W extends T {
|
|
|
313
308
|
this.viewModel?.view?.ready && typeof t.breakpoint == "object" && (this.dockEnabled = this._shouldDockAtCurrentViewSize(t));
|
|
314
309
|
}
|
|
315
310
|
render() {
|
|
316
|
-
const { dockEnabled: t, currentAlignment: e, currentDockPosition: i, positionStyle: o } = this, { active: n, view: r } = this.viewModel, a = n && t,
|
|
311
|
+
const { dockEnabled: t, currentAlignment: e, currentDockPosition: i, positionStyle: o } = this, { active: n, view: r } = this.viewModel, a = n && t, c = n && !t, s = r?.widthBreakpoint, d = r?.heightBreakpoint, v = {
|
|
317
312
|
"aligned-top-center": e === "top-center",
|
|
318
313
|
"aligned-bottom-center": e === "bottom-center",
|
|
319
314
|
"aligned-top-left": e === "top-left",
|
|
@@ -321,7 +316,7 @@ class W extends T {
|
|
|
321
316
|
"aligned-top-right": e === "top-right",
|
|
322
317
|
"aligned-bottom-right": e === "bottom-right",
|
|
323
318
|
"is-docked": a,
|
|
324
|
-
shadow:
|
|
319
|
+
shadow: c,
|
|
325
320
|
"is-docked-top-left": i === "top-left",
|
|
326
321
|
"is-docked-top-center": i === "top-center",
|
|
327
322
|
"is-docked-top-right": i === "top-right",
|
|
@@ -333,15 +328,15 @@ class W extends T {
|
|
|
333
328
|
"is-md-width-breakpoint": s === "medium",
|
|
334
329
|
"is-sm-width-breakpoint": s === "small",
|
|
335
330
|
"is-xs-width-breakpoint": s === "xsmall",
|
|
336
|
-
"is-xl-height-breakpoint":
|
|
337
|
-
"is-lg-height-breakpoint":
|
|
338
|
-
"is-md-height-breakpoint":
|
|
339
|
-
"is-sm-height-breakpoint":
|
|
340
|
-
"is-xs-height-breakpoint":
|
|
331
|
+
"is-xl-height-breakpoint": d === "xlarge",
|
|
332
|
+
"is-lg-height-breakpoint": d === "large",
|
|
333
|
+
"is-md-height-breakpoint": d === "medium",
|
|
334
|
+
"is-sm-height-breakpoint": d === "small",
|
|
335
|
+
"is-xs-height-breakpoint": d === "xsmall"
|
|
341
336
|
};
|
|
342
|
-
return u`<div style=${
|
|
337
|
+
return u`<div style=${T(o)} class=${_(y("root", v, {
|
|
343
338
|
hidden: !n || !o && !t
|
|
344
|
-
}))} .ariaHidden=${!n} .ariaLabel=${
|
|
339
|
+
}))} .ariaHidden=${!n} .ariaLabel=${V(this.heading ?? "")} role=dialog popover=manual ${m(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`;
|
|
345
340
|
}
|
|
346
341
|
_renderPointer() {
|
|
347
342
|
return !this.dockEnabled || !this.active ? u`<div class="pointer" role=presentation><div class=${_(y("pointer-direction", "shadow"))} ${m(this._pointerNode)}></div></div>` : null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type Accessor from "@arcgis/core/core/Accessor.js";
|
|
2
2
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
3
|
-
import type SceneView from "@arcgis/core/views/SceneView";
|
|
4
|
-
import type Slide from "@arcgis/core/webscene/Slide";
|
|
3
|
+
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
4
|
+
import type Slide from "@arcgis/core/webscene/Slide.js";
|
|
5
5
|
|
|
6
6
|
/** @internal */
|
|
7
7
|
export interface PresentationViewModelProperties extends Partial<Pick<PresentationViewModel, "keyboardNavigationEnabled" | "slideId" | "view">> {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type SceneView from "@arcgis/core/views/SceneView";
|
|
2
|
+
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
5
|
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
import type FileLink from "@arcgis/core/widgets/Print/FileLink";
|
|
3
|
-
import type CustomTemplate from "@arcgis/core/widgets/Print/CustomTemplate";
|
|
4
|
-
import type PortalItem from "@arcgis/core/portal/PortalItem";
|
|
5
|
-
import type TemplateOptions from "@arcgis/core/widgets/Print/TemplateOptions";
|
|
2
|
+
import type FileLink from "@arcgis/core/widgets/Print/FileLink.js";
|
|
3
|
+
import type CustomTemplate from "@arcgis/core/widgets/Print/CustomTemplate.js";
|
|
4
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
5
|
+
import type TemplateOptions from "@arcgis/core/widgets/Print/TemplateOptions.js";
|
|
6
6
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
7
7
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
8
|
-
import type FileLink2 from "@arcgis/core/widgets/Print/FileLink.js";
|
|
9
8
|
import type SpatialReference from "@arcgis/core/geometry/SpatialReference.js";
|
|
10
9
|
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
11
10
|
import type { SubmitEvent, CompleteEvent } from "@arcgis/core/widgets/Print/PrintViewModel.js";
|
|
12
11
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
13
12
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
14
13
|
import type { Formats } from "./types.js";
|
|
15
|
-
import type { CollectionChangeEvent } from "@arcgis/core/core/Collection";
|
|
14
|
+
import type { CollectionChangeEvent } from "@arcgis/core/core/Collection.js";
|
|
16
15
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
17
16
|
import type { Formats as Formats2, Layouts, TemplateCustomTextElements, State } from "@arcgis/core/widgets/Print/types.js";
|
|
18
17
|
|
|
@@ -149,7 +148,7 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
149
148
|
*
|
|
150
149
|
* @since 4.33
|
|
151
150
|
*/
|
|
152
|
-
accessor exportedLinks: Collection<
|
|
151
|
+
accessor exportedLinks: Collection<FileLink>;
|
|
153
152
|
/**
|
|
154
153
|
* This option allows passing extra parameters (in addition to [templateOptions](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-print/#templateOptions)) to the print (export webmap) requests.
|
|
155
154
|
*
|
|
@@ -173,12 +172,22 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
173
172
|
* @since 5.0
|
|
174
173
|
*/
|
|
175
174
|
accessor hideAdvancedOptions: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* @default false
|
|
177
|
+
* @internal
|
|
178
|
+
*/
|
|
179
|
+
accessor hideFeatureAttributes: boolean;
|
|
176
180
|
/**
|
|
177
181
|
* Indicates whether the component's header is hidden.
|
|
178
182
|
*
|
|
179
183
|
* @default false
|
|
180
184
|
*/
|
|
181
185
|
accessor hideHeader: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* @default false
|
|
188
|
+
* @internal
|
|
189
|
+
*/
|
|
190
|
+
accessor hideIncludeTables: boolean;
|
|
182
191
|
/**
|
|
183
192
|
* Icon which represents the component.
|
|
184
193
|
* Typically used when the component is controlled by another component (e.g. by the Expand component).
|
|
@@ -10,18 +10,18 @@ import { u as v } from "../../chunks/useT9n.js";
|
|
|
10
10
|
import { m as f } from "../../chunks/useViewModel.js";
|
|
11
11
|
import { g as n } from "../../chunks/globalCss.js";
|
|
12
12
|
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
-
const _ = h`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.root{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.root section[aria-hidden=true]{display:none}.panel-items-centered{display:flex;align-items:center}.container{display:flex;flex-direction:column;flex-grow:1}.header-title{margin:0 auto 0 0;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.panel-error{color:var(--calcite-color-status-danger)}`,
|
|
13
|
+
const _ = h`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.root{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.root section[aria-hidden=true]{display:none}.panel-items-centered{display:flex;align-items:center}.container{display:flex;flex-direction:column;flex-grow:1}.header-title{margin:0 auto 0 0;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.panel-error{color:var(--calcite-color-status-danger)}`, b = f(p), d = (o) => {
|
|
14
14
|
if (!o)
|
|
15
15
|
return "all";
|
|
16
16
|
const e = typeof o == "string" ? o.split(",").map((t) => t.trim()).filter((t) => t) : [o];
|
|
17
17
|
return !e.length || e.includes("all") ? "all" : e;
|
|
18
18
|
};
|
|
19
|
-
class
|
|
19
|
+
class x extends m {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this.messages = v({ blocking: !0 }), this.viewModel =
|
|
21
|
+
super(...arguments), this.messages = v({ blocking: !0 }), this.viewModel = b(this), this.error = null, this._showTemplates = !1, this.view = this.viewModel.view, this.hideHeader = !1, this.icon = "print", this.hideAdvancedOptions = !1, this.allowedFormats = this.viewModel.allowedFormats, this.allowedLayouts = this.viewModel.allowedLayouts, this.autoPopulateAuthor = !1, this.exportedLinks = this.viewModel.exportedLinks, this.extraParameters = this.viewModel.extraParameters, this.headingLevel = 3, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1, this.excludeDefaultTemplates = !this.viewModel.includeDefaultTemplates, this.excludeOrganizationTemplates = !1, this.outSpatialReference = this.viewModel.outSpatialReference, this.portal = this.viewModel.portal, this.showPrintAreaEnabled = this.viewModel.showPrintAreaEnabled, this.printServiceUrl = this.viewModel.printServiceUrl, this.templateCustomTextElements = this.viewModel.templateCustomTextElements, this.templateOptions = this.viewModel.templateOptions, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisComplete = l(() => this.viewModel, "complete"), this.arcgisPropertyChange = u()("state"), this.arcgisReady = a(), this.arcgisSubmit = l(() => this.viewModel, "submit"), this.arcgisBrowseTemplatesChange = a(), this.arcgisSaveAs = a();
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
|
-
this.properties = { error: 16, _showTemplates: 16, view: 0, hideHeader: 5, referenceElement: 1, icon: 1, hideAdvancedOptions: 5, allowedFormats: [1, { type: String, converter: d }], allowedLayouts: [1, { type: String, converter: d }], autoPopulateAuthor: 5, allowedFormatsForSaving: 1, exportedLinks: 0, extraParameters: 0, headingLevel: 9, excludeDefaultTemplates: 5, excludeOrganizationTemplates: 5, outSpatialReference: 0, portal: 0, showPrintAreaEnabled: 5, printServiceUrl: 1, showSaveAs: 5, templateCustomTextElements: 0, templateOptions: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
24
|
+
this.properties = { error: 16, _showTemplates: 16, view: 0, hideHeader: 5, referenceElement: 1, icon: 1, hideAdvancedOptions: 5, allowedFormats: [1, { type: String, converter: d }], allowedLayouts: [1, { type: String, converter: d }], autoPopulateAuthor: 5, allowedFormatsForSaving: 1, exportedLinks: 0, extraParameters: 0, headingLevel: 9, hideFeatureAttributes: 5, hideIncludeTables: 5, excludeDefaultTemplates: 5, excludeOrganizationTemplates: 5, outSpatialReference: 0, portal: 0, showPrintAreaEnabled: 5, printServiceUrl: 1, showSaveAs: 5, templateCustomTextElements: 0, templateOptions: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
25
25
|
}
|
|
26
26
|
static {
|
|
27
27
|
this.styles = _;
|
|
@@ -70,10 +70,10 @@ class b extends m {
|
|
|
70
70
|
}
|
|
71
71
|
_renderPanelContent() {
|
|
72
72
|
const e = this.viewModel.view, t = e?.type !== "2d";
|
|
73
|
-
return !!this.error || t ? r`<div class="panel-error">${e ? t ? this.messages.sceneViewError : this.messages.serviceError : this.messages.noViewError}</div>` : r`<arcgis-print-main-panel .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this._showTemplateSelector.bind(this)} .hideAdvancedOptions=${this.hideAdvancedOptions} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .autoPopulateAuthor=${this.autoPopulateAuthor} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-main-panel>`;
|
|
73
|
+
return !!this.error || t ? r`<div class="panel-error">${e ? t ? this.messages.sceneViewError : this.messages.serviceError : this.messages.noViewError}</div>` : r`<arcgis-print-main-panel .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this._showTemplateSelector.bind(this)} .hideAdvancedOptions=${this.hideAdvancedOptions} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .autoPopulateAuthor=${this.autoPopulateAuthor} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-main-panel>`;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
c("arcgis-print",
|
|
76
|
+
c("arcgis-print", x);
|
|
77
77
|
export {
|
|
78
|
-
|
|
78
|
+
x as ArcgisPrint
|
|
79
79
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
2
|
import { c as n } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as r, html as t } from "lit";
|
|
4
|
-
import { watch as
|
|
4
|
+
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import { LitElement as c } from "@arcgis/lumina";
|
|
6
6
|
import { u as h } from "../../chunks/useHandles.js";
|
|
7
|
-
const u = r`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`,
|
|
7
|
+
const u = r`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`, d = [
|
|
8
8
|
"catalog-footprint",
|
|
9
9
|
"geojson",
|
|
10
10
|
"csv",
|
|
@@ -13,16 +13,16 @@ const u = r`.advanced-options-container{padding:var(--calcite-spacing-xxs);displ
|
|
|
13
13
|
"map-notes",
|
|
14
14
|
"stream"
|
|
15
15
|
];
|
|
16
|
-
function
|
|
16
|
+
function p(i) {
|
|
17
17
|
if (!i)
|
|
18
18
|
return !1;
|
|
19
19
|
const { map: e, graphics: o } = i;
|
|
20
20
|
return o?.length ? !0 : e?.allLayers.some((a) => {
|
|
21
21
|
if (a.type === "feature" && "source" in a) {
|
|
22
|
-
const { type:
|
|
23
|
-
return
|
|
22
|
+
const { type: l } = a.source;
|
|
23
|
+
return l !== "feature-layer" && l !== "ogc-feature";
|
|
24
24
|
}
|
|
25
|
-
return
|
|
25
|
+
return d.includes(a.type);
|
|
26
26
|
}) ?? !1;
|
|
27
27
|
}
|
|
28
28
|
function m(i) {
|
|
@@ -31,28 +31,28 @@ function m(i) {
|
|
|
31
31
|
}
|
|
32
32
|
class g extends c {
|
|
33
33
|
constructor() {
|
|
34
|
-
super(...arguments), this._handles = h("disconnect"), this.autoPopulateAuthor = !1;
|
|
34
|
+
super(...arguments), this._handles = h("disconnect"), this.autoPopulateAuthor = !1, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1;
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
|
-
this.properties = { _selectedTemplate: 16, _showAuthorInput: 16, _showCopyrightInput: 16, _showLegendInput: 16, _showNorthArrowInput: 16, _showScaleBarInput: 16, _showForceFeatureAttributes: 16, _showTablesInput: 16, autoPopulateAuthor: 5, viewModel: 0, messages: 0 };
|
|
37
|
+
this.properties = { _selectedTemplate: 16, _showAuthorInput: 16, _showCopyrightInput: 16, _showLegendInput: 16, _showNorthArrowInput: 16, _showScaleBarInput: 16, _showForceFeatureAttributes: 16, _showTablesInput: 16, autoPopulateAuthor: 5, viewModel: 0, messages: 0, hideFeatureAttributes: 5, hideIncludeTables: 5 };
|
|
38
38
|
}
|
|
39
39
|
static {
|
|
40
40
|
this.styles = u;
|
|
41
41
|
}
|
|
42
42
|
loaded() {
|
|
43
43
|
this.manager.onLifecycle(() => [
|
|
44
|
-
|
|
45
|
-
this._handles.removeHandles("template-handle"), this._selectedTemplate = e ? this.viewModel.getLayoutTemplateById(e) ?? void 0 : void 0, this._handles.addHandles(
|
|
44
|
+
s(() => this.viewModel.templateOptions.id, (e) => {
|
|
45
|
+
this._handles.removeHandles("template-handle"), this._selectedTemplate = e ? this.viewModel.getLayoutTemplateById(e) ?? void 0 : void 0, this._handles.addHandles(s(() => [
|
|
46
46
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText,
|
|
47
47
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText,
|
|
48
48
|
this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend,
|
|
49
49
|
this._selectedTemplate?.mapSurroundInfoOptions?.northArrow?.length,
|
|
50
50
|
this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar?.length
|
|
51
51
|
], () => {
|
|
52
|
-
this._showAuthorInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText ?? !0, this._showCopyrightInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText ?? !0, this._showLegendInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend ?? !0, this._showNorthArrowInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.northArrow.length, this._showScaleBarInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar.length, this._showForceFeatureAttributes =
|
|
52
|
+
this._showAuthorInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasAuthorText ?? !0, this._showCopyrightInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasCopyrightText ?? !0, this._showLegendInput = this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasLegend ?? !0, this._showNorthArrowInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.northArrow.length, this._showScaleBarInput = !!this._selectedTemplate?.mapSurroundInfoOptions?.scaleBar.length, this._showForceFeatureAttributes = p(this.viewModel.view) && !!this._selectedTemplate?.layoutItem?.id && !this.hideFeatureAttributes, this._showTablesInput = m(this.viewModel.view) && !!this._selectedTemplate?.layoutItem?.id && !this.hideIncludeTables;
|
|
53
53
|
}, { initial: !0 }), "template-handle");
|
|
54
54
|
}, { initial: !0 }),
|
|
55
|
-
|
|
55
|
+
s(() => [this.viewModel.portal?.user, this.autoPopulateAuthor], () => {
|
|
56
56
|
!this.viewModel.templateOptions.author && this.autoPopulateAuthor && this.viewModel.portal?.user?.username && (this.viewModel.templateOptions.author = this.viewModel.portal.user.username, this.requestUpdate());
|
|
57
57
|
}, { initial: !0 })
|
|
58
58
|
]);
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as o, html as e } from "lit";
|
|
4
4
|
import { watch as i } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { u as
|
|
5
|
+
import { LitElement as r } from "@arcgis/lumina";
|
|
6
|
+
import { u as n } from "../../chunks/useHandles.js";
|
|
7
7
|
const c = o`:host{display:flex;flex-direction:column;height:100%}.layout-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm);display:flex;flex-direction:column;flex-grow:1;gap:var(--calcite-spacing-md)}.panel-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--calcite-spacing-sm)}.advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}`;
|
|
8
|
-
class d extends
|
|
8
|
+
class d extends r {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(...arguments), this._handles =
|
|
10
|
+
super(...arguments), this._handles = n("disconnect"), this.hideAdvancedOptions = !1, this.autoPopulateAuthor = !1, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1;
|
|
11
11
|
}
|
|
12
12
|
static {
|
|
13
|
-
this.properties = { _selectedTemplate: 16, _showSelectedTemplateTitleText: 16, hideAdvancedOptions: 5, autoPopulateAuthor: 5, viewModel: 0, messages: 0, showTemplateSelector: 0, selectExportsTab: 0 };
|
|
13
|
+
this.properties = { _selectedTemplate: 16, _showSelectedTemplateTitleText: 16, hideAdvancedOptions: 5, autoPopulateAuthor: 5, viewModel: 0, messages: 0, showTemplateSelector: 0, selectExportsTab: 0, hideFeatureAttributes: 5, hideIncludeTables: 5 };
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
16
16
|
this.styles = c;
|
|
@@ -42,7 +42,7 @@ class d extends n {
|
|
|
42
42
|
return e`<arcgis-print-format-select .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-format-select>`;
|
|
43
43
|
}
|
|
44
44
|
_renderAdvancedSection() {
|
|
45
|
-
return this.hideAdvancedOptions ? null : e`<calcite-block .ariaLabel=${this.messages.advancedOptions} class="advanced-options-section" collapsible .disabled=${!this._selectedTemplate} .heading=${this.messages.advancedOptions}><arcgis-print-layout-advanced-options .autoPopulateAuthor=${this.autoPopulateAuthor} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-layout-advanced-options></calcite-block>`;
|
|
45
|
+
return this.hideAdvancedOptions ? null : e`<calcite-block .ariaLabel=${this.messages.advancedOptions} class="advanced-options-section" collapsible .disabled=${!this._selectedTemplate} .heading=${this.messages.advancedOptions}><arcgis-print-layout-advanced-options .autoPopulateAuthor=${this.autoPopulateAuthor} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-layout-advanced-options></calcite-block>`;
|
|
46
46
|
}
|
|
47
47
|
_renderExportButton() {
|
|
48
48
|
return e`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.title ?? void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`;
|
|
@@ -4,22 +4,22 @@ import { css as i, html as a } from "lit";
|
|
|
4
4
|
import { LitElement as l } from "@arcgis/lumina";
|
|
5
5
|
import { i as o } from "../../chunks/utils2.js";
|
|
6
6
|
import { u as c } from "../../chunks/useHandles.js";
|
|
7
|
-
import { watch as
|
|
8
|
-
const
|
|
7
|
+
import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
|
|
8
|
+
const n = i`:host{display:flex;flex-direction:column;flex-grow:1}calcite-tabs{flex-grow:1}calcite-tab{--calcite-tab-content-block-padding: 0}calcite-loader{margin-right:var(--calcite-spacing-xxs)}`;
|
|
9
9
|
class r extends l {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(...arguments), this._prevLayoutTemplateId = null, this._handles = c("disconnect"), this._selectedTab = "layout", this._hasPendingExport = !1, this.hideAdvancedOptions = !1, this.autoPopulateAuthor = !1;
|
|
11
|
+
super(...arguments), this._prevLayoutTemplateId = null, this._handles = c("disconnect"), this._selectedTab = "layout", this._hasPendingExport = !1, this.hideAdvancedOptions = !1, this.autoPopulateAuthor = !1, this.hideFeatureAttributes = !1, this.hideIncludeTables = !1;
|
|
12
12
|
}
|
|
13
13
|
static {
|
|
14
|
-
this.properties = { _selectedTab: 16, _hasPendingExport: 16, hideAdvancedOptions: 5, autoPopulateAuthor: 5, showSaveAs: 5, arcgisSaveAs: 0, viewModel: 0, messages: 0, showTemplateSelector: 0, allowedFormatsForSaving: 1 };
|
|
14
|
+
this.properties = { _selectedTab: 16, _hasPendingExport: 16, hideAdvancedOptions: 5, autoPopulateAuthor: 5, showSaveAs: 5, arcgisSaveAs: 0, viewModel: 0, messages: 0, showTemplateSelector: 0, allowedFormatsForSaving: 1, hideFeatureAttributes: 5, hideIncludeTables: 5 };
|
|
15
15
|
}
|
|
16
16
|
static {
|
|
17
|
-
this.styles =
|
|
17
|
+
this.styles = n;
|
|
18
18
|
}
|
|
19
19
|
loaded() {
|
|
20
20
|
this.manager.onLifecycle(() => [
|
|
21
21
|
this.viewModel.exportedLinks.on("change", () => {
|
|
22
|
-
this._handles.removeHandles("pending-exports"), this._handles.addHandles(this.viewModel.exportedLinks.toArray().map((e) =>
|
|
22
|
+
this._handles.removeHandles("pending-exports"), this._handles.addHandles(this.viewModel.exportedLinks.toArray().map((e) => d(() => e.state, () => this.requestUpdate(), { initial: !0 })), "pending-exports");
|
|
23
23
|
})
|
|
24
24
|
]);
|
|
25
25
|
}
|
|
@@ -41,7 +41,7 @@ class r extends l {
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
const e = this.viewModel.exportedLinks.some(({ state: t }) => t === "pending");
|
|
44
|
-
return a`<calcite-tabs layout=center bordered><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${this._layoutTabChangeHandler} .selected=${this._selectedTab === "layout"}>${this.messages.layoutTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._mapOnlyTabChangeHandler} .selected=${this._selectedTab === "map-only"}>${this.messages.mapOnlyTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._exportsTabChangeHandler} .selected=${this._selectedTab === "exports"}>${e ? a`<calcite-loader inline label=loading scale=s></calcite-loader>` : null}${this.messages.exportsTab}</calcite-tab-title></calcite-tab-nav><calcite-tab selected><arcgis-print-layout-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .autoPopulateAuthor=${this.autoPopulateAuthor} .showTemplateSelector=${this.showTemplateSelector} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-layout-panel></calcite-tab><calcite-tab><arcgis-print-map-only-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-map-only-panel></calcite-tab><calcite-tab><arcgis-print-exports-panel .messages=${this.messages} .viewModel=${this.viewModel} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-exports-panel></calcite-tab></calcite-tabs>`;
|
|
44
|
+
return a`<calcite-tabs layout=center bordered><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${this._layoutTabChangeHandler} .selected=${this._selectedTab === "layout"}>${this.messages.layoutTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._mapOnlyTabChangeHandler} .selected=${this._selectedTab === "map-only"}>${this.messages.mapOnlyTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${this._exportsTabChangeHandler} .selected=${this._selectedTab === "exports"}>${e ? a`<calcite-loader inline label=loading scale=s></calcite-loader>` : null}${this.messages.exportsTab}</calcite-tab-title></calcite-tab-nav><calcite-tab selected><arcgis-print-layout-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .autoPopulateAuthor=${this.autoPopulateAuthor} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .showTemplateSelector=${this.showTemplateSelector} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-layout-panel></calcite-tab><calcite-tab><arcgis-print-map-only-panel .messages=${this.messages} .viewModel=${this.viewModel} .hideAdvancedOptions=${this.hideAdvancedOptions} .selectExportsTab=${this._selectExportsTab.bind(this)}></arcgis-print-map-only-panel></calcite-tab><calcite-tab><arcgis-print-exports-panel .messages=${this.messages} .viewModel=${this.viewModel} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-exports-panel></calcite-tab></calcite-tabs>`;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
s("arcgis-print-main-panel", r);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
3
|
-
import type Point from "@arcgis/core/geometry/Point";
|
|
3
|
+
import type Point from "@arcgis/core/geometry/Point.js";
|
|
4
4
|
import type { HeadingLevel } from "../types.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
|
-
import type { MeasurementSystem } from "@arcgis/core/core/units";
|
|
3
|
+
import type { MeasurementSystem } from "@arcgis/core/core/units.js";
|
|
4
4
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
5
5
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
6
6
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|