@arcgis/map-components 5.1.0-next.70 → 5.1.0-next.72

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 (78) hide show
  1. package/dist/cdn/3E5YVI67.js +2 -0
  2. package/dist/cdn/DSWEKHYV.js +2 -0
  3. package/dist/cdn/EQVGDKPR.js +2 -0
  4. package/dist/cdn/ISTXVEU6.js +2 -0
  5. package/dist/cdn/MEHQNI5S.js +2 -0
  6. package/dist/cdn/Z4OSJFVK.js +2 -0
  7. package/dist/cdn/assets/slider-scale-range/t9n/messages.ar.json +1 -1
  8. package/dist/cdn/assets/slider-scale-range/t9n/messages.bg.json +1 -1
  9. package/dist/cdn/assets/slider-scale-range/t9n/messages.bs.json +1 -1
  10. package/dist/cdn/assets/slider-scale-range/t9n/messages.ca.json +1 -1
  11. package/dist/cdn/assets/slider-scale-range/t9n/messages.cs.json +1 -1
  12. package/dist/cdn/assets/slider-scale-range/t9n/messages.da.json +1 -1
  13. package/dist/cdn/assets/slider-scale-range/t9n/messages.de.json +1 -1
  14. package/dist/cdn/assets/slider-scale-range/t9n/messages.el.json +1 -1
  15. package/dist/cdn/assets/slider-scale-range/t9n/messages.en.json +1 -1
  16. package/dist/cdn/assets/slider-scale-range/t9n/messages.es.json +1 -1
  17. package/dist/cdn/assets/slider-scale-range/t9n/messages.et.json +1 -1
  18. package/dist/cdn/assets/slider-scale-range/t9n/messages.fi.json +1 -1
  19. package/dist/cdn/assets/slider-scale-range/t9n/messages.fr.json +1 -1
  20. package/dist/cdn/assets/slider-scale-range/t9n/messages.he.json +1 -1
  21. package/dist/cdn/assets/slider-scale-range/t9n/messages.hr.json +1 -1
  22. package/dist/cdn/assets/slider-scale-range/t9n/messages.hu.json +1 -1
  23. package/dist/cdn/assets/slider-scale-range/t9n/messages.id.json +1 -1
  24. package/dist/cdn/assets/slider-scale-range/t9n/messages.it.json +1 -1
  25. package/dist/cdn/assets/slider-scale-range/t9n/messages.ja.json +1 -1
  26. package/dist/cdn/assets/slider-scale-range/t9n/messages.ko.json +1 -1
  27. package/dist/cdn/assets/slider-scale-range/t9n/messages.lt.json +1 -1
  28. package/dist/cdn/assets/slider-scale-range/t9n/messages.lv.json +1 -1
  29. package/dist/cdn/assets/slider-scale-range/t9n/messages.nl.json +1 -1
  30. package/dist/cdn/assets/slider-scale-range/t9n/messages.no.json +1 -1
  31. package/dist/cdn/assets/slider-scale-range/t9n/messages.pl.json +1 -1
  32. package/dist/cdn/assets/slider-scale-range/t9n/messages.pt-BR.json +1 -1
  33. package/dist/cdn/assets/slider-scale-range/t9n/messages.pt-PT.json +1 -1
  34. package/dist/cdn/assets/slider-scale-range/t9n/messages.ro.json +1 -1
  35. package/dist/cdn/assets/slider-scale-range/t9n/messages.ru.json +1 -1
  36. package/dist/cdn/assets/slider-scale-range/t9n/messages.sk.json +1 -1
  37. package/dist/cdn/assets/slider-scale-range/t9n/messages.sl.json +1 -1
  38. package/dist/cdn/assets/slider-scale-range/t9n/messages.sr.json +1 -1
  39. package/dist/cdn/assets/slider-scale-range/t9n/messages.sv.json +1 -1
  40. package/dist/cdn/assets/slider-scale-range/t9n/messages.th.json +1 -1
  41. package/dist/cdn/assets/slider-scale-range/t9n/messages.tr.json +1 -1
  42. package/dist/cdn/assets/slider-scale-range/t9n/messages.uk.json +1 -1
  43. package/dist/cdn/assets/slider-scale-range/t9n/messages.vi.json +1 -1
  44. package/dist/cdn/assets/slider-scale-range/t9n/messages.zh-CN.json +1 -1
  45. package/dist/cdn/assets/slider-scale-range/t9n/messages.zh-HK.json +1 -1
  46. package/dist/cdn/assets/slider-scale-range/t9n/messages.zh-TW.json +1 -1
  47. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.en.json +1 -1
  48. package/dist/cdn/assets/utility-network-trace-location-list/t9n/messages.en.json +1 -1
  49. package/dist/cdn/index.js +1 -1
  50. package/dist/components/arcgis-popup/customElement.d.ts +0 -1
  51. package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +1 -3
  52. package/dist/components/arcgis-presentation/customElement.d.ts +0 -48
  53. package/dist/components/arcgis-presentation/customElement.js +87 -242
  54. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +2 -0
  55. package/dist/components/arcgis-slider-scale-range/customElement.js +52 -51
  56. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +6 -0
  57. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +22 -25
  58. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +9 -1
  59. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +22 -19
  60. package/dist/components/arcgis-utility-network-trace-location/customElement.js +24 -22
  61. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +18 -18
  62. package/dist/docs/api.json +1 -1
  63. package/dist/docs/docs.json +1 -1
  64. package/dist/docs/vscode.html-custom-data.json +1 -1
  65. package/dist/docs/web-types.json +1 -1
  66. package/dist/loader.js +2 -2
  67. package/dist/types/lumina.d.ts +1 -3
  68. package/dist/types/preact.d.ts +1 -3
  69. package/dist/types/react.d.ts +1 -3
  70. package/dist/types/stencil.d.ts +1 -3
  71. package/package.json +4 -4
  72. package/dist/cdn/66MVIWL6.js +0 -2
  73. package/dist/cdn/A5EKENWD.js +0 -2
  74. package/dist/cdn/CCU5PXRH.js +0 -2
  75. package/dist/cdn/LE4EZMBM.js +0 -2
  76. package/dist/cdn/PF6CET5C.js +0 -2
  77. package/dist/cdn/WYTALJLT.js +0 -2
  78. /package/dist/cdn/assets/slider-scale-range/t9n/{ScaleRangeSlider.json → messages.ScaleRangeSlider.json} +0 -0
