@arcgis/common-components 5.2.0-next.11 → 5.2.0-next.110

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 (172) hide show
  1. package/LICENSE.md +4 -2
  2. package/README.md +2 -2
  3. package/dist/cdn/24BY6E4U.js +2 -0
  4. package/dist/cdn/{MCZBUYS5.js → 26TPKYHY.js} +2 -2
  5. package/dist/cdn/2P3QKSBJ.js +2 -0
  6. package/dist/cdn/3ENYIWMV.js +2 -0
  7. package/dist/cdn/3YTGG7RF.js +2 -0
  8. package/dist/cdn/{VQLI4IE7.js → 6YKEQTXQ.js} +2 -2
  9. package/dist/cdn/{L5RMOAO3.js → 73AR55J2.js} +2 -2
  10. package/dist/cdn/746MUQGB.js +2 -0
  11. package/dist/cdn/{Y5Y7IXOV.js → 74MDECVO.js} +1 -1
  12. package/dist/cdn/AHWD5KV4.js +2 -0
  13. package/dist/cdn/ALOLCOFN.js +2 -0
  14. package/dist/cdn/B2QFPLR5.js +2 -0
  15. package/dist/cdn/{WEKRF34E.js → B6QUU35R.js} +2 -2
  16. package/dist/cdn/BGN6KRHS.js +2 -0
  17. package/dist/cdn/BQD6UQIB.js +2 -0
  18. package/dist/cdn/{JLPZ3OR2.js → BSSCT4Z5.js} +2 -2
  19. package/dist/cdn/CT3ZUD4C.js +2 -0
  20. package/dist/cdn/D2RCMLMS.js +2 -0
  21. package/dist/cdn/{5KS7T5BY.js → D2YGEFGL.js} +2 -2
  22. package/dist/cdn/DICEO27I.js +2 -0
  23. package/dist/cdn/{ECNI2A4K.js → E4NVOXNZ.js} +1 -1
  24. package/dist/cdn/{GVOQ2CB7.js → EY5CL247.js} +2 -2
  25. package/dist/cdn/EZH7L65E.js +2 -0
  26. package/dist/cdn/{LKUOAV7B.js → F2XLHROQ.js} +2 -2
  27. package/dist/cdn/F3UPNSY4.js +2 -0
  28. package/dist/cdn/F7ZMTKDL.js +2 -0
  29. package/dist/cdn/GAXWOAWM.js +2 -0
  30. package/dist/cdn/GV62Q7D7.js +2 -0
  31. package/dist/cdn/H4MYODDU.js +2 -0
  32. package/dist/cdn/{OBIWQRXY.js → IUQEF23H.js} +2 -2
  33. package/dist/cdn/KIWPQY6T.js +4 -0
  34. package/dist/cdn/KMWJCWRS.js +2 -0
  35. package/dist/cdn/{L2JNUMXB.js → KOQXEMEM.js} +2 -2
  36. package/dist/cdn/LE43VGSR.js +2 -0
  37. package/dist/cdn/NMDESY3T.js +2 -0
  38. package/dist/cdn/NXUTEL5Q.js +2 -0
  39. package/dist/cdn/P3DCEHGK.js +2 -0
  40. package/dist/cdn/P6IUT6XO.js +2 -0
  41. package/dist/cdn/P7I4EXSU.js +2 -0
  42. package/dist/cdn/Q7STPO4U.js +2 -0
  43. package/dist/cdn/QJJFF4PI.js +2 -0
  44. package/dist/cdn/{4W7JZPB6.js → SHMWZ2AY.js} +2 -2
  45. package/dist/cdn/{3P53QRGS.js → ST5VEH7P.js} +2 -2
  46. package/dist/cdn/U2K7ABGL.js +2 -0
  47. package/dist/cdn/VIUFXHPL.js +2 -0
  48. package/dist/cdn/{UGWLCTVM.js → YJTI6KPW.js} +1 -1
  49. package/dist/cdn/{XRARFMJ7.js → ZBSOCWIQ.js} +2 -2
  50. package/dist/cdn/{3V5M7OHL.js → ZZGYCYHP.js} +4 -4
  51. package/dist/cdn/assets/field-pick-list/t9n/messages.en.json +1 -1
  52. package/dist/cdn/assets/slider-field/t9n/messages.en.json +1 -0
  53. package/dist/cdn/assets/slider-histogram-range/t9n/messages.en.json +1 -0
  54. package/dist/cdn/index.js +2 -2
  55. package/dist/cdn/main.css +1 -1
  56. package/dist/chunks/element-reference-controller.js +19 -0
  57. package/dist/chunks/{commonFunctions.js → general.js} +1 -1
  58. package/dist/chunks/internal-types.js +1 -1
  59. package/dist/chunks/layer-utils.js +53 -41
  60. package/dist/chunks/locale.js +15 -7
  61. package/dist/chunks/resources.js +1 -1
  62. package/dist/chunks/runtime.js +1 -1
  63. package/dist/chunks/strategies.js +287 -0
  64. package/dist/chunks/toolbar.js +9 -0
  65. package/dist/chunks/types.js +16 -0
  66. package/dist/chunks/useT9n.js +1 -1
  67. package/dist/chunks/utils.js +59 -0
  68. package/dist/chunks/utils2.js +20 -0
  69. package/dist/chunks/utils3.js +7 -0
  70. package/dist/components/arcgis-ckeditor5/customElement.d.ts +23 -0
  71. package/dist/components/arcgis-ckeditor5/customElement.js +3 -3
  72. package/dist/components/arcgis-ckeditor5-popover/customElement.js +2 -2
  73. package/dist/components/arcgis-color-input/customElement.d.ts +2 -1
  74. package/dist/components/arcgis-color-input/customElement.js +2 -2
  75. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +23 -0
  76. package/dist/components/arcgis-coordinate-system-picker/customElement.js +2 -2
  77. package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +1 -1
  78. package/dist/components/arcgis-field-info/customElement.d.ts +1 -1
  79. package/dist/components/arcgis-field-info/customElement.js +249 -226
  80. package/dist/components/arcgis-field-info/index.js +1 -0
  81. package/dist/components/arcgis-field-info/utils/basic.d.ts +3 -1
  82. package/dist/components/arcgis-field-pick-list/customElement.d.ts +15 -12
  83. package/dist/components/arcgis-field-pick-list/customElement.js +206 -123
  84. package/dist/components/arcgis-field-pick-list/index.js +4 -3
  85. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +3 -1
  86. package/dist/components/arcgis-histogram/customElement.d.ts +39 -2
  87. package/dist/components/arcgis-histogram/customElement.js +106 -91
  88. package/dist/components/arcgis-label-input/customElement.js +19 -15
  89. package/dist/components/arcgis-picker-input/customElement.js +1 -1
  90. package/dist/components/arcgis-ramp-color/customElement.js +1 -1
  91. package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
  92. package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
  93. package/dist/components/arcgis-slider/customElement.d.ts +11 -3
  94. package/dist/components/arcgis-slider/customElement.js +372 -349
  95. package/dist/components/arcgis-slider-field/customElement.d.ts +298 -0
  96. package/dist/components/arcgis-slider-field/customElement.js +96 -0
  97. package/dist/components/arcgis-slider-field/index.d.ts +1 -0
  98. package/dist/components/arcgis-slider-field/index.js +2 -0
  99. package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +390 -0
  100. package/dist/components/arcgis-slider-histogram-range/customElement.js +120 -0
  101. package/dist/components/arcgis-slider-histogram-range/index.d.ts +1 -0
  102. package/dist/components/arcgis-slider-histogram-range/index.js +3 -0
  103. package/dist/components/arcgis-slider-histogram-range/types.d.ts +6 -0
  104. package/dist/components/arcgis-slider-input/customElement.js +1 -1
  105. package/dist/components/arcgis-ticks/customElement.d.ts +11 -3
  106. package/dist/components/arcgis-ticks/customElement.js +101 -80
  107. package/dist/components/arcgis-toolbar/customElement.d.ts +67 -0
  108. package/dist/components/arcgis-toolbar/customElement.js +108 -0
  109. package/dist/components/arcgis-toolbar/index.d.ts +1 -0
  110. package/dist/components/arcgis-toolbar/index.js +2 -0
  111. package/dist/components/arcgis-toolbar/types.d.ts +41 -0
  112. package/dist/components/arcgis-toolbar-action/customElement.d.ts +97 -0
  113. package/dist/components/arcgis-toolbar-action/customElement.js +52 -0
  114. package/dist/components/arcgis-toolbar-action/index.d.ts +1 -0
  115. package/dist/components/arcgis-toolbar-action/index.js +3 -0
  116. package/dist/components/arcgis-toolbar-group/customElement.d.ts +38 -0
  117. package/dist/components/arcgis-toolbar-group/customElement.js +48 -0
  118. package/dist/components/arcgis-toolbar-group/index.d.ts +1 -0
  119. package/dist/components/arcgis-toolbar-group/index.js +2 -0
  120. package/dist/components/arcgis-toolbar-item/customElement.d.ts +83 -0
  121. package/dist/components/arcgis-toolbar-item/customElement.js +42 -0
  122. package/dist/components/arcgis-toolbar-item/index.d.ts +1 -0
  123. package/dist/components/arcgis-toolbar-item/index.js +4 -0
  124. package/dist/components/arcgis-toolbar-more-button/customElement.d.ts +52 -0
  125. package/dist/components/arcgis-toolbar-more-button/customElement.js +68 -0
  126. package/dist/components/arcgis-toolbar-more-button/index.d.ts +1 -0
  127. package/dist/components/arcgis-toolbar-more-button/index.js +6 -0
  128. package/dist/components/arcgis-toolbar-split-button/customElement.d.ts +51 -0
  129. package/dist/components/arcgis-toolbar-split-button/customElement.js +67 -0
  130. package/dist/components/arcgis-toolbar-split-button/index.d.ts +1 -0
  131. package/dist/components/arcgis-toolbar-split-button/index.js +6 -0
  132. package/dist/components/arcgis-toolbar-stack/customElement.d.ts +48 -0
  133. package/dist/components/arcgis-toolbar-stack/customElement.js +174 -0
  134. package/dist/components/arcgis-toolbar-stack/index.d.ts +1 -0
  135. package/dist/components/arcgis-toolbar-stack/index.js +1 -0
  136. package/dist/components/arcgis-unique-values-list/customElement.js +116 -96
  137. package/dist/components/arcgis-value-picker/customElement.js +6 -6
  138. package/dist/components/arcgis-value-picker-collection/customElement.js +1 -1
  139. package/dist/components/arcgis-value-picker-combobox/customElement.js +1 -1
  140. package/dist/components/arcgis-value-picker-label/customElement.js +1 -1
  141. package/dist/components/arcgis-value-picker-slider/customElement.js +1 -1
  142. package/dist/docs/api.json +1 -1
  143. package/dist/docs/docs.json +1 -1
  144. package/dist/docs/vscode.css-custom-data.json +1 -1
  145. package/dist/docs/vscode.html-custom-data.json +1 -1
  146. package/dist/docs/web-types.json +1 -1
  147. package/dist/index.d.ts +62 -0
  148. package/dist/index.js +3 -1
  149. package/dist/loader.js +14 -5
  150. package/dist/types/lumina.d.ts +58 -2
  151. package/dist/types/preact.d.ts +67 -2
  152. package/dist/types/react.d.ts +76 -2
  153. package/dist/types/stencil.d.ts +60 -4
  154. package/dist/utils/types.d.ts +14 -1
  155. package/package.json +6 -6
  156. package/dist/cdn/2XA6O2MP.js +0 -2
  157. package/dist/cdn/4BJYJUMR.js +0 -2
  158. package/dist/cdn/5U5NQ3F5.js +0 -2
  159. package/dist/cdn/77HZGUSC.js +0 -2
  160. package/dist/cdn/A3CISHRB.js +0 -2
  161. package/dist/cdn/AFBKMYU6.js +0 -4
  162. package/dist/cdn/IUJ4ILLQ.js +0 -2
  163. package/dist/cdn/JPD7Z3MB.js +0 -2
  164. package/dist/cdn/LB7I345F.js +0 -2
  165. package/dist/cdn/LBD3GPSD.js +0 -2
  166. package/dist/cdn/MCH3WQ4X.js +0 -2
  167. package/dist/cdn/N7C4DINF.js +0 -2
  168. package/dist/cdn/NKMDS2IH.js +0 -2
  169. package/dist/cdn/PSITQBDP.js +0 -2
  170. package/dist/cdn/TXYPZ6MB.js +0 -2
  171. package/dist/cdn/WLYFLEI6.js +0 -2
  172. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +0 -1
