@esri/calcite-components 6.0.0-next.32 → 6.0.0-next.34

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 (160) hide show
  1. package/dist/cdn/{RMYDLD3L.js → 277YSQ5X.js} +1 -1
  2. package/dist/cdn/{M4QXPEYA.js → 2A475KAT.js} +1 -1
  3. package/dist/cdn/{5CBIKAEI.js → 2O3EEHMO.js} +1 -1
  4. package/dist/cdn/{27T56KCJ.js → 3FQYMUOU.js} +1 -1
  5. package/dist/cdn/{6UWV2IB4.js → 3OHGTKVA.js} +1 -1
  6. package/dist/cdn/{X52BCUBS.js → 46WZQPRG.js} +1 -1
  7. package/dist/cdn/{WRX5ZQ6D.js → 4IRQL3N4.js} +1 -1
  8. package/dist/cdn/{6IK4YY4Q.js → 4KD3KCIH.js} +1 -1
  9. package/dist/cdn/{UOIFOIA6.js → 4WNMFTFU.js} +1 -1
  10. package/dist/cdn/{UIQPXBY4.js → 4ZASWQDO.js} +1 -1
  11. package/dist/cdn/{MGB7IHBN.js → 544PZX7K.js} +1 -1
  12. package/dist/cdn/{IOERUJQH.js → 54Z2A5HQ.js} +1 -1
  13. package/dist/cdn/{WYG6UDXB.js → 5AOCWREC.js} +1 -1
  14. package/dist/cdn/{UR5QD42E.js → 5J36SEZ7.js} +1 -1
  15. package/dist/cdn/{VYD36H5B.js → 5PVQ2NFR.js} +1 -1
  16. package/dist/cdn/{ZGI3EA4A.js → 5QQF3BIH.js} +1 -1
  17. package/dist/cdn/{EIZDIRB4.js → 5QWZIKSP.js} +1 -1
  18. package/dist/cdn/63YA65FB.js +2 -0
  19. package/dist/cdn/{JDKIG3OK.js → 67T6MZNE.js} +1 -1
  20. package/dist/cdn/{IZPGTGLJ.js → 6UDTL3RA.js} +1 -1
  21. package/dist/cdn/{TTIGWOQG.js → 746HFRW2.js} +1 -1
  22. package/dist/cdn/{CJ2QW6FE.js → 767THUJS.js} +1 -1
  23. package/dist/cdn/{C7S3BDBX.js → 7BDJ3AJS.js} +1 -1
  24. package/dist/cdn/7QKCMQ27.js +2 -0
  25. package/dist/cdn/{7B7AUCFT.js → 7SPVEUCF.js} +1 -1
  26. package/dist/cdn/{5NP4NQ75.js → A45ETAK4.js} +1 -1
  27. package/dist/cdn/{4UJZNDVL.js → A5R6W7DQ.js} +1 -1
  28. package/dist/cdn/{MZUQW7T7.js → AGAEEN5A.js} +1 -1
  29. package/dist/cdn/{PXOGEKNF.js → AOLKWLCI.js} +1 -1
  30. package/dist/cdn/{EIFUYOVZ.js → B3AEBC5I.js} +1 -1
  31. package/dist/cdn/{CW3F5PSX.js → B6ZVJ3AN.js} +1 -1
  32. package/dist/cdn/{LGKFD5NE.js → BNFZ2E52.js} +1 -1
  33. package/dist/cdn/{K46PS2N6.js → BNY6I4EP.js} +1 -1
  34. package/dist/cdn/{LSUYGJUQ.js → BOEGWEEH.js} +1 -1
  35. package/dist/cdn/{LQBOZRSZ.js → BVDE6BDJ.js} +1 -1
  36. package/dist/cdn/{OZLM7DWI.js → C6O2TEM2.js} +1 -1
  37. package/dist/cdn/{RHP7E5MQ.js → CBRKWBX5.js} +1 -1
  38. package/dist/cdn/{GKYK7XCO.js → CEPDCRQ4.js} +1 -1
  39. package/dist/cdn/{4KYT4OEB.js → CN2LUYQJ.js} +1 -1
  40. package/dist/cdn/{JJSTRCI5.js → CNM7TFWQ.js} +1 -1
  41. package/dist/cdn/{BAM2PBGA.js → CVKFHRTT.js} +1 -1
  42. package/dist/cdn/{GEYT6LB7.js → DLGTAG3K.js} +1 -1
  43. package/dist/cdn/{LGADD3GQ.js → DT6BZJAB.js} +1 -1
  44. package/dist/cdn/{R7A2S2JK.js → E5DBR67L.js} +1 -1
  45. package/dist/cdn/{3UY6U54N.js → EG322AOB.js} +1 -1
  46. package/dist/cdn/{MJA76ZEB.js → EGSDBL4F.js} +1 -1
  47. package/dist/cdn/{EEA73SFZ.js → F5EULRUF.js} +1 -1
  48. package/dist/cdn/{EHNEXHJE.js → FR352O7M.js} +1 -1
  49. package/dist/cdn/{S26F7J4L.js → FZURVOKK.js} +1 -1
  50. package/dist/cdn/{ZUVHRYHB.js → GN6O6P6I.js} +1 -1
  51. package/dist/cdn/{UFT5JASX.js → GPDFV2ZX.js} +1 -1
  52. package/dist/cdn/{HDPXMQMP.js → GT5GFA5N.js} +1 -1
  53. package/dist/cdn/{ZNERL4GM.js → GV6CNYDU.js} +1 -1
  54. package/dist/cdn/{4PH7QLZ5.js → GZ5ICWFF.js} +1 -1
  55. package/dist/cdn/{O7KTF2FA.js → H5CAB5I2.js} +1 -1
  56. package/dist/cdn/{VGYAXHO5.js → HOXHMBIF.js} +1 -1
  57. package/dist/cdn/{N3EQA7VR.js → HRJY7DSM.js} +1 -1
  58. package/dist/cdn/{FU7MF74E.js → IA3XRLDO.js} +1 -1
  59. package/dist/cdn/{J6VYFTM4.js → ILU3PUDM.js} +1 -1
  60. package/dist/cdn/{5HV3MQAN.js → INPHRB7U.js} +1 -1
  61. package/dist/cdn/{22EM6PC2.js → JC6M3RST.js} +1 -1
  62. package/dist/cdn/{AMN4XNVI.js → JIBAUC35.js} +1 -1
  63. package/dist/cdn/{467XRWLI.js → JVSGAADJ.js} +1 -1
  64. package/dist/cdn/{PZCLR7V5.js → K6R4SCYO.js} +1 -1
  65. package/dist/cdn/{OKOR5MWV.js → KKO3WGFT.js} +1 -1
  66. package/dist/cdn/KKZ6TGQN.js +2 -0
  67. package/dist/cdn/{PXUJV3K3.js → KT6CGX45.js} +1 -1
  68. package/dist/cdn/{GQSCXVIU.js → KZGTJCTI.js} +1 -1
  69. package/dist/cdn/{D7Z5DPHN.js → LBQBYMVB.js} +1 -1
  70. package/dist/cdn/{X5DVSEAW.js → M76DRN5S.js} +1 -1
  71. package/dist/cdn/{BQUS7O7D.js → MAIWZOR5.js} +1 -1
  72. package/dist/cdn/{DZU2XLXM.js → MBVXPCQR.js} +1 -1
  73. package/dist/cdn/{7VHIR7OZ.js → MEP5IEGR.js} +1 -1
  74. package/dist/cdn/{7HIIGKXC.js → MMTB6GMB.js} +1 -1
  75. package/dist/cdn/{X653HX5H.js → MSPG7E37.js} +1 -1
  76. package/dist/cdn/{V3GKPSJW.js → N66AOVB6.js} +1 -1
  77. package/dist/cdn/{2ADZ7WR7.js → NAF6FDSZ.js} +1 -1
  78. package/dist/cdn/{ISBKAVOX.js → NFDGVALZ.js} +1 -1
  79. package/dist/cdn/{PP543GMX.js → NGCIFM6D.js} +1 -1
  80. package/dist/cdn/{S3H4IEOB.js → NHR7AU6X.js} +1 -1
  81. package/dist/cdn/{CCVUAR5Z.js → NHSKDQUV.js} +1 -1
  82. package/dist/cdn/{CERRSYTB.js → NTC7KMN2.js} +1 -1
  83. package/dist/cdn/{SZ3RMLLZ.js → NZIKPAXW.js} +1 -1
  84. package/dist/cdn/{EKI76LG7.js → OBG5CQ2U.js} +1 -1
  85. package/dist/cdn/{CXEQ3W3L.js → OBXTKB4Y.js} +1 -1
  86. package/dist/cdn/{HSPTT3LV.js → OESXD4Q6.js} +1 -1
  87. package/dist/cdn/{SNKADWIL.js → OXQ37QZZ.js} +1 -1
  88. package/dist/cdn/{DZ5YZLLW.js → OY4TVWCK.js} +1 -1
  89. package/dist/cdn/{3BGTTAUS.js → P2QQLZOQ.js} +1 -1
  90. package/dist/cdn/{AXHUTZFE.js → P5IZJTB6.js} +1 -1
  91. package/dist/cdn/{JCIA6RBQ.js → P7UYFDIO.js} +1 -1
  92. package/dist/cdn/{TPAN4Z6I.js → PP5JBZBT.js} +1 -1
  93. package/dist/cdn/{KWGKBIM3.js → Q4WLIOXT.js} +1 -1
  94. package/dist/cdn/{UD45ZUIJ.js → QAE3MU72.js} +1 -1
  95. package/dist/cdn/{L2YJXRI7.js → QHMITLZU.js} +1 -1
  96. package/dist/cdn/{CXYDFUFV.js → QIWUWBXO.js} +1 -1
  97. package/dist/cdn/{FEGFX2WD.js → QYX2SYH2.js} +1 -1
  98. package/dist/cdn/{TBE6QB2J.js → RPD3WZMX.js} +1 -1
  99. package/dist/cdn/{MTMSXD7G.js → S2Q73JRC.js} +1 -1
  100. package/dist/cdn/{COIMZWZL.js → S6PEPV7E.js} +1 -1
  101. package/dist/cdn/{I2DVQMTF.js → SR5OJ6WT.js} +1 -1
  102. package/dist/cdn/{AXMEQ5HK.js → SWMGZVBV.js} +1 -1
  103. package/dist/cdn/{27X4URIG.js → T6RESCXF.js} +1 -1
  104. package/dist/cdn/{74CFBRNP.js → T6VMFK2A.js} +1 -1
  105. package/dist/cdn/{EZI27HAU.js → UCO2GGXK.js} +1 -1
  106. package/dist/cdn/{DRWMIG2A.js → UD6VPG3H.js} +1 -1
  107. package/dist/cdn/{KSGKP7BB.js → UDJEOV2C.js} +1 -1
  108. package/dist/cdn/{ZHPJ2ZY3.js → UF3JGEV3.js} +1 -1
  109. package/dist/cdn/{ZSKZIJOQ.js → UKIQ2QQQ.js} +1 -1
  110. package/dist/cdn/{XALW74CE.js → UQK4BBXN.js} +1 -1
  111. package/dist/cdn/{M5EKCOWL.js → USEWFO5B.js} +1 -1
  112. package/dist/cdn/{5AF7LKCH.js → UXG6NJJ3.js} +1 -1
  113. package/dist/cdn/{B6MKXPF6.js → V4UCVHIU.js} +1 -1
  114. package/dist/cdn/{UF7RT555.js → V7WCUNGJ.js} +1 -1
  115. package/dist/cdn/{MGO56IDG.js → VB6THTIC.js} +1 -1
  116. package/dist/cdn/{MX6NVG77.js → VBIGDSQY.js} +1 -1
  117. package/dist/cdn/{SHMDC6YI.js → VVGV7ALO.js} +1 -1
  118. package/dist/cdn/{PJWHKL5T.js → VZVHJFSW.js} +1 -1
  119. package/dist/cdn/{BE6XQC6U.js → W5RM7Z6I.js} +1 -1
  120. package/dist/cdn/{OD5VRFWK.js → WBIQDCHD.js} +1 -1
  121. package/dist/cdn/{TQP5GGZ4.js → WINUYLK2.js} +1 -1
  122. package/dist/cdn/{CXDE6DBI.js → WM6MHNXX.js} +1 -1
  123. package/dist/cdn/{4X66Y5SG.js → WV6YDSMJ.js} +1 -1
  124. package/dist/cdn/{KELOMBLQ.js → WVPMWTE5.js} +1 -1
  125. package/dist/cdn/{MKBFZDRN.js → X5R5EGNZ.js} +1 -1
  126. package/dist/cdn/{S663GSUU.js → XNLWEPN6.js} +1 -1
  127. package/dist/cdn/{3KAPB7Y4.js → YK7CNNZX.js} +1 -1
  128. package/dist/cdn/{UXLAVDPR.js → YP2DQII7.js} +1 -1
  129. package/dist/cdn/{YHFR2OVW.js → YUNC5WED.js} +1 -1
  130. package/dist/cdn/{LW757VXF.js → YW5C7TO4.js} +1 -1
  131. package/dist/cdn/{KCVCJJ3G.js → YYUR6NGZ.js} +1 -1
  132. package/dist/cdn/{OTCKOUA5.js → ZBWUWNCQ.js} +1 -1
  133. package/dist/cdn/{SKHMBPZX.js → ZFTEOXG3.js} +1 -1
  134. package/dist/cdn/{4IJ4XYKR.js → ZN6Z3DEX.js} +1 -1
  135. package/dist/cdn/{HPJSPMNH.js → ZQMP6FLW.js} +1 -1
  136. package/dist/cdn/{QILUIDT6.js → ZT2D255Q.js} +1 -1
  137. package/dist/cdn/{VZXKU2HR.js → ZYYMHBSH.js} +1 -1
  138. package/dist/cdn/assets/icon/diamondGem16.json +1 -0
  139. package/dist/cdn/assets/icon/diamondGem24.json +1 -0
  140. package/dist/cdn/assets/icon/diamondGem32.json +1 -0
  141. package/dist/cdn/index.js +1 -1
  142. package/dist/chunks/runtime.js +3 -3
  143. package/dist/components/calcite-action/customElement.d.ts +1 -1
  144. package/dist/components/calcite-action/customElement.js +3 -4
  145. package/dist/components/calcite-action-bar/customElement.js +371 -31
  146. package/dist/components/calcite-action-group/customElement.d.ts +7 -0
  147. package/dist/components/calcite-action-group/customElement.js +57 -27
  148. package/dist/components/calcite-action-menu/customElement.js +214 -55
  149. package/dist/docs/api.json +1 -1
  150. package/dist/docs/docs.json +1 -1
  151. package/dist/docs/web-types.json +1 -1
  152. package/dist/loader.js +2 -2
  153. package/dist/types/lumina.d.ts +1 -1
  154. package/dist/types/preact.d.ts +1 -1
  155. package/dist/types/react.d.ts +1 -1
  156. package/dist/types/stencil.d.ts +1 -1
  157. package/package.json +2 -2
  158. package/dist/cdn/OX7I2ZE2.js +0 -2
  159. package/dist/cdn/QVOUVRVF.js +0 -2
  160. package/dist/cdn/SS7TOHAX.js +0 -2
