@arcgis/common-components 6.0.0-next.4 → 6.0.0-next.41

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 (144) hide show
  1. package/dist/cdn/{B33S3YBM.js → 24FE5GMT.js} +1 -1
  2. package/dist/cdn/2XTXXTEZ.js +2 -0
  3. package/dist/cdn/3QTMLOOM.js +2 -0
  4. package/dist/cdn/4X2SOHYB.js +2 -0
  5. package/dist/cdn/{OTWADB4M.js → 4ZVHN3V7.js} +1 -1
  6. package/dist/cdn/55VDXBLV.js +2 -0
  7. package/dist/cdn/5YQK5TCH.js +2 -0
  8. package/dist/cdn/{EB5MDEWF.js → 7S4ZZPSA.js} +1 -1
  9. package/dist/cdn/7VGSZDT7.js +2 -0
  10. package/dist/cdn/ABDFJWQO.js +2 -0
  11. package/dist/cdn/BAMK6STW.js +2 -0
  12. package/dist/cdn/CC74AHNF.js +2 -0
  13. package/dist/cdn/CCJ7MF3B.js +2 -0
  14. package/dist/cdn/{TO3YFXVJ.js → EYOJNGUG.js} +1 -1
  15. package/dist/cdn/{MFGUTQRR.js → F5IBLVYU.js} +1 -1
  16. package/dist/cdn/HMGFS4YI.js +2 -0
  17. package/dist/cdn/HYR5WUUX.js +2 -0
  18. package/dist/cdn/JAMYEW7N.js +2 -0
  19. package/dist/cdn/JCWKK6FB.js +2 -0
  20. package/dist/cdn/LIFJOO55.js +2 -0
  21. package/dist/cdn/{LNXO5YIS.js → LPKRIISW.js} +1 -1
  22. package/dist/cdn/LRP7XW5X.js +2 -0
  23. package/dist/cdn/{KDCSDIUQ.js → LZPZYGFW.js} +1 -1
  24. package/dist/cdn/{JTQN5KMG.js → MWQVR7SB.js} +1 -1
  25. package/dist/cdn/N5YNSPMD.js +2 -0
  26. package/dist/cdn/NEJQBOXB.js +8207 -0
  27. package/dist/cdn/NSTQTWS5.js +2 -0
  28. package/dist/cdn/ONYZMGVN.js +2 -0
  29. package/dist/cdn/OQRMI3K5.js +2 -0
  30. package/dist/cdn/{34AP2EEB.js → OVW45JGX.js} +1 -1
  31. package/dist/cdn/Q73UFMJY.js +4 -0
  32. package/dist/cdn/{BZFAYVKR.js → RBTFN5SR.js} +1 -1
  33. package/dist/cdn/RU4PILTH.js +2 -0
  34. package/dist/cdn/RU722XDV.js +2 -0
  35. package/dist/cdn/S2EORL4N.js +2 -0
  36. package/dist/cdn/S3GK6UB7.js +2 -0
  37. package/dist/cdn/T7LZIFNY.js +2 -0
  38. package/dist/cdn/TZBDDGN3.js +2 -0
  39. package/dist/cdn/UOXUUCE7.js +3 -0
  40. package/dist/cdn/VLVINHT3.js +2 -0
  41. package/dist/cdn/WDQV5Y4K.js +2 -0
  42. package/dist/cdn/{OMROUY3L.js → X44CHGA6.js} +1 -1
  43. package/dist/cdn/XMMFL5H3.js +2 -0
  44. package/dist/cdn/{IECXEZNI.js → Y72KV72H.js} +1 -1
  45. package/dist/cdn/{D4UHHQ35.js → YOPZGJMF.js} +1 -1
  46. package/dist/cdn/ZJMMAZFG.js +2 -0
  47. package/dist/cdn/assets/layer-replace/t9n/messages.en.json +1 -0
  48. package/dist/cdn/index.js +1 -1
  49. package/dist/cdn/main.css +1 -1
  50. package/dist/chunks/sharedCacheDirective.js +74 -0
  51. package/dist/chunks/utils.js +75 -37
  52. package/dist/chunks/utils2.js +9 -14
  53. package/dist/chunks/well-known-sizes-controller.js +42 -0
  54. package/dist/components/arcgis-ckeditor5/customElement.d.ts +0 -9
  55. package/dist/components/arcgis-ckeditor5/customElement.js +1336 -1339
  56. package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +0 -6
  57. package/dist/components/arcgis-ckeditor5-popover/customElement.js +14 -17
  58. package/dist/components/arcgis-color-input/customElement.d.ts +0 -20
  59. package/dist/components/arcgis-color-input/customElement.js +33 -33
  60. package/dist/components/arcgis-color-input/index.js +2 -1
  61. package/dist/components/arcgis-field-info/customElement.d.ts +0 -3
  62. package/dist/components/arcgis-field-info/customElement.js +41 -41
  63. package/dist/components/arcgis-field-pick-list/customElement.d.ts +0 -28
  64. package/dist/components/arcgis-field-pick-list/customElement.js +114 -127
  65. package/dist/components/arcgis-field-pick-list/index.js +1 -1
  66. package/dist/components/arcgis-html-content/customElement.d.ts +42 -0
  67. package/dist/components/arcgis-html-content/customElement.js +71 -0
  68. package/dist/components/arcgis-html-content/index.d.ts +1 -0
  69. package/dist/components/arcgis-html-content/index.js +1 -0
  70. package/dist/components/arcgis-label-input/customElement.js +1 -1
  71. package/dist/components/arcgis-layer-replace/customElement.d.ts +437 -0
  72. package/dist/components/arcgis-layer-replace/customElement.js +376 -0
  73. package/dist/components/arcgis-layer-replace/index.d.ts +1 -0
  74. package/dist/components/arcgis-layer-replace/index.js +7 -0
  75. package/dist/components/arcgis-slider/customElement.js +546 -451
  76. package/dist/components/arcgis-slider-field/customElement.d.ts +43 -41
  77. package/dist/components/arcgis-slider-field/customElement.js +45 -39
  78. package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +21 -19
  79. package/dist/components/arcgis-slider-histogram-range/customElement.js +28 -22
  80. package/dist/components/arcgis-slider-input/customElement.d.ts +0 -3
  81. package/dist/components/arcgis-slider-input/customElement.js +13 -13
  82. package/dist/components/arcgis-ticks/customElement.js +8 -8
  83. package/dist/components/arcgis-toolbar/customElement.d.ts +25 -2
  84. package/dist/components/arcgis-toolbar/customElement.js +55 -46
  85. package/dist/components/arcgis-toolbar/types.d.ts +21 -1
  86. package/dist/components/arcgis-toolbar-action/customElement.js +17 -18
  87. package/dist/components/arcgis-toolbar-group/customElement.js +20 -17
  88. package/dist/components/arcgis-toolbar-item/customElement.d.ts +2 -2
  89. package/dist/components/arcgis-toolbar-item/customElement.js +14 -14
  90. package/dist/components/arcgis-toolbar-more-button/customElement.js +28 -26
  91. package/dist/components/arcgis-toolbar-split-button/customElement.js +34 -34
  92. package/dist/components/arcgis-toolbar-stack/customElement.d.ts +9 -2
  93. package/dist/components/arcgis-toolbar-stack/customElement.js +63 -125
  94. package/dist/components/arcgis-unique-values-list/customElement.js +11 -11
  95. package/dist/components/arcgis-unique-values-list/index.js +1 -1
  96. package/dist/components/arcgis-value-picker/customElement.js +22 -26
  97. package/dist/components/arcgis-value-picker-combobox/customElement.js +4 -4
  98. package/dist/components/arcgis-value-picker-label/customElement.js +5 -5
  99. package/dist/components/arcgis-value-picker-slider/customElement.d.ts +12 -19
  100. package/dist/components/arcgis-value-picker-slider/customElement.js +17 -17
  101. package/dist/docs/api.json +1 -1
  102. package/dist/docs/docs.json +1 -1
  103. package/dist/docs/vscode.css-custom-data.json +1 -1
  104. package/dist/docs/vscode.html-custom-data.json +1 -1
  105. package/dist/docs/web-types.json +1 -1
  106. package/dist/index.d.ts +15 -20
  107. package/dist/index.js +8 -5
  108. package/dist/loader.js +10 -8
  109. package/dist/types/lumina.d.ts +17 -19
  110. package/dist/types/preact.d.ts +19 -19
  111. package/dist/types/react.d.ts +21 -19
  112. package/dist/types/stencil.d.ts +17 -19
  113. package/dist/utils/sharedCacheDirective.d.ts +68 -0
  114. package/dist/utils/types.d.ts +0 -12
  115. package/package.json +7 -7
  116. package/dist/cdn/32MHBJSZ.js +0 -2
  117. package/dist/cdn/3AFEXHZ5.js +0 -2
  118. package/dist/cdn/5EA7SGHX.js +0 -2
  119. package/dist/cdn/5XRYXPOX.js +0 -2
  120. package/dist/cdn/735FTIBP.js +0 -2
  121. package/dist/cdn/ATLXGXTH.js +0 -2
  122. package/dist/cdn/BCN6LPOG.js +0 -4
  123. package/dist/cdn/CKGWDI7B.js +0 -2
  124. package/dist/cdn/DPJGC3YQ.js +0 -2
  125. package/dist/cdn/DR2THZQU.js +0 -8208
  126. package/dist/cdn/EM4OQXFS.js +0 -2
  127. package/dist/cdn/GDRW3MIZ.js +0 -2
  128. package/dist/cdn/HJ3EJZFF.js +0 -2
  129. package/dist/cdn/HYFFUYAU.js +0 -2
  130. package/dist/cdn/LLATF73T.js +0 -2
  131. package/dist/cdn/M2J3GPM4.js +0 -2
  132. package/dist/cdn/M3SFEFPX.js +0 -2
  133. package/dist/cdn/OIGA7XBZ.js +0 -2
  134. package/dist/cdn/QCUF7B3I.js +0 -2
  135. package/dist/cdn/S4XOD4YS.js +0 -2
  136. package/dist/cdn/TXQKK4DJ.js +0 -2
  137. package/dist/cdn/UIBTY5FF.js +0 -2
  138. package/dist/cdn/X6DNIKWY.js +0 -2
  139. package/dist/cdn/XUPA27AW.js +0 -2
  140. package/dist/cdn/XX2ZCFWI.js +0 -2
  141. package/dist/cdn/YEFEVEP6.js +0 -2
  142. package/dist/cdn/ZCVP2N2O.js +0 -2
  143. package/dist/cdn/ZGYD3GAS.js +0 -2
  144. package/dist/chunks/toolbar.js +0 -9