@@ -13,8 +13,17 @@ import type { ArcgisRampColor } from "../components/arcgis-ramp-color/customElem
13
13
  import type { ArcgisRampColorBreak } from "../components/arcgis-ramp-color-break/customElement.js";
14
14
  import type { ArcgisRampOpacity } from "../components/arcgis-ramp-opacity/customElement.js";
15
15
  import type { ArcgisSlider } from "../components/arcgis-slider/customElement.js";
16
+ import type { ArcgisSliderField } from "../components/arcgis-slider-field/customElement.js";
17
+ import type { ArcgisSliderHistogramRange } from "../components/arcgis-slider-histogram-range/customElement.js";
16
18
  import type { ArcgisSliderInput } from "../components/arcgis-slider-input/customElement.js";
17
19
  import type { ArcgisTicks } from "../components/arcgis-ticks/customElement.js";
20
+ import type { ArcgisToolbar } from "../components/arcgis-toolbar/customElement.js";
21
+ import type { ArcgisToolbarAction } from "../components/arcgis-toolbar-action/customElement.js";
22
+ import type { ArcgisToolbarGroup } from "../components/arcgis-toolbar-group/customElement.js";
23
+ import type { ArcgisToolbarItem } from "../components/arcgis-toolbar-item/customElement.js";
24
+ import type { ArcgisToolbarMoreButton } from "../components/arcgis-toolbar-more-button/customElement.js";
25
+ import type { ArcgisToolbarSplitButton } from "../components/arcgis-toolbar-split-button/customElement.js";
26
+ import type { ArcgisToolbarStack } from "../components/arcgis-toolbar-stack/customElement.js";
18
27
  import type { ArcgisUniqueValuesList } from "../components/arcgis-unique-values-list/customElement.js";
