@arcgis/map-components 6.0.0-next.29 → 6.0.0-next.30

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 (38) hide show
  1. package/dist/cdn/{T4DVKA6R.js → 5IPRYM2C.js} +1 -1
  2. package/dist/cdn/66TZB3H3.js +3 -0
  3. package/dist/cdn/6FJUKYNB.js +2 -0
  4. package/dist/cdn/BEICGIY5.js +2 -0
  5. package/dist/cdn/{4LO7PNX7.js → BJUFDQGX.js} +1 -1
  6. package/dist/cdn/{FAPDKS2C.js → CDHP7WRH.js} +1 -1
  7. package/dist/cdn/FROWRLYW.js +2 -0
  8. package/dist/cdn/{IYMK2NGU.js → KWF72M5Z.js} +1 -1
  9. package/dist/cdn/{Q7CJUHNT.js → M7GAVFT6.js} +1 -1
  10. package/dist/cdn/OKOOKG4L.js +2 -0
  11. package/dist/cdn/{SI6RI664.js → PYEOGYQ3.js} +1 -1
  12. package/dist/cdn/{CGGVQCCL.js → WZWVZD7I.js} +1 -1
  13. package/dist/cdn/{WEMTOBBB.js → YCKZUQ7P.js} +1 -1
  14. package/dist/cdn/index.js +1 -1
  15. package/dist/chunks/chart-utils.js +12 -12
  16. package/dist/chunks/slots.js +4 -4
  17. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +2 -2
  18. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
  19. package/dist/components/arcgis-daylight/customElement.js +134 -131
  20. package/dist/components/arcgis-feature-media/customElement.js +254 -210
  21. package/dist/components/arcgis-popup/customElement.js +115 -109
  22. package/dist/components/arcgis-selection-list/customElement.js +1 -1
  23. package/dist/components/arcgis-sketch/customElement.d.ts +17 -5
  24. package/dist/components/arcgis-sketch/customElement.js +33 -34
  25. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +9 -9
  26. package/dist/docs/api.json +1 -1
  27. package/dist/docs/docs.json +1 -1
  28. package/dist/docs/web-types.json +1 -1
  29. package/package.json +6 -6
  30. package/dist/cdn/7RO6N4XQ.js +0 -2
  31. package/dist/cdn/A6DDWCVW.js +0 -2
  32. package/dist/cdn/JWHVCBA3.js +0 -2
  33. package/dist/cdn/LXTP2MVM.js +0 -2
  34. package/dist/cdn/NXLWTRS6.js +0 -3
  35. package/dist/components/arcgis-sketch/SketchComponentViewModel.d.ts +0 -84
  36. package/dist/components/arcgis-sketch/configuration.d.ts +0 -33
  37. package/dist/components/arcgis-sketch/support.d.ts +0 -17
  38. package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +0 -96
@@ -26,16 +26,6 @@ import { AsyncDirective as ge } from "lit/async-directive.js";
26
26
  import { directive as me, PartType as ve } from "lit/directive.js";
27
27
  import { r as fe } from "../../chunks/async-utils.js";
28
28
  import { observeAncestorsMutation as ye } from "@arcgis/toolkit/dom";
