@arcgis/map-components 1.0.0-beta.17 → 1.0.0-beta.19
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/arcgis-map-components/arcgis-map-components.esm.js +1 -148
- package/dist/arcgis-map-components/index.esm.js +0 -1
- package/dist/arcgis-map-components/p-021530fd.entry.js +1 -0
- package/dist/arcgis-map-components/p-0685d15c.entry.js +1 -0
- package/dist/arcgis-map-components/p-09e15a1f.entry.js +1 -0
- package/dist/arcgis-map-components/p-0d77ce8d.entry.js +1 -0
- package/dist/arcgis-map-components/p-0f83c24c.entry.js +1 -0
- package/dist/arcgis-map-components/p-177a536e.entry.js +1 -0
- package/dist/arcgis-map-components/p-1977344d.entry.js +1 -0
- package/dist/arcgis-map-components/p-1b9d7fb5.entry.js +1 -0
- package/dist/arcgis-map-components/p-1e5e5ed9.js +2 -0
- package/dist/arcgis-map-components/p-20c7de19.entry.js +1 -0
- package/dist/arcgis-map-components/p-23aebf98.entry.js +1 -0
- package/dist/arcgis-map-components/p-2bb7a744.entry.js +1 -0
- package/dist/arcgis-map-components/p-2d3406f7.js +1 -0
- package/dist/arcgis-map-components/p-2fdc27af.entry.js +1 -0
- package/dist/arcgis-map-components/p-34df1205.entry.js +1 -0
- package/dist/arcgis-map-components/p-39df01ce.entry.js +1 -0
- package/dist/arcgis-map-components/p-39eb103e.entry.js +1 -0
- package/dist/arcgis-map-components/p-4b213105.entry.js +1 -0
- package/dist/arcgis-map-components/p-53d8e476.entry.js +1 -0
- package/dist/arcgis-map-components/p-57259fd5.entry.js +1 -0
- package/dist/arcgis-map-components/p-5924285b.entry.js +1 -0
- package/dist/arcgis-map-components/p-5cabdee7.js +1 -0
- package/dist/arcgis-map-components/p-68a75dc8.entry.js +1 -0
- package/dist/arcgis-map-components/p-68f62c97.entry.js +1 -0
- package/dist/arcgis-map-components/p-6951ecc2.entry.js +1 -0
- package/dist/arcgis-map-components/p-69aaaa8c.entry.js +1 -0
- package/dist/arcgis-map-components/p-71ba5d8c.entry.js +1 -0
- package/dist/arcgis-map-components/p-796aa573.entry.js +1 -0
- package/dist/arcgis-map-components/p-7e3965a6.entry.js +1 -0
- package/dist/arcgis-map-components/p-85e5fcb4.entry.js +1 -0
- package/dist/arcgis-map-components/p-91b9e93f.entry.js +1 -0
- package/dist/arcgis-map-components/p-9566f3ac.entry.js +1 -0
- package/dist/arcgis-map-components/p-9767670f.entry.js +1 -0
- package/dist/arcgis-map-components/p-9d0e9668.entry.js +1 -0
- package/dist/arcgis-map-components/p-a2ba2654.entry.js +1 -0
- package/dist/arcgis-map-components/p-a47f9c9c.entry.js +1 -0
- package/dist/arcgis-map-components/p-ac2a93fb.entry.js +1 -0
- package/dist/arcgis-map-components/p-b35cd7c1.entry.js +1 -0
- package/dist/arcgis-map-components/p-b59cc744.entry.js +1 -0
- package/dist/arcgis-map-components/p-b699b1d2.entry.js +1 -0
- package/dist/arcgis-map-components/p-b813c9e6.js +1 -0
- package/dist/arcgis-map-components/p-c2d35c80.entry.js +1 -0
- package/dist/arcgis-map-components/p-c9f47845.entry.js +1 -0
- package/dist/arcgis-map-components/p-ca9109da.entry.js +1 -0
- package/dist/arcgis-map-components/p-cdf352de.entry.js +1 -0
- package/dist/arcgis-map-components/p-d360bf58.entry.js +1 -0
- package/dist/arcgis-map-components/p-d3b14bf9.entry.js +1 -0
- package/dist/arcgis-map-components/p-de286635.entry.js +1 -0
- package/dist/arcgis-map-components/p-e230d0a1.entry.js +1 -0
- package/dist/arcgis-map-components/p-e3a2afb4.entry.js +1 -0
- package/dist/arcgis-map-components/p-e8b09e23.entry.js +1 -0
- package/dist/arcgis-map-components/p-ea6ae338.entry.js +1 -0
- package/dist/arcgis-map-components/p-ef4d2a7e.entry.js +1 -0
- package/dist/arcgis-map-components/p-f37dec12.entry.js +1 -0
- package/dist/arcgis-map-components/p-f62ad08d.entry.js +1 -0
- package/dist/arcgis-map-components/p-f6bc527c.js +1 -0
- package/dist/arcgis-map-components/p-f8e2e2ed.entry.js +1 -0
- package/dist/cjs/arcgis-area-measurement-2d.cjs.entry.js +101 -0
- package/dist/cjs/arcgis-area-measurement-3d.cjs.entry.js +94 -0
- package/dist/cjs/arcgis-attachments.cjs.entry.js +73 -0
- package/dist/cjs/arcgis-basemap-gallery_3.cjs.entry.js +281 -0
- package/dist/cjs/arcgis-basemap-layer-list.cjs.entry.js +144 -0
- package/dist/cjs/arcgis-basemap-toggle.cjs.entry.js +115 -0
- package/dist/cjs/arcgis-bookmarks.cjs.entry.js +140 -0
- package/dist/cjs/arcgis-building-explorer.cjs.entry.js +80 -0
- package/dist/cjs/arcgis-compass.cjs.entry.js +90 -0
- package/dist/cjs/arcgis-coordinate-conversion.cjs.entry.js +158 -0
- package/dist/cjs/arcgis-daylight.cjs.entry.js +116 -0
- package/dist/cjs/arcgis-directional-pad.cjs.entry.js +100 -0
- package/dist/cjs/arcgis-directions.cjs.entry.js +194 -0
- package/dist/cjs/arcgis-directline-measurement-3d.cjs.entry.js +114 -0
- package/dist/cjs/arcgis-distance-measurement-2d.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-editor.cjs.entry.js +180 -0
- package/dist/cjs/arcgis-elevation-profile.cjs.entry.js +136 -0
- package/dist/cjs/arcgis-feature-form.cjs.entry.js +36 -0
- package/dist/cjs/arcgis-feature-table.cjs.entry.js +300 -0
- package/dist/cjs/arcgis-feature-templates.cjs.entry.js +73 -0
- package/dist/cjs/arcgis-feature.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-features.cjs.entry.js +133 -0
- package/dist/cjs/arcgis-floor-filter.cjs.entry.js +134 -0
- package/dist/cjs/arcgis-fullscreen.cjs.entry.js +92 -0
- package/dist/cjs/arcgis-histogram-range-slider.cjs.entry.js +80 -0
- package/dist/cjs/arcgis-histogram.cjs.entry.js +36 -0
- package/dist/cjs/arcgis-home.cjs.entry.js +108 -0
- package/dist/cjs/arcgis-layer-list.cjs.entry.js +128 -0
- package/dist/cjs/arcgis-legend.cjs.entry.js +146 -0
- package/dist/cjs/arcgis-line-of-sight.cjs.entry.js +94 -0
- package/dist/cjs/arcgis-locate.cjs.entry.js +158 -0
- package/dist/cjs/arcgis-map-components.cjs.js +23 -0
- package/dist/cjs/arcgis-measurement.cjs.entry.js +123 -0
- package/dist/cjs/arcgis-navigation-toggle.cjs.entry.js +97 -0
- package/dist/cjs/arcgis-print.cjs.entry.js +163 -0
- package/dist/cjs/arcgis-scale-bar.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-scale-range-slider.cjs.entry.js +146 -0
- package/dist/cjs/arcgis-scene.cjs.entry.js +106 -0
- package/dist/cjs/arcgis-search.cjs.entry.js +276 -0
- package/dist/cjs/arcgis-shadow-cast.cjs.entry.js +95 -0
- package/dist/cjs/arcgis-sketch.cjs.entry.js +201 -0
- package/dist/cjs/arcgis-slice.cjs.entry.js +103 -0
- package/dist/cjs/arcgis-slider.cjs.entry.js +233 -0
- package/dist/cjs/arcgis-swipe.cjs.entry.js +117 -0
- package/dist/cjs/arcgis-table-list.cjs.entry.js +118 -0
- package/dist/cjs/arcgis-time-slider.cjs.entry.js +216 -0
- package/dist/cjs/arcgis-track.cjs.entry.js +147 -0
- package/dist/cjs/arcgis-utility-network-associations.cjs.entry.js +220 -0
- package/dist/cjs/arcgis-utility-network-trace.cjs.entry.js +162 -0
- package/dist/cjs/arcgis-utility-network-validate-topology.cjs.entry.js +110 -0
- package/dist/cjs/arcgis-value-picker.cjs.entry.js +160 -0
- package/dist/cjs/arcgis-weather.cjs.entry.js +86 -0
- package/dist/cjs/arcgis-zoom.cjs.entry.js +100 -0
- package/dist/cjs/component-utils-cbd20e88.js +77 -0
- package/dist/cjs/disconnected-306cb220.js +55 -0
- package/dist/cjs/index-6b51d5a0.js +1619 -0
- package/dist/cjs/index-fda6ecee.js +753 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/mapping-utils-c2c7b994.js +40 -0
- package/dist/components/arcgis-area-measurement-2d.js +128 -0
- package/dist/components/arcgis-area-measurement-3d.js +121 -0
- package/dist/components/arcgis-attachments.js +99 -0
- package/dist/{arcgis-map-components/arcgis-basemap-gallery.entry.js → components/arcgis-basemap-gallery.js} +42 -11
- package/dist/components/arcgis-basemap-layer-list.js +175 -0
- package/dist/components/arcgis-basemap-toggle.js +143 -0
- package/dist/components/arcgis-bookmarks.js +169 -0
- package/dist/components/arcgis-building-explorer.js +105 -0
- package/dist/components/arcgis-compass.js +109 -0
- package/dist/components/arcgis-coordinate-conversion.js +193 -0
- package/dist/components/arcgis-daylight.js +144 -0
- package/dist/components/arcgis-directional-pad.d.ts +11 -0
- package/dist/components/arcgis-directional-pad.js +126 -0
- package/dist/components/arcgis-directions.js +230 -0
- package/dist/components/arcgis-directline-measurement-3d.js +142 -0
- package/dist/components/arcgis-distance-measurement-2d.js +133 -0
- package/dist/components/arcgis-editor.js +219 -0
- package/dist/components/arcgis-elevation-profile.js +166 -0
- package/dist/components/arcgis-expand.js +6 -0
- package/dist/{arcgis-map-components/arcgis-expand.entry.js → components/arcgis-expand2.js} +30 -11
- package/dist/components/arcgis-feature-form.js +55 -0
- package/dist/components/arcgis-feature-table.js +355 -0
- package/dist/components/arcgis-feature-templates.js +98 -0
- package/dist/components/arcgis-feature.js +133 -0
- package/dist/components/arcgis-features.js +169 -0
- package/dist/components/arcgis-floor-filter.js +164 -0
- package/dist/components/arcgis-fullscreen.js +111 -0
- package/dist/components/arcgis-histogram-range-slider.js +106 -0
- package/dist/components/arcgis-histogram.js +55 -0
- package/dist/components/arcgis-home.js +129 -0
- package/dist/components/arcgis-layer-list.js +158 -0
- package/dist/components/arcgis-legend.js +177 -0
- package/dist/components/arcgis-line-of-sight.js +120 -0
- package/dist/components/arcgis-locate.js +184 -0
- package/dist/{arcgis-map-components/arcgis-map.entry.js → components/arcgis-map.js} +36 -10
- package/dist/components/arcgis-measurement.js +153 -0
- package/dist/components/arcgis-navigation-toggle.js +117 -0
- package/dist/components/arcgis-print.js +197 -0
- package/dist/components/arcgis-scale-bar.js +133 -0
- package/dist/components/arcgis-scale-range-slider.js +177 -0
- package/dist/components/arcgis-scene.js +127 -0
- package/dist/components/arcgis-search.js +330 -0
- package/dist/components/arcgis-shadow-cast.js +121 -0
- package/dist/components/arcgis-sketch.js +238 -0
- package/dist/components/arcgis-slice.js +130 -0
- package/dist/components/arcgis-slider.js +281 -0
- package/dist/components/arcgis-swipe.js +140 -0
- package/dist/components/arcgis-table-list.js +147 -0
- package/dist/components/arcgis-time-slider.js +256 -0
- package/dist/components/arcgis-track.js +171 -0
- package/dist/components/arcgis-utility-network-associations.d.ts +11 -0
- package/dist/components/arcgis-utility-network-associations.js +258 -0
- package/dist/components/arcgis-utility-network-trace.js +197 -0
- package/dist/components/arcgis-utility-network-validate-topology.d.ts +11 -0
- package/dist/components/arcgis-utility-network-validate-topology.js +137 -0
- package/dist/components/arcgis-value-picker.js +198 -0
- package/dist/components/arcgis-weather.js +111 -0
- package/dist/components/arcgis-zoom.js +121 -0
- package/dist/components/disconnected.js +122 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +55 -0
- package/dist/components/index2.js +671 -0
- package/dist/{arcgis-map-components → esm}/arcgis-area-measurement-2d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-area-measurement-3d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-attachments.entry.js +2 -2
- package/dist/esm/arcgis-basemap-gallery_3.entry.js +275 -0
- package/dist/{arcgis-map-components → esm}/arcgis-basemap-layer-list.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-basemap-toggle.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-bookmarks.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-building-explorer.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-compass.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-coordinate-conversion.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-daylight.entry.js +3 -3
- package/dist/esm/arcgis-directional-pad.entry.js +96 -0
- package/dist/{arcgis-map-components → esm}/arcgis-directions.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-directline-measurement-3d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-distance-measurement-2d.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-editor.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-elevation-profile.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-feature-form.entry.js +2 -2
- package/dist/{arcgis-map-components → esm}/arcgis-feature-table.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-feature-templates.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-feature.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-features.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-floor-filter.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-fullscreen.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-histogram-range-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-histogram.entry.js +2 -2
- package/dist/{arcgis-map-components → esm}/arcgis-home.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-layer-list.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-legend.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-line-of-sight.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-locate.entry.js +3 -3
- package/dist/esm/arcgis-map-components.js +18 -0
- package/dist/{arcgis-map-components → esm}/arcgis-measurement.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-navigation-toggle.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-print.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-scale-bar.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-scale-range-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-scene.entry.js +2 -2
- package/dist/{arcgis-map-components → esm}/arcgis-search.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-shadow-cast.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-sketch.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-slice.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-swipe.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-table-list.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-time-slider.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-track.entry.js +3 -3
- package/dist/esm/arcgis-utility-network-associations.entry.js +216 -0
- package/dist/{arcgis-map-components → esm}/arcgis-utility-network-trace.entry.js +3 -3
- package/dist/esm/arcgis-utility-network-validate-topology.entry.js +106 -0
- package/dist/{arcgis-map-components → esm}/arcgis-value-picker.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-weather.entry.js +3 -3
- package/dist/{arcgis-map-components → esm}/arcgis-zoom.entry.js +3 -3
- package/dist/{arcgis-map-components/component-utils-d3552de2.js → esm/component-utils-2ebdae59.js} +1 -1
- package/dist/esm/index-98b79a87.js +671 -0
- package/dist/esm/index-eb3ead33.js +1591 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/mapping-utils-26beb904.js +38 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/types/components/arcgis-directional-pad/arcgis-directional-pad.d.ts +27 -0
- package/dist/types/components/arcgis-utility-network-associations/arcgis-utility-network-associations.d.ts +50 -0
- package/dist/types/components/arcgis-utility-network-validate-topology/arcgis-utility-network-validate-topology.d.ts +28 -0
- package/dist/types/components.d.ts +119 -0
- package/package.json +7 -6
- package/dist/arcgis-map-components/app-globals-0f993ce5.js +0 -3
- package/dist/arcgis-map-components/css-shim-b7d3d95f.js +0 -4
- package/dist/arcgis-map-components/dom-64053c71.js +0 -73
- package/dist/arcgis-map-components/index-82d260eb.js +0 -8293
- package/dist/arcgis-map-components/index-d9a93dfb.js +0 -3371
- package/dist/arcgis-map-components/shadow-css-008a49f5.js +0 -387
- /package/dist/{arcgis-map-components/mapping-utils-26beb904.js → components/mapping-utils.js} +0 -0
- /package/dist/{arcgis-map-components → esm}/disconnected-bc5fc8bc.js +0 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { _ as newWidgetsTimeSlider, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
+
|
|
6
|
+
const arcgisTimeSliderCss = "arcgis-time-slider{}";
|
|
7
|
+
|
|
8
|
+
const ArcgisTimeSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.triggerAction = createEvent(this, "triggerAction", 7);
|
|
13
|
+
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
14
|
+
this.referenceElement = undefined;
|
|
15
|
+
this.actions = undefined;
|
|
16
|
+
this.effectiveStops = undefined;
|
|
17
|
+
this.fullTimeExtent = undefined;
|
|
18
|
+
this.layout = undefined;
|
|
19
|
+
this.loop = undefined;
|
|
20
|
+
this.mode = undefined;
|
|
21
|
+
this.playRate = undefined;
|
|
22
|
+
this.stops = undefined;
|
|
23
|
+
this.tickConfigs = undefined;
|
|
24
|
+
this.timeExtent = undefined;
|
|
25
|
+
this.timeVisible = undefined;
|
|
26
|
+
this.view = undefined;
|
|
27
|
+
this.position = "bottom-left";
|
|
28
|
+
this.expandable = false;
|
|
29
|
+
this.widget = undefined;
|
|
30
|
+
}
|
|
31
|
+
//--------------------------------------------------------------------------
|
|
32
|
+
//
|
|
33
|
+
// Watchers
|
|
34
|
+
//
|
|
35
|
+
//--------------------------------------------------------------------------
|
|
36
|
+
actionsWatcher(newValue) {
|
|
37
|
+
if (newValue !== undefined && this.widget) {
|
|
38
|
+
this.widget.actions = newValue;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
fullTimeExtentWatcher(newValue) {
|
|
42
|
+
if (newValue !== undefined && this.widget) {
|
|
43
|
+
this.widget.fullTimeExtent = newValue;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
layoutWatcher(newValue) {
|
|
47
|
+
if (newValue !== undefined && this.widget) {
|
|
48
|
+
this.widget.layout = newValue;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
loopWatcher(newValue) {
|
|
52
|
+
if (newValue !== undefined && this.widget) {
|
|
53
|
+
this.widget.loop = newValue;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
modeWatcher(newValue) {
|
|
57
|
+
if (newValue !== undefined && this.widget) {
|
|
58
|
+
this.widget.mode = newValue;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
playRateWatcher(newValue) {
|
|
62
|
+
if (newValue !== undefined && this.widget) {
|
|
63
|
+
this.widget.playRate = newValue;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
stopsWatcher(newValue) {
|
|
67
|
+
if (newValue !== undefined && this.widget) {
|
|
68
|
+
this.widget.stops = newValue;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
tickConfigsWatcher(newValue) {
|
|
72
|
+
if (newValue !== undefined && this.widget) {
|
|
73
|
+
this.widget.tickConfigs = newValue;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
timeExtentWatcher(newValue) {
|
|
77
|
+
if (newValue !== undefined && this.widget) {
|
|
78
|
+
this.widget.timeExtent = newValue;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
timeVisibleWatcher(newValue) {
|
|
82
|
+
if (newValue !== undefined && this.widget) {
|
|
83
|
+
this.widget.timeVisible = newValue;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
positionWatcher(newValue) {
|
|
87
|
+
if (newValue !== undefined && this.widget) {
|
|
88
|
+
if (typeof this.view !== "string") {
|
|
89
|
+
this.view.ui.move(this.childElem, newValue);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
referenceElementWatcher(newValue) {
|
|
94
|
+
referenceElementHelper(this, newValue);
|
|
95
|
+
}
|
|
96
|
+
viewWatcher(newValue) {
|
|
97
|
+
if (newValue !== undefined && this.widget) {
|
|
98
|
+
this.widget.view = newValue;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
//--------------------------------------------------------------------------
|
|
102
|
+
//
|
|
103
|
+
// Methods
|
|
104
|
+
//
|
|
105
|
+
//--------------------------------------------------------------------------
|
|
106
|
+
async next() {
|
|
107
|
+
return this.widget?.next();
|
|
108
|
+
}
|
|
109
|
+
async play() {
|
|
110
|
+
return this.widget?.play();
|
|
111
|
+
}
|
|
112
|
+
async previous() {
|
|
113
|
+
return this.widget?.previous();
|
|
114
|
+
}
|
|
115
|
+
async stop() {
|
|
116
|
+
return this.widget?.stop();
|
|
117
|
+
}
|
|
118
|
+
//--------------------------------------------------------------------------
|
|
119
|
+
//
|
|
120
|
+
// Lifecycle
|
|
121
|
+
//
|
|
122
|
+
//--------------------------------------------------------------------------
|
|
123
|
+
async componentDidLoad() {
|
|
124
|
+
const params = this._createParams();
|
|
125
|
+
const widget = await newWidgetsTimeSlider(params);
|
|
126
|
+
this.widget = widget;
|
|
127
|
+
await this._addWatchers();
|
|
128
|
+
this._proxyEvents();
|
|
129
|
+
this.widgetReady.emit(true);
|
|
130
|
+
checkForView(this);
|
|
131
|
+
}
|
|
132
|
+
disconnectedCallback() {
|
|
133
|
+
onDisconnectedHelper(this);
|
|
134
|
+
}
|
|
135
|
+
render() {
|
|
136
|
+
if (this.expandable) {
|
|
137
|
+
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
138
|
+
}
|
|
139
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
140
|
+
}
|
|
141
|
+
//--------------------------------------------------------------------------
|
|
142
|
+
//
|
|
143
|
+
// Private Methods
|
|
144
|
+
//
|
|
145
|
+
//--------------------------------------------------------------------------
|
|
146
|
+
async _addWatchers() {
|
|
147
|
+
const { watch } = await importCoreReactiveUtils();
|
|
148
|
+
watch(() => this.widget.effectiveStops, (value) => (this.effectiveStops = value), {
|
|
149
|
+
initial: true
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
_createParams() {
|
|
153
|
+
const params = {
|
|
154
|
+
container: this.childElem
|
|
155
|
+
};
|
|
156
|
+
if (this.actions !== undefined) {
|
|
157
|
+
params.actions = this.actions;
|
|
158
|
+
}
|
|
159
|
+
if (this.fullTimeExtent !== undefined) {
|
|
160
|
+
params.fullTimeExtent = this.fullTimeExtent;
|
|
161
|
+
}
|
|
162
|
+
if (this.layout !== undefined) {
|
|
163
|
+
params.layout = this.layout;
|
|
164
|
+
}
|
|
165
|
+
if (this.loop !== undefined) {
|
|
166
|
+
params.loop = this.loop;
|
|
167
|
+
}
|
|
168
|
+
if (this.mode !== undefined) {
|
|
169
|
+
params.mode = this.mode;
|
|
170
|
+
}
|
|
171
|
+
if (this.playRate !== undefined) {
|
|
172
|
+
params.playRate = this.playRate;
|
|
173
|
+
}
|
|
174
|
+
if (this.stops !== undefined) {
|
|
175
|
+
params.stops = this.stops;
|
|
176
|
+
}
|
|
177
|
+
if (this.tickConfigs !== undefined) {
|
|
178
|
+
params.tickConfigs = this.tickConfigs;
|
|
179
|
+
}
|
|
180
|
+
if (this.timeExtent !== undefined) {
|
|
181
|
+
params.timeExtent = this.timeExtent;
|
|
182
|
+
}
|
|
183
|
+
if (this.timeVisible !== undefined) {
|
|
184
|
+
params.timeVisible = this.timeVisible;
|
|
185
|
+
}
|
|
186
|
+
if (this.view) {
|
|
187
|
+
params.view = this.view;
|
|
188
|
+
}
|
|
189
|
+
return params;
|
|
190
|
+
}
|
|
191
|
+
async _proxyEvents() {
|
|
192
|
+
this.widget?.on("trigger-action", (e) => this.triggerAction.emit(e));
|
|
193
|
+
}
|
|
194
|
+
get el() { return this; }
|
|
195
|
+
static get watchers() { return {
|
|
196
|
+
"actions": ["actionsWatcher"],
|
|
197
|
+
"fullTimeExtent": ["fullTimeExtentWatcher"],
|
|
198
|
+
"layout": ["layoutWatcher"],
|
|
199
|
+
"loop": ["loopWatcher"],
|
|
200
|
+
"mode": ["modeWatcher"],
|
|
201
|
+
"playRate": ["playRateWatcher"],
|
|
202
|
+
"stops": ["stopsWatcher"],
|
|
203
|
+
"tickConfigs": ["tickConfigsWatcher"],
|
|
204
|
+
"timeExtent": ["timeExtentWatcher"],
|
|
205
|
+
"timeVisible": ["timeVisibleWatcher"],
|
|
206
|
+
"position": ["positionWatcher"],
|
|
207
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
208
|
+
"view": ["viewWatcher"]
|
|
209
|
+
}; }
|
|
210
|
+
static get style() { return arcgisTimeSliderCss; }
|
|
211
|
+
}, [0, "arcgis-time-slider", {
|
|
212
|
+
"referenceElement": [1, "reference-element"],
|
|
213
|
+
"actions": [16],
|
|
214
|
+
"effectiveStops": [1040],
|
|
215
|
+
"fullTimeExtent": [16],
|
|
216
|
+
"layout": [1],
|
|
217
|
+
"loop": [4],
|
|
218
|
+
"mode": [1],
|
|
219
|
+
"playRate": [2, "play-rate"],
|
|
220
|
+
"stops": [16],
|
|
221
|
+
"tickConfigs": [16],
|
|
222
|
+
"timeExtent": [16],
|
|
223
|
+
"timeVisible": [4, "time-visible"],
|
|
224
|
+
"view": [16],
|
|
225
|
+
"position": [1],
|
|
226
|
+
"expandable": [4],
|
|
227
|
+
"widget": [1040],
|
|
228
|
+
"next": [64],
|
|
229
|
+
"play": [64],
|
|
230
|
+
"previous": [64],
|
|
231
|
+
"stop": [64]
|
|
232
|
+
}]);
|
|
233
|
+
function defineCustomElement$1() {
|
|
234
|
+
if (typeof customElements === "undefined") {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const components = ["arcgis-time-slider", "arcgis-expand"];
|
|
238
|
+
components.forEach(tagName => { switch (tagName) {
|
|
239
|
+
case "arcgis-time-slider":
|
|
240
|
+
if (!customElements.get(tagName)) {
|
|
241
|
+
customElements.define(tagName, ArcgisTimeSlider$1);
|
|
242
|
+
}
|
|
243
|
+
break;
|
|
244
|
+
case "arcgis-expand":
|
|
245
|
+
if (!customElements.get(tagName)) {
|
|
246
|
+
defineCustomElement$2();
|
|
247
|
+
}
|
|
248
|
+
break;
|
|
249
|
+
} });
|
|
250
|
+
}
|
|
251
|
+
defineCustomElement$1();
|
|
252
|
+
|
|
253
|
+
const ArcgisTimeSlider = ArcgisTimeSlider$1;
|
|
254
|
+
const defineCustomElement = defineCustomElement$1;
|
|
255
|
+
|
|
256
|
+
export { ArcgisTimeSlider, defineCustomElement };
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { $ as newWidgetsTrack, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
|
|
5
|
+
const arcgisTrackCss = "";
|
|
6
|
+
|
|
7
|
+
const ArcgisTrack$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.trackComplete = createEvent(this, "trackComplete", 7);
|
|
12
|
+
this.trackError = createEvent(this, "trackError", 7);
|
|
13
|
+
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
14
|
+
this.referenceElement = undefined;
|
|
15
|
+
this.geolocationOptions = undefined;
|
|
16
|
+
this.goToLocationEnabled = undefined;
|
|
17
|
+
this.graphic = undefined;
|
|
18
|
+
this.scale = undefined;
|
|
19
|
+
this.tracking = undefined;
|
|
20
|
+
this.useHeadingEnabled = undefined;
|
|
21
|
+
this.position = "bottom-left";
|
|
22
|
+
this.view = undefined;
|
|
23
|
+
this.widget = undefined;
|
|
24
|
+
}
|
|
25
|
+
//--------------------------------------------------------------------------
|
|
26
|
+
//
|
|
27
|
+
// Watchers
|
|
28
|
+
//
|
|
29
|
+
//--------------------------------------------------------------------------
|
|
30
|
+
positionWatcher(newValue) {
|
|
31
|
+
if (newValue !== undefined && this.widget) {
|
|
32
|
+
if (typeof this.view !== "string") {
|
|
33
|
+
this.view.ui.move(this.childElem, newValue);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
geolocationOptionsWatcher(newValue) {
|
|
38
|
+
if (newValue !== undefined && this.widget) {
|
|
39
|
+
this.widget.geolocationOptions = newValue;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
goToLocationEnabledWatcher(newValue) {
|
|
43
|
+
if (newValue !== undefined && this.widget) {
|
|
44
|
+
this.widget.goToLocationEnabled = newValue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
graphicWatcher(newValue) {
|
|
48
|
+
if (newValue !== undefined && this.widget) {
|
|
49
|
+
this.widget.graphic = newValue;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
scaleWatcher(newValue) {
|
|
53
|
+
if (newValue !== undefined && this.widget) {
|
|
54
|
+
this.widget.scale = newValue;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
useHeadingEnabledWatcher(newValue) {
|
|
58
|
+
if (newValue !== undefined && this.widget) {
|
|
59
|
+
this.widget.useHeadingEnabled = newValue;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
referenceElementWatcher(newValue) {
|
|
63
|
+
referenceElementHelper(this, newValue);
|
|
64
|
+
}
|
|
65
|
+
viewWatcher(newValue) {
|
|
66
|
+
if (newValue !== undefined && this.widget) {
|
|
67
|
+
this.widget.view = newValue;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//--------------------------------------------------------------------------
|
|
71
|
+
//
|
|
72
|
+
// Lifecycle
|
|
73
|
+
//
|
|
74
|
+
//--------------------------------------------------------------------------
|
|
75
|
+
async componentDidLoad() {
|
|
76
|
+
const params = this._createParams();
|
|
77
|
+
const widget = await newWidgetsTrack(params);
|
|
78
|
+
this.widget = widget;
|
|
79
|
+
await this._addWatchers();
|
|
80
|
+
this._proxyEvents();
|
|
81
|
+
this.widgetReady.emit(true);
|
|
82
|
+
checkForView(this);
|
|
83
|
+
}
|
|
84
|
+
disconnectedCallback() {
|
|
85
|
+
onDisconnectedHelper(this);
|
|
86
|
+
}
|
|
87
|
+
render() {
|
|
88
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
89
|
+
}
|
|
90
|
+
//--------------------------------------------------------------------------
|
|
91
|
+
//
|
|
92
|
+
// Private Methods
|
|
93
|
+
//
|
|
94
|
+
//--------------------------------------------------------------------------
|
|
95
|
+
async _addWatchers() {
|
|
96
|
+
const { watch } = await importCoreReactiveUtils();
|
|
97
|
+
watch(() => this.widget.tracking, (value) => (this.tracking = value), {
|
|
98
|
+
initial: true
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
_createParams() {
|
|
102
|
+
const params = {
|
|
103
|
+
container: this.childElem
|
|
104
|
+
};
|
|
105
|
+
if (this.geolocationOptions !== undefined) {
|
|
106
|
+
params.geolocationOptions = this.geolocationOptions;
|
|
107
|
+
}
|
|
108
|
+
if (this.goToLocationEnabled !== undefined) {
|
|
109
|
+
params.goToLocationEnabled = this.goToLocationEnabled;
|
|
110
|
+
}
|
|
111
|
+
if (this.graphic !== undefined) {
|
|
112
|
+
params.graphic = this.graphic;
|
|
113
|
+
}
|
|
114
|
+
if (this.useHeadingEnabled !== undefined) {
|
|
115
|
+
params.useHeadingEnabled = this.useHeadingEnabled;
|
|
116
|
+
}
|
|
117
|
+
if (this.scale !== undefined) {
|
|
118
|
+
params.scale = this.scale;
|
|
119
|
+
}
|
|
120
|
+
if (this.view) {
|
|
121
|
+
params.view = this.view;
|
|
122
|
+
}
|
|
123
|
+
return params;
|
|
124
|
+
}
|
|
125
|
+
_proxyEvents() {
|
|
126
|
+
this.widget.on("track", (e) => this.trackComplete.emit(e));
|
|
127
|
+
this.widget.on("track-error", (e) => this.trackError.emit(e));
|
|
128
|
+
}
|
|
129
|
+
get el() { return this; }
|
|
130
|
+
static get watchers() { return {
|
|
131
|
+
"position": ["positionWatcher"],
|
|
132
|
+
"geolocationOptions": ["geolocationOptionsWatcher"],
|
|
133
|
+
"goToLocationEnabled": ["goToLocationEnabledWatcher"],
|
|
134
|
+
"graphic": ["graphicWatcher"],
|
|
135
|
+
"scale": ["scaleWatcher"],
|
|
136
|
+
"useHeadingEnabled": ["useHeadingEnabledWatcher"],
|
|
137
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
138
|
+
"view": ["viewWatcher"]
|
|
139
|
+
}; }
|
|
140
|
+
static get style() { return arcgisTrackCss; }
|
|
141
|
+
}, [0, "arcgis-track", {
|
|
142
|
+
"referenceElement": [1, "reference-element"],
|
|
143
|
+
"geolocationOptions": [8, "geolocation-options"],
|
|
144
|
+
"goToLocationEnabled": [4, "go-to-location-enabled"],
|
|
145
|
+
"graphic": [16],
|
|
146
|
+
"scale": [2],
|
|
147
|
+
"tracking": [1540],
|
|
148
|
+
"useHeadingEnabled": [4, "use-heading-enabled"],
|
|
149
|
+
"position": [1],
|
|
150
|
+
"view": [16],
|
|
151
|
+
"widget": [1040]
|
|
152
|
+
}]);
|
|
153
|
+
function defineCustomElement$1() {
|
|
154
|
+
if (typeof customElements === "undefined") {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const components = ["arcgis-track"];
|
|
158
|
+
components.forEach(tagName => { switch (tagName) {
|
|
159
|
+
case "arcgis-track":
|
|
160
|
+
if (!customElements.get(tagName)) {
|
|
161
|
+
customElements.define(tagName, ArcgisTrack$1);
|
|
162
|
+
}
|
|
163
|
+
break;
|
|
164
|
+
} });
|
|
165
|
+
}
|
|
166
|
+
defineCustomElement$1();
|
|
167
|
+
|
|
168
|
+
const ArcgisTrack = ArcgisTrack$1;
|
|
169
|
+
const defineCustomElement = defineCustomElement$1;
|
|
170
|
+
|
|
171
|
+
export { ArcgisTrack, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface ArcgisUtilityNetworkAssociations extends Components.ArcgisUtilityNetworkAssociations, HTMLElement {}
|
|
4
|
+
export const ArcgisUtilityNetworkAssociations: {
|
|
5
|
+
prototype: ArcgisUtilityNetworkAssociations;
|
|
6
|
+
new (): ArcgisUtilityNetworkAssociations;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { a0 as newWidgetsUtilityNetworkAssociations } from './index2.js';
|
|
3
|
+
import { u as updateForView, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
+
|
|
6
|
+
const arcgisUtilityNetworkAssociationsCss = "arcgis-utility-network-associations{}";
|
|
7
|
+
|
|
8
|
+
const ArcgisUtilityNetworkAssociations$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
13
|
+
this.referenceElement = undefined;
|
|
14
|
+
this.autoRefreshAssociations = undefined;
|
|
15
|
+
this.connectivityAssociationsLineSymbol = undefined;
|
|
16
|
+
this.includeConnectivityAssociations = undefined;
|
|
17
|
+
this.includeStructuralAttachmentAssociations = undefined;
|
|
18
|
+
this.maxAllowableAssociations = undefined;
|
|
19
|
+
this.maxAllowableAssociationsSliderMax = undefined;
|
|
20
|
+
this.maxAllowableAssociationsSliderMin = undefined;
|
|
21
|
+
this.maxAllowableAssociationsSliderStep = undefined;
|
|
22
|
+
this.showArrowsConnectivity = undefined;
|
|
23
|
+
this.showArrowsStructuralAttachment = undefined;
|
|
24
|
+
this.showAssociationsEnabled = undefined;
|
|
25
|
+
this.structuralAttachmentAssociationsLineSymbol = undefined;
|
|
26
|
+
this.utilityNetwork = undefined;
|
|
27
|
+
this.view = undefined;
|
|
28
|
+
this.position = "bottom-left";
|
|
29
|
+
this.expandable = false;
|
|
30
|
+
this.widget = undefined;
|
|
31
|
+
}
|
|
32
|
+
//--------------------------------------------------------------------------
|
|
33
|
+
//
|
|
34
|
+
// Watchers
|
|
35
|
+
//
|
|
36
|
+
//--------------------------------------------------------------------------
|
|
37
|
+
positionWatcher(newValue) {
|
|
38
|
+
if (newValue !== undefined && this.widget) {
|
|
39
|
+
if (typeof this.view !== "string") {
|
|
40
|
+
this.view.ui.move(this.childElem, newValue);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
autoRefreshAssociationsWatcher(newValue) {
|
|
45
|
+
if (newValue !== undefined && this.widget) {
|
|
46
|
+
this.widget.autoRefreshAssociations = newValue;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
connectivityAssociationsLineSymbolWatcher(newValue) {
|
|
50
|
+
if (newValue !== undefined && this.widget) {
|
|
51
|
+
this.widget.connectivityAssociationsLineSymbol = newValue;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
includeConnectivityAssociationsWatcher(newValue) {
|
|
55
|
+
if (newValue !== undefined && this.widget) {
|
|
56
|
+
this.widget.includeConnectivityAssociations = newValue;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
includeStructuralAttachmentAssociationsWatcher(newValue) {
|
|
60
|
+
if (newValue !== undefined && this.widget) {
|
|
61
|
+
this.widget.includeStructuralAttachmentAssociations = newValue;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
maxAllowableAssociationsWatcher(newValue) {
|
|
65
|
+
if (newValue !== undefined && this.widget) {
|
|
66
|
+
this.widget.maxAllowableAssociations = newValue;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
maxAllowableAssociationsSliderMaxWatcher(newValue) {
|
|
70
|
+
if (newValue !== undefined && this.widget) {
|
|
71
|
+
this.widget.maxAllowableAssociationsSliderMax = newValue;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
maxAllowableAssociationsSliderMinWatcher(newValue) {
|
|
75
|
+
if (newValue !== undefined && this.widget) {
|
|
76
|
+
this.widget.maxAllowableAssociationsSliderMin = newValue;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
maxAllowableAssociationsSliderStepWatcher(newValue) {
|
|
80
|
+
if (newValue !== undefined && this.widget) {
|
|
81
|
+
this.widget.maxAllowableAssociationsSliderStep = newValue;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
showArrowsConnectivityWatcher(newValue) {
|
|
85
|
+
if (newValue !== undefined && this.widget) {
|
|
86
|
+
this.widget.showArrowsConnectivity = newValue;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
showArrowsStructuralAttachmentWatcher(newValue) {
|
|
90
|
+
if (newValue !== undefined && this.widget) {
|
|
91
|
+
this.widget.showArrowsStructuralAttachment = newValue;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
showAssociationsEnabledWatcher(newValue) {
|
|
95
|
+
if (newValue !== undefined && this.widget) {
|
|
96
|
+
this.widget.showAssociationsEnabled = newValue;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
structuralAttachmentAssociationsLineSymbolWatcher(newValue) {
|
|
100
|
+
if (newValue !== undefined && this.widget) {
|
|
101
|
+
this.widget.structuralAttachmentAssociationsLineSymbol = newValue;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
utilityNetworkWatcher(newValue) {
|
|
105
|
+
if (newValue !== undefined && this.widget) {
|
|
106
|
+
this.widget.utilityNetwork = newValue;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
referenceElementWatcher(newValue) {
|
|
110
|
+
if (typeof newValue === "string") {
|
|
111
|
+
updateForView(newValue).then((view) => {
|
|
112
|
+
this.widget.view = view;
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
else if (newValue !== undefined && this.widget) {
|
|
116
|
+
this.widget.view = newValue.view;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
viewWatcher(newValue) {
|
|
120
|
+
if (newValue !== undefined && this.widget) {
|
|
121
|
+
this.widget.view = newValue;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
//--------------------------------------------------------------------------
|
|
125
|
+
//
|
|
126
|
+
// Lifecycle
|
|
127
|
+
//
|
|
128
|
+
//--------------------------------------------------------------------------
|
|
129
|
+
async componentDidLoad() {
|
|
130
|
+
const params = this._createParams();
|
|
131
|
+
const widget = await newWidgetsUtilityNetworkAssociations(params);
|
|
132
|
+
this.widget = widget;
|
|
133
|
+
this.widgetReady.emit(true);
|
|
134
|
+
checkForView(this);
|
|
135
|
+
}
|
|
136
|
+
disconnectedCallback() {
|
|
137
|
+
onDisconnectedHelper(this);
|
|
138
|
+
}
|
|
139
|
+
render() {
|
|
140
|
+
if (this.expandable) {
|
|
141
|
+
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
142
|
+
}
|
|
143
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
144
|
+
}
|
|
145
|
+
//--------------------------------------------------------------------------
|
|
146
|
+
//
|
|
147
|
+
// Private Methods
|
|
148
|
+
//
|
|
149
|
+
//--------------------------------------------------------------------------
|
|
150
|
+
_createParams() {
|
|
151
|
+
const params = {
|
|
152
|
+
container: this.childElem
|
|
153
|
+
};
|
|
154
|
+
if (this.autoRefreshAssociations !== undefined) {
|
|
155
|
+
params.autoRefreshAssociations = this.autoRefreshAssociations;
|
|
156
|
+
}
|
|
157
|
+
if (this.connectivityAssociationsLineSymbol !== undefined) {
|
|
158
|
+
params.connectivityAssociationsLineSymbol = this.connectivityAssociationsLineSymbol;
|
|
159
|
+
}
|
|
160
|
+
if (this.includeConnectivityAssociations !== undefined) {
|
|
161
|
+
params.includeConnectivityAssociations = this.includeConnectivityAssociations;
|
|
162
|
+
}
|
|
163
|
+
if (this.includeStructuralAttachmentAssociations !== undefined) {
|
|
164
|
+
params.includeStructuralAttachmentAssociations = this.includeStructuralAttachmentAssociations;
|
|
165
|
+
}
|
|
166
|
+
if (this.maxAllowableAssociations !== undefined) {
|
|
167
|
+
params.maxAllowableAssociations = this.maxAllowableAssociations;
|
|
168
|
+
}
|
|
169
|
+
if (this.maxAllowableAssociationsSliderMax !== undefined) {
|
|
170
|
+
params.maxAllowableAssociationsSliderMax = this.maxAllowableAssociationsSliderMax;
|
|
171
|
+
}
|
|
172
|
+
if (this.maxAllowableAssociationsSliderMin !== undefined) {
|
|
173
|
+
params.maxAllowableAssociationsSliderMin = this.maxAllowableAssociationsSliderMin;
|
|
174
|
+
}
|
|
175
|
+
if (this.maxAllowableAssociationsSliderStep !== undefined) {
|
|
176
|
+
params.maxAllowableAssociationsSliderStep = this.maxAllowableAssociationsSliderStep;
|
|
177
|
+
}
|
|
178
|
+
if (this.showArrowsConnectivity !== undefined) {
|
|
179
|
+
params.showArrowsConnectivity = this.showArrowsConnectivity;
|
|
180
|
+
}
|
|
181
|
+
if (this.showArrowsStructuralAttachment !== undefined) {
|
|
182
|
+
params.showArrowsStructuralAttachment = this.showArrowsStructuralAttachment;
|
|
183
|
+
}
|
|
184
|
+
if (this.showAssociationsEnabled !== undefined) {
|
|
185
|
+
params.showAssociationsEnabled = this.showAssociationsEnabled;
|
|
186
|
+
}
|
|
187
|
+
if (this.structuralAttachmentAssociationsLineSymbol !== undefined) {
|
|
188
|
+
params.structuralAttachmentAssociationsLineSymbol = this.structuralAttachmentAssociationsLineSymbol;
|
|
189
|
+
}
|
|
190
|
+
if (this.utilityNetwork !== undefined) {
|
|
191
|
+
params.utilityNetwork = this.utilityNetwork;
|
|
192
|
+
}
|
|
193
|
+
return params;
|
|
194
|
+
}
|
|
195
|
+
get el() { return this; }
|
|
196
|
+
static get watchers() { return {
|
|
197
|
+
"position": ["positionWatcher"],
|
|
198
|
+
"autoRefreshAssociations": ["autoRefreshAssociationsWatcher"],
|
|
199
|
+
"connectivityAssociationsLineSymbol": ["connectivityAssociationsLineSymbolWatcher"],
|
|
200
|
+
"includeConnectivityAssociations": ["includeConnectivityAssociationsWatcher"],
|
|
201
|
+
"includeStructuralAttachmentAssociations": ["includeStructuralAttachmentAssociationsWatcher"],
|
|
202
|
+
"maxAllowableAssociations": ["maxAllowableAssociationsWatcher"],
|
|
203
|
+
"maxAllowableAssociationsSliderMax": ["maxAllowableAssociationsSliderMaxWatcher"],
|
|
204
|
+
"maxAllowableAssociationsSliderMin": ["maxAllowableAssociationsSliderMinWatcher"],
|
|
205
|
+
"maxAllowableAssociationsSliderStep": ["maxAllowableAssociationsSliderStepWatcher"],
|
|
206
|
+
"showArrowsConnectivity": ["showArrowsConnectivityWatcher"],
|
|
207
|
+
"showArrowsStructuralAttachment": ["showArrowsStructuralAttachmentWatcher"],
|
|
208
|
+
"showAssociationsEnabled": ["showAssociationsEnabledWatcher"],
|
|
209
|
+
"structuralAttachmentAssociationsLineSymbol": ["structuralAttachmentAssociationsLineSymbolWatcher"],
|
|
210
|
+
"utilityNetwork": ["utilityNetworkWatcher"],
|
|
211
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
212
|
+
"view": ["viewWatcher"]
|
|
213
|
+
}; }
|
|
214
|
+
static get style() { return arcgisUtilityNetworkAssociationsCss; }
|
|
215
|
+
}, [0, "arcgis-utility-network-associations", {
|
|
216
|
+
"referenceElement": [1, "reference-element"],
|
|
217
|
+
"autoRefreshAssociations": [4, "auto-refresh-associations"],
|
|
218
|
+
"connectivityAssociationsLineSymbol": [16],
|
|
219
|
+
"includeConnectivityAssociations": [4, "include-connectivity-associations"],
|
|
220
|
+
"includeStructuralAttachmentAssociations": [4, "include-structural-attachment-associations"],
|
|
221
|
+
"maxAllowableAssociations": [2, "max-allowable-associations"],
|
|
222
|
+
"maxAllowableAssociationsSliderMax": [2, "max-allowable-associations-slider-max"],
|
|
223
|
+
"maxAllowableAssociationsSliderMin": [2, "max-allowable-associations-slider-min"],
|
|
224
|
+
"maxAllowableAssociationsSliderStep": [2, "max-allowable-associations-slider-step"],
|
|
225
|
+
"showArrowsConnectivity": [4, "show-arrows-connectivity"],
|
|
226
|
+
"showArrowsStructuralAttachment": [4, "show-arrows-structural-attachment"],
|
|
227
|
+
"showAssociationsEnabled": [4, "show-associations-enabled"],
|
|
228
|
+
"structuralAttachmentAssociationsLineSymbol": [16],
|
|
229
|
+
"utilityNetwork": [16],
|
|
230
|
+
"view": [16],
|
|
231
|
+
"position": [1],
|
|
232
|
+
"expandable": [4],
|
|
233
|
+
"widget": [1040]
|
|
234
|
+
}]);
|
|
235
|
+
function defineCustomElement$1() {
|
|
236
|
+
if (typeof customElements === "undefined") {
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
const components = ["arcgis-utility-network-associations", "arcgis-expand"];
|
|
240
|
+
components.forEach(tagName => { switch (tagName) {
|
|
241
|
+
case "arcgis-utility-network-associations":
|
|
242
|
+
if (!customElements.get(tagName)) {
|
|
243
|
+
customElements.define(tagName, ArcgisUtilityNetworkAssociations$1);
|
|
244
|
+
}
|
|
245
|
+
break;
|
|
246
|
+
case "arcgis-expand":
|
|
247
|
+
if (!customElements.get(tagName)) {
|
|
248
|
+
defineCustomElement$2();
|
|
249
|
+
}
|
|
250
|
+
break;
|
|
251
|
+
} });
|
|
252
|
+
}
|
|
253
|
+
defineCustomElement$1();
|
|
254
|
+
|
|
255
|
+
const ArcgisUtilityNetworkAssociations = ArcgisUtilityNetworkAssociations$1;
|
|
256
|
+
const defineCustomElement = defineCustomElement$1;
|
|
257
|
+
|
|
258
|
+
export { ArcgisUtilityNetworkAssociations, defineCustomElement };
|