19
28
  import type { ArcgisValuePicker } from "../components/arcgis-value-picker/customElement.js";
20
29
  import type { ArcgisValuePickerCollection } from "../components/arcgis-value-picker-collection/customElement.js";
@@ -73,7 +82,7 @@ interface StencilArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "
73
82
  onArcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
74
83
  }
75
84
 
76
- interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
85
+ interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
77
86
  }
78
87
 
79
88
  interface StencilArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, StencilJsx.HTMLAttributes<ArcgisLabelInput> {
@@ -94,13 +103,27 @@ interface StencilArcgisRampColorBreak extends Partial<Pick<ArcgisRampColorBreak,
94
103
  interface StencilArcgisRampOpacity extends Partial<Pick<ArcgisRampOpacity, "fillColor" | "layout" | "max" | "min" | "stops">>, StencilJsx.HTMLAttributes<ArcgisRampOpacity> {
95
104
  }
96
105
 
97
- interface StencilArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOverlap" | "autoDestroyDisabled" | "disabled" | "fillPlacement" | "fullRangeMax" | "fullRangeMin" | "keyboardLargeStep" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "popoverPlacement" | "precision" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "segmentsDraggingDisabled" | "showRangeLabels" | "steps" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, StencilJsx.HTMLAttributes<ArcgisSlider> {
106
+ interface StencilArcgisSlider extends Partial<Pick<ArcgisSlider, "allowValuesOverlap" | "autoDestroyDisabled" | "disabled" | "fillPlacement" | "fullRangeMax" | "fullRangeMin" | "keyboardLargeStep" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverDisplay" | "popoverLabel" | "popoverPlacement" | "precision" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "segmentsDraggingDisabled" | "showRangeLabels" | "steps" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, StencilJsx.HTMLAttributes<ArcgisSlider> {
98
107
  onArcgisActiveValueChange?: EventHandler<ArcgisSlider["arcgisActiveValueChange"]>;
99
108
  onArcgisChange?: EventHandler<ArcgisSlider["arcgisChange"]>;
100
109
  onArcgisInput?: EventHandler<ArcgisSlider["arcgisInput"]>;
101
110
  onArcgisRangeChange?: EventHandler<ArcgisSlider["arcgisRangeChange"]>;
102
111
  }
