@arcgis/common-components 5.2.0-next.7 → 5.2.0-next.71

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 (233) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/27EUJ42B.js +2 -0
  3. package/dist/cdn/{OOBX2C2L.js → 4XUU4OUP.js} +1 -1
  4. package/dist/cdn/A4KQMXWW.js +2 -0
  5. package/dist/cdn/ACW3B44H.js +2 -0
  6. package/dist/cdn/AJJMK7ZT.js +2 -0
  7. package/dist/cdn/{MINFRX4Y.js → B7ORUBJS.js} +1 -1
  8. package/dist/cdn/BAMLORLB.js +2 -0
  9. package/dist/cdn/CRQPVTKI.js +2 -0
  10. package/dist/cdn/DHC2LUQ2.js +2 -0
  11. package/dist/cdn/DZ6EM67E.js +2 -0
  12. package/dist/cdn/EGEAKIAD.js +2 -0
  13. package/dist/cdn/HP3DHL2Q.js +2 -0
  14. package/dist/cdn/ILCKIZB7.js +2 -0
  15. package/dist/cdn/ILQGAJMU.js +2 -0
  16. package/dist/cdn/L6PNCJWB.js +2 -0
  17. package/dist/cdn/{6XE5JNJ7.js → M7GRLXXP.js} +3 -3
  18. package/dist/cdn/M7LOQA5N.js +2 -0
  19. package/dist/cdn/{YG4PY2H3.js → MU3XP7TW.js} +1 -1
  20. package/dist/cdn/N3NWNVDF.js +2 -0
  21. package/dist/cdn/NSZAGPYW.js +2 -0
  22. package/dist/cdn/{YVCGEEMG.js → NWD6VRJ3.js} +1 -1
  23. package/dist/cdn/NZVGCVVU.js +2 -0
  24. package/dist/cdn/{WJ3TYWP2.js → O3W35LFP.js} +1 -1
  25. package/dist/cdn/PMV2N3L3.js +2 -0
  26. package/dist/cdn/PRJM53Y4.js +2 -0
  27. package/dist/cdn/PRS7WL5D.js +2 -0
  28. package/dist/cdn/PWYX2MLC.js +2 -0
  29. package/dist/cdn/QH3LDC7I.js +2 -0
  30. package/dist/cdn/QHSBMU6L.js +2 -0
  31. package/dist/cdn/QSPFNHZ6.js +2 -0
  32. package/dist/cdn/TWW63D32.js +2 -0
  33. package/dist/cdn/UJMJOA5M.js +2 -0
  34. package/dist/cdn/UQYWVAV5.js +2 -0
  35. package/dist/cdn/VCZLD7ZT.js +2 -0
  36. package/dist/cdn/VDZ3DCU7.js +2 -0
  37. package/dist/cdn/VOBBBIYC.js +2 -0
  38. package/dist/cdn/X2G4GAGR.js +2 -0
  39. package/dist/cdn/XGVHA4YP.js +2 -0
  40. package/dist/cdn/XJLIKZFY.js +2 -0
  41. package/dist/cdn/Z5QBBHLD.js +2 -0
  42. package/dist/cdn/{232BH3SJ.js → ZRJT3BTV.js} +1 -1
  43. package/dist/cdn/assets/slider-field/t9n/messages.en.json +1 -0
  44. package/dist/cdn/assets/value-picker/t9n/messages.ar.json +1 -0
  45. package/dist/cdn/assets/value-picker/t9n/messages.bg.json +1 -0
  46. package/dist/cdn/assets/value-picker/t9n/messages.bs.json +1 -0
  47. package/dist/cdn/assets/value-picker/t9n/messages.ca.json +1 -0
  48. package/dist/cdn/assets/value-picker/t9n/messages.cs.json +1 -0
  49. package/dist/cdn/assets/value-picker/t9n/messages.da.json +1 -0
  50. package/dist/cdn/assets/value-picker/t9n/messages.de.json +1 -0
  51. package/dist/cdn/assets/value-picker/t9n/messages.el.json +1 -0
  52. package/dist/cdn/assets/value-picker/t9n/messages.en.json +1 -0
  53. package/dist/cdn/assets/value-picker/t9n/messages.es.json +1 -0
  54. package/dist/cdn/assets/value-picker/t9n/messages.et.json +1 -0
  55. package/dist/cdn/assets/value-picker/t9n/messages.fi.json +1 -0
  56. package/dist/cdn/assets/value-picker/t9n/messages.fr.json +1 -0
  57. package/dist/cdn/assets/value-picker/t9n/messages.he.json +1 -0
  58. package/dist/cdn/assets/value-picker/t9n/messages.hr.json +1 -0
  59. package/dist/cdn/assets/value-picker/t9n/messages.hu.json +1 -0
  60. package/dist/cdn/assets/value-picker/t9n/messages.id.json +1 -0
  61. package/dist/cdn/assets/value-picker/t9n/messages.it.json +1 -0
  62. package/dist/cdn/assets/value-picker/t9n/messages.ja.json +1 -0
  63. package/dist/cdn/assets/value-picker/t9n/messages.ko.json +1 -0
  64. package/dist/cdn/assets/value-picker/t9n/messages.lt.json +1 -0
  65. package/dist/cdn/assets/value-picker/t9n/messages.lv.json +1 -0
  66. package/dist/cdn/assets/value-picker/t9n/messages.nl.json +1 -0
  67. package/dist/cdn/assets/value-picker/t9n/messages.no.json +1 -0
  68. package/dist/cdn/assets/value-picker/t9n/messages.pl.json +1 -0
  69. package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +1 -0
  70. package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +1 -0
  71. package/dist/cdn/assets/value-picker/t9n/messages.ro.json +1 -0
  72. package/dist/cdn/assets/value-picker/t9n/messages.ru.json +1 -0
  73. package/dist/cdn/assets/value-picker/t9n/messages.sk.json +1 -0
  74. package/dist/cdn/assets/value-picker/t9n/messages.sl.json +1 -0
  75. package/dist/cdn/assets/value-picker/t9n/messages.sr.json +1 -0
  76. package/dist/cdn/assets/value-picker/t9n/messages.sv.json +1 -0
  77. package/dist/cdn/assets/value-picker/t9n/messages.th.json +1 -0
  78. package/dist/cdn/assets/value-picker/t9n/messages.tr.json +1 -0
  79. package/dist/cdn/assets/value-picker/t9n/messages.uk.json +1 -0
  80. package/dist/cdn/assets/value-picker/t9n/messages.vi.json +1 -0
  81. package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +1 -0
  82. package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +1 -0
  83. package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +1 -0
  84. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +1 -0
  85. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +1 -0
  86. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +1 -0
  87. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +1 -0
  88. package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +1 -0
  89. package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +1 -0
  90. package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +1 -0
  91. package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +1 -0
  92. package/dist/cdn/assets/value-picker-combobox/t9n/messages.en.json +1 -0
  93. package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +1 -0
  94. package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +1 -0
  95. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +1 -0
  96. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +1 -0
  97. package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +1 -0
  98. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +1 -0
  99. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +1 -0
  100. package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +1 -0
  101. package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +1 -0
  102. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +1 -0
  103. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +1 -0
  104. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +1 -0
  105. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +1 -0
  106. package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +1 -0
  107. package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +1 -0
  108. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +1 -0
  109. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +1 -0
  110. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +1 -0
  111. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +1 -0
  112. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +1 -0
  113. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +1 -0
  114. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +1 -0
  115. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +1 -0
  116. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +1 -0
  117. package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +1 -0
  118. package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +1 -0
  119. package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +1 -0
  120. package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +1 -0
  121. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +1 -0
  122. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +1 -0
  123. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +1 -0
  124. package/dist/cdn/index.js +1 -1
  125. package/dist/cdn/main.css +1 -1
  126. package/dist/chunks/element-reference-controller.js +17 -0
  127. package/dist/chunks/layer-utils.js +52 -40
  128. package/dist/chunks/locale.js +14 -6
  129. package/dist/chunks/utils.js +69 -0
  130. package/dist/chunks/utils2.js +20 -0
  131. package/dist/chunks/utils3.js +7 -0
  132. package/dist/components/arcgis-ckeditor5/customElement.d.ts +6 -1
  133. package/dist/components/arcgis-ckeditor5/customElement.js +2 -2
  134. package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
  135. package/dist/components/arcgis-color-input/customElement.d.ts +2 -1
  136. package/dist/components/arcgis-color-input/customElement.js +6 -6
  137. package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +6 -1
  138. package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
  139. package/dist/components/arcgis-field-info/customElement.js +246 -216
  140. package/dist/components/arcgis-field-info/index.js +1 -0
  141. package/dist/components/arcgis-field-info/utils/basic.d.ts +3 -1
  142. package/dist/components/arcgis-field-pick-list/customElement.js +54 -62
  143. package/dist/components/arcgis-field-pick-list/utils/types.d.ts +3 -1
  144. package/dist/components/arcgis-histogram/customElement.d.ts +30 -0
  145. package/dist/components/arcgis-histogram/customElement.js +103 -90
  146. package/dist/components/arcgis-picker-input/customElement.d.ts +6 -2
  147. package/dist/components/arcgis-picker-input/customElement.js +7 -7
  148. package/dist/components/arcgis-slider/customElement.d.ts +4 -3
  149. package/dist/components/arcgis-slider/customElement.js +308 -288
  150. package/dist/components/arcgis-slider-field/customElement.d.ts +298 -0
  151. package/dist/components/arcgis-slider-field/customElement.js +378 -0
  152. package/dist/components/arcgis-slider-field/index.d.ts +1 -0
  153. package/dist/components/arcgis-slider-field/index.js +2 -0
  154. package/dist/components/arcgis-ticks/customElement.js +100 -79
  155. package/dist/components/arcgis-toolbar/customElement.d.ts +47 -0
  156. package/dist/components/arcgis-toolbar/customElement.js +82 -0
  157. package/dist/components/arcgis-toolbar/index.d.ts +1 -0
  158. package/dist/components/arcgis-toolbar/index.js +2 -0
  159. package/dist/components/arcgis-toolbar/types.d.ts +10 -0
  160. package/dist/components/arcgis-toolbar-action/customElement.d.ts +97 -0
  161. package/dist/components/arcgis-toolbar-action/customElement.js +57 -0
  162. package/dist/components/arcgis-toolbar-action/index.d.ts +1 -0
  163. package/dist/components/arcgis-toolbar-action/index.js +3 -0
  164. package/dist/components/arcgis-toolbar-group/customElement.d.ts +38 -0
  165. package/dist/components/arcgis-toolbar-group/customElement.js +47 -0
  166. package/dist/components/arcgis-toolbar-group/index.d.ts +1 -0
  167. package/dist/components/arcgis-toolbar-group/index.js +2 -0
  168. package/dist/components/arcgis-toolbar-item/customElement.d.ts +83 -0
  169. package/dist/components/arcgis-toolbar-item/customElement.js +42 -0
  170. package/dist/components/arcgis-toolbar-item/index.d.ts +1 -0
  171. package/dist/components/arcgis-toolbar-item/index.js +4 -0
  172. package/dist/components/arcgis-toolbar-more-button/customElement.d.ts +52 -0
  173. package/dist/components/arcgis-toolbar-more-button/customElement.js +68 -0
  174. package/dist/components/arcgis-toolbar-more-button/index.d.ts +1 -0
  175. package/dist/components/arcgis-toolbar-more-button/index.js +6 -0
  176. package/dist/components/arcgis-toolbar-split-button/customElement.d.ts +51 -0
  177. package/dist/components/arcgis-toolbar-split-button/customElement.js +66 -0
  178. package/dist/components/arcgis-toolbar-split-button/index.d.ts +1 -0
  179. package/dist/components/arcgis-toolbar-split-button/index.js +6 -0
  180. package/dist/components/arcgis-unique-values-list/customElement.js +115 -95
  181. package/dist/components/arcgis-value-picker/customElement.d.ts +377 -0
  182. package/dist/components/arcgis-value-picker/customElement.js +87 -0
  183. package/dist/components/arcgis-value-picker/index.d.ts +1 -0
  184. package/dist/components/arcgis-value-picker/index.js +3 -0
  185. package/dist/components/arcgis-value-picker/types.d.ts +69 -0
  186. package/dist/components/arcgis-value-picker-collection/customElement.d.ts +113 -0
  187. package/dist/components/arcgis-value-picker-collection/customElement.js +43 -0
  188. package/dist/components/arcgis-value-picker-collection/index.d.ts +1 -0
  189. package/dist/components/arcgis-value-picker-collection/index.js +1 -0
  190. package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +90 -0
  191. package/dist/components/arcgis-value-picker-combobox/customElement.js +55 -0
  192. package/dist/components/arcgis-value-picker-combobox/index.d.ts +1 -0
  193. package/dist/components/arcgis-value-picker-combobox/index.js +3 -0
  194. package/dist/components/arcgis-value-picker-label/customElement.d.ts +81 -0
  195. package/dist/components/arcgis-value-picker-label/customElement.js +51 -0
  196. package/dist/components/arcgis-value-picker-label/index.d.ts +1 -0
  197. package/dist/components/arcgis-value-picker-label/index.js +1 -0
  198. package/dist/components/arcgis-value-picker-slider/customElement.d.ts +173 -0
  199. package/dist/components/arcgis-value-picker-slider/customElement.js +60 -0
  200. package/dist/components/arcgis-value-picker-slider/index.d.ts +1 -0
  201. package/dist/components/arcgis-value-picker-slider/index.js +3 -0
  202. package/dist/docs/api.json +1 -1
  203. package/dist/docs/docs.json +1 -1
  204. package/dist/docs/vscode.css-custom-data.json +1 -1
  205. package/dist/docs/vscode.html-custom-data.json +1 -1
  206. package/dist/docs/web-types.json +1 -1
  207. package/dist/index.d.ts +96 -0
  208. package/dist/loader.js +17 -5
  209. package/dist/types/lumina.d.ts +79 -1
  210. package/dist/types/preact.d.ts +91 -1
  211. package/dist/types/react.d.ts +103 -1
  212. package/dist/types/stencil.d.ts +79 -1
  213. package/package.json +4 -4
  214. package/dist/cdn/2MN6S2HH.js +0 -2
  215. package/dist/cdn/4BJYJUMR.js +0 -2
  216. package/dist/cdn/5I5ODGDD.js +0 -2
  217. package/dist/cdn/AGGCAE6P.js +0 -2
  218. package/dist/cdn/BDF4ZLUF.js +0 -2
  219. package/dist/cdn/DDXCI6RK.js +0 -2
  220. package/dist/cdn/F45Q3BRT.js +0 -2
  221. package/dist/cdn/GEWXC2ZR.js +0 -2
  222. package/dist/cdn/HWEOBUAY.js +0 -2
  223. package/dist/cdn/IRIB5DXG.js +0 -2
  224. package/dist/cdn/KPJCYYYQ.js +0 -2
  225. package/dist/cdn/NKMDS2IH.js +0 -2
  226. package/dist/cdn/ORSF6IOL.js +0 -2
  227. package/dist/cdn/QEW7H22O.js +0 -2
  228. package/dist/cdn/UMIMGOKS.js +0 -2
  229. package/dist/cdn/YSXFXVP6.js +0 -2
  230. package/dist/cdn/YVWFGK4M.js +0 -2
  231. package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en-US.json +0 -1
  232. /package/dist/cdn/{ECNI2A4K.js → XEK22IDA.js} +0 -0
  233. /package/dist/chunks/{commonFunctions.js → general.js} +0 -0
