@nextcloud/vue 8.7.0 → 8.8.0
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.
- package/CHANGELOG.md +36 -0
- package/dist/Components/NcActionButtonGroup.cjs +1 -1
- package/dist/Components/NcActionButtonGroup.mjs +1 -1
- package/dist/Components/NcActionInput.cjs +1 -1
- package/dist/Components/NcActionInput.mjs +1 -1
- package/dist/Components/NcActions.cjs +1 -1
- package/dist/Components/NcActions.mjs +1 -1
- package/dist/Components/NcAppContent.cjs +1 -1
- package/dist/Components/NcAppContent.mjs +1 -1
- package/dist/Components/NcAppNavigation.cjs +1 -1
- package/dist/Components/NcAppNavigation.mjs +1 -1
- package/dist/Components/NcAppNavigationCaption.cjs +1 -1
- package/dist/Components/NcAppNavigationCaption.mjs +1 -1
- package/dist/Components/NcAppNavigationItem.cjs +1 -1
- package/dist/Components/NcAppNavigationItem.mjs +1 -1
- package/dist/Components/NcAppNavigationList.cjs +20 -0
- package/dist/Components/NcAppNavigationList.cjs.map +1 -0
- package/dist/Components/NcAppNavigationList.mjs +22 -0
- package/dist/Components/NcAppNavigationList.mjs.map +1 -0
- package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
- package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
- package/dist/Components/NcAppNavigationSettings.cjs +1 -1
- package/dist/Components/NcAppNavigationSettings.mjs +1 -1
- package/dist/Components/NcAppNavigationSpacer.cjs +2 -2
- package/dist/Components/NcAppNavigationSpacer.cjs.map +1 -1
- package/dist/Components/NcAppNavigationSpacer.mjs +5 -5
- package/dist/Components/NcAppNavigationSpacer.mjs.map +1 -1
- package/dist/Components/NcAppNavigationToggle.cjs +1 -1
- package/dist/Components/NcAppNavigationToggle.mjs +1 -1
- package/dist/Components/NcAppSettingsDialog.cjs +1 -1
- package/dist/Components/NcAppSettingsDialog.mjs +1 -1
- package/dist/Components/NcAppSidebar.cjs +1 -1
- package/dist/Components/NcAppSidebar.mjs +1 -1
- package/dist/Components/NcAvatar.cjs +1 -1
- package/dist/Components/NcAvatar.mjs +1 -1
- package/dist/Components/NcBreadcrumb.cjs +1 -1
- package/dist/Components/NcBreadcrumb.mjs +1 -1
- package/dist/Components/NcBreadcrumbs.cjs +1 -1
- package/dist/Components/NcBreadcrumbs.mjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
- package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
- package/dist/Components/NcColorPicker.cjs +1 -1
- package/dist/Components/NcColorPicker.mjs +1 -1
- package/dist/Components/NcContent.cjs +1 -1
- package/dist/Components/NcContent.mjs +1 -1
- package/dist/Components/NcDashboardWidget.cjs +1 -1
- package/dist/Components/NcDashboardWidget.mjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
- package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
- package/dist/Components/NcDateTime.cjs +1 -1
- package/dist/Components/NcDateTime.mjs +1 -1
- package/dist/Components/NcDateTimePicker.cjs +2 -2
- package/dist/Components/NcDateTimePicker.mjs +5 -5
- package/dist/Components/NcDateTimePickerNative.cjs +1 -1
- package/dist/Components/NcDateTimePickerNative.mjs +1 -1
- package/dist/Components/NcDialog.cjs +1 -1
- package/dist/Components/NcDialog.mjs +1 -1
- package/dist/Components/NcDialogButton.cjs +1 -1
- package/dist/Components/NcDialogButton.mjs +1 -1
- package/dist/Components/NcEmojiPicker.cjs +1 -1
- package/dist/Components/NcEmojiPicker.mjs +1 -1
- package/dist/Components/NcIconSvgWrapper.cjs +1 -1
- package/dist/Components/NcIconSvgWrapper.mjs +1 -1
- package/dist/Components/NcListItem.cjs +1 -1
- package/dist/Components/NcListItem.mjs +1 -1
- package/dist/Components/NcListItemIcon.cjs +1 -1
- package/dist/Components/NcListItemIcon.mjs +1 -1
- package/dist/Components/NcModal.cjs +1 -1
- package/dist/Components/NcModal.mjs +3 -3
- package/dist/Components/NcPasswordField.cjs +1 -1
- package/dist/Components/NcPasswordField.mjs +1 -1
- package/dist/Components/NcPopover.cjs +1 -1
- package/dist/Components/NcPopover.mjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
- package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
- package/dist/Components/NcRichContenteditable.cjs +1 -1
- package/dist/Components/NcRichContenteditable.mjs +2 -2
- package/dist/Components/NcRichText.cjs +1 -1
- package/dist/Components/NcRichText.mjs +3 -3
- package/dist/Components/NcSelect.cjs +1 -1
- package/dist/Components/NcSelect.mjs +1 -1
- package/dist/Components/NcSelectTags.cjs +1 -1
- package/dist/Components/NcSelectTags.mjs +1 -1
- package/dist/Components/NcSettingsInputText.cjs +1 -1
- package/dist/Components/NcSettingsInputText.mjs +1 -1
- package/dist/Components/NcSettingsSection.cjs +1 -1
- package/dist/Components/NcSettingsSection.mjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
- package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
- package/dist/Components/NcTextField.cjs +1 -1
- package/dist/Components/NcTextField.mjs +1 -1
- package/dist/Components/NcTimezonePicker.cjs +1 -1
- package/dist/Components/NcTimezonePicker.mjs +1 -1
- package/dist/Components/NcUserBubble.cjs +1 -1
- package/dist/Components/NcUserBubble.mjs +1 -1
- package/dist/Components/NcUserStatusIcon.cjs +1 -1
- package/dist/Components/NcUserStatusIcon.mjs +1 -1
- package/dist/Functions/reference.cjs +1 -1
- package/dist/Functions/reference.mjs +1 -1
- package/dist/Functions/usernameToColor.cjs +1 -1
- package/dist/Functions/usernameToColor.mjs +1 -1
- package/dist/Mixins/richEditor.cjs +1 -1
- package/dist/Mixins/richEditor.mjs +1 -1
- package/dist/assets/{NcActions-4Gq5bZLW.css → NcActions-mt8BQ_bn.css} +12 -12
- package/dist/assets/{NcAppNavigation-vjqOL-kR.css → NcAppNavigation-9nlYnuUQ.css} +8 -8
- package/dist/assets/{NcAppNavigationCaption-l5yRGXZx.css → NcAppNavigationCaption-I1dcvB0N.css} +11 -5
- package/dist/assets/NcAppNavigationList-RooPPg4w.css +44 -0
- package/dist/assets/NcAppNavigationSpacer-uaft91Uz.css +4 -0
- package/dist/assets/{NcAppSidebar-YHd7DpMW.css → NcAppSidebar-RkF-tqKy.css} +49 -46
- package/dist/assets/{NcColorPicker-PzIRM1j1.css → NcColorPicker-jW6HOxWA.css} +24 -24
- package/dist/assets/{NcDashboardWidgetItem-S7fELANA.css → NcDashboardWidgetItem-OL--xR_P.css} +15 -13
- package/dist/assets/{NcDateTimePicker-w8SEtYvQ.css → NcDateTimePicker-l-C3PwHK.css} +10 -10
- package/dist/assets/{NcEmojiPicker-wTIbvcrG.css → NcEmojiPicker-hTlSVIq0.css} +5 -5
- package/dist/assets/{NcIconSvgWrapper-arqrq5Bj.css → NcIconSvgWrapper-KLotijwU.css} +13 -7
- package/dist/assets/{NcRelatedResourcesPanel-m3uf_nvH.css → NcRelatedResourcesPanel-oq5eMIoh.css} +7 -7
- package/dist/assets/{NcRichContenteditable-N1TxeACO.css → NcRichContenteditable-rW6l0h3m.css} +33 -31
- package/dist/chunks/{GenColors-zPMSiY0e.cjs → GenColors-LzmNxRE8.cjs} +1 -1
- package/dist/chunks/{GenColors-zPMSiY0e.cjs.map → GenColors-LzmNxRE8.cjs.map} +1 -1
- package/dist/chunks/{GenColors-wNwbCHuq.mjs → GenColors-MjG_SfWn.mjs} +1 -1
- package/dist/chunks/{GenColors-wNwbCHuq.mjs.map → GenColors-MjG_SfWn.mjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-HIUn669C.cjs → NcActionButtonGroup-6TAtQFtq.cjs} +1 -1
- package/dist/chunks/{NcActionButtonGroup-HIUn669C.cjs.map → NcActionButtonGroup-6TAtQFtq.cjs.map} +1 -1
- package/dist/chunks/{NcActionButtonGroup-A5Ixaw5n.mjs → NcActionButtonGroup-w6A9Fw2n.mjs} +1 -1
- package/dist/chunks/{NcActionButtonGroup-A5Ixaw5n.mjs.map → NcActionButtonGroup-w6A9Fw2n.mjs.map} +1 -1
- package/dist/chunks/{NcActionInput-f1Oq2O71.cjs → NcActionInput-Fl2UyuVW.cjs} +1 -1
- package/dist/chunks/{NcActionInput-f1Oq2O71.cjs.map → NcActionInput-Fl2UyuVW.cjs.map} +1 -1
- package/dist/chunks/{NcActionInput-XHMzOL_h.mjs → NcActionInput-yvhGpEsS.mjs} +4 -4
- package/dist/chunks/{NcActionInput-XHMzOL_h.mjs.map → NcActionInput-yvhGpEsS.mjs.map} +1 -1
- package/dist/chunks/{NcActions-JXnhQhum.cjs → NcActions-iACO4laf.cjs} +143 -70
- package/dist/chunks/NcActions-iACO4laf.cjs.map +1 -0
- package/dist/chunks/{NcActions-5_igU-CH.mjs → NcActions-rHzi4RcQ.mjs} +153 -80
- package/dist/chunks/NcActions-rHzi4RcQ.mjs.map +1 -0
- package/dist/chunks/{NcAppContent-Kq5fJ7_W.cjs → NcAppContent--JRFOyLe.cjs} +1 -1
- package/dist/chunks/{NcAppContent-Kq5fJ7_W.cjs.map → NcAppContent--JRFOyLe.cjs.map} +1 -1
- package/dist/chunks/{NcAppContent-WBzZJh-y.mjs → NcAppContent-c0KjHkMb.mjs} +1 -1
- package/dist/chunks/{NcAppContent-WBzZJh-y.mjs.map → NcAppContent-c0KjHkMb.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigation-n6P3oVZv.mjs → NcAppNavigation-7U8buuT7.mjs} +8 -8
- package/dist/chunks/NcAppNavigation-7U8buuT7.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigation-U6yaDk7k.cjs → NcAppNavigation-AcPesLHq.cjs} +4 -4
- package/dist/chunks/NcAppNavigation-AcPesLHq.cjs.map +1 -0
- package/dist/chunks/NcAppNavigationCaption-Iuzt-yzb.cjs +58 -0
- package/dist/chunks/NcAppNavigationCaption-Iuzt-yzb.cjs.map +1 -0
- package/dist/chunks/NcAppNavigationCaption-UJ7iY1q5.mjs +61 -0
- package/dist/chunks/NcAppNavigationCaption-UJ7iY1q5.mjs.map +1 -0
- package/dist/chunks/{NcAppNavigationItem-A1yAdDNN.mjs → NcAppNavigationItem-9n2uXjvj.mjs} +3 -3
- package/dist/chunks/{NcAppNavigationItem-A1yAdDNN.mjs.map → NcAppNavigationItem-9n2uXjvj.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationItem-Wb8gX-Ln.cjs → NcAppNavigationItem-pvFIrGQv.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationItem-Wb8gX-Ln.cjs.map → NcAppNavigationItem-pvFIrGQv.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-TyGHutbG.cjs → NcAppNavigationNewItem-CXGDvuMl.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-TyGHutbG.cjs.map → NcAppNavigationNewItem-CXGDvuMl.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-t1ST1cif.mjs → NcAppNavigationNewItem-jr12p6VL.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationNewItem-t1ST1cif.mjs.map → NcAppNavigationNewItem-jr12p6VL.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-gwL_FqLN.mjs → NcAppNavigationSettings-NRqRmMXw.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-gwL_FqLN.mjs.map → NcAppNavigationSettings-NRqRmMXw.mjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-VLa79G7w.cjs → NcAppNavigationSettings-Nd8RJnYL.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationSettings-VLa79G7w.cjs.map → NcAppNavigationSettings-Nd8RJnYL.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-Wz0s35Rd.cjs → NcAppNavigationToggle-KZ_xHLv9.cjs} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-Wz0s35Rd.cjs.map → NcAppNavigationToggle-KZ_xHLv9.cjs.map} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-KT8eqw6r.mjs → NcAppNavigationToggle-kL5XkG2J.mjs} +1 -1
- package/dist/chunks/{NcAppNavigationToggle-KT8eqw6r.mjs.map → NcAppNavigationToggle-kL5XkG2J.mjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-h22q7l_7.cjs → NcAppSettingsDialog-8l-aNNFq.cjs} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-h22q7l_7.cjs.map → NcAppSettingsDialog-8l-aNNFq.cjs.map} +1 -1
- package/dist/chunks/{NcAppSettingsDialog-5t3vGpRF.mjs → NcAppSettingsDialog-S9pm_eoJ.mjs} +2 -2
- package/dist/chunks/{NcAppSettingsDialog-5t3vGpRF.mjs.map → NcAppSettingsDialog-S9pm_eoJ.mjs.map} +1 -1
- package/dist/chunks/{NcAppSidebar-tnHBPGbL.mjs → NcAppSidebar-kN5SMxgh.mjs} +8 -6
- package/dist/chunks/NcAppSidebar-kN5SMxgh.mjs.map +1 -0
- package/dist/chunks/{NcAppSidebar-rRNJnN-k.cjs → NcAppSidebar-l6rV-lnp.cjs} +7 -5
- package/dist/chunks/NcAppSidebar-l6rV-lnp.cjs.map +1 -0
- package/dist/chunks/{NcAvatar-zTS9P1lK.cjs → NcAvatar-CVj9XTPL.cjs} +2 -2
- package/dist/chunks/{NcAvatar-zTS9P1lK.cjs.map → NcAvatar-CVj9XTPL.cjs.map} +1 -1
- package/dist/chunks/{NcAvatar-xT3kz6mU.mjs → NcAvatar-MI8_N7U1.mjs} +4 -4
- package/dist/chunks/{NcAvatar-xT3kz6mU.mjs.map → NcAvatar-MI8_N7U1.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-DEWk7wO9.cjs → NcBreadcrumb-EhfhBqAL.cjs} +1 -1
- package/dist/chunks/{NcBreadcrumb-DEWk7wO9.cjs.map → NcBreadcrumb-EhfhBqAL.cjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumb-w1UX2NR-.mjs → NcBreadcrumb-LpXeIBcG.mjs} +1 -1
- package/dist/chunks/{NcBreadcrumb-w1UX2NR-.mjs.map → NcBreadcrumb-LpXeIBcG.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-tRR9CjKD.mjs → NcBreadcrumbs--4xgDVR7.mjs} +2 -2
- package/dist/chunks/{NcBreadcrumbs-tRR9CjKD.mjs.map → NcBreadcrumbs--4xgDVR7.mjs.map} +1 -1
- package/dist/chunks/{NcBreadcrumbs-VuaG3ex5.cjs → NcBreadcrumbs-zYhyJxEY.cjs} +1 -1
- package/dist/chunks/{NcBreadcrumbs-VuaG3ex5.cjs.map → NcBreadcrumbs-zYhyJxEY.cjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-7pZp_rWo.cjs → NcCheckboxRadioSwitch-Ox3J2r7t.cjs} +2 -2
- package/dist/chunks/{NcCheckboxRadioSwitch-7pZp_rWo.cjs.map → NcCheckboxRadioSwitch-Ox3J2r7t.cjs.map} +1 -1
- package/dist/chunks/{NcCheckboxRadioSwitch-PlgK1zWr.mjs → NcCheckboxRadioSwitch-ymUA5BIs.mjs} +2 -2
- package/dist/chunks/{NcCheckboxRadioSwitch-PlgK1zWr.mjs.map → NcCheckboxRadioSwitch-ymUA5BIs.mjs.map} +1 -1
- 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-0EjSdGnM.mjs} +1 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-0EjSdGnM.mjs.map +1 -0
- 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-0FNcC7Nt.cjs} +1 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-0FNcC7Nt.cjs.map +1 -0
- package/dist/chunks/{NcColorPicker-rPobPO3M.mjs → NcColorPicker-1m1Xv5fE.mjs} +6 -6
- package/dist/chunks/NcColorPicker-1m1Xv5fE.mjs.map +1 -0
- package/dist/chunks/{NcColorPicker-yr9Pfeem.cjs → NcColorPicker-7PNp6DUg.cjs} +4 -4
- package/dist/chunks/NcColorPicker-7PNp6DUg.cjs.map +1 -0
- package/dist/chunks/{NcContent-BdekB7Zr.cjs → NcContent-L5DDeJmE.cjs} +1 -1
- package/dist/chunks/{NcContent-BdekB7Zr.cjs.map → NcContent-L5DDeJmE.cjs.map} +1 -1
- package/dist/chunks/{NcContent-EGBAB5sy.mjs → NcContent-YJfqE5Kv.mjs} +2 -2
- package/dist/chunks/{NcContent-EGBAB5sy.mjs.map → NcContent-YJfqE5Kv.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-QciRRvL4.cjs → NcDashboardWidget-KPADyPUh.cjs} +1 -1
- package/dist/chunks/{NcDashboardWidget-QciRRvL4.cjs.map → NcDashboardWidget-KPADyPUh.cjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidget-ogqyHahY.mjs → NcDashboardWidget-oUPY199x.mjs} +3 -3
- package/dist/chunks/{NcDashboardWidget-ogqyHahY.mjs.map → NcDashboardWidget-oUPY199x.mjs.map} +1 -1
- package/dist/chunks/{NcDashboardWidgetItem-mIPkPR7r.cjs → NcDashboardWidgetItem-KpDnCM7Y.cjs} +4 -4
- package/dist/chunks/NcDashboardWidgetItem-KpDnCM7Y.cjs.map +1 -0
- package/dist/chunks/{NcDashboardWidgetItem-wuUHTeLl.mjs → NcDashboardWidgetItem-iZA9aHuL.mjs} +7 -7
- package/dist/chunks/NcDashboardWidgetItem-iZA9aHuL.mjs.map +1 -0
- package/dist/chunks/{NcDateTime-UCw1o96E.mjs → NcDateTime-EqdvmXRa.mjs} +1 -1
- package/dist/chunks/{NcDateTime-UCw1o96E.mjs.map → NcDateTime-EqdvmXRa.mjs.map} +1 -1
- package/dist/chunks/{NcDateTime-hyWStpUj.cjs → NcDateTime-ez2Mc6Ut.cjs} +1 -1
- package/dist/chunks/{NcDateTime-hyWStpUj.cjs.map → NcDateTime-ez2Mc6Ut.cjs.map} +1 -1
- package/dist/chunks/{NcDialog-652A8lMI.mjs → NcDialog-_HZnlBi4.mjs} +1 -1
- package/dist/chunks/{NcDialog-652A8lMI.mjs.map → NcDialog-_HZnlBi4.mjs.map} +1 -1
- package/dist/chunks/{NcDialog-dPYf81Dr.cjs → NcDialog-f6KwlaqC.cjs} +1 -1
- package/dist/chunks/{NcDialog-dPYf81Dr.cjs.map → NcDialog-f6KwlaqC.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-V3nj_xwS.cjs → NcDialogButton-CtdP0-DO.cjs} +1 -1
- package/dist/chunks/{NcDialogButton-V3nj_xwS.cjs.map → NcDialogButton-CtdP0-DO.cjs.map} +1 -1
- package/dist/chunks/{NcDialogButton-QuoJDLGH.mjs → NcDialogButton-xDZQrfsw.mjs} +1 -1
- package/dist/chunks/{NcDialogButton-QuoJDLGH.mjs.map → NcDialogButton-xDZQrfsw.mjs.map} +1 -1
- package/dist/chunks/{NcEmojiPicker-O0EAGlkS.mjs → NcEmojiPicker-Qi10uLHB.mjs} +8 -8
- package/dist/chunks/NcEmojiPicker-Qi10uLHB.mjs.map +1 -0
- package/dist/chunks/{NcEmojiPicker-xzt2RvDK.cjs → NcEmojiPicker-gZaqE1rk.cjs} +13 -13
- package/dist/chunks/NcEmojiPicker-gZaqE1rk.cjs.map +1 -0
- package/dist/chunks/{NcIconSvgWrapper-n3MnAe1S.mjs → NcIconSvgWrapper-CvnWKK7h.mjs} +23 -15
- package/dist/chunks/NcIconSvgWrapper-CvnWKK7h.mjs.map +1 -0
- package/dist/chunks/{NcIconSvgWrapper-R7a7dIg4.cjs → NcIconSvgWrapper-RwagV5P9.cjs} +20 -12
- package/dist/chunks/NcIconSvgWrapper-RwagV5P9.cjs.map +1 -0
- package/dist/chunks/{NcInputConfirmCancel-z3ANO-1N.mjs → NcInputConfirmCancel-EgnZwbmj.mjs} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-z3ANO-1N.mjs.map → NcInputConfirmCancel-EgnZwbmj.mjs.map} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-tvpFnpKT.cjs → NcInputConfirmCancel-wK1KES_K.cjs} +1 -1
- package/dist/chunks/{NcInputConfirmCancel-tvpFnpKT.cjs.map → NcInputConfirmCancel-wK1KES_K.cjs.map} +1 -1
- package/dist/chunks/{NcListItem--_PCqetA.cjs → NcListItem-7wde4DHX.cjs} +1 -1
- package/dist/chunks/{NcListItem--_PCqetA.cjs.map → NcListItem-7wde4DHX.cjs.map} +1 -1
- package/dist/chunks/{NcListItem-AMcc69jK.mjs → NcListItem-DwAhV_Om.mjs} +2 -2
- package/dist/chunks/{NcListItem-AMcc69jK.mjs.map → NcListItem-DwAhV_Om.mjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-BnoIbVbD.cjs → NcListItemIcon-1qPc7NDv.cjs} +1 -1
- package/dist/chunks/{NcListItemIcon-BnoIbVbD.cjs.map → NcListItemIcon-1qPc7NDv.cjs.map} +1 -1
- package/dist/chunks/{NcListItemIcon-rqgXledP.mjs → NcListItemIcon-S06TFU1A.mjs} +2 -2
- package/dist/chunks/{NcListItemIcon-rqgXledP.mjs.map → NcListItemIcon-S06TFU1A.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-EbKN3MlL.mjs → NcPasswordField-F30zJsph.mjs} +1 -1
- package/dist/chunks/{NcPasswordField-EbKN3MlL.mjs.map → NcPasswordField-F30zJsph.mjs.map} +1 -1
- package/dist/chunks/{NcPasswordField-IkBZCjOy.cjs → NcPasswordField-hngMvgyo.cjs} +1 -1
- package/dist/chunks/{NcPasswordField-IkBZCjOy.cjs.map → NcPasswordField-hngMvgyo.cjs.map} +1 -1
- package/dist/chunks/{NcPopover-T4GMXmKV.mjs → NcPopover-93ns_0K4.mjs} +38 -23
- package/dist/chunks/NcPopover-93ns_0K4.mjs.map +1 -0
- package/dist/chunks/{NcPopover-judBGW5r.cjs → NcPopover-fv7OFtxM.cjs} +33 -18
- package/dist/chunks/NcPopover-fv7OFtxM.cjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-f2UeB_6X.cjs → NcRelatedResourcesPanel-f1Up3M7Q.cjs} +22 -17
- package/dist/chunks/NcRelatedResourcesPanel-f1Up3M7Q.cjs.map +1 -0
- package/dist/chunks/{NcRelatedResourcesPanel-EDvgZgjQ.mjs → NcRelatedResourcesPanel-zXNE9qiS.mjs} +27 -21
- package/dist/chunks/NcRelatedResourcesPanel-zXNE9qiS.mjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-jReu2l-M.cjs → NcRichContenteditable--pSQfJW9.cjs} +45 -46
- package/dist/chunks/NcRichContenteditable--pSQfJW9.cjs.map +1 -0
- package/dist/chunks/{NcRichContenteditable-eG8Fyo-M.mjs → NcRichContenteditable-lE_j-Gfc.mjs} +36 -37
- package/dist/chunks/NcRichContenteditable-lE_j-Gfc.mjs.map +1 -0
- package/dist/chunks/{NcRichText-Yo5pFnd0.cjs → NcRichText-0eMrB-8S.cjs} +38 -38
- package/dist/chunks/{NcRichText-Yo5pFnd0.cjs.map → NcRichText-0eMrB-8S.cjs.map} +1 -1
- package/dist/chunks/{NcRichText-qID66jAy.mjs → NcRichText-Vm0d22pV.mjs} +9 -8
- package/dist/chunks/{NcRichText-qID66jAy.mjs.map → NcRichText-Vm0d22pV.mjs.map} +1 -1
- package/dist/chunks/{NcSelect-b2H-YQsK.mjs → NcSelect-75KHhmKy.mjs} +2 -2
- package/dist/chunks/{NcSelect-b2H-YQsK.mjs.map → NcSelect-75KHhmKy.mjs.map} +1 -1
- package/dist/chunks/{NcSelect-U9LJcdIo.cjs → NcSelect-DmqYvkx5.cjs} +1 -1
- package/dist/chunks/{NcSelect-U9LJcdIo.cjs.map → NcSelect-DmqYvkx5.cjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-MlILya2b.mjs → NcSelectTags--fJnxT3p.mjs} +2 -2
- package/dist/chunks/{NcSelectTags-MlILya2b.mjs.map → NcSelectTags--fJnxT3p.mjs.map} +1 -1
- package/dist/chunks/{NcSelectTags-rO88Pk-1.cjs → NcSelectTags-hNbQxoKD.cjs} +1 -1
- package/dist/chunks/{NcSelectTags-rO88Pk-1.cjs.map → NcSelectTags-hNbQxoKD.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-0K3HYGJr.cjs → NcSettingsInputText-TsKBeDLR.cjs} +1 -1
- package/dist/chunks/{NcSettingsInputText-0K3HYGJr.cjs.map → NcSettingsInputText-TsKBeDLR.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsInputText-Pz6fV7At.mjs → NcSettingsInputText-UaZCytJK.mjs} +1 -1
- package/dist/chunks/{NcSettingsInputText-Pz6fV7At.mjs.map → NcSettingsInputText-UaZCytJK.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-CRmU7GLC.mjs → NcSettingsSection-bupJ6Jna.mjs} +1 -1
- package/dist/chunks/{NcSettingsSection-CRmU7GLC.mjs.map → NcSettingsSection-bupJ6Jna.mjs.map} +1 -1
- package/dist/chunks/{NcSettingsSection-IbUOeZ-e.cjs → NcSettingsSection-m79BAMzc.cjs} +1 -1
- package/dist/chunks/{NcSettingsSection-IbUOeZ-e.cjs.map → NcSettingsSection-m79BAMzc.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-rfeDPLCg.cjs → NcSettingsSelectGroup--i1OpaqD.cjs} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-rfeDPLCg.cjs.map → NcSettingsSelectGroup--i1OpaqD.cjs.map} +1 -1
- package/dist/chunks/{NcSettingsSelectGroup-xhnDBg8a.mjs → NcSettingsSelectGroup-OBtXPYek.mjs} +2 -2
- package/dist/chunks/{NcSettingsSelectGroup-xhnDBg8a.mjs.map → NcSettingsSelectGroup-OBtXPYek.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-NnW31cA4.mjs → NcTextField-J7CSrszM.mjs} +1 -1
- package/dist/chunks/{NcTextField-NnW31cA4.mjs.map → NcTextField-J7CSrszM.mjs.map} +1 -1
- package/dist/chunks/{NcTextField-eclRKl_B.cjs → NcTextField-_LseQJYw.cjs} +1 -1
- package/dist/chunks/{NcTextField-eclRKl_B.cjs.map → NcTextField-_LseQJYw.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-KG0dvgUv.cjs → NcTimezonePicker-3_GbgBdk.cjs} +1 -1
- package/dist/chunks/{NcTimezonePicker-KG0dvgUv.cjs.map → NcTimezonePicker-3_GbgBdk.cjs.map} +1 -1
- package/dist/chunks/{NcTimezonePicker-jJeiI-Ff.mjs → NcTimezonePicker-WyBb1HGy.mjs} +2 -2
- package/dist/chunks/{NcTimezonePicker-jJeiI-Ff.mjs.map → NcTimezonePicker-WyBb1HGy.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-9StjszDh.mjs → NcUserBubble-GvPAfzyX.mjs} +2 -2
- package/dist/chunks/{NcUserBubble-9StjszDh.mjs.map → NcUserBubble-GvPAfzyX.mjs.map} +1 -1
- package/dist/chunks/{NcUserBubble-027_C0cM.cjs → NcUserBubble-dk-rgek6.cjs} +1 -1
- package/dist/chunks/{NcUserBubble-027_C0cM.cjs.map → NcUserBubble-dk-rgek6.cjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-pRUzQidI.mjs → NcUserStatusIcon-Y1esUu9e.mjs} +1 -1
- package/dist/chunks/{NcUserStatusIcon-pRUzQidI.mjs.map → NcUserStatusIcon-Y1esUu9e.mjs.map} +1 -1
- package/dist/chunks/{NcUserStatusIcon-79RsINrv.cjs → NcUserStatusIcon-vElqf2Lx.cjs} +1 -1
- package/dist/chunks/{NcUserStatusIcon-79RsINrv.cjs.map → NcUserStatusIcon-vElqf2Lx.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-R0tAsT2f.cjs → ScopeComponent-Cswoc9a6.cjs} +1 -1
- package/dist/chunks/{ScopeComponent-R0tAsT2f.cjs.map → ScopeComponent-Cswoc9a6.cjs.map} +1 -1
- package/dist/chunks/{ScopeComponent-9fOoDGYa.mjs → ScopeComponent-_g3nK3Vt.mjs} +1 -1
- package/dist/chunks/{ScopeComponent-9fOoDGYa.mjs.map → ScopeComponent-_g3nK3Vt.mjs.map} +1 -1
- package/dist/chunks/_l10n-AmjncLyn.cjs +64 -0
- package/dist/chunks/_l10n-AmjncLyn.cjs.map +1 -0
- package/dist/chunks/_l10n-Y2fvkVoK.mjs +66 -0
- package/dist/chunks/_l10n-Y2fvkVoK.mjs.map +1 -0
- package/dist/chunks/autolink-gVCgJtXh.cjs +55 -0
- package/dist/chunks/autolink-gVCgJtXh.cjs.map +1 -0
- package/dist/chunks/autolink-oKM43mOC.mjs +59 -0
- package/dist/chunks/autolink-oKM43mOC.mjs.map +1 -0
- package/dist/chunks/{index-xnq0-IMW.mjs → index-05Rfhge1.mjs} +1 -1
- package/dist/chunks/index-05Rfhge1.mjs.map +1 -0
- package/dist/chunks/{index-5TyVc_TT.cjs → index-XRGLuo0a.cjs} +1 -1
- package/dist/chunks/index-XRGLuo0a.cjs.map +1 -0
- package/dist/chunks/{referencePickerModal-gDBkGfNV.mjs → referencePickerModal-TxU49swn.mjs} +474 -528
- package/dist/chunks/referencePickerModal-TxU49swn.mjs.map +1 -0
- package/dist/chunks/{referencePickerModal-cPBjsn4r.cjs → referencePickerModal-bKXpgb2c.cjs} +464 -517
- package/dist/chunks/referencePickerModal-bKXpgb2c.cjs.map +1 -0
- package/dist/chunks/{usernameToColor-D5bplyWJ.cjs → usernameToColor-AinK73Yf.cjs} +1 -1
- package/dist/chunks/{usernameToColor-D5bplyWJ.cjs.map → usernameToColor-AinK73Yf.cjs.map} +1 -1
- package/dist/chunks/{usernameToColor-xm3MLiw4.mjs → usernameToColor-CgFQ3CLQ.mjs} +1 -1
- package/dist/chunks/{usernameToColor-xm3MLiw4.mjs.map → usernameToColor-CgFQ3CLQ.mjs.map} +1 -1
- package/dist/index.cjs +125 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +231 -228
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -6
- package/dist/assets/NcAppNavigationSpacer-MfL8GeCN.css +0 -5
- package/dist/chunks/NcActions-5_igU-CH.mjs.map +0 -1
- package/dist/chunks/NcActions-JXnhQhum.cjs.map +0 -1
- package/dist/chunks/NcAppNavigation-U6yaDk7k.cjs.map +0 -1
- package/dist/chunks/NcAppNavigation-n6P3oVZv.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationCaption-2rUO5Mns.mjs +0 -47
- package/dist/chunks/NcAppNavigationCaption-2rUO5Mns.mjs.map +0 -1
- package/dist/chunks/NcAppNavigationCaption-JQWbmgdy.cjs +0 -44
- package/dist/chunks/NcAppNavigationCaption-JQWbmgdy.cjs.map +0 -1
- package/dist/chunks/NcAppSidebar-rRNJnN-k.cjs.map +0 -1
- package/dist/chunks/NcAppSidebar-tnHBPGbL.mjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-kOW4T17e.cjs.map +0 -1
- package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-rJ3UZLGm.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-rPobPO3M.mjs.map +0 -1
- package/dist/chunks/NcColorPicker-yr9Pfeem.cjs.map +0 -1
- package/dist/chunks/NcDashboardWidgetItem-mIPkPR7r.cjs.map +0 -1
- package/dist/chunks/NcDashboardWidgetItem-wuUHTeLl.mjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-O0EAGlkS.mjs.map +0 -1
- package/dist/chunks/NcEmojiPicker-xzt2RvDK.cjs.map +0 -1
- package/dist/chunks/NcIconSvgWrapper-R7a7dIg4.cjs.map +0 -1
- package/dist/chunks/NcIconSvgWrapper-n3MnAe1S.mjs.map +0 -1
- package/dist/chunks/NcPopover-T4GMXmKV.mjs.map +0 -1
- package/dist/chunks/NcPopover-judBGW5r.cjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-EDvgZgjQ.mjs.map +0 -1
- package/dist/chunks/NcRelatedResourcesPanel-f2UeB_6X.cjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-eG8Fyo-M.mjs.map +0 -1
- package/dist/chunks/NcRichContenteditable-jReu2l-M.cjs.map +0 -1
- package/dist/chunks/_l10n-FmsZpnE4.mjs +0 -66
- package/dist/chunks/_l10n-FmsZpnE4.mjs.map +0 -1
- package/dist/chunks/_l10n-Od-4xzJA.cjs +0 -64
- package/dist/chunks/_l10n-Od-4xzJA.cjs.map +0 -1
- package/dist/chunks/index-5TyVc_TT.cjs.map +0 -1
- package/dist/chunks/index-xnq0-IMW.mjs.map +0 -1
- package/dist/chunks/referencePickerModal-cPBjsn4r.cjs.map +0 -1
- package/dist/chunks/referencePickerModal-gDBkGfNV.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NcActions-iACO4laf.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,UAA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A,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,19 +1,19 @@
|
|
|
1
|
-
import '../assets/NcActions-
|
|
2
|
-
import
|
|
3
|
-
import { N as
|
|
4
|
-
import { G as
|
|
5
|
-
import { g as
|
|
6
|
-
import { r as
|
|
7
|
-
import
|
|
8
|
-
import { D as
|
|
9
|
-
import { n as
|
|
10
|
-
|
|
11
|
-
const
|
|
1
|
+
import '../assets/NcActions-mt8BQ_bn.css';
|
|
2
|
+
import F from "../Components/NcButton.mjs";
|
|
3
|
+
import { N as k } from "./NcPopover-93ns_0K4.mjs";
|
|
4
|
+
import { G as M } from "./GenRandomId-VodkdWbp.mjs";
|
|
5
|
+
import { g as S } from "./focusTrap-Py2bQ9-r.mjs";
|
|
6
|
+
import { r as $, o as E, a as B } from "./_l10n-Y2fvkVoK.mjs";
|
|
7
|
+
import O, { computed as R } from "vue";
|
|
8
|
+
import { D as L } from "./DotsHorizontal-IbmXTXRA.mjs";
|
|
9
|
+
import { n as _ } from "./_plugin-vue2_normalizer-u6G_3nkj.mjs";
|
|
10
|
+
$(E);
|
|
11
|
+
const m = ".focusable", D = {
|
|
12
12
|
name: "NcActions",
|
|
13
13
|
components: {
|
|
14
|
-
NcButton:
|
|
15
|
-
DotsHorizontal:
|
|
16
|
-
NcPopover:
|
|
14
|
+
NcButton: F,
|
|
15
|
+
DotsHorizontal: L,
|
|
16
|
+
NcPopover: k
|
|
17
17
|
},
|
|
18
18
|
provide() {
|
|
19
19
|
return {
|
|
@@ -26,7 +26,7 @@ const c = ".focusable", P = {
|
|
|
26
26
|
* Provide the role for NcAction* components in the NcActions content.
|
|
27
27
|
* @type {import('vue').ComputedRef<boolean>}
|
|
28
28
|
*/
|
|
29
|
-
"NcActions:isSemanticMenu":
|
|
29
|
+
"NcActions:isSemanticMenu": R(() => this.actionsMenuSemanticType === "menu")
|
|
30
30
|
};
|
|
31
31
|
},
|
|
32
32
|
props: {
|
|
@@ -105,7 +105,7 @@ const c = ".focusable", P = {
|
|
|
105
105
|
*/
|
|
106
106
|
ariaLabel: {
|
|
107
107
|
type: String,
|
|
108
|
-
default:
|
|
108
|
+
default: B("Actions")
|
|
109
109
|
},
|
|
110
110
|
/**
|
|
111
111
|
* @deprecated To be removed in @nextcloud/vue 9. Migration guide: remove ariaHidden prop from NcAction* components.
|
|
@@ -165,11 +165,11 @@ const c = ".focusable", P = {
|
|
|
165
165
|
return {
|
|
166
166
|
opened: this.open,
|
|
167
167
|
focusIndex: 0,
|
|
168
|
-
randomId: `menu-${
|
|
168
|
+
randomId: `menu-${M()}`,
|
|
169
169
|
/**
|
|
170
|
-
* @type {'menu'|'navigation'|'dialog'|'tooltip'|''}
|
|
170
|
+
* @type {'menu'|'navigation'|'dialog'|'tooltip'|'unknown'}
|
|
171
171
|
*/
|
|
172
|
-
actionsMenuSemanticType: "",
|
|
172
|
+
actionsMenuSemanticType: "unknown",
|
|
173
173
|
externalFocusTrapStack: []
|
|
174
174
|
};
|
|
175
175
|
},
|
|
@@ -177,8 +177,48 @@ const c = ".focusable", P = {
|
|
|
177
177
|
triggerBtnType() {
|
|
178
178
|
return this.type || (this.primary ? "primary" : this.menuName ? "secondary" : "tertiary");
|
|
179
179
|
},
|
|
180
|
+
/**
|
|
181
|
+
* A11y roles and keyboard navigation configuration depending on the semantic type
|
|
182
|
+
*/
|
|
183
|
+
config() {
|
|
184
|
+
return {
|
|
185
|
+
menu: {
|
|
186
|
+
popupRole: "menu",
|
|
187
|
+
withArrowNavigation: !0,
|
|
188
|
+
withTabNavigation: !1,
|
|
189
|
+
withFocusTrap: !1
|
|
190
|
+
},
|
|
191
|
+
navigation: {
|
|
192
|
+
popupRole: void 0,
|
|
193
|
+
withArrowNavigation: !1,
|
|
194
|
+
withTabNavigation: !0,
|
|
195
|
+
withFocusTrap: !1
|
|
196
|
+
},
|
|
197
|
+
dialog: {
|
|
198
|
+
popupRole: "dialog",
|
|
199
|
+
withArrowNavigation: !1,
|
|
200
|
+
withTabNavigation: !0,
|
|
201
|
+
withFocusTrap: !0
|
|
202
|
+
},
|
|
203
|
+
tooltip: {
|
|
204
|
+
popupRole: void 0,
|
|
205
|
+
withArrowNavigation: !1,
|
|
206
|
+
withTabNavigation: !1,
|
|
207
|
+
withFocusTrap: !1
|
|
208
|
+
},
|
|
209
|
+
// Due to Vue limitations, we sometimes cannot determine the true type
|
|
210
|
+
// As a fallback use both arrow navigation and focus trap
|
|
211
|
+
unknown: {
|
|
212
|
+
popupRole: void 0,
|
|
213
|
+
role: void 0,
|
|
214
|
+
withArrowNavigation: !0,
|
|
215
|
+
withTabNavigation: !1,
|
|
216
|
+
withFocusTrap: !0
|
|
217
|
+
}
|
|
218
|
+
}[this.actionsMenuSemanticType];
|
|
219
|
+
},
|
|
180
220
|
withFocusTrap() {
|
|
181
|
-
return this.
|
|
221
|
+
return this.config.withFocusTrap;
|
|
182
222
|
}
|
|
183
223
|
},
|
|
184
224
|
watch: {
|
|
@@ -210,9 +250,9 @@ const c = ".focusable", P = {
|
|
|
210
250
|
* We need to pause all the focus traps for opening popover and then unpause them back after closing.
|
|
211
251
|
*/
|
|
212
252
|
intersectIntoCurrentFocusTrapStack() {
|
|
213
|
-
if (!this.withFocusTrap)
|
|
253
|
+
if (!this.config.withFocusTrap)
|
|
214
254
|
if (this.opened) {
|
|
215
|
-
this.externalFocusTrapStack = [...
|
|
255
|
+
this.externalFocusTrapStack = [...S()];
|
|
216
256
|
for (const t of this.externalFocusTrapStack)
|
|
217
257
|
t.pause();
|
|
218
258
|
} else {
|
|
@@ -255,19 +295,34 @@ const c = ".focusable", P = {
|
|
|
255
295
|
});
|
|
256
296
|
},
|
|
257
297
|
// MENU KEYS & FOCUS MANAGEMENT
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
298
|
+
/**
|
|
299
|
+
* @return {HTMLElement|null}
|
|
300
|
+
*/
|
|
301
|
+
getCurrentActiveMenuItemElement() {
|
|
302
|
+
return this.$refs.menu.querySelector("li.active");
|
|
303
|
+
},
|
|
304
|
+
/**
|
|
305
|
+
* @return {NodeListOf<HTMLElement>}
|
|
306
|
+
*/
|
|
307
|
+
getFocusableMenuItemElements() {
|
|
308
|
+
return this.$refs.menu.querySelectorAll(m);
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* Focus nearest focusable item on mouse move.
|
|
312
|
+
* DO NOT change the focus if the target is already focused
|
|
313
|
+
* this will prevent issues with input being unfocused
|
|
314
|
+
* on mouse move
|
|
315
|
+
* @param {PointerEvent} event - The mouse move event
|
|
316
|
+
*/
|
|
262
317
|
onMouseFocusAction(t) {
|
|
263
318
|
if (document.activeElement === t.target)
|
|
264
319
|
return;
|
|
265
320
|
const n = t.target.closest("li");
|
|
266
321
|
if (n && this.$refs.menu.contains(n)) {
|
|
267
|
-
const i = n.querySelector(
|
|
322
|
+
const i = n.querySelector(m);
|
|
268
323
|
if (i) {
|
|
269
|
-
const
|
|
270
|
-
|
|
324
|
+
const s = [...this.getFocusableMenuItemElements()].indexOf(i);
|
|
325
|
+
s > -1 && (this.focusIndex = s, this.focusAction());
|
|
271
326
|
}
|
|
272
327
|
}
|
|
273
328
|
},
|
|
@@ -277,14 +332,32 @@ const c = ".focusable", P = {
|
|
|
277
332
|
* @param {object} event The keydown event
|
|
278
333
|
*/
|
|
279
334
|
onKeydown(t) {
|
|
280
|
-
|
|
335
|
+
if (t.key === "Tab") {
|
|
336
|
+
if (this.config.withFocusTrap)
|
|
337
|
+
return;
|
|
338
|
+
if (!this.config.withTabNavigation) {
|
|
339
|
+
this.closeMenu(!0);
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
t.preventDefault();
|
|
343
|
+
const n = this.getFocusableMenuItemElements(), i = [...n].indexOf(document.activeElement);
|
|
344
|
+
if (i === -1)
|
|
345
|
+
return;
|
|
346
|
+
const o = t.shiftKey ? i - 1 : i + 1;
|
|
347
|
+
(o < 0 || o === n.length) && this.closeMenu(!0), this.focusIndex = o, this.focusAction();
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
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());
|
|
351
|
+
},
|
|
352
|
+
onTriggerKeydown(t) {
|
|
353
|
+
t.key === "Escape" && this.actionsMenuSemanticType === "tooltip" && this.closeMenu();
|
|
281
354
|
},
|
|
282
355
|
removeCurrentActive() {
|
|
283
356
|
const t = this.$refs.menu.querySelector("li.active");
|
|
284
357
|
t && t.classList.remove("active");
|
|
285
358
|
},
|
|
286
359
|
focusAction() {
|
|
287
|
-
const t = this
|
|
360
|
+
const t = this.getFocusableMenuItemElements()[this.focusIndex];
|
|
288
361
|
if (t) {
|
|
289
362
|
this.removeCurrentActive();
|
|
290
363
|
const n = t.closest("li.action");
|
|
@@ -296,19 +369,19 @@ const c = ".focusable", P = {
|
|
|
296
369
|
},
|
|
297
370
|
focusNextAction(t) {
|
|
298
371
|
if (this.opened) {
|
|
299
|
-
const n = this
|
|
372
|
+
const n = this.getFocusableMenuItemElements().length - 1;
|
|
300
373
|
this.focusIndex === n ? this.focusFirstAction(t) : (this.preventIfEvent(t), this.focusIndex = this.focusIndex + 1), this.focusAction();
|
|
301
374
|
}
|
|
302
375
|
},
|
|
303
376
|
focusFirstAction(t) {
|
|
304
377
|
if (this.opened) {
|
|
305
378
|
this.preventIfEvent(t);
|
|
306
|
-
const n = [...this
|
|
379
|
+
const n = [...this.getFocusableMenuItemElements()].findIndex((i) => i.getAttribute("aria-checked") === "true" && i.getAttribute("role") === "menuitemradio");
|
|
307
380
|
this.focusIndex = n > -1 ? n : 0, this.focusAction();
|
|
308
381
|
}
|
|
309
382
|
},
|
|
310
383
|
focusLastAction(t) {
|
|
311
|
-
this.opened && (this.preventIfEvent(t), this.focusIndex = this
|
|
384
|
+
this.opened && (this.preventIfEvent(t), this.focusIndex = this.getFocusableMenuItemElements().length - 1, this.focusAction());
|
|
312
385
|
},
|
|
313
386
|
preventIfEvent(t) {
|
|
314
387
|
t && (t.preventDefault(), t.stopPropagation());
|
|
@@ -317,7 +390,7 @@ const c = ".focusable", P = {
|
|
|
317
390
|
this.$emit("focus", t);
|
|
318
391
|
},
|
|
319
392
|
onBlur(t) {
|
|
320
|
-
this.$emit("blur", t), this.actionsMenuSemanticType === "tooltip" && this.$refs.menu && this
|
|
393
|
+
this.$emit("blur", t), this.actionsMenuSemanticType === "tooltip" && this.$refs.menu && this.getFocusableMenuItemElements().length === 0 && this.closeMenu(!1);
|
|
321
394
|
},
|
|
322
395
|
onClick(t) {
|
|
323
396
|
this.$emit("click", t);
|
|
@@ -334,20 +407,15 @@ const c = ".focusable", P = {
|
|
|
334
407
|
if (n.length === 0)
|
|
335
408
|
return;
|
|
336
409
|
let i = n.filter(this.isValidSingleAction);
|
|
337
|
-
this.forceMenu && i.length > 0 && this.inline > 0 && (
|
|
338
|
-
const
|
|
339
|
-
|
|
340
|
-
const
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
const s = e?.componentOptions?.propsData?.icon, T = e?.data?.scopedSlots?.icon()?.[0] ?? (this.isIconUrl(s) ? t("img", { class: "action-item__menutoggle__icon", attrs: { src: s, alt: "" } }) : t("span", { class: ["icon", s] })), b = e?.data?.attrs || {}, u = e?.componentOptions?.listeners?.click, p = e?.componentOptions?.children?.[0]?.text?.trim?.(), N = e?.componentOptions?.propsData?.ariaLabel || p, m = this.forceName ? p : "";
|
|
347
|
-
let f = e?.componentOptions?.propsData?.title;
|
|
348
|
-
this.forceName || f || (f = p);
|
|
349
|
-
const r = { ...e?.componentOptions?.propsData ?? {} }, k = ["submit", "reset"].includes(r.type) ? r.modelValue : "button";
|
|
350
|
-
return delete r.modelValue, delete r.type, t(
|
|
410
|
+
this.forceMenu && i.length > 0 && this.inline > 0 && (O.util.warn("Specifying forceMenu will ignore any inline actions rendering."), i = []);
|
|
411
|
+
const o = i.slice(0, this.inline), s = n.filter((e) => !o.includes(e)), g = ["NcActionButton", "NcActionButtonGroup", "NcActionCheckbox", "NcActionRadio"], y = ["NcActionInput", "NcActionTextEditable"], A = ["NcActionLink", "NcActionRouter"], b = s.some((e) => y.includes(this.getActionName(e))), w = s.some((e) => g.includes(this.getActionName(e))), I = s.some((e) => A.includes(this.getActionName(e)));
|
|
412
|
+
b ? this.actionsMenuSemanticType = "dialog" : w ? this.actionsMenuSemanticType = "menu" : I ? this.actionsMenuSemanticType = "navigation" : n.filter((c) => this.getActionName(c).startsWith("NcAction")).length === n.length ? this.actionsMenuSemanticType = "tooltip" : this.actionsMenuSemanticType = "unknown";
|
|
413
|
+
const f = (e) => {
|
|
414
|
+
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] })), T = e?.data?.attrs || {}, u = e?.componentOptions?.listeners?.click, l = e?.componentOptions?.children?.[0]?.text?.trim?.(), N = e?.componentOptions?.propsData?.ariaLabel || l, d = this.forceName ? l : "";
|
|
415
|
+
let p = e?.componentOptions?.propsData?.title;
|
|
416
|
+
this.forceName || p || (p = l);
|
|
417
|
+
const a = { ...e?.componentOptions?.propsData ?? {} }, v = ["submit", "reset"].includes(a.type) ? a.modelValue : "button";
|
|
418
|
+
return delete a.modelValue, delete a.type, t(
|
|
351
419
|
"NcButton",
|
|
352
420
|
{
|
|
353
421
|
class: [
|
|
@@ -356,18 +424,18 @@ const c = ".focusable", P = {
|
|
|
356
424
|
e?.data?.class
|
|
357
425
|
],
|
|
358
426
|
attrs: {
|
|
359
|
-
...
|
|
427
|
+
...T,
|
|
360
428
|
"aria-label": N,
|
|
361
|
-
title:
|
|
429
|
+
title: p
|
|
362
430
|
},
|
|
363
431
|
ref: e?.data?.ref,
|
|
364
432
|
props: {
|
|
365
433
|
// If it has a menuName, we use a secondary button
|
|
366
|
-
type: this.type || (
|
|
434
|
+
type: this.type || (d ? "secondary" : "tertiary"),
|
|
367
435
|
disabled: this.disabled || e?.componentOptions?.propsData?.disabled,
|
|
368
436
|
pressed: e?.componentOptions?.propsData?.modelValue,
|
|
369
|
-
nativeType:
|
|
370
|
-
...
|
|
437
|
+
nativeType: v,
|
|
438
|
+
...a
|
|
371
439
|
},
|
|
372
440
|
on: {
|
|
373
441
|
focus: this.onFocus,
|
|
@@ -378,23 +446,23 @@ const c = ".focusable", P = {
|
|
|
378
446
|
// If we have a click listener,
|
|
379
447
|
// we bind it to execute on click and forward the click event
|
|
380
448
|
...!!u && {
|
|
381
|
-
click: (
|
|
382
|
-
u && u(
|
|
449
|
+
click: (x) => {
|
|
450
|
+
u && u(x);
|
|
383
451
|
}
|
|
384
452
|
}
|
|
385
453
|
}
|
|
386
454
|
},
|
|
387
455
|
[
|
|
388
|
-
t("template", { slot: "icon" }, [
|
|
389
|
-
|
|
456
|
+
t("template", { slot: "icon" }, [r]),
|
|
457
|
+
d
|
|
390
458
|
]
|
|
391
459
|
);
|
|
392
460
|
}, h = (e) => {
|
|
393
|
-
const
|
|
461
|
+
const c = this.$slots.icon?.[0] || (this.defaultIcon ? t("span", { class: ["icon", this.defaultIcon] }) : t("DotsHorizontal", {
|
|
394
462
|
props: {
|
|
395
463
|
size: 20
|
|
396
464
|
}
|
|
397
|
-
}))
|
|
465
|
+
})), r = `${this.randomId}-trigger`;
|
|
398
466
|
return t(
|
|
399
467
|
"NcPopover",
|
|
400
468
|
{
|
|
@@ -407,9 +475,9 @@ const c = ".focusable", P = {
|
|
|
407
475
|
boundary: this.boundariesElement,
|
|
408
476
|
container: this.container,
|
|
409
477
|
popoverBaseClass: "action-item__popper",
|
|
410
|
-
popupRole:
|
|
411
|
-
setReturnFocus: this.withFocusTrap ? this.$refs.menuButton?.$el : null,
|
|
412
|
-
focusTrap: this.withFocusTrap
|
|
478
|
+
popupRole: this.config.popupRole,
|
|
479
|
+
setReturnFocus: this.config.withFocusTrap ? this.$refs.menuButton?.$el : null,
|
|
480
|
+
focusTrap: this.config.withFocusTrap
|
|
413
481
|
},
|
|
414
482
|
// For some reason the popover component
|
|
415
483
|
// does not react to props given under the 'props' key,
|
|
@@ -439,16 +507,19 @@ const c = ".focusable", P = {
|
|
|
439
507
|
slot: "trigger",
|
|
440
508
|
ref: "menuButton",
|
|
441
509
|
attrs: {
|
|
510
|
+
id: r,
|
|
442
511
|
"aria-label": this.menuName ? null : this.ariaLabel,
|
|
443
|
-
|
|
512
|
+
// 'aria-controls' should only present together with a valid aria-haspopup
|
|
513
|
+
"aria-controls": this.opened && this.config.popupRole ? this.randomId : null
|
|
444
514
|
},
|
|
445
515
|
on: {
|
|
446
516
|
focus: this.onFocus,
|
|
447
517
|
blur: this.onBlur,
|
|
448
|
-
click: this.onClick
|
|
518
|
+
click: this.onClick,
|
|
519
|
+
keydown: this.onTriggerKeydown
|
|
449
520
|
}
|
|
450
521
|
}, [
|
|
451
|
-
t("template", { slot: "icon" }, [
|
|
522
|
+
t("template", { slot: "icon" }, [c]),
|
|
452
523
|
this.menuName
|
|
453
524
|
]),
|
|
454
525
|
t("div", {
|
|
@@ -468,8 +539,10 @@ const c = ".focusable", P = {
|
|
|
468
539
|
attrs: {
|
|
469
540
|
id: this.randomId,
|
|
470
541
|
tabindex: "-1",
|
|
471
|
-
role:
|
|
472
|
-
//
|
|
542
|
+
role: this.config.popupRole,
|
|
543
|
+
// Dialog must have a label
|
|
544
|
+
"aria-labelledby": this.actionsMenuSemanticType === "dialog" ? r : void 0,
|
|
545
|
+
"aria-modal": this.actionsMenuSemanticType === "dialog" ? "true" : void 0
|
|
473
546
|
}
|
|
474
547
|
}, [
|
|
475
548
|
e
|
|
@@ -478,9 +551,9 @@ const c = ".focusable", P = {
|
|
|
478
551
|
]
|
|
479
552
|
);
|
|
480
553
|
};
|
|
481
|
-
return n.length === 1 && i.length === 1 && !this.forceMenu ?
|
|
554
|
+
return n.length === 1 && i.length === 1 && !this.forceMenu ? f(n[0]) : (this.$nextTick(() => {
|
|
482
555
|
this.opened && this.$refs.menu && (this.$refs.menu.querySelector("li.active") || []).length === 0 && this.focusFirstAction();
|
|
483
|
-
}),
|
|
556
|
+
}), o.length > 0 && this.inline > 0 ? t(
|
|
484
557
|
"div",
|
|
485
558
|
{
|
|
486
559
|
class: [
|
|
@@ -490,9 +563,9 @@ const c = ".focusable", P = {
|
|
|
490
563
|
},
|
|
491
564
|
[
|
|
492
565
|
// Render inline actions
|
|
493
|
-
...
|
|
566
|
+
...o.map(f),
|
|
494
567
|
// render the rest within the popover menu
|
|
495
|
-
|
|
568
|
+
s.length > 0 ? t(
|
|
496
569
|
"div",
|
|
497
570
|
{
|
|
498
571
|
class: [
|
|
@@ -503,7 +576,7 @@ const c = ".focusable", P = {
|
|
|
503
576
|
]
|
|
504
577
|
},
|
|
505
578
|
[
|
|
506
|
-
h(
|
|
579
|
+
h(s)
|
|
507
580
|
]
|
|
508
581
|
) : null
|
|
509
582
|
]
|
|
@@ -523,18 +596,18 @@ const c = ".focusable", P = {
|
|
|
523
596
|
]
|
|
524
597
|
));
|
|
525
598
|
}
|
|
526
|
-
}, C = null,
|
|
527
|
-
var V = /* @__PURE__ */
|
|
528
|
-
|
|
599
|
+
}, C = null, P = null;
|
|
600
|
+
var V = /* @__PURE__ */ _(
|
|
601
|
+
D,
|
|
529
602
|
C,
|
|
530
|
-
|
|
603
|
+
P,
|
|
531
604
|
!1,
|
|
532
605
|
null,
|
|
533
|
-
"
|
|
606
|
+
"4131bd38",
|
|
534
607
|
null,
|
|
535
608
|
null
|
|
536
609
|
);
|
|
537
|
-
const
|
|
610
|
+
const J = V.exports;
|
|
538
611
|
export {
|
|
539
|
-
|
|
612
|
+
J as N
|
|
540
613
|
};
|