103
112
 
113
+ interface StencilArcgisSliderField extends Partial<Pick<ArcgisSliderField, "disabled" | "fieldType" | "fillPlacement" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "popoverLabel" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "valueLabelsPlacement" | "values">>, StencilJsx.HTMLAttributes<ArcgisSliderField> {
114
+ onArcgisActiveValueChange?: EventHandler<ArcgisSliderField["arcgisActiveValueChange"]>;
115
+ onArcgisChange?: EventHandler<ArcgisSliderField["arcgisChange"]>;
116
+ onArcgisInput?: EventHandler<ArcgisSliderField["arcgisInput"]>;
117
+ onArcgisRangeChange?: EventHandler<ArcgisSliderField["arcgisRangeChange"]>;
118
+ }
119
+
120
+ interface StencilArcgisSliderHistogramRange extends Partial<Pick<ArcgisSliderHistogramRange, "average" | "bins" | "dataLines" | "excludedBarColor" | "fieldType" | "fillPlacement" | "includedBarColor" | "label" | "labelFormatter" | "layout" | "max" | "min" | "rangeLabelsEditingEnabled" | "rangeLabelsPlacement" | "showRangeLabels" | "standardDeviation" | "standardDeviationCount" | "valueLabelsDisplay" | "valueLabelsEditingEnabled" | "values">>, StencilJsx.HTMLAttributes<ArcgisSliderHistogramRange> {
121
+ onArcgisActiveValueChange?: EventHandler<ArcgisSliderHistogramRange["arcgisActiveValueChange"]>;
122
+ onArcgisChange?: EventHandler<ArcgisSliderHistogramRange["arcgisChange"]>;
123
+ onArcgisInput?: EventHandler<ArcgisSliderHistogramRange["arcgisInput"]>;
124
+ onArcgisRangeChange?: EventHandler<ArcgisSliderHistogramRange["arcgisRangeChange"]>;
125
+ }
126
+
104
127
  interface StencilArcgisSliderInput extends Partial<Pick<ArcgisSliderInput, "disabled" | "flipLabels" | "label" | "max" | "min" | "scale" | "step" | "unitsLabel" | "value" | "withSteppers">>, StencilJsx.HTMLAttributes<ArcgisSliderInput> {
105
128
  onArcgisSliderInputValueChange?: EventHandler<ArcgisSliderInput["arcgisSliderInputValueChange"]>;
106
129
  onArcgisValueChange?: EventHandler<ArcgisSliderInput["arcgisValueChange"]>;
@@ -110,6 +133,30 @@ interface StencilArcgisTicks extends Partial<Pick<ArcgisTicks, "interactive" | "
110
133
  onArcgisTickClick?: EventHandler<ArcgisTicks["arcgisTickClick"]>;
111
134
  }
112
135
 