@@ -23,18 +23,12 @@ export abstract class ArcgisCkeditor5Popover extends LitElement {
23
23
  accessor refElement: HTMLElement | undefined;
24
24
  /** Reposition the component. */
25
25
  reposition(): Promise<void>;
26
- /** @deprecated use arcgisPopoverClosed instead */
27
- readonly arcgisCkeditor5PopoverClosed: import("@arcgis/lumina").TargetedEvent<this, {
28
- guid: string;
29
- data?: string;
30
- }>;
31
26
  /** Emitted when the popover has been closed. */
32
27
  readonly arcgisPopoverClosed: import("@arcgis/lumina").TargetedEvent<this, {
33
28
  guid: string;
34
29
  data?: string;
35
30
  }>;
36
31
  readonly "@eventTypes": {
37
- arcgisCkeditor5PopoverClosed: ArcgisCkeditor5Popover["arcgisCkeditor5PopoverClosed"]["detail"];
38
32
  arcgisPopoverClosed: ArcgisCkeditor5Popover["arcgisPopoverClosed"]["detail"];
39
33
  };
40
34
  }
@@ -1,17 +1,17 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as a } from "../../chunks/runtime.js";
3
- import { css as l, html as n } from "lit";
4
- import { LitElement as d, createEvent as o, nothing as c, safeClassMap as e } from "@arcgis/lumina";
5
- import { createRef as s, ref as r } from "lit/directives/ref.js";
6
- import { Task as p } from "@lit/task";
2
+ import { c as r } from "../../chunks/runtime.js";
3
+ import { css as a, html as n } from "lit";
4
+ import { LitElement as l, createEvent as c, nothing as p, safeClassMap as e } from "@arcgis/lumina";
5
+ import { createRef as o, ref as s } from "lit/directives/ref.js";
6
+ import { Task as d } from "@lit/task";
7
7
  import { unsafeGetElementDirection as h } from "@arcgis/toolkit/dom";
8
8
  import { generateGuid as g } from "@arcgis/toolkit/string";
9
9
  import { i as u } from "../../chunks/general.js";
10
10
  import { C as i } from "../../chunks/resources.js";
