@arcgis/map-components 6.0.0-next.0 → 6.0.0-next.1

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 (84) hide show
  1. package/dist/cdn/{3TGYCCNJ.js → 24DOFGMG.js} +1 -1
  2. package/dist/cdn/3KZAH5OY.js +2 -0
  3. package/dist/cdn/{AKDB2XVJ.js → 5K54VOLZ.js} +1 -1
  4. package/dist/cdn/{JBHAJ6GW.js → 63FA3UEL.js} +1 -1
  5. package/dist/cdn/{BCCCO3CN.js → 7UWE25UH.js} +1 -1
  6. package/dist/cdn/{UHK5GFKQ.js → AENNGCAE.js} +1 -1
  7. package/dist/cdn/{7AHOPT65.js → BQKVSKYK.js} +1 -1
  8. package/dist/cdn/{3DPVKWFO.js → CROCDACG.js} +1 -1
  9. package/dist/cdn/H77SMV46.js +2 -0
  10. package/dist/cdn/{VYYFRZLI.js → IMPFB7YV.js} +1 -1
  11. package/dist/cdn/{FUQD5XQR.js → JRQYT5SI.js} +1 -1
  12. package/dist/cdn/{D7RGMPF3.js → NBDQBLRI.js} +1 -1
  13. package/dist/cdn/{NIUMOIYZ.js → QTOA5MBN.js} +1 -1
  14. package/dist/cdn/{2KP3MSHV.js → QWOOD63Q.js} +1 -1
  15. package/dist/cdn/R6HUY6QI.js +2 -0
  16. package/dist/cdn/RHNZWKZV.js +2 -0
  17. package/dist/cdn/{NZBID35V.js → RZQNEEP6.js} +1 -1
  18. package/dist/cdn/{HKGNXMRR.js → TNFZHEWD.js} +1 -1
  19. package/dist/cdn/TZ6WQV6O.js +2 -0
  20. package/dist/cdn/{KRVLKKXB.js → V2GMDCVJ.js} +1 -1
  21. package/dist/cdn/W3ENDJ6U.js +2 -0
  22. package/dist/cdn/WJZZ7SZO.js +2 -0
  23. package/dist/cdn/{KXGVE4NK.js → XJ6DZ6AN.js} +1 -1
  24. package/dist/cdn/{2JWHVMJ3.js → Y2UYA3OR.js} +1 -1
  25. package/dist/cdn/Z42QB2QP.js +2 -0
  26. package/dist/cdn/{3V3PYL2L.js → ZUAR3LO3.js} +1 -1
  27. package/dist/cdn/{N6QTPGCU.js → ZVZVHZYX.js} +1 -1
  28. package/dist/cdn/index.js +1 -1
  29. package/dist/cdn/main.css +1 -1
  30. package/dist/chunks/action-utils.js +7 -7
  31. package/dist/chunks/esri-main.js +1 -1
  32. package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
  33. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +13 -13
  34. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +29 -29
  35. package/dist/components/arcgis-basemap-layer-list-next/types.d.ts +1 -1
  36. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +7 -7
  37. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +16 -16
  38. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +2 -2
  39. package/dist/components/arcgis-feature-form-text/customElement.d.ts +7 -0
  40. package/dist/components/arcgis-feature-form-text/customElement.js +24 -0
  41. package/dist/components/arcgis-feature-form-text/index.d.ts +1 -0
  42. package/dist/components/arcgis-feature-form-text/index.js +1 -0
  43. package/dist/components/arcgis-feature-next/customElement.d.ts +14 -6
  44. package/dist/components/arcgis-feature-next/customElement.js +31 -31
  45. package/dist/components/arcgis-feature-relationship/customElement.js +69 -69
  46. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +21 -21
  47. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +15 -15
  48. package/dist/components/arcgis-features-next/customElement.d.ts +1 -1
  49. package/dist/components/arcgis-features-next/customElement.js +9 -9
  50. package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
  51. package/dist/components/arcgis-layer-list-next/customElement.js +14 -14
  52. package/dist/components/arcgis-legend/customElement.d.ts +2 -2
  53. package/dist/components/arcgis-legend/customElement.js +1 -1
  54. package/dist/components/arcgis-link-chart/customElement.d.ts +7 -1
  55. package/dist/components/arcgis-map/customElement.d.ts +7 -1
  56. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +1 -1
  57. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -4
  58. package/dist/components/arcgis-popup/customElement.d.ts +1 -1
  59. package/dist/components/arcgis-popup/customElement.js +10 -10
  60. package/dist/components/arcgis-scene/customElement.d.ts +7 -1
  61. package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -3
  62. package/dist/components/arcgis-table-list-next/customElement.js +5 -5
  63. package/dist/components/arcgis-time-bar-slider/customElement.js +24 -23
  64. package/dist/docs/api.json +1 -1
  65. package/dist/docs/docs.json +1 -1
  66. package/dist/docs/vscode.css-custom-data.json +1 -1
  67. package/dist/docs/vscode.html-custom-data.json +1 -1
  68. package/dist/docs/web-types.json +1 -1
  69. package/dist/index.d.ts +4 -0
  70. package/dist/loader.js +5 -4
  71. package/dist/types/lumina.d.ts +6 -1
  72. package/dist/types/preact.d.ts +7 -1
  73. package/dist/types/react.d.ts +8 -1
  74. package/dist/types/stencil.d.ts +6 -1
  75. package/dist/utils/layer-list-utils.d.ts +2 -2
  76. package/package.json +6 -6
  77. package/dist/cdn/7R2TTA5R.js +0 -2
  78. package/dist/cdn/E7RFFMRP.js +0 -2
  79. package/dist/cdn/FDXRUZWU.js +0 -2
  80. package/dist/cdn/KJ6TWPZT.js +0 -2
  81. package/dist/cdn/NOIAW4P4.js +0 -2
  82. package/dist/cdn/QDXORLKV.js +0 -2
  83. package/dist/cdn/Z6AYJE6L.js +0 -2
  84. /package/dist/cdn/{XIYYT5SJ.js → YYCBU2CG.js} +0 -0
