@arcgis/portal-components 5.0.0-next.8 → 5.0.0-next.80

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 (143) hide show
  1. package/dist/cdn/3PLIPHN3.js +4 -0
  2. package/dist/cdn/6VVNKH3C.js +4 -0
  3. package/dist/cdn/BP374N4Z.js +4 -0
  4. package/dist/cdn/CWFDUEWC.js +4 -0
  5. package/dist/cdn/{UMM6SNBX.js → EAQU436Q.js} +1 -1
  6. package/dist/cdn/FB3OEXTD.js +4 -0
  7. package/dist/cdn/IGTNTMJZ.js +4 -0
  8. package/dist/cdn/L7XZSKU5.js +4 -0
  9. package/dist/cdn/LJC3RJ32.js +4 -0
  10. package/dist/cdn/{CD4UPPBA.js → Q5GZCFBS.js} +2 -2
  11. package/dist/cdn/RNZZASX2.js +4 -0
  12. package/dist/cdn/S4MD7LWI.js +6 -0
  13. package/dist/cdn/SRAY4KFR.js +4 -0
  14. package/dist/cdn/TACZTOXO.js +4 -0
  15. package/dist/cdn/{OC63YBA6.js → XTIAGADP.js} +1 -1
  16. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ar.json +1 -1
  17. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bg.json +1 -1
  18. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.bs.json +1 -1
  19. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ca.json +1 -1
  20. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.cs.json +1 -1
  21. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.da.json +1 -1
  22. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.de.json +1 -1
  23. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.el.json +1 -1
  24. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.es.json +1 -1
  25. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.et.json +1 -1
  26. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fi.json +1 -1
  27. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.fr.json +1 -1
  28. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.he.json +1 -1
  29. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hr.json +1 -1
  30. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.hu.json +1 -1
  31. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.id.json +1 -1
  32. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.it.json +1 -1
  33. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ja.json +1 -1
  34. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ko.json +1 -1
  35. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lt.json +1 -1
  36. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.lv.json +1 -1
  37. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.nl.json +1 -1
  38. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.no.json +1 -1
  39. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pl.json +1 -1
  40. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-BR.json +1 -1
  41. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.pt-PT.json +1 -1
  42. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ro.json +1 -1
  43. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.ru.json +1 -1
  44. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sk.json +1 -1
  45. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sl.json +1 -1
  46. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sr.json +1 -1
  47. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.sv.json +1 -1
  48. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.th.json +1 -1
  49. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.tr.json +1 -1
  50. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.uk.json +1 -1
  51. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.vi.json +1 -1
  52. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-CN.json +1 -1
  53. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-HK.json +1 -1
  54. package/dist/cdn/assets/portal-classification-favorite/t9n/messages.zh-TW.json +1 -1
  55. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ar.json +1 -0
  56. package/dist/cdn/assets/portal-extent-picker/t9n/messages.bg.json +1 -0
  57. package/dist/cdn/assets/portal-extent-picker/t9n/messages.bs.json +1 -0
  58. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ca.json +1 -0
  59. package/dist/cdn/assets/portal-extent-picker/t9n/messages.cs.json +1 -0
  60. package/dist/cdn/assets/portal-extent-picker/t9n/messages.da.json +1 -0
  61. package/dist/cdn/assets/portal-extent-picker/t9n/messages.de.json +1 -0
  62. package/dist/cdn/assets/portal-extent-picker/t9n/messages.el.json +1 -0
  63. package/dist/cdn/assets/portal-extent-picker/t9n/messages.en.json +1 -0
  64. package/dist/cdn/assets/portal-extent-picker/t9n/messages.es.json +1 -0
  65. package/dist/cdn/assets/portal-extent-picker/t9n/messages.et.json +1 -0
  66. package/dist/cdn/assets/portal-extent-picker/t9n/messages.fi.json +1 -0
  67. package/dist/cdn/assets/portal-extent-picker/t9n/messages.fr.json +1 -0
  68. package/dist/cdn/assets/portal-extent-picker/t9n/messages.he.json +1 -0
  69. package/dist/cdn/assets/portal-extent-picker/t9n/messages.hr.json +1 -0
  70. package/dist/cdn/assets/portal-extent-picker/t9n/messages.hu.json +1 -0
  71. package/dist/cdn/assets/portal-extent-picker/t9n/messages.id.json +1 -0
  72. package/dist/cdn/assets/portal-extent-picker/t9n/messages.it.json +1 -0
  73. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ja.json +1 -0
  74. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ko.json +1 -0
  75. package/dist/cdn/assets/portal-extent-picker/t9n/messages.lt.json +1 -0
  76. package/dist/cdn/assets/portal-extent-picker/t9n/messages.lv.json +1 -0
  77. package/dist/cdn/assets/portal-extent-picker/t9n/messages.nb.json +1 -0
  78. package/dist/cdn/assets/portal-extent-picker/t9n/messages.nl.json +1 -0
  79. package/dist/cdn/assets/portal-extent-picker/t9n/messages.pl.json +1 -0
  80. package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-BR.json +1 -0
  81. package/dist/cdn/assets/portal-extent-picker/t9n/messages.pt-PT.json +1 -0
  82. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ro.json +1 -0
  83. package/dist/cdn/assets/portal-extent-picker/t9n/messages.ru.json +1 -0
  84. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sk.json +1 -0
  85. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sl.json +1 -0
  86. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sr.json +1 -0
  87. package/dist/cdn/assets/portal-extent-picker/t9n/messages.sv.json +1 -0
  88. package/dist/cdn/assets/portal-extent-picker/t9n/messages.th.json +1 -0
  89. package/dist/cdn/assets/portal-extent-picker/t9n/messages.tr.json +1 -0
  90. package/dist/cdn/assets/portal-extent-picker/t9n/messages.uk.json +1 -0
  91. package/dist/cdn/assets/portal-extent-picker/t9n/messages.vi.json +1 -0
  92. package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-CN.json +1 -0
  93. package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-HK.json +1 -0
  94. package/dist/cdn/assets/portal-extent-picker/t9n/messages.zh-TW.json +1 -0
  95. package/dist/cdn/index.js +2 -2
  96. package/dist/cdn/main.css +1 -1
  97. package/dist/chunks/common.js +1 -1
  98. package/dist/chunks/fieldAddDelete.js +164 -151
  99. package/dist/chunks/loadClassificationData.js +1 -1
  100. package/dist/chunks/requests.js +1 -1
  101. package/dist/chunks/runtime.js +1 -1
  102. package/dist/chunks/useT9n.js +1 -1
  103. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  104. package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
  105. package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
  106. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  107. package/dist/components/arcgis-portal-extent-picker/customElement.d.ts +51 -0
  108. package/dist/components/arcgis-portal-extent-picker/customElement.js +553 -0
  109. package/dist/components/arcgis-portal-extent-picker/index.d.ts +8 -0
  110. package/dist/components/arcgis-portal-extent-picker/index.js +8 -0
  111. package/dist/components/arcgis-portal-extent-picker/mask-layer.d.ts +28 -0
  112. package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.d.ts +26 -0
  113. package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +60 -0
  114. package/dist/components/arcgis-portal-extent-picker-coord-field/index.d.ts +3 -0
  115. package/dist/components/arcgis-portal-extent-picker-coord-field/index.js +3 -0
  116. package/dist/components/arcgis-portal-field-delete/customElement.d.ts +4 -2
  117. package/dist/components/arcgis-portal-field-delete/customElement.js +28 -28
  118. package/dist/docs/api.json +300 -38
  119. package/dist/docs/docs.json +288 -9
  120. package/dist/docs/vscode.html-custom-data.json +33 -1
  121. package/dist/docs/web-types.json +129 -2
  122. package/dist/index.d.ts +27 -5
  123. package/dist/index.js +1 -1
  124. package/dist/loader.d.ts +1 -1
  125. package/dist/loader.js +6 -4
  126. package/dist/types/components.d.ts +1 -1
  127. package/dist/types/lumina.d.ts +14 -5
  128. package/dist/types/preact.d.ts +15 -5
  129. package/dist/types/preact10.d.ts +16 -5
  130. package/dist/types/react.d.ts +16 -5
  131. package/dist/types/stencil.d.ts +14 -5
  132. package/dist/utils/commonFunctions.d.ts +2 -1
  133. package/dist/utils/style.d.ts +1 -0
  134. package/package.json +5 -5
  135. package/dist/cdn/3LZ3JHBJ.js +0 -4
  136. package/dist/cdn/FZKZUJ3Q.js +0 -6
  137. package/dist/cdn/GYBLZBJK.js +0 -4
  138. package/dist/cdn/HKXINXFD.js +0 -4
  139. package/dist/cdn/LR7YRY7B.js +0 -4
  140. package/dist/cdn/M6NBDFXP.js +0 -4
  141. package/dist/cdn/SYGFRMLX.js +0 -4
  142. package/dist/cdn/W56GZ62U.js +0 -4
  143. package/dist/cdn/XUFCQXGW.js +0 -4