11
- const m = l`.arcgis-app-ckeditor-popover-footer{display:flex;justify-content:flex-end;margin-top:var(--calcite-space-sm);padding:0 var(--calcite-space-lg)}.arcgis-app-ckeditor-popover-container{margin:0 var(--calcite-space-md) 0 0;padding-bottom:var(--calcite-space-lg);box-shadow:val(--calcite-shadow-1)}`;
12
- class f extends d {
11
+ const m = a`.arcgis-app-ckeditor-popover-footer{display:flex;justify-content:flex-end;margin-top:var(--calcite-space-sm);padding:0 var(--calcite-space-lg)}.arcgis-app-ckeditor-popover-container{margin:0 var(--calcite-space-md) 0 0;padding-bottom:var(--calcite-space-lg);box-shadow:val(--calcite-shadow-1)}`;
12
+ class f extends l {
13
13
  constructor() {
14
- super(), this.okButton = s(), this.popoverNode = s(), this._propWatcherTask = new p(this, {
14
+ super(), this.okButton = o(), this.popoverNode = o(), this._propWatcherTask = new d(this, {
15
15
  task: async ([t]) => {
16
16
  if (!u(t)) {
17
17
  console.error("[ckeditor5] Required properties are missing.");
@@ -19,7 +19,7 @@ class f extends d {
19
19
  }
20
20
  },
21
21
  args: () => [this.refElement]
22
- }), this.guid = g(), this.intlOk = "Ok", this.intlCancel = "Cancel", this.arcgisCkeditor5PopoverClosed = o(), this.arcgisPopoverClosed = o(), this.listen("arcgisCreated", this.afterEditorCreated), this.listen("arcgisSourceEditingChanged", this.onSourceEditingStatusChanged);
22
+ }), this.guid = g(), this.intlOk = "Ok", this.intlCancel = "Cancel", this.arcgisPopoverClosed = c(), this.listen("arcgisCreated", this.afterEditorCreated), this.listen("arcgisSourceEditingChanged", this.onSourceEditingStatusChanged);
23
23
  }
24
24
  static {
25
25
  this.properties = { guid: 1, refElement: 0, intlOk: 1, intlCancel: 1, intlLabel: 1 };
@@ -38,21 +38,18 @@ class f extends d {
38
38
  }
39
39
  render() {
40
40
  return this.el.classList.add("js-app-flyout"), this._propWatcherTask.render({
41
- complete: () => n`<calcite-popover class=${e(i.popover)} dir=${h(this.el) ?? c} placement=leading-start open pointer-disabled .referenceElement=${this.refElement} .offsetDistance=${-Math.round(this.refElement.getBoundingClientRect().width)} offset-skidding=50 .label=${this.intlLabel ?? ""} focus-trap-disabled trigger-disabled top-layer-disabled ${r(this.popoverNode)}><div class=${e(i.arcgisAppCkeditorPopoverContainer)}><slot></slot><div class=${e(i.arcgisAppCkeditorPopoverFooter)}><calcite-button .label=${this.intlOk} @click=${async (t) => {
42
- this.okButton.value?.disabled || (t.stopPropagation(), this.arcgisCkeditor5PopoverClosed.emit({
43
- guid: this.guid,
44
- data: await this.editor?.getData()
45
- }), this.arcgisPopoverClosed.emit({
41
+ complete: () => n`<calcite-popover class=${e(i.popover)} dir=${h(this.el) ?? p} placement=leading-start open pointer-disabled .referenceElement=${this.refElement} .offsetDistance=${-Math.round(this.refElement.getBoundingClientRect().width)} offset-skidding=50 .label=${this.intlLabel ?? ""} focus-trap-disabled trigger-disabled top-layer-disabled ${s(this.popoverNode)}><div class=${e(i.arcgisAppCkeditorPopoverContainer)}><slot></slot><div class=${e(i.arcgisAppCkeditorPopoverFooter)}><calcite-button .label=${this.intlOk} @click=${async (t) => {
42
+ this.okButton.value?.disabled || (t.stopPropagation(), this.arcgisPopoverClosed.emit({
46
43
  guid: this.guid,
47
44
  data: await this.editor?.getData()
48
45
  }));
49
- }} ${r(this.okButton)}>${this.intlOk}</calcite-button><calcite-button appearance=outline-fill .label=${this.intlCancel} @click=${(t) => {
50
- t.stopPropagation(), this.arcgisCkeditor5PopoverClosed.emit({ guid: this.guid }), this.arcgisPopoverClosed.emit({ guid: this.guid });
46
+ }} ${s(this.okButton)}>${this.intlOk}</calcite-button><calcite-button appearance=outline-fill .label=${this.intlCancel} @click=${(t) => {
47
+ t.stopPropagation(), this.arcgisPopoverClosed.emit({ guid: this.guid });
51
48
  }}>${this.intlCancel}</calcite-button></div></div></calcite-popover>`
52
49
  });
53
50
  }
54
51
  }
55
- a("arcgis-ckeditor5-popover", f);
52
+ r("arcgis-ckeditor5-popover", f);
56
53
  export {
57
54
  f as ArcgisCkeditor5Popover
58
55
  };
@@ -2,7 +2,6 @@
2
2
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
3
  import type { PopoverProps } from "../../utils/types.js";
4
4
  import type { T9nMeta } from "@arcgis/lumina/controllers";
5
- import type { Popover as Popover } from "@esri/calcite-components/components/calcite-popover";
6
5
 
7
6
  /** @internal */
8
7
  export abstract class ArcgisColorInput extends LitElement {
@@ -57,13 +56,6 @@ export abstract class ArcgisColorInput extends LitElement {
57
56
  recentColors?: string | undefined;
58
57
  selectColor?: string | undefined;
59
58
  };
60
- /**
61
- * @deprecated
62
- * use popoverProps.placement instead.
63
- * Determines where the popup color picker will be positioned relative to the color input.
64
- * @default "auto"
65
- */
66
- accessor placement: Popover["placement"];
67
59
  /** Convenience prop to specify common popover props. */
68
60
  accessor popoverProps: PopoverProps | undefined;
69
61
  /**
@@ -85,24 +77,12 @@ export abstract class ArcgisColorInput extends LitElement {
85
77
  setFocus(): Promise<void>;
86
78
  /** Emitted when the color has changed. */
87
79
  readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, void>;
88
- /** @deprecated use arcgisChange instead */
89
- readonly arcgisColorInputChange: import("@arcgis/lumina").TargetedEvent<this, void>;
90
- /** @deprecated use arcgisPickerClose instead */
91
- readonly arcgisColorInputPopoverClose: import("@arcgis/lumina").TargetedEvent<this, string>;
92
- /** @deprecated use arcgisPickerOpen instead */
93
- readonly arcgisColorInputPopoverOpen: import("@arcgis/lumina").TargetedEvent<this, void>;
94
- /** @deprecated use arcgisSwatchUpdate instead */
95
- readonly arcgisColorInputSwatchUpdate: import("@arcgis/lumina").TargetedEvent<this, string | undefined>;
96
80
  readonly arcgisPickerClose: import("@arcgis/lumina").TargetedEvent<this, string>;
97
81
  readonly arcgisPickerOpen: import("@arcgis/lumina").TargetedEvent<this, void>;
98
82
  /** Emitted when a color swatch is updated (emits selected color hex). */
99
83
  readonly arcgisSwatchUpdate: import("@arcgis/lumina").TargetedEvent<this, string | undefined>;
100
84
  readonly "@eventTypes": {
101
85
  arcgisChange: ArcgisColorInput["arcgisChange"]["detail"];
102
- arcgisColorInputChange: ArcgisColorInput["arcgisColorInputChange"]["detail"];
103
- arcgisColorInputPopoverClose: ArcgisColorInput["arcgisColorInputPopoverClose"]["detail"];
104
- arcgisColorInputPopoverOpen: ArcgisColorInput["arcgisColorInputPopoverOpen"]["detail"];
105
- arcgisColorInputSwatchUpdate: ArcgisColorInput["arcgisColorInputSwatchUpdate"]["detail"];
106
86
  arcgisPickerClose: ArcgisColorInput["arcgisPickerClose"]["detail"];
107
87
  arcgisPickerOpen: ArcgisColorInput["arcgisPickerOpen"]["detail"];
108
88
  arcgisSwatchUpdate: ArcgisColorInput["arcgisSwatchUpdate"]["detail"];
@@ -1,23 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as C } from "../../chunks/runtime.js";
2
+ import { c as g } from "../../chunks/runtime.js";
3
3
  import { keyed as n } from "lit/directives/keyed.js";
4
- import { LitElement as u, createEvent as i } from "@arcgis/lumina";
5
- import { css as m, render as g, html as s, svg as f } from "lit";
6
- import { createRef as w, ref as a } from "lit/directives/ref.js";
7
- import { unsafeGetElementDirection as v } from "@arcgis/toolkit/dom";
8
- import { debounce as E } from "@arcgis/toolkit/function";
9
- import { u as k } from "../../chunks/useT9n.js";
10
- function $(l, e, o) {
11
- window.localStorage.setItem(l, JSON.stringify(e));
4
+ import { LitElement as m, createEvent as l, nothing as d, safeStyleMap as w } from "@arcgis/lumina";
5
+ import { css as f, render as v, html as r, svg as u } from "lit";
6
+ import { createRef as E, ref as a } from "lit/directives/ref.js";
7
+ import { unsafeGetElementDirection as k } from "@arcgis/toolkit/dom";
8
+ import { debounce as $ } from "@arcgis/toolkit/function";
9
+ import { u as y } from "../../chunks/useT9n.js";
10
+ function b(c, e, o) {
11
+ window.localStorage.setItem(c, JSON.stringify(e));
12
12
  }
13
- function y(l, e) {
14
- const o = window.localStorage.getItem(l);
13
+ function S(c, e) {
14
+ const o = window.localStorage.getItem(c);
15
15
  return o && e ? JSON.parse(o) : o;
16
16
  }
17
- const S = m`:host,arcgis-picker-input{display:block}.color-picker-container{display:flex;flex-direction:column}.color-picker{--calcite-color-border-1: transparent;overflow-x:hidden}.preview-swatch{width:100%;height:24px}.recent-colors-container{align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-input);display:flex;gap:var(--calcite-space-sm);height:32px;padding:0 var(--calcite-space-xs);transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.preview-recent-swatch{cursor:pointer}.recent-colors-container:focus,.preview-recent-swatch:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.empty-swatch{cursor:default}.end-action{display:flex}`;
18
- class I extends u {
17
+ const R = f`:host,arcgis-picker-input{display:block}.color-picker-container{display:flex;flex-direction:column}.color-picker{--calcite-color-border-1: transparent;overflow-x:hidden}.preview-swatch{width:100%;height:24px;container-type:inline-size}.preview-swatch-no-color{overflow:hidden;block-size:inherit;inline-size:inherit;rect{transition-property:all;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1)}rect{fill:var(--calcite-theme-color-surface-2, var(--calcite-color-surface-2))}line{stroke:var(--calcite-color-status-danger)}}.recent-colors-container{align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-input);display:flex;gap:var(--calcite-space-sm);height:32px;padding:0 var(--calcite-space-xs);transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.preview-recent-swatch{cursor:pointer}.recent-colors-container:focus,.preview-recent-swatch:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.empty-swatch{cursor:default}.end-action{display:flex}.swatch-group{line-height:16px}`;
18
+ class I extends m {
19
19
  constructor() {
20
- super(), this._messages = k(), this.actionEl = w(), this.open = !1, this.setRecentColorElement = (e) => (o) => {
20
+ super(), this._messages = y(), this.actionEl = E(), this.open = !1, this.setRecentColorElement = (e) => (o) => {
21
21
  switch (e) {
22
22
  case 1:
23
23
  this.recentColor1El = o;
@@ -28,13 +28,13 @@ class I extends u {
28
28
  default:
29
29
  this.recentColor3El = o;
30
30
  }
31
- }, this.recentColors = [], this.clearable = !1, this.compact = !1, this.disabled = !1, this.placement = "auto", this.storageId = "arcgis-color-input-storage-colors", this.hideRecentColors = !1, this.showTransparency = !1, this.arcgisChange = i(), this.arcgisColorInputChange = i(), this.arcgisColorInputPopoverClose = i(), this.arcgisColorInputPopoverOpen = i(), this.arcgisColorInputSwatchUpdate = i(), this.arcgisInternalStoredColor = i(), this.arcgisPickerClose = i(), this.arcgisPickerOpen = i(), this.arcgisSwatchUpdate = i(), this.listenOn(document, "arcgisInternalStoredColor", this.handleUpdateRecentColors), this.listenOn(document, "arcgisRecentColorsUpdate", this.handleStoreNewRecentColor);
31
+ }, this.recentColors = [], this.clearable = !1, this.compact = !1, this.disabled = !1, this.storageId = "arcgis-color-input-storage-colors", this.hideRecentColors = !1, this.showTransparency = !1, this.arcgisChange = l(), this.arcgisInternalStoredColor = l(), this.arcgisPickerClose = l(), this.arcgisPickerOpen = l(), this.arcgisSwatchUpdate = l(), this.listenOn(document, "arcgisInternalStoredColor", this.handleUpdateRecentColors), this.listenOn(document, "arcgisRecentColorsUpdate", this.handleStoreNewRecentColor);
32
32
  }
33
33
  static {
34
- this.properties = { recentColors: 16, clearable: 5, color: 1, compact: 5, disabled: 5, messageOverrides: 0, placement: 1, popoverProps: 0, storageId: 1, hideRecentColors: 5, showTransparency: 5 };
34
+ this.properties = { recentColors: 16, clearable: 5, color: 1, compact: 5, disabled: 5, messageOverrides: 0, popoverProps: 0, storageId: 1, hideRecentColors: 5, showTransparency: 5 };
35
35
  }
36
36
  static {
37
- this.styles = S;
37
+ this.styles = R;
38
38
  }
39
39
  async close() {
40
40
  await this.inlineInputEl?.close({ focus: !1 });
@@ -52,7 +52,7 @@ class I extends u {
52
52
  super.disconnectedCallback(), this.removeTooltip();
53
53
  }
54
54
  async handleOpen() {
55
- await this.colorPickerEl?.setFocus(), this.open = !0, this.arcgisPickerOpen.emit(), this.arcgisColorInputPopoverOpen.emit();
55
+ await this.colorPickerEl?.setFocus(), this.open = !0, this.arcgisPickerOpen.emit();
56
56
  }
57
57
  setInlineInputRef(e) {
58
58
  this.inlineInputEl = e;
@@ -71,14 +71,14 @@ class I extends u {
71
71
  }
72
72
  }
73
73
  setRecentColorsFromStorage() {
74
- const e = y(this.storageId, !0);
74
+ const e = S(this.storageId, !0);
75
75
  e && (this.recentColors = [...e]);
76
76
  }
77
77
  handleSwatchClickOrKeyUp(e) {
78
78
  if ("key" in e && e.key !== "Enter" && e.key !== "Space")
79
79
  return;
80
80
  const t = e.currentTarget.color || void 0;
81
- this.updateColor(t), this.arcgisSwatchUpdate.emit(t), this.arcgisColorInputSwatchUpdate.emit(t), setTimeout(() => this.recentColor1El?.focus(), 200);
81
+ this.updateColor(t), this.arcgisSwatchUpdate.emit(t), setTimeout(() => this.recentColor1El?.focus(), 200);
82
82
  }
83
83
  handleRecentColorsKeyDown(e) {
84
84
  if (this.recentColors.length === 1)
@@ -100,39 +100,39 @@ class I extends u {
100
100
  this.updateColor(void 0);
101
101
  }
102
102
  updateColor(e, o = !0) {
103
- e !== this.color && (this.color = e, this.arcgisChange.emit(), this.arcgisColorInputChange.emit(), o && this.storeRecentColorToStorage(e));
103
+ e !== this.color && (this.color = e, this.arcgisChange.emit(), o && this.storeRecentColorToStorage(e));
104
104
  }
105
105
  storeRecentColorToStorage(e) {
106
106
  if (!e)
107
107
  return;
108
108
  e.length > 7 && (e = e.slice(0, 7));
109
- const t = [e, ...this.recentColors.filter((r) => r !== e)].slice(0, 3);
110
- $(this.storageId, t), this.recentColors = t, this.arcgisInternalStoredColor.emit();
109
+ const t = [e, ...this.recentColors.filter((i) => i !== e)].slice(0, 3);
110
+ b(this.storageId, t), this.recentColors = t, this.arcgisInternalStoredColor.emit();
111
111
  }
112
112
  handleClose(e) {
113
- e.stopPropagation(), this.storeRecentColorToStorage(this.colorPickerEl?.value), this.open = !1, this.arcgisPickerClose.emit(this.colorPickerEl?.value), this.arcgisColorInputPopoverClose.emit(this.colorPickerEl?.value);
113
+ e.stopPropagation(), this.storeRecentColorToStorage(this.colorPickerEl?.value), this.open = !1, this.arcgisPickerClose.emit(this.colorPickerEl?.value);
114
114
  }
115
115
  addTooltip(e) {
116
- this.removeTooltip(), this.tooltipContainerEl = document.createElement("div"), g(s`<calcite-tooltip .placement=${e.placement ?? "auto"} .referenceElement=${e.referenceElement} overlay-positioning=fixed open>${e.innerHTML}</calcite-tooltip>`, this.tooltipContainerEl), document.body.append(this.tooltipContainerEl);
116
+ this.removeTooltip(), this.tooltipContainerEl = document.createElement("div"), v(r`<calcite-tooltip .placement=${e.placement ?? "auto"} .referenceElement=${e.referenceElement} overlay-positioning=fixed open>${e.innerHTML}</calcite-tooltip>`, this.tooltipContainerEl), document.body.append(this.tooltipContainerEl);
117
117
  }
118
118
  removeTooltip() {
119
119
  this.tooltipContainerEl?.parentNode && (this.tooltipContainerEl.remove(), this.tooltipContainerEl = void 0);
120
120
  }
121
121
  render() {
122
- const { compact: e, disabled: o, recentColors: t, _messages: r } = this, h = [t[0], t[1]], d = v(this.el) === "rtl";
123
- return e || h.push(t[2]), s`<arcgis-picker-input .disabled=${o} .intlDone=${r.commitColor} .heading=${r.selectColor} .label=${r.selectColor} @arcgisPopoverOpen=${this.handleOpen} @arcgisPopoverClose=${this.handleClose} .popoverProps=${this.popoverProps} ${a(this.setInlineInputRef)}><div class="color-picker-container" slot=content>${n(`color-picker${e ? "--compact" : ""}`, s`<calcite-color-picker .clearable=${this.clearable} class="color-picker" @calciteColorPickerInput=${E((c) => {
124
- c.stopPropagation(), this.updateColor(this.colorPickerEl.value, !1);
125
- }, 500)} .scale=${e ? "s" : "m"} .storageId=${this.storageId} .alphaChannel=${this.showTransparency} .value=${this.color} ${a(this.setColorPickerRef)}></calcite-color-picker>`)}</div><div slot=preview><calcite-color-picker-swatch class="preview-swatch" .color=${this.color} scale=s></calcite-color-picker-swatch></div>${!this.hideRecentColors && s`<div slot=content-end class="recent-colors-container" @keydown=${this.handleRecentColorsKeyDown} tabindex=-1>${h.map((c, p) => c ? n(c, s`<calcite-color-picker-swatch class="preview-recent-swatch" role=button scale=s tabindex=0 .active=${c === this.color} .color=${c} @click=${this.handleSwatchClickOrKeyUp} @keyup=${this.handleSwatchClickOrKeyUp} @focus=${this.handleUpdateActiveSwatch} ${a(this.setRecentColorElement(p + 1))}></calcite-color-picker-swatch>`) : this.renderEmptySwatch(`empty-swatch-${p}`))}</div>` || ""}${this.clearable && s`<div slot=content-end class="end-action"><calcite-action icon=circle-disallowed scale=s .label=${r.clearColor} .text=${r.clearColor ?? ""} @click=${this.handleClearColor} @mouseover=${() => this.addTooltip({
122
+ const { compact: e, disabled: o, recentColors: t, _messages: i } = this, h = [t[0], t[1]], C = k(this.el) === "rtl";
123
+ return e || h.push(t[2]), r`<arcgis-picker-input .disabled=${o} .intlDone=${i.commitColor} .heading=${i.selectColor} .label=${i.selectColor} @arcgisPopoverOpen=${this.handleOpen} @arcgisPopoverClose=${this.handleClose} .popoverProps=${this.popoverProps} ${a(this.setInlineInputRef)}><div class="color-picker-container" slot=content>${n(`color-picker${e ? "--compact" : ""}`, r`<calcite-color-picker .clearable=${this.clearable} class="color-picker" @calciteColorPickerInput=${$((s) => {
124
+ s.stopPropagation(), this.updateColor(this.colorPickerEl.value, !1);
125
+ }, 500)} .scale=${e ? "s" : "m"} .storageId=${this.storageId} .alphaChannel=${this.showTransparency} .value=${this.color} ${a(this.setColorPickerRef)}></calcite-color-picker>`)}</div>${this.color ? r`<div slot=preview style=${w({ backgroundColor: this.color })} class="preview-swatch" aria-label=${i.selectColor ?? "" ?? d}></div>` : r`<div slot=preview class="preview-swatch" aria-label=${i.selectColor ?? "" ?? d}><svg xmlns=http://www.w3.org/2000/svg class="preview-swatch-no-color">${u`<clipPath id=shape><rect height=100% width=100% rx=0 /></clipPath><rect clip-path="inset(0 round 0)" height=100% rx=0 stroke="rgba(0, 0, 0, 0.3)" stroke-width=2 width=100% /><line clip-path=url(#shape) stroke-width=3 x1=100% x2=0 y1=0 y2=100% />`}</svg></div>`}${!this.hideRecentColors && r`<div slot=content-end class="recent-colors-container" @keydown=${this.handleRecentColorsKeyDown} tabindex=-1><calcite-swatch-group selection-mode=single .label=${i.recentColors ?? ""} scale=s class="swatch-group">${h.map((s, p) => s ? n(s, r`<calcite-swatch class="preview-recent-swatch" role=button scale=s tabindex=0 .selected=${s === this.color} .color=${s} .label=${i.selectColor ?? ""} @click=${this.handleSwatchClickOrKeyUp} @keyup=${this.handleSwatchClickOrKeyUp} @focus=${this.handleUpdateActiveSwatch} ${a(this.setRecentColorElement(p + 1))}></calcite-swatch>`) : this.renderEmptySwatch(`empty-swatch-${p}`))}</calcite-swatch-group></div>` || ""}${this.clearable && r`<div slot=content-end class="end-action"><calcite-action icon=circle-disallowed scale=s .label=${i.clearColor} .text=${i.clearColor ?? ""} @click=${this.handleClearColor} @mouseover=${() => this.addTooltip({
126
126
  referenceElement: this.actionEl.value,
127
- placement: d ? "right-start" : "left-start",
128
- innerHTML: r.noColor ?? ""
127
+ placement: C ? "right-start" : "left-start",
128
+ innerHTML: i.noColor ?? ""
129
129
  })} @mouseout=${() => this.removeTooltip()} ${a(this.actionEl)}></calcite-action></div>` || ""}</arcgis-picker-input>`;
130
130
  }
131
131
  renderEmptySwatch(e) {
132
- return n(e, s`<svg class="empty-swatch" viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg width=20>${f`<rect width=20 height=20 fill=#f8f8f8 stroke=#000 stroke-dasharray=2 />`}</svg>`);
132
+ return n(e, r`<svg class="empty-swatch" viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg width=20>${u`<rect width=20 height=20 fill=#f8f8f8 stroke=#000 stroke-dasharray=2 />`}</svg>`);
133
133
  }
134
134
  }
135
- C("arcgis-color-input", I);
135
+ g("arcgis-color-input", I);
136
136
  export {
137
137
  I as ArcgisColorInput
138
138
  };
@@ -1,6 +1,7 @@
1
1
  import "@esri/calcite-components/components/calcite-tooltip";
2
2
  import "../arcgis-picker-input/index.js";
3
3
  import "@esri/calcite-components/components/calcite-color-picker";
4
- import "@esri/calcite-components/components/calcite-color-picker-swatch";
4
+ import "@esri/calcite-components/components/calcite-swatch-group";
5
+ import "@esri/calcite-components/components/calcite-swatch";
5
6
  import "@esri/calcite-components/components/calcite-action";
6
7
  export * from "./customElement.js";
@@ -202,10 +202,7 @@ export abstract class ArcgisFieldInfo extends LitElement {
202
202
  refresh(): Promise<void>;
203
203
  /** Emitted once all information is displayed. */
204
204
  readonly arcgisComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
205
- /** @deprecated use arcgisComplete instead. Removal target v6.0.0. */
206
- readonly arcgisFieldInfoComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
207
205
  readonly "@eventTypes": {
208
206
  arcgisComplete: ArcgisFieldInfo["arcgisComplete"]["detail"];
209
- arcgisFieldInfoComplete: ArcgisFieldInfo["arcgisFieldInfoComplete"]["detail"];
210
207
  };
211
208
  }
@@ -1,21 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as H } from "../../chunks/runtime.js";
2
+ import { c as G } from "../../chunks/runtime.js";
3
3
  import { keyed as $ } from "lit/directives/keyed.js";
4
4
  import { ref as b } from "lit/directives/ref.js";
5
- import { LitElement as Q, createEvent as D, safeClassMap as C } from "@arcgis/lumina";
5
+ import { LitElement as H, createEvent as Q, safeClassMap as q } from "@arcgis/lumina";
6
6
  import { Task as J } from "@lit/task";
7
- import { log as q, composeMissingPropertyMessage as L } from "@arcgis/toolkit/log";
7
+ import { log as _, composeMissingPropertyMessage as D } from "@arcgis/toolkit/log";
8
8
  import { css as j, html as c } from "lit";
9
9
  import z from "@arcgis/core/config.js";
10
- import * as x from "@arcgis/core/core/reactiveUtils.js";
10
+ import * as L from "@arcgis/core/core/reactiveUtils.js";
11
11
  import * as h from "@arcgis/core/intl.js";
12
- import * as P from "@arcgis/core/applications/PortalApp/layerUtils.js";
13
- import * as _ from "@arcgis/core/core/lang.js";
12
+ import * as A from "@arcgis/core/applications/PortalApp/layerUtils.js";
13
+ import * as C from "@arcgis/core/core/lang.js";
14
14
  import B from "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
15
15
  import K from "@arcgis/core/smartMapping/statistics/uniqueValues.js";
16
16
  import { i as f } from "../../chunks/general.js";
17
- import R from "@arcgis/core/layers/support/CodedValue.js";
18
- import { i as F, a as V, b as T, c as Z, d as I, e as M, f as y, g as w, h as U, j as X, k as Y, l as ee, m as te, n as N, o as ie, p as W, q as se, r as k, s as E } from "../../chunks/layer-utils.js";
17
+ import x from "@arcgis/core/layers/support/CodedValue.js";
18
+ import { i as F, a as V, b as T, c as P, d as I, e as Z, f as y, g as w, h as M, j as X, k as Y, l as ee, m as te, n as N, o as ie, p as U, q as se, r as R, s as k } from "../../chunks/layer-utils.js";
19
19
  import ae from "@arcgis/core/rest/support/Query.js";
20
20
  import { u as re } from "../../chunks/useT9n.js";
21
21
  function ne(a) {
@@ -30,11 +30,11 @@ const oe = {
30
30
  function ue(a) {
31
31
  const { layer: e, fieldName: t } = a;
32
32
  let i;
33
- const r = P.supportsFieldConfiguration(e);
33
+ const r = A.supportsFieldConfiguration(e);
34
34
  let s;
35
35
  "popupTemplate" in e && (s = e.popupTemplate);
36
36
  const l = s ? s.fieldInfos : [];
37
- return G(a)?.filter((n) => n.name === t).forEach((n) => {
37
+ return W(a)?.filter((n) => n.name === t).forEach((n) => {
38
38
  const d = !r && l ? l.filter((g) => g.fieldName === n.name) : void 0, o = r ? e.getFieldAlias(t) : d?.length ? d[0].label : n.alias;
39
39
  /^raster.(item|service)pixelvalue/iu.test(t) && (n.type = "double");
40
40
  const u = {
@@ -44,11 +44,11 @@ function ue(a) {
44
44
  u.codedValues = fe(t, a), me(u), u.simpleFieldType && (i = u);
45
45
  }), i;
46
46
  }
47
- function G(a) {
47
+ function W(a) {
48
48
  const { layer: e } = a;
49
49
  return F(e) || V(e) || I(e) && e.rasterFields.length ? e.rasterFields : e.fields;
50
50
  }
51
- async function A(a) {
51
+ async function E(a) {
52
52
  a.statisticsStatus = "in-progress";
53
53
  const { layer: e, view: t } = a;
54
54
  if (F(e) || V(e) || w(e) || T(e))
@@ -64,7 +64,7 @@ async function de(a) {
64
64
  if (F(e) || V(e) || T(e))
65
65
  throw new Error("could not get statistics for ImageryTileLayer/WCSLayer/VoxelLayer");
66
66
  if (!r || r.layerField.type === "oid" || r.layerField.type === "guid" || r.layerField.type === "global-id")
67
- return { totalCount: await A(a), nullcount: 0 };
67
+ return { totalCount: await E(a), nullcount: 0 };
68
68
  try {
69
69
  const s = await B({
70
70
  layer: e,
@@ -78,7 +78,7 @@ async function de(a) {
78
78
  if (f(s.nullcount) && !l)
79
79
  return { ...s, totalCount: s.count + s.nullcount };
80
80
  {
81
- const m = await A(a);
81
+ const m = await E(a);
82
82
  return { ...s, totalCount: m };
83
83
  }
84
84
  } catch {
@@ -89,7 +89,7 @@ async function ce(a) {
89
89
  const { layer: e, view: t, fieldName: i } = a;
90
90
  if (F(e) || V(e) || T(e))
91
91
  throw new Error("could not get unique values for ImageryLayer/ImageryTileLayer/WCSLayer/VoxelLayer");
92
- Z(e) && (e.outFields = ["*"]);
92
+ P(e) && (e.outFields = ["*"]);
93
93
  try {
94
94
  return await K({
95
95
  layer: e,
@@ -138,20 +138,20 @@ function me(a) {
138
138
  }
139
139
  function fe(a, e) {
140
140
  const { layer: t } = e;
141
- if (M(t) && t.subtypeField === a) {
141
+ if (Z(t) && t.subtypeField === a) {
142
142
  const d = t.parent?.subtypes?.find((o) => o.code === t.subtypeCode);
143
143
  if (d)
144
- return [new R({ code: d.code, name: d.name })];
144
+ return [new x({ code: d.code, name: d.name })];
145
145
  }
146
146
  if (!y(t) && !I(t))
147
147
  return;
148
148
  const i = y(t) ? t.typeIdField : void 0, r = y(t) ? t.types : void 0;
149
149
  let s;
150
- const m = G(e)?.find((d) => d.name === a), n = m?.domain;
150
+ const m = W(e)?.find((d) => d.name === a), n = m?.domain;
151
151
  return y(t) && i && r ? (i === a ? s = r.map(
152
152
  (d) => (
153
153
  // fake coded values
154
- new R({
154
+ new x({
155
155
  code: d.id,
156
156
  name: d.name
157
157
  })
@@ -163,21 +163,21 @@ function fe(a, e) {
163
163
  let g = !1;
164
164
  s.forEach((p) => {
165
165
  p.code === u.code && (g = !0, `, ${p.name},`.includes(`, ${u.name},`) || (p.name += `, ${u.name}`));
166
- }), g || s.push(_.clone(u));
166
+ }), g || s.push(C.clone(u));
167
167
  });
168
168
  } else d.domains[a].codedValues && d.domains[a].codedValues.forEach((o) => {
169
169
  let u = !1;
170
170
  s.forEach((g) => {
171
171
  g.code === o.code && (u = !0, `, ${g.name},`.includes(`, ${o.name},`) || (g.name += `, ${o.name}`));
172
- }), u || s.push(_.clone(o));
172
+ }), u || s.push(C.clone(o));
173
173
  });
174
- })), !s.length && n?.codedValues && (s = _.clone(n.codedValues))) : n?.codedValues && (s = m?.domain?.codedValues), s?.length ? s : void 0;
174
+ })), !s.length && n?.codedValues && (s = C.clone(n.codedValues))) : n?.codedValues && (s = m?.domain?.codedValues), s?.length ? s : void 0;
175
175
  }
176
176
  async function pe(a) {
177
177
  const { view: e, layer: t } = a;
178
178
  if (I(t) || F(t) || V(t))
179
179
  throw new Error("could not get feature");
180
- if (y(t) && !t.url || U(t)) {
180
+ if (y(t) && !t.url || M(t)) {
181
181
  const i = t.createQuery();
182
182
  i.start = 0, i.num = 5, i.outFields = ["*"];
183
183
  const r = await t.queryFeatures(i);
@@ -188,7 +188,7 @@ async function pe(a) {
188
188
  if (!e)
189
189
  return await O(a);
190
190
  let i;
191
- if (M(t) || X(t)) {
191
+ if (Z(t) || X(t)) {
192
192
  let s = t.parent;
193
193
  for (; Y(s) || ee(s); )
194
194
  s = s.parent;
@@ -217,9 +217,9 @@ async function O(a) {
217
217
  return "sourceJSON" in e && e.sourceJSON?.advancedQueryCapabilities?.supportsPagination && (t.num = 1), await e.queryFeatures(t);
218
218
  }
219
219
  async function ge(a, e) {
220
- if (Z(a))
220
+ if (P(a))
221
221
  return await he(a);
222
- if (y(a) || ie(a) || W(a) || U(a) || se(a))
222
+ if (y(a) || ie(a) || U(a) || M(a) || se(a))
223
223
  return await a.queryFeatureCount();
224
224
  if (e && (w(a) || N(a)))
225
225
  return await ve(a, e);
@@ -236,17 +236,17 @@ async function ve(a, e) {
236
236
  return await (await e.whenLayerView(a)).queryFeatureCount();
237
237
  }
238
238
  const ye = j`:host{height:100%}.container{padding:var(--calcite-space-xs);background-color:var(--calcite-color-surface-2)}.title{font-weight:700;padding:5px 0}.missing,.data{color:#a9a9a9}.count{white-space:nowrap}.section{padding:var(--calcite-space-xs) 0}.statistics-row{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);padding:var(--calcite-space-xs) 0;display:flex;justify-content:space-between}.statistics-row-top-values{border-top:var(--calcite-border-width-sm) solid var(--calctie-color-border-2);padding:20px 0 var(--calcite-space-xs) 0;display:flex;justify-content:space-between}`;
239
- class Fe extends Q {
239
+ class Fe extends H {
240
240
  constructor() {
241
241
  super(...arguments), this._messages = re({ blocking: !0 }), this.initialized = !1, this._propWatcherTask = new J(this, {
242
242
  task: async ([e, t]) => {
243
243
  const i = f(e) && f(t);
244
- if (f(e) || q("error", this, L("layer")), f(t) || q("error", this, L("fieldName")), !i)
244
+ if (f(e) || _("error", this, D("layer")), f(t) || _("error", this, D("fieldName")), !i)
245
245
  throw new Error();
246
246
  await this.processProps(), this._propWatcherTask.autoRun = !1;
247
247
  },
248
248
  args: () => [this.layer, this.fieldName]
249
- }), this.oneFeatureResponseStatus = "missing", this.statisticsStatus = "missing", this.uniqueValuesStatus = "missing", this.hideAlias = !1, this.hideNumericFormat = !1, this.hideStatistics = !1, this.arcgisComplete = D(), this.arcgisFieldInfoComplete = D();
249
+ }), this.oneFeatureResponseStatus = "missing", this.statisticsStatus = "missing", this.uniqueValuesStatus = "missing", this.hideAlias = !1, this.hideNumericFormat = !1, this.hideStatistics = !1, this.arcgisComplete = Q();
250
250
  }
251
251
  static {
252
252
  this.properties = { oneFeatureResponseStatus: 16, oneFeatureResponse: 16, statisticsStatus: 16, statistics: 16, uniqueValuesStatus: 16, uniqueValues: 16, view: 0, layer: 0, fieldName: 1, hideAlias: 5, hideNumericFormat: 5, hideStatistics: 5 };
@@ -270,7 +270,7 @@ class Fe extends Q {
270
270
  let s;
271
271
  if (t.declaredClass === "esri.layers.support.Sublayer") {
272
272
  const l = t;
273
- e && await x.whenOnce(() => !e.updating), s = await l.createFeatureLayer(), await s?.load();
273
+ e && await L.whenOnce(() => !e.updating), s = await l.createFeatureLayer(), await s?.load();
274
274
  }
275
275
  if (this.oneFeatureResponseStatus = "missing", this.oneFeatureResponse = void 0, this.statisticsStatus = "missing", this.statistics = void 0, this.uniqueValuesStatus = "missing", this.uniqueValues = void 0, this.props = {
276
276
  view: e,
@@ -278,10 +278,10 @@ class Fe extends Q {
278
278
  fieldName: i,
279
279
  hideStatistics: r
280
280
  }, this.props.fieldInfo = ue(this.props), !this.props.fieldInfo) {
281
- q("error", this, `Field ${i} does not exist in layer.`);
281
+ _("error", this, `Field ${i} does not exist in layer.`);
282
282
  return;
283
283
  }
284
- W(t) && z.request.interceptors?.push({
284
+ U(t) && z.request.interceptors?.push({
285
285
  urls: `${ne(t)}/${t.layerId}`,
286
286
  before(l) {
287
287
  l.requestOptions.authMode = "no-prompt";
@@ -290,7 +290,7 @@ class Fe extends Q {
290
290
  }
291
291
  async processPropsPart2() {
292
292
  const { layer: e, hideStatistics: t } = this;
293
- if (await this.requestOneFeature(), w(e) || k(e) || E(e)) {
293
+ if (await this.requestOneFeature(), w(e) || R(e) || k(e)) {
294
294
  this.uniqueValuesStatus = "failed", this.statisticsStatus = "failed";
295
295
  return;
296
296
  }
@@ -336,7 +336,7 @@ class Fe extends Q {
336
336
  setUpTimeZoneHandle() {
337
337
  this.timeZoneHandle?.remove();
338
338
  const { props: e } = this, { view: t, fieldInfo: i } = e;
339
- ["date", "timestamp-offset"].includes(this._getStatisticsType(i)) && (this.timeZoneHandle = x.watch(() => t?.timeZone, () => this.requestUpdate()));
339
+ ["date", "timestamp-offset"].includes(this._getStatisticsType(i)) && (this.timeZoneHandle = L.watch(() => t?.timeZone, () => this.requestUpdate()));
340
340
  }
341
341
  _getFieldTypeLabel(e) {
342
342
  const { _messages: t } = this, i = t.fieldTypes;
@@ -503,7 +503,7 @@ class Fe extends Q {
503
503
  if (this.completeRefHandler && clearInterval(this.completeRefHandler), e) {
504
504
  let t = 0;
505
505
  this.completeRefHandler = setInterval(() => {
506
- (t > 130 || this.isFinished(this.uniqueValuesStatus) && this.isFinished(this.statisticsStatus)) && (clearInterval(this.completeRefHandler), this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit()), t++;
506
+ (t > 130 || this.isFinished(this.uniqueValuesStatus) && this.isFinished(this.statisticsStatus)) && (clearInterval(this.completeRefHandler), this.arcgisComplete.emit()), t++;
507
507
  }, 1e3);
508
508
  }
509
509
  }
@@ -551,7 +551,7 @@ class Fe extends Q {
551
551
  }
552
552
  originalLayerSupportsFieldConfigs() {
553
553
  const { layer: e } = this;
554
- return P.supportsFieldConfiguration(e);
554
+ return A.supportsFieldConfiguration(e);
555
555
  }
556
556
  getPopupTemplateFieldInfo() {
557
557
  const { props: e } = this, { layer: t, fieldName: i } = e;
@@ -583,7 +583,7 @@ class Fe extends Q {
583
583
  if (!y(i))
584
584
  return "";
585
585
  const { fieldInfo: r } = t, s = r.layerField.description;
586
- return c`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${C({
586
+ return c`<div class="section"><div class="title">${e.fieldDescription}</div><div class=${q({
587
587
  missing: !s
588
588
  })}>${s || e.fieldDescriptionNotSet}</div></div>`;
589
589
  }
@@ -592,7 +592,7 @@ class Fe extends Q {
592
592
  if (!y(i))
593
593
  return "";
594
594
  const { fieldInfo: r } = t, s = this._getFieldValueTypeCamelCase(r);
595
- return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${C(s ? "" : "missing")}>${s ? e.fieldValueTypes[s] : e.fieldValueTypeNotSet}</div></div>`;
595
+ return c`<div class="section"><div class="title">${e.fieldValueType}</div><div class=${q(s ? "" : "missing")}>${s ? e.fieldValueTypes[s] : e.fieldValueTypeNotSet}</div></div>`;
596
596
  }
597
597
  renderFieldSampleValue() {
598
598
  const { oneFeatureResponse: e, oneFeatureResponseStatus: t, statisticsStatus: i, statistics: r, uniqueValuesStatus: s, uniqueValues: l, _messages: m, props: n } = this, { layer: d, fieldName: o, fieldInfo: u } = n, { statistics: g } = m;
@@ -603,7 +603,7 @@ class Fe extends Q {
603
603
  (p === void 0 || p === null && v.attributes[o] !== null) && (p = v.attributes[o]);
604
604
  }) : i === "success" ? p = r?.min ?? void 0 : s === "success" && (p = l?.uniqueValueInfos?.[0]?.value ?? l?.uniqueValueInfos?.[1]?.value ?? void 0);
605
605
  const S = u.codedValues;
606
- return f(p) && (S ? p = S.find((v) => p === v.code)?.name || p : p = this._getDisplayString(p, { useFieldFormatting: !0 })), c`<div class="section"><div class="title">${m.fieldSampleValue}</div><div class=${C(t === "failed" && i === "failed" && s === "failed" || !f(p) ? "missing" : "")}>${t === "success" || i === "success" || s === "success" ? p?.toString() ?? g.allNulls : t === "failed" && i === "failed" && s === "failed" ? m.fieldSampleNotAvailable : m.fieldSampleRetrieving}</div></div>`;
606
+ return f(p) && (S ? p = S.find((v) => p === v.code)?.name || p : p = this._getDisplayString(p, { useFieldFormatting: !0 })), c`<div class="section"><div class="title">${m.fieldSampleValue}</div><div class=${q(t === "failed" && i === "failed" && s === "failed" || !f(p) ? "missing" : "")}>${t === "success" || i === "success" || s === "success" ? p?.toString() ?? g.allNulls : t === "failed" && i === "failed" && s === "failed" ? m.fieldSampleNotAvailable : m.fieldSampleRetrieving}</div></div>`;
607
607
  }
608
608
  renderFieldNumericFormat() {
609
609
  const { _messages: e, props: t, hideNumericFormat: i } = this, { fieldName: r, fieldInfo: s, layer: l } = t;
@@ -629,7 +629,7 @@ class Fe extends Q {
629
629
  }
630
630
  renderFieldStatistics() {
631
631
  const { statisticsStatus: e, uniqueValuesStatus: t, hideStatistics: i, _messages: r, props: s } = this, { layer: l, fieldInfo: m } = s;
632
- return i ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : k(l) || E(l) || w(l) || F(l) || T(l) || ["long"].includes(m.layerField.type) ? (this.arcgisComplete.emit(), this.arcgisFieldInfoComplete.emit(), "") : c`<div class="section"><div class="title">${r.fieldStatistics}</div>${!this.isFinished(t) && !this.isFinished(e) ? this.renderWaitingForStatistics() : e === "failed" && t === "failed" ? this.renderNoStatistics() : this.renderStatistics()}</div>`;
632
+ return i ? (this.arcgisComplete.emit(), "") : R(l) || k(l) || w(l) || F(l) || T(l) || ["long"].includes(m.layerField.type) ? (this.arcgisComplete.emit(), "") : c`<div class="section"><div class="title">${r.fieldStatistics}</div>${!this.isFinished(t) && !this.isFinished(e) ? this.renderWaitingForStatistics() : e === "failed" && t === "failed" ? this.renderNoStatistics() : this.renderStatistics()}</div>`;
633
633
  }
634
634
  renderWaitingForStatistics() {
635
635
  const { _messages: e } = this;
@@ -711,7 +711,7 @@ class Fe extends Q {
711
711
  return c`<div class="statistics-row"><div>${r.numberOfNulls}</div>${f(s) ? c`<div class="data">${this._printNumValue(s)}</div>` : c`<div class="missing">--</div>`}</div>`;
712
712
  }
713
713
  }
714
- H("arcgis-field-info", Fe);
714
+ G("arcgis-field-info", Fe);
715
715
  export {
716
716
  Fe as ArcgisFieldInfo
717
717
  };