@nextcloud/vue 8.7.1 → 8.8.1

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 (357) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  3. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  4. package/dist/Components/NcActionInput.cjs +1 -1
  5. package/dist/Components/NcActionInput.mjs +1 -1
  6. package/dist/Components/NcActions.cjs +1 -1
  7. package/dist/Components/NcActions.mjs +1 -1
  8. package/dist/Components/NcAppContent.cjs +1 -1
  9. package/dist/Components/NcAppContent.mjs +1 -1
  10. package/dist/Components/NcAppNavigation.cjs +1 -1
  11. package/dist/Components/NcAppNavigation.mjs +1 -1
  12. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  13. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  14. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  15. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  16. package/dist/Components/NcAppNavigationList.cjs +20 -0
  17. package/dist/Components/NcAppNavigationList.cjs.map +1 -0
  18. package/dist/Components/NcAppNavigationList.mjs +22 -0
  19. package/dist/Components/NcAppNavigationList.mjs.map +1 -0
  20. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  21. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  22. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  23. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  24. package/dist/Components/NcAppNavigationSpacer.cjs +2 -2
  25. package/dist/Components/NcAppNavigationSpacer.cjs.map +1 -1
  26. package/dist/Components/NcAppNavigationSpacer.mjs +5 -5
  27. package/dist/Components/NcAppNavigationSpacer.mjs.map +1 -1
  28. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  29. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  30. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  31. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  32. package/dist/Components/NcAppSidebar.cjs +1 -1
  33. package/dist/Components/NcAppSidebar.mjs +1 -1
  34. package/dist/Components/NcAvatar.cjs +1 -1
  35. package/dist/Components/NcAvatar.mjs +1 -1
  36. package/dist/Components/NcBreadcrumb.cjs +1 -1
  37. package/dist/Components/NcBreadcrumb.mjs +1 -1
  38. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  39. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  40. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  41. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  42. package/dist/Components/NcColorPicker.cjs +1 -1
  43. package/dist/Components/NcColorPicker.mjs +1 -1
  44. package/dist/Components/NcContent.cjs +1 -1
  45. package/dist/Components/NcContent.mjs +1 -1
  46. package/dist/Components/NcDashboardWidget.cjs +1 -1
  47. package/dist/Components/NcDashboardWidget.mjs +1 -1
  48. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  49. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  50. package/dist/Components/NcDateTime.cjs +1 -1
  51. package/dist/Components/NcDateTime.mjs +1 -1
  52. package/dist/Components/NcDateTimePicker.cjs +2 -2
  53. package/dist/Components/NcDateTimePicker.mjs +5 -5
  54. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  55. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  56. package/dist/Components/NcDialog.cjs +1 -1
  57. package/dist/Components/NcDialog.mjs +1 -1
  58. package/dist/Components/NcDialogButton.cjs +1 -1
  59. package/dist/Components/NcDialogButton.mjs +1 -1
  60. package/dist/Components/NcEmojiPicker.cjs +1 -1
  61. package/dist/Components/NcEmojiPicker.mjs +1 -1
  62. package/dist/Components/NcIconSvgWrapper.cjs +1 -1
  63. package/dist/Components/NcIconSvgWrapper.mjs +1 -1
  64. package/dist/Components/NcListItem.cjs +1 -1
  65. package/dist/Components/NcListItem.mjs +1 -1
  66. package/dist/Components/NcListItemIcon.cjs +1 -1
  67. package/dist/Components/NcListItemIcon.mjs +1 -1
  68. package/dist/Components/NcModal.cjs +1 -1
  69. package/dist/Components/NcModal.mjs +3 -3
  70. package/dist/Components/NcPasswordField.cjs +1 -1
  71. package/dist/Components/NcPasswordField.mjs +1 -1
  72. package/dist/Components/NcPopover.cjs +1 -1
  73. package/dist/Components/NcPopover.mjs +1 -1
  74. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  75. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  76. package/dist/Components/NcRichContenteditable.cjs +1 -1
  77. package/dist/Components/NcRichContenteditable.mjs +2 -2
  78. package/dist/Components/NcRichText.cjs +1 -1
  79. package/dist/Components/NcRichText.mjs +3 -3
  80. package/dist/Components/NcSelect.cjs +1 -1
  81. package/dist/Components/NcSelect.mjs +1 -1
  82. package/dist/Components/NcSelectTags.cjs +1 -1
  83. package/dist/Components/NcSelectTags.mjs +1 -1
  84. package/dist/Components/NcSettingsInputText.cjs +1 -1
  85. package/dist/Components/NcSettingsInputText.mjs +1 -1
  86. package/dist/Components/NcSettingsSection.cjs +1 -1
  87. package/dist/Components/NcSettingsSection.mjs +1 -1
  88. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  89. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  90. package/dist/Components/NcTextField.cjs +1 -1
  91. package/dist/Components/NcTextField.mjs +1 -1
  92. package/dist/Components/NcTimezonePicker.cjs +1 -1
  93. package/dist/Components/NcTimezonePicker.mjs +1 -1
  94. package/dist/Components/NcUserBubble.cjs +1 -1
  95. package/dist/Components/NcUserBubble.mjs +1 -1
  96. package/dist/Components/NcUserStatusIcon.cjs +1 -1
  97. package/dist/Components/NcUserStatusIcon.mjs +1 -1
  98. package/dist/Functions/reference.cjs +1 -1
  99. package/dist/Functions/reference.mjs +1 -1
  100. package/dist/Functions/usernameToColor.cjs +1 -1
  101. package/dist/Functions/usernameToColor.mjs +1 -1
  102. package/dist/Mixins/richEditor.cjs +1 -1
  103. package/dist/Mixins/richEditor.mjs +1 -1
  104. package/dist/assets/{NcActions-4Gq5bZLW.css → NcActions-mt8BQ_bn.css} +12 -12
  105. package/dist/assets/{NcAppNavigation-vjqOL-kR.css → NcAppNavigation-9nlYnuUQ.css} +8 -8
  106. package/dist/assets/{NcAppNavigationCaption-l5yRGXZx.css → NcAppNavigationCaption-I1dcvB0N.css} +11 -5
  107. package/dist/assets/NcAppNavigationList-RooPPg4w.css +44 -0
  108. package/dist/assets/NcAppNavigationSpacer-uaft91Uz.css +4 -0
  109. package/dist/assets/{NcAppSidebar-YHd7DpMW.css → NcAppSidebar-RkF-tqKy.css} +49 -46
  110. package/dist/assets/{NcColorPicker-PzIRM1j1.css → NcColorPicker-jW6HOxWA.css} +24 -24
  111. package/dist/assets/{NcDateTimePicker-TArRbMs-.css → NcDateTimePicker-IOou-rT3.css} +10 -10
  112. package/dist/assets/{NcEmojiPicker-wTIbvcrG.css → NcEmojiPicker-hTlSVIq0.css} +5 -5
  113. package/dist/assets/{NcIconSvgWrapper-arqrq5Bj.css → NcIconSvgWrapper-KLotijwU.css} +13 -7
  114. package/dist/assets/{NcRelatedResourcesPanel-m3uf_nvH.css → NcRelatedResourcesPanel-oq5eMIoh.css} +7 -7
  115. package/dist/assets/{NcRichContenteditable-CuR1YKTU.css → NcRichContenteditable-rW6l0h3m.css} +12 -12
  116. package/dist/assets/{NcRichText-Pw6kTpnR.css → NcRichText-kDp48Nji.css} +2 -2
  117. package/dist/assets/{NcSelect-GsLmwj9w.css → NcSelect-OGgZlx4Q.css} +3 -0
  118. package/dist/chunks/{GenColors-wNwbCHuq.mjs → GenColors-DI6G7se8.mjs} +1 -1
  119. package/dist/chunks/{GenColors-wNwbCHuq.mjs.map → GenColors-DI6G7se8.mjs.map} +1 -1
  120. package/dist/chunks/{GenColors-zPMSiY0e.cjs → GenColors-WX-nGJls.cjs} +1 -1
  121. package/dist/chunks/{GenColors-zPMSiY0e.cjs.map → GenColors-WX-nGJls.cjs.map} +1 -1
  122. package/dist/chunks/{NcActionButtonGroup-A5Ixaw5n.mjs → NcActionButtonGroup-r7iOjoQx.mjs} +1 -1
  123. package/dist/chunks/{NcActionButtonGroup-A5Ixaw5n.mjs.map → NcActionButtonGroup-r7iOjoQx.mjs.map} +1 -1
  124. package/dist/chunks/{NcActionButtonGroup-HIUn669C.cjs → NcActionButtonGroup-vn4L_-bD.cjs} +1 -1
  125. package/dist/chunks/{NcActionButtonGroup-HIUn669C.cjs.map → NcActionButtonGroup-vn4L_-bD.cjs.map} +1 -1
  126. package/dist/chunks/{NcActionInput-f1Oq2O71.cjs → NcActionInput-iUn4neUB.cjs} +1 -1
  127. package/dist/chunks/{NcActionInput-f1Oq2O71.cjs.map → NcActionInput-iUn4neUB.cjs.map} +1 -1
  128. package/dist/chunks/{NcActionInput-XHMzOL_h.mjs → NcActionInput-rojOjWGA.mjs} +4 -4
  129. package/dist/chunks/{NcActionInput-XHMzOL_h.mjs.map → NcActionInput-rojOjWGA.mjs.map} +1 -1
  130. package/dist/chunks/{NcActions-5_igU-CH.mjs → NcActions-4NCnCJdf.mjs} +153 -80
  131. package/dist/chunks/NcActions-4NCnCJdf.mjs.map +1 -0
  132. package/dist/chunks/{NcActions-JXnhQhum.cjs → NcActions-tPPh2p8F.cjs} +143 -70
  133. package/dist/chunks/NcActions-tPPh2p8F.cjs.map +1 -0
  134. package/dist/chunks/{NcAppContent-Kq5fJ7_W.cjs → NcAppContent-ZjNUuV0Q.cjs} +1 -1
  135. package/dist/chunks/{NcAppContent-Kq5fJ7_W.cjs.map → NcAppContent-ZjNUuV0Q.cjs.map} +1 -1
  136. package/dist/chunks/{NcAppContent-WBzZJh-y.mjs → NcAppContent-jkpg6g7U.mjs} +1 -1
  137. package/dist/chunks/{NcAppContent-WBzZJh-y.mjs.map → NcAppContent-jkpg6g7U.mjs.map} +1 -1
  138. package/dist/chunks/{NcAppNavigation-U6yaDk7k.cjs → NcAppNavigation-CNOTInDF.cjs} +4 -4
  139. package/dist/chunks/NcAppNavigation-CNOTInDF.cjs.map +1 -0
  140. package/dist/chunks/{NcAppNavigation-n6P3oVZv.mjs → NcAppNavigation-jWJsOIts.mjs} +8 -8
  141. package/dist/chunks/NcAppNavigation-jWJsOIts.mjs.map +1 -0
  142. package/dist/chunks/NcAppNavigationCaption-HAxOA6LJ.cjs +58 -0
  143. package/dist/chunks/NcAppNavigationCaption-HAxOA6LJ.cjs.map +1 -0
  144. package/dist/chunks/NcAppNavigationCaption-t_NRjmPr.mjs +61 -0
  145. package/dist/chunks/NcAppNavigationCaption-t_NRjmPr.mjs.map +1 -0
  146. package/dist/chunks/{NcAppNavigationItem-Wb8gX-Ln.cjs → NcAppNavigationItem-MA9ORoUF.cjs} +1 -1
  147. package/dist/chunks/{NcAppNavigationItem-Wb8gX-Ln.cjs.map → NcAppNavigationItem-MA9ORoUF.cjs.map} +1 -1
  148. package/dist/chunks/{NcAppNavigationItem-A1yAdDNN.mjs → NcAppNavigationItem-_F3PGjJA.mjs} +3 -3
  149. package/dist/chunks/{NcAppNavigationItem-A1yAdDNN.mjs.map → NcAppNavigationItem-_F3PGjJA.mjs.map} +1 -1
  150. package/dist/chunks/{NcAppNavigationNewItem-t1ST1cif.mjs → NcAppNavigationNewItem-AChqGXVZ.mjs} +1 -1
  151. package/dist/chunks/{NcAppNavigationNewItem-t1ST1cif.mjs.map → NcAppNavigationNewItem-AChqGXVZ.mjs.map} +1 -1
  152. package/dist/chunks/{NcAppNavigationNewItem-TyGHutbG.cjs → NcAppNavigationNewItem-CDAeQ7VS.cjs} +1 -1
  153. package/dist/chunks/{NcAppNavigationNewItem-TyGHutbG.cjs.map → NcAppNavigationNewItem-CDAeQ7VS.cjs.map} +1 -1
  154. package/dist/chunks/{NcAppNavigationSettings-gwL_FqLN.mjs → NcAppNavigationSettings-1n_Ld521.mjs} +1 -1
  155. package/dist/chunks/{NcAppNavigationSettings-gwL_FqLN.mjs.map → NcAppNavigationSettings-1n_Ld521.mjs.map} +1 -1
  156. package/dist/chunks/{NcAppNavigationSettings-VLa79G7w.cjs → NcAppNavigationSettings-qW2qjrEY.cjs} +1 -1
  157. package/dist/chunks/{NcAppNavigationSettings-VLa79G7w.cjs.map → NcAppNavigationSettings-qW2qjrEY.cjs.map} +1 -1
  158. package/dist/chunks/{NcAppNavigationToggle-KT8eqw6r.mjs → NcAppNavigationToggle-H-gUVQa_.mjs} +1 -1
  159. package/dist/chunks/{NcAppNavigationToggle-KT8eqw6r.mjs.map → NcAppNavigationToggle-H-gUVQa_.mjs.map} +1 -1
  160. package/dist/chunks/{NcAppNavigationToggle-Wz0s35Rd.cjs → NcAppNavigationToggle-mJ8JlXiA.cjs} +1 -1
  161. package/dist/chunks/{NcAppNavigationToggle-Wz0s35Rd.cjs.map → NcAppNavigationToggle-mJ8JlXiA.cjs.map} +1 -1
  162. package/dist/chunks/{NcAppSettingsDialog-h22q7l_7.cjs → NcAppSettingsDialog-JAKe849o.cjs} +1 -1
  163. package/dist/chunks/{NcAppSettingsDialog-h22q7l_7.cjs.map → NcAppSettingsDialog-JAKe849o.cjs.map} +1 -1
  164. package/dist/chunks/{NcAppSettingsDialog-5t3vGpRF.mjs → NcAppSettingsDialog-Sra5JJSN.mjs} +2 -2
  165. package/dist/chunks/{NcAppSettingsDialog-5t3vGpRF.mjs.map → NcAppSettingsDialog-Sra5JJSN.mjs.map} +1 -1
  166. package/dist/chunks/{NcAppSidebar-tnHBPGbL.mjs → NcAppSidebar-3es9kNNh.mjs} +8 -6
  167. package/dist/chunks/NcAppSidebar-3es9kNNh.mjs.map +1 -0
  168. package/dist/chunks/{NcAppSidebar-rRNJnN-k.cjs → NcAppSidebar-8_YcevI9.cjs} +7 -5
  169. package/dist/chunks/NcAppSidebar-8_YcevI9.cjs.map +1 -0
  170. package/dist/chunks/{NcAvatar-xT3kz6mU.mjs → NcAvatar-MHywJkM4.mjs} +4 -4
  171. package/dist/chunks/{NcAvatar-xT3kz6mU.mjs.map → NcAvatar-MHywJkM4.mjs.map} +1 -1
  172. package/dist/chunks/{NcAvatar-zTS9P1lK.cjs → NcAvatar-Vp4PnmMw.cjs} +2 -2
  173. package/dist/chunks/{NcAvatar-zTS9P1lK.cjs.map → NcAvatar-Vp4PnmMw.cjs.map} +1 -1
  174. package/dist/chunks/{NcBreadcrumb-w1UX2NR-.mjs → NcBreadcrumb-K8expM4Y.mjs} +1 -1
  175. package/dist/chunks/{NcBreadcrumb-w1UX2NR-.mjs.map → NcBreadcrumb-K8expM4Y.mjs.map} +1 -1
  176. package/dist/chunks/{NcBreadcrumb-DEWk7wO9.cjs → NcBreadcrumb-lksx7xyQ.cjs} +1 -1
  177. package/dist/chunks/{NcBreadcrumb-DEWk7wO9.cjs.map → NcBreadcrumb-lksx7xyQ.cjs.map} +1 -1
  178. package/dist/chunks/{NcBreadcrumbs-VuaG3ex5.cjs → NcBreadcrumbs-cwBxvntJ.cjs} +1 -1
  179. package/dist/chunks/{NcBreadcrumbs-VuaG3ex5.cjs.map → NcBreadcrumbs-cwBxvntJ.cjs.map} +1 -1
  180. package/dist/chunks/{NcBreadcrumbs-tRR9CjKD.mjs → NcBreadcrumbs-rX1BVFSi.mjs} +2 -2
  181. package/dist/chunks/{NcBreadcrumbs-tRR9CjKD.mjs.map → NcBreadcrumbs-rX1BVFSi.mjs.map} +1 -1
  182. package/dist/chunks/{NcCheckboxRadioSwitch-7pZp_rWo.cjs → NcCheckboxRadioSwitch-BUIaJMqW.cjs} +2 -2
  183. package/dist/chunks/{NcCheckboxRadioSwitch-7pZp_rWo.cjs.map → NcCheckboxRadioSwitch-BUIaJMqW.cjs.map} +1 -1
  184. package/dist/chunks/{NcCheckboxRadioSwitch-PlgK1zWr.mjs → NcCheckboxRadioSwitch-hel9-sAH.mjs} +2 -2
  185. package/dist/chunks/{NcCheckboxRadioSwitch-PlgK1zWr.mjs.map → NcCheckboxRadioSwitch-hel9-sAH.mjs.map} +1 -1
  186. package/dist/chunks/{NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-kOW4T17e.cjs → NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-UbvywlEZ.cjs} +1 -1
  187. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-UbvywlEZ.cjs.map +1 -0
  188. package/dist/chunks/{NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-rJ3UZLGm.mjs → NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-pNm38e__.mjs} +1 -1
  189. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-pNm38e__.mjs.map +1 -0
  190. package/dist/chunks/{NcColorPicker-yr9Pfeem.cjs → NcColorPicker-_OGhRcL2.cjs} +4 -4
  191. package/dist/chunks/NcColorPicker-_OGhRcL2.cjs.map +1 -0
  192. package/dist/chunks/{NcColorPicker-rPobPO3M.mjs → NcColorPicker-rdotuXIn.mjs} +6 -6
  193. package/dist/chunks/NcColorPicker-rdotuXIn.mjs.map +1 -0
  194. package/dist/chunks/{NcContent-EGBAB5sy.mjs → NcContent-M9BJMGg0.mjs} +2 -2
  195. package/dist/chunks/{NcContent-EGBAB5sy.mjs.map → NcContent-M9BJMGg0.mjs.map} +1 -1
  196. package/dist/chunks/{NcContent-BdekB7Zr.cjs → NcContent-qCB26fzT.cjs} +1 -1
  197. package/dist/chunks/{NcContent-BdekB7Zr.cjs.map → NcContent-qCB26fzT.cjs.map} +1 -1
  198. package/dist/chunks/{NcDashboardWidget-oPZKAkd-.cjs → NcDashboardWidget-ajzKRBC2.cjs} +1 -1
  199. package/dist/chunks/{NcDashboardWidget-oPZKAkd-.cjs.map → NcDashboardWidget-ajzKRBC2.cjs.map} +1 -1
  200. package/dist/chunks/{NcDashboardWidget-9LDutUO0.mjs → NcDashboardWidget-oK144Mdz.mjs} +3 -3
  201. package/dist/chunks/{NcDashboardWidget-9LDutUO0.mjs.map → NcDashboardWidget-oK144Mdz.mjs.map} +1 -1
  202. package/dist/chunks/{NcDashboardWidgetItem-Qd8gSF2h.mjs → NcDashboardWidgetItem-H0TN4xZv.mjs} +2 -2
  203. package/dist/chunks/{NcDashboardWidgetItem-Qd8gSF2h.mjs.map → NcDashboardWidgetItem-H0TN4xZv.mjs.map} +1 -1
  204. package/dist/chunks/{NcDashboardWidgetItem-1r760Ikh.cjs → NcDashboardWidgetItem-hmytFH9r.cjs} +1 -1
  205. package/dist/chunks/{NcDashboardWidgetItem-1r760Ikh.cjs.map → NcDashboardWidgetItem-hmytFH9r.cjs.map} +1 -1
  206. package/dist/chunks/{NcDateTime-hyWStpUj.cjs → NcDateTime-7m58XSm1.cjs} +1 -1
  207. package/dist/chunks/{NcDateTime-hyWStpUj.cjs.map → NcDateTime-7m58XSm1.cjs.map} +1 -1
  208. package/dist/chunks/{NcDateTime-UCw1o96E.mjs → NcDateTime-FfZJDKud.mjs} +1 -1
  209. package/dist/chunks/{NcDateTime-UCw1o96E.mjs.map → NcDateTime-FfZJDKud.mjs.map} +1 -1
  210. package/dist/chunks/{NcDialog-652A8lMI.mjs → NcDialog-_HZnlBi4.mjs} +1 -1
  211. package/dist/chunks/{NcDialog-652A8lMI.mjs.map → NcDialog-_HZnlBi4.mjs.map} +1 -1
  212. package/dist/chunks/{NcDialog-dPYf81Dr.cjs → NcDialog-f6KwlaqC.cjs} +1 -1
  213. package/dist/chunks/{NcDialog-dPYf81Dr.cjs.map → NcDialog-f6KwlaqC.cjs.map} +1 -1
  214. package/dist/chunks/{NcDialogButton-V3nj_xwS.cjs → NcDialogButton-CtdP0-DO.cjs} +1 -1
  215. package/dist/chunks/{NcDialogButton-V3nj_xwS.cjs.map → NcDialogButton-CtdP0-DO.cjs.map} +1 -1
  216. package/dist/chunks/{NcDialogButton-QuoJDLGH.mjs → NcDialogButton-xDZQrfsw.mjs} +1 -1
  217. package/dist/chunks/{NcDialogButton-QuoJDLGH.mjs.map → NcDialogButton-xDZQrfsw.mjs.map} +1 -1
  218. package/dist/chunks/{NcEmojiPicker-xzt2RvDK.cjs → NcEmojiPicker-fsigxTm2.cjs} +13 -13
  219. package/dist/chunks/NcEmojiPicker-fsigxTm2.cjs.map +1 -0
  220. package/dist/chunks/{NcEmojiPicker-O0EAGlkS.mjs → NcEmojiPicker-g4_HENyr.mjs} +8 -8
  221. package/dist/chunks/NcEmojiPicker-g4_HENyr.mjs.map +1 -0
  222. package/dist/chunks/{NcIconSvgWrapper-n3MnAe1S.mjs → NcIconSvgWrapper-CvnWKK7h.mjs} +23 -15
  223. package/dist/chunks/NcIconSvgWrapper-CvnWKK7h.mjs.map +1 -0
  224. package/dist/chunks/{NcIconSvgWrapper-R7a7dIg4.cjs → NcIconSvgWrapper-RwagV5P9.cjs} +20 -12
  225. package/dist/chunks/NcIconSvgWrapper-RwagV5P9.cjs.map +1 -0
  226. package/dist/chunks/{NcInputConfirmCancel-z3ANO-1N.mjs → NcInputConfirmCancel-1G2LMh5T.mjs} +1 -1
  227. package/dist/chunks/{NcInputConfirmCancel-z3ANO-1N.mjs.map → NcInputConfirmCancel-1G2LMh5T.mjs.map} +1 -1
  228. package/dist/chunks/{NcInputConfirmCancel-tvpFnpKT.cjs → NcInputConfirmCancel-9l24xmqk.cjs} +1 -1
  229. package/dist/chunks/{NcInputConfirmCancel-tvpFnpKT.cjs.map → NcInputConfirmCancel-9l24xmqk.cjs.map} +1 -1
  230. package/dist/chunks/{NcListItem-AMcc69jK.mjs → NcListItem-JO4s1J8T.mjs} +2 -2
  231. package/dist/chunks/{NcListItem-AMcc69jK.mjs.map → NcListItem-JO4s1J8T.mjs.map} +1 -1
  232. package/dist/chunks/{NcListItem--_PCqetA.cjs → NcListItem-y9KnglaX.cjs} +1 -1
  233. package/dist/chunks/{NcListItem--_PCqetA.cjs.map → NcListItem-y9KnglaX.cjs.map} +1 -1
  234. package/dist/chunks/{NcListItemIcon-BnoIbVbD.cjs → NcListItemIcon-JWu3t5En.cjs} +1 -1
  235. package/dist/chunks/{NcListItemIcon-BnoIbVbD.cjs.map → NcListItemIcon-JWu3t5En.cjs.map} +1 -1
  236. package/dist/chunks/{NcListItemIcon-rqgXledP.mjs → NcListItemIcon-NPSUuwgH.mjs} +2 -2
  237. package/dist/chunks/{NcListItemIcon-rqgXledP.mjs.map → NcListItemIcon-NPSUuwgH.mjs.map} +1 -1
  238. package/dist/chunks/{NcPasswordField-IkBZCjOy.cjs → NcPasswordField-r4LxrITz.cjs} +1 -1
  239. package/dist/chunks/{NcPasswordField-IkBZCjOy.cjs.map → NcPasswordField-r4LxrITz.cjs.map} +1 -1
  240. package/dist/chunks/{NcPasswordField-EbKN3MlL.mjs → NcPasswordField-sshf3uoz.mjs} +1 -1
  241. package/dist/chunks/{NcPasswordField-EbKN3MlL.mjs.map → NcPasswordField-sshf3uoz.mjs.map} +1 -1
  242. package/dist/chunks/{NcPopover-T4GMXmKV.mjs → NcPopover-93ns_0K4.mjs} +38 -23
  243. package/dist/chunks/NcPopover-93ns_0K4.mjs.map +1 -0
  244. package/dist/chunks/{NcPopover-judBGW5r.cjs → NcPopover-fv7OFtxM.cjs} +33 -18
  245. package/dist/chunks/NcPopover-fv7OFtxM.cjs.map +1 -0
  246. package/dist/chunks/{NcRelatedResourcesPanel-EDvgZgjQ.mjs → NcRelatedResourcesPanel-3uGS3Og7.mjs} +27 -21
  247. package/dist/chunks/NcRelatedResourcesPanel-3uGS3Og7.mjs.map +1 -0
  248. package/dist/chunks/{NcRelatedResourcesPanel-f2UeB_6X.cjs → NcRelatedResourcesPanel-I6QLPffA.cjs} +22 -17
  249. package/dist/chunks/NcRelatedResourcesPanel-I6QLPffA.cjs.map +1 -0
  250. package/dist/chunks/{NcRichContenteditable-d4EOAT2a.mjs → NcRichContenteditable-1aWhJhMf.mjs} +13 -12
  251. package/dist/chunks/NcRichContenteditable-1aWhJhMf.mjs.map +1 -0
  252. package/dist/chunks/{NcRichContenteditable-cUZMZlgG.cjs → NcRichContenteditable-tQi-Ee-6.cjs} +11 -10
  253. package/dist/chunks/NcRichContenteditable-tQi-Ee-6.cjs.map +1 -0
  254. package/dist/chunks/{NcRichText-yfYdNWFh.mjs → NcRichText-LKlliqlj.mjs} +29 -31
  255. package/dist/chunks/NcRichText-LKlliqlj.mjs.map +1 -0
  256. package/dist/chunks/{NcRichText-S34HoIhH.cjs → NcRichText-zUTcd9g0.cjs} +41 -44
  257. package/dist/chunks/NcRichText-zUTcd9g0.cjs.map +1 -0
  258. package/dist/chunks/{NcSelect-b2H-YQsK.mjs → NcSelect-Hw3T6JKO.mjs} +3 -3
  259. package/dist/chunks/{NcSelect-U9LJcdIo.cjs.map → NcSelect-Hw3T6JKO.mjs.map} +1 -1
  260. package/dist/chunks/{NcSelect-U9LJcdIo.cjs → NcSelect-KpQ1z3xL.cjs} +2 -2
  261. package/dist/chunks/{NcSelect-b2H-YQsK.mjs.map → NcSelect-KpQ1z3xL.cjs.map} +1 -1
  262. package/dist/chunks/{NcSelectTags-MlILya2b.mjs → NcSelectTags-_JF5U0z-.mjs} +2 -2
  263. package/dist/chunks/{NcSelectTags-MlILya2b.mjs.map → NcSelectTags-_JF5U0z-.mjs.map} +1 -1
  264. package/dist/chunks/{NcSelectTags-rO88Pk-1.cjs → NcSelectTags-dBHEZJKD.cjs} +1 -1
  265. package/dist/chunks/{NcSelectTags-rO88Pk-1.cjs.map → NcSelectTags-dBHEZJKD.cjs.map} +1 -1
  266. package/dist/chunks/{NcSettingsInputText-0K3HYGJr.cjs → NcSettingsInputText-8TTOXLUf.cjs} +1 -1
  267. package/dist/chunks/{NcSettingsInputText-0K3HYGJr.cjs.map → NcSettingsInputText-8TTOXLUf.cjs.map} +1 -1
  268. package/dist/chunks/{NcSettingsInputText-Pz6fV7At.mjs → NcSettingsInputText-xNWnltHw.mjs} +1 -1
  269. package/dist/chunks/{NcSettingsInputText-Pz6fV7At.mjs.map → NcSettingsInputText-xNWnltHw.mjs.map} +1 -1
  270. package/dist/chunks/{NcSettingsSection-CRmU7GLC.mjs → NcSettingsSection-f1NU2FVI.mjs} +1 -1
  271. package/dist/chunks/{NcSettingsSection-CRmU7GLC.mjs.map → NcSettingsSection-f1NU2FVI.mjs.map} +1 -1
  272. package/dist/chunks/{NcSettingsSection-IbUOeZ-e.cjs → NcSettingsSection-wQR22_HI.cjs} +1 -1
  273. package/dist/chunks/{NcSettingsSection-IbUOeZ-e.cjs.map → NcSettingsSection-wQR22_HI.cjs.map} +1 -1
  274. package/dist/chunks/{NcSettingsSelectGroup-rfeDPLCg.cjs → NcSettingsSelectGroup-7rZs5am4.cjs} +1 -1
  275. package/dist/chunks/{NcSettingsSelectGroup-rfeDPLCg.cjs.map → NcSettingsSelectGroup-7rZs5am4.cjs.map} +1 -1
  276. package/dist/chunks/{NcSettingsSelectGroup-xhnDBg8a.mjs → NcSettingsSelectGroup-KR0JI731.mjs} +2 -2
  277. package/dist/chunks/{NcSettingsSelectGroup-xhnDBg8a.mjs.map → NcSettingsSelectGroup-KR0JI731.mjs.map} +1 -1
  278. package/dist/chunks/{NcTextField-eclRKl_B.cjs → NcTextField-ejnIVzP2.cjs} +1 -1
  279. package/dist/chunks/{NcTextField-eclRKl_B.cjs.map → NcTextField-ejnIVzP2.cjs.map} +1 -1
  280. package/dist/chunks/{NcTextField-NnW31cA4.mjs → NcTextField-u76gJqK3.mjs} +1 -1
  281. package/dist/chunks/{NcTextField-NnW31cA4.mjs.map → NcTextField-u76gJqK3.mjs.map} +1 -1
  282. package/dist/chunks/{NcTimezonePicker-KG0dvgUv.cjs → NcTimezonePicker-OON0Y0l1.cjs} +1 -1
  283. package/dist/chunks/{NcTimezonePicker-KG0dvgUv.cjs.map → NcTimezonePicker-OON0Y0l1.cjs.map} +1 -1
  284. package/dist/chunks/{NcTimezonePicker-jJeiI-Ff.mjs → NcTimezonePicker-s9HDKbHx.mjs} +2 -2
  285. package/dist/chunks/{NcTimezonePicker-jJeiI-Ff.mjs.map → NcTimezonePicker-s9HDKbHx.mjs.map} +1 -1
  286. package/dist/chunks/{NcUserBubble-9StjszDh.mjs → NcUserBubble-2gGv-0Sv.mjs} +2 -2
  287. package/dist/chunks/{NcUserBubble-9StjszDh.mjs.map → NcUserBubble-2gGv-0Sv.mjs.map} +1 -1
  288. package/dist/chunks/{NcUserBubble-027_C0cM.cjs → NcUserBubble-cv1Ae_v4.cjs} +1 -1
  289. package/dist/chunks/{NcUserBubble-027_C0cM.cjs.map → NcUserBubble-cv1Ae_v4.cjs.map} +1 -1
  290. package/dist/chunks/{NcUserStatusIcon-pRUzQidI.mjs → NcUserStatusIcon-q3okK462.mjs} +1 -1
  291. package/dist/chunks/{NcUserStatusIcon-pRUzQidI.mjs.map → NcUserStatusIcon-q3okK462.mjs.map} +1 -1
  292. package/dist/chunks/{NcUserStatusIcon-79RsINrv.cjs → NcUserStatusIcon-ydS217hk.cjs} +1 -1
  293. package/dist/chunks/{NcUserStatusIcon-79RsINrv.cjs.map → NcUserStatusIcon-ydS217hk.cjs.map} +1 -1
  294. package/dist/chunks/{ScopeComponent-v4OJPQb8.cjs → ScopeComponent-ad_Jva5z.cjs} +1 -1
  295. package/dist/chunks/{ScopeComponent-v4OJPQb8.cjs.map → ScopeComponent-ad_Jva5z.cjs.map} +1 -1
  296. package/dist/chunks/{ScopeComponent-ZQvTL_tO.mjs → ScopeComponent-fOJOJbfW.mjs} +1 -1
  297. package/dist/chunks/{ScopeComponent-ZQvTL_tO.mjs.map → ScopeComponent-fOJOJbfW.mjs.map} +1 -1
  298. package/dist/chunks/_l10n-9dioj9MT.mjs +66 -0
  299. package/dist/chunks/_l10n-9dioj9MT.mjs.map +1 -0
  300. package/dist/chunks/_l10n-qu3Uu6RR.cjs +64 -0
  301. package/dist/chunks/_l10n-qu3Uu6RR.cjs.map +1 -0
  302. package/dist/chunks/autolink-gVCgJtXh.cjs +55 -0
  303. package/dist/chunks/autolink-gVCgJtXh.cjs.map +1 -0
  304. package/dist/chunks/autolink-oKM43mOC.mjs +59 -0
  305. package/dist/chunks/autolink-oKM43mOC.mjs.map +1 -0
  306. package/dist/chunks/{index-xnq0-IMW.mjs → index-05Rfhge1.mjs} +1 -1
  307. package/dist/chunks/index-05Rfhge1.mjs.map +1 -0
  308. package/dist/chunks/{index-5TyVc_TT.cjs → index-XRGLuo0a.cjs} +1 -1
  309. package/dist/chunks/index-XRGLuo0a.cjs.map +1 -0
  310. package/dist/chunks/{referencePickerModal-gDBkGfNV.mjs → referencePickerModal-02Pa52XN.mjs} +474 -528
  311. package/dist/chunks/referencePickerModal-02Pa52XN.mjs.map +1 -0
  312. package/dist/chunks/{referencePickerModal-cPBjsn4r.cjs → referencePickerModal-87PoyCB_.cjs} +464 -517
  313. package/dist/chunks/referencePickerModal-87PoyCB_.cjs.map +1 -0
  314. package/dist/chunks/{usernameToColor-xm3MLiw4.mjs → usernameToColor-exoSzo-C.mjs} +1 -1
  315. package/dist/chunks/{usernameToColor-xm3MLiw4.mjs.map → usernameToColor-exoSzo-C.mjs.map} +1 -1
  316. package/dist/chunks/{usernameToColor-D5bplyWJ.cjs → usernameToColor-zos-xTTA.cjs} +1 -1
  317. package/dist/chunks/{usernameToColor-D5bplyWJ.cjs.map → usernameToColor-zos-xTTA.cjs.map} +1 -1
  318. package/dist/index.cjs +126 -124
  319. package/dist/index.cjs.map +1 -1
  320. package/dist/index.mjs +232 -229
  321. package/dist/index.mjs.map +1 -1
  322. package/package.json +6 -6
  323. package/dist/assets/NcAppNavigationSpacer-MfL8GeCN.css +0 -5
  324. package/dist/chunks/NcActions-5_igU-CH.mjs.map +0 -1
  325. package/dist/chunks/NcActions-JXnhQhum.cjs.map +0 -1
  326. package/dist/chunks/NcAppNavigation-U6yaDk7k.cjs.map +0 -1
  327. package/dist/chunks/NcAppNavigation-n6P3oVZv.mjs.map +0 -1
  328. package/dist/chunks/NcAppNavigationCaption-2rUO5Mns.mjs +0 -47
  329. package/dist/chunks/NcAppNavigationCaption-2rUO5Mns.mjs.map +0 -1
  330. package/dist/chunks/NcAppNavigationCaption-JQWbmgdy.cjs +0 -44
  331. package/dist/chunks/NcAppNavigationCaption-JQWbmgdy.cjs.map +0 -1
  332. package/dist/chunks/NcAppSidebar-rRNJnN-k.cjs.map +0 -1
  333. package/dist/chunks/NcAppSidebar-tnHBPGbL.mjs.map +0 -1
  334. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-kOW4T17e.cjs.map +0 -1
  335. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-rJ3UZLGm.mjs.map +0 -1
  336. package/dist/chunks/NcColorPicker-rPobPO3M.mjs.map +0 -1
  337. package/dist/chunks/NcColorPicker-yr9Pfeem.cjs.map +0 -1
  338. package/dist/chunks/NcEmojiPicker-O0EAGlkS.mjs.map +0 -1
  339. package/dist/chunks/NcEmojiPicker-xzt2RvDK.cjs.map +0 -1
  340. package/dist/chunks/NcIconSvgWrapper-R7a7dIg4.cjs.map +0 -1
  341. package/dist/chunks/NcIconSvgWrapper-n3MnAe1S.mjs.map +0 -1
  342. package/dist/chunks/NcPopover-T4GMXmKV.mjs.map +0 -1
  343. package/dist/chunks/NcPopover-judBGW5r.cjs.map +0 -1
  344. package/dist/chunks/NcRelatedResourcesPanel-EDvgZgjQ.mjs.map +0 -1
  345. package/dist/chunks/NcRelatedResourcesPanel-f2UeB_6X.cjs.map +0 -1
  346. package/dist/chunks/NcRichContenteditable-cUZMZlgG.cjs.map +0 -1
  347. package/dist/chunks/NcRichContenteditable-d4EOAT2a.mjs.map +0 -1
  348. package/dist/chunks/NcRichText-S34HoIhH.cjs.map +0 -1
  349. package/dist/chunks/NcRichText-yfYdNWFh.mjs.map +0 -1
  350. package/dist/chunks/_l10n-FmsZpnE4.mjs +0 -66
  351. package/dist/chunks/_l10n-FmsZpnE4.mjs.map +0 -1
  352. package/dist/chunks/_l10n-Od-4xzJA.cjs +0 -64
  353. package/dist/chunks/_l10n-Od-4xzJA.cjs.map +0 -1
  354. package/dist/chunks/index-5TyVc_TT.cjs.map +0 -1
  355. package/dist/chunks/index-xnq0-IMW.mjs.map +0 -1
  356. package/dist/chunks/referencePickerModal-cPBjsn4r.cjs.map +0 -1
  357. package/dist/chunks/referencePickerModal-gDBkGfNV.mjs.map +0 -1