@@ -0,0 +1,60 @@
1
+ import { c as n } from "../../chunks/runtime.js";
2
+ import { createRef as c, ref as d } from "lit/directives/ref.js";
3
+ import { LitElement as u, createEvent as p, safeClassMap as a, nothing as s } from "@arcgis/lumina";
4
+ import { css as h, html as o } from "lit";
5
+ import { useDirection as m } from "@arcgis/lumina/controllers";
6
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
+ v5.0.0-next.80 */
9
+ const g = h`.coord-field{margin-bottom:var(--calcite-spacing-sm)}.coord-label{display:block;margin-bottom:var(--calcite-spacing-sm);font-size:14px}.coordinate-input{width:100%;block-size:var(--calcite-spacing-xxxl);box-sizing:border-box;padding-inline:var(--calcite-spacing-md);font-size:14px;color:var(--calcite-color-text-3);outline-color:var(--calcite-color-brand)}.coordinate-input--error{border:1px solid var(--calcite-color-status-danger)}.coord-error-message{position:relative;max-width:100%;margin:var(--calcite-spacing-sm) 0;display:flex;font-size:14px;padding:6px 7px;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-status-danger);box-shadow:0 1px 2px #00000054}.coord-error-message:before{pointer-events:none;content:"";position:absolute;left:11px;top:-16px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-ui-danger)}.coord-error-message:after{position:absolute;pointer-events:none;content:"";left:11px;top:-15px;width:0;height:0;border:8px solid transparent;border-bottom-color:var(--calcite-ui-foreground-1)}.is-rtl .coord-error-message:before,.is-rtl .coord-error-message:after{left:initial;right:11px}.coord-error-message calcite-icon{color:var(--calcite-ui-danger)}.coord-error-message__text{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm);line-height:var(--calcite-spacing-xl)}`;
10
+ class v extends u {
11
+ constructor() {
12
+ super(...arguments), this._direction = m(), this.inputEl = c(), this.isInvalid = !1, this.currentError = "", this.inputValue = "", this.label = "", this.value = "", this.errorMessage = "", this.min = -180, this.max = 180, this.validateRelated = () => !0, this.relatedErrorMessage = "", this.inputId = "", this.arcgisCoordChange = p();
13
+ }
14
+ static {
15
+ this.properties = { isInvalid: 16, currentError: 16, inputValue: 16, label: 1, value: 1, errorMessage: 1, min: 9, max: 9, validateRelated: 0, relatedErrorMessage: 1, inputId: 1 };
16
+ }
17
+ static {
18
+ this.styles = g;
19
+ }
20
+ checkRelatedField() {
21
+ return !this.inputValue || !this.isInvalid || !this.validate(this.inputValue) ? "" : this.inputValue;
22
+ }
23
+ isValid() {
24
+ return !this.isInvalid;
25
+ }
26
+ setFocus() {
27
+ this.inputEl.value?.focus();
28
+ }
29
+ willUpdate(e) {
30
+ e.has("value") && this.validate(e.get("value"));
31
+ }
32
+ isValidCoord(e, r, t) {
33
+ if (!e?.match(/^-?[0-9]*(\.|,)?[0-9]+$/u))
34
+ return !1;
35
+ const i = this.parseNumber(e);
36
+ return i >= r && i <= t;
37
+ }
38
+ validate(e) {
39
+ if (this.isInvalid = !this.isValidCoord(e, this.min, this.max), this.isInvalid)
40
+ return this.currentError = this.errorMessage, !1;
41
+ const r = this.parseNumber(e);
42
+ return this.isInvalid = !this.validateRelated(r), this.isInvalid ? (this.currentError = this.relatedErrorMessage, !1) : !0;
43
+ }
44
+ parseNumber(e) {
45
+ const r = `-${Array.from({ length: 10 }, (i, l) => l.toString()).join("")}`;
46
+ let t = e.replace(",", ".");
47
+ return t = Array.from(t).filter((i) => r.includes(i) || i === ".").join(""), parseFloat(t);
48
+ }
49
+ render() {
50
+ return o`<div class=${a({ "coord-field": !0, "is-rtl": this._direction === "rtl" })}><label class="coord-label" for=${this.inputId ?? s}>${this.label}</label><calcite-input-number number-button-type=none id=${this.inputId ?? s} class=${a({
51
+ "coordinate-input": !0
52
+ })} .value=${`${this.parseNumber(this.value)}`} @calciteInputNumberChange=${(e) => {
53
+ this.inputValue = e.target.value, this.validate(this.inputValue) && this.arcgisCoordChange.emit(this.inputValue);
54
+ }} .status=${this.isInvalid ? "invalid" : "valid"} ${d(this.inputEl)}></calcite-input-number>${this.isInvalid && o`<div class="coord-error-message"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon><div class="coord-error-message__text">${this.currentError}</div></div>` || ""}</div>`;
55
+ }
56
+ }
57
+ n("arcgis-portal-extent-picker-coord-field", v);
58
+ export {
59
+ v as ArcgisPortalExtentPickerCoordField
60
+ };
@@ -0,0 +1,3 @@
1
+ import "@esri/calcite-components/components/calcite-input-number";
2
+ import "@esri/calcite-components/components/calcite-icon";
3
+ export * from "./customElement.js";
@@ -0,0 +1,3 @@
1
+ import "@esri/calcite-components/components/calcite-input-number";
2
+ import "@esri/calcite-components/components/calcite-icon";
3
+ export * from "./customElement.js";
@@ -14,10 +14,12 @@ export declare class ArcgisPortalFieldDelete extends LitElement {
14
14
  mapView?: __esri.MapView;
15
15
  /** Properties that may need to be passed in case values differ from what is available on Map Viewer. */
16
16
  options?: FieldDeleteOptions;
17
- /** Emitted when the field is successfully deleted. */
18
- readonly arcgisFieldsDeleted: TargetedEvent<this, void>;
19
17
  /** Emitted before the modal is closed if the alert is handled in consumer. */
20
18
  readonly arcgisBeforeModalClose: TargetedEvent<this, string>;
21
19
  /** Emitted when the component is closed for any reason. */
22
20
  readonly arcgisClose: TargetedEvent<this, void>;
21
+ /** Emitted when the user initiates the delete process. */
22
+ readonly arcgisBeforeDelete: TargetedEvent<this, void>;
23
+ /** Emitted when the field is successfully deleted. */
24
+ readonly arcgisFieldsDeleted: TargetedEvent<this, void>;
23
25
  }