136
+ interface StencilArcgisToolbar extends Partial<Pick<ArcgisToolbar, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, StencilJsx.HTMLAttributes<ArcgisToolbar> {
137
+ }
138
+
139
+ interface StencilArcgisToolbarAction extends Partial<Pick<ArcgisToolbarAction, "active" | "appearance" | "disabled" | "icon" | "iconFlipRtl" | "indicator" | "kind" | "labelText" | "loading" | "textEnabled" | "tooltipText">>, StencilJsx.HTMLAttributes<ArcgisToolbarAction> {
140
+ onArcgisRenderedActionChanged?: EventHandler<ArcgisToolbarAction["arcgisRenderedActionChanged"]>;
141
+ onArcgisToolbarItemSelected?: EventHandler<ArcgisToolbarAction["arcgisToolbarItemSelected"]>;
142
+ }
143
+
144
+ interface StencilArcgisToolbarGroup extends Partial<Pick<ArcgisToolbarGroup, "preferEndSlot" | "priority">>, StencilJsx.HTMLAttributes<ArcgisToolbarGroup> {
145
+ }
146
+
147
+ interface StencilArcgisToolbarItem extends Partial<Pick<ArcgisToolbarItem, "active" | "disabled" | "icon" | "iconFlipRtl" | "labelText" | "lastActivated" | "loading" | "tooltipText">>, StencilJsx.HTMLAttributes<ArcgisToolbarItem> {
148
+ onArcgisItemSelected?: EventHandler<ArcgisToolbarItem["arcgisItemSelected"]>;
149
+ }
150
+
151
+ interface StencilArcgisToolbarMoreButton extends Partial<Pick<ArcgisToolbarMoreButton, "menuAppearance" | "overflowActionLabel" | "priority">>, StencilJsx.HTMLAttributes<ArcgisToolbarMoreButton> {
152
+ }
153
+
154
+ interface StencilArcgisToolbarSplitButton extends Partial<Pick<ArcgisToolbarSplitButton, "menuAppearance" | "overflowActionLabel" | "priority">>, StencilJsx.HTMLAttributes<ArcgisToolbarSplitButton> {
155
+ }
156
+
157
+ interface StencilArcgisToolbarStack extends Partial<Pick<ArcgisToolbarStack, "layout" | "relativePosition" | "scale" | "toolbarKind" | "tooltipAppearance">>, StencilJsx.HTMLAttributes<ArcgisToolbarStack> {
158
+ }
159
+
113
160
  interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesList, "fieldName" | "layer" | "maxHeight" | "multiple" | "numberFormatOptions" | "partialUniqueValues" | "selectedValues" | "showFilterLength" | "sortBy" | "uniqueValues" | "view" | "visualizationSource">>, StencilJsx.HTMLAttributes<ArcgisUniqueValuesList> {
114
161
  onArcgisChange?: EventHandler<ArcgisUniqueValuesList["arcgisChange"]>;
115
162
  onArcgisLoad?: EventHandler<ArcgisUniqueValuesList["arcgisLoad"]>;
@@ -157,8 +204,17 @@ interface ExposedElements {
157
204
  "arcgis-ramp-color-break": StencilArcgisRampColorBreak;
158
205
  "arcgis-ramp-opacity": StencilArcgisRampOpacity;
159
206
  "arcgis-slider": StencilArcgisSlider;
207
+ "arcgis-slider-field": StencilArcgisSliderField;
208
+ "arcgis-slider-histogram-range": StencilArcgisSliderHistogramRange;
160
209
  "arcgis-slider-input": StencilArcgisSliderInput;
161
210
  "arcgis-ticks": StencilArcgisTicks;
211
+ "arcgis-toolbar": StencilArcgisToolbar;
212
+ "arcgis-toolbar-action": StencilArcgisToolbarAction;
213
+ "arcgis-toolbar-group": StencilArcgisToolbarGroup;
214
+ "arcgis-toolbar-item": StencilArcgisToolbarItem;
215
+ "arcgis-toolbar-more-button": StencilArcgisToolbarMoreButton;
216
+ "arcgis-toolbar-split-button": StencilArcgisToolbarSplitButton;
217
+ "arcgis-toolbar-stack": StencilArcgisToolbarStack;
162
218
  "arcgis-unique-values-list": StencilArcgisUniqueValuesList;
163
219
  "arcgis-value-picker": StencilArcgisValuePicker;
164
220
  "arcgis-value-picker-collection": StencilArcgisValuePickerCollection;
@@ -171,8 +227,8 @@ export namespace JSX {
171
227
  export interface IntrinsicElements extends ExposedElements {}
172
228
  }
173
229
 
174
- declare module "@stencil/core/internal/stencil-public-runtime" {
175
- export namespace h.JSX {
230
+ declare module "@stencil/core" {
231
+ export namespace JSX {
176
232
  interface IntrinsicElements extends ExposedElements {}
177
233
  }
178
234
  }
@@ -49,6 +49,19 @@ export interface PickListFieldInfo {
49
49
  showDeleteAction?: boolean;
50
50
  }
51
51
 
52
+ /**
53
+ * A non-selectable field that opens a list of selectable fields.
54
+ *
55
+ * @internal
56
+ */
57
+ export interface PickListFieldInfoWithSubFields {
58
+ name: Field["name"];
59
+ alias?: Field["alias"];
60
+ type: string;
61
+ description?: Field["description"];
62
+ subFieldInfos: PickListFieldInfo[];
63
+ }
64
+
52
65
  /**
53
66
  * @deprecated - use PickListFieldInfo instead
54
67
  * @internal
@@ -62,5 +75,5 @@ export type IPickListFieldInfo = PickListFieldInfo;
62
75
  */
63
76
  export interface PickListGroupInfo {
64
77
  title?: string;
65
- fields: PickListFieldInfo[];
78
+ fields: PickListFieldInfo[] | PickListFieldInfoWithSubFields[];
66
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/common-components",
3
- "version": "5.2.0-next.11",
3
+ "version": "5.2.0-next.110",
4
4
  "description": "ArcGIS Maps SDK for JavaScript common components",
5
5
  "keywords": [
6
6
  "2D",
@@ -45,16 +45,16 @@
45
45
  ],
46
46
  "license": "SEE LICENSE IN LICENSE.md",
47
47
  "dependencies": {
48
+ "@arcgis/lumina": "5.2.0-next.110",
49
+ "@arcgis/toolkit": "5.2.0-next.110",
48
50
  "@esri/arcgis-html-sanitizer": "~4.1.0",
49
51
  "@lit/task": "^1.0.3",
50
52
  "lit": "^3.3.0",
51
- "tslib": "^2.8.1",
52
- "@arcgis/lumina": "5.2.0-next.11",
53
- "@arcgis/toolkit": "5.2.0-next.11"
53
+ "tslib": "^2.8.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@arcgis/core": "^5.2.0-next",
57
- "@esri/calcite-components": "^5.1.1-next.3"
56
+ "@arcgis/core": "5.2.0-next.110",
57
+ "@esri/calcite-components": "^5.2.0-next.65"
58
58
  },
59
59
  "css.customData": [
60
60
  "dist/docs/vscode.css-custom-data.json"
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{B as a,C as s,D as c,E as d,J as p,h as u,j as n,s as h}from"./AFBKMYU6.js";export default $arcgis.t(([{formatNumber:m}])=>{var _=u`:host{display:block}:host([hidden]){display:none}.content{display:flex;flex-direction:column}.readOnlyLabel{display:block;font-size:var(--calcite-font-size-sm);font-variant-numeric:tabular-nums;line-height:var(--calcite-font-line-height-sm);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-inline:.5rem;padding-block:3px;border-color:var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px);color:var(--calcite-color-text-1)}:host(:not([read-only])) .readOnlyLabel{position:absolute;opacity:0}:host([alignment="start"]){.content{align-items:start}.readOnlyLabel{text-align:start}}:host([alignment="end"]){.content{align-items:end}.readOnlyLabel{text-align:end}}:host([alignment="center"]){.content{align-items:center}.readOnlyLabel{text-align:center}}calcite-button{inline-size:100%;--calcite-offset-invert-focus: 1;--calcite-internal-animation-timing-fast: 0}calcite-input-number{inline-size:100%;--calcite-internal-animation-timing-fast: 0}`,l=class extends c{constructor(){super(...arguments),this._buttonRef=a(),this._inputRef=a(),this._labelRef=a(),this._formatOptions={style:"decimal",useGrouping:!0,minimumFractionDigits:0,maximumFractionDigits:2},this._formatValue=t=>m(t,this._formatOptions),this._pointerDownPosition=null,this._displayedValue="",this._editing=!1,this.alignment="center",this.readOnly=!1,this.value=0,this.arcgisChange=h({cancelable:!1})}static{this.properties={_displayedValue:16,_editing:16,alignment:3,editing:39,labelFormatter:0,readOnly:7,value:11}}static{this.styles=_}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get editing(){return this._editing}async edit(){this._enterEdit()}getLabelBoundingClientRect(){return this._labelRef.value?this._labelRef.value.getBoundingClientRect():this.el.getBoundingClientRect()}willUpdate(t){if(t.has("value")||t.has("labelFormatter")){let e=this.value;this._displayedValue=this._internalLabelFormatter(e)}}updated(t){let e=this._inputRef.value,i=this._buttonRef.value,o=this.renderRoot.querySelector(".readOnlyLabel");if(e&&i&&o){let r=o.offsetWidth;i.style.width=`${r}px`,e.style.width=`${r}px`}}_enterEdit(){this._editing||this.readOnly||(this._editing=!0,this.requestUpdate("editing",!1),this.updateComplete.then(async()=>{let t=this._inputRef.value;await t?.setFocus(),await t?.selectText()}))}_exitEdit(t,e=!1){this._editing&&(t&&this._commitValue(this._inputRef.value),this._displayedValue=this._internalLabelFormatter(this.value),this._inputRef.value&&(this._inputRef.value.value=`${this.value}`),this._editing=!1,this.requestUpdate("editing",!0),e||this.updateComplete.then(async()=>{await this._buttonRef.value?.setFocus()}))}_commitValue(t){let e=this._parseNumber(t?.value??"");e!==null&&this.value!==e&&(this.value=e,this.arcgisChange.emit())}_parseNumber(t){if(t.trim()==="")return null;let e=Number(t);return Number.isFinite(e)?e:this.value??null}_internalLabelFormatter(t){let e=this.labelFormatter;return e?e(t,this._formatValue)??this._formatValue(t):this._formatValue(t)}_onBlur(){this._exitEdit(!0,!0)}_onValueChange(t){this._commitValue(t.currentTarget)}_onKeyDown(t){t.key==="Enter"?(this._exitEdit(!0),t.stopPropagation(),t.preventDefault()):t.key==="Escape"&&(this._exitEdit(!1),t.stopPropagation(),t.preventDefault())}_onPointerDown(t){this._pointerDownPosition={x:t.clientX,y:t.clientY}}_onClick(t){if(this._pointerDownPosition){let e=t.clientX-this._pointerDownPosition.x,i=t.clientY-this._pointerDownPosition.y;if(Math.sqrt(e*e+i*i)>2)return}this._enterEdit(),this._pointerDownPosition=null}_onInput(t){let e=this._parseNumber(t.currentTarget.value??"");if(e===null){this._displayedValue="";return}this._displayedValue=this._internalLabelFormatter(e)}render(){let{alignment:t,_displayedValue:e}=this,i=[n`<span class="readOnlyLabel"><span ${s(this._labelRef)}>${e}</span></span>`];return this.readOnly||i.push(n`<calcite-button .alignment=${t} appearance=transparent .hidden=${this._editing} kind=neutral @pointerdown=${this._onPointerDown} @click=${this._onClick} scale=s width=full ${s(this._buttonRef)}>${e}</calcite-button>`,n`<calcite-input-number .alignment=${t} group-separator .hidden=${!this._editing} number-button-type=none @calciteInputNumberChange=${this._onValueChange} @keydown=${this._onKeyDown} @blur=${this._onBlur} @input=${this._onInput} scale=s status=idle .value=${`${this.value}`} ${s(this._inputRef)}></calcite-input-number>`),n`<div class=${d({content:!0})}>${i}</div>`}};p("arcgis-label-input",l);return l},"intl")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- function r(n,t){return n!=null&&typeof n=="object"&&"type"in n&&n.type===t}function e(n){return r(n,"csv")}function a(n){return u(n)&&!n.url}function u(n){return r(n,"feature")}function s(n){return r(n,"geojson")}function o(n){return r(n,"imagery")}function i(n){return r(n,"imagery-tile")}function c(n){return r(n,"map-image")}function f(n){return r(n,"ogc-feature")}function p(n){return r(n,"scene")}function y(n){return r(n,"stream")}function l(n){return r(n,"sublayer")&&"parent"in n}function b(n){return r(n,"subtype-group")&&"sublayers"in n}function g(n){return r(n,"subtype-sublayer")}function m(n){return r(n,"voxel")}function j(n){return r(n,"wcs")}function v(n){return r(n,"wfs")}export{e as a,a as b,u as c,s as d,o as e,i as f,c as g,f as h,p as i,y as j,l as k,b as l,g as m,m as n,j as o,v as p};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{c as $,e as D,l as S,m as T}from"./4BJYJUMR.js";import{a as M,b as p,c as E}from"./JLPZ3OR2.js";import{a as A}from"./N7C4DINF.js";import"./WLYFLEI6.js";import"./IUJ4ILLQ.js";import{a as z}from"./5KS7T5BY.js";import{B,C as x,D as C,J as _,h as R,j as q,n as N,o as F,s as I}from"./AFBKMYU6.js";export default $arcgis.t(([{formatDate:Z,convertDateFormatToIntlOptions:y,formatDateOnly:te,formatTimeOnly:ie,formatTimestamp:W,formatNumber:se},ne,{clone:L}])=>{function P(i){return new Date(`1970-01-01T${i}Z`).getTime()}function H(i){return new Date(`${i} 00:00:00`).getTime()}function ae(i,e,s){let t;return e==="unknown"?t=Z(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):t=Z(i,{...y("short-date-short-time"),timeZone:e}),t}function oe(i){return i?te(i,y("short-date")):""}function le(i){let e;return typeof i=="string"?e=ie(i,y("short-date-long-time")):e=Z(i,{...y("long-time"),timeZone:"utc"}),e}function re(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?W(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):W(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?Z(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):Z(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function j(i,e,s){if(!$(i)&&!T(i)&&!S(i)&&!D(i))return;let t;return E(i,s).fields.forEach(l=>{let n=l.name,d="domain"in l?l.domain:void 0;if(!D(i)&&i.subtypeField===n){let m;S(i)||$(i)?m=i.subtypes:m=i.parent.subtypes,m.forEach(r=>{T(i)&&i.subtypeCode!==r.code||(e.name===n&&(t=t||[],t.push({code:r.code,name:r.name})),r.domains&&Object.keys(r.domains).forEach(a=>{if(e.name===a){let o=r.domains[a];o?.type==="coded-value"&&o?.codedValues&&o.codedValues.forEach(u=>{let c=!1;t=t||[],t.forEach(g=>{g.code===u.code&&(c=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),c||t.push({code:u.code,name:u.name})})}}))})}if(e.name===n&&($(i)||D(i))){let m=$(i)?i.typeIdField:void 0,r=$(i)?i.types:void 0;$(i)&&m&&r?(m===n?t=r.map(a=>({code:a.id,name:a.name})):(t=t||[],r.forEach(a=>{if(!a.domains?.[n]||a.domains[n].type==="inherited"){let o=d;o?.codedValues&&o.codedValues.forEach(u=>{let c=!1;t.forEach(g=>{g.code===u.code&&(c=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),c||t.push(L(u))})}else a.domains?.[n]?.codedValues&&a.domains[n].codedValues.forEach(o=>{let u=!1;t.forEach(c=>{c.code===o.code&&(u=!0,`| ${c.name} |`.includes(`| ${o.name} |`)||(c.name+=` | ${o.name}`))}),u||t.push(L(o))})})),!t?.length&&d?.codedValues&&(t=L(d.codedValues))):d?.codedValues&&(t=d.codedValues)}}),t}function U(i,e){let s=e;if(s){let t="";for(let l=0;l<s.length;l++){let n=s[l];n.code==i&&(t+=(t.length?" | ":"")+n.name)}return t.length||(t=`${i}`),t}return i}function G(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function J(i){switch(i.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"blob":case"geometry":case"global-id":case"guid":case"oid":case"raster":case"xml":return;default:return i.type}}var ue=R`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`,k=class extends C{constructor(){super(...arguments),this.dropdownNode=B(),this._messages=A({blocking:!0}),this._propWatcherTask=new M(this,{task:async([e,s,t])=>{let l=p(e)&&p(s)||p(t);if(!p(t)&&!p(e)&&!p(s)?N("error",this,F("uniqueValues")):p(t)||(p(e)||N("error",this,F("layer")),p(s)||N("error",this,F("fieldName"))),p(e)&&p(s)){let{visualizationSource:n}=this;if(!E(e,n).fields?.filter(d=>d.name===s))throw N("error",this,"Field could not be found."),new Error}if(!l)throw new Error;await this.processProps()},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=I(),this.arcgisSortByChange=I(),this.arcgisLoad=I()}static{this.properties={initialRender:16,view:0,layer:0,visualizationSource:1,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=ue}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(p(e?.uniqueValueInfos)){let{uniqueValueInfos:s,partialUniqueValues:t}=e;return{uniqueValues:s,partialUniqueValues:t}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}async processProps(){let{layer:e,fieldName:s,view:t,visualizationSource:l}=this,n=(e?E(e,l):void 0)?.fields?.filter(d=>d.name===s)?.[0];if(p(this.uniqueValues))this.fieldInfo={layerField:n,fieldDomains:e&&n?j(e,n,l):void 0,simpleType:e&&n?J(n):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&n){this.fieldInfo={layerField:n,fieldDomains:j(e,n,l),simpleType:J(n),partialUniqueValues:!1};let{fieldInfo:d}=this;try{let m=await ne({layer:e,view:t,field:s,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:!1}),r=G(n),a=m.uniqueValueInfos.filter(o=>p(o.value)?n.type==="string"&&!r||n.type==="guid"?o.value!=="<Null>"&&`${o.value}`.trim()!=="":(G(n)||n.type,o.value!=="<Null>"&&o.value!==""):!1);a.sort((o,u)=>o.count>u.count?-1:o.count<u.count?1:0),d.fieldDomains?.length&&d.fieldDomains.forEach(o=>{a.find(u=>u.value===o.code)||a.push({value:o.code,count:0})}),d.uniqueValueInfos=a,d.partialUniqueValues=m.uniqueValueInfos.length===2e3,this.arcgisLoad.emit()}catch(m){if(N("error",this,`uniqueValues() - ${m.message}`),this.hasFieldDomains(d)){let r=[];d.fieldDomains.forEach(a=>{r.find(o=>o.value===a.code)||r.push({value:a.code,count:void 0})})}}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:s}=this;this.listNode=e,s&&e?.setAttribute("style",`max-height: ${s||400}px`)}onSortMenuSelect(e){let s=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=s||void 0,this.arcgisSortByChange.emit(s||void 0)}isSameLists(e,s){if(!e&&!s)return!0;if(!e||!s||e?.length!==s?.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==s[t])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:s,sortBy:t,multiple:l,initialRender:n,showFilterLength:d,_messages:m}=this,{fieldDomains:r,uniqueValueInfos:a,partialUniqueValues:o,layerField:u}=e,c=u?.type;if(!a?.length)return"";let g=c?["small-integer","big-integer","integer","single","double","long","oid"].includes(c):!1,K=c?["date","date-only","time-only"].includes(c):!1,Q=v=>{v.sort((h,f)=>h.count<=f.count?1:-1)},X=v=>{let h=r?.length;v.sort((f,V)=>{if(!h&&g)return(typeof f.value=="string"?Number.parseFloat(f.value):f.value)-(typeof V.value=="string"?Number.parseFloat(V.value):V.value);{let w=h?U(f.value,r):f.label??f.value,b=h?U(V.value,r):V.label??V.value;return`${w}`.startsWith("_")?1:`${b}`.startsWith("_")?-1:`${w}`.localeCompare(`${b}`)}})},Y=(v,h)=>{v.sort((f,V)=>{let w=h?.indexOf(f.value)??-1,b=h?.indexOf(V.value)??-1;return w===b||w>-1&&b>-1?0:w>b?-1:1})};X(a),!t||t==="count"?Q(a):t==="selected"&&Y(a,s);let ee=a.map(v=>this.renderUniqueValue(v)),O;return o&&!n&&(O=q`<div class="unique-values-content-list-msg">${m.errors.tooManyUniqueValues}</div>`),q`<div class="container"><calcite-list .label=${m.values} class="popover-unique-list" .filterEnabled=${a.length>=d} .selectionMode=${l?"multiple":"single"} .filterPlaceholder=${m.searchValues} @calciteListChange=${v=>{let h=v.target.selectedItems.map(f=>f.value);!r&&c==="date-only"?h=h?.map(f=>H(f)):!r&&c==="time-only"?h=h?.map(f=>P(f)):c&&["date","oid","small-integer","big-integer","integer","long"].includes(c)?h=h?.map(f=>Number.parseInt(f)):c&&["single","double"].includes(c)&&(h=h?.map(f=>Number.parseFloat(f))),!this.isSameLists(h,this.selectedValues)&&(this.selectedValues=h,this.arcgisChange.emit(h))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${x(this.setListRef)}>${a.length>=d&&!n?this.renderSort(g,K):null}${ee}</calcite-list>${O}</div>`},error:()=>""})}renderSort(e,s){let{sortBy:t,_messages:l}=this;return q`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${x(this.dropdownNode)}><calcite-action slot=trigger .label=${l.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${t==="count"||!p(t)} data-value=count>${l.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="name"} data-value=name>${e||s?l.sortAscending:l.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="selected"} data-value=selected>${l.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:s,initialRender:t,view:l,fieldInfo:n,numberFormatOptions:d}=this,{fieldDomains:m,uniqueValueInfos:r,simpleType:a}=n,o=l&&"timeZone"in l&&l.timeZone||"system",u=m?.length?U(e.value,m):a==="date"?ae(e.value,o):a==="date-only"?oe(e.value):a==="time-only"?le(e.value):a==="timestamp-offset"?re(e.value,l):typeof e.value=="number"?se(e.value,d):e.label??e.value,c=s?a==="date-only"?s.includes(m?.length?e.value:H(e.value)):a==="time-only"?s.includes(m?.length?e.value:P(e.value)):s.includes(e.value):!1;return z(`list-item_${e.value}`,q`<calcite-list-item .label=${`${u}`} .value=${`${e.value}`} .selected=${c}>${p(e.count)&&(r.length>200&&!t||r.length<=200)?q`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};_("arcgis-unique-values-list",k);return k},"intl","smartMapping/statistics/uniqueValues","core/lang")