@@ -0,0 +1,47 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as d } from "../../chunks/runtime.js";
3
+ import { html as p } from "lit";
4
+ import { LitElement as u, nothing as h } from "@arcgis/lumina";
5
+ import { L as m, W as i, a as g, i as b } from "../../chunks/utils.js";
6
+ import { u as f } from "../../chunks/utils2.js";
7
+ class C extends u {
8
+ constructor() {
9
+ super(...arguments), this.#e = new MutationObserver(() => this.#r()), this.preferEndSlot = !1, this.priority = m.Default;
10
+ }
11
+ static {
12
+ this.properties = { _children: 16, preferEndSlot: 5, priority: 9 };
13
+ }
14
+ #t;
15
+ #e;
16
+ measure(e) {
17
+ const t = this._children;
18
+ if (!t?.length)
19
+ return [0];
20
+ const o = i.groupSeparator + i.groupPadding[e.scale], n = t.map((r) => r.measure(e)).reduce((r, s) => r.flatMap((a) => s.map((c) => a + c)), [0]);
21
+ return f(n.map((r) => o + r));
22
+ }
23
+ proxiedRender(e, t) {
24
+ const o = this._children;
25
+ if (!o)
26
+ return;
27
+ const l = this.preferEndSlot ? "actions-end" : void 0, n = t - i.groupPadding[e.scale] - i.groupSeparator, r = g(o, e, n);
28
+ return p`<calcite-action-group .scale=${e.scale} .layout=${e.layout} slot=${l ?? h}>${r.map(({ group: s, budget: a }) => s.proxiedRender(e, a))}</calcite-action-group>`;
29
+ }
30
+ connectedCallback() {
31
+ super.connectedCallback(), this.#e.observe(this.el, { childList: !0 }), this.#r();
32
+ }
33
+ disconnectedCallback() {
34
+ this.#e.disconnect(), super.disconnectedCallback();
35
+ }
36
+ #r() {
37
+ this.#t?.abort();
38
+ const e = Array.from(this.el.children).filter(b), t = new AbortController();
39
+ this.#t = t, Promise.all(e.map((o) => o.componentOnReady())).then(() => {
40
+ !this.isConnected || t.signal.aborted || (this._children = e);
41
+ });
42
+ }
43
+ }
44
+ d("arcgis-toolbar-group", C);
45
+ export {
46
+ C as ArcgisToolbarGroup
47
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,2 @@
1
+ import "@esri/calcite-components/components/calcite-action-group";
2
+ export * from "./customElement.js";
@@ -0,0 +1,83 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement, JsxNode } from "@arcgis/lumina";
3
+ import type { Icon } from "@esri/calcite-components/components/calcite-icon";
4
+ import type { MeasurementContext, RenderContext } from "../arcgis-toolbar/types.js";
5
+ import type { Action as Action } from "@esri/calcite-components/components/calcite-action";
6
+ import type { DropdownItem as DropdownItem } from "@esri/calcite-components/components/calcite-dropdown-item";
7
+
8
+ /**
9
+ * A configuration for an `arcgis-toolbar` action.
10
+ *
11
+ * This is a non-rendering element; it will have no effect unless used
12
+ * correctly within an `arcgis-toolbar-group`.
13
+ *
14
+ * Notes:
15
+ *
16
+ * - there is no `scale` for this element; rendered scale is controlled
17
+ * exclusively by the host `arcgis-toolbar`
18
+ *
19
+ * @internal
20
+ */
21
+ export abstract class ArcgisToolbarItem extends LitElement {
22
+ get actionElement(): Action | undefined;
23
+ /**
24
+ * Whether or not this action is shown in an 'active'/selected state.
25
+ *
26
+ * @default false
27
+ */
28
+ accessor active: boolean;
29
+ /**
30
+ * Determines if the action should be rendered in a disabled state.
31
+ *
32
+ * @default false
33
+ */
34
+ accessor disabled: boolean;
35
+ /**
36
+ * The icon to show in the rendered action. For best user experience, this should not be ommitted.
37
+ *
38
+ * @default "question-mark"
39
+ */
40
+ accessor icon: Icon["icon"];
41
+ /**
42
+ * Determines if icon is flipped in RTL direction
43
+ *
44
+ * @default false
45
+ */
46
+ accessor iconFlipRtl: boolean;
47
+ /**
48
+ * Text to show in the primary label field; do not depend on this ever being visible to the user.
49
+ *
50
+ * @default ""
51
+ */
52
+ accessor labelText: string;
53
+ /** @internal */
54
+ accessor lastActivated: Date | undefined;
55
+ /**
56
+ * Determines if action renders a loading spinner if possible
57
+ *
58
+ * @default false
59
+ */
60
+ accessor loading: boolean;
61
+ /**
62
+ * Text to show in the tooltip for the action.
63
+ *
64
+ * @default ""
65
+ */
66
+ accessor tooltipText: string;
67
+ /**
68
+ * @param parameter0
69
+ * @internal
70
+ */
71
+ measure(parameter0: MeasurementContext): number[];
72
+ /**
73
+ * @param context
74
+ * @param mode
75
+ * @param selected
76
+ * @internal
77
+ */
78
+ proxiedRender(context: RenderContext, mode: "collapsed-action" | "dropdown-item" | "expanded-action", selected?: boolean): JsxNode;
79
+ readonly arcgisItemSelected: import("@arcgis/lumina").TargetedEvent<this, { element: Action | DropdownItem | undefined; }>;
80
+ readonly "@eventTypes": {
81
+ arcgisItemSelected: ArcgisToolbarItem["arcgisItemSelected"]["detail"];
82
+ };
83
+ }
@@ -0,0 +1,42 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as p } from "../../chunks/runtime.js";
3
+ import { html as n } from "lit";
4
+ import { ref as f } from "lit/directives/ref.js";
5
+ import { LitElement as $, createEvent as g, nothing as c, safeClassMap as v } from "@arcgis/lumina";
6
+ import { W as s } from "../../chunks/utils.js";
7
+ import { E as b } from "../../chunks/element-reference-controller.js";
8
+ import { g as u } from "../../chunks/utils2.js";
9
+ class x extends $ {
10
+ constructor() {
11
+ super(...arguments), this._active = !1, this._elementReferenceController = new b(this), this.icon = "question-mark", this.tooltipText = "", this.labelText = "", this.disabled = !1, this.loading = !1, this.iconFlipRtl = !1, this.arcgisItemSelected = g();
12
+ }
13
+ static {
14
+ this.properties = { icon: 3, lastActivated: 0, active: 7, tooltipText: 1, labelText: 3, disabled: 7, loading: 7, iconFlipRtl: 7, actionElement: 32 };
15
+ }
16
+ get active() {
17
+ return this._active;
18
+ }
19
+ set active(t) {
20
+ t !== this._active && (this._active = t, t && (this.lastActivated = /* @__PURE__ */ new Date()));
21
+ }
22
+ get actionElement() {
23
+ return this._elementReferenceController.element;
24
+ }
25
+ measure({ scale: t }) {
26
+ return [s.action[t] + s.actionPadding[t]];
27
+ }
28
+ proxiedRender(t, i, r) {
29
+ const l = t.tooltipAppearance, a = this._elementReferenceController.element, m = l !== "native" && i === "collapsed-action", d = l === "calcite-dark" ? "calcite-mode-dark" : void 0, h = u(t), e = this.tooltipText || this.labelText;
30
+ return i === "dropdown-item" ? n`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon ?? c} .iconFlipRtl=${this.iconFlipRtl ? "both" : void 0} .label=${e} @click=${(o) => this._handleDropdownItemClick(o)} .selected=${this.active || r} title=${e ?? c}>${this.labelText}</calcite-dropdown-item>` : n`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${e} .loading=${this.loading} @click=${(o) => this._handleActionClick(o)} .scale=${t.scale} .text=${this.labelText} .textEnabled=${i === "expanded-action"} title=${(l === "native" ? e : void 0) ?? c} ${f(this._elementReferenceController.ref)}></calcite-action>${m && a ? n`<calcite-tooltip class=${v(d)} overlay-positioning=fixed .placement=${h} .referenceElement=${a}><span>${e}</span></calcite-tooltip>` : void 0}`;
31
+ }
32
+ _handleActionClick(t) {
33
+ this.isConnected && this.arcgisItemSelected?.emit({ element: t.currentTarget });
34
+ }
35
+ _handleDropdownItemClick(t) {
36
+ this.isConnected && this.arcgisItemSelected?.emit({ element: t.currentTarget });
37
+ }
38
+ }
39
+ p("arcgis-toolbar-item", x);
40
+ export {
41
+ x as ArcgisToolbarItem
42
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,4 @@
1
+ import "@esri/calcite-components/components/calcite-dropdown-item";
2
+ import "@esri/calcite-components/components/calcite-action";
3
+ import "@esri/calcite-components/components/calcite-tooltip";
4
+ export * from "./customElement.js";
@@ -0,0 +1,52 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement, JsxNode } from "@arcgis/lumina";
3
+ import type { MeasurementContext, RenderContext } from "../arcgis-toolbar/types.js";
4
+
5
+ /**
6
+ * Configuration for a series of items that will be collapsed behind a 'more' overflow button
7
+ * depending on available space. This will render either all of the items in a flat list,
8
+ * or with an action that exposes an overflow list.
9
+ *
10
+ * This element does not apply any styling; unless there is overflow, it should not
11
+ * be visually evident at all.
12
+ *
13
+ * This element is only compatible with `arcgis-toolbar-item` elements,
14
+ * because it needs elements with consistent size and properties to support dynamic
15
+ * sizing and rendering behavior.
16
+ *
17
+ * @internal
18
+ */
19
+ export abstract class ArcgisToolbarMoreButton extends LitElement {
20
+ /**
21
+ * Controls the appearance of the menu
22
+ *
23
+ * @default "action-menu"
24
+ */
25
+ accessor menuAppearance: "action-menu" | "dropdown";
26
+ /**
27
+ * Label used for the overflow action trigger and its tooltip.
28
+ *
29
+ * @default "More actions"
30
+ */
31
+ accessor overflowActionLabel: string;
32
+ /**
33
+ * Controls layout priority, which determines space allocation and layout behavior.
34
+ * Setting this to ForceCollapse will result in a split-button appearance even with
35
+ * ample space for all managed items. Setting to NeverCollapse will reserve space for
36
+ * all items (no visible split button) even if that would require scrolling.
37
+ *
38
+ * @default 100
39
+ */
40
+ accessor priority: number;
41
+ /**
42
+ * @param context
43
+ * @internal
44
+ */
45
+ measure(context: MeasurementContext): number[];
46
+ /**
47
+ * @param context
48
+ * @param budget
49
+ * @internal
50
+ */
51
+ proxiedRender(context: RenderContext, budget: number): JsxNode;
52
+ }
@@ -0,0 +1,68 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as A } from "../../chunks/runtime.js";
3
+ import { ref as f } from "lit/directives/ref.js";
4
+ import { html as m } from "lit";
5
+ import { LitElement as C, nothing as v, safeClassMap as $ } from "@arcgis/lumina";
6
+ import { L as u } from "../../chunks/utils.js";
7
+ import { E as w } from "../../chunks/element-reference-controller.js";
8
+ import { a as g, u as _, g as y } from "../../chunks/utils2.js";
9
+ import { b as L } from "../../chunks/utils3.js";
10
+ class R extends C {
11
+ constructor() {
12
+ super(...arguments), this._elementReferenceController = new w(this), this._childrenObserver = new MutationObserver(() => {
13
+ this._syncChildren();
14
+ }), this.priority = u.Medium, this.menuAppearance = "action-menu", this.overflowActionLabel = "More actions";
15
+ }
16
+ static {
17
+ this.properties = { _children: 16, priority: 9, menuAppearance: 1, overflowActionLabel: 1 };
18
+ }
19
+ measure(e) {
20
+ const t = this._children?.length ?? 0;
21
+ if (!t)
22
+ return [0];
23
+ const i = g(e), l = t * i;
24
+ if (!(this.priority < u.NeverCollapse && t > 2))
25
+ return [l];
26
+ const s = Math.min(t, 2) * i, o = [s];
27
+ if (t <= 2 || this.priority <= u.ForceCollapse)
28
+ return o;
29
+ for (let n = 1; n < t - 1; n++)
30
+ o.push(s + i * n);
31
+ return _(o);
32
+ }
33
+ proxiedRender(e, t) {
34
+ const i = this._children;
35
+ if (!i)
36
+ return;
37
+ const { visible: l, hidden: r } = this._resolveActionsFromBudget(i, e, t), s = "hamburger", o = this.overflowActionLabel, n = e.tooltipAppearance, c = n !== "native", a = this._elementReferenceController.element, p = n === "calcite-dark" ? "calcite-mode-dark" : void 0, h = y(e), b = this.menuAppearance === "action-menu" ? m`<calcite-action-menu .label=${o} overlay-positioning=fixed .placement=${h}><calcite-action .icon=${s} .scale=${e.scale} slot=trigger .text=${o} title=${(n === "native" ? o : "") ?? v} ${f(this._elementReferenceController.ref)}></calcite-action>${r.map((d) => d.proxiedRender(e, "expanded-action"))}</calcite-action-menu>` : m`<calcite-dropdown overlay-positioning=fixed .placement=${h}><calcite-action .icon=${s} .scale=${e.scale} slot=trigger .text=${o} title=${(n === "native" ? o : "") ?? v} ${f(this._elementReferenceController.ref)}></calcite-action><calcite-dropdown-group selection-mode=none>${r.map((d) => d.proxiedRender(e, "dropdown-item"))}</calcite-dropdown-group></calcite-dropdown>`;
38
+ return m`${l.map((d) => d.proxiedRender(e, "collapsed-action"))}${r.length ? b : void 0}${r.length && c ? m`<calcite-tooltip class=${$(p)} overlay-positioning=fixed .placement=${h} .referenceElement=${a}><span>${o}</span></calcite-tooltip>` : void 0}`;
39
+ }
40
+ connectedCallback() {
41
+ super.connectedCallback(), this._childrenObserver.observe(this.el, { childList: !0 }), this._syncChildren();
42
+ }
43
+ disconnectedCallback() {
44
+ this._childrenObserver.disconnect(), super.disconnectedCallback();
45
+ }
46
+ _syncChildren() {
47
+ this._componentWaitAbortController?.abort();
48
+ const e = Array.from(this.el.querySelectorAll("arcgis-toolbar-item")), t = new AbortController();
49
+ this._componentWaitAbortController = t, Promise.all(e.map((i) => i.componentOnReady())).then(() => {
50
+ !this.isConnected || t.signal.aborted || (this._children = e);
51
+ });
52
+ }
53
+ _resolveActionsFromBudget(e, t, i) {
54
+ const l = e.find((a) => a.active) ?? e?.toSorted(L)?.at(0), r = Math.floor(i / g(t));
55
+ if (r >= e.length)
56
+ return { visible: [...e], hidden: [] };
57
+ const o = r - 1, n = e.slice(0, o), c = e.slice(o);
58
+ if (l && c.includes(l)) {
59
+ const [a] = c.splice(c.indexOf(l), 1), p = n.pop();
60
+ n.push(a), p && c.unshift(p);
61
+ }
62
+ return { visible: n, hidden: c };
63
+ }
64
+ }
65
+ A("arcgis-toolbar-more-button", R);
66
+ export {
67
+ R as ArcgisToolbarMoreButton
68
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,6 @@
1
+ import "@esri/calcite-components/components/calcite-action-menu";
2
+ import "@esri/calcite-components/components/calcite-action";
3
+ import "@esri/calcite-components/components/calcite-dropdown";
4
+ import "@esri/calcite-components/components/calcite-dropdown-group";
5
+ import "@esri/calcite-components/components/calcite-tooltip";
6
+ export * from "./customElement.js";
@@ -0,0 +1,51 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement, JsxNode } from "@arcgis/lumina";
3
+ import type { MeasurementContext, RenderContext } from "../arcgis-toolbar/types.js";
4
+
5
+ /**
6
+ * Configuration for a split button. Split button will either render all actions
7
+ * flat, or collapse all actions with a single element shown + a dropdown menu.
8
+ *
9
+ * This element styles the rendered actions in the collapsed case to look like
10
+ * a split button.
11
+ *
12
+ * This element is only compatible with `arcgis-toolbar-item` elements,
13
+ * because it needs elements with consistent size and properties to support dynamic
14
+ * sizing and rendering behavior.
15
+ *
16
+ * @internal
17
+ */
18
+ export abstract class ArcgisToolbarSplitButton extends LitElement {
19
+ /**
20
+ * Controls the appearance of the menu.
21
+ *
22
+ * @default "dropdown"
23
+ */
24
+ accessor menuAppearance: "action-menu" | "dropdown";
25
+ /**
26
+ * Label used for the overflow action trigger and its tooltip.
27
+ *
28
+ * @default "More actions"
29
+ */
30
+ accessor overflowActionLabel: string;
31
+ /**
32
+ * Controls layout priority, which determines space allocation and layout behavior.
33
+ * Setting this to ForceCollapse will result in a split-button appearance even with
34
+ * ample space for all managed items. Setting to NeverCollapse will reserve space for
35
+ * all items (no visible split button) even if that would require scrolling.
36
+ *
37
+ * @default 100
38
+ */
39
+ accessor priority: number;
40
+ /**
41
+ * @param context
42
+ * @internal
43
+ */
44
+ measure(context: MeasurementContext): number[];
45
+ /**
46
+ * @param context
47
+ * @param budget
48
+ * @internal
49
+ */
50
+ proxiedRender(context: RenderContext, budget: number): JsxNode;
51
+ }
@@ -0,0 +1,66 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as y } from "../../chunks/runtime.js";
3
+ import { ref as b } from "lit/directives/ref.js";
4
+ import { html as d } from "lit";
5
+ import { LitElement as _, nothing as h, safeClassMap as a } from "@arcgis/lumina";
6
+ import { E as L } from "../../chunks/element-reference-controller.js";
7
+ import { L as f, W as R } from "../../chunks/utils.js";
8
+ import { a as $, u as E, g as k } from "../../chunks/utils2.js";
9
+ import { b as O } from "../../chunks/utils3.js";
10
+ class S extends _ {
11
+ constructor() {
12
+ super(...arguments), this._elementReferenceController = new L(this), this._childrenObserver = new MutationObserver(() => this._syncChildren()), this.priority = f.Medium, this.menuAppearance = "dropdown", this.overflowActionLabel = "More actions";
13
+ }
14
+ static {
15
+ this.properties = { _children: 16, priority: 9, menuAppearance: 1, overflowActionLabel: 1 };
16
+ }
17
+ measure(e) {
18
+ const { priority: n, _children: i } = this, r = i?.length ?? 0;
19
+ if (!r)
20
+ return [0];
21
+ const o = $(e), s = r * o;
22
+ if (!(n < f.NeverCollapse) || r <= 1)
23
+ return [s];
24
+ const l = o + M(e);
25
+ return n <= f.ForceCollapse ? [l] : E([l, s]);
26
+ }
27
+ proxiedRender(e, n) {
28
+ const i = this._children;
29
+ if (!i)
30
+ return;
31
+ const { visible: r, hidden: o } = this._resolveActionsFromBudget(i, e, n, this.menuAppearance === "dropdown"), s = W(e), t = this.overflowActionLabel, l = e.tooltipAppearance, m = l !== "native", C = this._elementReferenceController.element, A = l === "calcite-dark" ? "calcite-mode-dark" : void 0, g = "split-anchor", v = o.length ? "split-menu" : "", u = k(e), w = this.menuAppearance === "action-menu" ? d`<calcite-action-menu .label=${t} overlay-positioning=fixed .placement=${u} class=${a(v)}><calcite-action .icon=${s} .scale=${e.scale} class=${a(g)} data-layout=${e.layout ?? h} slot=trigger title=${t ?? h} .label=${t} .text=${t} ${b(this._elementReferenceController.ref)}></calcite-action>${o.map((c) => c.proxiedRender(e, "expanded-action"))}</calcite-action-menu>` : d`<calcite-dropdown overlay-positioning=fixed .placement=${u} .scale=${e.scale} class=${a(v)}><calcite-action class=${a(g)} data-layout=${e.layout ?? h} .icon=${s} .label=${t} .scale=${e.scale} slot=trigger .text=${l === "native" ? t : ""} title=${t ?? h} ${b(this._elementReferenceController.ref)}></calcite-action><calcite-dropdown-group selection-mode=single>${o.map((c) => c.proxiedRender(e, "dropdown-item", c === r.at(0)))}</calcite-dropdown-group></calcite-dropdown>`;
32
+ return d`<div class="split-host">${r.map((c) => c.proxiedRender(e, "collapsed-action"))}${o.length ? w : void 0}${o.length && m ? d`<calcite-tooltip class=${a(A)} overlay-positioning=fixed .placement=${u} .referenceElement=${C}><span>${t}</span></calcite-tooltip>` : void 0}</div>`;
33
+ }
34
+ connectedCallback() {
35
+ super.connectedCallback(), this._childrenObserver.observe(this.el, { childList: !0 }), this._syncChildren();
36
+ }
37
+ disconnectedCallback() {
38
+ this._childrenObserver.disconnect(), super.disconnectedCallback();
39
+ }
40
+ _resolveActionsFromBudget(e, n, i, r) {
41
+ const o = e.find((m) => m.active) ?? e?.toSorted(O)?.at(0);
42
+ if (Math.floor(i / $(n)) >= e.length)
43
+ return { visible: [...e], hidden: [] };
44
+ if (r)
45
+ return { visible: [o ?? e[0]], hidden: [...e] };
46
+ const t = [...e];
47
+ return { visible: t.splice(t.indexOf(o), 1), hidden: t };
48
+ }
49
+ _syncChildren() {
50
+ this._componentWaitAbortController?.abort();
51
+ const e = Array.from(this.el.querySelectorAll("arcgis-toolbar-item")), n = new AbortController();
52
+ this._componentWaitAbortController = n, Promise.all(e.map((i) => i.componentOnReady())).then(() => {
53
+ !this.isConnected || n.signal.aborted || (this._children = e);
54
+ });
55
+ }
56
+ }
57
+ function W({ layout: p, relativePosition: e }) {
58
+ return p === "horizontal" ? e.startsWith("top") ? "chevron-down" : "chevron-up" : e.endsWith("left") ? "chevron-right" : "chevron-left";
59
+ }
60
+ function M({ layout: p, scale: e }) {
61
+ return R.splitButtonPart[p][e];
62
+ }
63
+ y("arcgis-toolbar-split-button", S);
64
+ export {
65
+ S as ArcgisToolbarSplitButton
66
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,6 @@
1
+ import "@esri/calcite-components/components/calcite-action-menu";
2
+ import "@esri/calcite-components/components/calcite-action";
3
+ import "@esri/calcite-components/components/calcite-dropdown";
4
+ import "@esri/calcite-components/components/calcite-dropdown-group";
5
+ import "@esri/calcite-components/components/calcite-tooltip";
6
+ export * from "./customElement.js";