@@ -1,18 +1,18 @@
1
1
  import { c as k } from "../../chunks/runtime.js";
2
- import { html as p, css as P } from "lit";
3
- import { LitElement as M, createEvent as F, renderElement as T } from "@arcgis/lumina";
4
- import { createRef as E, ref as N } from "lit/directives/ref.js";
5
- import { Task as O } from "@lit/task";
2
+ import { html as p, css as M } from "lit";
3
+ import { LitElement as O, createEvent as v, renderElement as T } from "@arcgis/lumina";
4
+ import { createRef as I, ref as N } from "lit/directives/ref.js";
5
+ import { Task as P } from "@lit/task";
6
6
  import * as x from "@arcgis/core/core/lang.js";
7
7
  import L from "@arcgis/core/layers/support/FeatureTemplate.js";
8
8
  import S from "@arcgis/core/Graphic.js";
9
- import j from "@arcgis/core/identity/IdentityManager.js";
9
+ import B from "@arcgis/core/identity/IdentityManager.js";
10
10
  import y from "@arcgis/core/request.js";
11
- import { a as B, g as U, b as q, d as R, e as w, f as J, i as D } from "../../chunks/fieldAddDelete.js";
12
- import { u as z } from "../../chunks/useT9n.js";
11
+ import { a as j, g as U, b as q, d as R, s as J, e as D, f as z, i as w } from "../../chunks/fieldAddDelete.js";
12
+ import { u as W } from "../../chunks/useT9n.js";
13
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
14
14
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
15
- v5.0.0-next.8 */
15
+ v5.0.0-next.80 */
16
16
  const n = /* @__PURE__ */ new Map();
