@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,130 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { W as newWidgetsSlice, 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 arcgisSliceCss = "arcgis-slice{}";
|
|
7
|
+
|
|
8
|
+
const ArcgisSlice$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.analysis = undefined;
|
|
15
|
+
this.view = undefined;
|
|
16
|
+
this.position = "bottom-left";
|
|
17
|
+
this.expandable = false;
|
|
18
|
+
this.widget = undefined;
|
|
19
|
+
this.headingLevel = undefined;
|
|
20
|
+
}
|
|
21
|
+
//--------------------------------------------------------------------------
|
|
22
|
+
//
|
|
23
|
+
// Watchers
|
|
24
|
+
//
|
|
25
|
+
//--------------------------------------------------------------------------
|
|
26
|
+
positionWatcher(newValue) {
|
|
27
|
+
if (newValue !== undefined && this.widget) {
|
|
28
|
+
if (typeof this.view !== "string") {
|
|
29
|
+
this.view.ui.move(this.childElem, newValue);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
headingLevelWatcher(newValue) {
|
|
34
|
+
if (newValue !== undefined && this.widget) {
|
|
35
|
+
if (this.widget.headingLevel !== newValue) {
|
|
36
|
+
this.widget.headingLevel = newValue;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
referenceElementWatcher(newValue) {
|
|
41
|
+
referenceElementHelper(this, newValue);
|
|
42
|
+
}
|
|
43
|
+
viewWatcher(newValue) {
|
|
44
|
+
if (newValue !== undefined && this.widget) {
|
|
45
|
+
this.widget.view = newValue;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//--------------------------------------------------------------------------
|
|
49
|
+
//
|
|
50
|
+
// Lifecycle
|
|
51
|
+
//
|
|
52
|
+
//--------------------------------------------------------------------------
|
|
53
|
+
async componentDidLoad() {
|
|
54
|
+
const params = this._createParams();
|
|
55
|
+
const widget = await newWidgetsSlice(params);
|
|
56
|
+
this.widget = widget;
|
|
57
|
+
await this._addWatchers();
|
|
58
|
+
this.widgetReady.emit(true);
|
|
59
|
+
checkForView(this);
|
|
60
|
+
}
|
|
61
|
+
disconnectedCallback() {
|
|
62
|
+
onDisconnectedHelper(this);
|
|
63
|
+
}
|
|
64
|
+
render() {
|
|
65
|
+
if (this.expandable) {
|
|
66
|
+
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
67
|
+
}
|
|
68
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
69
|
+
}
|
|
70
|
+
//--------------------------------------------------------------------------
|
|
71
|
+
//
|
|
72
|
+
// Private Methods
|
|
73
|
+
//
|
|
74
|
+
//--------------------------------------------------------------------------
|
|
75
|
+
async _addWatchers() {
|
|
76
|
+
const { watch } = await importCoreReactiveUtils();
|
|
77
|
+
watch(() => this.widget.analysis, (value) => (this.analysis = value), {
|
|
78
|
+
initial: true
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
_createParams() {
|
|
82
|
+
const params = {
|
|
83
|
+
container: this.childElem
|
|
84
|
+
};
|
|
85
|
+
if (this.view) {
|
|
86
|
+
params.view = this.view;
|
|
87
|
+
}
|
|
88
|
+
return params;
|
|
89
|
+
}
|
|
90
|
+
get el() { return this; }
|
|
91
|
+
static get watchers() { return {
|
|
92
|
+
"position": ["positionWatcher"],
|
|
93
|
+
"headingLevel": ["headingLevelWatcher"],
|
|
94
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
95
|
+
"view": ["viewWatcher"]
|
|
96
|
+
}; }
|
|
97
|
+
static get style() { return arcgisSliceCss; }
|
|
98
|
+
}, [0, "arcgis-slice", {
|
|
99
|
+
"referenceElement": [1, "reference-element"],
|
|
100
|
+
"analysis": [1040],
|
|
101
|
+
"view": [16],
|
|
102
|
+
"position": [1],
|
|
103
|
+
"expandable": [4],
|
|
104
|
+
"widget": [1040],
|
|
105
|
+
"headingLevel": [2, "heading-level"]
|
|
106
|
+
}]);
|
|
107
|
+
function defineCustomElement$1() {
|
|
108
|
+
if (typeof customElements === "undefined") {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const components = ["arcgis-slice", "arcgis-expand"];
|
|
112
|
+
components.forEach(tagName => { switch (tagName) {
|
|
113
|
+
case "arcgis-slice":
|
|
114
|
+
if (!customElements.get(tagName)) {
|
|
115
|
+
customElements.define(tagName, ArcgisSlice$1);
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
case "arcgis-expand":
|
|
119
|
+
if (!customElements.get(tagName)) {
|
|
120
|
+
defineCustomElement$2();
|
|
121
|
+
}
|
|
122
|
+
break;
|
|
123
|
+
} });
|
|
124
|
+
}
|
|
125
|
+
defineCustomElement$1();
|
|
126
|
+
|
|
127
|
+
const ArcgisSlice = ArcgisSlice$1;
|
|
128
|
+
const defineCustomElement = defineCustomElement$1;
|
|
129
|
+
|
|
130
|
+
export { ArcgisSlice, defineCustomElement };
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { X as newWidgetsSlider, i as importCoreReactiveUtils } from './index2.js';
|
|
3
|
+
import { c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
import { d as defineCustomElement$2 } from './arcgis-expand2.js';
|
|
5
|
+
|
|
6
|
+
const arcgisSliderCss = "arcgis-slider{min-width:200px;min-height:25px}";
|
|
7
|
+
|
|
8
|
+
const ArcgisSlider$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super();
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
this.sliderMaxChange = createEvent(this, "sliderMaxChange", 7);
|
|
13
|
+
this.sliderMaxClick = createEvent(this, "sliderMaxClick", 7);
|
|
14
|
+
this.sliderMinChange = createEvent(this, "sliderMinChange", 7);
|
|
15
|
+
this.sliderMinClick = createEvent(this, "sliderMinClick", 7);
|
|
16
|
+
this.sliderSegmentClick = createEvent(this, "sliderSegmentClick", 7);
|
|
17
|
+
this.sliderSegmentDrag = createEvent(this, "sliderSegmentDrag", 7);
|
|
18
|
+
this.sliderThumbChange = createEvent(this, "sliderThumbChange", 7);
|
|
19
|
+
this.sliderThumbClick = createEvent(this, "sliderThumbClick", 7);
|
|
20
|
+
this.sliderThumbDrag = createEvent(this, "sliderThumbDrag", 7);
|
|
21
|
+
this.sliderTickClick = createEvent(this, "sliderTickClick", 7);
|
|
22
|
+
this.sliderTrackClick = createEvent(this, "sliderTrackClick", 7);
|
|
23
|
+
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
24
|
+
this.referenceElement = undefined;
|
|
25
|
+
this.draggableSegmentsEnabled = undefined;
|
|
26
|
+
this.effectiveMax = undefined;
|
|
27
|
+
this.effectiveMin = undefined;
|
|
28
|
+
this.effectiveSegmentElements = undefined;
|
|
29
|
+
this.labelElements = undefined;
|
|
30
|
+
this.labelInputsEnabled = undefined;
|
|
31
|
+
this.labels = undefined;
|
|
32
|
+
this.layout = "horizontal";
|
|
33
|
+
this.min = undefined;
|
|
34
|
+
this.max = undefined;
|
|
35
|
+
this.maxLabelElement = undefined;
|
|
36
|
+
this.minLabelElement = undefined;
|
|
37
|
+
this.precision = undefined;
|
|
38
|
+
this.rangeLabelInputsEnabled = undefined;
|
|
39
|
+
this.segmentElements = undefined;
|
|
40
|
+
this.snapOnClickEnabled = undefined;
|
|
41
|
+
this.syncedSegmentsEnabled = undefined;
|
|
42
|
+
this.thumbElements = undefined;
|
|
43
|
+
this.thumbsConstrained = undefined;
|
|
44
|
+
this.tickConfigs = undefined;
|
|
45
|
+
this.tickElements = undefined;
|
|
46
|
+
this.trackElement = undefined;
|
|
47
|
+
this.steps = undefined;
|
|
48
|
+
this.values = undefined;
|
|
49
|
+
this.position = "bottom-left";
|
|
50
|
+
this.expandable = false;
|
|
51
|
+
this.widget = undefined;
|
|
52
|
+
}
|
|
53
|
+
//--------------------------------------------------------------------------
|
|
54
|
+
//
|
|
55
|
+
// Watchers
|
|
56
|
+
//
|
|
57
|
+
//--------------------------------------------------------------------------
|
|
58
|
+
draggableSegmentsEnabledWatcher(newValue) {
|
|
59
|
+
if (this.widget) {
|
|
60
|
+
this.widget.draggableSegmentsEnabled = newValue;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
effectiveMaxWatcher(newValue) {
|
|
64
|
+
if (this.widget) {
|
|
65
|
+
this.widget.effectiveMax = newValue;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
effectiveMinWatcher(newValue) {
|
|
69
|
+
if (this.widget) {
|
|
70
|
+
this.widget.effectiveMin = newValue;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
layoutWatcher(newValue) {
|
|
74
|
+
if (this.widget) {
|
|
75
|
+
this.widget.layout = newValue;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
minWatcher(newValue) {
|
|
79
|
+
if (this.widget) {
|
|
80
|
+
this.widget.min = newValue;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
maxWatcher(newValue) {
|
|
84
|
+
if (this.widget) {
|
|
85
|
+
this.widget.max = newValue;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
precisionWatcher(newValue) {
|
|
89
|
+
if (this.widget) {
|
|
90
|
+
this.widget.precision = newValue;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
rangeLabelInputsEnabledWatcher(newValue) {
|
|
94
|
+
if (this.widget) {
|
|
95
|
+
this.widget.rangeLabelInputsEnabled = newValue;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
snapOnClickEnabledWatcher(newValue) {
|
|
99
|
+
if (this.widget) {
|
|
100
|
+
this.widget.snapOnClickEnabled = newValue;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
stepsWatcher(newValue) {
|
|
104
|
+
if (this.widget) {
|
|
105
|
+
this.widget.steps = newValue;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
syncedSegmentsEnabledWatcher(newValue) {
|
|
109
|
+
if (this.widget) {
|
|
110
|
+
this.widget.syncedSegmentsEnabled = newValue;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
thumbsConstrainedWatcher(newValue) {
|
|
114
|
+
if (this.widget) {
|
|
115
|
+
this.widget.thumbsConstrained = newValue;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
tickConfigsWatcher(newValue) {
|
|
119
|
+
if (this.widget) {
|
|
120
|
+
this.widget.tickConfigs = newValue;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
valuesWatcher(newValue) {
|
|
124
|
+
if (typeof newValue === "string") {
|
|
125
|
+
this.values = newValue.split(",").map((n) => Number(n));
|
|
126
|
+
}
|
|
127
|
+
if (this.widget) {
|
|
128
|
+
this.widget.values = this.values;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
//--------------------------------------------------------------------------
|
|
132
|
+
//
|
|
133
|
+
// Lifecycle
|
|
134
|
+
//
|
|
135
|
+
//--------------------------------------------------------------------------
|
|
136
|
+
async componentDidLoad() {
|
|
137
|
+
const params = this._createParams();
|
|
138
|
+
const widget = await newWidgetsSlider(params);
|
|
139
|
+
this.widget = widget;
|
|
140
|
+
await this._addWatchers();
|
|
141
|
+
this.widgetReady.emit(true);
|
|
142
|
+
checkForView(this);
|
|
143
|
+
}
|
|
144
|
+
disconnectedCallback() {
|
|
145
|
+
onDisconnectedHelper(this);
|
|
146
|
+
}
|
|
147
|
+
render() {
|
|
148
|
+
if (this.expandable) {
|
|
149
|
+
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
150
|
+
}
|
|
151
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
152
|
+
}
|
|
153
|
+
//--------------------------------------------------------------------------
|
|
154
|
+
//
|
|
155
|
+
// Private Methods
|
|
156
|
+
//
|
|
157
|
+
//--------------------------------------------------------------------------
|
|
158
|
+
async _addWatchers() {
|
|
159
|
+
const { watch } = await importCoreReactiveUtils();
|
|
160
|
+
watch(() => this.widget.effectiveSegmentElements, (value) => (this.effectiveSegmentElements = value), {
|
|
161
|
+
initial: true
|
|
162
|
+
});
|
|
163
|
+
watch(() => this.widget.labelElements, (value) => (this.labelElements = value), {
|
|
164
|
+
initial: true
|
|
165
|
+
});
|
|
166
|
+
watch(() => this.widget.maxLabelElement, (value) => (this.maxLabelElement = value), {
|
|
167
|
+
initial: true
|
|
168
|
+
});
|
|
169
|
+
watch(() => this.widget.minLabelElement, (value) => (this.minLabelElement = value), {
|
|
170
|
+
initial: true
|
|
171
|
+
});
|
|
172
|
+
watch(() => this.widget.segmentElements, (value) => (this.segmentElements = value), {
|
|
173
|
+
initial: true
|
|
174
|
+
});
|
|
175
|
+
watch(() => this.widget.thumbElements, (value) => (this.thumbElements = value), {
|
|
176
|
+
initial: true
|
|
177
|
+
});
|
|
178
|
+
watch(() => this.widget.tickElements, (value) => (this.tickElements = value), {
|
|
179
|
+
initial: true
|
|
180
|
+
});
|
|
181
|
+
watch(() => this.widget.trackElement, (value) => (this.trackElement = value), {
|
|
182
|
+
initial: true
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
_createParams() {
|
|
186
|
+
const params = {
|
|
187
|
+
container: this.childElem,
|
|
188
|
+
layout: this.layout
|
|
189
|
+
};
|
|
190
|
+
if (this.min !== undefined) {
|
|
191
|
+
params.min = this.min;
|
|
192
|
+
}
|
|
193
|
+
if (this.max !== undefined) {
|
|
194
|
+
params.max = this.max;
|
|
195
|
+
}
|
|
196
|
+
if (this.steps) {
|
|
197
|
+
if (typeof this.steps === "string") {
|
|
198
|
+
this.steps = this.steps.split(",").map((n) => Number(n));
|
|
199
|
+
}
|
|
200
|
+
params.steps = this.steps;
|
|
201
|
+
}
|
|
202
|
+
if (this.values) {
|
|
203
|
+
if (typeof this.values === "string") {
|
|
204
|
+
this.values = this.values.split(",").map((n) => Number(n));
|
|
205
|
+
}
|
|
206
|
+
params.values = this.values;
|
|
207
|
+
}
|
|
208
|
+
return params;
|
|
209
|
+
}
|
|
210
|
+
get el() { return this; }
|
|
211
|
+
static get watchers() { return {
|
|
212
|
+
"draggableSegmentsEnabled": ["draggableSegmentsEnabledWatcher"],
|
|
213
|
+
"effectiveMax": ["effectiveMaxWatcher"],
|
|
214
|
+
"effectiveMin": ["effectiveMinWatcher"],
|
|
215
|
+
"layout": ["layoutWatcher"],
|
|
216
|
+
"min": ["minWatcher"],
|
|
217
|
+
"max": ["maxWatcher"],
|
|
218
|
+
"precision": ["precisionWatcher"],
|
|
219
|
+
"rangeLabelInputsEnabled": ["rangeLabelInputsEnabledWatcher"],
|
|
220
|
+
"snapOnClickEnabled": ["snapOnClickEnabledWatcher"],
|
|
221
|
+
"steps": ["stepsWatcher"],
|
|
222
|
+
"syncedSegmentsEnabled": ["syncedSegmentsEnabledWatcher"],
|
|
223
|
+
"thumbsConstrained": ["thumbsConstrainedWatcher"],
|
|
224
|
+
"tickConfigs": ["tickConfigsWatcher"],
|
|
225
|
+
"values": ["valuesWatcher"]
|
|
226
|
+
}; }
|
|
227
|
+
static get style() { return arcgisSliderCss; }
|
|
228
|
+
}, [0, "arcgis-slider", {
|
|
229
|
+
"referenceElement": [1, "reference-element"],
|
|
230
|
+
"draggableSegmentsEnabled": [4, "draggable-segments-enabled"],
|
|
231
|
+
"effectiveMax": [2, "effective-max"],
|
|
232
|
+
"effectiveMin": [2, "effective-min"],
|
|
233
|
+
"effectiveSegmentElements": [1040],
|
|
234
|
+
"labelElements": [1040],
|
|
235
|
+
"labelInputsEnabled": [4, "label-inputs-enabled"],
|
|
236
|
+
"labels": [16],
|
|
237
|
+
"layout": [1],
|
|
238
|
+
"min": [2],
|
|
239
|
+
"max": [2],
|
|
240
|
+
"maxLabelElement": [1040],
|
|
241
|
+
"minLabelElement": [1040],
|
|
242
|
+
"precision": [2],
|
|
243
|
+
"rangeLabelInputsEnabled": [4, "range-label-inputs-enabled"],
|
|
244
|
+
"segmentElements": [1040],
|
|
245
|
+
"snapOnClickEnabled": [4, "snap-on-click-enabled"],
|
|
246
|
+
"syncedSegmentsEnabled": [4, "synced-segments-enabled"],
|
|
247
|
+
"thumbElements": [1040],
|
|
248
|
+
"thumbsConstrained": [4, "thumbs-constrained"],
|
|
249
|
+
"tickConfigs": [16],
|
|
250
|
+
"tickElements": [1040],
|
|
251
|
+
"trackElement": [1040],
|
|
252
|
+
"steps": [8],
|
|
253
|
+
"values": [1],
|
|
254
|
+
"position": [1],
|
|
255
|
+
"expandable": [4],
|
|
256
|
+
"widget": [1040]
|
|
257
|
+
}]);
|
|
258
|
+
function defineCustomElement$1() {
|
|
259
|
+
if (typeof customElements === "undefined") {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const components = ["arcgis-slider", "arcgis-expand"];
|
|
263
|
+
components.forEach(tagName => { switch (tagName) {
|
|
264
|
+
case "arcgis-slider":
|
|
265
|
+
if (!customElements.get(tagName)) {
|
|
266
|
+
customElements.define(tagName, ArcgisSlider$1);
|
|
267
|
+
}
|
|
268
|
+
break;
|
|
269
|
+
case "arcgis-expand":
|
|
270
|
+
if (!customElements.get(tagName)) {
|
|
271
|
+
defineCustomElement$2();
|
|
272
|
+
}
|
|
273
|
+
break;
|
|
274
|
+
} });
|
|
275
|
+
}
|
|
276
|
+
defineCustomElement$1();
|
|
277
|
+
|
|
278
|
+
const ArcgisSlider = ArcgisSlider$1;
|
|
279
|
+
const defineCustomElement = defineCustomElement$1;
|
|
280
|
+
|
|
281
|
+
export { ArcgisSlider, defineCustomElement };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { Y as newWidgetsSwipe } from './index2.js';
|
|
3
|
+
import { r as referenceElementHelper, c as checkForView, o as onDisconnectedHelper } from './disconnected.js';
|
|
4
|
+
|
|
5
|
+
const arcgisSwipeCss = "arcgis-swipe{}";
|
|
6
|
+
|
|
7
|
+
const ArcgisSwipe$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
this.__registerHost();
|
|
11
|
+
this.widgetReady = createEvent(this, "widgetReady", 7);
|
|
12
|
+
this.referenceElement = undefined;
|
|
13
|
+
this.direction = undefined;
|
|
14
|
+
this.dragLabel = undefined;
|
|
15
|
+
this.leadingLayers = undefined;
|
|
16
|
+
this.swipePosition = undefined;
|
|
17
|
+
this.trailingLayers = undefined;
|
|
18
|
+
this.view = undefined;
|
|
19
|
+
this.position = "bottom-left";
|
|
20
|
+
this.widget = undefined;
|
|
21
|
+
}
|
|
22
|
+
//--------------------------------------------------------------------------
|
|
23
|
+
//
|
|
24
|
+
// Watchers
|
|
25
|
+
//
|
|
26
|
+
//--------------------------------------------------------------------------
|
|
27
|
+
directionWatcher(newValue) {
|
|
28
|
+
if (newValue !== undefined && this.widget) {
|
|
29
|
+
this.widget.direction = newValue;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
dragLabelWatcher(newValue) {
|
|
33
|
+
if (newValue !== undefined && this.widget) {
|
|
34
|
+
this.widget.dragLabel = newValue;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
leadingLayersWatcher(newValue) {
|
|
38
|
+
if (newValue !== undefined && this.widget) {
|
|
39
|
+
this.widget.leadingLayers = newValue;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
swipePositionWatcher(newValue) {
|
|
43
|
+
if (newValue !== undefined && this.widget) {
|
|
44
|
+
this.widget.position = newValue;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
trailingLayersWatcher(newValue) {
|
|
48
|
+
if (newValue !== undefined && this.widget) {
|
|
49
|
+
this.widget.trailingLayers = newValue;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
positionWatcher(newValue) {
|
|
53
|
+
if (newValue !== undefined && this.widget) {
|
|
54
|
+
if (typeof this.view !== "string") {
|
|
55
|
+
this.view.ui.move(this.childElem, newValue);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
referenceElementWatcher(newValue) {
|
|
60
|
+
referenceElementHelper(this, newValue);
|
|
61
|
+
}
|
|
62
|
+
viewWatcher(newValue) {
|
|
63
|
+
if (newValue !== undefined && this.widget) {
|
|
64
|
+
this.widget.view = newValue;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//--------------------------------------------------------------------------
|
|
68
|
+
//
|
|
69
|
+
// Lifecycle
|
|
70
|
+
//
|
|
71
|
+
//--------------------------------------------------------------------------
|
|
72
|
+
async componentDidLoad() {
|
|
73
|
+
const params = this._createParams();
|
|
74
|
+
const widget = await newWidgetsSwipe(params);
|
|
75
|
+
this.widget = widget;
|
|
76
|
+
this.widgetReady.emit(true);
|
|
77
|
+
checkForView(this);
|
|
78
|
+
}
|
|
79
|
+
disconnectedCallback() {
|
|
80
|
+
onDisconnectedHelper(this);
|
|
81
|
+
}
|
|
82
|
+
render() {
|
|
83
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
84
|
+
}
|
|
85
|
+
//--------------------------------------------------------------------------
|
|
86
|
+
//
|
|
87
|
+
// Private Methods
|
|
88
|
+
//
|
|
89
|
+
//--------------------------------------------------------------------------
|
|
90
|
+
_createParams() {
|
|
91
|
+
const params = {
|
|
92
|
+
container: this.childElem
|
|
93
|
+
};
|
|
94
|
+
if (this.view) {
|
|
95
|
+
params.view = this.view;
|
|
96
|
+
}
|
|
97
|
+
return params;
|
|
98
|
+
}
|
|
99
|
+
get el() { return this; }
|
|
100
|
+
static get watchers() { return {
|
|
101
|
+
"direction": ["directionWatcher"],
|
|
102
|
+
"dragLabel": ["dragLabelWatcher"],
|
|
103
|
+
"leadingLayers": ["leadingLayersWatcher"],
|
|
104
|
+
"swipePosition": ["swipePositionWatcher"],
|
|
105
|
+
"trailingLayers": ["trailingLayersWatcher"],
|
|
106
|
+
"position": ["positionWatcher"],
|
|
107
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
108
|
+
"view": ["viewWatcher"]
|
|
109
|
+
}; }
|
|
110
|
+
static get style() { return arcgisSwipeCss; }
|
|
111
|
+
}, [0, "arcgis-swipe", {
|
|
112
|
+
"referenceElement": [1, "reference-element"],
|
|
113
|
+
"direction": [1],
|
|
114
|
+
"dragLabel": [1, "drag-label"],
|
|
115
|
+
"leadingLayers": [16],
|
|
116
|
+
"swipePosition": [2, "swipe-position"],
|
|
117
|
+
"trailingLayers": [16],
|
|
118
|
+
"view": [16],
|
|
119
|
+
"position": [1],
|
|
120
|
+
"widget": [1040]
|
|
121
|
+
}]);
|
|
122
|
+
function defineCustomElement$1() {
|
|
123
|
+
if (typeof customElements === "undefined") {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const components = ["arcgis-swipe"];
|
|
127
|
+
components.forEach(tagName => { switch (tagName) {
|
|
128
|
+
case "arcgis-swipe":
|
|
129
|
+
if (!customElements.get(tagName)) {
|
|
130
|
+
customElements.define(tagName, ArcgisSwipe$1);
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
} });
|
|
134
|
+
}
|
|
135
|
+
defineCustomElement$1();
|
|
136
|
+
|
|
137
|
+
const ArcgisSwipe = ArcgisSwipe$1;
|
|
138
|
+
const defineCustomElement = defineCustomElement$1;
|
|
139
|
+
|
|
140
|
+
export { ArcgisSwipe, defineCustomElement };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { Z as newWidgetsTableList, 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 arcgisTableListCss = "arcgis-table-list{}";
|
|
7
|
+
|
|
8
|
+
const ArcgisTableList$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.multipleSelectionEnabled = false;
|
|
16
|
+
this.selectionEnabled = true;
|
|
17
|
+
this.selectedItems = undefined;
|
|
18
|
+
this.tableItems = undefined;
|
|
19
|
+
this.view = undefined;
|
|
20
|
+
this.position = "bottom-left";
|
|
21
|
+
this.expandable = false;
|
|
22
|
+
this.widget = undefined;
|
|
23
|
+
}
|
|
24
|
+
//--------------------------------------------------------------------------
|
|
25
|
+
//
|
|
26
|
+
// Watchers
|
|
27
|
+
//
|
|
28
|
+
//--------------------------------------------------------------------------
|
|
29
|
+
multipleSelectionEnabledWatcher(newValue) {
|
|
30
|
+
if (newValue !== undefined && this.widget) {
|
|
31
|
+
this.widget.multipleSelectionEnabled = newValue;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
selectionEnabledWatcher(newValue) {
|
|
35
|
+
if (newValue !== undefined && this.widget) {
|
|
36
|
+
this.widget.selectionEnabled = newValue;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
positionWatcher(newValue) {
|
|
40
|
+
if (newValue !== undefined && this.widget) {
|
|
41
|
+
if (typeof this.view !== "string") {
|
|
42
|
+
this.view.ui.move(this.childElem, newValue);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
referenceElementWatcher(newValue) {
|
|
47
|
+
referenceElementHelper(this, newValue);
|
|
48
|
+
}
|
|
49
|
+
viewWatcher(newValue) {
|
|
50
|
+
if (newValue !== undefined && this.widget) {
|
|
51
|
+
this.widget.map = newValue.map;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//--------------------------------------------------------------------------
|
|
55
|
+
//
|
|
56
|
+
// Lifecycle
|
|
57
|
+
//
|
|
58
|
+
//--------------------------------------------------------------------------
|
|
59
|
+
async componentDidLoad() {
|
|
60
|
+
const params = this._createParams();
|
|
61
|
+
const widget = await newWidgetsTableList(params);
|
|
62
|
+
this.widget = widget;
|
|
63
|
+
await this._addWatchers();
|
|
64
|
+
this.widgetReady.emit(true);
|
|
65
|
+
checkForView(this);
|
|
66
|
+
this._hookEvents(this.widget);
|
|
67
|
+
}
|
|
68
|
+
disconnectedCallback() {
|
|
69
|
+
onDisconnectedHelper(this);
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
if (this.expandable) {
|
|
73
|
+
return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
|
|
74
|
+
}
|
|
75
|
+
return h("div", { ref: (el) => (this.childElem = el) });
|
|
76
|
+
}
|
|
77
|
+
//--------------------------------------------------------------------------
|
|
78
|
+
//
|
|
79
|
+
// Private Methods
|
|
80
|
+
//
|
|
81
|
+
//--------------------------------------------------------------------------
|
|
82
|
+
async _addWatchers() {
|
|
83
|
+
const { watch } = await importCoreReactiveUtils();
|
|
84
|
+
watch(() => this.widget.selectedItems, (value) => (this.selectedItems = value));
|
|
85
|
+
watch(() => this.widget.tableItems, (value) => (this.tableItems = value));
|
|
86
|
+
}
|
|
87
|
+
_createParams() {
|
|
88
|
+
const params = {
|
|
89
|
+
container: this.childElem,
|
|
90
|
+
multipleSelectionEnabled: this.multipleSelectionEnabled,
|
|
91
|
+
selectionEnabled: this.selectionEnabled
|
|
92
|
+
};
|
|
93
|
+
if (this.view) {
|
|
94
|
+
params.map = this.view.map;
|
|
95
|
+
}
|
|
96
|
+
return params;
|
|
97
|
+
}
|
|
98
|
+
_hookEvents(widget) {
|
|
99
|
+
const triggerHandle = widget.on("trigger-action", (e) => {
|
|
100
|
+
this.triggerAction.emit(e);
|
|
101
|
+
});
|
|
102
|
+
widget.own(triggerHandle);
|
|
103
|
+
}
|
|
104
|
+
get el() { return this; }
|
|
105
|
+
static get watchers() { return {
|
|
106
|
+
"multipleSelectionEnabled": ["multipleSelectionEnabledWatcher"],
|
|
107
|
+
"selectionEnabled": ["selectionEnabledWatcher"],
|
|
108
|
+
"position": ["positionWatcher"],
|
|
109
|
+
"referenceElement": ["referenceElementWatcher"],
|
|
110
|
+
"view": ["viewWatcher"]
|
|
111
|
+
}; }
|
|
112
|
+
static get style() { return arcgisTableListCss; }
|
|
113
|
+
}, [0, "arcgis-table-list", {
|
|
114
|
+
"referenceElement": [1, "reference-element"],
|
|
115
|
+
"multipleSelectionEnabled": [4, "multiple-selection-enabled"],
|
|
116
|
+
"selectionEnabled": [4, "selection-enabled"],
|
|
117
|
+
"selectedItems": [1040],
|
|
118
|
+
"tableItems": [1040],
|
|
119
|
+
"view": [16],
|
|
120
|
+
"position": [1],
|
|
121
|
+
"expandable": [4],
|
|
122
|
+
"widget": [1040]
|
|
123
|
+
}]);
|
|
124
|
+
function defineCustomElement$1() {
|
|
125
|
+
if (typeof customElements === "undefined") {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const components = ["arcgis-table-list", "arcgis-expand"];
|
|
129
|
+
components.forEach(tagName => { switch (tagName) {
|
|
130
|
+
case "arcgis-table-list":
|
|
131
|
+
if (!customElements.get(tagName)) {
|
|
132
|
+
customElements.define(tagName, ArcgisTableList$1);
|
|
133
|
+
}
|
|
134
|
+
break;
|
|
135
|
+
case "arcgis-expand":
|
|
136
|
+
if (!customElements.get(tagName)) {
|
|
137
|
+
defineCustomElement$2();
|
|
138
|
+
}
|
|
139
|
+
break;
|
|
140
|
+
} });
|
|
141
|
+
}
|
|
142
|
+
defineCustomElement$1();
|
|
143
|
+
|
|
144
|
+
const ArcgisTableList = ArcgisTableList$1;
|
|
145
|
+
const defineCustomElement = defineCustomElement$1;
|
|
146
|
+
|
|
147
|
+
export { ArcgisTableList, defineCustomElement };
|