@arcgis/map-components 1.0.0-beta.16 → 1.0.0-beta.18

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.
Files changed (61) hide show
  1. package/dist/arcgis-map-components/app-globals-0f993ce5.js +3 -0
  2. package/dist/arcgis-map-components/arcgis-area-measurement-2d.entry.js +97 -0
  3. package/dist/arcgis-map-components/arcgis-area-measurement-3d.entry.js +90 -0
  4. package/dist/arcgis-map-components/arcgis-attachments.entry.js +69 -0
  5. package/dist/arcgis-map-components/arcgis-basemap-gallery.entry.js +93 -0
  6. package/dist/arcgis-map-components/arcgis-basemap-layer-list.entry.js +140 -0
  7. package/dist/arcgis-map-components/arcgis-basemap-toggle.entry.js +111 -0
  8. package/dist/arcgis-map-components/arcgis-bookmarks.entry.js +136 -0
  9. package/dist/arcgis-map-components/arcgis-building-explorer.entry.js +76 -0
  10. package/dist/arcgis-map-components/arcgis-compass.entry.js +86 -0
  11. package/dist/arcgis-map-components/arcgis-coordinate-conversion.entry.js +154 -0
  12. package/dist/arcgis-map-components/arcgis-daylight.entry.js +112 -0
  13. package/dist/arcgis-map-components/arcgis-directions.entry.js +190 -0
  14. package/dist/arcgis-map-components/arcgis-directline-measurement-3d.entry.js +110 -0
  15. package/dist/arcgis-map-components/arcgis-distance-measurement-2d.entry.js +102 -0
  16. package/dist/arcgis-map-components/arcgis-editor.entry.js +176 -0
  17. package/dist/arcgis-map-components/arcgis-elevation-profile.entry.js +132 -0
  18. package/dist/arcgis-map-components/arcgis-expand.entry.js +88 -0
  19. package/dist/arcgis-map-components/arcgis-feature-form.entry.js +32 -0
  20. package/dist/arcgis-map-components/arcgis-feature-table.entry.js +296 -0
  21. package/dist/arcgis-map-components/arcgis-feature-templates.entry.js +69 -0
  22. package/dist/arcgis-map-components/arcgis-feature.entry.js +102 -0
  23. package/dist/arcgis-map-components/arcgis-features.entry.js +129 -0
  24. package/dist/arcgis-map-components/arcgis-floor-filter.entry.js +130 -0
  25. package/dist/arcgis-map-components/arcgis-fullscreen.entry.js +88 -0
  26. package/dist/arcgis-map-components/arcgis-histogram-range-slider.entry.js +76 -0
  27. package/dist/arcgis-map-components/arcgis-histogram.entry.js +32 -0
  28. package/dist/arcgis-map-components/arcgis-home.entry.js +104 -0
  29. package/dist/arcgis-map-components/arcgis-layer-list.entry.js +124 -0
  30. package/dist/arcgis-map-components/arcgis-legend.entry.js +142 -0
  31. package/dist/arcgis-map-components/arcgis-line-of-sight.entry.js +90 -0
  32. package/dist/arcgis-map-components/arcgis-locate.entry.js +154 -0
  33. package/dist/arcgis-map-components/arcgis-map.entry.js +104 -0
  34. package/dist/arcgis-map-components/arcgis-measurement.entry.js +119 -0
  35. package/dist/arcgis-map-components/arcgis-navigation-toggle.entry.js +93 -0
  36. package/dist/arcgis-map-components/arcgis-print.entry.js +159 -0
  37. package/dist/arcgis-map-components/arcgis-scale-bar.entry.js +102 -0
  38. package/dist/arcgis-map-components/arcgis-scale-range-slider.entry.js +142 -0
  39. package/dist/arcgis-map-components/arcgis-scene.entry.js +102 -0
  40. package/dist/arcgis-map-components/arcgis-search.entry.js +272 -0
  41. package/dist/arcgis-map-components/arcgis-shadow-cast.entry.js +91 -0
  42. package/dist/arcgis-map-components/arcgis-sketch.entry.js +197 -0
  43. package/dist/arcgis-map-components/arcgis-slice.entry.js +99 -0
  44. package/dist/arcgis-map-components/arcgis-slider.entry.js +229 -0
  45. package/dist/arcgis-map-components/arcgis-swipe.entry.js +113 -0
  46. package/dist/arcgis-map-components/arcgis-table-list.entry.js +114 -0
  47. package/dist/arcgis-map-components/arcgis-time-slider.entry.js +212 -0
  48. package/dist/arcgis-map-components/arcgis-track.entry.js +143 -0
  49. package/dist/arcgis-map-components/arcgis-utility-network-trace.entry.js +158 -0
  50. package/dist/arcgis-map-components/arcgis-value-picker.entry.js +156 -0
  51. package/dist/arcgis-map-components/arcgis-weather.entry.js +82 -0
  52. package/dist/arcgis-map-components/arcgis-zoom.entry.js +96 -0
  53. package/dist/arcgis-map-components/component-utils-d3552de2.js +73 -0
  54. package/dist/arcgis-map-components/css-shim-b7d3d95f.js +4 -0
  55. package/dist/arcgis-map-components/disconnected-bc5fc8bc.js +52 -0
  56. package/dist/arcgis-map-components/dom-64053c71.js +73 -0
  57. package/dist/arcgis-map-components/index-82d260eb.js +8293 -0
  58. package/dist/arcgis-map-components/index-d9a93dfb.js +3371 -0
  59. package/dist/arcgis-map-components/mapping-utils-26beb904.js +38 -0
  60. package/dist/arcgis-map-components/shadow-css-008a49f5.js +387 -0
  61. package/package.json +3 -3