17
17
  n.set("oid", "key");
18
18
  n.set("guid", "key");
@@ -30,23 +30,23 @@ n.set("date-only", "calendar");
30
30
  n.set("time-only", "clock");
31
31
  n.set("timestamp-offset", "time-zone");
32
32
  n.set("string", "string");
33
- const W = ({ fieldType: $ }) => p`<calcite-icon scale=s .icon=${n.get($)}></calcite-icon>`, _ = P`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-spacing-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-spacing-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`;
34
- class V extends M {
33
+ const _ = ({ fieldType: $ }) => p`<calcite-icon scale=s .icon=${n.get($)}></calcite-icon>`, V = M`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-spacing-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-spacing-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`;
34
+ class G extends O {
35
35
  constructor() {
36
- super(...arguments), this.arcadeExpMap = /* @__PURE__ */ new Map(), this.cancelNode = E(), this.dialogNode = E(), this.layerFields = [], this.layerFieldsMap = /* @__PURE__ */ new Map(), this.messages = z({ blocking: !0 }), this._propWatcherTask = new O(this, {
36
+ super(...arguments), this.arcadeExpMap = /* @__PURE__ */ new Map(), this.cancelNode = I(), this.dialogNode = I(), this.layerFields = [], this.layerFieldsMap = /* @__PURE__ */ new Map(), this.messages = W({ blocking: !0 }), this.deleteInProgress = !1, this.fieldsAreDeletable = !1, this._propWatcherTask = new P(this, {
37
37
  task: async ([e, t]) => {
38
- if (!(D(e) && D(t)))
38
+ if (!(w(e) && w(t)))
39
39
  throw console.error("Required properties are missing."), new Error();
40
40
  this._propWatcherTask.autoRun = !1, await this.processProps();
41
41
  },
42
42
  args: () => [this.layer, this.fieldNames]
43
- }), this.deleteInProgress = !1, this.fieldsAreDeletable = !1, this.arcgisFieldsDeleted = F(), this.arcgisBeforeModalClose = F(), this.arcgisClose = F();
43
+ }), this.arcgisBeforeModalClose = v(), this.arcgisClose = v(), this.arcgisBeforeDelete = v(), this.arcgisFieldsDeleted = v();
44
44
  }
45
45
  static {
46
- this.properties = { currentLayerInfo: 16, deleteInProgress: 16, fieldsAreDeletable: 16, config: 0, fieldNames: 0, layer: 0, mapView: 0, options: 0 };
46
+ this.properties = { config: 0, fieldNames: 0, layer: 0, mapView: 0, options: 0 };
47
47
  }
48
48
  static {
49
- this.styles = _;
49
+ this.styles = V;
50
50
  }
51
51
  async processProps() {
52
52
  const { layer: e, mapView: t, fieldNames: s } = this;
@@ -59,7 +59,7 @@ class V extends M {
59
59
  if (!this.layerFields?.length || a)
60
60
  this.fieldsAreDeletable = !1;
61
61
  else {
62
- const o = await Promise.all(this.layerFields.map(async (r) => await B(t, e, r, this.options)));
62
+ const o = await Promise.all(this.layerFields.map(async (r) => await j(t, e, r, this.options)));
63
63
  if (this.fieldsAreDeletable = o.every((r) => r), !this.fieldsAreDeletable)
64
64
  return;
65
65
  }
@@ -67,7 +67,7 @@ class V extends M {
67
67
  this.fieldsAreDeletable = !1;
68
68
  return;
69
69
  }
70
- await j.getCredential(this.item.url.replace("rest/services", "rest/admin/services"));
70
+ await B.getCredential(this.item.url.replace("rest/services", "rest/admin/services"));
71
71
  }
72
72
  getFieldLabel(e) {
73
73
  const { layer: t, arcadeExpMap: s } = this;
@@ -75,12 +75,12 @@ class V extends M {
75
75
  return this.getFieldDisplayNameFromLayerFields(e);
76
76
  {
77
77
  const o = (t.popupTemplate ?? t.createPopupTemplate()).fieldInfos?.find((r) => r.fieldName === e);
78
- return o ? R(o, s) : this.getFieldDisplayNameFromLayerFields(e);
78
+ return o ? R(t, o, s) : this.getFieldDisplayNameFromLayerFields(e);
79
79
  }
80
80
  }
81
81
  getFieldDisplayNameFromLayerFields(e) {
82
- const t = this.layerFieldsMap.get(e);
83
- return t.alias ?? t.name;
82
+ const { layer: t } = this, s = this.layerFieldsMap.get(e);
83
+ return J(t) ? t.getFieldAlias(e) : s.alias ?? s.name;
84
84
  }
85
85
  async deleteFields() {
86
86
  const { layer: e, fieldNames: t } = this, s = `${e.url.replace("/rest/services", "/rest/admin/services")}/${e.layerId}/deleteFromDefinition`, a = {
@@ -161,7 +161,7 @@ class V extends M {
161
161
  responseType: "json"
162
162
  }).then(async (h) => {
163
163
  if (h.data?.success) {
164
- const u = `${w(this.portal)}content/items/${this.item.id}/data`;
164
+ const u = `${D(this.portal)}content/items/${this.item.id}/data`;
165
165
  if (this.options?.ignorePopupTemplate || s.forEach((i) => {
166
166
  t.popupTemplate?.fieldInfos && (t.popupTemplate.fieldInfos = t.popupTemplate.fieldInfos.filter((l) => l.fieldName !== i)), t.popupTemplate?.content?.forEach((l, d) => {
167
167
  l.type === "fields" && l.fieldInfos && ((t.popupTemplate?.content)[d].fieldInfos = (t.popupTemplate?.content)[d].fieldInfos?.filter((m) => m.fieldName !== i));
@@ -185,11 +185,11 @@ class V extends M {
185
185
  c?.attributeTableInfo?.attributeTableElements && (c.attributeTableInfo.attributeTableElements = c.attributeTableInfo.attributeTableElements.filter((f) => !(f.type === "field" && f.fieldName === g)), c.attributeTableInfo.orderByFields = c.attributeTableInfo.orderByFields.filter((f) => f.field !== g));
186
186
  }), c?.layerDefinition?.fieldConfigurations && (c.layerDefinition.fieldConfigurations = c.layerDefinition.fieldConfigurations.filter((g) => !s.includes(g.name))), c?.popupInfo) {
187
187
  s.forEach((b) => {
188
- c.popupInfo.fieldInfos = c.popupInfo.fieldInfos.filter((v) => v.fieldName !== b), c.popupInfo.popupElements?.forEach((v, I) => {
189
- v.type === "fields" && v.fieldInfos && (c.popupInfo.popupElements[I].fieldInfos = c.popupInfo.popupElements[I].fieldInfos.filter((C) => C.fieldName !== b));
188
+ c.popupInfo.fieldInfos = c.popupInfo.fieldInfos.filter((F) => F.fieldName !== b), c.popupInfo.popupElements?.forEach((F, E) => {
189
+ F.type === "fields" && F.fieldInfos && (c.popupInfo.popupElements[E].fieldInfos = c.popupInfo.popupElements[E].fieldInfos.filter((C) => C.fieldName !== b));
190
190
  });
191
191
  });
192
- const g = `${w(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`, f = {};
192
+ const g = `${D(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`, f = {};
193
193
  d ? (f.tables = m, l.layers && (f.layers = l.layers)) : (f.layers = m, l.tables && (f.tables = l.tables));
194
194
  const A = {
195
195
  f: "json",
@@ -247,7 +247,7 @@ class V extends M {
247
247
  const { fieldNames: e, layerFields: t, layerFieldsMap: s, arcadeExpMap: a, messages: o } = this;
248
248
  return p`<calcite-list .label=${o.fields}>${e.map((r) => {
249
249
  const h = t.find((u) => u.name === r);
250
- return p`<calcite-list-item .label=${this.getFieldLabel(r)} .description=${`{${r}}`} .value=${r} .disabled=${!h.editable}><div slot=actions-end class="field-icons">${W({ fieldType: J(r, s, a) })}</div></calcite-list-item>`;
250
+ return p`<calcite-list-item .label=${this.getFieldLabel(r)} .description=${`{${r}}`} .value=${r} .disabled=${!h.editable}><div slot=actions-end class="field-icons">${_({ fieldType: z(r, s, a) })}</div></calcite-list-item>`;
251
251
  })}</calcite-list>`;
252
252
  }
253
253
  renderCancelButton() {
@@ -258,11 +258,11 @@ class V extends M {
258
258
  const { messages: e, fieldNames: t } = this;
259
259
  return p`<calcite-button kind=danger slot=footer-end @click=${async (s) => {
260
260
  const { portal: a } = this;
261
- s.currentTarget.disabled = !0, this.cancelNode.value.disabled = !0, this.dialogNode.value.closeDisabled = !0, a.sourceJSON?.isReadOnly ? this.handleError(!0) : (this.deleteInProgress = !0, await this.deleteFields());
261
+ s.currentTarget.disabled = !0, this.cancelNode.value.disabled = !0, this.dialogNode.value.closeDisabled = !0, a.sourceJSON?.isReadOnly ? this.handleError(!0) : (this.deleteInProgress = !0, this.requestUpdate(), this.arcgisBeforeDelete.emit(), await this.deleteFields());
262
262
  }}>${t.length === 1 ? e.deleteField : e.deleteFieldsWithNumber.replace("${number}", `${t.length}`)}</calcite-button>`;
263
263
  }
264
264
  }
265
- k("arcgis-portal-field-delete", V);
265
+ k("arcgis-portal-field-delete", G);
266
266
  export {
267
- V as ArcgisPortalFieldDelete
267
+ G as ArcgisPortalFieldDelete
268
268
  };