@arcgis/common-components 5.1.0-next.98 → 5.2.0-next.0

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 (161) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/{3Y4H3CAQ.js → 232BH3SJ.js} +2 -2
  3. package/dist/cdn/{MNN3QF54.js → 2MN6S2HH.js} +2 -2
  4. package/dist/cdn/4BJYJUMR.js +2 -0
  5. package/dist/cdn/{DDJDHAHT.js → 5I5ODGDD.js} +2 -2
  6. package/dist/cdn/{WG5GA6QX.js → AGGCAE6P.js} +2 -2
  7. package/dist/cdn/BDF4ZLUF.js +2 -0
  8. package/dist/cdn/{MP6Z45SA.js → ECNI2A4K.js} +1 -1
  9. package/dist/cdn/{HYLC5GEB.js → F45Q3BRT.js} +1 -1
  10. package/dist/cdn/{JJZBCHU4.js → FZSF24HT.js} +2 -2
  11. package/dist/cdn/{GFUGR2W7.js → GEWXC2ZR.js} +2 -2
  12. package/dist/cdn/{TTV4Z2RR.js → HWEOBUAY.js} +2 -2
  13. package/dist/cdn/{YZGTCNEQ.js → MINFRX4Y.js} +2 -2
  14. package/dist/cdn/{EPX7DYFW.js → NKMDS2IH.js} +1 -1
  15. package/dist/cdn/{GSNPEBGQ.js → OOBX2C2L.js} +3 -3
  16. package/dist/cdn/ORSF6IOL.js +2 -0
  17. package/dist/cdn/QEW7H22O.js +2 -0
  18. package/dist/cdn/{H74W6KYI.js → S7B2PKI3.js} +2 -2
  19. package/dist/cdn/{WDOKXOEG.js → UGWLCTVM.js} +1 -1
  20. package/dist/cdn/{QEPJM6XG.js → UMIMGOKS.js} +2 -2
  21. package/dist/cdn/VUQJROFR.js +2 -0
  22. package/dist/cdn/{O3CBCQNL.js → WJ3TYWP2.js} +2 -2
  23. package/dist/cdn/X4NARYUV.js +2 -0
  24. package/dist/cdn/{TJNYRK5P.js → Y5Y7IXOV.js} +1 -1
  25. package/dist/cdn/{GPVWNUMW.js → YG4PY2H3.js} +2 -2
  26. package/dist/cdn/{JRF33N6C.js → YSXFXVP6.js} +2 -2
  27. package/dist/cdn/{P4CF7V4U.js → YVCGEEMG.js} +2 -2
  28. package/dist/cdn/{OQF4LYVE.js → YVWFGK4M.js} +2 -2
  29. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -0
  30. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -0
  31. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -0
  32. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -0
  33. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -0
  34. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -0
  35. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -0
  36. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -0
  37. package/dist/cdn/assets/{spatial-reference-picker → coordinate-system-picker}/t9n/messages.en.json +1 -1
  38. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -0
  39. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -0
  40. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -0
  41. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -0
  42. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -0
  43. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -0
  44. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -0
  45. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -0
  46. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -0
  47. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -0
  48. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -0
  49. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -0
  50. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -0
  51. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -0
  52. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -0
  53. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -0
  54. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -0
  55. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -0
  56. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -0
  57. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -0
  58. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -0
  59. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -0
  60. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -0
  61. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -0
  62. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -0
  63. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -0
  64. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -0
  65. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -0
  66. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -0
  67. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -0
  68. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -0
  69. package/dist/cdn/index.js +2 -2
  70. package/dist/cdn/main.css +1 -1
  71. package/dist/chunks/commonFunctions.js +1 -1
  72. package/dist/chunks/internal-types.js +1 -1
  73. package/dist/chunks/layer-utils.js +70 -0
  74. package/dist/chunks/locale.js +1 -1
  75. package/dist/chunks/resources.js +1 -1
  76. package/dist/chunks/runtime.js +2 -2
  77. package/dist/chunks/useT9n.js +1 -1
  78. package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
  79. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  80. package/dist/components/arcgis-color-input/customElement.js +1 -1
  81. package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/customElement.d.ts +6 -4
  82. package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/customElement.js +7 -6
  83. package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
  84. package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/customElement.d.ts +2 -2
  85. package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/customElement.js +9 -9
  86. package/dist/components/arcgis-field-info/customElement.js +170 -169
  87. package/dist/components/arcgis-field-info/utils/basic.d.ts +20 -16
  88. package/dist/components/arcgis-field-pick-list/customElement.js +92 -87
  89. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +16 -16
  90. package/dist/components/arcgis-histogram/customElement.js +1 -1
  91. package/dist/components/arcgis-label-input/customElement.js +1 -1
  92. package/dist/components/arcgis-picker-input/customElement.js +1 -1
  93. package/dist/components/arcgis-ramp-color/customElement.js +1 -1
  94. package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
  95. package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
  96. package/dist/components/arcgis-slider/customElement.js +3 -3
  97. package/dist/components/arcgis-slider-input/customElement.js +1 -1
  98. package/dist/components/arcgis-ticks/customElement.js +22 -22
  99. package/dist/components/arcgis-unique-values-list/customElement.js +74 -73
  100. package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +19 -12
  101. package/dist/docs/api.json +1 -1
  102. package/dist/docs/docs.json +1 -1
  103. package/dist/docs/vscode.html-custom-data.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/dist/index.d.ts +20 -20
  106. package/dist/index.js +1 -1
  107. package/dist/loader.js +5 -5
  108. package/dist/types/lumina.d.ts +12 -12
  109. package/dist/types/preact.d.ts +14 -14
  110. package/dist/types/react.d.ts +16 -16
  111. package/dist/types/stencil.d.ts +12 -12
  112. package/package.json +7 -7
  113. package/dist/cdn/43KGVFBF.js +0 -2
  114. package/dist/cdn/B43M633Q.js +0 -2
  115. package/dist/cdn/LVSH5I3Q.js +0 -2
  116. package/dist/cdn/MHJWVKG5.js +0 -2
  117. package/dist/cdn/O6ZASYX6.js +0 -2
  118. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ar.json +0 -1
  119. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bg.json +0 -1
  120. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bs.json +0 -1
  121. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ca.json +0 -1
  122. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.cs.json +0 -1
  123. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.da.json +0 -1
  124. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.de.json +0 -1
  125. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.el.json +0 -1
  126. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.es.json +0 -1
  127. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.et.json +0 -1
  128. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fi.json +0 -1
  129. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fr.json +0 -1
  130. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.he.json +0 -1
  131. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hr.json +0 -1
  132. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hu.json +0 -1
  133. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.id.json +0 -1
  134. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.it.json +0 -1
  135. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ja.json +0 -1
  136. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ko.json +0 -1
  137. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lt.json +0 -1
  138. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lv.json +0 -1
  139. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.nl.json +0 -1
  140. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.no.json +0 -1
  141. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pl.json +0 -1
  142. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-BR.json +0 -1
  143. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-PT.json +0 -1
  144. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ro.json +0 -1
  145. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ru.json +0 -1
  146. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sk.json +0 -1
  147. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sl.json +0 -1
  148. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sr.json +0 -1
  149. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sv.json +0 -1
  150. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.th.json +0 -1
  151. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.tr.json +0 -1
  152. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.uk.json +0 -1
  153. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.vi.json +0 -1
  154. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-CN.json +0 -1
  155. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-HK.json +0 -1
  156. package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-TW.json +0 -1
  157. package/dist/components/arcgis-spatial-reference-picker/index.js +0 -3
  158. /package/dist/cdn/assets/{spatial-reference-picker → coordinate-system-picker}/t9n/messages.en-US.json +0 -0
  159. /package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/index.d.ts +0 -0
  160. /package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/index.d.ts +0 -0
  161. /package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/index.js +0 -0
