@arcgis/map-components 5.1.0-next.109 → 5.1.0-next.111
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/2SFQKFYO.js +2 -0
- package/dist/cdn/{X3YFIQGW.js → 3J457ML6.js} +1 -1
- package/dist/cdn/4SNOTPCF.js +2 -0
- package/dist/cdn/6QQ4WA4M.js +2 -0
- package/dist/cdn/{R4VSDUYE.js → KYVT2WTY.js} +1 -1
- package/dist/cdn/PFVM4TPN.js +2 -0
- package/dist/cdn/TBKV4QZ6.js +2 -0
- package/dist/cdn/TFFF4SV3.js +2 -0
- package/dist/cdn/YUQI6BEG.js +2 -0
- package/dist/cdn/assets/print/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/print/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/shadow-cast/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/sketch/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-item-indicator.js +24 -27
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +8 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.js +118 -120
- package/dist/components/arcgis-coordinate-conversion/index.js +2 -1
- package/dist/components/arcgis-features/customElement.d.ts +9 -1
- package/dist/components/arcgis-features/customElement.js +76 -64
- package/dist/components/arcgis-layer-list-new/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-new/layer-list-item/customElement.js +24 -24
- package/dist/components/arcgis-link-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +1 -1
- package/dist/components/arcgis-presentation/customElement.js +12 -11
- package/dist/components/arcgis-print/customElement.d.ts +30 -3
- package/dist/components/arcgis-print-export-button/customElement.js +13 -8
- package/dist/components/arcgis-print-export-button/index.js +1 -0
- package/dist/components/arcgis-print-template-selector/customElement.js +4 -4
- package/dist/components/arcgis-scene/customElement.d.ts +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +141 -78
- package/dist/components/arcgis-shadow-cast/customElement.js +111 -90
- 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 +3 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/2FEX7FAZ.js +0 -2
- package/dist/cdn/2SZ3WJGX.js +0 -2
- package/dist/cdn/KOBC25QZ.js +0 -2
- package/dist/cdn/O2ECQYMW.js +0 -2
- package/dist/cdn/R6JH26DC.js +0 -2
- package/dist/cdn/RED6TO3K.js +0 -2
- package/dist/cdn/XVWZZS5G.js +0 -2
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { usePropertyChange as
|
|
6
|
-
import { u as
|
|
2
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as M, html as c } from "lit";
|
|
4
|
+
import { LitElement as O, createEvent as S, nothing as T, safeClassMap as u } from "@arcgis/lumina";
|
|
5
|
+
import { usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
6
|
+
import { u as z } from "../../chunks/useT9n.js";
|
|
7
7
|
import { m as k } from "../../chunks/useViewModel.js";
|
|
8
|
-
import { H as
|
|
8
|
+
import { H as v } from "../../chunks/heading.js";
|
|
9
9
|
import { g as m } from "../../chunks/globalCss.js";
|
|
10
|
-
import { V as
|
|
11
|
-
import
|
|
12
|
-
import { property as
|
|
13
|
-
import { A as
|
|
14
|
-
import { watch as
|
|
15
|
-
import { c as h, g as
|
|
16
|
-
import { forceInteractive as
|
|
17
|
-
const
|
|
18
|
-
var
|
|
19
|
-
for (var
|
|
20
|
-
(d = e[l]) && (
|
|
21
|
-
return
|
|
10
|
+
import { V as g } from "../../chunks/visible-element.js";
|
|
11
|
+
import I from "@arcgis/core/analysis/ShadowCastAnalysis.js";
|
|
12
|
+
import { property as n, subclass as P } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
13
|
+
import { A as V } from "../../chunks/AnalysisViewModel.js";
|
|
14
|
+
import { watch as E, whenOnce as L } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
|
+
import { c as h, g as A } from "../../chunks/time-utils.js";
|
|
16
|
+
import { forceInteractive as R } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
17
|
+
const H = M`.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}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{position:relative;width:var(--arcgis-internal-panel-width, 300px)}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg);min-width:var(--arcgis-internal-panel-min-width, 300px);overflow:var(--arcgis-internal-panel-overflow, visible);height:fit-content}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`;
|
|
18
|
+
var j = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, a = (e, i, o, r) => {
|
|
19
|
+
for (var s = r > 1 ? void 0 : r ? Z(i, o) : i, l = e.length - 1, d; l >= 0; l--)
|
|
20
|
+
(d = e[l]) && (s = (r ? d(i, o, s) : d(s)) || s);
|
|
21
|
+
return r && s && j(i, o, s), s;
|
|
22
22
|
};
|
|
23
|
-
const
|
|
24
|
-
let t = class extends
|
|
23
|
+
const f = /* @__PURE__ */ Symbol("interactiveHandle");
|
|
24
|
+
let t = class extends V {
|
|
25
25
|
constructor() {
|
|
26
26
|
super(...arguments), this.supportedViewType = "3d", this.unsupportedErrorMessage = "The Shadow Cast component is only supported in 3D views.", this.shouldForceInteractive = !1, this.minMinDuration = 0, this.maxMinDuration = h(8, "hours", "milliseconds"), this.hideShadowDurationTooltip = !1;
|
|
27
27
|
}
|
|
28
28
|
constructAnalysis() {
|
|
29
|
-
return new
|
|
29
|
+
return new I();
|
|
30
30
|
}
|
|
31
31
|
initialize() {
|
|
32
32
|
this.addHandles(
|
|
33
|
-
|
|
33
|
+
E(
|
|
34
34
|
() => ({
|
|
35
35
|
analysisView: this.analysisView,
|
|
36
36
|
tooltipVisible: !this.hideShadowDurationTooltip
|
|
37
37
|
}),
|
|
38
38
|
({ analysisView: e, tooltipVisible: i }) => {
|
|
39
|
-
this.removeHandles(
|
|
39
|
+
this.removeHandles(f), e && (e.interactive = i, i && this.addHandles(R(e), f));
|
|
40
40
|
},
|
|
41
41
|
{ sync: !0, initial: !0 }
|
|
42
42
|
)
|
|
@@ -73,7 +73,7 @@ let t = class extends P {
|
|
|
73
73
|
this.analysis.totalDurationOptions.mode = e;
|
|
74
74
|
}
|
|
75
75
|
get localDate() {
|
|
76
|
-
return
|
|
76
|
+
return A(this.view);
|
|
77
77
|
}
|
|
78
78
|
get mode() {
|
|
79
79
|
return this.analysis.mode;
|
|
@@ -81,6 +81,12 @@ let t = class extends P {
|
|
|
81
81
|
set mode(e) {
|
|
82
82
|
this.analysis.mode = e;
|
|
83
83
|
}
|
|
84
|
+
get visualizeSunlight() {
|
|
85
|
+
return this.analysis.visualizeSunlight;
|
|
86
|
+
}
|
|
87
|
+
set visualizeSunlight(e) {
|
|
88
|
+
this.analysis.visualizeSunlight = e;
|
|
89
|
+
}
|
|
84
90
|
get startTimeOfDay() {
|
|
85
91
|
return this.analysis.startTimeOfDay;
|
|
86
92
|
}
|
|
@@ -133,79 +139,93 @@ let t = class extends P {
|
|
|
133
139
|
this.analysis.utcOffset = e;
|
|
134
140
|
}
|
|
135
141
|
async getDurationAtScreen(e) {
|
|
136
|
-
return await (await
|
|
142
|
+
return await (await L(() => this.analysisView)).getDurationAtScreen(e);
|
|
137
143
|
}
|
|
138
144
|
};
|
|
139
|
-
|
|
140
|
-
|
|
145
|
+
a([
|
|
146
|
+
n()
|
|
141
147
|
], t.prototype, "date", 1);
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
a([
|
|
149
|
+
n()
|
|
144
150
|
], t.prototype, "discreteColor", 1);
|
|
145
|
-
|
|
146
|
-
|
|
151
|
+
a([
|
|
152
|
+
n()
|
|
147
153
|
], t.prototype, "discreteInterval", 1);
|
|
148
|
-
|
|
149
|
-
|
|
154
|
+
a([
|
|
155
|
+
n()
|
|
150
156
|
], t.prototype, "totalDurationColor", 1);
|
|
151
|
-
|
|
152
|
-
|
|
157
|
+
a([
|
|
158
|
+
n()
|
|
153
159
|
], t.prototype, "totalDurationMode", 1);
|
|
154
|
-
|
|
155
|
-
|
|
160
|
+
a([
|
|
161
|
+
n()
|
|
156
162
|
], t.prototype, "localDate", 1);
|
|
157
|
-
|
|
158
|
-
|
|
163
|
+
a([
|
|
164
|
+
n()
|
|
159
165
|
], t.prototype, "mode", 1);
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
a([
|
|
167
|
+
n()
|
|
168
|
+
], t.prototype, "visualizeSunlight", 1);
|
|
169
|
+
a([
|
|
170
|
+
n()
|
|
162
171
|
], t.prototype, "startTimeOfDay", 1);
|
|
163
|
-
|
|
164
|
-
|
|
172
|
+
a([
|
|
173
|
+
n()
|
|
165
174
|
], t.prototype, "endTimeOfDay", 1);
|
|
166
|
-
|
|
167
|
-
|
|
175
|
+
a([
|
|
176
|
+
n()
|
|
168
177
|
], t.prototype, "state", 1);
|
|
169
|
-
|
|
170
|
-
|
|
178
|
+
a([
|
|
179
|
+
n()
|
|
171
180
|
], t.prototype, "minDurationColor", 1);
|
|
172
|
-
|
|
173
|
-
|
|
181
|
+
a([
|
|
182
|
+
n()
|
|
174
183
|
], t.prototype, "minMinDuration", 2);
|
|
175
|
-
|
|
176
|
-
|
|
184
|
+
a([
|
|
185
|
+
n()
|
|
177
186
|
], t.prototype, "maxMinDuration", 2);
|
|
178
|
-
|
|
179
|
-
|
|
187
|
+
a([
|
|
188
|
+
n()
|
|
180
189
|
], t.prototype, "minDuration", 1);
|
|
181
|
-
|
|
182
|
-
|
|
190
|
+
a([
|
|
191
|
+
n()
|
|
183
192
|
], t.prototype, "minDurationContextEnabled", 1);
|
|
184
|
-
|
|
185
|
-
|
|
193
|
+
a([
|
|
194
|
+
n()
|
|
186
195
|
], t.prototype, "minDurationContextColor", 1);
|
|
187
|
-
|
|
188
|
-
|
|
196
|
+
a([
|
|
197
|
+
n()
|
|
189
198
|
], t.prototype, "minDurationContextInterval", 1);
|
|
190
|
-
|
|
191
|
-
|
|
199
|
+
a([
|
|
200
|
+
n()
|
|
192
201
|
], t.prototype, "utcOffset", 1);
|
|
193
|
-
|
|
194
|
-
|
|
202
|
+
a([
|
|
203
|
+
n()
|
|
195
204
|
], t.prototype, "hideShadowDurationTooltip", 2);
|
|
196
|
-
t =
|
|
197
|
-
|
|
205
|
+
t = a([
|
|
206
|
+
P("components.shadow-cast.ShadowCastViewModel")
|
|
198
207
|
], t);
|
|
199
|
-
const
|
|
200
|
-
class
|
|
208
|
+
const B = k(t);
|
|
209
|
+
class F extends O {
|
|
201
210
|
constructor() {
|
|
202
|
-
super(...arguments), this.viewModel =
|
|
211
|
+
super(...arguments), this.viewModel = B(this), this.messages = z(), this.analysis = this.viewModel.analysis, this.view = this.viewModel.view, this.visualizeSunlight = this.viewModel.visualizeSunlight, this.visualScale = "m", this.autoDestroyDisabled = !1, this.endTimeOfDay = this.viewModel.endTimeOfDay, this.headingLevel = 4, this.hideTimeRangeSlider = !1, this.hideTimezone = !1, this.hideDatePicker = !1, this.hideShadowDurationTooltip = this.viewModel.hideShadowDurationTooltip, this.hideVisualization = this.viewModel.hideVisualization, this.hideVisualizationOptions = !1, this.hideDiscreteOptions = !1, this.hideDiscreteColorPicker = !1, this.hideDiscreteInterval = !1, this.hideTotalDurationOptions = !1, this.hideTotalDurationColorPicker = !1, this.hideTotalDurationModeSelect = !1, this.hideMinDurationOptions = !1, this.hideMinDurationColorPicker = !1, this.hideMinDurationSlider = !1, this.hideMinDurationContextOptions = !1, this.hideMinDurationContextToggle = !1, this.hideMinDurationContextColorPicker = !1, this.hideMinDurationContextInterval = !1, this.icon = "measure-building-height-shadow", this.mode = this.viewModel.mode, this.startTimeOfDay = this.viewModel.startTimeOfDay, this.state = this.viewModel.state, this.utcOffset = this.viewModel.utcOffset, this.discreteColor = this.viewModel.discreteColor, this.discreteInterval = this.viewModel.discreteInterval, this.totalDurationColor = this.viewModel.totalDurationColor, this.totalDurationMode = this.viewModel.totalDurationMode, this.minDuration = this.viewModel.minDuration, this.minDurationColor = this.viewModel.minDurationColor, this.minMinDuration = this.viewModel.minMinDuration, this.maxMinDuration = this.viewModel.maxMinDuration, this.minDurationContextEnabled = this.viewModel.minDurationContextEnabled, this.minDurationContextColor = this.viewModel.minDurationContextColor, this.minDurationContextInterval = this.viewModel.minDurationContextInterval, this.arcgisPropertyChange = $()("state"), this.arcgisReady = S();
|
|
203
212
|
}
|
|
204
213
|
static {
|
|
205
|
-
this.properties = { analysis: 0, view: 0, visualScale: 3, autoDestroyDisabled: 5, date: 1, endTimeOfDay: 9, headingLevel: 9, hideTimeRangeSlider: 5, hideTimezone: 5, hideDatePicker: 5, hideShadowDurationTooltip: 5, hideVisualization: 5, hideVisualizationOptions: 5, hideDiscreteOptions: 5, hideDiscreteColorPicker: 5, hideDiscreteInterval: 5, hideTotalDurationOptions: 5, hideTotalDurationColorPicker: 5, hideTotalDurationModeSelect: 5, hideMinDurationOptions: 5, hideMinDurationColorPicker: 5, hideMinDurationSlider: 5, hideMinDurationContextOptions: 5, hideMinDurationContextToggle: 5, hideMinDurationContextColorPicker: 5, hideMinDurationContextInterval: 5, icon: 3, label: 1, mode: 1, referenceElement: 1, startTimeOfDay: 9, state: 32, utcOffset: 9, discreteColor: 0, discreteInterval: 9, totalDurationColor: 0, totalDurationMode: 1, minDuration: 9, minDurationColor: 0, minMinDuration: 9, maxMinDuration: 9, minDurationContextEnabled: 5, minDurationContextColor: 0, minDurationContextInterval: 9 };
|
|
214
|
+
this.properties = { analysis: 0, view: 0, visualizeSunlight: 5, visualScale: 3, autoDestroyDisabled: 5, date: 1, endTimeOfDay: 9, headingLevel: 9, hideTimeRangeSlider: 5, hideTimezone: 5, hideDatePicker: 5, hideShadowDurationTooltip: 5, hideVisualization: 5, hideVisualizationOptions: 5, hideDiscreteOptions: 5, hideDiscreteColorPicker: 5, hideDiscreteInterval: 5, hideTotalDurationOptions: 5, hideTotalDurationColorPicker: 5, hideTotalDurationModeSelect: 5, hideMinDurationOptions: 5, hideMinDurationColorPicker: 5, hideMinDurationSlider: 5, hideMinDurationContextOptions: 5, hideMinDurationContextToggle: 5, hideMinDurationContextColorPicker: 5, hideMinDurationContextInterval: 5, icon: 3, label: 1, mode: 1, referenceElement: 1, startTimeOfDay: 9, state: 32, utcOffset: 9, discreteColor: 0, discreteInterval: 9, totalDurationColor: 0, totalDurationMode: 1, minDuration: 9, minDurationColor: 0, minMinDuration: 9, maxMinDuration: 9, minDurationContextEnabled: 5, minDurationContextColor: 0, minDurationContextInterval: 9 };
|
|
206
215
|
}
|
|
207
216
|
static {
|
|
208
|
-
this.styles =
|
|
217
|
+
this.styles = H;
|
|
218
|
+
}
|
|
219
|
+
get _effectiveMessages() {
|
|
220
|
+
const { messages: i, visualizeSunlight: o } = this, { sunlight: r } = i;
|
|
221
|
+
return {
|
|
222
|
+
...i,
|
|
223
|
+
discrete: o ? r?.discrete : i.discrete,
|
|
224
|
+
minDuration: o ? r?.minDuration : i.minDuration,
|
|
225
|
+
totalDuration: o ? r?.totalDuration : i.totalDuration,
|
|
226
|
+
timeInShadow: o ? i.timeInSunlight : i.timeInShadow,
|
|
227
|
+
timeRangeSliderLabel: i.timeRangeSliderLabel
|
|
228
|
+
};
|
|
209
229
|
}
|
|
210
230
|
get date() {
|
|
211
231
|
return this.viewModel.date;
|
|
@@ -220,53 +240,54 @@ class Z extends C {
|
|
|
220
240
|
return await this.viewModel.getDurationAtScreen(i);
|
|
221
241
|
}
|
|
222
242
|
render() {
|
|
223
|
-
|
|
243
|
+
const { _effectiveMessages: i } = this;
|
|
244
|
+
return c`<div aria-label=${i.componentLabel ?? T} class=${u({
|
|
224
245
|
root: !0,
|
|
225
246
|
[m.widget]: !0,
|
|
226
247
|
[m.widgetDisabled]: this.viewModel.state === "disabled",
|
|
227
248
|
[m.panel]: !0
|
|
228
|
-
})} role=presentation>${this._renderTimeRangeSection()}${
|
|
249
|
+
})} role=presentation>${this._renderTimeRangeSection()}${g({ hidden: this.hideVisualizationOptions, children: this._renderVisualizationOptionsSection() })}</div>`;
|
|
229
250
|
}
|
|
230
251
|
_renderTimeRangeSection() {
|
|
231
252
|
if (!this.analysis || this.hideTimeRangeSlider && this.hideDatePicker)
|
|
232
253
|
return;
|
|
233
|
-
const {
|
|
234
|
-
return c`<section class="time-range-section">${
|
|
235
|
-
|
|
236
|
-
}}></calcite-input-time-zone></calcite-label>` })}${
|
|
254
|
+
const { _effectiveMessages: i, utcOffset: o, viewModel: r } = this, s = this.visualScale;
|
|
255
|
+
return c`<section class="time-range-section">${v({ level: this.headingLevel, children: i.timeRangeHeading })}${g({ hidden: this.hideTimeRangeSlider, children: this._renderTimeRange() })}${g({ hidden: this.hideTimezone, children: c`<calcite-label .scale=${s}>${i.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${r.localDate} .scale=${s} .value=${`${h(o ?? 0, "hours", "minutes")}`} @calciteInputTimeZoneChange=${(l) => {
|
|
256
|
+
r.utcOffset = +l.target.value / 60;
|
|
257
|
+
}}></calcite-input-time-zone></calcite-label>` })}${g({ hidden: this.hideDatePicker, children: c`<calcite-label .scale=${s}>${i.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${s} .valueAsDate=${r.date} @calciteInputDatePickerChange=${(l) => {
|
|
237
258
|
const d = l.currentTarget.valueAsDate;
|
|
238
|
-
|
|
259
|
+
r.date = Array.isArray(d) ? d[0] : d;
|
|
239
260
|
}}></calcite-input-date-picker></calcite-label>` })}</section>`;
|
|
240
261
|
}
|
|
241
262
|
_renderTimeRange() {
|
|
242
|
-
const {
|
|
243
|
-
return c`<arcgis-time-of-day-slider mode=range .startTime=${w(this.startTimeOfDay)} .endTime=${w(this.endTimeOfDay)} .label=${
|
|
244
|
-
|
|
263
|
+
const { _effectiveMessages: i, viewModel: o } = this;
|
|
264
|
+
return c`<arcgis-time-of-day-slider mode=range .startTime=${w(this.startTimeOfDay)} .endTime=${w(this.endTimeOfDay)} .label=${i.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({ currentTarget: r }) => {
|
|
265
|
+
o.startTimeOfDay = h(r.startTime, "minutes", "milliseconds"), o.endTimeOfDay = h(r.endTime, "minutes", "milliseconds");
|
|
245
266
|
}}></arcgis-time-of-day-slider>`;
|
|
246
267
|
}
|
|
247
268
|
_renderVisualizationOptionsSection() {
|
|
248
|
-
const { analysis: i,
|
|
269
|
+
const { analysis: i, _effectiveMessages: o, headingLevel: r, viewModel: s } = this;
|
|
249
270
|
if (!i)
|
|
250
271
|
return;
|
|
251
|
-
const { discreteOptions: l, totalDurationOptions: d, minDurationOptions: D } = i,
|
|
252
|
-
return c`<section class="visualization-options-section">${
|
|
272
|
+
const { discreteOptions: l, totalDurationOptions: d, minDurationOptions: D } = i, p = (y, b) => s.mode === y && !b ? void 0 : "hidden-config", x = this.hideMinDurationContextOptions || this.visualizeSunlight, _ = this.hideMinDurationContextToggle || this.visualizeSunlight;
|
|
273
|
+
return c`<section class="visualization-options-section">${v({ level: r, children: o.visualizationLabel })}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(p("min-duration", this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${x} .hideContextToggle=${_} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${o} .options=${D} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(p("total-duration", this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${o} .options=${d} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(p("discrete", this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${o} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`;
|
|
253
274
|
}
|
|
254
275
|
_renderModeSelect() {
|
|
255
|
-
const {
|
|
256
|
-
return c`<calcite-select .label=${i.visualizationLabel ?? ""} .scale=${this.visualScale} @calciteSelectChange=${(
|
|
257
|
-
const l =
|
|
258
|
-
|
|
276
|
+
const { _effectiveMessages: i, viewModel: o } = this, { mode: r } = o;
|
|
277
|
+
return c`<calcite-select .label=${i.visualizationLabel ?? ""} .scale=${this.visualScale} @calciteSelectChange=${(s) => {
|
|
278
|
+
const l = s.target.selectedOption?.value;
|
|
279
|
+
o.mode = l ?? "min-duration";
|
|
259
280
|
}}>${[
|
|
260
281
|
{ mode: "min-duration", label: i.minDuration?.optionLabel },
|
|
261
282
|
{ mode: "total-duration", label: i.totalDuration?.optionLabel },
|
|
262
283
|
{ mode: "discrete", label: i.discrete?.optionLabel }
|
|
263
|
-
].map(({ mode:
|
|
284
|
+
].map(({ mode: s, label: l }) => c`<calcite-option .selected=${s === r} .value=${s} .label=${l}></calcite-option>`)}</calcite-select>`;
|
|
264
285
|
}
|
|
265
286
|
}
|
|
266
287
|
function w(e) {
|
|
267
288
|
return Math.round(h(e, "milliseconds", "minutes"));
|
|
268
289
|
}
|
|
269
|
-
|
|
290
|
+
C("arcgis-shadow-cast", F);
|
|
270
291
|
export {
|
|
271
|
-
|
|
292
|
+
F as ArcgisShadowCast
|
|
272
293
|
};
|