@@ -1,22 +1,22 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as _ } from "../../chunks/runtime.js";
3
- import { css as x, html as f } from "lit";
3
+ import { css as x, html as y } from "lit";
4
4
  import * as C from "@arcgis/core/geometry/operators/cutOperator.js";
5
5
  import * as m from "@arcgis/core/geometry/operators/lengthOperator.js";
6
6
  import * as b from "@arcgis/core/geometry/operators/projectOperator.js";
7
7
  import I from "@arcgis/core/geometry/Polyline.js";
8
8
  import F from "@arcgis/core/geometry/SpatialReference.js";
9
- import G from "@arcgis/core/Graphic.js";
10
- import w from "@arcgis/core/rest/networks/support/TraceLocation.js";
11
- import T from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
12
- import { LitElement as A, createEvent as L } from "@arcgis/lumina";
13
- import { log as u, composeMissingPropertyMessage as y } from "@arcgis/toolkit/log";
14
- import { u as v } from "../../chunks/useT9n.js";
9
+ import v from "@arcgis/core/Graphic.js";
10
+ import T from "@arcgis/core/rest/networks/support/TraceLocation.js";
11
+ import w from "@arcgis/core/symbols/SimpleMarkerSymbol.js";
12
+ import { LitElement as G, createEvent as L } from "@arcgis/lumina";
13
+ import { log as u, composeMissingPropertyMessage as f } from "@arcgis/toolkit/log";
14
+ import { u as A } from "../../chunks/useT9n.js";
15
15
  import { d as S, i as P } from "../../chunks/layer-utils.js";
16
16
  const N = x`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`;