@@ -28,7 +28,6 @@ class Action extends LitElement {
28
28
  this.interactiveContainer = useInteractive(this);
29
29
  this.labelElRef = createRef();
30
30
  this.active = false;
31
- this.activeDescendant = false;
32
31
  this.appearance = "transparent";
33
32
  this.compact = false;
34
33
  this.disabled = false;
@@ -44,7 +43,7 @@ class Action extends LitElement {
44
43
  useFormTrigger()(this);
45
44
  }
46
45
  static {
47
- this.properties = { aria: [0, {}, { attribute: false }], active: [7, {}, { reflect: true, type: Boolean }], activeDescendant: [7, {}, { reflect: true, type: Boolean }], alignment: [3, {}, { reflect: true }], appearance: [3, {}, { reflect: true }], compact: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], icon: [3, {}, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], indicator: [7, {}, { reflect: true, type: Boolean }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], overflowDisabled: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }], text: 1, textEnabled: [7, {}, { reflect: true, type: Boolean }], type: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
46
+ this.properties = { aria: [0, {}, { attribute: false }], active: [7, {}, { reflect: true, type: Boolean }], alignment: [3, {}, { reflect: true }], appearance: [3, {}, { reflect: true }], compact: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], dragHandle: [7, {}, { reflect: true, type: Boolean }], form: [3, {}, { reflect: true }], icon: [3, {}, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], indicator: [7, {}, { reflect: true, type: Boolean }], label: 1, loading: [7, {}, { reflect: true, type: Boolean }], messageOverrides: [0, {}, { attribute: false }], overflowDisabled: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], width: [3, {}, { reflect: true }], text: 1, textEnabled: [7, {}, { reflect: true, type: Boolean }], type: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
48
47
  }