@@ -1,22 +1,26 @@
1
1
  import type SceneLayer from "@arcgis/core/layers/SceneLayer.js";
2
- import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
3
- import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
4
- import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
5
- import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
6
- import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
7
- import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
8
- import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
9
2
  import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
10
- import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
11
- import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
12
- import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
13
- import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
14
- import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
15
- import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
16
- import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
3
+ import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
4
+ import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.js";
17
5
  import type CSVLayer from "@arcgis/core/layers/CSVLayer.js";
6
+ import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
7
+ import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
8
+ import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
9
+ import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
10
+ import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
11
+ import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
12
+ import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
13
+ import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
14
+ import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
15
+ import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
16
+ import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
17
+ import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
18
+ import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
18
19
  import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
19
- import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.js";
20
20
 
21
- /** @internal */
21
+ /**
22
+ * All supported layer types
23
+ *
24
+ * @internal
25
+ */
22
26
  export type FieldInfoLayer = CatalogFootprintLayer | CatalogLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
@@ -1,48 +1,48 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as y } from "../../chunks/runtime.js";
3
- import { keyed as F } from "lit/directives/keyed.js";
4
- import { LitElement as w, createEvent as n, renderElement as $, nothing as d, safeStyleMap as g, safeClassMap as S } from "@arcgis/lumina";
5
- import { createRef as r, ref as h } from "lit/directives/ref.js";
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as F } from "../../chunks/runtime.js";
3
+ import { keyed as y } from "lit/directives/keyed.js";
4
+ import { LitElement as w, createEvent as r, renderElement as $, nothing as h, safeStyleMap as u, safeClassMap as v } from "@arcgis/lumina";
5
+ import { createRef as a, ref as c } from "lit/directives/ref.js";
6
6
  import { html as l, css as C } from "lit";