@@ -1,13 +1,13 @@
1
- require('../assets/NcActions-4Gq5bZLW.css');
1
+ require('../assets/NcActions-mt8BQ_bn.css');
2
2
  "use strict";
3
- const _ = require("../Components/NcButton.cjs"), B = require("./NcPopover-judBGW5r.cjs"), w = require("./GenRandomId-ULxaMkkr.cjs"), F = require("./focusTrap-n3H52LOw.cjs"), f = require("./_l10n-Od-4xzJA.cjs"), A = require("vue"), O = require("./DotsHorizontal-6hepLUSS.cjs"), q = require("./_plugin-vue2_normalizer-DCfUPqga.cjs"), L = (t) => t && t.__esModule ? t : { default: t }, E = /* @__PURE__ */ L(A);
3
+ const k = require("../Components/NcButton.cjs"), S = require("./NcPopover-fv7OFtxM.cjs"), $ = require("./GenRandomId-ULxaMkkr.cjs"), _ = require("./focusTrap-n3H52LOw.cjs"), f = require("./_l10n-qu3Uu6RR.cjs"), y = require("vue"), B = require("./DotsHorizontal-6hepLUSS.cjs"), E = require("./_plugin-vue2_normalizer-DCfUPqga.cjs"), O = (t) => t && t.__esModule ? t : { default: t }, R = /* @__PURE__ */ O(y);
4
4
  f.register(f.t4);