49
48
  static {
50
49
  this.formAssociated = true;
@@ -118,9 +117,9 @@ class Action extends LitElement {
118
117
  ...internalControlsElements
119
118
  ];
120
119
  if (this.dragHandle) {
121
- return html`<span .ariaBusy=${toAriaBoolean(loading, void 0)} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} id=${buttonId ?? nothing} role=button tabindex=${(this.disabled ? void 0 : 0) ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</span>`;
120
+ return html`<span .ariaBusy=${toAriaBoolean(loading, void 0)} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${this.aria?.label} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} id=${buttonId ?? nothing} role=button tabindex=${(disabled ? void 0 : 0) ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</span>`;
122
121
  }
123
- return html`<button .ariaBusy=${toAriaBoolean(loading, void 0)} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} .disabled=${disabled} id=${buttonId ?? nothing} .role=${this.aria?.role} type=${this.type ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</button>`;
122
+ return html`<button .ariaBusy=${toAriaBoolean(loading, void 0)} .ariaChecked=${this.aria?.checked} .ariaControlsElements=${ariaControlsElements} .ariaDescribedByElements=${this.aria?.describedByElements} .ariaExpanded=${this.aria?.expanded} .ariaHasPopup=${this.aria?.hasPopup} .ariaLabel=${this.aria?.label} .ariaLabelledByElements=${ariaLabelledByElements} .ariaOwnsElements=${this.aria?.ownsElements} .ariaPressed=${this.aria?.pressed} class=${safeClassMap(buttonClasses)} .disabled=${disabled} id=${buttonId ?? nothing} .role=${this.aria?.role} type=${this.type ?? nothing} ${ref(this.buttonRef)}>${buttonContent}</button>`;
124
123
  }