7
- import { Task as v } from "@lit/task";
8
- import { log as u, composeMissingPropertyMessage as k } from "@arcgis/toolkit/log";
9
- import { F as f } from "../../chunks/internal-types.js";
10
- import { i as B } from "../../chunks/commonFunctions.js";
11
- import { u as x } from "../../chunks/useT9n.js";
12
- const o = /* @__PURE__ */ new Map();
13
- o.set("oid", "key");
14
- o.set("guid", "key");
15
- o.set("global-id", "key");
16
- o.set("blob", "binary");
17
- o.set("integer", "integer");
18
- o.set("small-integer", "integer");
19
- o.set("big-integer", "integer");
20
- o.set("single", "number");
21
- o.set("double", "number");
22
- o.set("long", "number");
23
- o.set("number", "number");
24
- o.set("date", "date-time");
25
- o.set("date-only", "calendar");
26
- o.set("time-only", "clock");
27
- o.set("timestamp-offset", "time-zone");
28
- o.set("string", "string");
29
- const b = ({ fieldType: p }) => l`<calcite-icon scale=s .icon=${o.get(p)}></calcite-icon>`, L = C`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`;
30
- class E extends w {
7
+ import { Task as k } from "@lit/task";
8
+ import { log as f, composeMissingPropertyMessage as S } from "@arcgis/toolkit/log";
9
+ import { F as g } from "../../chunks/internal-types.js";
10
+ import { i as x } from "../../chunks/commonFunctions.js";
11
+ import { u as b } from "../../chunks/useT9n.js";
12
+ const n = /* @__PURE__ */ new Map();
13
+ n.set("oid", "key");
14
+ n.set("guid", "key");
15
+ n.set("global-id", "key");
16
+ n.set("blob", "binary");
17
+ n.set("integer", "integer");
18
+ n.set("small-integer", "integer");
19
+ n.set("big-integer", "integer");
20
+ n.set("single", "number");
21
+ n.set("double", "number");
22
+ n.set("long", "number");
23
+ n.set("number", "number");
24
+ n.set("date", "date-time");
25
+ n.set("date-only", "calendar");
26
+ n.set("time-only", "clock");
27
+ n.set("timestamp-offset", "time-zone");
28
+ n.set("string", "string");
29
+ const B = ({ fieldType: m }) => l`<calcite-icon scale=s .icon=${n.get(m)}></calcite-icon>`, E = C`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`;
30
+ class L extends w {
31
31
  constructor() {
32
- super(...arguments), this._messages = x({ blocking: !0 }), this.popoverNode = r(), this.listNode = r(), this.flowElement = r(), this.panelElement = r(), this.dropdownNode = r(), this.fieldInfoFlowItemEl = r(), this.allLists = [], this.filterText = "", this.panelCutOffHeight = 0, this._propWatcherTask = new v(this, {
32
+ super(...arguments), this._messages = b({ blocking: !0 }), this.popoverNode = a(), this.listNode = a(), this.flowElement = a(), this.panelElement = a(), this.dropdownNode = a(), this.fieldInfoFlowItemEl = a(), this.allLists = [], this.filterText = "", this.panelCutOffHeight = 0, this._propWatcherTask = new k(this, {
33
33
  task: async ([e]) => {
34
- if (!this.listOnly && !B(e?.refElement))
35
- throw u("error", this, k("popoverProps")), new Error();
34
+ if (!this.listOnly && !x(e?.refElement))
35
+ throw f("error", this, S("popoverProps")), new Error();
36
36
  this._propWatcherTask.autoRun = !1;
37
37
  },
38
38
  args: () => [this.popoverProps]
39
- }), this.fields = [], this.selectedFields = [], this.listOnly = !1, this.showFieldInfo = !1, this.showFieldTypeIcon = !1, this.showFieldName = !1, this.showDescription = !1, this.showSelectionAll = !1, this.showCancel = !0, this.hideCancel = !1, this.showSort = !0, this.hideSort = !1, this.showFilterLength = 10, this.multiple = !1, this.sortBy = "default", this.groupFieldsAndExpressions = !1, this.arcgisChange = n(), this.arcgisClose = n(), this.arcgisFieldPickListChange = n(), this.arcgisFieldPickListDismissed = n(), this.arcgisFieldPickListSortByChange = n(), this.arcgisSortByChange = n(), this.arcgisEditField = n(), this.arcgisDeleteField = n();
39
+ }), this.fields = [], this.selectedFields = [], this.listOnly = !1, this.showFieldInfo = !1, this.showFieldTypeIcon = !1, this.showFieldName = !1, this.showDescription = !1, this.showSelectionAll = !1, this.showCancel = !0, this.hideCancel = !1, this.showSort = !0, this.hideSort = !1, this.showFilterLength = 10, this.multiple = !1, this.sortBy = "default", this.groupFieldsAndExpressions = !1, this.arcgisChange = r(), this.arcgisClose = r(), this.arcgisFieldPickListChange = r(), this.arcgisFieldPickListDismissed = r(), this.arcgisFieldPickListSortByChange = r(), this.arcgisSortByChange = r(), this.arcgisEditField = r(), this.arcgisDeleteField = r();
40
40
  }
41
41
  static {
42
42
  this.properties = { lastSortBy: 16, filterFields: 16, mapView: 0, view: 0, layer: 0, fields: 0, selectedFields: 0, listOnly: 5, popoverProps: 0, showFieldInfo: 5, showFieldTypeIcon: 5, showFieldName: 5, showDescription: 5, showSelectionAll: 5, showCancel: 5, hideCancel: 5, showSort: 5, hideSort: 5, showFilterLength: 9, multiple: 5, heading: 1, okBtnText: 1, filterPlaceholderText: 1, filterNoResultsText: 1, sortBy: 1, groupFieldsAndExpressions: 5, fieldsGroupHeading: 1, expressionsGroupHeading: 1, customExpressionCheck: 0 };
43
43
  }
44
44
  static {
45
- this.styles = L;
45
+ this.styles = E;
46
46
  }
47
47
  async reposition() {
48
48
  await this.popoverNode.value?.reposition();
@@ -56,7 +56,7 @@ class E extends w {
56
56
  this.panelElement.value && (this.panelElement.value.disabled = e);
57
57
  }
58
58
  load() {
59
- !this.view && this.mapView && (this.view = this.mapView), !this.showCancel && !this.hideCancel && (this.hideCancel = !0), !this.showSort && !this.hideSort && (this.hideSort = !0), this.listOnly && this.showFieldInfo && (this.showFieldInfo = !1, u("info", this, "showFieldInfo is not supported if listOnly is true.")), !this.multiple && this.selectedFields.length > 1 && (this.selectedFields = [this.selectedFields[0]]), this.lastSortBy = this.sortBy ?? this.lastSortBy, this.updateGroupedLists();
59
+ !this.view && this.mapView && (this.view = this.mapView), !this.showCancel && !this.hideCancel && (this.hideCancel = !0), !this.showSort && !this.hideSort && (this.hideSort = !0), this.listOnly && this.showFieldInfo && (this.showFieldInfo = !1, f("info", this, "showFieldInfo is not supported if listOnly is true.")), !this.multiple && this.selectedFields.length > 1 && (this.selectedFields = [this.selectedFields[0]]), this.lastSortBy = this.sortBy ?? this.lastSortBy, this.updateGroupedLists();
60
60
  }
61
61
  willUpdate(e) {
62
62
  (e.has("fields") || e.has("lastSortBy") || e.has("customExpressionCheck")) && this.updateGroupedLists();
@@ -88,11 +88,11 @@ class E extends w {
88
88
  }
89
89
  getSortedList(e) {
90
90
  let t = [...e];
91
- const s = t.filter((i) => i.type === "none");
92
- return t = t.filter((i) => i.type !== "none"), this.lastSortBy === "display" ? t.sort((i, a) => i.alias.localeCompare(a.alias)) : this.lastSortBy === "field" ? t.sort((i, a) => i.name.localeCompare(a.name)) : this.lastSortBy === "type" && t.sort((i, a) => i.type.localeCompare(a.type)), t = t.concat(s), t;
91
+ const i = t.filter((s) => s.type === "none");
92
+ return t = t.filter((s) => s.type !== "none"), this.lastSortBy === "display" ? t.sort((s, o) => s.alias.localeCompare(o.alias)) : this.lastSortBy === "field" ? t.sort((s, o) => s.name.localeCompare(o.name)) : this.lastSortBy === "type" && t.sort((s, o) => s.type.localeCompare(o.type)), t = t.concat(i), t;
93
93
  }
94
94
  isExpression(e) {
95
- return this.customExpressionCheck ? this.customExpressionCheck(e) : e.name.includes(f.expression);
95
+ return this.customExpressionCheck ? this.customExpressionCheck(e) : e.name.includes(g.expression);
96
96
  }
97
97
  canDeselectAll() {
98
98
  const e = this.getAllFields();
@@ -103,7 +103,7 @@ class E extends w {
103
103
  }
104
104
  showFieldInfoCheck(e) {
105
105
  const { layer: t } = this;
106
- return this.showFieldInfo ? !(!t || this.isExpression(e) || e.name.includes(f.relationship) || e.type === "none") : !1;
106
+ return this.showFieldInfo ? !(!t || this.isExpression(e) || e.name.includes(g.relationship) || e.type === "none") : !1;
107
107
  }
108
108
  updateGroupedLists() {
109
109
  if (!this.fields)
@@ -132,12 +132,12 @@ class E extends w {
132
132
  ];
133
133
  }
134
134
  addFieldInfoFlowItem(e, t) {
135
- const s = this.flowElement.value, i = $(l`<calcite-flow-item selected .heading=${e.alias ?? e.name} .description=${e.name} class="panel" style=${g(this.panelCutOffHeight > 0 ? `max-height: ${this.panelCutOffHeight}px` : "max-height: 50vh")} @calciteFlowItemBack=${(a) => {
136
- a.currentTarget.remove(), this.fieldInfoFlowItemEl.value.selected = !1, this.panelElement.value.selected = !0, setTimeout(() => {
135
+ const i = this.flowElement.value, s = $(l`<calcite-flow-item selected .heading=${e.alias ?? e.name} .description=${e.name} class="panel" style=${u(this.panelCutOffHeight > 0 ? `max-height: ${this.panelCutOffHeight}px` : "max-height: 50vh")} @calciteFlowItemBack=${(o) => {
136
+ o.currentTarget.remove(), this.fieldInfoFlowItemEl.value.selected = !1, this.panelElement.value.selected = !0, setTimeout(() => {
137
137
  t.setFocus();
138
138
  }, 300);
139
- }} ${h(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang ?? d} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);
140
- s.appendChild(i), this.panelElement.value.selected = !1, this.fieldInfoFlowItemEl?.value.setFocus();
139
+ }} ${c(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang ?? h} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);
140
+ i.appendChild(s), this.panelElement.value.selected = !1, this.fieldInfoFlowItemEl?.value.setFocus();
141
141
  }
142
142
  usingCustomGroups() {
143
143
  return !!this.fields.length && "fields" in this.fields[0];
@@ -145,6 +145,19 @@ class E extends w {
145
145
  getAllFields() {
146
146
  return this.allLists.map((e) => e.fields).flat();
147
147
  }
148
+ setSortBy(e) {
149
+ this.lastSortBy = e, this.updateGroupedLists(), this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy), this.reorderSelectedFieldsByCurrentListOrder() && (this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields }));
150
+ }
151
+ reorderSelectedFieldsByCurrentListOrder() {
152
+ if (!this.selectedFields.length)
153
+ return !1;
154
+ const e = this.getAllFields().map((o) => o.name), t = new Set(this.selectedFields), i = e.filter((o) => t.has(o)), s = (
155
+ // adding/removing fields
156
+ i.length !== this.selectedFields.length || // reordering fields
157
+ i.some((o, p) => o !== this.selectedFields[p])
158
+ );
159
+ return s && (this.selectedFields = [...i]), s;
160
+ }
148
161
  render() {
149
162
  return this._propWatcherTask.render({
150
163
  complete: () => {
@@ -153,48 +166,40 @@ class E extends w {
153
166
  const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.popoverProps;
154
167
  return this.el.classList.add("js-app-flyout"), l`<calcite-popover .placement=${t.placement ?? "leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance ?? -Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding ?? 0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading ?? (this.multiple ? this._messages.headerSelect : this._messages.header) ?? ""} @calcitePopoverClose=${() => {
155
168
  this.arcgisClose.emit(), this.arcgisFieldPickListDismissed.emit();
156
- }} ${h(this.popoverNode)}><calcite-flow style=${g({
169
+ }} ${c(this.popoverNode)}><calcite-flow style=${u({
157
170
  width: `${t.popoverWidth ?? t.refElement.getBoundingClientRect().width}px`,
158
171
  ...t.maxHeight && { maxHeight: t.maxHeight }
159
- })} ${h(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${() => {
172
+ })} ${c(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${() => {
160
173
  this.arcgisClose.emit(), this.arcgisFieldPickListDismissed.emit();
161
- }} ${h(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple || !this.hideCancel) && l`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple && !this.hideCancel ? l`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>` : l`${this.renderAddButton()}${this.renderCancelButton()}`}</div>` || ""}</calcite-flow-item></calcite-flow></calcite-popover>`;
174
+ }} ${c(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple || !this.hideCancel) && l`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple && !this.hideCancel ? l`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>` : l`${this.renderAddButton()}${this.renderCancelButton()}`}</div>` || ""}</calcite-flow-item></calcite-flow></calcite-popover>`;
162
175
  },
163
176
  error: () => ""
164
177
  });
165
178
  }
166
179
  renderList() {
167
- const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.getAllFields(), s = t.length >= this.showFilterLength;
168
- return l`${t.length ? l`<calcite-list .label=${e} .selectionMode=${this.multiple ? "multiple" : "single"} class=${S(this.listOnly ? "" : "content")} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholderText ?? this._messages.filter} @calciteListChange=${() => {
169
- const i = this.listNode.value.selectedItems.map((c) => c.value), a = this.selectedFields.filter((c) => i.includes(c)), m = i.filter((c) => !this.selectedFields.includes(c));
170
- this.selectedFields = [.../* @__PURE__ */ new Set([...a, ...m])], this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields }), this.multiple || (this.arcgisClose.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListDismissed.emit({ selectedFields: this.selectedFields }));
171
- }} @calciteListFilter=${(i) => {
172
- i.stopPropagation(), this.filterFields = this.listNode.value.filteredItems?.map((a) => a.value), this.filterText = this.listNode.value.filterText;
173
- }} ${h(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple && this.showSelectionAll && (!s || !this.filterText || this.filterFields?.length) ? this.renderSelectionButton() : null}${this.renderListItems()}</calcite-list>` : l`<slot name=no-fields></slot>`}${this.filterFields && !this.filterFields.length && this.listNode.value && this.filterNoResultsText?.length !== 0 ? l`<div class="no-match-text">${this.filterNoResultsText ?? this._messages.noMatches}</div>` : null}`;
180
+ const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.getAllFields(), i = t.length >= this.showFilterLength;
181
+ return l`${t.length ? l`<calcite-list .label=${e} .selectionMode=${this.multiple ? "multiple" : "single"} class=${v(this.listOnly ? "" : "content")} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholderText ?? this._messages.filter} @calciteListChange=${() => {
182
+ const s = this.listNode.value.selectedItems.map((d) => d.value), o = this.selectedFields.filter((d) => s.includes(d)), p = s.filter((d) => !this.selectedFields.includes(d));
183
+ this.selectedFields = [.../* @__PURE__ */ new Set([...o, ...p])], this.reorderSelectedFieldsByCurrentListOrder(), this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields }), this.multiple || (this.arcgisClose.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListDismissed.emit({ selectedFields: this.selectedFields }));
184
+ }} @calciteListFilter=${(s) => {
185
+ s.stopPropagation(), this.filterFields = this.listNode.value.filteredItems?.map((o) => o.value), this.filterText = this.listNode.value.filterText;
186
+ }} ${c(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple && this.showSelectionAll && (!i || !this.filterText || this.filterFields?.length) ? this.renderSelectionButton() : null}${this.renderListItems()}</calcite-list>` : l`<slot name=no-fields></slot>`}${this.filterFields && !this.filterFields.length && this.listNode.value && this.filterNoResultsText?.length !== 0 ? l`<div class="no-match-text">${this.filterNoResultsText ?? this._messages.noMatches}</div>` : null}`;
174
187
  }
175
188
  renderSortButton() {
176
189
  const e = this.getAllFields();
177
190
  if (!(e.length >= this.showFilterLength && !this.hideSort))
178
191
  return "";
179
- const s = e.every((i) => !!i.type);
192
+ const i = e.every((s) => !!s.type);
180
193
  return l`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed .disabled=${this.filterFields ? this.filterFields.length < 4 : !1} @calciteDropdownOpen=${() => {
181
194
  this.observer?.disconnect(), this.popoverNode.value && this.observer?.observe(this.popoverNode.value, { attributes: !0 });
182
- }} @calciteDropdownClose=${() => this.observer?.disconnect()} ${h(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort ?? ""} title=${this._messages.sort ?? d}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy === "default"} @click=${() => {
183
- this.lastSortBy = "default", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
184
- }} @keydown=${(i) => {
185
- i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "default", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
186
- }}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy === "display"} @click=${() => {
187
- this.lastSortBy = "display", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
188
- }} @keydown=${(i) => {
189
- i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "display", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
190
- }}>${this._messages.displayName}</calcite-dropdown-item>${s && l`<calcite-dropdown-item .selected=${this.lastSortBy === "type"} @click=${() => {
191
- this.lastSortBy = "type", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
192
- }} @keydown=${(i) => {
193
- i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "type", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
194
- }}>${this._messages.type}</calcite-dropdown-item>` || ""}<calcite-dropdown-item .selected=${this.lastSortBy === "field"} @click=${() => {
195
- this.lastSortBy = "field", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
196
- }} @keydown=${(i) => {
197
- i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "field", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
195
+ }} @calciteDropdownClose=${() => this.observer?.disconnect()} ${c(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort ?? ""} title=${this._messages.sort ?? h}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy === "default"} @click=${() => this.setSortBy("default")} @keydown=${(s) => {
196
+ s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("default");
197
+ }}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy === "display"} @click=${() => this.setSortBy("display")} @keydown=${(s) => {
198
+ s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("display");
199
+ }}>${this._messages.displayName}</calcite-dropdown-item>${i && l`<calcite-dropdown-item .selected=${this.lastSortBy === "type"} @click=${() => this.setSortBy("type")} @keydown=${(s) => {
200
+ s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("type");
201
+ }}>${this._messages.type}</calcite-dropdown-item>` || ""}<calcite-dropdown-item .selected=${this.lastSortBy === "field"} @click=${() => this.setSortBy("field")} @keydown=${(s) => {
202
+ s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("field");
198
203
  }}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
199
204
  }
200
205
  renderSelectionButton() {
@@ -205,18 +210,18 @@ class E extends w {
205
210
  this.selectedFields = [.../* @__PURE__ */ new Set([...this.selectedFields, ...this.filterFields])];
206
211
  else {
207
212
  const t = this.getAllFields();
208
- this.selectedFields = t.map((s) => s.name);
213
+ this.selectedFields = t.map((i) => i.name);
209
214
  }
210
- this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields });
215
+ this.reorderSelectedFieldsByCurrentListOrder(), this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields });
211
216
  }}>${this.canDeselectAll() ? this._messages.deselectAll : this._messages.selectAll}</calcite-button></div>`;
212
217
  }
213
218
  renderListItems() {
214
219
  const e = this.allLists.filter((t) => !!t.fields.length);
215
- return e.length === 1 && !e[0].title ? e[0].fields.map((t) => this.renderCalciteListItem(t)) : e.map((s) => l`<calcite-list-item-group .heading=${s.title}>${s.fields.map((i) => this.renderCalciteListItem(i))}</calcite-list-item-group>`);
220
+ return e.length === 1 && !e[0].title ? e[0].fields.map((t) => this.renderCalciteListItem(t)) : e.map((i) => l`<calcite-list-item-group .heading=${i.title}>${i.fields.map((s) => this.renderCalciteListItem(s))}</calcite-list-item-group>`);
216
221
  }
217
222
  renderCalciteListItem(e) {
218
- const t = this.showFieldInfoCheck(e), s = this.showFieldTypeIcon && !!e.type;
219
- return F(e.name, l`<calcite-list-item .label=${e.alias || e.name} .description=${(() => {
223
+ const t = this.showFieldInfoCheck(e), i = this.showFieldTypeIcon && !!e.type;
224
+ return y(e.name, l`<calcite-list-item .label=${e.alias || e.name} .description=${(() => {
220
225
  if (this.showFieldName && e.hideFieldName !== !0)
221
226
  return `{${e.name}}`;
222
227
  if (this.showDescription && e.hideDescription !== !0 && e.description)
@@ -224,26 +229,26 @@ class E extends w {
224
229
  })()} .value=${e.name} .selected=${!this.multiple && e.name === this.selectedFields[0] || this.multiple && this.selectedFields.includes(e.name)} .metadata=${{
225
230
  label: e.alias,
226
231
  fieldName: e.name
227
- }}>${s && l`<div slot=actions-end class="field-icons">${b({ fieldType: e.type })}</div>` || ""}${this.renderInfoAction(e, t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`);
232
+ }}>${i && l`<div slot=actions-end class="field-icons">${B({ fieldType: e.type })}</div>` || ""}${this.renderInfoAction(e, t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`);
228
233
  }
229
234
  renderInfoAction(e, t) {
230
- const { _messages: s } = this;
231
- return t ? l`<calcite-action slot=actions-end .text=${s.info} title=${s.info ?? d} scale=s icon=information @click=${(i) => {
232
- i.stopPropagation();
233
- const a = i.currentTarget;
234
- this.addFieldInfoFlowItem(e, a);
235
+ const { _messages: i } = this;
236
+ return t ? l`<calcite-action slot=actions-end .text=${i.info} title=${i.info ?? h} scale=s icon=information @click=${(s) => {
237
+ s.stopPropagation();
238
+ const o = s.currentTarget;
239
+ this.addFieldInfoFlowItem(e, o);
235
240
  }}></calcite-action>` : "";
236
241
  }
237
242
  renderEditAction(e) {
238
243
  const { _messages: t } = this;
239
- return e.showEditAction ? l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit ?? d} scale=s icon=pencil @click=${(s) => {
240
- s.stopPropagation(), this.arcgisEditField.emit({ fieldName: e.name });
244
+ return e.showEditAction ? l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit ?? h} scale=s icon=pencil @click=${(i) => {
245
+ i.stopPropagation(), this.arcgisEditField.emit({ fieldName: e.name });
241
246
  }}></calcite-action>` : "";
242
247
  }
243
248
  renderDeleteAction(e) {
244
249
  const { _messages: t } = this;
245
- return e.showDeleteAction ? l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete ?? d} scale=s icon=trash @click=${(s) => {
246
- s.stopPropagation(), this.arcgisDeleteField.emit({ fieldName: e.name });
250
+ return e.showDeleteAction ? l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete ?? h} scale=s icon=trash @click=${(i) => {
251
+ i.stopPropagation(), this.arcgisDeleteField.emit({ fieldName: e.name });
247
252
  }}></calcite-action>` : "";
248
253
  }
249
254
  renderAddButton() {
@@ -257,7 +262,7 @@ class E extends w {
257
262
  }}>${this._messages.cancel}</calcite-button>`;
258
263
  }
259
264
  }
260
- y("arcgis-field-pick-list", E);
265
+ F("arcgis-field-pick-list", L);
261
266
  export {
262
- E as ArcgisFieldPickList
267
+ L as ArcgisFieldPickList
263
268
  };
@@ -1,22 +1,22 @@
1
- import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
2
- import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
3
- import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
4
1
  import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
5
- import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
6
2
  import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
7
- import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
8
- import type SceneLayer from "@arcgis/core/layers/SceneLayer.js";
9
- import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
10
- import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
11
- import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
12
- import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
13
- import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
14
- import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
15
- import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
16
- import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
17
- import type CSVLayer from "@arcgis/core/layers/CSVLayer.js";
18
- import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
19
3
  import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.js";
4
+ import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
5
+ import type CSVLayer from "@arcgis/core/layers/CSVLayer.js";
6
+ import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
7
+ import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
8
+ import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
9
+ import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
10
+ import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
11
+ import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
12
+ import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
13
+ import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
14
+ import type SceneLayer from "@arcgis/core/layers/SceneLayer.js";
15
+ import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
16
+ import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
17
+ import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
18
+ import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
19
+ import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
20
20
 
21
21
  /**
22
22
  * All supported layer types
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as M } from "../../chunks/runtime.js";
3
3
  import { u as k } from "../../chunks/useT9n.js";
4
4
  import { substitute as E } from "@arcgis/core/intl.js";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as o } from "../../chunks/runtime.js";
3
3
  import { formatNumber as u } from "@arcgis/core/intl.js";
4
4
  import { LitElement as c, createEvent as h, safeClassMap as d } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as n } from "../../chunks/runtime.js";
3
3
  import { css as l, html as o } from "lit";
4
4
  import { LitElement as a, createEvent as i, safeStyleMap as r } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as f } from "../../chunks/runtime.js";
3
3
  import w from "@arcgis/core/Color.js";
4
4
  import { LitElement as x, nothing as u, safeClassMap as C } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as l } from "../../chunks/runtime.js";
3
3
  import { LitElement as m } from "@arcgis/lumina";
4
4
  import { css as p, html as c } from "lit";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c } from "../../chunks/runtime.js";
3
3
  import t from "@arcgis/core/Color.js";
4
4
  import { LitElement as e } from "@arcgis/lumina";
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as Q } from "../../chunks/runtime.js";
3
3
  import { keyed as Z } from "lit/directives/keyed.js";
4
4
  import { LitElement as ee, createEvent as $, safeClassMap as P, safeStyleMap as L, nothing as E } from "@arcgis/lumina";
@@ -135,7 +135,7 @@ let w = class extends oe {
135
135
  return;
136
136
  }
137
137
  const e = this._get("values");
138
- if (n = n?.map((a) => T(x(a, this.precision), this.min, this.max)).sort((a, i) => a - i), e && n && e.length === n.length && e.every((a, i) => a === n[i]))
138
+ if (n = n?.map((a) => T(x(a, this.precision), this.min, this.max)).sort((a, i) => a - i), e?.length === n?.length && e.every((a, i) => a === n[i]))
139
139
  return;
140
140
  const t = new Map(n?.map((a) => [K(), a]));
141
141
  this._entries = t, this._set("values", n);
@@ -873,7 +873,7 @@ class Pe extends ee {
873
873
  }
874
874
  _renderThumb(e, t) {
875
875
  const { valueLabelsDisplay: a } = this, i = this._disabledOrInvalid, r = this._activePart === e || this._activePart === "range", o = this._activePart === "range" || this._activePart === e, s = a === "always" || a === "auto" && o, l = this.isHorizontal, c = l ? "horizontal" : "vertical", d = `label-${e}`, h = l ? "center" : this.valueLabelsPlacement === "start" ? "end" : "start";
876
- return Z(e, y`<div id=${e ?? E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(a ? d : void 0) ?? E} .ariaOrientation=${c} .ariaValueMin=${this._minFormatter(this.min)} .ariaValueMax=${this._maxFormatter(this.max)} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${P({
876
+ return Z(e, y`<div id=${e ?? E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(a ? d : void 0) ?? E} .ariaOrientation=${c} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${P({
877
877
  thumb: !0,
878
878
  active: r
879
879
  })} data-entry=${e ?? E} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${L({
@@ -1,4 +1,4 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as d } from "../../chunks/runtime.js";
3
3
  import { css as m, html as o } from "lit";
4
4
  import { LitElement as b, createEvent as p } from "@arcgis/lumina";
@@ -1,7 +1,7 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as $ } from "../../chunks/runtime.js";
3
- import { css as M, html as c } from "lit";
4
- import { LitElement as _, createEvent as C, safeClassMap as h, nothing as v, safeStyleMap as u } from "@arcgis/lumina";
3
+ import { css as M, html as o } from "lit";
4
+ import { LitElement as _, createEvent as C, safeClassMap as h, nothing as v, safeStyleMap as f } from "@arcgis/lumina";
5
5
  import { formatNumber as z } from "@arcgis/core/intl.js";
6
6
  const n = {
7
7
  container: "container",
@@ -12,7 +12,7 @@ const n = {
12
12
  tickMax: "tick--max",
13
13
  tickLabel: "tick-label",
14
14
  baseline: "baseline"
15
- }, A = M`:host{display:flex;--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-gap: 1em;--arcgis-ticks-font-size: var(--calcite-font-size--2)}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--calcite-font-weight-medium);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:.125rem;height:var(--arcgis-ticks-tick-length);transform:translate(-50%)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:.125rem;transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label:hover{text-decoration:underline}}`;
15
+ }, A = M`:host{display:flex;--arcgis-ticks-font-size: var(--calcite-font-size--2);--arcgis-ticks-font-weight: var(--calcite-font-weight-medium);--arcgis-ticks-gap: 1em;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-transform: translateX(-50%);--arcgis-ticks-tick-width: .125rem}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--arcgis-ticks-font-weight);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:var(--arcgis-ticks-tick-width);height:var(--arcgis-ticks-tick-length);transform:var(--arcgis-ticks-tick-transform)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:var(--arcgis-ticks-tick-width);transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label:hover{text-decoration:underline}}`;
16
16
  class F extends _ {
17
17
  constructor() {
18
18
  super(...arguments), this._formatValue = (e) => z(e, this._formatOptions), this._formatOptions = {
@@ -62,23 +62,23 @@ class F extends _ {
62
62
  return i ?? this._formatValue(e);
63
63
  }
64
64
  render() {
65
- return c`<div class=${h(n.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`;
65
+ return o`<div class=${h(n.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`;
66
66
  }
67
67
  _renderContent() {
68
- const { interpolationExponent: e, max: t, min: i, mode: r, values: a, layout: o, mirrored: l, showLabels: x } = this, g = [], b = [];
69
- for (const [d, f] of L(r, i, t, e, a)) {
70
- const p = { [o === "horizontal" ? l ? "right" : "left" : l ? "top" : "bottom"]: `${d}%` }, w = {
68
+ const { interpolationExponent: e, max: t, min: i, mode: r, values: a, layout: c, mirrored: l, showLabels: w } = this, u = [], b = [];
69
+ for (const [k, d] of L(r, i, t, e, a)) {
70
+ const p = { [c === "horizontal" ? l ? "right" : "left" : l ? "top" : "bottom"]: `${k}%` }, x = {
71
71
  [n.tick]: !0,
72
- [n.tickMin]: d === 0,
73
- [n.tickMax]: d === 100
72
+ [n.tickMin]: k === 0,
73
+ [n.tickMax]: k === 100
74
74
  };
75
- g.push(c`<div class=${h(w)} style=${u(p)} data-value=${f ?? v}></div>`), x && b.push(c`<div class=${h(n.tickLabel)} style=${u(p)} data-value=${f ?? v}>${this._internalLabelFormatter(f)}</div>`);
75
+ u.push(o`<div class=${h(x)} style=${f(p)} data-value=${d ?? v}></div>`), w && b.push(o`<div class=${h(n.tickLabel)} style=${f(p)} data-value=${d ?? v}>${this._internalLabelFormatter(d)}</div>`);
76
76
  }
77
- return [c`<div class=${h(n.labelsContainer)}>${b}</div>`, c`<div class=${h(n.ticksContainer)}>${g}</div>`];
77
+ return [o`<div class=${h(n.labelsContainer)}>${b}</div>`, o`<div class=${h(n.ticksContainer)}>${u}</div>`];
78
78
  }
79
79
  _renderBaseline() {
80
80
  const { showBaseline: e, layout: t } = this;
81
- return e && c`<div class=${h(n.baseline)} style=${u({
81
+ return e && o`<div class=${h(n.baseline)} style=${f({
82
82
  [t === "horizontal" ? "width" : "height"]: "100%",
83
83
  [t === "horizontal" ? "height" : "width"]: "0.125rem"
84
84
  })}></div>` || "";
@@ -88,9 +88,9 @@ function* L(s, e, t, i, r) {
88
88
  switch (s) {
89
89
  case "value": {
90
90
  const a = Array.isArray(r) ? r : [r];
91
- for (const o of a) {
92
- const l = P(e, t, o, i) * 100;
93
- l >= 0 && l <= 100 && (yield [l, o]);
91
+ for (const c of a) {
92
+ const l = P(e, t, c, i) * 100;
93
+ l >= 0 && l <= 100 && (yield [l, c]);
94
94
  }
95
95
  break;
96
96
  }
@@ -108,15 +108,15 @@ function* L(s, e, t, i, r) {
108
108
  if (a <= 1)
109
109
  yield [50, m(e, t, 0.5, i)];
110
110
  else
111
- for (let o = 0; o < a; o++) {
112
- const l = o * 100 / (a - 1);
111
+ for (let c = 0; c < a; c++) {
112
+ const l = c * 100 / (a - 1);
113
113
  yield [l, m(e, t, l / 100, i)];
114
114
  }
115
115
  break;
116
116
  }
117
117
  }
118
118
  }
119
- function k(s, e, t) {
119
+ function g(s, e, t) {
120
120
  return t < s ? s : t > e ? e : t;
121
121
  }
122
122
  function y(s, e, t) {
@@ -124,13 +124,13 @@ function y(s, e, t) {
124
124
  }
125
125
  function P(s, e, t, i = 0) {
126
126
  let r = (t - s) / (e - s);
127
- if (r = k(0, 1, r), Math.abs(i) < 1e-9)
127
+ if (r = g(0, 1, r), Math.abs(i) < 1e-9)
128
128
  return r;
129
129
  const a = 1 + Math.expm1(i) * r;
130
- return r = Math.log(a) / i, k(0, 1, r);
130
+ return r = Math.log(a) / i, g(0, 1, r);
131
131
  }
132
132
  function m(s, e, t, i = 0) {
133
- if (t = k(0, 1, t), Math.abs(i) < 1e-9)
133
+ if (t = g(0, 1, t), Math.abs(i) < 1e-9)
134
134
  return y(s, e, t);
135
135
  const r = Math.expm1(i * t) / Math.expm1(i);
136
136
  return y(s, e, r);