@arcgis/map-components 5.2.0-next.23 → 5.2.0-next.25

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 (101) hide show
  1. package/dist/cdn/32XG4IQO.js +2 -0
  2. package/dist/cdn/{BXK5DVDN.js → 4BJSMXKG.js} +1 -1
  3. package/dist/cdn/5P3LF4QU.js +2 -0
  4. package/dist/cdn/5RXWVXJA.js +2 -0
  5. package/dist/cdn/7TE4BSW7.js +2 -0
  6. package/dist/cdn/{23VXN3VB.js → AASOO75T.js} +1 -1
  7. package/dist/cdn/B56MNMJP.js +2 -0
  8. package/dist/cdn/BGWYOIKY.js +2 -0
  9. package/dist/cdn/BV6DN77M.js +2 -0
  10. package/dist/cdn/BXDVZQ2A.js +3 -0
  11. package/dist/cdn/CXHORYLL.js +2 -0
  12. package/dist/cdn/DKG4Q4BC.js +2 -0
  13. package/dist/cdn/{MJ2AUX7N.js → F7ZQA7S5.js} +1 -1
  14. package/dist/cdn/{HFDHHI2B.js → FHL4L2ZY.js} +1 -1
  15. package/dist/cdn/{2BESNRQI.js → FPX4MV2U.js} +1 -1
  16. package/dist/cdn/FWRUNJU5.js +2 -0
  17. package/dist/cdn/HUBIN764.js +2 -0
  18. package/dist/cdn/KLKFMZ7U.js +2 -0
  19. package/dist/cdn/NR6V3DTH.js +2 -0
  20. package/dist/cdn/P3U6DQN6.js +2 -0
  21. package/dist/cdn/{UA3OPWND.js → PGCAY24R.js} +1 -1
  22. package/dist/cdn/{Z257GCMR.js → Q4PNCUBK.js} +1 -1
  23. package/dist/cdn/{XVNU3EUN.js → UCEBZVNP.js} +1 -1
  24. package/dist/cdn/{XPD6NXPE.js → UGOZSFW2.js} +1 -1
  25. package/dist/cdn/VZVNKP6W.js +2 -0
  26. package/dist/cdn/W67QMPVV.js +2 -0
  27. package/dist/cdn/XDKYOMSQ.js +2 -0
  28. package/dist/cdn/{6HLRQHTF.js → YKNC7IPO.js} +1 -1
  29. package/dist/cdn/ZAYZVEUD.js +2 -0
  30. package/dist/cdn/assets/basemap-layer-list-next/t9n/messages.en.json +1 -0
  31. package/dist/cdn/assets/catalog-layer-list-next/t9n/messages.en.json +1 -0
  32. package/dist/cdn/assets/table-list-next/t9n/messages.en.json +1 -0
  33. package/dist/cdn/index.js +1 -1
  34. package/dist/cdn/main.css +1 -1
  35. package/dist/chunks/keyboard-utils.js +15 -0
  36. package/dist/chunks/layer-list-item-indicator.js +1 -1
  37. package/dist/chunks/layer-list-item.js +6 -0
  38. package/dist/chunks/layer-list-utils.js +6 -6
  39. package/dist/chunks/slots.js +1 -1
  40. package/dist/components/arcgis-basemap-gallery/customElement.js +33 -32
  41. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +241 -0
  42. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +329 -0
  43. package/dist/components/arcgis-basemap-layer-list-next/index.d.ts +1 -0
  44. package/dist/components/arcgis-basemap-layer-list-next/index.js +14 -0
  45. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +179 -0
  46. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +263 -0
  47. package/dist/components/arcgis-catalog-layer-list-next/index.d.ts +1 -0
  48. package/dist/components/arcgis-catalog-layer-list-next/index.js +10 -0
  49. package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +6 -0
  50. package/dist/components/arcgis-editor/customElement.js +18 -6
  51. package/dist/components/arcgis-expand/customElement.js +1 -1
  52. package/dist/components/arcgis-feature-media/customElement.js +45 -44
  53. package/dist/components/arcgis-features/customElement.js +26 -25
  54. package/dist/components/arcgis-features-next/customElement.js +22 -21
  55. package/dist/components/arcgis-floor-filter/customElement.js +3 -3
  56. package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
  57. package/dist/components/arcgis-layer-list-next/customElement.js +67 -66
  58. package/dist/components/arcgis-layer-list-next/index.js +2 -2
  59. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
  60. package/dist/components/arcgis-navigation-toggle/customElement.js +45 -26
  61. package/dist/components/arcgis-navigation-toggle/index.js +1 -0
  62. package/dist/components/arcgis-paste/PasteViewModel.d.ts +3 -1
  63. package/dist/components/arcgis-paste/customElement.d.ts +6 -0
  64. package/dist/components/arcgis-paste/customElement.js +9 -6
  65. package/dist/components/arcgis-popup/customElement.d.ts +2 -3
  66. package/dist/components/arcgis-popup/customElement.js +27 -27
  67. package/dist/components/arcgis-presentation/customElement.d.ts +18 -0
  68. package/dist/components/arcgis-presentation/customElement.js +90 -88
  69. package/dist/components/arcgis-sketch/customElement.d.ts +16 -1
  70. package/dist/components/arcgis-sketch/customElement.js +25 -19
  71. package/dist/components/arcgis-table-list-next/customElement.d.ts +235 -0
  72. package/dist/components/arcgis-table-list-next/customElement.js +200 -0
  73. package/dist/components/arcgis-table-list-next/index.d.ts +1 -0
  74. package/dist/components/arcgis-table-list-next/index.js +7 -0
  75. package/dist/components/arcgis-weather/customElement.js +105 -110
  76. package/dist/docs/api.json +1 -1
  77. package/dist/docs/docs.json +1 -1
  78. package/dist/docs/vscode.html-custom-data.json +1 -1
  79. package/dist/docs/web-types.json +1 -1
  80. package/dist/index.d.ts +30 -0
  81. package/dist/loader.js +6 -3
  82. package/dist/types/lumina.d.ts +30 -1
  83. package/dist/types/preact.d.ts +33 -1
  84. package/dist/types/react.d.ts +36 -1
  85. package/dist/types/stencil.d.ts +30 -1
  86. package/dist/utils/layer-list-utils.d.ts +10 -0
  87. package/package.json +4 -4
  88. package/dist/cdn/6LACZH6O.js +0 -2
  89. package/dist/cdn/BMJ6NYIZ.js +0 -2
  90. package/dist/cdn/GQF32YL2.js +0 -2
  91. package/dist/cdn/HTCDJDRI.js +0 -2
  92. package/dist/cdn/I6IJUCE6.js +0 -2
  93. package/dist/cdn/IHDXJ4C3.js +0 -2
  94. package/dist/cdn/IJZYN6XT.js +0 -2
  95. package/dist/cdn/IYEZB6EU.js +0 -2
  96. package/dist/cdn/QJSXXDUJ.js +0 -2
  97. package/dist/cdn/SFSNTAYE.js +0 -2
  98. package/dist/cdn/T5KVNE3U.js +0 -3
  99. package/dist/cdn/WLMFCIBM.js +0 -2
  100. package/dist/cdn/XTGCV3LY.js +0 -2
  101. /package/dist/cdn/{T4OPNOZJ.js → OTZMVWAB.js} +0 -0