@@ -9,7 +9,7 @@ class p extends h {
9
9
  constructor() {
10
10
  super(...arguments), this.#t = new ResizeObserver(([e]) => {
11
11
  this._sliderWidth = e.contentRect.width;
12
- }), this.#a = 100, this.#r = 100, this.autoDestroyDisabled = !1, this.lockTimeWindow = !1, this.popoverDisplay = "none", this.showLockTimeWindow = !1, this.showMax = !1, this.showMin = !1, this.showTicks = !1;
12
+ }), this.#a = 100, this.#r = 100, this.#n = (e, i) => i === "value" ? this.viewModel?.formatDateTime(new Date(e)) : void 0, this.autoDestroyDisabled = !1, this.lockTimeWindow = !1, this.popoverDisplay = "none", this.showLockTimeWindow = !1, this.showMax = !1, this.showMin = !1, this.showTicks = !1;
13
13
  }
14
14
  static {
15
15
  this.properties = { _activeValue: 16, _sliderFillPlacement: 16, _sliderWidth: 16, _timeExtentEpochValues: 16, activeValue: 32, autoDestroyDisabled: 5, lockTimeWindow: 5, messages: 0, popoverDisplay: 1, showLockTimeWindow: 5, showMax: 5, showMin: 5, showTicks: 5, viewModel: 0 };
@@ -23,6 +23,7 @@ class p extends h {
23
23
  #e;
24
24
  #a;
25
25
  #r;
26
+ #n;
26
27
  get _sliderFillPlacement() {
27
28
  switch (this.viewModel?.mode) {
28
29
  case "cumulative-from-end":
@@ -87,7 +88,7 @@ class p extends h {
87
88
  async destroy() {
88
89
  await this.manager.destroy();
89
90
  }
90
- #n() {
91
+ #o() {
91
92
  return (e) => {
92
93
  if (e) {
93
94
  this.#e = e, this.#t.observe(e);
@@ -96,28 +97,28 @@ class p extends h {
96
97
  this.#e && (this.#t.unobserve(this.#e), this.#e = void 0);
97
98
  };
98
99
  }
99
- #o() {
100
+ #l() {
100
101
  const e = Number.parseInt(window.getComputedStyle(this.el).getPropertyValue("--arcgis-internal-time-bar-slider-tick-gap"), 10);
101
102
  return Number.isFinite(e) && e > 0 ? e : this.#a;
102
103
  }
103
- #l(e, i) {
104
+ #c(e, i) {
104
105
  const { viewModel: t } = this, { start: s, end: a } = e;
105
106
  if (!t || !s || !a)
106
107
  return;
107
108
  const n = (a.getTime() - s.getTime()) / i;
108
- return t.tickFormats.find(({ duration: c }) => c > this.#o() * n) ?? t.tickFormats.at(-1);
109
+ return t.tickFormats.find(({ duration: c }) => c > this.#l() * n) ?? t.tickFormats.at(-1);
109
110
  }
110
- #c() {
111
+ #d() {
111
112
  this.lockTimeWindow = !this.lockTimeWindow;
112
113
  }
113
- #d(e) {
114
+ #m(e) {
114
115
  this._activeValue = e.target.activeValue;
115
116
  }
116
- #m(e) {
117
+ #u(e) {
117
118
  const { viewModel: i } = this, t = i?.mode;
118
- t && (i.timeExtent = this.#u(e.target.values, t), this._activeValue = e.target.activeValue);
119
+ t && (i.timeExtent = this.#h(e.target.values, t), this._activeValue = e.target.activeValue);
119
120
  }
120
- #u([e, i], t) {
121
+ #h([e, i], t) {
121
122
  switch (t) {
122
123
  case "cumulative-from-end":
123
124
  return new l({ start: new Date(e), end: null });
@@ -129,25 +130,25 @@ class p extends h {
129
130
  return new l({ start: new Date(e), end: new Date(i ?? e) });
130
131
  }
131
132
  }
132
- #h() {
133
+ #v() {
133
134
  const { messages: e, showLockTimeWindow: i, viewModel: t } = this;
134
135
  if (!e || !i || !t)
135
136
  return null;
136
137
  const s = this.lockTimeWindow ? "lock" : "unlock", a = this.lockTimeWindow ? e.unlockTimeWindow : e.lockTimeWindow;
137
- return r`<calcite-action .active=${this.lockTimeWindow} class="lock-time-window" .disabled=${t.disabled || t.mode !== "time-window"} .icon=${s} @click=${this.#c} .text=${a} title=${a ?? v}></calcite-action>`;
138
+ return r`<calcite-action .active=${this.lockTimeWindow} class="lock-time-window" .disabled=${t.disabled || t.mode !== "time-window"} .icon=${s} @click=${this.#d} .text=${a} title=${a ?? v}></calcite-action>`;
138
139
  }
139
- #v() {
140
+ #g() {
140
141
  const e = this.viewModel?.fullTimeExtent?.end;
141
142
  return this.showMax && e ? r`<slot name=max><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="max-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>` : r`<div class="hidden"></div>`;
142
143
  }
143
- #g() {
144
+ #w() {
144
145
  const e = this.viewModel?.fullTimeExtent?.start;
145
146
  return this.showMin && e ? r`<slot name=min><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="min-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>` : r`<div class="hidden"></div>`;
146
147
  }
147
- #w() {
148
- return this.popoverDisplay !== "none" ? r`<div class="popover" slot=popover><slot name=popover>${this.#p()}</slot></div>` : null;
149
- }
150
148
  #p() {
149
+ return this.popoverDisplay !== "none" ? r`<div class="popover" slot=popover><slot name=popover>${this.#f()}</slot></div>` : null;
150
+ }
151
+ #f() {
151
152
  const { activeValue: e, messages: i, viewModel: t } = this;