17
- class R extends A {
17
+ class R extends G {
18
18
  constructor() {
19
- super(...arguments), this.messages = v({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.autoDestroyDisabled = !1, this.arcgisTraceLocationChange = L(), this.arcgisTraceLocationSelectEnd = L(), this.arcgisTraceLocationSelectStart = L();
19
+ super(...arguments), this.messages = A({ blocking: !0 }), this.isSelectWaiting = !1, this.traceLocationType = "starting-point", this.spatialTolerance = 0.05, this.autoDestroyDisabled = !1, this.arcgisTraceLocationChange = L(), this.arcgisTraceLocationSelectEnd = L(), this.arcgisTraceLocationSelectStart = L();
20
20
  }
21
21
  static {
22
22
  this.properties = { isSelectWaiting: 16, beforeTraceLocationSelectStart: 0, afterHitTest: 0, view: 0, traceLocationType: 1, traceLocations: 0, filterLayers: 0, sketchViewModel: 0, spatialTolerance: 9, autoDestroyDisabled: 5, utilityNetwork: 0 };
@@ -62,7 +62,7 @@ class R extends A {
62
62
  async _handleAddButtonClick() {
63
63
  const { view: e, sketchViewModel: t } = this;
64
64
  if (!(e && t)) {
65
- u("error", this, "Cannot add trace location."), t || u("error", this, y("sketchViewModel")), e || u("error", this, y("view"));
65
+ u("error", this, "Cannot add trace location."), t || u("error", this, f("sketchViewModel")), e || u("error", this, f("view"));
66
66
  return;
67
67
  }
68
68
  if (this.beforeTraceLocationSelectStart) {
@@ -88,7 +88,7 @@ class R extends A {
88
88
  async _performHitTest(e, t, r) {
89
89
  const { utilityNetwork: s } = this;
90
90
  if (!s) {
91
- u("error", this, y("utilityNetwork")), this._resetCursor(), this.arcgisTraceLocationSelectEnd.emit();
91
+ u("error", this, f("utilityNetwork")), this._resetCursor(), this.arcgisTraceLocationSelectEnd.emit();
92
92
  return;
93
93
  }
94
94
  const n = e.graphic?.geometry, a = t.toScreen(n);
@@ -108,7 +108,7 @@ class R extends A {
108
108
  _resetCursor() {
109
109
  const { view: e } = this;
110
110
  if (!e) {
111
- u("error", this, y("view"));
111
+ u("error", this, f("view"));
112
112
  return;
113
113
  }
114
114
  this._clickHandler?.remove(), this._clickHandler = void 0, "acquireCursor" in e && e.acquireCursor("default");
@@ -175,7 +175,7 @@ class R extends A {
175
175
  if (a === "point" || a === "polygon") {
176
176
  const i = s?.getTerminalConfiguration(e), o = i ? i.terminals[0].id : 1;
177
177
  return {
178
- traceLocation: new w({
178
+ traceLocation: new T({
179
179
  type: r,
180
180
  isFilterBarrier: !1,
181
181
  globalId: n,
@@ -195,7 +195,7 @@ class R extends A {
195
195
  } else if (a === "polyline") {
196
196
  const i = this._calculatePercentAlong(e.geometry, t);
197
197
  return {
198
- traceLocation: new w({
198
+ traceLocation: new T({
199
199
  type: r,
200
200
  isFilterBarrier: !1,
201
201
  globalId: n,
@@ -203,7 +203,9 @@ class R extends A {
203
203
  }),
204
204
  flagProperties: {
205
205
  title: c,
206
- expanded: !1
206
+ expanded: !1,
207
+ terminalConfiguration: void 0,
208
+ selectedTerminals: void 0
207
209
  },
208
210
  spatialProperties: {
209
211
  mapPoint: t,
@@ -213,7 +215,7 @@ class R extends A {
213
215
  } else if (!a) {
214
216
  const i = P(e.layer) ? e.layer.parent : e.layer, o = i && this._edgeSourceLayerIds.includes(i.layerId), l = s?.getTerminalConfiguration(e), d = l ? l.terminals[0].id : o ? -1 : 1, p = o ? 0.5 : -1;
215
217
  return {
216
- traceLocation: new w({
218
+ traceLocation: new T({
217
219
  type: r,
218
220
  isFilterBarrier: !1,
219
221
  globalId: n,
@@ -239,7 +241,7 @@ class R extends A {
239
241
  return ("getFeatureTitle" in r ? await r.getFeatureTitle(e) : null) || e?.getObjectId()?.toString() || t.labels.unknown;
240
242
  }
241
243
  _addFlagGraphic(e, t, r) {
242
- const s = e.geometry ? e.geometry.type === "point" ? e.geometry : t : null, n = this._createFlagSymbol(), a = new G({
244
+ const s = e.geometry ? e.geometry.type === "point" ? e.geometry : t : null, n = this._createFlagSymbol(), a = new v({
243
245
  geometry: s,
244
246
  symbol: n,
245
247
  attributes: e.attributes
@@ -248,7 +250,7 @@ class R extends A {
248
250
  }
249
251
  _createFlagSymbol() {
250
252
  const { traceLocationType: e } = this, t = [244, 21, 21, 0.6], r = [21, 244, 21, 0.6];
251
- return e === "stopping-point" ? new T({
253
+ return e === "stopping-point" ? new w({
252
254
  color: t,
253
255
  style: "x",
254
256
  size: 12,
@@ -256,7 +258,7 @@ class R extends A {
256
258
  color: t,
257
259
  width: 2
258
260
  }
259
- }) : e === "barrier" ? new T({
261
+ }) : e === "barrier" ? new w({
260
262
  color: t,
261
263
  style: "square",
262
264
  size: 12,
@@ -264,7 +266,7 @@ class R extends A {
264
266
  color: t,
265
267
  width: 0
266
268
  }
267
- }) : new T({
269
+ }) : new w({
268
270
  color: r,
269
271
  style: "circle",
270
272
  size: 12,
@@ -282,10 +284,10 @@ class R extends A {
282
284
  }
283
285
  renderAddLocationBlock() {
284
286
  const { traceLocationType: e, messages: t, traceLocations: r, view: s } = this, n = e === "starting-point" ? t.types.startingPoint : e === "barrier" ? t.types.barrier : t.types.stoppingPoint, a = n.heading, c = n.description, i = n.buttonText;
285
- return f`<calcite-block .heading=${a} .label=${a} expanded .description=${c}>${r?.length ? f`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>` : null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e} .view=${s}></arcgis-utility-network-trace-location-list><div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${i} @click=${() => this._handleAddButtonClick()}>${i}</calcite-button></div></calcite-block>`;
287
+ return y`<calcite-block .heading=${a} .label=${a} expanded .description=${c}>${r?.length ? y`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${() => this._handleClearButtonClick()}>${t.buttons.clear}</calcite-button>` : null}<arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${e} .view=${s}></arcgis-utility-network-trace-location-list><div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${i} @click=${() => this._handleAddButtonClick()}>${i}</calcite-button></div></calcite-block>`;
286
288
  }
287
289
  render() {
288
- return f`<div class="root">${this.renderAddLocationBlock()}</div>`;
290
+ return y`<div class="root">${this.renderAddLocationBlock()}</div>`;
289
291
  }
290
292
  }
291
293
  _("arcgis-utility-network-trace-location", R);
@@ -1,21 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as p } from "../../chunks/runtime.js";
3
- import { css as h, html as n } from "lit";
4
- import u from "@arcgis/core/core/Collection.js";
5
- import { substitute as g } from "@arcgis/core/intl.js";
6
- import { LitElement as b } from "@arcgis/lumina";
7
- import { u as v } from "../../chunks/useT9n.js";
8
- import { log as s, composeEmptyPropertyMessage as f } from "@arcgis/toolkit/log";
9
- const w = h`:host{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item [slot=content-bottom]{background-color:transparent;display:none}calcite-list-item[expanded] [slot=content-bottom]{display:unset}.warning{color:var(--calcite-color-status-danger)}.terminals{padding-block:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-xl);padding-inline-end:var(--calcite-spacing-sm);display:flex;flex-direction:column}.filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`;
10
- class y extends b {
2
+ import { c as m } from "../../chunks/runtime.js";
3
+ import { css as p, html as n } from "lit";
4
+ import h from "@arcgis/core/core/Collection.js";
5
+ import { substitute as u } from "@arcgis/core/intl.js";
6
+ import { LitElement as g } from "@arcgis/lumina";
7
+ import { u as b } from "../../chunks/useT9n.js";
8
+ import { log as s, composeEmptyPropertyMessage as v } from "@arcgis/toolkit/log";
9
+ const f = p`:host{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-spacing-sm) var(--calcite-spacing-md);display:flex;flex-direction:column}.filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`;
10
+ class w extends g {
11
11
  constructor() {
12
- super(...arguments), this._messages = v({ blocking: !0 }), this.traceLocations = new u(), this.traceLocationType = "starting-point";
12
+ super(...arguments), this._messages = b({ blocking: !0 }), this.traceLocations = new h(), this.traceLocationType = "starting-point";
13
13
  }
14
14
  static {
15
15
  this.properties = { traceLocations: 0, traceLocationType: 1, view: 0 };
16
16
  }
17
17
  static {
18
- this.styles = w;
18
+ this.styles = f;
19
19
  }
20
20
  _handleTraceLocationItemRemoved(e) {
21
21
  const { traceLocations: i, view: t } = this;
@@ -51,18 +51,18 @@ class y extends b {
51
51
  if (!t)
52
52
  return s("warn", this, "One or more locations are missing the required flag property `terminalConfiguration`."), [];
53
53
  const r = t.terminals;
54
- return !r || r.length === 0 ? (s("warn", this, "`terminalConfiguration.terminals` is required but either missing or empty.`"), []) : r.map((a) => this._renderTerminal(e, a));
54
+ return !r || r.length === 0 ? (s("warn", this, "`terminalConfiguration.terminals` is required but either missing or empty.`"), []) : r.length === 1 ? [] : r.map((a) => this._renderTerminal(e, a));
55
55
  }
56
56
  _renderListItem(e) {
57
- const { flagProperties: i } = e, { terminalConfiguration: t, expanded: r, title: c } = i, a = c, o = t && t.id !== 0, l = e.traceLocation.type === "barrier", d = o || l, m = t?.name ?? void 0;
58
- return n`<calcite-list-item .label=${a} .description=${m} .value=${a} .expanded=${r}>${d ? this._renderContents(e) : n`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${() => this._handleTraceLocationItemRemoved(e)}></calcite-action></calcite-list-item>`;
57
+ const { flagProperties: i } = e, { terminalConfiguration: t, expanded: r, title: c } = i, a = t && t.id !== 0, o = e.traceLocation.type === "barrier", l = a || o, d = t?.name ?? void 0;
58
+ return n`<calcite-list-item .label=${c} .description=${d} .value=${c} .expanded=${r}>${l ? this._renderContents(e) : n`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${() => this._handleTraceLocationItemRemoved(e)}></calcite-action></calcite-list-item>`;
59
59
  }
60
60
  render() {
61
- const { _messages: e, traceLocationType: i } = this, t = g(e.labels.list, { traceLocationType: i }), r = this.traceLocations?.map((c) => this._renderListItem(c)).toArray() ?? [];
62
- return r.length === 0 ? (s("warn", this, f("traceLocations")), null) : n`<div><calcite-list interaction-mode=static selection-mode=none .label=${t}>${r}</calcite-list></div>`;
61
+ const { _messages: e, traceLocationType: i } = this, t = u(e.labels.list, { traceLocationType: i }), r = this.traceLocations?.map((c) => this._renderListItem(c)).toArray() ?? [];
62
+ return r.length === 0 ? (s("warn", this, v("traceLocations")), null) : n`<div><calcite-list interaction-mode=static selection-mode=none .label=${t}>${r}</calcite-list></div>`;
63
63
  }
64
64
  }
65
- p("arcgis-utility-network-trace-location-list", y);
65
+ m("arcgis-utility-network-trace-location-list", w);
66
66
  export {
67
- y as ArcgisUtilityNetworkTraceLocationList
67
+ w as ArcgisUtilityNetworkTraceLocationList
68
68
  };