125
124
  render() {
126
125
  return this.interactiveContainer({ disabled: this.disabled, children: html`${this.renderButton()}${this.renderIndicatorText()}` });
@@ -5,7 +5,7 @@ import { nothing, html, css } from "lit";
5
5
  import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
6
6
  import { ref, createRef } from "lit/directives/ref.js";
7
7
  import { useDirection } from "@arcgis/lumina/controllers";
8
- import { m as getStylePixelValue, B as filterDirectChildren, d as slotChangeGetAssignedElements, b as getSlotAssignedElements, h as focusElementInGroup } from "../../chunks/dom.js";
8
+ import { m as getStylePixelValue, B as filterDirectChildren, d as slotChangeGetAssignedElements, b as getSlotAssignedElements } from "../../chunks/dom.js";
9
9
  import { c as createObserver } from "../../chunks/observers.js";
10
10
  import { S as SLOTS, i as isActionGroup } from "../../chunks/resources.js";
11
11
  import { u as useT9n } from "../../chunks/useT9n.js";
@@ -133,6 +133,7 @@ class ActionBar extends LitElement {
133
133
  constructor() {
134
134
  super();
135
135
  this.actions = [];
136
+ this.navigationItems = [];
136
137
  this.containerRef = createRef();
137
138
  this.defaultSlotRef = createRef();
138
139
  this.actionsStartSlotRef = createRef();
@@ -147,14 +148,17 @@ class ActionBar extends LitElement {
147
148
  this.actionsStartGroups = [];
148
149
  this.actionsEnd = [];
149
150
  this.actionsEndGroups = [];
151
+ this.automaticallyOverflowedActions = [];
152
+ this.authoredMenuActions = [];
150
153
  this.overflowPassId = 0;
151
154
  this.suppressedActionGroupActionsChange = /* @__PURE__ */ new WeakMap();
152
155
  this.cancelable = useCancelable()(this);
153
156
  this.resize = debounce(({ width, height }) => {
154
157
  const { expanded, expandToggleDisabled, layout, expandPosition } = this;
155
- if (!this.containerRef.value) {
158
+ if (!this.el.isConnected || !this.containerRef.value) {
156
159
  return;
157
160
  }
161
+ this.updateGroups();
158
162
  if (this.usesWrap) {
159
163
  this.scheduleLineMeasure();
160
164
  return;
@@ -162,7 +166,6 @@ class ActionBar extends LitElement {
162
166
  if (this.overflowMode !== "collapse" || layout === "vertical" && !height || layout === "horizontal" && !width) {
163
167
  return;
164
168
  }
165
- this.updateGroups();
166
169
  const itemSizes = this.getItemSizes();
167
170
  const { actionGroups: defaultActionGroups, actionsEnd, actionsEndGroups, actionsStart, actionsStartGroups, defaultSlotItems } = this;
168
171
  const slottedActionGroups = [
@@ -222,7 +225,13 @@ class ActionBar extends LitElement {
222
225
  this.scheduleLineMeasure();
223
226
  return;
224
227
  }
225
- const { width, height } = entry.contentRect;
228
+ const { width, height } = entry.target && entry.target !== this.el ? { width: this.el.clientWidth, height: this.el.clientHeight } : entry.contentRect;
229
+ const axis = this.layout === "horizontal" ? "width" : "height";
230
+ const size = axis === "width" ? width : height;
231
+ if (this.lastOverflowAxisSize?.axis === axis && this.lastOverflowAxisSize.size === size) {
232
+ return;
233
+ }
234
+ this.lastOverflowAxisSize = { axis, size };
226
235
  this.resize({ width, height });
227
236
  };
228
237
  this.resizeObserver = createObserver("resize", (entries) => this.resizeHandlerEntries(entries));
@@ -234,6 +243,7 @@ class ActionBar extends LitElement {
234
243
  this.focusSetter = useFocusable()(this).setFocus;
235
244
  this.setExpandToggleEl = (el) => {
236
245
  this.expandToggleEl = el;
246
+ this.syncNavigationItemTabIndexes();
237
247
  };
238
248
  this.hasActionsEnd = false;
239
249
  this.hasActionsStart = false;
@@ -254,7 +264,9 @@ class ActionBar extends LitElement {
254
264
  this.listen("calciteActionMenuOpen", this.actionMenuOpenHandler);
255
265
  this.listen("calciteInternalActionGroupActionsChange", this.handleActionGroupActionsChange);
256
266
  this.listen("calciteInternalActionMenuActionsChange", this.handleActionMenuActionsChange);
267
+ this.listen("click", this.handleFocusIn);
257
268
  this.listen("keydown", this.handleKeyDown);
269
+ this.listen("focusin", this.handleFocusIn);
258
270
  }
259
271
  static {
260
272
  this.properties = { expandTooltip: [16, {}, { state: true }], hasActionsEnd: [16, {}, { state: true }], hasActionsStart: [16, {}, { state: true }], hasActionGroups: [16, {}, { state: true }], lineOffsets: [16, {}, { state: true }], actionsEndGroupLabel: 1, actionsStartGroupLabel: 1, floating: [7, {}, { reflect: true, type: Boolean }], expandToggleDisabled: [7, {}, { reflect: true, type: Boolean }], expandDisabled: [7, {}, { reflect: true, type: Boolean }], expanded: [7, {}, { reflect: true, type: Boolean }], expandPosition: [3, {}, { reflect: true }], layout: [3, {}, { reflect: true }], overflowMode: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overflowActionsDisabled: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], position: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
@@ -303,6 +315,12 @@ class ActionBar extends LitElement {
303
315
  }
304
316
  connectedCallback() {
305
317
  super.connectedCallback();
318
+ this.updateGroups();
319
+ this.updateNavigationItems();
320
+ this.syncNavigationItemTabIndexes();
321
+ this.overflowActions();
322
+ this.updateActions();
323
+ this.overflowActionsDisabledHandler(this.overflowActionsDisabled);
306
324
  this.overflowModeHandler();
307
325
  this.cancelable.add(this.resize);
308
326
  }
@@ -317,6 +335,9 @@ class ActionBar extends LitElement {
317
335
  this.updateLines();
318
336
  }
319
337
  }
338
+ if (changes.has("overflowActionsDisabled") && (this.hasUpdated || this.overflowActionsDisabled !== false)) {
339
+ this.overflowActionsDisabledHandler(this.overflowActionsDisabled);
340
+ }
320
341
  if (changes.has("overflowMode") && (this.hasUpdated || this.overflowMode !== "collapse")) {
321
342
  if (!this.usesWrap && this.lineMeasureFrame != null) {
322
343
  cancelAnimationFrame(this.lineMeasureFrame);
@@ -367,7 +388,7 @@ class ActionBar extends LitElement {
367
388
  const itemSizes = this.actions.map((action) => action[clientSize] || 0);
368
389
  const slottedActionGroupMenus = this.getTrackedActionGroups().flatMap((group) => filterDirectChildren(group, "calcite-action-menu"));
369
390
  slottedActionGroupMenus.forEach((menu) => {
370
- const triggerAction = menu.actions.find((action) => action.slot === SLOTS$1.trigger);
391
+ const triggerAction = (menu.actions ?? []).find((action) => action.slot === SLOTS$1.trigger);
371
392
  itemSizes.push((triggerAction ?? menu)[clientSize] || 0);
372
393
  });
373
394
  if (expandToggleEl) {
@@ -393,6 +414,17 @@ class ActionBar extends LitElement {
393
414
  }
394
415
  this.overflowActions();
395
416
  }
417
+ overflowActionsDisabledHandler(overflowActionsDisabled) {
418
+ if (overflowActionsDisabled) {
419
+ this.resizeObserver?.disconnect();
420
+ return;
421
+ }
422
+ this.resizeObserver?.observe(this.el);
423
+ if (this.containerRef.value) {
424
+ this.resizeObserver?.observe(this.containerRef.value);
425
+ }
426
+ this.overflowActions();
427
+ }
396
428
  actionMenuOpenHandler(event) {
397
429
  const composedPath = event.composedPath();
398
430
  const source = composedPath.find((element) => isActionGroup(element) || isActionMenu(element));
@@ -412,22 +444,36 @@ class ActionBar extends LitElement {
412
444
  menu.open = false;
413
445
  }
414
446
  });
447
+ this.updateActions();
415
448
  }
416
449
  runOverflowActions({ actionGroups, expanded, overflowCount }) {
417
450
  const overflowPassId = ++this.overflowPassId;
451
+ const directActions = actionGroups.flatMap((group) => group.actions.filter((action) => action.parentElement === group));
452
+ this.automaticallyOverflowedActions = this.automaticallyOverflowedActions.filter((action) => directActions.includes(action));
453
+ this.authoredMenuActions = this.authoredMenuActions.filter((action) => directActions.includes(action) && action.slot === SLOTS.menuActions);
454
+ directActions.forEach((action) => {
455
+ if (action.slot === SLOTS.menuActions && !this.automaticallyOverflowedActions.includes(action) && !this.authoredMenuActions.includes(action)) {
456
+ this.authoredMenuActions.push(action);
457
+ }
458
+ });
418
459
  const slotStateByGroup = /* @__PURE__ */ new Map();
419
460
  actionGroups.forEach((group) => {
420
- const directActions = group.actions.filter((action) => action.parentElement === group);
421
- slotStateByGroup.set(group, directActions.map((action) => action.slot ?? "").join("|"));
461
+ const directActions2 = group.actions.filter((action) => action.parentElement === group);
462
+ slotStateByGroup.set(group, directActions2.map((action) => action.slot ?? "").join("|"));
422
463
  });
423
464
  overflowActions({
424
465
  actionGroups,
425
466
  expanded,
426
467
  overflowCount
427
468
  });
469
+ this.authoredMenuActions.forEach((action) => {
470
+ action.slot = SLOTS.menuActions;
471
+ action.textEnabled = true;
472
+ });
473
+ this.automaticallyOverflowedActions = directActions.filter((action) => action.slot === SLOTS.menuActions && !this.authoredMenuActions.includes(action));
428
474
  actionGroups.forEach((group) => {
429
- const directActions = group.actions.filter((action) => action.parentElement === group);
430
- const nextSlotState = directActions.map((action) => action.slot ?? "").join("|");
475
+ const directActions2 = group.actions.filter((action) => action.parentElement === group);
476
+ const nextSlotState = directActions2.map((action) => action.slot ?? "").join("|");
431
477
  if (slotStateByGroup.get(group) !== nextSlotState) {
432
478
  this.suppressedActionGroupActionsChange.set(group, overflowPassId);
433
479
  this.queueSuppressedActionGroupActionsChangeCleanup(group, overflowPassId);
@@ -459,6 +505,15 @@ class ActionBar extends LitElement {
459
505
  group.layout = this.layout;
460
506
  group.scale = this.scale;
461
507
  });
508
+ this.syncNavItems();
509
+ }
510
+ syncNavItems() {
511
+ if (!this.el.isConnected) {
512
+ return;
513
+ }
514
+ this.updateNavigationItems();
515
+ this.syncNavigationItemTabIndexes();
516
+ this.updateActions();
462
517
  }
463
518
  scheduleLineMeasure() {
464
519
  if (this.lineMeasureFrame != null) {
@@ -514,15 +569,21 @@ class ActionBar extends LitElement {
514
569
  }
515
570
  handleDefaultSlotChange() {
516
571
  this.syncSlotAndActions(() => this.syncDefaultSlot());
572
+ this.updateGroups();
573
+ this.updateNavigationItems();
574
+ this.syncNavigationItemTabIndexes();
575
+ this.updateActions();
517
576
  if (this.usesWrap) {
518
577
  this.scheduleLineMeasure();
519
578
  }
520
579
  }
521
580
  handleActionsEndSlotChange() {
522
581
  this.syncSlotAndActions(() => this.syncActionsEndSlot());
582
+ this.syncNavigationItemTabIndexes();
523
583
  }
524
584
  handleActionsStartSlotChange() {
525
585
  this.syncSlotAndActions(() => this.syncActionsStartSlot());
586
+ this.syncNavigationItemTabIndexes();
526
587
  }
527
588
  handleTooltipSlotChange(event) {
528
589
  const tooltips = slotChangeGetAssignedElements(event).filter(isTooltip);
@@ -537,6 +598,46 @@ class ActionBar extends LitElement {
537
598
  action.selectionAppearance = this.selectionAppearance;
538
599
  });
539
600
  }
601
+ updateNavigationItems() {
602
+ const navigationItems = [
603
+ ...this.getNavigationItems(this.actionsStart),
604
+ ...this.getNavigationItems(this.defaultSlotItems),
605
+ ...this.getNavigationItems(this.actionsEnd)
606
+ ];
607
+ const { expandToggleEl } = this;
608
+ this.navigationItems = expandToggleEl && this.isNavigableAction(expandToggleEl) ? this.expandPosition === "start" ? [expandToggleEl, ...navigationItems] : [...navigationItems, expandToggleEl] : navigationItems;
609
+ }
610
+ getNavigationItems(items) {
611
+ return items.flatMap((item) => {
612
+ if (isAction(item)) {
613
+ return this.isNavigableAction(item) ? [item] : [];
614
+ }
615
+ if (isActionMenu(item)) {
616
+ return this.isNavigableActionMenu(item) ? [item] : [];
617
+ }
618
+ return this.getActionGroupNavigationItems(item);
619
+ });
620
+ }
621
+ getActionGroupNavigationItems(actionGroup) {
622
+ if (actionGroup.hasAttribute("hidden")) {
623
+ return [];
624
+ }
625
+ const actions = (actionGroup.actions ?? []).filter((action) => this.isNavigableAction(action));
626
+ const actionMenus = filterDirectChildren(actionGroup, "calcite-action-menu").filter((actionMenu2) => this.isNavigableActionMenu(actionMenu2));
627
+ const navigationItems = [...actions, ...actionMenus].sort((itemA, itemB) => itemA === itemB ? 0 : itemA.compareDocumentPosition(itemB) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
628
+ const { actionMenu } = actionGroup;
629
+ if (actionMenu && this.isNavigableActionMenu(actionMenu) && !navigationItems.includes(actionMenu)) {
630
+ navigationItems.push(actionMenu);
631
+ }
632
+ return navigationItems;
633
+ }
634
+ isNavigableAction(action) {
635
+ return !action.disabled && !action.hidden && !action.inert && action.slot !== "menu-actions" && !action.closest("calcite-action-menu");
636
+ }
637
+ isNavigableActionMenu(actionMenu) {
638
+ const menuButtonEl = actionMenu.menuButtonEl ?? actionMenu.actions?.find((action) => action.slot === SLOTS$1.trigger);
639
+ return !actionMenu.hidden && !actionMenu.inert && !menuButtonEl?.disabled && !menuButtonEl?.hidden && !menuButtonEl?.inert;
640
+ }
540
641
  syncActions() {
541
642
  this.actions = queryActions([
542
643
  ...this.actionsStart,
@@ -608,6 +709,7 @@ class ActionBar extends LitElement {
608
709
  return;
609
710
  }
610
711
  this.syncActionsAndOverflow();
712
+ this.syncNavigationItemTabIndexes();
611
713
  }
612
714
  handleActionMenuActionsChange(event) {
613
715
  const menu = event.target;
@@ -615,47 +717,285 @@ class ActionBar extends LitElement {
615
717
  return;
616
718
  }
617
719
  this.syncActionsAndOverflow();
618
- }
619
- getNavigableActions() {
620
- return this.actions.filter((action) => !action.disabled && action.slot !== SLOTS.menuActions);
720
+ this.syncNavigationItemTabIndexes();
621
721
  }
622
722
  handleKeyDown(event) {
623
- const actions = this.getNavigableActions();
624
- const current = document.activeElement;
625
- if (!isAction(current) || !actions.includes(current)) {
723
+ const actionMenu = this.getEventActionMenu(event) || this.getOpenActionMenu();
724
+ if (actionMenu?.open) {
725
+ if (event.key === "Escape") {
726
+ return;
727
+ }
728
+ return;
729
+ }
730
+ if (event.defaultPrevented) {
731
+ return;
732
+ }
733
+ this.updateNavigationItems();
734
+ const current = this.getNavigationItemFromEvent(event);
735
+ if (!current || !this.navigationItems.length) {
736
+ return;
737
+ }
738
+ if (this.layout === "grid" && ["ArrowDown", "ArrowRight", "ArrowUp", "ArrowLeft"].includes(event.key)) {
739
+ const direction = event.key === "ArrowDown" || event.key === "ArrowRight" ? "next" : "previous";
740
+ this.focusNavigationItem(direction, current);
741
+ event.preventDefault();
742
+ return;
743
+ }
744
+ const isVertical = this.layout !== "horizontal";
745
+ const currentGroup = event.composedPath().find(isActionGroup);
746
+ const secondaryNextKey = isVertical ? "ArrowRight" : "ArrowDown";
747
+ const secondaryPreviousKey = isVertical ? "ArrowLeft" : "ArrowUp";
748
+ const isClosedActionMenu = current.matches("calcite-action-menu") && !current.open;
749
+ if ((currentGroup?.selectionMode === "multiple" || currentGroup?.selectionMode === "none") && (event.key === secondaryNextKey || event.key === secondaryPreviousKey) && !isClosedActionMenu) {
750
+ event.preventDefault();
751
+ return;
752
+ }
753
+ if (this.handleSecondaryArrowActionMenuOpen(event, current, isVertical)) {
626
754
  return;
627
755
  }
628
756
  switch (event.key) {
629
- case "ArrowRight":
630
757
  case "ArrowDown":
631
- focusElementInGroup(actions, current, "next", true);
632
- event.preventDefault();
758
+ if (isVertical) {
759
+ this.focusNavigationItem("next", current);
760
+ event.preventDefault();
761
+ } else if (this.focusActionGroupItem("next", current, currentGroup)) {
762
+ event.preventDefault();
763
+ }
633
764
  break;
634
- case "ArrowLeft":
635
765
  case "ArrowUp":
636
- focusElementInGroup(actions, current, "previous", true);
637
- event.preventDefault();
766
+ if (isVertical) {
767
+ this.focusNavigationItem("previous", current);
768
+ event.preventDefault();
769
+ } else if (this.focusActionGroupItem("previous", current, currentGroup)) {
770
+ event.preventDefault();
771
+ }
772
+ break;
773
+ case "ArrowRight":
774
+ if (!isVertical) {
775
+ this.focusNavigationItem("next", current);
776
+ event.preventDefault();
777
+ } else if (this.focusActionGroupItem("next", current, currentGroup)) {
778
+ event.preventDefault();
779
+ }
780
+ break;
781
+ case "ArrowLeft":
782
+ if (!isVertical) {
783
+ this.focusNavigationItem("previous", current);
784
+ event.preventDefault();
785
+ } else if (this.focusActionGroupItem("previous", current, currentGroup)) {
786
+ event.preventDefault();
787
+ }
638
788
  break;
639
789
  case "Home":
640
- focusElementInGroup(actions, current, "first", true);
790
+ this.focusNavigationItem("first", current);
641
791
  event.preventDefault();
642
792
  break;
643
793
  case "End":
644
- focusElementInGroup(actions, current, "last", true);
794
+ this.focusNavigationItem("last", current);
645
795
  event.preventDefault();
646
796
  break;
647
797
  case "Tab":
648
- this.setActionTabIndexes(current);
798
+ if (!event.composedPath().some((element) => isAction(element) && element.aria?.role === "menuitem")) {
799
+ this.setNavigationItemTabIndexes(current);
800
+ }
649
801
  break;
650
802
  }
651
803
  }
652
- setActionTabIndexes(active) {
653
- this.actions.forEach((action) => {
654
- const tabIndex = !action.disabled && action === active ? 0 : -1;
655
- if (tabIndex === 0) {
656
- action.removeAttribute("tabindex");
804
+ handleSecondaryArrowActionMenuOpen(event, current, isVertical) {
805
+ if (!current.matches("calcite-action-menu") || current.open) {
806
+ return false;
807
+ }
808
+ const menuFirstItemOpenKey = isVertical ? "ArrowRight" : "ArrowDown";
809
+ const menuLastItemOpenKey = isVertical ? "ArrowLeft" : "ArrowUp";
810
+ if (event.key !== menuFirstItemOpenKey && event.key !== menuLastItemOpenKey) {
811
+ return false;
812
+ }
813
+ event.preventDefault();
814
+ this.openActionMenuAndFocusBoundaryItem(current, event.key === menuFirstItemOpenKey ? "first" : "last");
815
+ return true;
816
+ }
817
+ openActionMenuAndFocusBoundaryItem(actionMenu, boundary) {
818
+ actionMenu.open = true;
819
+ void this.focusActionMenuBoundaryItem(actionMenu, boundary);
820
+ }
821
+ async focusActionMenuBoundaryItem(actionMenu, boundary) {
822
+ await actionMenu.componentOnReady();
823
+ if (!actionMenu.open) {
824
+ return;
825
+ }
826
+ const menuActions = actionMenu.actions.filter((action2) => action2.aria?.role === "menuitem" && !action2.disabled && !action2.hidden && !action2.inert);
827
+ const action = boundary === "first" ? menuActions[0] : menuActions[menuActions.length - 1];
828
+ await action?.setFocus({ preventScroll: true });
829
+ }
830
+ handleFocusIn(event) {
831
+ this.updateNavigationItems();
832
+ const focusedItem = this.getNavigationItemFromEvent(event);
833
+ if (event instanceof MouseEvent) {
834
+ if (event.detail > 0 && focusedItem && isAction(focusedItem)) {
835
+ this.setNavigationItemTabIndexes(focusedItem);
836
+ }
837
+ return;
838
+ }
839
+ const actionMenu = this.getEventActionMenu(event) || this.getOpenActionMenu();
840
+ if (actionMenu?.open) {
841
+ return;
842
+ }
843
+ if (focusedItem?.matches("calcite-action-menu") && actionMenu) {
844
+ this.syncClosedActionMenu(actionMenu);
845
+ return;
846
+ }
847
+ this.syncNavigationItemTabIndexes(focusedItem ?? void 0);
848
+ }
849
+ focusNavigationItem(direction, current) {
850
+ const { navigationItems } = this;
851
+ const currentIndex = navigationItems.indexOf(current);
852
+ if (currentIndex === -1) {
853
+ return;
854
+ }
855
+ let nextIndex = currentIndex;
856
+ if (direction === "first") {
857
+ nextIndex = 0;
858
+ } else if (direction === "last") {
859
+ nextIndex = navigationItems.length - 1;
860
+ } else if (direction === "next") {
861
+ nextIndex = (currentIndex + 1) % navigationItems.length;
862
+ } else {
863
+ nextIndex = (currentIndex - 1 + navigationItems.length) % navigationItems.length;
864
+ }
865
+ const nextItem = navigationItems[nextIndex];
866
+ if (nextItem && nextItem !== current) {
867
+ void nextItem.setFocus();
868
+ }
869
+ this.syncNavigationItemTabIndexes(nextItem);
870
+ }
871
+ focusActionGroupItem(direction, current, currentGroup) {
872
+ if (!isAction(current) || !currentGroup) {
873
+ return false;
874
+ }
875
+ if (currentGroup.selectionMode === "multiple" || currentGroup.selectionMode === "none") {
876
+ return false;
877
+ }
878
+ const groupItems = this.navigationItems.filter((item) => isAction(item) && currentGroup.actions.includes(item));
879
+ const currentIndex = groupItems.indexOf(current);
880
+ if (groupItems.length < 2 || currentIndex === -1) {
881
+ return false;
882
+ }
883
+ const nextIndex = direction === "next" ? (currentIndex + 1) % groupItems.length : (currentIndex - 1 + groupItems.length) % groupItems.length;
884
+ const nextItem = groupItems[nextIndex];
885
+ if (!nextItem || nextItem === current) {
886
+ return false;
887
+ }
888
+ void nextItem.setFocus();
889
+ this.syncNavigationItemTabIndexes(nextItem);
890
+ return true;
891
+ }
892
+ getCurrentNavigationItem() {
893
+ const { activeElement } = document;
894
+ if (activeElement instanceof HTMLElement) {
895
+ const activeItem = activeElement.matches("calcite-action, calcite-action-menu") ? activeElement : activeElement.closest("calcite-action, calcite-action-menu");
896
+ if (activeItem && this.navigationItems.includes(activeItem)) {
897
+ return activeItem;
898
+ }
899
+ const activeActionMenu = activeElement.closest("calcite-action-menu");
900
+ if (activeActionMenu) {
901
+ const activeActionMenuItem = this.navigationItems.find((item) => item === activeActionMenu);
902
+ if (activeActionMenuItem) {
903
+ return activeActionMenuItem;
904
+ }
905
+ }
906
+ }
907
+ const currentFocusItem = this.getCurrentFocusItem();
908
+ if (currentFocusItem) {
909
+ return currentFocusItem;
910
+ }
911
+ return this.getDefaultNavigationItem();
912
+ }
913
+ getCurrentFocusItem() {
914
+ const { currentFocusItem } = this;
915
+ return currentFocusItem ? this.navigationItems.find((item) => item === currentFocusItem) : void 0;
916
+ }
917
+ getDefaultNavigationItem() {
918
+ return this.navigationItems.find((item) => isAction(item) && item !== this.expandToggleEl) || this.navigationItems[0];
919
+ }
920
+ getEventActionMenu(event) {
921
+ const pathActionMenu = event.composedPath().find((pathEl) => pathEl instanceof HTMLElement && pathEl.matches("calcite-action-menu"));
922
+ if (pathActionMenu) {
923
+ return pathActionMenu;
924
+ }
925
+ const target = event.target;
926
+ if (target instanceof HTMLElement) {
927
+ const closestActionMenu = target.closest("calcite-action-menu");
928
+ if (closestActionMenu) {
929
+ return closestActionMenu;
930
+ }
931
+ }
932
+ return null;
933
+ }
934
+ getOpenActionMenu() {
935
+ return this.navigationItems.find((item) => item.matches("calcite-action-menu") && item.open);
936
+ }
937
+ syncClosedActionMenu(actionMenu) {
938
+ this.updateNavigationItems();
939
+ const navigationActionMenu = this.navigationItems.find((item) => item === actionMenu);
940
+ if (navigationActionMenu) {
941
+ this.setNavigationItemTabIndexes(navigationActionMenu);
942
+ }
943
+ }
944
+ getNavigationItemFromEvent(event) {
945
+ for (const pathEl of event.composedPath()) {
946
+ if (!(pathEl instanceof HTMLElement) || !pathEl.matches("calcite-action, calcite-action-menu")) {
947
+ continue;
948
+ }
949
+ const navigationItem = this.navigationItems.find((item) => item === pathEl);
950
+ if (navigationItem) {
951
+ return navigationItem;
952
+ }
953
+ const actionMenu = pathEl.closest("calcite-action-menu");
954
+ if (actionMenu) {
955
+ const actionMenuNavigationItem = this.navigationItems.find((item) => item === actionMenu);
956
+ if (actionMenuNavigationItem) {
957
+ return actionMenuNavigationItem;
958
+ }
959
+ }
960
+ }
961
+ return null;
962
+ }
963
+ syncNavigationItemTabIndexes(activeItem) {
964
+ this.updateNavigationItems();
965
+ const activeItemInNavigation = activeItem ? this.navigationItems.find((item) => item === activeItem) : void 0;
966
+ const current = activeItemInNavigation || this.getCurrentNavigationItem();
967
+ if (!current) {
968
+ return;
969
+ }
970
+ this.setNavigationItemTabIndexes(current);
971
+ this.updateActions();
972
+ }
973
+ setNavigationItemTabIndexes(active) {
974
+ if (active.matches(":focus-within")) {
975
+ this.currentFocusItem = active;
976
+ }
977
+ this.navigationItems.forEach((item) => {
978
+ const isActive = item === active;
979
+ if (isAction(item)) {
980
+ if (isActive && !item.disabled && !item.hidden) {
981
+ item.removeAttribute("tabindex");
982
+ } else {
983
+ item.tabIndex = -1;
984
+ }
985
+ return;
986
+ }
987
+ if (isActive) {
988
+ item.removeAttribute("tabindex");
657
989
  } else {
658
- action.tabIndex = tabIndex;
990
+ item.tabIndex = -1;
991
+ }
992
+ const { menuButtonEl } = item;
993
+ if (menuButtonEl) {
994
+ if (isActive && !item.open) {
995
+ menuButtonEl.removeAttribute("tabindex");
996
+ } else {
997
+ menuButtonEl.tabIndex = -1;
998
+ }
659
999
  }
660
1000
  });
661
1001
  }
@@ -674,7 +1014,7 @@ class ActionBar extends LitElement {
674
1014
  const slotName = isStart ? SLOTS$2.actionsStart : SLOTS$2.actionsEnd;
675
1015
  const onSlotChange = isStart ? this.handleActionsStartSlotChange : this.handleActionsEndSlotChange;
676
1016
  const label = isStart ? this.actionsStartGroupLabel : this.actionsEndGroupLabel;
677
- const hidden = !hasExpandToggle && !hasActions;
1017
+ const hidden = !hasExpandToggle && !hasActions && !(isStart ? this.hasActionsStart : this.hasActionsEnd);
678
1018
  const actionGroupRef = isStart ? this.actionsStartGroupRef : this.actionsEndGroupRef;
679
1019
  const slotRef = isStart ? this.actionsStartSlotRef : this.actionsEndSlotRef;
680
1020
  const expandToggle = hasExpandToggle ? this.renderExpandToggle() : null;
@@ -3,6 +3,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
3
  import type { Layout, Scale, SelectionMode } from "../types.js";
4
4
  import type { FlipPlacement, LogicalPlacement, OverlayPositioning } from "../../utils/floating-ui.js";
5
5
  import type { Action } from "../calcite-action/customElement.js";
6
+ import type { ActionMenu } from "../calcite-action-menu/customElement.js";
6
7
  import type { Columns } from "./types.js";
7
8
 
8
9
  declare module "@arcgis/lumina" {
@@ -25,6 +26,12 @@ export interface DeclareCssProperties {
25
26
  * @docGroup Actions
26
27
  */
27
28
  export abstract class ActionGroup extends LitElement {
29
+ /**
30
+ * Specifies the internally rendered `calcite-action-menu`.
31
+ *
32
+ * @internal
33
+ */
34
+ accessor actionMenu: ActionMenu | undefined;
28
35
  /**
29
36
  * Specifies the `calcite-action`s in the group.
30
37
  *