@@ -1,25 +1,27 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as d } from "../../chunks/runtime.js";
3
- import { when as s } from "@arcgis/core/core/reactiveUtils.js";
4
- import { LitElement as g, createEvent as h, nothing as r, safeClassMap as p } from "@arcgis/lumina";
5
- import { usePropertyChange as u } from "@arcgis/lumina/controllers";
6
- import { css as v, html as m } from "lit";
7
- import { u as f } from "../../chunks/useT9n.js";
8
- import { u as b } from "../../chunks/useView.js";
9
- import { g as y } from "../../chunks/globalCss.js";
10
- const M = v`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;inline-size:fit-content;block-size:fit-content}.root{--calcite-internal-action-bar-padding: 0;--calcite-internal-action-bar-gap: 0;--calcite-action-corner-radius: 0}`, i = {
2
+ import { c as u } from "../../chunks/runtime.js";
3
+ import { ref as g } from "lit/directives/ref.js";
4
+ import { when as p } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as v, createEvent as f, nothing as h, safeClassMap as m } from "@arcgis/lumina";
6
+ import { useDirection as y, usePropertyChange as b } from "@arcgis/lumina/controllers";
7
+ import { css as _, html as M } from "lit";
8
+ import { u as A } from "../../chunks/useT9n.js";
9
+ import { u as $ } from "../../chunks/useView.js";
10
+ import { g as x } from "../../chunks/globalCss.js";
11
+ import { b as w, a as R } from "../../chunks/keyboard-utils.js";
12
+ const k = _`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;inline-size:fit-content;block-size:fit-content}.root{--calcite-internal-action-bar-padding: 0;--calcite-internal-action-bar-gap: 0;--calcite-action-corner-radius: 0}calcite-action-group{--calcite-internal-action-group-gap: 0}`, r = {
11
13
  pan: "move",
12
14
  rotate: "rotate"
13
- };
14
- class $ extends g {
15
+ }, d = Object.keys(r);
16
+ class D extends v {
15
17
  constructor() {
16
- super(...arguments), this._messages = f(), this._state = "disabled", this.autoDestroyDisabled = !1, this.view = b(this), this.icon = i.pan, this.layout = "vertical", this.navigationMode = "pan", this.visualScale = "m", this.arcgisPropertyChange = u()("layout", "state"), this.arcgisReady = h();
18
+ super(...arguments), this._messages = A(), this._actions = /* @__PURE__ */ new Map(), this._direction = y(), this._state = "disabled", this.autoDestroyDisabled = !1, this.view = $(this), this.icon = r.pan, this.layout = "vertical", this.navigationMode = "pan", this.visualScale = "m", this.arcgisPropertyChange = b()("layout", "state"), this.arcgisReady = f();
17
19
  }
18
20
  static {
19
- this.properties = { _state: 16, autoDestroyDisabled: 5, view: 0, icon: 1, label: 1, layout: 3, messageOverrides: 0, navigationMode: 3, referenceElement: 1, state: 35, visualScale: 1 };
21
+ this.properties = { _state: 16, autoDestroyDisabled: 5, view: 0, icon: 1, label: 1, layout: 3, messageOverrides: 0, navigationMode: 3, referenceElement: 1, state: 32, visualScale: 1 };
20
22
  }
21
23
  static {
22
- this.styles = M;
24
+ this.styles = k;
23
25
  }
24
26
  get state() {
25
27
  return this._state;
@@ -32,8 +34,8 @@ class $ extends g {
32
34
  }
33
35
  load() {
34
36
  this.manager.onLifecycle(() => [
35
- s(() => this.view?.navigation?.actionMap, () => this._updateNavigationActionMap()),
36
- s(() => {
37
+ p(() => this.view?.navigation?.actionMap, () => this._updateNavigationActionMap()),
38
+ p(() => {
37
39
  const { view: t } = this;
38
40
  return t?.ready && t?.type === "3d" ? "ready" : "disabled";
39
41
  }, (t) => {
@@ -44,25 +46,42 @@ class $ extends g {
44
46
  willUpdate(t) {
45
47
  t.has("navigationMode") && this._updateNavigationActionMap();
46
48
  }
47
- _onPanClick() {
48
- this.navigationMode = "pan";
49
+ _onActionGroupChange({ target: t }) {
50
+ const e = t.selectedActions.at(0)?.dataset.navigationMode;
51
+ e && (this.navigationMode = e);
52
+ }
53
+ _onActionKeyDown(t) {
54
+ const { key: e } = t, n = w(e, this._direction), l = R(e, this._direction);
55
+ if (!n && !l)
56
+ return;
57
+ t.preventDefault();
58
+ const s = d.indexOf(this.navigationMode), a = d.length, o = n ? (s + 1) % a : (s - 1 + a) % a, c = d[o];
59
+ this.navigationMode = c;
60
+ const i = this._actions.get(c);
61
+ i && (i.setFocus(), i.click());
62
+ }
63
+ _setPanActionRef(t) {
64
+ this._setActionRef("pan", t);
65
+ }
66
+ _setRotateActionRef(t) {
67
+ this._setActionRef("rotate", t);
49
68
  }
50
- _onRotateClick() {
51
- this.navigationMode = "rotate";
69
+ _setActionRef(t, e) {
70
+ e ? this._actions.set(t, e) : this._actions.delete(t);
52
71
  }
53
72
  _updateNavigationActionMap() {
54
73
  const t = this.view?.navigation?.actionMap;
55
74
  if (!t)
56
75
  return;
57
- const a = this.navigationMode === "pan";
58
- t.dragPrimary = a ? "pan" : "rotate", t.dragSecondary = a ? "rotate" : "pan";
76
+ const e = this.navigationMode === "pan";
77
+ t.dragPrimary = e ? "pan" : "rotate", t.dragSecondary = e ? "rotate" : "pan";
59
78
  }
60
79
  render() {
61
- const { _messages: t, navigationMode: a, state: l } = this, o = t.pan ?? "", n = t.rotate ?? "", e = l === "disabled", c = a === "pan";
62
- return m`<calcite-action-bar class=${p({ root: !0, [y.disabled]: e })} expand-disabled .layout=${this.layout}><calcite-action .active=${c} .disabled=${e} .icon=${i.pan} @click=${this._onPanClick} .scale=${this.visualScale} .text=${o} title=${o ?? r}></calcite-action><calcite-action .active=${!c} .disabled=${e} .icon=${i.rotate} @click=${this._onRotateClick} .scale=${this.visualScale} .text=${n} title=${n ?? r}></calcite-action></calcite-action-bar>`;
80
+ const { _messages: t, label: e, navigationMode: n, state: l } = this, s = e ?? t.componentLabel ?? "", a = t.pan ?? "", o = t.rotate ?? "", c = l === "disabled", i = n === "pan";
81
+ return M`<calcite-action-bar class=${m({ root: !0, [x.disabled]: c })} expand-disabled .layout=${this.layout} @keydown=${this._onActionKeyDown}><calcite-action-group .label=${s} @calciteActionGroupChange=${this._onActionGroupChange} selection-mode=single-persist><calcite-action .active=${i} data-navigation-mode=pan .icon=${r.pan} .label=${a} .scale=${this.visualScale} .text=${a} title=${a ?? h} ${g(this._setPanActionRef)}></calcite-action><calcite-action .active=${!i} data-navigation-mode=rotate .icon=${r.rotate} .label=${o} .scale=${this.visualScale} .text=${o} title=${o ?? h} ${g(this._setRotateActionRef)}></calcite-action></calcite-action-group></calcite-action-bar>`;
63
82
  }
64
83
  }
65
- d("arcgis-navigation-toggle", $);
84
+ u("arcgis-navigation-toggle", D);
66
85
  export {
67
- $ as ArcgisNavigationToggle
86
+ D as ArcgisNavigationToggle
68
87
  };
@@ -1,3 +1,4 @@
1
1
  import "@esri/calcite-components/components/calcite-action-bar";
2
+ import "@esri/calcite-components/components/calcite-action-group";
2
3
  import "@esri/calcite-components/components/calcite-action";
3
4
  export * from "./customElement.js";
@@ -18,7 +18,7 @@ import type { PasteCommand, PasteApplyError, PasteCommandApplyParameters } from
18
18
  import type { CustomPasteCommand } from "./commands/PasteCustomCommand.js";
19
19
 
20
20
  /** @internal */
21
- export interface PasteViewModelProperties extends Partial<Pick<PasteViewModel, "_activeFlowPage" | "activeCommand" | "activeFlowPage" | "alwaysShowFeatureForm" | "applying" | "bauActiveFeatureIndex" | "bauApplySet" | "bauFeatures" | "bauFormUpdating" | "bauFormValid" | "bauHasTooManyComplexFeatures" | "bauHasTooManyFeatures" | "bauHighlight" | "bauIndividualHighlight" | "bauInvalidFeatures" | "bauOriginalGraphics" | "beforeClipboard" | "beforeForm" | "clipboardGraphicsLayer" | "clipboardMover" | "closeOnApply" | "currentPasteOperation" | "customPasteCommands" | "formViewModelMap" | "hideErrorNotice" | "hideFooter" | "hideFooterCancelButton" | "hideHeaderCloseButton" | "hideTooltips" | "hideViewClipboard" | "highlightGroup" | "lastPasteError" | "layerPermissionsCheck" | "maximumFeatureCount" | "maximumFeatureCountWithComplexForms" | "pasteTemplate" | "pasteWithAttributes" | "pasteWithMultipleFeaturesEnabled" | "pasteWithMultipleLayersEnabled" | "selectedClipboardItemIndex" | "selectedFeature" | "showClipboardItems" | "supportedCommands" | "view">> {}
21
+ export interface PasteViewModelProperties extends Partial<Pick<PasteViewModel, "_activeFlowPage" | "activeCommand" | "activeFlowPage" | "alwaysShowFeatureForm" | "applying" | "bauActiveFeatureIndex" | "bauApplySet" | "bauFeatures" | "bauFormUpdating" | "bauFormValid" | "bauHasTooManyComplexFeatures" | "bauHasTooManyFeatures" | "bauHighlight" | "bauIndividualHighlight" | "bauInvalidFeatures" | "bauOriginalGraphics" | "beforeClipboard" | "beforeForm" | "clipboardGraphicsLayer" | "clipboardMover" | "closeOnApply" | "currentPasteOperation" | "customPasteCommands" | "disableTemplatesMode" | "formViewModelMap" | "hideErrorNotice" | "hideFooter" | "hideFooterCancelButton" | "hideHeaderCloseButton" | "hideTooltips" | "hideViewClipboard" | "highlightGroup" | "lastPasteError" | "layerPermissionsCheck" | "maximumFeatureCount" | "maximumFeatureCountWithComplexForms" | "pasteTemplate" | "pasteWithAttributes" | "pasteWithMultipleFeaturesEnabled" | "pasteWithMultipleLayersEnabled" | "selectedClipboardItemIndex" | "selectedFeature" | "showClipboardItems" | "supportedCommands" | "view">> {}
22
22
 
23
23
  /**
24
24
  * The types of flow page that maybe being shown in the component
@@ -86,6 +86,8 @@ export default class PasteViewModel extends Accessor {
86
86
  /** @default "" */
87
87
  accessor currentPasteOperation: "" | "paste-as" | "paste-merge";
88
88
  accessor customPasteCommands: Collection<CustomPasteCommand>;
89
+ /** @default "never" */
90
+ accessor disableTemplatesMode: "never" | "scale" | "visible";
89
91
  accessor formViewModelMap: Map<FeatureLayer | SubtypeSublayer, BatchAttributeFormViewModel>;
90
92
  get hasClipboardItemMatchingTemplate(): boolean;
91
93
  get hasPasteCommandsPage(): boolean;
@@ -176,6 +176,12 @@ export abstract class ArcgisPaste extends LitElement {
176
176
  * @default false
177
177
  */
178
178
  accessor closeOnApply: boolean;
179
+ /**
180
+ * Decide if templates should be disabled when the layer is not visible, or not visible at the current scale.
181
+ *
182
+ * @default "never"
183
+ */
184
+ accessor disableTemplatesMode: "scale" | "never" | "visible";
179
185
  /**
180
186
  * Determines if the component should show error notices
181
187
  *
@@ -973,7 +973,7 @@ function te(e) {
973
973
  let n = class extends U {
974
974
  //#region Lifecycle
975
975
  constructor(e) {
976
- super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount = 200, this.maximumFeatureCountWithComplexForms = 50, this.layerPermissionsCheck = {
976
+ super(e), this.customPasteCommands = new j(), this.bauInvalidFeatures = [], this.bauFormValid = !0, this.bauFormUpdating = !1, this.bauActiveFeatureIndex = -1, this.bauHasTooManyFeatures = !1, this.bauHasTooManyComplexFeatures = !1, this.bauOriginalGraphics = [], this.formViewModelMap = /* @__PURE__ */ new Map(), this.supportedCommands = ["paste-append", "paste-as", "paste-subtract", "paste", "paste-merge"], this.pasteWithMultipleLayersEnabled = !1, this.pasteWithMultipleFeaturesEnabled = !1, this.alwaysShowFeatureForm = !1, this.selectedClipboardItemIndex = -1, this.pasteWithAttributes = !0, this.closeOnApply = !1, this.currentPasteOperation = "", this.disableTemplatesMode = "never", this._activeFlowPage = "commands-page", this.showClipboardItems = !1, this.hideTooltips = !1, this.hideFooter = !1, this.hideFooterCancelButton = !1, this.hideHeaderCloseButton = !1, this.hideViewClipboard = !1, this.hideErrorNotice = !1, this.highlightGroup = "temporary", this._hoverHighlightHandle = null, this.maximumFeatureCount = 200, this.maximumFeatureCountWithComplexForms = 50, this.layerPermissionsCheck = {
977
977
  canCreate: (t) => t ? !!t.effectiveCapabilities?.operations.supportsAdd : !1,
978
978
  canUpdate: (t) => {
979
979
  if (!t)
@@ -1374,6 +1374,9 @@ c([
1374
1374
  c([
1375
1375
  r()
1376
1376
  ], n.prototype, "currentPasteOperation", 2);
1377
+ c([
1378
+ r()
1379
+ ], n.prototype, "disableTemplatesMode", 2);
1377
1380
  c([
1378
1381
  r()
1379
1382
  ], n.prototype, "activeFlowPage", 1);
@@ -1541,10 +1544,10 @@ M = S([
1541
1544
  const at = ve(n);
1542
1545
  class st extends he {
1543
1546
  constructor() {
1544
- super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ge(), this.viewModel = at(this), this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.activeFlowPage = this.viewModel.activeFlowPage, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideFooter = this.viewModel.hideFooter, this.hideHeaderCloseButton = this.viewModel.hideHeaderCloseButton, this.hideTooltips = this.viewModel.hideTooltips, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.pasteCommandsState = this.viewModel.pasteCommandsState, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = xe()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
1547
+ super(), this._featureFormElement = V(), this._floatingChoiceContainer = V(), this._bauForm = V(), this._templateGallery = V(), this._messages = ge(), this.viewModel = at(this), this.hasPasteCommandsPage = this.viewModel.hasPasteCommandsPage, this.activeCommand = this.viewModel.activeCommand, this.availableCommands = this.viewModel.availableCommands, this._showFloatingChoice = !1, this.activeFlowPage = this.viewModel.activeFlowPage, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.selectedFeature = this.viewModel.selectedFeature, this.closed = !1, this.highlightGroup = this.viewModel.highlightGroup, this.pasteWithMultipleLayersEnabled = this.viewModel.pasteWithMultipleLayersEnabled, this.pasteWithMultipleFeaturesEnabled = this.viewModel.pasteWithMultipleFeaturesEnabled, this.alwaysShowFeatureForm = this.viewModel.alwaysShowFeatureForm, this.closeOnApply = this.viewModel.closeOnApply, this.hideErrorNotice = this.viewModel.hideErrorNotice, this.hideFooterCancelButton = this.viewModel.hideFooterCancelButton, this.hideFooter = this.viewModel.hideFooter, this.hideHeaderCloseButton = this.viewModel.hideHeaderCloseButton, this.hideTooltips = this.viewModel.hideTooltips, this.hideViewClipboard = this.viewModel.hideViewClipboard, this.maximumFeatureCount = this.viewModel.maximumFeatureCount, this.maximumFeatureCountWithComplexForms = this.viewModel.maximumFeatureCountWithComplexForms, this.layerPermissionsCheck = this.viewModel.layerPermissionsCheck, this.pasteCommandsState = this.viewModel.pasteCommandsState, this.disableTemplatesMode = this.viewModel.disableTemplatesMode, this.arcgisApplyPasteCommand = T(), this.arcgisApplyPasteError = T(), this.arcgisBeforeClipboardMove = T(), this.arcgisClipboardMoveStateChanged = T(), this.arcgisClose = T(), this.arcgisPropertyChange = xe()("pasteCommandsState", "activeFlowPage"), this.arcgisReady = T(), this.listenOn(window, "click", this._handleClickAway), this.listenOn(window, "keydown", this._handleKeyDown);
1545
1548
  }
1546
1549
  static {
1547
- this.properties = { hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, activeFlowPage: 32, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideFooter: 5, hideHeaderCloseButton: 5, hideTooltips: 5, hideViewClipboard: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, layerPermissionsCheck: 0, pasteCommandsState: 0 };
1550
+ this.properties = { hasPasteCommandsPage: 16, activeCommand: 16, availableCommands: 16, _showFloatingChoice: 16, activeFlowPage: 32, autoDestroyDisabled: 5, referenceElement: 1, view: 0, selectedFeature: 0, closed: 7, highlightGroup: 1, supportedCommands: 1, pasteWithMultipleLayersEnabled: 5, pasteWithMultipleFeaturesEnabled: 5, alwaysShowFeatureForm: 5, beforeApply: 0, clipboard: 32, closeOnApply: 5, hideErrorNotice: 5, hideFooterCancelButton: 5, hideFooter: 5, hideHeaderCloseButton: 5, hideTooltips: 5, hideViewClipboard: 5, maximumFeatureCount: 9, maximumFeatureCountWithComplexForms: 9, layerPermissionsCheck: 0, pasteCommandsState: 0, disableTemplatesMode: 1 };
1548
1551
  }
1549
1552
  static {
1550
1553
  this.styles = $e;
@@ -1694,9 +1697,9 @@ class st extends he {
1694
1697
  t.selectedTemplateId !== this.viewModel.pasteTemplate.id && (t.selectedTemplateId = this.viewModel.pasteTemplate.id);
1695
1698
  return;
1696
1699
  }
1697
- if (t.effectiveTemplates.length === 0)
1700
+ if (t.effectiveTemplates?.length === 0)
1698
1701
  return;
1699
- const i = t.effectiveTemplates[0].templates[0];
1702
+ const i = t.effectiveTemplates?.[0].templates[0];
1700
1703
  i && (this.viewModel.pasteTemplate = i, t.selectedTemplateId = i.id);
1701
1704
  });
1702
1705
  }
@@ -1764,7 +1767,7 @@ class st extends he {
1764
1767
  this.viewModel.activeFlowPage = "merge-page";
1765
1768
  }} title=${this._messages.seeMergeOptions ?? ue}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
1766
1769
  this.viewModel.activeFlowPage = "merge-page";
1767
- }}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
1770
+ }}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .disableTemplatesMode=${this.disableTemplatesMode} .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
1768
1771
  this._checkAndUpdateInitialPasteTemplate();
1769
1772
  }} @arcgisSelectTemplate=${(i) => {
1770
1773
  this.viewModel.pasteTemplate = i.detail.template;
@@ -1,5 +1,4 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type Features from "@arcgis/core/popup/Features.js";
3
2
  import type ActionButton from "@arcgis/core/support/actions/ActionButton.js";
4
3
  import type ActionToggle from "@arcgis/core/support/actions/ActionToggle.js";
5
4
  import type Graphic from "@arcgis/core/Graphic.js";
@@ -600,13 +599,13 @@ export abstract class ArcgisPopup extends LitElement {
600
599
  *
601
600
  * @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeatureIndex)
602
601
  */
603
- next(): Promise<Features>;
602
+ next(): Promise<void>;
604
603
  /**
605
604
  * Selects the feature at the previous index in relation to the selected feature.
606
605
  *
607
606
  * @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeatureIndex)
608
607
  */
609
- previous(): Promise<Features>;
608
+ previous(): Promise<void>;
610
609
  /** Use this method to give focus to the component if the component is able to be focused. */
611
610
  setFocus(): Promise<void>;
612
611
  /**
@@ -55,8 +55,8 @@ class j extends L {
55
55
  set dockOptions(t) {
56
56
  const e = { ...C }, o = this.viewModel?.view?.breakpoints, i = {};
57
57
  o && (i.width = o.xsmall, i.height = o.xsmall);
58
- const s = { ...e, ...t }, n = { ...e.breakpoint, ...i }, { breakpoint: a } = s;
59
- typeof a == "object" ? s.breakpoint = { ...n, ...a } : a && (s.breakpoint = n), this._dockOptions = s;
58
+ const s = { ...e, ...t }, n = { ...e.breakpoint, ...i }, { breakpoint: r } = s;
59
+ typeof r == "object" ? s.breakpoint = { ...n, ...r } : r && (s.breakpoint = n), this._dockOptions = s;
60
60
  }
61
61
  get selectedDrillInFeature() {
62
62
  return this._featuresComponent.value?.selectedDrillInFeature ?? null;
@@ -68,25 +68,25 @@ class j extends L {
68
68
  return this.viewModel.handleViewClick(t);
69
69
  }
70
70
  async clear() {
71
- return this.viewModel.clear();
71
+ this.viewModel.clear();
72
72
  }
73
73
  async destroy() {
74
74
  await this.manager.destroy(), this._dockAction.destroy(), this._popupResizeObserver.disconnect();
75
75
  }
76
76
  async fetchFeatures(t, e) {
77
- return await this._featuresComponent.value?.fetchFeatures(t, e);
77
+ await this._featuresComponent.value?.fetchFeatures(t, e);
78
78
  }
79
79
  async next() {
80
- return this.viewModel.next();
80
+ this.viewModel.next();
81
81
  }
82
82
  async previous() {
83
- return this.viewModel.previous();
83
+ this.viewModel.previous();
84
84
  }
85
85
  async setFocus() {
86
86
  this._featuresComponent.value?.setFocus();
87
87
  }
88
88
  async triggerAction(t) {
89
- return await this._featuresComponent.value?.triggerAction(t);
89
+ await this._featuresComponent.value?.triggerAction(t);
90
90
  }
91
91
  connectedCallback() {
92
92
  super.connectedCallback(), this._syncPopupResizeObserver();
@@ -157,7 +157,7 @@ class j extends L {
157
157
  const { _mainContainerNode: e, _popupRect: o, viewModel: i } = this, { view: s } = i, { screenLocation: n } = this;
158
158
  if (n == null || !s || !o || !e.value)
159
159
  return "top-center";
160
- const a = window.getComputedStyle(e.value), l = f(a.maxHeight), r = f(a.height), c = this._getPointerSize(), { height: d, width: k } = o, h = k + c, u = Math.max(d, l, r) + c, z = this._isOutsideView({
160
+ const r = window.getComputedStyle(e.value), l = f(r.maxHeight), a = f(r.height), c = this._getPointerSize(), { height: d, width: k } = o, h = k + c, u = Math.max(d, l, a) + c, z = this._isOutsideView({
161
161
  popupHeight: u,
162
162
  popupWidth: h,
163
163
  screenLocation: n,
@@ -239,35 +239,35 @@ class j extends L {
239
239
  _calculateAlignmentPosition(t, e, o, i) {
240
240
  if (t < 0 || e < 0 || !o || !i || t > o.width || e > o.height)
241
241
  return;
242
- const { topLayerDisabled: s } = this, n = s ? t : t + o.x, a = s ? e : e + o.y, { _direction: l, currentAlignment: r } = this, c = this._getPointerSize(), d = c / 2;
243
- if (r === "top-left" || r === "top-start" && l === "ltr" || r === "top-end" && l === "rtl")
242
+ const { topLayerDisabled: s } = this, n = s ? t : t + o.x, r = s ? e : e + o.y, { _direction: l, currentAlignment: a } = this, c = this._getPointerSize(), d = c / 2;
243
+ if (a === "top-left" || a === "top-start" && l === "ltr" || a === "top-end" && l === "rtl")
244
244
  return {
245
- top: a - (i.height + d),
245
+ top: r - (i.height + d),
246
246
  left: n - i.width - d
247
247
  };
248
- if (r === "top-center")
248
+ if (a === "top-center")
249
249
  return {
250
- top: a - (i.height + c),
250
+ top: r - (i.height + c),
251
251
  left: n - i.width / 2
252
252
  };
253
- if (r === "top-right" || r === "top-end" && l === "ltr" || r === "top-start" && l === "rtl")
253
+ if (a === "top-right" || a === "top-end" && l === "ltr" || a === "top-start" && l === "rtl")
254
254
  return {
255
- top: a - (i.height + d),
255
+ top: r - (i.height + d),
256
256
  left: n + d
257
257
  };
258
- if (r === "bottom-left" || r === "bottom-start" && l === "ltr" || r === "bottom-end" && l === "rtl")
258
+ if (a === "bottom-left" || a === "bottom-start" && l === "ltr" || a === "bottom-end" && l === "rtl")
259
259
  return {
260
- top: a + d,
260
+ top: r + d,
261
261
  left: n - i.width - d
262
262
  };
263
- if (r === "bottom-center")
263
+ if (a === "bottom-center")
264
264
  return {
265
- top: a + c,
265
+ top: r + c,
266
266
  left: n - i.width / 2
267
267
  };
268
- if (r === "bottom-right" || r === "bottom-end" && l === "ltr" || r === "bottom-start" && l === "rtl")
268
+ if (a === "bottom-right" || a === "bottom-end" && l === "ltr" || a === "bottom-start" && l === "rtl")
269
269
  return {
270
- top: a + d,
270
+ top: r + d,
271
271
  left: n + d
272
272
  };
273
273
  }
@@ -287,8 +287,8 @@ class j extends L {
287
287
  return `inset: ${this._getPositionStyleValue(i.top)} ${this._getPositionStyleValue(i.right)} ${this._getPositionStyleValue(i.bottom)} ${this._getPositionStyleValue(i.left)};`;
288
288
  }
289
289
  _dockingThresholdCrossed(t, e, o) {
290
- const [i, s] = t, [n, a] = e, { width: l = 0, height: r = 0 } = o ?? {};
291
- return i <= l && n > l || i > l && n <= l || s <= r && a > r || s > r && a <= r;
290
+ const [i, s] = t, [n, r] = e, { width: l = 0, height: a = 0 } = o ?? {};
291
+ return i <= l && n > l || i > l && n <= l || s <= a && r > a || s > a && r <= a;
292
292
  }
293
293
  _updateDockEnabledForViewSize(t, e) {
294
294
  if (!t || !e || !this.viewModel?.view?.ready)
@@ -303,14 +303,14 @@ class j extends L {
303
303
  const { width: i, height: s } = o;
304
304
  if (Number.isNaN(i) || Number.isNaN(s) || typeof e != "object")
305
305
  return !1;
306
- const n = typeof e.width == "number" && i <= (e.width ?? 0), a = typeof e.height == "number" && s <= (e.height ?? 0);
307
- return n || a;
306
+ const n = typeof e.width == "number" && i <= (e.width ?? 0), r = typeof e.height == "number" && s <= (e.height ?? 0);
307
+ return n || r;
308
308
  }
309
309
  _setDockEnabledForViewSize(t) {
310
310
  this.viewModel?.view?.ready && typeof t.breakpoint == "object" && (this.dockEnabled = this._shouldDockAtCurrentViewSize(t));
311
311
  }
312
312
  render() {
313
- const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view: a } = this.viewModel, l = n && e, r = n && !e, c = a?.widthBreakpoint, d = a?.heightBreakpoint, k = {
313
+ const { _direction: t, dockEnabled: e, currentAlignment: o, currentDockPosition: i, positionStyle: s } = this, { active: n, view: r } = this.viewModel, l = n && e, a = n && !e, c = r?.widthBreakpoint, d = r?.heightBreakpoint, k = {
314
314
  "aligned-top-center": o === "top-center",
315
315
  "aligned-bottom-center": o === "bottom-center",
316
316
  "aligned-top-left": o === "top-left" || o === "top-start" && t === "ltr" || o === "top-end" && t === "rtl",
@@ -318,7 +318,7 @@ class j extends L {
318
318
  "aligned-top-right": o === "top-right" || o === "top-end" && t === "ltr" || o === "top-start" && t === "rtl",
319
319
  "aligned-bottom-right": o === "bottom-right" || o === "bottom-end" && t === "ltr" || o === "bottom-start" && t === "rtl",
320
320
  "is-docked": l,
321
- shadow: r,
321
+ shadow: a,
322
322
  "is-rtl": this._direction === "rtl",
323
323
  "is-docked-top-start": i === "top-start",
324
324
  "is-docked-top-end": i === "top-end",
@@ -131,9 +131,27 @@ export abstract class ArcgisPresentation extends LitElement {
131
131
  }>;
132
132
  /** Emitted when the component associated with a map or scene view is ready to be interacted with. */
133
133
  readonly arcgisReady: import("@arcgis/lumina").TargetedEvent<this, void>;
134
+ /**
135
+ * Fires after applying a slide to the Scene View has been canceled.
136
+ * It only fires if the slide cancelled is in the list of slides of the webscene presentation.
137
+ */
138
+ readonly arcgisSlideApplyCancel: import("@arcgis/lumina").TargetedEvent<this, { slide: Slide; }>;
139
+ /**
140
+ * Fires after applying a slide to the Scene View has been completed.
141
+ * It only fires if the slide canceled is in the list of slides of the webscene presentation.
142
+ */
143
+ readonly arcgisSlideApplyComplete: import("@arcgis/lumina").TargetedEvent<this, { slide: Slide; }>;
144
+ /**
145
+ * Fires after a slide has been applied to the Scene View.
146
+ * It only fires if the slide applied is in the list of slides of the webscene presentation.
147
+ */
148
+ readonly arcgisSlideApplyStart: import("@arcgis/lumina").TargetedEvent<this, { slide: Slide; }>;
134
149
  readonly "@eventTypes": {
135
150
  arcgisPopupFeatureNotFound: ArcgisPresentation["arcgisPopupFeatureNotFound"]["detail"];
136
151
  arcgisPopupFeaturesRetrieved: ArcgisPresentation["arcgisPopupFeaturesRetrieved"]["detail"];
137
152
  arcgisReady: ArcgisPresentation["arcgisReady"]["detail"];
153
+ arcgisSlideApplyCancel: ArcgisPresentation["arcgisSlideApplyCancel"]["detail"];
154
+ arcgisSlideApplyComplete: ArcgisPresentation["arcgisSlideApplyComplete"]["detail"];
155
+ arcgisSlideApplyStart: ArcgisPresentation["arcgisSlideApplyStart"]["detail"];
138
156
  };
139
157
  }