5
- const c = ".focusable", D = {
5
+ const g = ".focusable", L = {
6
6
  name: "NcActions",
7
7
  components: {
8
- NcButton: _,
9
- DotsHorizontal: O.DotsHorizontal,
10
- NcPopover: B.NcPopover
8
+ NcButton: k,
9
+ DotsHorizontal: B.DotsHorizontal,
10
+ NcPopover: S.NcPopover
11
11
  },
12
12
  provide() {
13
13
  return {
@@ -20,7 +20,7 @@ const c = ".focusable", D = {
20
20
  * Provide the role for NcAction* components in the NcActions content.
21
21
  * @type {import('vue').ComputedRef<boolean>}
22
22
  */
23
- "NcActions:isSemanticMenu": A.computed(() => this.actionsMenuSemanticType === "menu")
23
+ "NcActions:isSemanticMenu": y.computed(() => this.actionsMenuSemanticType === "menu")
24
24
  };
25
25
  },
26
26
  props: {
@@ -159,11 +159,11 @@ const c = ".focusable", D = {
159
159
  return {
160
160
  opened: this.open,
161
161
  focusIndex: 0,
162
- randomId: `menu-${w.GenRandomId()}`,
162
+ randomId: `menu-${$.GenRandomId()}`,
163
163
  /**
164
- * @type {'menu'|'navigation'|'dialog'|'tooltip'|''}
164
+ * @type {'menu'|'navigation'|'dialog'|'tooltip'|'unknown'}
165
165
  */
166
- actionsMenuSemanticType: "",
166
+ actionsMenuSemanticType: "unknown",
167
167
  externalFocusTrapStack: []
168
168
  };
169
169
  },
@@ -171,8 +171,48 @@ const c = ".focusable", D = {
171
171
  triggerBtnType() {
172
172
  return this.type || (this.primary ? "primary" : this.menuName ? "secondary" : "tertiary");
173
173
  },
174
+ /**
175
+ * A11y roles and keyboard navigation configuration depending on the semantic type
176
+ */
177
+ config() {
178
+ return {
179
+ menu: {
180
+ popupRole: "menu",
181
+ withArrowNavigation: !0,
182
+ withTabNavigation: !1,
183
+ withFocusTrap: !1
184
+ },
185
+ navigation: {
186
+ popupRole: void 0,
187
+ withArrowNavigation: !1,
188
+ withTabNavigation: !0,
189
+ withFocusTrap: !1
190
+ },
191
+ dialog: {
192
+ popupRole: "dialog",
193
+ withArrowNavigation: !1,
194
+ withTabNavigation: !0,
195
+ withFocusTrap: !0
196
+ },
197
+ tooltip: {
198
+ popupRole: void 0,
199
+ withArrowNavigation: !1,
200
+ withTabNavigation: !1,
201
+ withFocusTrap: !1
202
+ },
203
+ // Due to Vue limitations, we sometimes cannot determine the true type
204
+ // As a fallback use both arrow navigation and focus trap
205
+ unknown: {
206
+ popupRole: void 0,
207
+ role: void 0,
208
+ withArrowNavigation: !0,
209
+ withTabNavigation: !1,
210
+ withFocusTrap: !0
211
+ }
212
+ }[this.actionsMenuSemanticType];
213
+ },
174
214
  withFocusTrap() {
175
- return this.actionsMenuSemanticType === "dialog";
215
+ return this.config.withFocusTrap;
176
216
  }
177
217
  },
178
218
  watch: {
@@ -204,9 +244,9 @@ const c = ".focusable", D = {
204
244
  * We need to pause all the focus traps for opening popover and then unpause them back after closing.
205
245
  */
206
246
  intersectIntoCurrentFocusTrapStack() {
207
- if (!this.withFocusTrap)
247
+ if (!this.config.withFocusTrap)
208
248
  if (this.opened) {
209
- this.externalFocusTrapStack = [...F.getTrapStack()];
249
+ this.externalFocusTrapStack = [..._.getTrapStack()];
210
250
  for (const t of this.externalFocusTrapStack)
211
251
  t.pause();
212
252
  } else {
@@ -249,19 +289,34 @@ const c = ".focusable", D = {
249
289
  });
250
290
  },
251
291
  // MENU KEYS & FOCUS MANAGEMENT
252
- // focus nearest focusable item on mouse move
253
- // DO NOT change the focus if the target is already focused
254
- // this will prevent issues with input being unfocused
255
- // on mouse move
292
+ /**
293
+ * @return {HTMLElement|null}
294
+ */
295
+ getCurrentActiveMenuItemElement() {
296
+ return this.$refs.menu.querySelector("li.active");
297
+ },
298
+ /**
299
+ * @return {NodeListOf<HTMLElement>}
300
+ */
301
+ getFocusableMenuItemElements() {
302
+ return this.$refs.menu.querySelectorAll(g);
303
+ },
304
+ /**
305
+ * Focus nearest focusable item on mouse move.
306
+ * DO NOT change the focus if the target is already focused
307
+ * this will prevent issues with input being unfocused
308
+ * on mouse move
309
+ * @param {PointerEvent} event - The mouse move event
310
+ */
256
311
  onMouseFocusAction(t) {
257
312
  if (document.activeElement === t.target)
258
313
  return;
259
314
  const n = t.target.closest("li");
260
315
  if (n && this.$refs.menu.contains(n)) {
261
- const i = n.querySelector(c);
316
+ const i = n.querySelector(g);
262
317
  if (i) {
263
- const o = [...this.$refs.menu.querySelectorAll(c)].indexOf(i);
264
- o > -1 && (this.focusIndex = o, this.focusAction());
318
+ const s = [...this.getFocusableMenuItemElements()].indexOf(i);
319
+ s > -1 && (this.focusIndex = s, this.focusAction());
265
320
  }
266
321
  }
267
322
  },
@@ -271,14 +326,32 @@ const c = ".focusable", D = {
271
326
  * @param {object} event The keydown event
272
327
  */
273
328
  onKeydown(t) {
274
- t.key === "Tab" && !this.withFocusTrap && this.closeMenu(!0), t.key === "ArrowUp" && this.focusPreviousAction(t), t.key === "ArrowDown" && this.focusNextAction(t), t.key === "PageUp" && this.focusFirstAction(t), t.key === "PageDown" && this.focusLastAction(t), t.key === "Escape" && (this.closeMenu(), t.preventDefault());
329
+ if (t.key === "Tab") {
330
+ if (this.config.withFocusTrap)
331
+ return;
332
+ if (!this.config.withTabNavigation) {
333
+ this.closeMenu(!0);
334
+ return;
335
+ }
336
+ t.preventDefault();
337
+ const n = this.getFocusableMenuItemElements(), i = [...n].indexOf(document.activeElement);
338
+ if (i === -1)
339
+ return;
340
+ const o = t.shiftKey ? i - 1 : i + 1;
341
+ (o < 0 || o === n.length) && this.closeMenu(!0), this.focusIndex = o, this.focusAction();
342
+ return;
343
+ }
344
+ this.config.withArrowNavigation && (t.key === "ArrowUp" && this.focusPreviousAction(t), t.key === "ArrowDown" && this.focusNextAction(t), t.key === "PageUp" && this.focusFirstAction(t), t.key === "PageDown" && this.focusLastAction(t)), t.key === "Escape" && (this.closeMenu(), t.preventDefault());
345
+ },
346
+ onTriggerKeydown(t) {
347
+ t.key === "Escape" && this.actionsMenuSemanticType === "tooltip" && this.closeMenu();
275
348
  },
276
349
  removeCurrentActive() {
277
350
  const t = this.$refs.menu.querySelector("li.active");
278
351
  t && t.classList.remove("active");
279
352
  },
280
353
  focusAction() {
281
- const t = this.$refs.menu.querySelectorAll(c)[this.focusIndex];
354
+ const t = this.getFocusableMenuItemElements()[this.focusIndex];
282
355
  if (t) {
283
356
  this.removeCurrentActive();
284
357
  const n = t.closest("li.action");
@@ -290,19 +363,19 @@ const c = ".focusable", D = {
290
363
  },
291
364
  focusNextAction(t) {
292
365
  if (this.opened) {
293
- const n = this.$refs.menu.querySelectorAll(c).length - 1;
366
+ const n = this.getFocusableMenuItemElements().length - 1;
294
367
  this.focusIndex === n ? this.focusFirstAction(t) : (this.preventIfEvent(t), this.focusIndex = this.focusIndex + 1), this.focusAction();
295
368
  }
296
369
  },
297
370
  focusFirstAction(t) {
298
371
  if (this.opened) {
299
372
  this.preventIfEvent(t);
300
- const n = [...this.$refs.menu.querySelectorAll(c)].findIndex((i) => i.parentElement.getAttribute("aria-selected"));
373
+ const n = [...this.getFocusableMenuItemElements()].findIndex((i) => i.getAttribute("aria-checked") === "true" && i.getAttribute("role") === "menuitemradio");
301
374
  this.focusIndex = n > -1 ? n : 0, this.focusAction();
302
375
  }
303
376
  },
304
377
  focusLastAction(t) {
305
- this.opened && (this.preventIfEvent(t), this.focusIndex = this.$refs.menu.querySelectorAll(c).length - 1, this.focusAction());
378
+ this.opened && (this.preventIfEvent(t), this.focusIndex = this.getFocusableMenuItemElements().length - 1, this.focusAction());
306
379
  },
307
380
  preventIfEvent(t) {
308
381
  t && (t.preventDefault(), t.stopPropagation());
@@ -311,7 +384,7 @@ const c = ".focusable", D = {
311
384
  this.$emit("focus", t);
312
385
  },
313
386
  onBlur(t) {
314
- this.$emit("blur", t), this.actionsMenuSemanticType === "tooltip" && this.$refs.menu && this.$refs.menu.querySelectorAll(c).length === 0 && this.closeMenu(!1);
387
+ this.$emit("blur", t), this.actionsMenuSemanticType === "tooltip" && this.$refs.menu && this.getFocusableMenuItemElements().length === 0 && this.closeMenu(!1);
315
388
  },
316
389
  onClick(t) {
317
390
  this.$emit("click", t);
@@ -328,20 +401,15 @@ const c = ".focusable", D = {
328
401
  if (n.length === 0)
329
402
  return;
330
403
  let i = n.filter(this.isValidSingleAction);
331
- this.forceMenu && i.length > 0 && this.inline > 0 && (E.default.util.warn("Specifying forceMenu will ignore any inline actions rendering."), i = []);
332
- const a = i.slice(0, this.inline), o = n.filter((e) => !a.includes(e)), g = ["NcActionButton", "NcActionButtonGroup", "NcActionCheckbox", "NcActionRadio"], I = ["NcActionInput", "NcActionTextEditable"], N = ["NcActionLink", "NcActionRouter"], S = o.some((e) => I.includes(this.getActionName(e))), T = o.some((e) => g.includes(this.getActionName(e))), b = o.some((e) => N.includes(this.getActionName(e)));
333
- S ? this.actionsMenuSemanticType = "dialog" : T ? this.actionsMenuSemanticType = "menu" : b ? this.actionsMenuSemanticType = "navigation" : n.filter((s) => this.getActionName(s).startsWith("NcAction")).length === n.length ? this.actionsMenuSemanticType = "tooltip" : this.actionsMenuSemanticType = "dialog";
334
- const l = {
335
- dialog: "dialog",
336
- menu: "menu",
337
- navigation: "true",
338
- tooltip: "true"
339
- }[this.actionsMenuSemanticType], h = (e) => {
340
- const s = e?.componentOptions?.propsData?.icon, x = e?.data?.scopedSlots?.icon()?.[0] ?? (this.isIconUrl(s) ? t("img", { class: "action-item__menutoggle__icon", attrs: { src: s, alt: "" } }) : t("span", { class: ["icon", s] })), v = e?.data?.attrs || {}, u = e?.componentOptions?.listeners?.click, p = e?.componentOptions?.children?.[0]?.text?.trim?.(), k = e?.componentOptions?.propsData?.ariaLabel || p, y = this.forceName ? p : "";
341
- let d = e?.componentOptions?.propsData?.title;
342
- this.forceName || d || (d = p);
343
- const r = { ...e?.componentOptions?.propsData ?? {} }, $ = ["submit", "reset"].includes(r.type) ? r.modelValue : "button";
344
- return delete r.modelValue, delete r.type, t(
404
+ this.forceMenu && i.length > 0 && this.inline > 0 && (R.default.util.warn("Specifying forceMenu will ignore any inline actions rendering."), i = []);
405
+ const o = i.slice(0, this.inline), s = n.filter((e) => !o.includes(e)), A = ["NcActionButton", "NcActionButtonGroup", "NcActionCheckbox", "NcActionRadio"], b = ["NcActionInput", "NcActionTextEditable"], w = ["NcActionLink", "NcActionRouter"], I = s.some((e) => b.includes(this.getActionName(e))), T = s.some((e) => A.includes(this.getActionName(e))), N = s.some((e) => w.includes(this.getActionName(e)));
406
+ I ? this.actionsMenuSemanticType = "dialog" : T ? this.actionsMenuSemanticType = "menu" : N ? this.actionsMenuSemanticType = "navigation" : n.filter((c) => this.getActionName(c).startsWith("NcAction")).length === n.length ? this.actionsMenuSemanticType = "tooltip" : this.actionsMenuSemanticType = "unknown";
407
+ const h = (e) => {
408
+ const c = e?.componentOptions?.propsData?.icon, r = e?.data?.scopedSlots?.icon()?.[0] ?? (this.isIconUrl(c) ? t("img", { class: "action-item__menutoggle__icon", attrs: { src: c, alt: "" } }) : t("span", { class: ["icon", c] })), v = e?.data?.attrs || {}, u = e?.componentOptions?.listeners?.click, l = e?.componentOptions?.children?.[0]?.text?.trim?.(), x = e?.componentOptions?.propsData?.ariaLabel || l, m = this.forceName ? l : "";
409
+ let p = e?.componentOptions?.propsData?.title;
410
+ this.forceName || p || (p = l);
411
+ const a = { ...e?.componentOptions?.propsData ?? {} }, F = ["submit", "reset"].includes(a.type) ? a.modelValue : "button";
412
+ return delete a.modelValue, delete a.type, t(
345
413
  "NcButton",
346
414
  {
347
415
  class: [
@@ -351,17 +419,17 @@ const c = ".focusable", D = {
351
419
  ],
352
420
  attrs: {
353
421
  ...v,
354
- "aria-label": k,
355
- title: d
422
+ "aria-label": x,
423
+ title: p
356
424
  },
357
425
  ref: e?.data?.ref,
358
426
  props: {
359
427
  // If it has a menuName, we use a secondary button
360
- type: this.type || (y ? "secondary" : "tertiary"),
428
+ type: this.type || (m ? "secondary" : "tertiary"),
361
429
  disabled: this.disabled || e?.componentOptions?.propsData?.disabled,
362
430
  pressed: e?.componentOptions?.propsData?.modelValue,
363
- nativeType: $,
364
- ...r
431
+ nativeType: F,
432
+ ...a
365
433
  },
366
434
  on: {
367
435
  focus: this.onFocus,
@@ -379,16 +447,16 @@ const c = ".focusable", D = {
379
447
  }
380
448
  },
381
449
  [
382
- t("template", { slot: "icon" }, [x]),
383
- y
450
+ t("template", { slot: "icon" }, [r]),
451
+ m
384
452
  ]
385
453
  );
386
- }, m = (e) => {
387
- const s = this.$slots.icon?.[0] || (this.defaultIcon ? t("span", { class: ["icon", this.defaultIcon] }) : t("DotsHorizontal", {
454
+ }, d = (e) => {
455
+ const c = this.$slots.icon?.[0] || (this.defaultIcon ? t("span", { class: ["icon", this.defaultIcon] }) : t("DotsHorizontal", {
388
456
  props: {
389
457
  size: 20
390
458
  }
391
- }));
459
+ })), r = `${this.randomId}-trigger`;
392
460
  return t(
393
461
  "NcPopover",
394
462
  {
@@ -401,9 +469,9 @@ const c = ".focusable", D = {
401
469
  boundary: this.boundariesElement,
402
470
  container: this.container,
403
471
  popoverBaseClass: "action-item__popper",
404
- popupRole: l,
405
- setReturnFocus: this.withFocusTrap ? this.$refs.menuButton?.$el : null,
406
- focusTrap: this.withFocusTrap
472
+ popupRole: this.config.popupRole,
473
+ setReturnFocus: this.config.withFocusTrap ? this.$refs.menuButton?.$el : null,
474
+ focusTrap: this.config.withFocusTrap
407
475
  },
408
476
  // For some reason the popover component
409
477
  // does not react to props given under the 'props' key,
@@ -433,16 +501,19 @@ const c = ".focusable", D = {
433
501
  slot: "trigger",
434
502
  ref: "menuButton",
435
503
  attrs: {
504
+ id: r,
436
505
  "aria-label": this.menuName ? null : this.ariaLabel,
437
- "aria-controls": this.opened ? this.randomId : null
506
+ // 'aria-controls' should only present together with a valid aria-haspopup
507
+ "aria-controls": this.opened && this.config.popupRole ? this.randomId : null
438
508
  },
439
509
  on: {
440
510
  focus: this.onFocus,
441
511
  blur: this.onBlur,
442
- click: this.onClick
512
+ click: this.onClick,
513
+ keydown: this.onTriggerKeydown
443
514
  }
444
515
  }, [
445
- t("template", { slot: "icon" }, [s]),
516
+ t("template", { slot: "icon" }, [c]),
446
517
  this.menuName
447
518
  ]),
448
519
  t("div", {
@@ -462,8 +533,10 @@ const c = ".focusable", D = {
462
533
  attrs: {
463
534
  id: this.randomId,
464
535
  tabindex: "-1",
465
- role: l !== "true" ? l : void 0
466
- // TODO: allow to provide dialog aria-label
536
+ role: this.config.popupRole,
537
+ // Dialog must have a label
538
+ "aria-labelledby": this.actionsMenuSemanticType === "dialog" ? r : void 0,
539
+ "aria-modal": this.actionsMenuSemanticType === "dialog" ? "true" : void 0
467
540
  }
468
541
  }, [
469
542
  e
@@ -474,7 +547,7 @@ const c = ".focusable", D = {
474
547
  };
475
548
  return n.length === 1 && i.length === 1 && !this.forceMenu ? h(n[0]) : (this.$nextTick(() => {
476
549
  this.opened && this.$refs.menu && (this.$refs.menu.querySelector("li.active") || []).length === 0 && this.focusFirstAction();
477
- }), a.length > 0 && this.inline > 0 ? t(
550
+ }), o.length > 0 && this.inline > 0 ? t(
478
551
  "div",
479
552
  {
480
553
  class: [
@@ -484,9 +557,9 @@ const c = ".focusable", D = {
484
557
  },
485
558
  [
486
559
  // Render inline actions
487
- ...a.map(h),
560
+ ...o.map(h),
488
561
  // render the rest within the popover menu
489
- o.length > 0 ? t(
562
+ s.length > 0 ? t(
490
563
  "div",
491
564
  {
492
565
  class: [
@@ -497,7 +570,7 @@ const c = ".focusable", D = {
497
570
  ]
498
571
  },
499
572
  [
500
- m(o)
573
+ d(s)
501
574
  ]
502
575
  ) : null
503
576
  ]
@@ -513,20 +586,20 @@ const c = ".focusable", D = {
513
586
  ]
514
587
  },
515
588
  [
516
- m(n)
589
+ d(n)
517
590
  ]
518
591
  ));
519
592
  }
520
- }, R = null, P = null;
521
- var C = /* @__PURE__ */ q.normalizeComponent(
593
+ }, D = null, q = null;
594
+ var C = /* @__PURE__ */ E.normalizeComponent(
595
+ L,
522
596
  D,
523
- R,
524
- P,
597
+ q,
525
598
  !1,
526
599
  null,
527
- "eae4a464",
600
+ "4131bd38",
528
601
  null,
529
602
  null
530
603
  );
531
- const z = C.exports;
532
- exports.NcActions = z;
604
+ const P = C.exports;
605
+ exports.NcActions = P;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcActions-tPPh2p8F.cjs","sources":["../../src/components/NcActions/NcActions.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\n - @author Marco Ambrosini <marcoambrosini@icloud.com>\n - @author Raimund Schlüßler <raimund.schluessler@mailbox.org>\n - @author Grigorii K. Shartsev <me@shgk.me>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<!-- Accessibility guidelines:\nhttps://www.w3.org/TR/wai-aria-practices/examples/menu-button/menu-button-actions.html -->\n\n<docs>\n### Single action\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton @click=\"actionDelete\">\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport Delete from 'vue-material-design-icons/Delete'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t},\n\tmethods: {\n\t\tactionDelete() {\n\t\t\talert('Delete')\n\t\t},\n\t},\n}\n</script>\n```\n\n### Multiple actions\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton @click=\"showMessage('Edit')\">\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t\tEdit\n\t\t</NcActionButton>\n\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t\t<NcActionLink href=\"https://nextcloud.com\">\n\t\t\t<template #icon>\n\t\t\t\t<OpenInNew :size=\"20\" />\n\t\t\t</template>\n\t\t\tLink\n\t\t</NcActionLink>\n\t</NcActions>\n</template>\n<script>\nimport Delete from 'vue-material-design-icons/Delete'\nimport OpenInNew from 'vue-material-design-icons/OpenInNew'\nimport Pencil from 'vue-material-design-icons/Pencil'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tOpenInNew,\n\t\tPencil,\n\t},\n\tmethods: {\n\t\tshowMessage(msg) {\n\t\t\talert(msg)\n\t\t},\n\t},\n}\n</script>\n```\n\n### Multiple actions with 2 items inline\n\n```vue\n<template>\n\t<NcActions :inline=\"2\">\n\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t<template #icon>\n\t\t\t\t<Plus :size=\"20\" />\n\t\t\t</template>\n\t\t\tAdd\n\t\t</NcActionButton>\n\t\t<NcActionButton @click=\"showMessage('Edit')\">\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t\tEdit\n\t\t</NcActionButton>\n\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t\t<NcActionLink href=\"https://nextcloud.com\">\n\t\t\t<template #icon>\n\t\t\t\t<OpenInNew :size=\"20\" />\n\t\t\t</template>\n\t\t\tLink\n\t\t</NcActionLink>\n\t</NcActions>\n</template>\n<script>\nimport Plus from 'vue-material-design-icons/Plus'\nimport Delete from 'vue-material-design-icons/Delete'\nimport OpenInNew from 'vue-material-design-icons/OpenInNew'\nimport Pencil from 'vue-material-design-icons/Pencil'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tOpenInNew,\n\t\tPencil,\n\t\tPlus,\n\t},\n\tmethods: {\n\t\tshowMessage(msg) {\n\t\t\talert(msg)\n\t\t},\n\t},\n}\n</script>\n```\n\n### Multiple actions with 2 items inline AND forced names\n\n```vue\n<template>\n\t<NcActions :force-name=\"true\" :inline=\"2\">\n\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t<template #icon>\n\t\t\t\t<Plus :size=\"20\" />\n\t\t\t</template>\n\t\t\tAdd\n\t\t</NcActionButton>\n\t\t<NcActionButton @click=\"showMessage('Edit')\">\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t\tEdit\n\t\t</NcActionButton>\n\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t\t<NcActionLink href=\"https://nextcloud.com\">\n\t\t\t<template #icon>\n\t\t\t\t<OpenInNew :size=\"20\" />\n\t\t\t</template>\n\t\t\tLink\n\t\t</NcActionLink>\n\t</NcActions>\n</template>\n<script>\nimport Plus from 'vue-material-design-icons/Plus'\nimport Delete from 'vue-material-design-icons/Delete'\nimport OpenInNew from 'vue-material-design-icons/OpenInNew'\nimport Pencil from 'vue-material-design-icons/Pencil'\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tOpenInNew,\n\t\tPencil,\n\t\tPlus,\n\t},\n\tmethods: {\n\t\tshowMessage(msg) {\n\t\t\talert(msg)\n\t\t},\n\t},\n}\n</script>\n```\n\n### Multiple actions with custom icon\n\n```vue\n<template>\n\t<NcActions>\n\t\t<template #icon>\n\t\t\t<Pencil :size=\"20\" />\n\t\t</template>\n\t\t<NcActionButton @click=\"showMessage('Edit')\">\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t\tEdit\n\t\t</NcActionButton>\n\t\t<NcActionButton @click=\"showMessage('Delete')\">\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t\t<NcActionLink href=\"https://nextcloud.com\">\n\t\t\t<template #icon>\n\t\t\t\t<OpenInNew :size=\"20\" />\n\t\t\t</template>\n\t\t\tLink\n\t\t</NcActionLink>\n\t</NcActions>\n</template>\n<script>\nimport Delete from 'vue-material-design-icons/Delete'\nimport OpenInNew from 'vue-material-design-icons/OpenInNew'\nimport Pencil from 'vue-material-design-icons/Pencil'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tOpenInNew,\n\t\tPencil,\n\t},\n\tmethods: {\n\t\tshowMessage(msg) {\n\t\t\talert(msg)\n\t\t},\n\t},\n}\n</script>\n```\n\n### With menu name\n\n```vue\n<template>\n\t<NcActions menu-name=\"Object management\">\n\t\t<template #icon>\n\t\t\t<Pencil :size=\"20\" />\n\t\t</template>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t\tRename\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<ArrowRight :size=\"20\" />\n\t\t\t</template>\n\t\t\tValidate\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Download :size=\"20\" />\n\t\t\t</template>\n\t\t\tDownload\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport ArrowRight from 'vue-material-design-icons/ArrowRight'\nimport Delete from 'vue-material-design-icons/Delete'\nimport Download from 'vue-material-design-icons/Download'\nimport Pencil from 'vue-material-design-icons/Pencil'\n\nexport default {\n\tcomponents: {\n\t\tArrowRight,\n\t\tDelete,\n\t\tDownload,\n\t\tPencil,\n\t},\n}\n</script>\n```\n\n### Various icons styles\n```vue\n<template>\n\t<NcActions :primary=\"true\">\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t\tEdit\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport Delete from 'vue-material-design-icons/Delete'\nimport Pencil from 'vue-material-design-icons/Pencil'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tPencil,\n\t},\n}\n</script>\n```\n\n```vue\n<template>\n\t<NcActions :primary=\"true\" menu-name=\"Object management\">\n\t\t<template #icon>\n\t\t\t<Plus :size=\"20\" />\n\t\t</template>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t</template>\n\t\t\tRename\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<ArrowRight :size=\"20\" />\n\t\t\t</template>\n\t\t\tValidate\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Download :size=\"20\" />\n\t\t\t</template>\n\t\t\tDownload\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport ArrowRight from 'vue-material-design-icons/ArrowRight'\nimport Delete from 'vue-material-design-icons/Delete'\nimport Download from 'vue-material-design-icons/Download'\nimport Pencil from 'vue-material-design-icons/Pencil'\nimport Plus from 'vue-material-design-icons/Plus'\n\nexport default {\n\tcomponents: {\n\t\tArrowRight,\n\t\tDelete,\n\t\tDownload,\n\t\tPencil,\n\t\tPlus,\n\t},\n}\n</script>\n```\n\n### Custom icon slot\nTo be used with `vue-material-design-icons` only. For icon classes use the `default-icon` slot.\nIt can be used with one or multiple actions.\n```vue\n<template>\n\t<div style=\"display: flex;align-items: center;\">\n\t\t<NcButton @click=\"toggled = !toggled\">Toggle multiple action</NcButton>\n\t\t<NcActions>\n\t\t\t<template #icon>\n\t\t\t\t<DotsHorizontalCircleOutline :size=\"20\" />\n\t\t\t</template>\n\t\t\t<NcActionButton>\n\t\t\t\t<template #icon>\n\t\t\t\t\t<MicrophoneOff :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tMute\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton v-if=\"toggled\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Delete :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tDelete\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</div>\n</template>\n<script>\nimport Delete from 'vue-material-design-icons/Delete'\nimport DotsHorizontalCircleOutline from 'vue-material-design-icons/DotsHorizontalCircleOutline'\nimport MicrophoneOff from 'vue-material-design-icons/MicrophoneOff'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tDotsHorizontalCircleOutline,\n\t\tMicrophoneOff,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\ttoggled: false\n\t\t}\n\t}\n}\n</script>\n```\n\n### Custom icon slot in child elements\n```vue\n<template>\n\t<NcActions :primary=\"true\">\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Magnify :size=\"20\" />\n\t\t\t</template>\n\t\t\tSearch\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<Delete :size=\"20\" />\n\t\t\t</template>\n\t\t\tDelete\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport Delete from 'vue-material-design-icons/Delete'\nimport Magnify from 'vue-material-design-icons/Magnify'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tMagnify,\n\t},\n}\n</script>\n```\n\n### Type variants\n\n```vue\n<template>\n\t<div>\n\t\t<NcActions :type=\"current\">\n\t\t\t<template #icon>\n\t\t\t\t<SelectColor :size=\"20\" />\n\t\t\t</template>\n\n\t\t\t<NcActionButton v-if=\"current\" close-after-click @click=\"define()\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Delete :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRemove\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton v-for=\"row in types\" close-after-click @click=\"define(row)\" :key=\"`type-icon--${row}`\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<CheckboxMarkedCircleOutline v-if=\"row === current\" :size=\"20\" />\n\t\t\t\t\t<SelectColor v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ row }}\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\n\t\t<NcActions :type=\"current\" menu-name=\"Choose a type\">\n\t\t\t<NcActionButton v-if=\"current\" close-after-click @click=\"define()\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Delete :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRemove\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton v-for=\"row in types\" close-after-click @click=\"define(row)\" :key=\"`type-text--${row}`\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<CheckboxMarkedCircleOutline v-if=\"row === current\" :size=\"20\" />\n\t\t\t\t\t<SelectColor v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ row }}\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\n\t\t<NcActions :type=\"current\" menu-name=\"Choose a type\">\n\t\t\t<template #icon>\n\t\t\t\t<SelectColor :size=\"20\" />\n\t\t\t</template>\n\n\t\t\t<NcActionButton v-if=\"current\" close-after-click @click=\"define()\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Delete :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRemove\n\t\t\t</NcActionButton>\n\n\t\t\t<NcActionButton v-for=\"row in types\" close-after-click @click=\"define(row)\" :key=\"`type-icon-text--${row}`\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<CheckboxMarkedCircleOutline v-if=\"row === current\" :size=\"20\" />\n\t\t\t\t\t<SelectColor v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ row }}\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</div>\n</template>\n\n<script>\nimport Delete from 'vue-material-design-icons/Delete'\nimport Palette from 'vue-material-design-icons/Palette'\nimport SelectColor from 'vue-material-design-icons/SelectColor'\nimport CheckboxMarkedCircleOutline from 'vue-material-design-icons/CheckboxMarkedCircleOutline'\n\nexport default {\n\tcomponents: {\n\t\tDelete,\n\t\tPalette,\n\t\tSelectColor,\n\t\tCheckboxMarkedCircleOutline,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tcurrent: 'primary',\n\t\t\ttypes: [\n\t\t\t\t'primary',\n\t\t\t\t'secondary',\n\t\t\t\t'tertiary',\n\t\t\t\t'error',\n\t\t\t\t'warning',\n\t\t\t\t'success'\n\t\t\t]\n\t\t}\n\t},\n\tmethods: {\n\t\tdefine(row = undefined) {\n\t\t\tthis.current = row\n\t\t}\n\t}\n}\n</script>\n```\n\n### Use cases\n\n```vue\n<template>\n\t<div>\n\t\t<h2>Application menu</h2>\n\t\t<p>Has buttons, button groups, links and router links, separators, texts. May have checkboxes and radio buttons. Separator can be used to make groups of radio buttons as well.</p>\n\t\t<p><kbd>Arrows</kbd> are used to navigate between items, <kbd>Tab</kbd> is used to navigate to the next UI element on the page.</p>\n\t\t<p>\n\t\t\t<NcActions aria-label=\"Email menu\" type=\"tertiary\">\n\t\t\t\t<NcActionButtonGroup>\n\t\t\t\t\t<NcActionButton>\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<StarOutline :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\tFavorite\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t\t<NcActionButton>\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<EmailUnread :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\tUnread\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t\t<NcActionButton>\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Bookmark :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\tImportant\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t</NcActionButtonGroup>\n\t\t\t\t<NcActionText>\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<ClockOutlineIcon :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\t{{ new Date().toLocaleDateString('en-US') }}\n\t\t\t\t</NcActionText>\n\t\t\t\t<NcActionSeparator />\n\t\t\t\t<NcActionButton>\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<AlertOctagonIcon :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\tMark as spam\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionCheckbox :checked.sync=\"selected\">\n\t\t\t\t\tSelect\n\t\t\t\t</NcActionCheckbox>\n\t\t\t\t<NcActionButton>\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<OpenInNewIcon :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\tMove thread\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionLink href=\"#\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<DownloadIcon :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\tDownload message\n\t\t\t\t</NcActionLink>\n\t\t\t</NcActions>\n\t\t</p>\n\t\t<p>\n\t\t\t<NcActions aria-label=\"Text settings\" type=\"tertiary\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FormatTitle :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t<NcActionButtonGroup name=\"Allignment\">\n\t\t\t\t\t<NcActionButton aria-label=\"Left\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<FormatAlignLeft :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t\t<NcActionButton aria-label=\"Center\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<FormatAlignCenter :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t\t<NcActionButton aria-label=\"Right\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<FormatAlignRight :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t</NcActionButtonGroup>\n\t\t\t\t<NcActionSeparator />\n\t\t\t\t<NcActionCheckbox :checked.sync=\"checked.bold\" value=\"bold\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<FormatBold :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\tBold\n\t\t\t\t</NcActionCheckbox>\n\t\t\t\t<NcActionCheckbox :checked.sync=\"checked.italic\" value=\"italic\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<FormatItalic :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\tItalic\n\t\t\t\t</NcActionCheckbox>\n\t\t\t\t<NcActionCheckbox :checked.sync=\"checked.underline\" value=\"underline\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<FormatUnderline :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\tUnderline\n\t\t\t\t</NcActionCheckbox>\n\t\t\t\t<NcActionSeparator />\n\t\t\t\t<NcActionRadio name=\"color\" :checked.sync=\"color.black\" value=\"Black\">Black</NcActionRadio>\n\t\t\t\t<NcActionRadio name=\"color\" :checked.sync=\"color.blue\" value=\"Blue\">Blue</NcActionRadio>\n\t\t\t\t<NcActionRadio name=\"color\" :checked.sync=\"color.red\" value=\"Red\">Red</NcActionRadio>\n\t\t\t\t<NcActionRadio name=\"color\" :checked.sync=\"color.green\" value=\"Green\">Green</NcActionRadio>\n\t\t\t</NcActions>\n\t\t</p>\n\n\t\t<h2>Navigation</h2>\n\t\t<p>Has links or router links. May use text elements, captions and separators.</p>\n\t\t<p>Uses classic <kbd>Tab</kbd> navigation.</p>\n\t\t<p>\n\t\t\t<NcActions aria-label=\"Applications navigation\" :inline=\"2\" type=\"tertiary\">\n\t\t\t\t<NcActionLink href=\"/apps/dashboard\" icon=\"icon-category-dashboard-white\">\n\t\t\t\t\tDashboard\n\t\t\t\t</NcActionLink>\n\t\t\t\t<NcActionLink href=\"/apps/files\" icon=\"icon-files-white\">\n\t\t\t\t\tFiles\n\t\t\t\t</NcActionLink>\n\t\t\t\t<NcActionLink href=\"/apps/spreed\" icon=\"icon-talk-white\">\n\t\t\t\t\tTalk\n\t\t\t\t</NcActionLink>\n\t\t\t\t<NcActionLink href=\"/apps/contacts\" icon=\"icon-contacts-white\">\n\t\t\t\t\tContacts\n\t\t\t\t</NcActionLink>\n\t\t\t\t<NcActionLink href=\"/apps/circles\" icon=\"icon-circles-white\">\n\t\t\t\t\tCircles\n\t\t\t\t</NcActionLink>\n\t\t\t</NcActions>\n\t\t</p>\n\n\t\t<h2>Dialog</h2>\n\t\t<p>Includes data input elements, forms.</p>\n\t\t<p>Uses <kbd>Tab</kbd> navigation with a focus trap.</p>\n\t\t<p>\n\t\t\t<NcActions aria-label=\"Group management\">\n\t\t\t\t<NcActionInput trailing-button-label=\"Submit\" label=\"Rename group\">\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t</NcActionInput>\n\t\t\t\t<NcActionButton>\n\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t<Delete :size=\"20\" />\n\t\t\t\t\t</template>\n\t\t\t\t\tRemove group\n\t\t\t\t</NcActionButton>\n\t\t\t</NcActions>\n\t\t</p>\n\n\t\t<h2>Toolip</h2>\n\t\t<p>Has only text and no interactive elements.</p>\n\t\t<p>\n\t\t\t<NcActions aria-label=\"Contact\" :inline=\"1\">\n\t\t\t\t<NcActionLink aria-label=\"View profile\" href=\"/u/alice\" icon=\"icon-user-white\">\n\t\t\t\t\tView profile\n\t\t\t\t</NcActionLink>\n\t\t\t\t<NcActionText icon=\"icon-timezone-white\">\n\t\t\t\t\tLocal time: 10:12\n\t\t\t\t</NcActionText>\n\t\t\t</NcActions>\n\t\t</p>\n\t</div>\n</template>\n\n<script>\n// Common icons\nimport Pencil from 'vue-material-design-icons/Pencil'\nimport Delete from 'vue-material-design-icons/Delete'\n\n// Email icons\nimport StarOutline from 'vue-material-design-icons/StarOutline'\nimport EmailUnread from 'vue-material-design-icons/Email'\nimport Bookmark from 'vue-material-design-icons/Bookmark'\nimport ClockOutlineIcon from 'vue-material-design-icons/ClockOutline'\nimport AlertOctagonIcon from 'vue-material-design-icons/AlertOctagon'\nimport CheckIcon from 'vue-material-design-icons/Check'\nimport OpenInNewIcon from 'vue-material-design-icons/OpenInNew'\nimport DownloadIcon from 'vue-material-design-icons/Download'\n\n// Formating icons\nimport FormatTitle from 'vue-material-design-icons/FormatTitle.vue'\nimport FormatAlignLeft from 'vue-material-design-icons/FormatAlignLeft.vue'\nimport FormatAlignCenter from 'vue-material-design-icons/FormatAlignCenter.vue'\nimport FormatAlignRight from 'vue-material-design-icons/FormatAlignRight.vue'\nimport FormatBold from 'vue-material-design-icons/FormatBold.vue'\nimport FormatItalic from 'vue-material-design-icons/FormatItalic.vue'\nimport FormatUnderline from 'vue-material-design-icons/FormatUnderline.vue'\n\nexport default {\n\tcomponents: {\n\t\t// Common icons\n\t\tPencil,\n\t\tDelete,\n\n\t\t// Email icons\n\t\tStarOutline,\n\t\tEmailUnread,\n\t\tBookmark,\n\t\tClockOutlineIcon,\n\t\tAlertOctagonIcon,\n\t\tCheckIcon,\n\t\tOpenInNewIcon,\n\t\tDownloadIcon,\n\n\t\t// Formating icons\n\t\tFormatTitle,\n\t\tFormatAlignLeft,\n\t\tFormatAlignCenter,\n\t\tFormatAlignRight,\n\t\tFormatBold,\n\t\tFormatItalic,\n\t\tFormatUnderline,\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tselected: false,\n\t\t\t// Formating\n\t\t\tchecked: {\n\t\t\t\tbold: true,\n\t\t\t\titalic: false,\n\t\t\t\tunderline: false,\n\t\t\t},\n\t\t\tcolor: {\n\t\t\t\tblack: true,\n\t\t\t\tblue: false,\n\t\t\t\tred: false,\n\t\t\t\tgreen: false,\n\t\t\t},\n\t\t}\n\t},\n}\n</script>\n\n<style scoped>\np {\n\tmargin: 1rem 0;\n}\n</style>\n```\n\n## NcActions children limitations\n\n`<NcActions>` is supposed to be used with direct `<NcAction*>` children.\nAlthough it works when actions are not direct children but wrapped in custom components, it has limitations:\n- No `inline` prop property, including a single action display;\n- Accessibility issues, including changed keyboard behavior;\n- Invalid HTML.\n\n```\n<template>\n\t<table class=\"actions-limitations-table\">\n\t\t<tr>\n\t\t\t<th style=\"width: 50%\">Non-direct children</th>\n\t\t\t<th style=\"width: 50%\">Direct NcAction* children</th>\n\t\t</tr>\n\n\t\t<tr>\n\t\t\t<th colspan=\"2\">This single button is supposed to be rendered as inline action but it is rendered as a menu:</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<NcActions>\n\t\t\t\t\t<MyUserActionButton />\n\t\t\t\t</NcActions>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<NcActions>\n\t\t\t\t\t<NcActionButton>\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Account :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\tButton\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t</NcActions>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th colspan=\"2\">This NcActions is supposed to have 2 inline buttons but it has none:</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<NcActions :inline=\"2\">\n\t\t\t\t\t<MyUserActionButton v-for=\"i in 4\" />\n\t\t\t\t</NcActions>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<NcActions :inline=\"2\">\n\t\t\t\t\t<NcActionButton v-for=\"i in 4\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Account :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\tButton\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t</NcActions>\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<th colspan=\"2\">This NcActions is supposed to have a11y role menu and keyboard navigation but it acts like a dialog:</th>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t\t<NcActions>\n\t\t\t\t\t<MyActionsList />\n\t\t\t\t</NcActions>\n\t\t\t</td>\n\t\t\t<td>\n\t\t\t\t<NcActions>\n\t\t\t\t\t<NcActionButton v-for=\"i in 4\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Account :size=\"20\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t\tButton\n\t\t\t\t\t</NcActionButton>\n\t\t\t\t</NcActions>\n\t\t\t</td>\n\t\t</tr>\n\t</table>\n</template>\n\n<script>\nimport Account from 'vue-material-design-icons/Account.vue'\n\nexport default {\n\tcomponents: {\n\t\tAccount,\n\n\t\tMyUserActionButton: {\n\t\t\tname: 'MyUserActionButton',\n\t\t\tcomponents: { Account },\n\t\t\trender: (h) => h('NcActionButton', ['Button', h('Account', { props: { size: 20 }, slot: 'icon' })]),\n\t\t},\n\n\t\tMyActionsList: {\n\t\t\tname: 'MyActionsList',\n\t\t\tcomponents: { Account },\n\t\t\trender: (h) => h('div', [\n\t\t\t\th('NcActionButton', ['Button', h('Account', { props: { size: 20 }, slot: 'icon' })]),\n\t\t\t\th('NcActionButton', ['Button', h('Account', { props: { size: 20 }, slot: 'icon' })]),\n\t\t\t\th('NcActionButton', ['Button', h('Account', { props: { size: 20 }, slot: 'icon' })]),\n\t\t\t\th('NcActionButton', ['Button', h('Account', { props: { size: 20 }, slot: 'icon' })]),\n\t\t\t]),\n\t\t}\n\t}\n}\n</script>\n\n<style>\n.actions-limitations-table {\n\tborder-collapse: collapse;\n\twidth: 100%;\n\tth,\n\ttd {\n\t\tborder: 1px solid var(--color-border);\n\t\tpadding: var(--default-grid-baseline);\n\t\tmax-width: 50%;\n\t}\n\n\tth {\n\t\ttext-align: center;\n\t\ttext-wrap: wrap;\n\t}\n}\n</style>\n```\n</docs>\n\n<script>\nimport NcButton from '../NcButton/index.js'\nimport NcPopover from '../NcPopover/index.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { getTrapStack } from '../../utils/focusTrap.js'\nimport { t } from '../../l10n.js'\n\nimport Vue, { computed } from 'vue'\nimport DotsHorizontal from 'vue-material-design-icons/DotsHorizontal.vue'\n\nconst focusableSelector = '.focusable'\n\n/**\n * The Actions component can be used to display one ore more actions.\n * If only a single action is provided, it will be rendered as an inline icon.\n * For more, a menu indicator will be shown and a popovermenu containing the\n * actions will be opened on click.\n *\n * @since 0.10.0\n */\nexport default {\n\tname: 'NcActions',\n\n\tcomponents: {\n\t\tNcButton,\n\t\tDotsHorizontal,\n\t\tNcPopover,\n\t},\n\n\tprovide() {\n\t\treturn {\n\t\t\t/**\n\t\t\t * NcActions can be used as:\n\t\t\t * - Application menu (has menu role)\n\t\t\t * - Navigation (has no specific role, should be used an element with navigation role)\n\t\t\t * - Popover with plain text or text inputs (has no specific role)\n\t\t\t * Depending on the usage (used items), the menu and its items should have different roles for a11y.\n\t\t\t * Provide the role for NcAction* components in the NcActions content.\n\t\t\t * @type {import('vue').ComputedRef<boolean>}\n\t\t\t */\n\t\t\t'NcActions:isSemanticMenu': computed(() => this.actionsMenuSemanticType === 'menu'),\n\t\t}\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Specify the open state of the popover menu\n\t\t */\n\t\topen: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * This disables the internal open management,\n\t\t * so the actions menu only respects the `open` prop.\n\t\t * This is e.g. necessary for the NcAvatar component\n\t\t * to only open the actions menu after loading it's entries has finished.\n\t\t */\n\t\tmanualOpen: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Force the actions to display in a three dot menu\n\t\t */\n\t\tforceMenu: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Force the name to show for single actions\n\t\t */\n\t\tforceName: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Specify the menu name\n\t\t */\n\t\tmenuName: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Apply primary styling for this menu\n\t\t */\n\t\tprimary: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Specifies the button type used for trigger and single actions buttons\n\t\t * Accepted values: primary, secondary, tertiary, tertiary-no-background, tertiary-on-primary, error, warning, success. If left empty,\n\t\t * the default button style will be applied.\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tvalidator(value) {\n\t\t\t\treturn ['primary', 'secondary', 'tertiary', 'tertiary-no-background', 'tertiary-on-primary', 'error', 'warning', 'success'].indexOf(value) !== -1\n\t\t\t},\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Icon to show for the toggle menu button\n\t\t * when more than one action is inside the actions component.\n\t\t * Only replace the default three-dot icon if really necessary.\n\t\t */\n\t\tdefaultIcon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Aria label for the actions menu.\n\t\t *\n\t\t * If `menuName` is defined this will not be used to prevent\n\t\t * any accessible name conflicts. This ensures that the\n\t\t * element can be activated via voice input.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: t('Actions'),\n\t\t},\n\n\t\t/**\n\t\t * @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.\n\t\t * @todo Add a check in @nextcloud/vue 9 that this prop is not provided,\n\t\t * otherwise root element will inherit incorrect aria-hidden.\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Wanted direction of the menu\n\t\t */\n\t\tplacement: {\n\t\t\ttype: String,\n\t\t\tdefault: 'bottom',\n\t\t},\n\n\t\t/**\n\t\t * DOM element for the actions' popover boundaries\n\t\t */\n\t\tboundariesElement: {\n\t\t\ttype: Element,\n\t\t\tdefault: () => document.querySelector('body'),\n\t\t},\n\n\t\t/**\n\t\t * Selector for the actions' popover container\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: [String, Object, Element, Boolean],\n\t\t\tdefault: 'body',\n\t\t},\n\n\t\t/**\n\t\t * Disabled state of the main button (single action or menu toggle)\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Display x items inline out of the dropdown menu\n\t\t * Will be ignored if `forceMenu` is set\n\t\t */\n\t\tinline: {\n\t\t\ttype: Number,\n\t\t\tdefault: 0,\n\t\t},\n\t},\n\n\temits: [\n\t\t'open',\n\t\t'update:open',\n\t\t'close',\n\t\t'focus',\n\t\t'blur',\n\t\t'click',\n\t],\n\n\tdata() {\n\t\treturn {\n\t\t\topened: this.open,\n\t\t\tfocusIndex: 0,\n\t\t\trandomId: `menu-${GenRandomId()}`,\n\t\t\t/**\n\t\t\t * @type {'menu'|'navigation'|'dialog'|'tooltip'|'unknown'}\n\t\t\t */\n\t\t\tactionsMenuSemanticType: 'unknown',\n\t\t\texternalFocusTrapStack: [],\n\t\t}\n\t},\n\n\tcomputed: {\n\t\ttriggerBtnType() {\n\t\t\t// If requested, we use a primary button\n\t\t\treturn this.type || (this.primary\n\t\t\t\t? 'primary'\n\t\t\t\t// If it has a name, we use a secondary button\n\t\t\t\t: this.menuName ? 'secondary' : 'tertiary')\n\t\t},\n\n\t\t/**\n\t\t * A11y roles and keyboard navigation configuration depending on the semantic type\n\t\t */\n\t\tconfig() {\n\t\t\t/**\n\t\t\t * Accessibility notes:\n\t\t\t *\n\t\t\t * There is no valid popup role for navigation and tooltip in `aria-haspopup`.\n\t\t\t * aria-haspopup=\"true\" is equivalent to aria-haspopup=\"menu\".\n\t\t\t * They must not be treated as menus.\n\t\t\t *\n\t\t\t * Having both arrow and tab navigation is not allowed for a11y.\n\t\t\t * Either menu is an atomic UI element, and arrows select menu items, Tab moves to the next UI element.\n\t\t\t * Or the menu is an expanded list of UI elements.\n\t\t\t *\n\t\t\t * Navigation type is just an \"expanded\" block, similar to native <details> element.\n\t\t\t */\n\t\t\tconst configs = {\n\t\t\t\tmenu: {\n\t\t\t\t\tpopupRole: 'menu',\n\t\t\t\t\twithArrowNavigation: true,\n\t\t\t\t\twithTabNavigation: false,\n\t\t\t\t\twithFocusTrap: false,\n\t\t\t\t},\n\t\t\t\tnavigation: {\n\t\t\t\t\tpopupRole: undefined,\n\t\t\t\t\twithArrowNavigation: false,\n\t\t\t\t\twithTabNavigation: true,\n\t\t\t\t\twithFocusTrap: false,\n\t\t\t\t},\n\t\t\t\tdialog: {\n\t\t\t\t\tpopupRole: 'dialog',\n\t\t\t\t\twithArrowNavigation: false,\n\t\t\t\t\twithTabNavigation: true,\n\t\t\t\t\twithFocusTrap: true,\n\t\t\t\t},\n\t\t\t\ttooltip: {\n\t\t\t\t\tpopupRole: undefined,\n\t\t\t\t\twithArrowNavigation: false,\n\t\t\t\t\twithTabNavigation: false,\n\t\t\t\t\twithFocusTrap: false,\n\t\t\t\t},\n\t\t\t\t// Due to Vue limitations, we sometimes cannot determine the true type\n\t\t\t\t// As a fallback use both arrow navigation and focus trap\n\t\t\t\tunknown: {\n\t\t\t\t\tpopupRole: undefined,\n\t\t\t\t\trole: undefined,\n\t\t\t\t\twithArrowNavigation: true,\n\t\t\t\t\twithTabNavigation: false,\n\t\t\t\t\twithFocusTrap: true,\n\t\t\t\t},\n\t\t\t}\n\t\t\treturn configs[this.actionsMenuSemanticType]\n\t\t},\n\n\t\twithFocusTrap() {\n\t\t\treturn this.config.withFocusTrap\n\t\t},\n\t},\n\n\twatch: {\n\t\t// Watch parent prop\n\t\topen(state) {\n\t\t\tif (state === this.opened) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.opened = state\n\t\t},\n\n\t\topened() {\n\t\t\tthis.intersectIntoCurrentFocusTrapStack()\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Get the name of the action component\n\t\t *\n\t\t * @param {import('vue').VNode} action - a vnode with a NcAction* component instance\n\t\t * @return {string} the name of the action component\n\t\t */\n\t\tgetActionName(action) {\n\t\t\treturn action?.componentOptions?.Ctor?.extendOptions?.name ?? action?.componentOptions?.tag\n\t\t},\n\n\t\t/**\n\t\t * When the component has its own focus trap, then it is managed by global trap stack by focus-trap.\n\t\t *\n\t\t * However if the component has no focus trap and is used inside another focus trap - there is an issue.\n\t\t * By default popover content is rendered in body or other container, which is likely outside the current focus trap containers.\n\t\t * It results in broken behavior from focus-trap.\n\t\t *\n\t\t * We need to pause all the focus traps for opening popover and then unpause them back after closing.\n\t\t */\n\t\tintersectIntoCurrentFocusTrapStack() {\n\t\t\tif (this.config.withFocusTrap) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tif (this.opened) {\n\t\t\t\tthis.externalFocusTrapStack = [...getTrapStack()]\n\t\t\t\tfor (const trap of this.externalFocusTrapStack) {\n\t\t\t\t\ttrap.pause()\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (const trap of this.externalFocusTrapStack) {\n\t\t\t\t\ttrap.unpause()\n\t\t\t\t}\n\t\t\t\tthis.externalFocusTrapStack = []\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Do we have exactly one Action and\n\t\t * is it allowed as a standalone element?\n\t\t *\n\t\t * @param {import('vue').VNode} action The action to check\n\t\t * @return {boolean}\n\t\t */\n\t\tisValidSingleAction(action) {\n\t\t\treturn ['NcActionButton', 'NcActionLink', 'NcActionRouter'].includes(this.getActionName(action))\n\t\t},\n\n\t\t/**\n\t\t * Check whether a icon prop value is an URL or not\n\t\t * @param {string} url The icon prop value\n\t\t */\n\t\tisIconUrl(url) {\n\t\t\ttry {\n\t\t\t\treturn !!(new URL(url, url.startsWith('/') ? window.location.origin : undefined))\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\t// MENU STATE MANAGEMENT\n\t\topenMenu(e) {\n\t\t\tif (this.opened) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tthis.opened = true\n\n\t\t\t/**\n\t\t\t * Event emitted when the popover menu open state is changed\n\t\t\t *\n\t\t\t * @type {boolean}\n\t\t\t */\n\t\t\tthis.$emit('update:open', true)\n\n\t\t\t/**\n\t\t\t * Event emitted when the popover menu is opened\n\t\t\t */\n\t\t\tthis.$emit('open')\n\t\t},\n\t\tasync closeMenu(returnFocus = true) {\n\t\t\tif (!this.opened) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Wait for the next tick to keep the menu in DOM, allowing other components to find what button in what menu was used,\n\t\t\t// for example, to implement auto set return focus.\n\t\t\t// NcPopover will actually remove the menu from DOM also on the next tick.\n\t\t\tawait this.$nextTick()\n\n\t\t\tthis.opened = false\n\n\t\t\tthis.$refs.popover.clearFocusTrap({ returnFocus })\n\n\t\t\t/**\n\t\t\t * Event emitted when the popover menu open state is changed\n\t\t\t *\n\t\t\t * @type {boolean}\n\t\t\t */\n\t\t\tthis.$emit('update:open', false)\n\n\t\t\t/**\n\t\t\t * Event emitted when the popover menu is closed\n\t\t\t */\n\t\t\tthis.$emit('close')\n\n\t\t\t// close everything\n\t\t\tthis.focusIndex = 0\n\n\t\t\tif (returnFocus) {\n\t\t\t\t// Focus back the menu button\n\t\t\t\tthis.$refs.menuButton.$el.focus()\n\t\t\t}\n\t\t},\n\n\t\tonOpen(event) {\n\t\t\tthis.$nextTick(() => {\n\t\t\t\tthis.focusFirstAction(event)\n\t\t\t})\n\t\t},\n\n\t\t// MENU KEYS & FOCUS MANAGEMENT\n\t\t/**\n\t\t * @return {HTMLElement|null}\n\t\t */\n\t\tgetCurrentActiveMenuItemElement() {\n\t\t\treturn this.$refs.menu.querySelector('li.active')\n\t\t},\n\t\t/**\n\t\t * @return {NodeListOf<HTMLElement>}\n\t\t */\n\t\tgetFocusableMenuItemElements() {\n\t\t\treturn this.$refs.menu.querySelectorAll(focusableSelector)\n\t\t},\n\t\t/**\n\t\t * Focus nearest focusable item on mouse move.\n\t\t * DO NOT change the focus if the target is already focused\n\t\t * this will prevent issues with input being unfocused\n\t\t * on mouse move\n\t\t * @param {PointerEvent} event - The mouse move event\n\t\t */\n\t\tonMouseFocusAction(event) {\n\t\t\tif (document.activeElement === event.target) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst menuItem = event.target.closest('li')\n\t\t\tif (menuItem && this.$refs.menu.contains(menuItem)) {\n\t\t\t\tconst focusableItem = menuItem.querySelector(focusableSelector)\n\t\t\t\tif (focusableItem) {\n\t\t\t\t\tconst focusList = this.getFocusableMenuItemElements()\n\t\t\t\t\tconst focusIndex = [...focusList].indexOf(focusableItem)\n\t\t\t\t\tif (focusIndex > -1) {\n\t\t\t\t\t\tthis.focusIndex = focusIndex\n\t\t\t\t\t\tthis.focusAction()\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t/**\n\t\t * Dispatches the keydown listener to different handlers\n\t\t *\n\t\t * @param {object} event The keydown event\n\t\t */\n\t\tonKeydown(event) {\n\t\t\tif (event.key === 'Tab') {\n\t\t\t\tif (this.config.withFocusTrap) {\n\t\t\t\t\t// Focus is managed by focus-trap\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\tif (!this.config.withTabNavigation) {\n\t\t\t\t\t// Tab is not used for navigation - close the menu\n\t\t\t\t\t// Return focus to restore Tab sequence\n\t\t\t\t\t// So browser will correctly move focus to the next element\n\t\t\t\t\tthis.closeMenu(true)\n\t\t\t\t\treturn\n\t\t\t\t}\n\n\t\t\t\t// Tab is used for classic navigation but we implement it manually\n\n\t\t\t\tevent.preventDefault()\n\n\t\t\t\tconst focusList = this.getFocusableMenuItemElements()\n\t\t\t\tconst focusIndex = [...focusList].indexOf(document.activeElement)\n\t\t\t\tif (focusIndex === -1) {\n\t\t\t\t\t// This is not supposed to happen\n\t\t\t\t\t// But if it does - do nothing and keep native behavior\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tconst newFocusIndex = event.shiftKey ? focusIndex - 1 : focusIndex + 1\n\n\t\t\t\t// There is no focus-trap, so going out of the menu closes it\n\t\t\t\tif (newFocusIndex < 0 || newFocusIndex === focusList.length) {\n\t\t\t\t\tthis.closeMenu(true)\n\t\t\t\t}\n\n\t\t\t\t// Update current focused element\n\t\t\t\tthis.focusIndex = newFocusIndex\n\t\t\t\tthis.focusAction()\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tif (this.config.withArrowNavigation) {\n\t\t\t\tif (event.key === 'ArrowUp') {\n\t\t\t\t\tthis.focusPreviousAction(event)\n\t\t\t\t}\n\n\t\t\t\tif (event.key === 'ArrowDown') {\n\t\t\t\t\tthis.focusNextAction(event)\n\t\t\t\t}\n\n\t\t\t\tif (event.key === 'PageUp') {\n\t\t\t\t\tthis.focusFirstAction(event)\n\t\t\t\t}\n\n\t\t\t\tif (event.key === 'PageDown') {\n\t\t\t\t\tthis.focusLastAction(event)\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\tthis.closeMenu()\n\t\t\t\tevent.preventDefault()\n\t\t\t}\n\t\t},\n\t\tonTriggerKeydown(event) {\n\t\t\tif (event.key === 'Escape') {\n\t\t\t\t// Tooltip has no focusable elements and the focus remains on the trigger button.\n\t\t\t\t// So keydown event on the menu cannot be handled to close Tooltip on Escape.\n\t\t\t\t// Handle on the trigger.\n\t\t\t\tif (this.actionsMenuSemanticType === 'tooltip') {\n\t\t\t\t\tthis.closeMenu()\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tremoveCurrentActive() {\n\t\t\tconst currentActiveElement = this.$refs.menu.querySelector('li.active')\n\t\t\tif (currentActiveElement) {\n\t\t\t\tcurrentActiveElement.classList.remove('active')\n\t\t\t}\n\t\t},\n\t\tfocusAction() {\n\t\t\t// TODO: have a global disabled state for non input elements\n\t\t\tconst focusElement = this.getFocusableMenuItemElements()[this.focusIndex]\n\t\t\tif (focusElement) {\n\t\t\t\tthis.removeCurrentActive()\n\t\t\t\tconst liMenuParent = focusElement.closest('li.action')\n\t\t\t\tfocusElement.focus()\n\t\t\t\tif (liMenuParent) {\n\t\t\t\t\tliMenuParent.classList.add('active')\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tfocusPreviousAction(event) {\n\t\t\tif (this.opened) {\n\t\t\t\tif (this.focusIndex === 0) {\n\t\t\t\t\tthis.focusLastAction(event)\n\t\t\t\t} else {\n\t\t\t\t\tthis.preventIfEvent(event)\n\t\t\t\t\tthis.focusIndex = this.focusIndex - 1\n\t\t\t\t}\n\t\t\t\tthis.focusAction()\n\t\t\t}\n\t\t},\n\t\tfocusNextAction(event) {\n\t\t\tif (this.opened) {\n\t\t\t\tconst indexLength = this.getFocusableMenuItemElements().length - 1\n\t\t\t\tif (this.focusIndex === indexLength) {\n\t\t\t\t\tthis.focusFirstAction(event)\n\t\t\t\t} else {\n\t\t\t\t\tthis.preventIfEvent(event)\n\t\t\t\t\tthis.focusIndex = this.focusIndex + 1\n\t\t\t\t}\n\t\t\t\tthis.focusAction()\n\t\t\t}\n\t\t},\n\t\tfocusFirstAction(event) {\n\t\t\tif (this.opened) {\n\t\t\t\tthis.preventIfEvent(event)\n\t\t\t\t// In case a NcActionButton is considered checked we will use this one as a initial focus\n\t\t\t\t// Having aria-checked is the simplest way to determine the checked state of a button\n\t\t\t\t// TODO: determine when we need to focus the first checked item and when we not, for example, if menu has many radio groups\n\t\t\t\tconst firstCheckedIndex = [...this.getFocusableMenuItemElements()].findIndex((button) => {\n\t\t\t\t\treturn button.getAttribute('aria-checked') === 'true' && button.getAttribute('role') === 'menuitemradio'\n\t\t\t\t})\n\t\t\t\tthis.focusIndex = firstCheckedIndex > -1 ? firstCheckedIndex : 0\n\t\t\t\tthis.focusAction()\n\t\t\t}\n\t\t},\n\t\tfocusLastAction(event) {\n\t\t\tif (this.opened) {\n\t\t\t\tthis.preventIfEvent(event)\n\t\t\t\tthis.focusIndex = this.getFocusableMenuItemElements().length - 1\n\t\t\t\tthis.focusAction()\n\t\t\t}\n\t\t},\n\t\tpreventIfEvent(event) {\n\t\t\tif (event) {\n\t\t\t\tevent.preventDefault()\n\t\t\t\tevent.stopPropagation()\n\t\t\t}\n\t\t},\n\t\tonFocus(event) {\n\t\t\tthis.$emit('focus', event)\n\t\t},\n\t\tonBlur(event) {\n\t\t\tthis.$emit('blur', event)\n\n\t\t\t// When there is no focusable elements to handle Tab press from actions menu\n\t\t\t// It requries manual closing\n\t\t\tif (this.actionsMenuSemanticType === 'tooltip') {\n\t\t\t\t// Tooltip is supposed to have no focusable element.\n\t\t\t\t// However, if there is a custom focusable element, it will be auto-focused and cause the menu to be closed on open.\n\t\t\t\tif (this.$refs.menu && this.getFocusableMenuItemElements().length === 0) {\n\t\t\t\t\tthis.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Event emitted when the menu toggle button is clicked.\n\t\t\t *\n\t\t\t * This is e.g. necessary for the NcAvatar component\n\t\t\t * which needs to fetch the menu items on click.\n\t\t\t *\n\t\t\t * @type {PointerEvent}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\t\t},\n\t},\n\n\t/**\n\t * The render function to display the component\n\t *\n\t * @param {Function} h The function to create VNodes\n\t * @return {object|undefined} The created VNode\n\t */\n\trender(h) {\n\t\t/**\n\t\t * Filter the Actions, so that we only get allowed components.\n\t\t * This also ensure that we don't get 'text' elements, which would\n\t\t * become problematic later on.\n\t\t */\n\t\tconst actions = (this.$slots.default || []).filter(action => this.getActionName(action))\n\n\t\t// Check that we have at least one action\n\t\tif (actions.length === 0) {\n\t\t\treturn\n\t\t}\n\n\t\t/**\n\t\t * Separate the actions into inline and menu actions\n\t\t */\n\n\t\t/**\n\t\t * @type {import('vue').VNode[]}\n\t\t */\n\t\tlet validInlineActions = actions.filter(this.isValidSingleAction)\n\t\tif (this.forceMenu && validInlineActions.length > 0 && this.inline > 0) {\n\t\t\tVue.util.warn('Specifying forceMenu will ignore any inline actions rendering.')\n\t\t\tvalidInlineActions = []\n\t\t}\n\t\t/**\n\t\t * @type {import('vue').VNode[]}\n\t\t */\n\t\tconst inlineActions = validInlineActions.slice(0, this.inline)\n\t\t/**\n\t\t * @type {import('vue').VNode[]}\n\t\t */\n\t\tconst menuActions = actions.filter(action => !inlineActions.includes(action))\n\n\t\t/**\n\t\t * Determine what kind of menu we have.\n\t\t * It defines keyboard navigation and a11y.\n\t\t */\n\n\t\tconst menuItemsActions = ['NcActionButton', 'NcActionButtonGroup', 'NcActionCheckbox', 'NcActionRadio']\n\t\tconst textInputActions = ['NcActionInput', 'NcActionTextEditable']\n\t\tconst linkActions = ['NcActionLink', 'NcActionRouter']\n\n\t\tconst hasTextInputAction = menuActions.some(action => textInputActions.includes(this.getActionName(action)))\n\t\tconst hasMenuItemAction = menuActions.some(action => menuItemsActions.includes(this.getActionName(action)))\n\t\tconst hasLinkAction = menuActions.some(action => linkActions.includes(this.getActionName(action)))\n\n\t\tif (hasTextInputAction) {\n\t\t\tthis.actionsMenuSemanticType = 'dialog'\n\t\t} else if (hasMenuItemAction) {\n\t\t\tthis.actionsMenuSemanticType = 'menu'\n\t\t} else if (hasLinkAction) {\n\t\t\tthis.actionsMenuSemanticType = 'navigation'\n\t\t} else {\n\t\t\t// (!) Hotfix (!)\n\t\t\t// In Vue 2 it is not easy to search for NcAction* in sub-component of a slot.\n\t\t\t// When a menu is rendered, children are not mounted yet.\n\t\t\t// If we have NcActions > MyActionsList > NcActionButton, only MyActionsList's vnode is available.\n\t\t\t// So when NcActions has actions as non-direct children, here then we don't know about them.\n\t\t\t// Like this menu has no buttons/links/inputs.\n\t\t\t// It makes the menu incorrectly considered a tooltip.\n\t\t\tconst ncActions = actions.filter((action) => this.getActionName(action).startsWith('NcAction'))\n\t\t\tif (ncActions.length === actions.length) {\n\t\t\t\t// True tooltip\n\t\t\t\tthis.actionsMenuSemanticType = 'tooltip'\n\t\t\t} else {\n\t\t\t\t// Custom components are passed to the NcActions\n\t\t\t\tthis.actionsMenuSemanticType = 'unknown'\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Render the provided action\n\t\t *\n\t\t * @param {import('vue').VNode} action the action to render\n\t\t * @return {Function} the vue render function\n\t\t */\n\t\tconst renderInlineAction = (action) => {\n\t\t\tconst iconProp = action?.componentOptions?.propsData?.icon\n\t\t\tconst icon = action?.data?.scopedSlots?.icon()?.[0] ?? (\n\t\t\t\tthis.isIconUrl(iconProp)\n\t\t\t\t\t? h('img', { class: 'action-item__menutoggle__icon', attrs: { src: iconProp, alt: '' } })\n\t\t\t\t\t: h('span', { class: ['icon', iconProp] })\n\t\t\t)\n\t\t\tconst attrs = action?.data?.attrs || {}\n\t\t\tconst clickListener = action?.componentOptions?.listeners?.click\n\n\t\t\tconst text = action?.componentOptions?.children?.[0]?.text?.trim?.()\n\t\t\tconst ariaLabel = action?.componentOptions?.propsData?.ariaLabel || text\n\t\t\tconst buttonText = this.forceName ? text : ''\n\n\t\t\tlet title = action?.componentOptions?.propsData?.title\n\t\t\t// Show a default title for single actions if none is present\n\t\t\tif (!(this.forceName || title)) {\n\t\t\t\ttitle = text\n\t\t\t}\n\n\t\t\tconst propsToForward = { ...(action?.componentOptions?.propsData ?? {}) }\n\t\t\tconst nativeType = ['submit', 'reset'].includes(propsToForward.type) ? propsToForward.modelValue : 'button'\n\t\t\t// not available on NcButton or with different meaning\n\t\t\tdelete propsToForward.modelValue\n\t\t\tdelete propsToForward.type\n\n\t\t\treturn h('NcButton',\n\t\t\t\t{\n\t\t\t\t\tclass: [\n\t\t\t\t\t\t'action-item action-item--single',\n\t\t\t\t\t\taction?.data?.staticClass,\n\t\t\t\t\t\taction?.data?.class,\n\t\t\t\t\t],\n\t\t\t\t\tattrs: {\n\t\t\t\t\t\t...attrs,\n\t\t\t\t\t\t'aria-label': ariaLabel,\n\t\t\t\t\t\ttitle,\n\t\t\t\t\t},\n\t\t\t\t\tref: action?.data?.ref,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t// If it has a menuName, we use a secondary button\n\t\t\t\t\t\ttype: this.type || (buttonText ? 'secondary' : 'tertiary'),\n\t\t\t\t\t\tdisabled: this.disabled || action?.componentOptions?.propsData?.disabled,\n\t\t\t\t\t\tpressed: action?.componentOptions?.propsData?.modelValue,\n\t\t\t\t\t\tnativeType,\n\t\t\t\t\t\t...propsToForward,\n\t\t\t\t\t},\n\t\t\t\t\ton: {\n\t\t\t\t\t\tfocus: this.onFocus,\n\t\t\t\t\t\tblur: this.onBlur,\n\t\t\t\t\t\t// forward any pressed state from NcButton just like NcActionButton does\n\t\t\t\t\t\t'update:pressed': action?.componentOptions?.listeners?.['update:modelValue'] ?? (() => {}),\n\t\t\t\t\t\t// If we have a click listener,\n\t\t\t\t\t\t// we bind it to execute on click and forward the click event\n\t\t\t\t\t\t...(!!clickListener && {\n\t\t\t\t\t\t\tclick: (event) => {\n\t\t\t\t\t\t\t\tif (clickListener) {\n\t\t\t\t\t\t\t\t\tclickListener(event)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t[\n\t\t\t\t\th('template', { slot: 'icon' }, [icon]),\n\t\t\t\t\tbuttonText,\n\t\t\t\t],\n\t\t\t)\n\t\t}\n\n\t\t/**\n\t\t * Render the actions popover\n\t\t *\n\t\t * @param {Array} actions the actions to render within\n\t\t * @return {Function} the vue render function\n\t\t */\n\t\tconst renderActionsPopover = (actions) => {\n\t\t\tconst triggerIcon = this.$slots.icon?.[0] || (\n\t\t\t\tthis.defaultIcon\n\t\t\t\t\t? h('span', { class: ['icon', this.defaultIcon] })\n\t\t\t\t\t: h('DotsHorizontal', {\n\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\tsize: 20,\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t)\n\t\t\tconst triggerRandomId = `${this.randomId}-trigger`\n\t\t\treturn h('NcPopover',\n\t\t\t\t{\n\t\t\t\t\tref: 'popover',\n\t\t\t\t\tprops: {\n\t\t\t\t\t\tdelay: 0,\n\t\t\t\t\t\thandleResize: true,\n\t\t\t\t\t\tshown: this.opened,\n\t\t\t\t\t\tplacement: this.placement,\n\t\t\t\t\t\tboundary: this.boundariesElement,\n\t\t\t\t\t\tcontainer: this.container,\n\t\t\t\t\t\tpopoverBaseClass: 'action-item__popper',\n\t\t\t\t\t\tpopupRole: this.config.popupRole,\n\t\t\t\t\t\tsetReturnFocus: this.config.withFocusTrap ? this.$refs.menuButton?.$el : null,\n\t\t\t\t\t\tfocusTrap: this.config.withFocusTrap,\n\t\t\t\t\t},\n\t\t\t\t\t// For some reason the popover component\n\t\t\t\t\t// does not react to props given under the 'props' key,\n\t\t\t\t\t// so we use both 'attrs' and 'props'\n\t\t\t\t\tattrs: {\n\t\t\t\t\t\tdelay: 0,\n\t\t\t\t\t\thandleResize: true,\n\t\t\t\t\t\tshown: this.opened,\n\t\t\t\t\t\tplacement: this.placement,\n\t\t\t\t\t\tboundary: this.boundariesElement,\n\t\t\t\t\t\tcontainer: this.container,\n\t\t\t\t\t\t...this.manualOpen && { triggers: [] },\n\t\t\t\t\t},\n\t\t\t\t\ton: {\n\t\t\t\t\t\tshow: this.openMenu,\n\t\t\t\t\t\t'after-show': this.onOpen,\n\t\t\t\t\t\thide: this.closeMenu,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t[\n\t\t\t\t\th('NcButton', {\n\t\t\t\t\t\tclass: 'action-item__menutoggle',\n\t\t\t\t\t\tprops: {\n\t\t\t\t\t\t\ttype: this.triggerBtnType,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tslot: 'trigger',\n\t\t\t\t\t\tref: 'menuButton',\n\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\tid: triggerRandomId,\n\t\t\t\t\t\t\t'aria-label': this.menuName ? null : this.ariaLabel,\n\t\t\t\t\t\t\t// 'aria-controls' should only present together with a valid aria-haspopup\n\t\t\t\t\t\t\t'aria-controls': this.opened && this.config.popupRole ? this.randomId : null,\n\t\t\t\t\t\t},\n\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\tfocus: this.onFocus,\n\t\t\t\t\t\t\tblur: this.onBlur,\n\t\t\t\t\t\t\tclick: this.onClick,\n\t\t\t\t\t\t\tkeydown: this.onTriggerKeydown,\n\t\t\t\t\t\t},\n\t\t\t\t\t}, [\n\t\t\t\t\t\th('template', { slot: 'icon' }, [triggerIcon]),\n\t\t\t\t\t\tthis.menuName,\n\t\t\t\t\t]),\n\t\t\t\t\th('div', {\n\t\t\t\t\t\tclass: {\n\t\t\t\t\t\t\topen: this.opened,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\ttabindex: '-1',\n\t\t\t\t\t\t},\n\t\t\t\t\t\ton: {\n\t\t\t\t\t\t\tkeydown: this.onKeydown,\n\t\t\t\t\t\t\tmousemove: this.onMouseFocusAction,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tref: 'menu',\n\t\t\t\t\t}, [\n\t\t\t\t\t\th('ul', {\n\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\tid: this.randomId,\n\t\t\t\t\t\t\t\ttabindex: '-1',\n\t\t\t\t\t\t\t\trole: this.config.popupRole,\n\t\t\t\t\t\t\t\t// Dialog must have a label\n\t\t\t\t\t\t\t\t'aria-labelledby': this.actionsMenuSemanticType === 'dialog' ? triggerRandomId : undefined,\n\t\t\t\t\t\t\t\t'aria-modal': this.actionsMenuSemanticType === 'dialog' ? 'true' : undefined,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}, [\n\t\t\t\t\t\t\tactions,\n\t\t\t\t\t\t]),\n\t\t\t\t\t]),\n\t\t\t\t],\n\t\t\t)\n\t\t}\n\n\t\t/**\n\t\t * If we have a single action only and didn't force a menu,\n\t\t * we render the action as a standalone button\n\t\t */\n\t\tif (actions.length === 1 && validInlineActions.length === 1 && !this.forceMenu) {\n\t\t\treturn renderInlineAction(actions[0])\n\t\t}\n\n\t\t// If we completely re-render the children\n\t\t// we need to focus the first action again\n\t\t// Mostly used when clicking a menu item\n\t\tthis.$nextTick(() => {\n\t\t\tif (this.opened && this.$refs.menu) {\n\t\t\t\tconst isAnyActive = this.$refs.menu.querySelector('li.active') || []\n\t\t\t\tif (isAnyActive.length === 0) {\n\t\t\t\t\tthis.focusFirstAction()\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\n\t\t/**\n\t\t * If we some inline actions to render, render them, then the menu\n\t\t */\n\t\tif (inlineActions.length > 0 && this.inline > 0) {\n\t\t\treturn h('div',\n\t\t\t\t{\n\t\t\t\t\tclass: [\n\t\t\t\t\t\t'action-items',\n\t\t\t\t\t\t`action-item--${this.triggerBtnType}`,\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t[\n\t\t\t\t\t// Render inline actions\n\t\t\t\t\t...inlineActions.map(renderInlineAction),\n\t\t\t\t\t// render the rest within the popover menu\n\t\t\t\t\tmenuActions.length > 0\n\t\t\t\t\t\t? h('div',\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tclass: [\n\t\t\t\t\t\t\t\t\t'action-item',\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t'action-item--open': this.opened,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\trenderActionsPopover(menuActions),\n\t\t\t\t\t\t\t])\n\t\t\t\t\t\t: null,\n\t\t\t\t])\n\t\t}\n\n\t\t/**\n\t\t * Otherwise, we render the actions in a popover\n\t\t */\n\t\treturn h('div',\n\t\t\t{\n\t\t\t\tclass: [\n\t\t\t\t\t'action-item action-item--default-popover',\n\t\t\t\t\t`action-item--${this.triggerBtnType}`,\n\t\t\t\t\t{\n\t\t\t\t\t\t'action-item--open': this.opened,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\t[\n\t\t\t\trenderActionsPopover(actions),\n\t\t\t],\n\t\t)\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n// Inline buttons\n.action-items {\n\tdisplay: flex;\n\talign-items: center;\n\n\t// Spacing between buttons\n\t& > button {\n\t\tmargin-right: math.div($icon-margin, 2);\n\t}\n}\n\n.action-item {\n\t--open-background-color: var(--color-background-hover, $action-background-hover);\n\tposition: relative;\n\tdisplay: inline-block;\n\n\t&.action-item--primary {\n\t\t--open-background-color: var(--color-primary-element-hover);\n\t}\n\n\t&.action-item--secondary {\n\t\t--open-background-color: var(--color-primary-element-light-hover);\n\t}\n\n\t&.action-item--error {\n\t\t--open-background-color: var(--color-error-hover);\n\t}\n\n\t&.action-item--warning {\n\t\t--open-background-color: var(--color-warning-hover);\n\t}\n\n\t&.action-item--success {\n\t\t--open-background-color: var(--color-success-hover);\n\t}\n\n\t&.action-item--tertiary-no-background {\n\t\t--open-background-color: transparent;\n\t}\n\n\t&.action-item--open .action-item__menutoggle {\n\t\tbackground-color: var(--open-background-color);\n\t}\n\n\t&__menutoggle__icon {\n\t\twidth: 20px;\n\t\theight: 20px;\n\t\tobject-fit: contain;\n\t}\n}\n</style>\n\n<style lang=\"scss\">\n// We overwrote the popover base class, so we can style\n// the popover__inner for actions only.\n.v-popper--theme-dropdown.v-popper__popper.action-item__popper .v-popper__wrapper {\n\tborder-radius: var(--border-radius-large);\n\toverflow:hidden;\n\n\t.v-popper__inner {\n\t\tborder-radius: var(--border-radius-large);\n\t\tpadding: 4px;\n\t\tmax-height: calc(50vh - 16px);\n\t\toverflow: auto;\n\t}\n}\n</style>\n"],"names":["focusableSelector","_sfc_main","NcButton","DotsHorizontal","NcPopover","computed","value","t","GenRandomId","state","action","getTrapStack","trap","url","e","returnFocus","event","menuItem","focusableItem","focusIndex","focusList","newFocusIndex","currentActiveElement","focusElement","liMenuParent","indexLength","firstCheckedIndex","button","h","actions","validInlineActions","Vue","inlineActions","menuActions","menuItemsActions","textInputActions","linkActions","hasTextInputAction","hasMenuItemAction","hasLinkAction","renderInlineAction","iconProp","icon","attrs","clickListener","text","ariaLabel","buttonText","title","propsToForward","nativeType","renderActionsPopover","triggerIcon","triggerRandomId"],"mappings":";;;AAk7BA,MAAAA,IAAA,cAUAC,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,UAAAC;AAAAA,IACA,gBAAAC,EAAA;AAAA,IACA,WAAAC,EAAA;AAAA,EACA;AAAA,EAEA,UAAA;AACA,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAUA,4BAAAC,EAAAA,SAAA,MAAA,KAAA,4BAAA,MAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAAC,GAAA;AACA,eAAA,CAAA,WAAA,aAAA,YAAA,0BAAA,uBAAA,SAAA,WAAA,SAAA,EAAA,QAAAA,CAAA,MAAA;AAAA,MACA;AAAA,MACA,S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AA,WAAA,KAAAC,EAAA,WAAA,KAAA,CAAA,KAAA,YACAU,EAAAX,EAAA,CAAA,CAAA,KAMA,KAAA,UAAA,MAAA;AACA,MAAA,KAAA,UAAA,KAAA,MAAA,SACA,KAAA,MAAA,KAAA,cAAA,WAAA,KAAA,CAAA,GACA,WAAA,KACA,KAAA,iBAAA;AAAA,IAGA,CAAA,GAKAG,EAAA,SAAA,KAAA,KAAA,SAAA,IACAJ;AAAA,MAAA;AAAA,MACA;AAAA,QACA,OAAA;AAAA,UACA;AAAA,UACA,gBAAA,KAAA,cAAA;AAAA,QACA;AAAA,MACA;AAAA,MACA;AAAA;AAAA,QAEA,GAAAI,EAAA,IAAAQ,CAAA;AAAA;AAAA,QAEAP,EAAA,SAAA,IACAL;AAAA,UAAA;AAAA,UACA;AAAA,YACA,OAAA;AAAA,cACA;AAAA,cACA;AAAA,gBACA,qBAAA,KAAA;AAAA,cACA;AAAA,YACA;AAAA,UACA;AAAA,UACA;AAAA,YACAuB,EAAAlB,CAAA;AAAA,UACA;AAAA,QAAA,IACA;AAAA,MACA;AAAA,IAAA,IAMAL;AAAA,MAAA;AAAA,MACA;AAAA,QACA,OAAA;AAAA,UACA;AAAA,UACA,gBAAA,KAAA,cAAA;AAAA,UACA;AAAA,YACA,qBAAA,KAAA;AAAA,UACA;AAAA,QACA;AAAA,MACA;AAAA,MACA;AAAA,QACAuB,EAAAtB,CAAA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  require('../assets/NcAppContent-SZz3PTd8.css');
2
2
  "use strict";
3
- const r = require("../Components/NcButton.cjs"), n = require("./_l10n-Od-4xzJA.cjs");
3
+ const r = require("../Components/NcButton.cjs"), n = require("./_l10n-qu3Uu6RR.cjs");
4
4
  require("../Directives/Tooltip.cjs");
5
5
  const a = require("@nextcloud/event-bus"), u = require("./ArrowRight-uUC8qW2c.cjs"), p = require("./_plugin-vue2_normalizer-DCfUPqga.cjs"), c = require("floating-vue"), h = require("../Composables/useIsMobile.cjs"), g = require("@nextcloud/browser-storage"), d = require("@vueuse/core"), o = require("splitpanes");
6
6
  require("splitpanes/dist/splitpanes.css");