@@ -0,0 +1,136 @@
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-d9a93dfb.js';
2
+ import { f as newWidgetsBookmarks, i as importCoreReactiveUtils } from './index-82d260eb.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-d3552de2.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
5
+
6
+ const arcgisBookmarksCss = "";
7
+
8
+ const ArcgisBookmarks = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.bookmarkEdit = createEvent(this, "bookmarkEdit", 7);
12
+ this.bookmarkSelect = createEvent(this, "bookmarkSelect", 7);
13
+ this.widgetReady = createEvent(this, "widgetReady", 7);
14
+ this.referenceElement = undefined;
15
+ this.bookmarks = undefined;
16
+ this.defaultCreateOptions = undefined;
17
+ this.defaultEditOptions = undefined;
18
+ this.editingEnabled = undefined;
19
+ this.position = "bottom-left";
20
+ this.expandable = false;
21
+ this.view = undefined;
22
+ this.widget = undefined;
23
+ }
24
+ //--------------------------------------------------------------------------
25
+ //
26
+ // Watchers
27
+ //
28
+ //--------------------------------------------------------------------------
29
+ positionWatcher(newValue) {
30
+ if (newValue !== undefined && this.widget) {
31
+ if (typeof this.view !== "string") {
32
+ this.view.ui.move(this.childElem, newValue);
33
+ }
34
+ }
35
+ }
36
+ bookmarksWatcher(newValue) {
37
+ if (newValue !== undefined && this.widget) {
38
+ this.widget.bookmarks = newValue;
39
+ }
40
+ }
41
+ defaultCreateOptionsWatcher(newValue) {
42
+ if (newValue !== undefined && this.widget) {
43
+ this.widget.defaultCreateOptions = newValue;
44
+ }
45
+ }
46
+ defaultEditOptionsWatcher(newValue) {
47
+ if (newValue !== undefined && this.widget) {
48
+ this.widget.defaultEditOptions = newValue;
49
+ }
50
+ }
51
+ editingEnabledWatcher(newValue) {
52
+ if (newValue !== undefined && this.widget) {
53
+ this.widget.editingEnabled = newValue;
54
+ }
55
+ }
56
+ referenceElementWatcher(newValue) {
57
+ referenceElementHelper(this, newValue);
58
+ }
59
+ viewWatcher(newValue) {
60
+ if (newValue !== undefined && this.widget) {
61
+ this.widget.view = newValue;
62
+ }
63
+ }
64
+ //--------------------------------------------------------------------------
65
+ //
66
+ // Lifecycle
67
+ //
68
+ //--------------------------------------------------------------------------
69
+ async componentDidLoad() {
70
+ const params = this._createParams();
71
+ const widget = await newWidgetsBookmarks(params);
72
+ this.widget = widget;
73
+ await this._addWatchers();
74
+ this._proxyEvents();
75
+ this.widgetReady.emit(true);
76
+ checkForView(this);
77
+ }
78
+ disconnectedCallback() {
79
+ onDisconnectedHelper(this);
80
+ }
81
+ render() {
82
+ if (this.expandable) {
83
+ return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
84
+ }
85
+ return h("div", { ref: (el) => (this.childElem = el) });
86
+ }
87
+ //--------------------------------------------------------------------------
88
+ //
89
+ // Private Methods
90
+ //
91
+ //--------------------------------------------------------------------------
92
+ async _addWatchers() {
93
+ const { watch } = await importCoreReactiveUtils();
94
+ watch(() => this.widget.editingEnabled, (value) => (this.editingEnabled = value), {
95
+ initial: true
96
+ });
97
+ }
98
+ _createParams() {
99
+ const params = {
100
+ container: this.childElem
101
+ };
102
+ if (this.view) {
103
+ params.view = this.view;
104
+ }
105
+ if (this.bookmarks) {
106
+ params.bookmarks = this.bookmarks;
107
+ }
108
+ if (this.defaultCreateOptions) {
109
+ params.defaultCreateOptions = this.defaultCreateOptions;
110
+ }
111
+ if (this.defaultEditOptions) {
112
+ params.defaultEditOptions = this.defaultEditOptions;
113
+ }
114
+ if (this.editingEnabled !== undefined) {
115
+ params.editingEnabled = this.editingEnabled;
116
+ }
117
+ return params;
118
+ }
119
+ _proxyEvents() {
120
+ this.widget.on("bookmark-edit", (e) => this.bookmarkEdit.emit(e));
121
+ this.widget.on("bookmark-select", (e) => this.bookmarkSelect.emit(e));
122
+ }
123
+ get el() { return getElement(this); }
124
+ static get watchers() { return {
125
+ "position": ["positionWatcher"],
126
+ "bookmarks": ["bookmarksWatcher"],
127
+ "defaultCreateOptions": ["defaultCreateOptionsWatcher"],
128
+ "defaultEditOptions": ["defaultEditOptionsWatcher"],
129
+ "editingEnabled": ["editingEnabledWatcher"],
130
+ "referenceElement": ["referenceElementWatcher"],
131
+ "view": ["viewWatcher"]
132
+ }; }
133
+ };
134
+ ArcgisBookmarks.style = arcgisBookmarksCss;
135
+
136
+ export { ArcgisBookmarks as arcgis_bookmarks };
@@ -0,0 +1,76 @@
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-d9a93dfb.js';
2
+ import { g as newWidgetsBuildingExplorer } from './index-82d260eb.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-d3552de2.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
5
+
6
+ const arcgisBuildingExplorerCss = "";
7
+
8
+ const ArcgisBuildingExplorer = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.widgetReady = createEvent(this, "widgetReady", 7);
12
+ this.referenceElement = undefined;
13
+ this.position = "bottom-left";
14
+ this.expandable = false;
15
+ this.widget = undefined;
16
+ this.view = undefined;
17
+ }
18
+ //--------------------------------------------------------------------------
19
+ //
20
+ // Watchers
21
+ //
22
+ //--------------------------------------------------------------------------
23
+ positionWatcher(newValue) {
24
+ if (newValue !== undefined && this.widget) {
25
+ if (typeof this.view !== "string") {
26
+ this.view.ui.move(this.childElem, newValue);
27
+ }
28
+ }
29
+ }
30
+ referenceElementWatcher(newValue) {
31
+ referenceElementHelper(this, newValue);
32
+ }
33
+ viewWatcher(newValue) {
34
+ if (newValue !== undefined && this.widget) {
35
+ this.widget.view = newValue;
36
+ }
37
+ }
38
+ //--------------------------------------------------------------------------
39
+ //
40
+ // Lifecycle
41
+ //
42
+ //--------------------------------------------------------------------------
43
+ async componentDidLoad() {
44
+ const params = {
45
+ container: this.childElem
46
+ };
47
+ if (this.view) {
48
+ params.view = this.view;
49
+ }
50
+ const widget = await newWidgetsBuildingExplorer(params);
51
+ this.widget = widget;
52
+ if (this.view) {
53
+ widget.view = this.view;
54
+ }
55
+ this.widgetReady.emit(true);
56
+ checkForView(this);
57
+ }
58
+ disconnectedCallback() {
59
+ onDisconnectedHelper(this);
60
+ }
61
+ render() {
62
+ if (this.expandable) {
63
+ return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
64
+ }
65
+ return h("div", { ref: (el) => (this.childElem = el) });
66
+ }
67
+ get el() { return getElement(this); }
68
+ static get watchers() { return {
69
+ "position": ["positionWatcher"],
70
+ "referenceElement": ["referenceElementWatcher"],
71
+ "view": ["viewWatcher"]
72
+ }; }
73
+ };
74
+ ArcgisBuildingExplorer.style = arcgisBuildingExplorerCss;
75
+
76
+ export { ArcgisBuildingExplorer as arcgis_building_explorer };
@@ -0,0 +1,86 @@
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-d9a93dfb.js';
2
+ import { h as newWidgetsCompass } from './index-82d260eb.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-d3552de2.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
5
+
6
+ const arcgisCompassCss = "";
7
+
8
+ const ArcgisCompass = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.widgetReady = createEvent(this, "widgetReady", 7);
12
+ this.referenceElement = undefined;
13
+ this.position = "bottom-left";
14
+ this.widget = undefined;
15
+ this.view = undefined;
16
+ }
17
+ //--------------------------------------------------------------------------
18
+ //
19
+ // Watchers
20
+ //
21
+ //--------------------------------------------------------------------------
22
+ positionWatcher(newValue) {
23
+ if (newValue !== undefined && this.widget) {
24
+ if (typeof this.view !== "string") {
25
+ this.view.ui.move(this.childElem, newValue);
26
+ }
27
+ }
28
+ }
29
+ referenceElementWatcher(newValue) {
30
+ referenceElementHelper(this, newValue);
31
+ }
32
+ viewWatcher(newValue) {
33
+ if (newValue !== undefined && this.widget) {
34
+ this.widget.view = newValue;
35
+ }
36
+ }
37
+ //--------------------------------------------------------------------------
38
+ //
39
+ // Methods
40
+ //
41
+ //--------------------------------------------------------------------------
42
+ async reset() {
43
+ return this.widget?.reset();
44
+ }
45
+ //--------------------------------------------------------------------------
46
+ //
47
+ // Lifecycle
48
+ //
49
+ //--------------------------------------------------------------------------
50
+ async componentDidLoad() {
51
+ const params = this._createParams();
52
+ const widget = await newWidgetsCompass(params);
53
+ this.widget = widget;
54
+ this.widgetReady.emit(true);
55
+ checkForView(this);
56
+ }
57
+ disconnectedCallback() {
58
+ onDisconnectedHelper(this);
59
+ }
60
+ render() {
61
+ return h("div", { ref: (el) => (this.childElem = el) });
62
+ }
63
+ //--------------------------------------------------------------------------
64
+ //
65
+ // Private Methods
66
+ //
67
+ //--------------------------------------------------------------------------
68
+ _createParams() {
69
+ const params = {
70
+ container: this.childElem
71
+ };
72
+ if (this.view) {
73
+ params.view = this.view;
74
+ }
75
+ return params;
76
+ }
77
+ get el() { return getElement(this); }
78
+ static get watchers() { return {
79
+ "position": ["positionWatcher"],
80
+ "referenceElement": ["referenceElementWatcher"],
81
+ "view": ["viewWatcher"]
82
+ }; }
83
+ };
84
+ ArcgisCompass.style = arcgisCompassCss;
85
+
86
+ export { ArcgisCompass as arcgis_compass };
@@ -0,0 +1,154 @@
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-d9a93dfb.js';
2
+ import { j as newWidgetsCoordinateConversion, i as importCoreReactiveUtils } from './index-82d260eb.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-d3552de2.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
5
+
6
+ const arcgisCoordinateConversionCss = "";
7
+
8
+ const ArcgisCoordinateConversion = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.widgetReady = createEvent(this, "widgetReady", 7);
12
+ this.referenceElement = undefined;
13
+ this.conversions = undefined;
14
+ this.currentLocation = undefined;
15
+ this.formats = undefined;
16
+ this.locationSymbol = undefined;
17
+ this.mode = undefined;
18
+ this.multipleConversions = undefined;
19
+ this.orientation = undefined;
20
+ this.storageEnabled = undefined;
21
+ this.storageType = undefined;
22
+ this.position = "bottom-left";
23
+ this.expandable = false;
24
+ this.view = undefined;
25
+ this.widget = undefined;
26
+ }
27
+ //--------------------------------------------------------------------------
28
+ //
29
+ // Watchers
30
+ //
31
+ //--------------------------------------------------------------------------
32
+ positionWatcher(newValue) {
33
+ if (newValue !== undefined && this.widget) {
34
+ if (typeof this.view !== "string") {
35
+ this.view.ui.move(this.childElem, newValue);
36
+ }
37
+ }
38
+ }
39
+ conversionsWatcher(newValue) {
40
+ if (newValue !== undefined && this.widget) {
41
+ this.widget.conversions = newValue;
42
+ }
43
+ }
44
+ formatsWatcher(newValue) {
45
+ if (newValue !== undefined && this.widget) {
46
+ this.widget.formats = newValue;
47
+ }
48
+ }
49
+ locationSymbolWatcher(newValue) {
50
+ if (newValue !== undefined && this.widget) {
51
+ this.widget.locationSymbol = newValue;
52
+ }
53
+ }
54
+ modeWatcher(newValue) {
55
+ if (newValue !== undefined && this.widget) {
56
+ this.widget.mode = newValue;
57
+ }
58
+ }
59
+ multipleConversionsWatcher(newValue) {
60
+ if (newValue !== undefined && this.widget) {
61
+ this.widget.multipleConversions = newValue;
62
+ }
63
+ }
64
+ orientationWatcher(newValue) {
65
+ if (newValue !== undefined && this.widget) {
66
+ this.widget.orientation = newValue;
67
+ }
68
+ }
69
+ storageEnabledWatcher(newValue) {
70
+ if (newValue !== undefined && this.widget) {
71
+ this.widget.storageEnabled = newValue;
72
+ }
73
+ }
74
+ storageTypeWatcher(newValue) {
75
+ if (newValue !== undefined && this.widget) {
76
+ this.widget.storageType = newValue;
77
+ }
78
+ }
79
+ referenceElementWatcher(newValue) {
80
+ referenceElementHelper(this, newValue);
81
+ }
82
+ viewWatcher(newValue) {
83
+ if (newValue !== undefined && this.widget) {
84
+ this.widget.view = newValue;
85
+ }
86
+ }
87
+ //--------------------------------------------------------------------------
88
+ //
89
+ // Methods
90
+ //
91
+ //--------------------------------------------------------------------------
92
+ async reverseConvert(coordinate, format) {
93
+ return this.widget?.reverseConvert(coordinate, format);
94
+ }
95
+ //--------------------------------------------------------------------------
96
+ //
97
+ // Lifecycle
98
+ //
99
+ //--------------------------------------------------------------------------
100
+ async componentDidLoad() {
101
+ const params = this._createParams();
102
+ const widget = await newWidgetsCoordinateConversion(params);
103
+ this.widget = widget;
104
+ await this._addWatchers();
105
+ this.widgetReady.emit(true);
106
+ checkForView(this);
107
+ }
108
+ disconnectedCallback() {
109
+ onDisconnectedHelper(this);
110
+ }
111
+ render() {
112
+ if (this.expandable) {
113
+ return (h("arcgis-expand", { position: this.position, ref: (el) => (this.expandElem = el) }, h("div", { ref: (el) => (this.childElem = el) })));
114
+ }
115
+ return h("div", { ref: (el) => (this.childElem = el) });
116
+ }
117
+ //--------------------------------------------------------------------------
118
+ //
119
+ // Private Methods
120
+ //
121
+ //--------------------------------------------------------------------------
122
+ async _addWatchers() {
123
+ const { watch } = await importCoreReactiveUtils();
124
+ watch(() => this.widget.currentLocation, (value) => (this.currentLocation = value), {
125
+ initial: true
126
+ });
127
+ }
128
+ _createParams() {
129
+ const params = {
130
+ container: this.childElem
131
+ };
132
+ if (this.view) {
133
+ params.view = this.view;
134
+ }
135
+ return params;
136
+ }
137
+ get el() { return getElement(this); }
138
+ static get watchers() { return {
139
+ "position": ["positionWatcher"],
140
+ "conversions": ["conversionsWatcher"],
141
+ "formats": ["formatsWatcher"],
142
+ "locationSymbol": ["locationSymbolWatcher"],
143
+ "mode": ["modeWatcher"],
144
+ "multipleConversions": ["multipleConversionsWatcher"],
145
+ "orientation": ["orientationWatcher"],
146
+ "storageEnabled": ["storageEnabledWatcher"],
147
+ "storageType": ["storageTypeWatcher"],
148
+ "referenceElement": ["referenceElementWatcher"],
149
+ "view": ["viewWatcher"]
150
+ }; }
151
+ };
152
+ ArcgisCoordinateConversion.style = arcgisCoordinateConversionCss;
153
+
154
+ export { ArcgisCoordinateConversion as arcgis_coordinate_conversion };
@@ -0,0 +1,112 @@
1
+ import { r as registerInstance, e as createEvent, h, g as getElement } from './index-d9a93dfb.js';
2
+ import { k as newWidgetsDaylight } from './index-82d260eb.js';
3
+ import { r as referenceElementHelper, c as checkForView } from './component-utils-d3552de2.js';
4
+ import { o as onDisconnectedHelper } from './disconnected-bc5fc8bc.js';
5
+
6
+ const arcgisDaylightCss = "";
7
+
8
+ const ArcgisDaylight = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.widgetReady = createEvent(this, "widgetReady", 7);
12
+ this.referenceElement = undefined;
13
+ this.dateOrSeason = undefined;
14
+ this.playSpeedMultiplier = undefined;
15
+ this.timeSliderSteps = undefined;
16
+ this.position = "bottom-left";
17
+ this.expandable = false;
18
+ this.view = undefined;
19
+ this.widget = 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
+ dateOrSeasonWatcher(newValue) {
34
+ if (newValue !== undefined && this.widget) {
35
+ this.widget.dateOrSeason = newValue;
36
+ }
37
+ }
38
+ playSpeedMultiplierWatcher(newValue) {
39
+ if (newValue !== undefined && this.widget) {
40
+ this.widget.playSpeedMultiplier = newValue;
41
+ }
42
+ }
43
+ timeSliderStepsWatcher(newValue) {
44
+ if (newValue !== undefined && this.widget) {
45
+ this.widget.timeSliderSteps = newValue;
46
+ }
47
+ }
48
+ referenceElementWatcher(newValue) {
49
+ referenceElementHelper(this, newValue);
50
+ }
51
+ viewWatcher(newValue) {
52
+ if (newValue !== undefined && this.widget) {
53
+ this.widget.view = newValue;
54
+ }
55
+ }
56
+ //--------------------------------------------------------------------------
57
+ //
58
+ // Lifecycle
59
+ //
60
+ //--------------------------------------------------------------------------
61
+ async componentDidLoad() {
62
+ const params = this._createParams();
63
+ const widget = await newWidgetsDaylight(params);
64
+ this.widget = widget;
65
+ this.widgetReady.emit(true);
66
+ checkForView(this);
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
+ _createParams() {
83
+ const params = {
84
+ container: this.childElem
85
+ };
86
+ if (this.view) {
87
+ params.view = this.view;
88
+ }
89
+ if (this.dateOrSeason) {
90
+ params.dateOrSeason = this.dateOrSeason;
91
+ }
92
+ if (this.playSpeedMultiplier) {
93
+ params.playSpeedMultiplier = this.playSpeedMultiplier;
94
+ }
95
+ if (this.timeSliderSteps) {
96
+ params.timeSliderSteps = this.timeSliderSteps;
97
+ }
98
+ return params;
99
+ }
100
+ get el() { return getElement(this); }
101
+ static get watchers() { return {
102
+ "position": ["positionWatcher"],
103
+ "dateOrSeason": ["dateOrSeasonWatcher"],
104
+ "playSpeedMultiplier": ["playSpeedMultiplierWatcher"],
105
+ "timeSliderSteps": ["timeSliderStepsWatcher"],
106
+ "referenceElement": ["referenceElementWatcher"],
107
+ "view": ["viewWatcher"]
108
+ }; }
109
+ };
110
+ ArcgisDaylight.style = arcgisDaylightCss;
111
+
112
+ export { ArcgisDaylight as arcgis_daylight };