152
153
  if (!e || !i || !t)
153
154
  return null;
@@ -163,26 +164,26 @@ class p extends h {
163
164
  return e instanceof Date ? r`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${e} .viewModel=${t}></arcgis-time-bar-date>` : r`<arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${i} .viewModel=${t}></arcgis-time-bar-extent>`;
164
165
  }
165
166
  }
166
- #f() {
167
+ #b() {
167
168
  const { messages: e, viewModel: i } = this;
168
169
  if (!i?.fullTimeExtent?.start || !i?.fullTimeExtent?.end || !e)
169
170
  return null;
170
- const t = this.#l(i.fullTimeExtent, this._sliderWidth ?? this.#r);
171
+ const t = this.#c(i.fullTimeExtent, this._sliderWidth ?? this.#r);
171
172
  if (!t)
172
173
  return null;
173
174
  (!this.#i || !this.#s || this.#i !== t) && (this.#i = t, this.#s = i.getTickValues(t.timeInterval), i.tickFormat = t.format);
174
175
  const s = i.fullTimeExtent.start.getTime(), a = i.fullTimeExtent.end.getTime();
175
- return r`<div class="slider-container" ${u(this.#n())}><arcgis-slider allow-values-overlap .autoDestroyDisabled=${this.autoDestroyDisabled} class=${g({
176
+ return r`<div class="slider-container" ${u(this.#o())}><arcgis-slider allow-values-overlap .autoDestroyDisabled=${this.autoDestroyDisabled} class=${g({
176
177
  slider: !0,
177
178
  "slider--has-ticks": this.showTicks,
178
179
  "slider--out-of-range": i.isOutOfRange
179
- })} .disabled=${!i.interactive} .fillPlacement=${this._sliderFillPlacement} .max=${a} .min=${s} @arcgisActiveValueChange=${this.#d} @arcgisInput=${this.#m} .popoverLabel=${e.timeExtent} .popoverDisplay=${this.popoverDisplay === "none" ? "auto" : this.popoverDisplay} precision=0 .steps=${i.effectiveStopsEpoch} .values=${this._timeExtentEpochValues}>${this.#w()}${this.#b(i, s, a)}</arcgis-slider></div>`;
180
+ })} .disabled=${!i.interactive} .fillPlacement=${this._sliderFillPlacement} .labelFormatter=${this.#n} .max=${a} .min=${s} @arcgisActiveValueChange=${this.#m} @arcgisInput=${this.#u} .popoverLabel=${e.timeExtent} .popoverDisplay=${this.popoverDisplay === "none" ? "auto" : this.popoverDisplay} precision=0 .steps=${i.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} .valuesDraggingDisabled=${this.lockTimeWindow}>${this.#p()}${this.#T(i, s, a)}</arcgis-slider></div>`;
180
181
  }
181
- #b(e, i, t) {
182
+ #T(e, i, t) {
182
183
  return this.showTicks ? r`<div slot=content-end class="ticks-container"><slot name=content-end><arcgis-ticks .autoDestroyDisabled=${this.autoDestroyDisabled} .labelFormatter=${e.tickFormatter} .max=${t} .min=${i} mode=value show-labels .values=${this.#s}></arcgis-ticks></slot></div>` : null;
183
184
  }
184
185
  render() {
185
- return r`<div class="root">${this.#h()}${this.#g()}${this.#f()}${this.#v()}</div>`;
186
+ return r`<div class="root">${this.#v()}${this.#w()}${this.#b()}${this.#g()}</div>`;
186
187
  }
187
188
  }
188
189
  d("arcgis-time-bar-slider", p);