29
- const be = [
30
- "bottom-end",
31
- "bottom-start",
32
- "bottom-left",
33
- "bottom-right",
34
- "top-end",
35
- "top-start",
36
- "top-left",
37
- "top-right"
38
- ], Ce = new Set(be);
39
29
  function B(i, e) {
40
30
  let t = e;
41
31
  for (const o of i.split(".")) {
@@ -45,7 +35,7 @@ function B(i, e) {
45
35
  }
46
36
  return typeof t == "string" ? t : void 0;
47
37
  }
48
- const Se = q`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}.toolbar-container{block-size:100%;min-block-size:0;min-inline-size:0}arcgis-toolbar-stack[layout=vertical]{block-size:100cqh;min-block-size:100%;max-block-size:100%}`, we = {
38
+ const be = q`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}.toolbar-container{block-size:100%;min-block-size:0;min-inline-size:0}arcgis-toolbar-stack[layout=vertical]{block-size:100cqh;min-block-size:100%;max-block-size:100%}`, Ce = {
49
39
  point: "pin",
50
40
  polyline: "line",
51
41
  polygon: "polygon",
@@ -56,7 +46,7 @@ const Se = q`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px
56
46
  freehandPolygon: "freehand-area",
57
47
  freehandPolyline: "freehand",
58
48
  text: "text"
59
- }, Te = {
49
+ }, Se = {
60
50
  selectionTools: {
61
51
  defaultPriority: E.Default,
62
52
  groupKind: "split-button",
@@ -89,10 +79,10 @@ const Se = q`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px
89
79
  preferEndSlot: !0
90
80
  }
91
81
  };
92
- var Ee = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, h = (i, e, t, o) => {
93
- for (var s = o > 1 ? void 0 : o ? _e(e, t) : e, n = i.length - 1, u; n >= 0; n--)
82
+ var we = Object.defineProperty, Te = Object.getOwnPropertyDescriptor, h = (i, e, t, o) => {
83
+ for (var s = o > 1 ? void 0 : o ? Te(e, t) : e, n = i.length - 1, u; n >= 0; n--)
94
84
  (u = i[n]) && (s = (o ? u(e, t, s) : u(s)) || s);
95
- return o && s && Ee(e, t, s), s;
85
+ return o && s && we(e, t, s), s;
96
86
  };
97
87
  let c = class extends ce {
98
88
  //#region Lifecycle
@@ -232,7 +222,7 @@ let c = class extends ce {
232
222
  ...this.availableCreateTools?.filter((l) => d && l === "multipoint" ? !1 : l === "mesh" ? !0 : o[l])?.map((l) => ({
233
223
  active: l === s,
234
224
  disabled: t,
235
- icon: we[l],
225
+ icon: Ce[l],
236
226
  labelKey: `draw.${l}`,
237
227
  onClick: l === s ? () => this._cancelActiveOperation() : () => this._activateLegacyDrawTool(l)
238
228
  })) ?? [],
@@ -661,7 +651,7 @@ h([
661
651
  c = h([
662
652
  he("components.sketch.SketchComponentViewModel")
663
653
  ], c);
664
- class Me extends ge {
654
+ class Ee extends ge {
665
655
  #t;
666
656
  #e = !1;
667
657
  #i;
@@ -688,8 +678,8 @@ class Me extends ge {
688
678
  });
689
679
  }
690
680
  }
691
- const W = me(Me), Pe = /* @__PURE__ */ new Set(["arcgis-map", "arcgis-scene"]), ke = 8;
692
- class Ae extends J {
681
+ const W = me(Ee), _e = /* @__PURE__ */ new Set(["arcgis-map", "arcgis-scene"]), Me = 8;
682
+ class Pe extends J {
693
683
  constructor(e) {
694
684
  super(e), this.#t = new MutationObserver(() => this.#c()), this.#e = new ResizeObserver(() => this.#v()), this.#i = new ResizeObserver(([t]) => {
695
685
  if (!t)
@@ -743,7 +733,7 @@ class Ae extends J {
743
733
  }
744
734
  #f() {
745
735
  const e = this.component.el, t = e.parentElement, o = this.#o, s = e.assignedSlot;
746
- if (!t || !Pe.has(t.localName) || !o || !s?.parentElement)
736
+ if (!t || !_e.has(t.localName) || !o || !s?.parentElement)
747
737
  return;
748
738
  const n = getComputedStyle(t).direction === "rtl" ? "rtl" : "ltr", u = U(e.slot, n);
749
739
  if (!u)
@@ -778,19 +768,19 @@ class Ae extends J {
778
768
  }
779
769
  #w(e) {
780
770
  const t = [e.parent, ...e.content];
781
- Ge(this.#h, t) || (this.#e.disconnect(), t.forEach((o) => this.#e.observe(o)), this.#h = t);
771
+ Oe(this.#h, t) || (this.#e.disconnect(), t.forEach((o) => this.#e.observe(o)), this.#h = t);
782
772
  }
783
773
  #v(e = this.#f()) {
784
774
  if (!e) {
785
775
  this.#y();
786
776
  return;
787
777
  }
788
- const t = this.component.layout, o = Oe({
789
- content: Le(e),
790
- gap: ke,
778
+ const t = this.component.layout, o = ke({
779
+ content: Ae(e),
780
+ gap: Me,
791
781
  layout: t,
792
782
  position: e.position,
793
- sameSlotReserve: $e(e.assignedSlot, this.component.el, t, e.assignedSlot),
783
+ sameSlotReserve: Le(e.assignedSlot, this.component.el, t, e.assignedSlot),
794
784
  toolbarBounds: e.toolbar.getBoundingClientRect(),
795
785
  viewBounds: e.parent.getBoundingClientRect()
796
786
  });
@@ -808,7 +798,7 @@ class Ae extends J {
808
798
  this.#t.disconnect(), this.#p?.(), this.#p = void 0, this.#e.disconnect(), this.#i.disconnect(), this.#l = void 0, this.#s = void 0, this.#h = [], this.#n?.removeEventListener("slotchange", this.#u), this.#n = void 0, this.#r = void 0, this.#a = void 0, this.#d = void 0, this.#g = void 0;
809
799
  }
810
800
  }
811
- function Oe({
801
+ function ke({
812
802
  content: i,
813
803
  gap: e,
814
804
  layout: t,
@@ -837,7 +827,7 @@ function L(i, e) {
837
827
  function z(i, e) {
838
828
  return e === "horizontal" ? i.endsWith("left") : i.startsWith("top");
839
829
  }
840
- function Le(i) {
830
+ function Ae(i) {
841
831
  return i.content.flatMap((e) => {
842
832
  if (e.assignedSlot === i.assignedSlot)
843
833
  return [];
@@ -845,10 +835,10 @@ function Le(i) {
845
835
  return t ? [{ bounds: e.getBoundingClientRect(), position: t }] : [];
846
836
  });
847
837
  }
848
- function Ge(i, e) {
838
+ function Oe(i, e) {
849
839
  return i.length === e.length && i.every((t, o) => t === e[o]);
850
840
  }
851
- function $e(i, e, t, o) {
841
+ function Le(i, e, t, o) {
852
842
  const s = getComputedStyle(o), n = s.flexDirection;
853
843
  if (!(t === "horizontal" ? n.startsWith("row") : n.startsWith("column")))
854
844
  return 0;
@@ -868,7 +858,16 @@ function U(i, e) {
868
858
  const s = o === "start" ? e === "ltr" ? "left" : "right" : o === "end" ? e === "ltr" ? "right" : "left" : o;
869
859
  return s === "left" || s === "right" ? `${t}-${s}` : void 0;
870
860
  }
871
- const Re = ne((i) => new le({
861
+ const Ge = [
862
+ "bottom-end",
863
+ "bottom-start",
864
+ "bottom-left",
865
+ "bottom-right",
866
+ "top-end",
867
+ "top-start",
868
+ "top-left",
869
+ "top-right"
870
+ ], $e = new Set(Ge), Re = ne((i) => new le({
872
871
  ...i,
873
872
  cancelUpdateOnClickAway: !0,
874
873
  creationMode: "continuous",
@@ -877,7 +876,7 @@ const Re = ne((i) => new le({
877
876
  }));
878
877
  class Ve extends ee {
879
878
  constructor() {
880
- super(), this.#t = new c(), this.#l = O(), this.#s = new Ae(this), this.#n = O(), this._defaultGraphicsLayer = null, this._messages = se(), this.test = {
879
+ super(), this.#t = new c(), this.#l = O(), this.#s = new Pe(this), this.#n = O(), this._defaultGraphicsLayer = null, this._messages = se(), this.test = {
881
880
  componentViewModel: this.#t
882
881
  }, this._groupLayoutPriorityOverrides = /* @__PURE__ */ new Map(), this._contextualToolLocation = "separate", this._refMap = ae(), this.viewModel = Re(this), this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.createGraphic = this.viewModel.createGraphic, this.creationMode = this.viewModel.creationMode, this.defaultCreateOptions = this.viewModel.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.viewModel.defaultUpdateOptions, this.geometrySimplificationInProgress = this.viewModel.geometrySimplificationInProgress, this.icon = "pencil", this.label = this._messages?.componentLabel, this.labelOptions = this.viewModel.labelOptions, this.layer = this.viewModel.layer, this.layout = "horizontal", this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.activeFillSymbol = this.viewModel.activeFillSymbol, this.activeLineSymbol = this.viewModel.activeLineSymbol, this.activeVertexSymbol = this.viewModel.activeVertexSymbol, this.activeCreateToolDrawMode = this.viewModel.activeCreateToolDrawMode, this.visualScale = "m", this.snappingOptions = this.viewModel.snappingOptions, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = "floating", this.tooltipOptions = this.viewModel.tooltipOptions, this.useViewOptions = this.viewModel.useViewOptions, this.valueOptions = this.viewModel.valueOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.viewModel.updateGraphics, this.activeTooltip = this.viewModel.activeTooltip, this.arcgisCreate = T(() => this.viewModel, "create"), this.arcgisDelete = T(() => this.viewModel, "delete"), this.arcgisDuplicate = T(() => this.viewModel, "duplicate"), this.arcgisPropertyChange = Q()("activeTool", "geometrySimplificationInProgress", "state"), this.arcgisReady = te(), this.arcgisRedo = T(() => this.viewModel, "redo"), this.arcgisUndo = T(() => this.viewModel, "undo"), this.arcgisUpdate = T(() => this.viewModel, "update"), X(["slot"], () => {
883
882
  this.requestUpdate();
@@ -904,7 +903,7 @@ class Ve extends ee {
904
903
  this.properties = { _groupLayoutPriorityOverrides: 16, _contextualToolLocation: 16, _refMap: 16, viewModel: 0, view: 0, activeTool: 32, autoDestroyDisabled: 5, visibleElements: 0, availableCreateTools: 0, createGraphic: 32, creationMode: 1, defaultCreateOptions: 0, defaultGraphicsLayerDisabled: 5, defaultUpdateOptions: 0, geometrySimplificationInProgress: 36, hideCreateToolsCircle: 5, hideCreateToolsMultipoint: 5, hideCreateToolsPoint: 5, hideCreateToolsPolygon: 5, hideCreateToolsPolyline: 5, hideCreateToolsRectangle: 5, hideDuplicateButton: 5, hideDeleteButton: 5, hideSelectionCountLabel: 5, hideLabelsToggle: 5, hideSelectionToolsLassoSelection: 5, hideSelectionToolsRectangleSelection: 5, hideSettingsMenu: 5, hideSinglePluginBackButton: 5, hideSnappingControls: 5, hideSnappingControlsElementsEnabledToggle: 5, hideSnappingControlsElementsFeatureEnabledToggle: 5, hideSnappingControlsElementsLayerList: 5, hideSnappingControlsElementsSelfEnabledToggle: 5, hideSnappingControlsElementsGridEnabledToggle: 5, hideSnappingControlsElementsGridControls: 5, hideSnappingControlsElementsGridControlsElementsColorSelection: 5, hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle: 5, hideSnappingControlsElementsGridControlsElementsLineIntervalInput: 5, hideSnappingControlsElementsGridControlsElementsNumericInputs: 5, hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning: 5, hideSnappingControlsElementsGridControlsElementsPlacementButtons: 5, hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle: 5, hideTooltipsToggle: 5, hideUndoRedoMenu: 5, icon: 1, label: 1, labelOptions: 0, layer: 0, layout: 1, pointSymbol: 0, polygonSymbol: 0, polylineSymbol: 0, activeFillSymbol: 0, activeLineSymbol: 0, activeVertexSymbol: 0, activeCreateToolDrawMode: 1, referenceElement: 1, relativePosition: 1, scale: 1, visualScale: 1, showSnappingControlsElementsHeader: 5, showCreateToolsFreehandPolygon: 5, showCreateToolsFreehandPolyline: 5, showCreateToolsText: 5, hideGeometrySimplificationActivityIndicator: 5, snappingOptions: 0, state: 32, textSymbol: 0, toolbarKind: 1, tooltipOptions: 0, useViewOptions: 5, valueOptions: 0, useLegacyCreateTools: 5, updateOnGraphicClickDisabled: 5, cancelUpdateOnClickAwayDisabled: 5, updateGraphics: 32, activeTooltip: 0 };
905
904
  }
906
905
  static {
907
- this.styles = Se;
906
+ this.styles = be;
908
907
  }
909
908
  #t;
910
909
  get #e() {
@@ -1111,7 +1110,7 @@ class Ve extends ee {
1111
1110
  }
1112
1111
  get relativePosition() {
1113
1112
  const e = this.el.slot;
1114
- return this.#i ?? (Ce.has(e) ? e : re.topRight);
1113
+ return this.#i ?? ($e.has(e) ? e : re.topRight);
1115
1114
  }
1116
1115
  set relativePosition(e) {
1117
1116
  this.#i = e;
@@ -1258,7 +1257,7 @@ class Ve extends ee {
1258
1257
  _renderActionGroup({ visible: e, commands: t, name: o }) {
1259
1258
  if (!e || !t.length)
1260
1259
  return;
1261
- const { defaultPriority: s, groupKind: n, overflowLabel: u, preferEndSlot: a } = Te[o], d = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((f) => this._renderCommand(f)), l = B(`more.${u}`, this._messages);
1260
+ const { defaultPriority: s, groupKind: n, overflowLabel: u, preferEndSlot: a } = Se[o], d = (o === "geometrySimplification" ? void 0 : this._groupLayoutPriorityOverrides.get(o)) ?? s, g = t.map((f) => this._renderCommand(f)), l = B(`more.${u}`, this._messages);
1262
1261
  switch (n) {
1263
1262
  case "more-button":
1264
1263
  return b`<arcgis-toolbar-group .priority=${d} .preferEndSlot=${a}><arcgis-toolbar-more-button .overflowActionLabel=${l} .priority=${d}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as R } from "../../chunks/runtime.js";
2
+ import { c as b } from "../../chunks/runtime.js";
3
3
  import { ref as h } from "lit/directives/ref.js";
4
4
  import n from "@arcgis/core/Color.js";
5
5
  import v from "@arcgis/core/core/Collection.js";
@@ -102,8 +102,8 @@ class _ extends C {
102
102
  #m() {
103
103
  if (!this.#t)
104
104
  return;
105
- const { traceLocations: e, traceLocationDetails: t, traceConfiguration: s, isSubnetworkNameTraceSelected: i } = this.#t, o = !!s?.subnetworkName, c = e?.some((l) => l.type === "starting-point"), b = t?.some((l) => !!l.flagProperties.terminalConfiguration && !l.flagProperties.selectedTerminals?.size) ?? !1;
106
- this._showNoStartingPointsWarning = !i && !c || i && !o, this._showMissingTerminalWarning = b;
105
+ const { traceLocations: e, traceLocationDetails: t, traceConfiguration: s, isSubnetworkNameTraceSelected: i } = this.#t, o = !!s?.subnetworkName, c = e?.some((l) => l.type === "starting-point"), R = t?.some((l) => !!l.flagProperties.terminalConfiguration && !l.flagProperties.selectedTerminals?.size) ?? !1;
106
+ this._showNoStartingPointsWarning = !i && !c || i && !o, this._showMissingTerminalWarning = R;
107
107
  }
108
108
  #i(e) {
109
109
  this._activeTab = e;
@@ -154,7 +154,7 @@ class _ extends C {
154
154
  return e;
155
155
  }
156
156
  }
157
- async #b() {
157
+ async #R() {
158
158
  const e = this.#t?.selectedNamedTraceConfiguration, t = this.#t?.traceConfiguration;
159
159
  if (!(e?.traceType && t)) {
160
160
  u("error", this, "Trace configuration not found");
@@ -175,8 +175,8 @@ class _ extends C {
175
175
  m(i, this, "Error while running trace"), g(() => this.traceError = i), this.traceResult = void 0, this.arcgisError.emit();
176
176
  }
177
177
  }
178
- #R() {
179
- this.#m(), !(this._showNoStartingPointsWarning || this._showMissingTerminalWarning) && (this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1, this.#g(), this.#i("results"), this.#b());
178
+ #b() {
179
+ this.#m(), !(this._showNoStartingPointsWarning || this._showMissingTerminalWarning) && (this._showNoStartingPointsWarning = !1, this._showMissingTerminalWarning = !1, this.#g(), this.#i("results"), this.#R());
180
180
  }
181
181
  #v(e) {
182
182
  e && (this.#t = e);
@@ -232,15 +232,15 @@ class _ extends C {
232
232
  const { state: e } = this;
233
233
  if (this._mode !== "default")
234
234
  return null;
235
- const t = e === "disabled" || e === "loading" || !this.#t?.traceConfiguration;
236
- return a`<calcite-button appearance=solid width=full @click=${this.#R} slot=footer .disabled=${t}>${this._messages.buttons.getResults}</calcite-button>`;
235
+ const t = e !== "ready" || !this.#t?.traceConfiguration;
236
+ return a`<calcite-button appearance=solid width=full @click=${this.#b} slot=footer .disabled=${t}>${this._messages.buttons.getResults}</calcite-button>`;
237
237
  }
238
238
  render() {
239
239
  const { _activeTab: e, state: t } = this;
240
240
  return a`<calcite-panel><calcite-tabs layout=center position=top><calcite-tab-nav slot=title-group><calcite-tab-title @calciteTabsActivate=${() => this.#i("input")} .selected=${e === "input"}>${this._messages.tabs.inputTab}</calcite-tab-title><calcite-tab-title @calciteTabsActivate=${() => this.#i("results")} .selected=${e === "results"} .disabled=${t === "disabled" || t === "loading"}>${this._messages.tabs.resultsTab}</calcite-tab-title></calcite-tab-nav>${this.#x()}${this.#k()}</calcite-tabs>${e === "input" ? this.#A() : null}${e === "results" ? this.#P() : null}</calcite-panel>`;
241
241
  }
242
242
  }
243
- R("arcgis-utility-network-trace-analysis", _);
243
+ b("arcgis-utility-network-trace-analysis", _);
244
244
  export {
245
245
  _ as ArcgisUtilityNetworkTraceAnalysis
246
246
  };