@nextcloud/vue 8.29.2 → 8.30.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.
Files changed (252) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/Components/NcActionButton.cjs +1 -1
  3. package/dist/Components/NcActionButton.mjs +1 -1
  4. package/dist/Components/NcActionInput.cjs +1 -1
  5. package/dist/Components/NcActionInput.mjs +1 -1
  6. package/dist/Components/NcActionTextEditable.cjs +1 -1
  7. package/dist/Components/NcActionTextEditable.mjs +1 -1
  8. package/dist/Components/NcActions.cjs +1 -1
  9. package/dist/Components/NcActions.mjs +1 -1
  10. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  11. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  12. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  13. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  14. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  15. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  16. package/dist/Components/NcAppSidebar.cjs +1 -1
  17. package/dist/Components/NcAppSidebar.mjs +1 -1
  18. package/dist/Components/NcAssistantButton.cjs +4 -0
  19. package/dist/Components/NcAssistantButton.cjs.map +1 -0
  20. package/dist/Components/NcAssistantButton.mjs +5 -0
  21. package/dist/Components/NcAssistantButton.mjs.map +1 -0
  22. package/dist/Components/NcAssistantContent.cjs +50 -0
  23. package/dist/Components/NcAssistantContent.cjs.map +1 -0
  24. package/dist/Components/NcAssistantContent.mjs +51 -0
  25. package/dist/Components/NcAssistantContent.mjs.map +1 -0
  26. package/dist/Components/NcAssistantIcon.cjs +4 -0
  27. package/dist/Components/NcAssistantIcon.cjs.map +1 -0
  28. package/dist/Components/NcAssistantIcon.mjs +5 -0
  29. package/dist/Components/NcAssistantIcon.mjs.map +1 -0
  30. package/dist/Components/NcAvatar.cjs +1 -1
  31. package/dist/Components/NcAvatar.mjs +1 -1
  32. package/dist/Components/NcBreadcrumb.cjs +1 -1
  33. package/dist/Components/NcBreadcrumb.mjs +1 -1
  34. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  35. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  36. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  37. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  38. package/dist/Components/NcChip.cjs +3 -3
  39. package/dist/Components/NcChip.mjs +3 -3
  40. package/dist/Components/NcCollectionList.cjs +1 -1
  41. package/dist/Components/NcCollectionList.mjs +1 -1
  42. package/dist/Components/NcColorPicker.cjs +1 -1
  43. package/dist/Components/NcColorPicker.mjs +1 -1
  44. package/dist/Components/NcDashboardWidget.cjs +1 -1
  45. package/dist/Components/NcDashboardWidget.mjs +1 -1
  46. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  47. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  48. package/dist/Components/NcDateTimePicker.cjs +4 -4
  49. package/dist/Components/NcDateTimePicker.mjs +4 -4
  50. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  51. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  52. package/dist/Components/NcEmojiPicker.cjs +1 -1
  53. package/dist/Components/NcEmojiPicker.mjs +1 -1
  54. package/dist/Components/NcListItem.cjs +1 -1
  55. package/dist/Components/NcListItem.mjs +1 -1
  56. package/dist/Components/NcListItemIcon.cjs +1 -1
  57. package/dist/Components/NcListItemIcon.mjs +1 -1
  58. package/dist/Components/NcModal.cjs +3 -3
  59. package/dist/Components/NcModal.mjs +3 -3
  60. package/dist/Components/NcPopover.cjs +1 -1
  61. package/dist/Components/NcPopover.mjs +1 -1
  62. package/dist/Components/NcRichContenteditable.cjs +1 -1
  63. package/dist/Components/NcRichContenteditable.mjs +1 -1
  64. package/dist/Components/NcRichText.cjs +10 -10
  65. package/dist/Components/NcRichText.mjs +10 -10
  66. package/dist/Components/NcSelect.cjs +1 -1
  67. package/dist/Components/NcSelect.mjs +1 -1
  68. package/dist/Components/NcSelectTags.cjs +1 -1
  69. package/dist/Components/NcSelectTags.mjs +1 -1
  70. package/dist/Components/NcSelectUsers.cjs +1 -1
  71. package/dist/Components/NcSelectUsers.mjs +1 -1
  72. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  73. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  74. package/dist/Components/NcTextField.cjs +1 -1
  75. package/dist/Components/NcTextField.mjs +1 -1
  76. package/dist/Components/NcTimezonePicker.cjs +1 -1
  77. package/dist/Components/NcTimezonePicker.mjs +1 -1
  78. package/dist/Components/NcUserBubble.cjs +1 -1
  79. package/dist/Components/NcUserBubble.mjs +1 -1
  80. package/dist/Functions/reference.cjs +10 -10
  81. package/dist/Functions/reference.mjs +7 -7
  82. package/dist/Functions/registerReference.cjs +11 -11
  83. package/dist/Functions/registerReference.mjs +5 -5
  84. package/dist/assets/{NcActions-CXnDIMae.css → NcActions-Bjgv1Dku.css} +11 -11
  85. package/dist/assets/NcAssistantButton-owGSr0s0.css +54 -0
  86. package/dist/assets/NcAssistantContent-Ban7n3Bg.css +31 -0
  87. package/dist/assets/NcAssistantIcon-BFNU0uqH.css +35 -0
  88. package/dist/assets/{NcCheckboxRadioSwitch-DqEP1SPR.css → NcCheckboxRadioSwitch-CC2zuvLL.css} +53 -43
  89. package/dist/assets/{NcDateTimePicker-FNnAz7ls.css → NcDateTimePicker-Ce57VAyL.css} +7 -7
  90. package/dist/assets/{referencePickerModal-BgSz7IyB.css → referencePickerModal-DrvqNTIf.css} +21 -21
  91. package/dist/chunks/{NcActionButton-D_9FsTpM.cjs → NcActionButton-BhSk7AAp.cjs} +2 -2
  92. package/dist/chunks/{NcActionButton-D_9FsTpM.cjs.map → NcActionButton-BhSk7AAp.cjs.map} +1 -1
  93. package/dist/chunks/{NcActionButton-rjMoymt-.mjs → NcActionButton-DC3oAI2L.mjs} +2 -2
  94. package/dist/chunks/{NcActionButton-rjMoymt-.mjs.map → NcActionButton-DC3oAI2L.mjs.map} +1 -1
  95. package/dist/chunks/{NcActionInput-CQ_WEPqQ.mjs → NcActionInput-B5ysJl2S.mjs} +2 -2
  96. package/dist/chunks/{NcActionInput-CQ_WEPqQ.mjs.map → NcActionInput-B5ysJl2S.mjs.map} +1 -1
  97. package/dist/chunks/{NcActionInput-CA9bOHxb.cjs → NcActionInput-DdaafMi8.cjs} +2 -2
  98. package/dist/chunks/{NcActionInput-CA9bOHxb.cjs.map → NcActionInput-DdaafMi8.cjs.map} +1 -1
  99. package/dist/chunks/{NcActionTextEditable-B4g2kszt.cjs → NcActionTextEditable-CTXGUIPM.cjs} +2 -2
  100. package/dist/chunks/{NcActionTextEditable-B4g2kszt.cjs.map → NcActionTextEditable-CTXGUIPM.cjs.map} +1 -1
  101. package/dist/chunks/{NcActionTextEditable-xWQGdOVl.mjs → NcActionTextEditable-CpxJ_LEa.mjs} +2 -2
  102. package/dist/chunks/{NcActionTextEditable-xWQGdOVl.mjs.map → NcActionTextEditable-CpxJ_LEa.mjs.map} +1 -1
  103. package/dist/chunks/{NcActions-B76VN_Gz.cjs → NcActions-DRCkAU8h.cjs} +5 -5
  104. package/dist/chunks/{NcActions-B76VN_Gz.cjs.map → NcActions-DRCkAU8h.cjs.map} +1 -1
  105. package/dist/chunks/{NcActions-BKZA1xVL.mjs → NcActions-DdARGGZ_.mjs} +5 -5
  106. package/dist/chunks/{NcActions-BKZA1xVL.mjs.map → NcActions-DdARGGZ_.mjs.map} +1 -1
  107. package/dist/chunks/{NcAppNavigationCaption-CjOJyYIY.cjs → NcAppNavigationCaption-BpmzZDPj.cjs} +2 -2
  108. package/dist/chunks/{NcAppNavigationCaption-CjOJyYIY.cjs.map → NcAppNavigationCaption-BpmzZDPj.cjs.map} +1 -1
  109. package/dist/chunks/{NcAppNavigationCaption-hDsiQMLr.mjs → NcAppNavigationCaption-O4l8dFkh.mjs} +2 -2
  110. package/dist/chunks/{NcAppNavigationCaption-hDsiQMLr.mjs.map → NcAppNavigationCaption-O4l8dFkh.mjs.map} +1 -1
  111. package/dist/chunks/{NcAppNavigationItem-NIMhmJHh.mjs → NcAppNavigationItem-BFF0p136.mjs} +3 -3
  112. package/dist/chunks/{NcAppNavigationItem-NIMhmJHh.mjs.map → NcAppNavigationItem-BFF0p136.mjs.map} +1 -1
  113. package/dist/chunks/{NcAppNavigationItem-Cu3S2chM.cjs → NcAppNavigationItem-D1CEGuhm.cjs} +3 -3
  114. package/dist/chunks/{NcAppNavigationItem-Cu3S2chM.cjs.map → NcAppNavigationItem-D1CEGuhm.cjs.map} +1 -1
  115. package/dist/chunks/{NcAppNavigationSettings-C8YaW_Kj.cjs → NcAppNavigationSettings-DV5ZnR2s.cjs} +2 -2
  116. package/dist/chunks/{NcAppNavigationSettings-C8YaW_Kj.cjs.map → NcAppNavigationSettings-DV5ZnR2s.cjs.map} +1 -1
  117. package/dist/chunks/{NcAppNavigationSettings-BV34ogWP.mjs → NcAppNavigationSettings-Do0e5oWy.mjs} +2 -2
  118. package/dist/chunks/{NcAppNavigationSettings-BV34ogWP.mjs.map → NcAppNavigationSettings-Do0e5oWy.mjs.map} +1 -1
  119. package/dist/chunks/{NcAppSidebar-BJgPYOcZ.mjs → NcAppSidebar-AR-D7HSj.mjs} +3 -3
  120. package/dist/chunks/{NcAppSidebar-BJgPYOcZ.mjs.map → NcAppSidebar-AR-D7HSj.mjs.map} +1 -1
  121. package/dist/chunks/{NcAppSidebar-Dbvy4M4h.cjs → NcAppSidebar-Cvyq-kN5.cjs} +3 -3
  122. package/dist/chunks/{NcAppSidebar-Dbvy4M4h.cjs.map → NcAppSidebar-Cvyq-kN5.cjs.map} +1 -1
  123. package/dist/chunks/NcAssistantButton-Ck1NUjhl.mjs +97 -0
  124. package/dist/chunks/NcAssistantButton-Ck1NUjhl.mjs.map +1 -0
  125. package/dist/chunks/NcAssistantButton-gD3MKoYS.cjs +96 -0
  126. package/dist/chunks/NcAssistantButton-gD3MKoYS.cjs.map +1 -0
  127. package/dist/chunks/NcAssistantIcon-D_xelcY2.cjs +68 -0
  128. package/dist/chunks/NcAssistantIcon-D_xelcY2.cjs.map +1 -0
  129. package/dist/chunks/NcAssistantIcon-tjSguP9N.mjs +69 -0
  130. package/dist/chunks/NcAssistantIcon-tjSguP9N.mjs.map +1 -0
  131. package/dist/chunks/{NcAvatar-CgF-MFtU.mjs → NcAvatar-BEIBwiA6.mjs} +3 -3
  132. package/dist/chunks/{NcAvatar-CgF-MFtU.mjs.map → NcAvatar-BEIBwiA6.mjs.map} +1 -1
  133. package/dist/chunks/{NcAvatar-DThzrxm-.cjs → NcAvatar-DS1H-VrZ.cjs} +3 -3
  134. package/dist/chunks/{NcAvatar-DThzrxm-.cjs.map → NcAvatar-DS1H-VrZ.cjs.map} +1 -1
  135. package/dist/chunks/{NcBreadcrumb-DJpYjXCe.mjs → NcBreadcrumb-BYYXWaif.mjs} +2 -2
  136. package/dist/chunks/{NcBreadcrumb-DJpYjXCe.mjs.map → NcBreadcrumb-BYYXWaif.mjs.map} +1 -1
  137. package/dist/chunks/{NcBreadcrumb-86ycrDeH.cjs → NcBreadcrumb-HtgcEJgs.cjs} +2 -2
  138. package/dist/chunks/{NcBreadcrumb-86ycrDeH.cjs.map → NcBreadcrumb-HtgcEJgs.cjs.map} +1 -1
  139. package/dist/chunks/{NcBreadcrumbs-CBMTGNxS.cjs → NcBreadcrumbs-CQcnjGJO.cjs} +4 -4
  140. package/dist/chunks/{NcBreadcrumbs-CBMTGNxS.cjs.map → NcBreadcrumbs-CQcnjGJO.cjs.map} +1 -1
  141. package/dist/chunks/{NcBreadcrumbs-B722pBOd.mjs → NcBreadcrumbs-cj5ip2-X.mjs} +4 -4
  142. package/dist/chunks/{NcBreadcrumbs-B722pBOd.mjs.map → NcBreadcrumbs-cj5ip2-X.mjs.map} +1 -1
  143. package/dist/chunks/{NcCheckboxRadioSwitch-kdoDmLpF.cjs → NcCheckboxRadioSwitch-B-lXOnEF.cjs} +37 -8
  144. package/dist/chunks/NcCheckboxRadioSwitch-B-lXOnEF.cjs.map +1 -0
  145. package/dist/chunks/{NcCheckboxRadioSwitch-ip_mRd2T.mjs → NcCheckboxRadioSwitch-DqdNvkCt.mjs} +37 -8
  146. package/dist/chunks/NcCheckboxRadioSwitch-DqdNvkCt.mjs.map +1 -0
  147. package/dist/chunks/{NcCollectionList-Khg3X3Zq.mjs → NcCollectionList-CLv50tJ3.mjs} +5 -5
  148. package/dist/chunks/{NcCollectionList-Khg3X3Zq.mjs.map → NcCollectionList-CLv50tJ3.mjs.map} +1 -1
  149. package/dist/chunks/{NcCollectionList-C-FWulfV.cjs → NcCollectionList-DXNSOjPG.cjs} +5 -5
  150. package/dist/chunks/{NcCollectionList-C-FWulfV.cjs.map → NcCollectionList-DXNSOjPG.cjs.map} +1 -1
  151. package/dist/chunks/{NcColorPicker-MXMbRaLk.mjs → NcColorPicker-52xaYx9k.mjs} +3 -3
  152. package/dist/chunks/{NcColorPicker-MXMbRaLk.mjs.map → NcColorPicker-52xaYx9k.mjs.map} +1 -1
  153. package/dist/chunks/{NcColorPicker-C3lzQVxY.cjs → NcColorPicker-CbiIpVlT.cjs} +3 -3
  154. package/dist/chunks/{NcColorPicker-C3lzQVxY.cjs.map → NcColorPicker-CbiIpVlT.cjs.map} +1 -1
  155. package/dist/chunks/{NcDashboardWidget-D0cFVt4i.mjs → NcDashboardWidget-809lybR1.mjs} +3 -3
  156. package/dist/chunks/{NcDashboardWidget-D0cFVt4i.mjs.map → NcDashboardWidget-809lybR1.mjs.map} +1 -1
  157. package/dist/chunks/{NcDashboardWidget-DD_fZTj6.cjs → NcDashboardWidget-DhJAJn-_.cjs} +3 -3
  158. package/dist/chunks/{NcDashboardWidget-DD_fZTj6.cjs.map → NcDashboardWidget-DhJAJn-_.cjs.map} +1 -1
  159. package/dist/chunks/{NcDashboardWidgetItem-D33MR-DH.mjs → NcDashboardWidgetItem-6JbU9gp1.mjs} +4 -4
  160. package/dist/chunks/{NcDashboardWidgetItem-D33MR-DH.mjs.map → NcDashboardWidgetItem-6JbU9gp1.mjs.map} +1 -1
  161. package/dist/chunks/{NcDashboardWidgetItem-BiH7ivQn.cjs → NcDashboardWidgetItem-CgO8qJUQ.cjs} +4 -4
  162. package/dist/chunks/{NcDashboardWidgetItem-BiH7ivQn.cjs.map → NcDashboardWidgetItem-CgO8qJUQ.cjs.map} +1 -1
  163. package/dist/chunks/{NcEmojiPicker-C2-Q-RoT.cjs → NcEmojiPicker-CdH7bAGd.cjs} +4 -4
  164. package/dist/chunks/{NcEmojiPicker-C2-Q-RoT.cjs.map → NcEmojiPicker-CdH7bAGd.cjs.map} +1 -1
  165. package/dist/chunks/{NcEmojiPicker-DJHvkF--.mjs → NcEmojiPicker-CyZg0bCF.mjs} +4 -4
  166. package/dist/chunks/{NcEmojiPicker-DJHvkF--.mjs.map → NcEmojiPicker-CyZg0bCF.mjs.map} +1 -1
  167. package/dist/chunks/{NcListItem-DV4HPJWQ.cjs → NcListItem-Bx9qm5xC.cjs} +2 -2
  168. package/dist/chunks/{NcListItem-DV4HPJWQ.cjs.map → NcListItem-Bx9qm5xC.cjs.map} +1 -1
  169. package/dist/chunks/{NcListItem-CnxZixD_.mjs → NcListItem-CifyXFmv.mjs} +2 -2
  170. package/dist/chunks/{NcListItem-CnxZixD_.mjs.map → NcListItem-CifyXFmv.mjs.map} +1 -1
  171. package/dist/chunks/{NcListItemIcon-CTfYEjBB.mjs → NcListItemIcon-CZrilo88.mjs} +2 -2
  172. package/dist/chunks/{NcListItemIcon-CTfYEjBB.mjs.map → NcListItemIcon-CZrilo88.mjs.map} +1 -1
  173. package/dist/chunks/{NcListItemIcon-BUthbF_v.cjs → NcListItemIcon-DMhlNuU9.cjs} +2 -2
  174. package/dist/chunks/{NcListItemIcon-BUthbF_v.cjs.map → NcListItemIcon-DMhlNuU9.cjs.map} +1 -1
  175. package/dist/chunks/{NcPopover-QGSKWhSP.cjs → NcPopover-DjeDGPXc.cjs} +21 -6
  176. package/dist/chunks/NcPopover-DjeDGPXc.cjs.map +1 -0
  177. package/dist/chunks/{NcPopover-CAJVK-MR.mjs → NcPopover-DxTXnL3u.mjs} +21 -6
  178. package/dist/chunks/NcPopover-DxTXnL3u.mjs.map +1 -0
  179. package/dist/chunks/{NcRichContenteditable-cpptFUeI.mjs → NcRichContenteditable-CMQnS1Wz.mjs} +6 -6
  180. package/dist/chunks/{NcRichContenteditable-cpptFUeI.mjs.map → NcRichContenteditable-CMQnS1Wz.mjs.map} +1 -1
  181. package/dist/chunks/{NcRichContenteditable-B5-V1mov.cjs → NcRichContenteditable-DtkaJmwG.cjs} +6 -6
  182. package/dist/chunks/{NcRichContenteditable-B5-V1mov.cjs.map → NcRichContenteditable-DtkaJmwG.cjs.map} +1 -1
  183. package/dist/chunks/{NcRichText-DKesJDDM.cjs → NcRichText-7B9lDtoo.cjs} +3 -3
  184. package/dist/chunks/{NcRichText-DKesJDDM.cjs.map → NcRichText-7B9lDtoo.cjs.map} +1 -1
  185. package/dist/chunks/{NcRichText-CmuVmSzl.mjs → NcRichText-MMeidJmP.mjs} +3 -3
  186. package/dist/chunks/{NcRichText-CmuVmSzl.mjs.map → NcRichText-MMeidJmP.mjs.map} +1 -1
  187. package/dist/chunks/{NcSelect-CnLfkqdF.cjs → NcSelect-CrxryIo3.cjs} +2 -2
  188. package/dist/chunks/{NcSelect-CnLfkqdF.cjs.map → NcSelect-CrxryIo3.cjs.map} +1 -1
  189. package/dist/chunks/{NcSelect-BUOuXJUQ.mjs → NcSelect-okD5YTJq.mjs} +2 -2
  190. package/dist/chunks/{NcSelect-BUOuXJUQ.mjs.map → NcSelect-okD5YTJq.mjs.map} +1 -1
  191. package/dist/chunks/{NcSelectTags-hP98xYkg.mjs → NcSelectTags-BPxmiMto.mjs} +2 -2
  192. package/dist/chunks/{NcSelectTags-hP98xYkg.mjs.map → NcSelectTags-BPxmiMto.mjs.map} +1 -1
  193. package/dist/chunks/{NcSelectTags-D9-2HA1H.cjs → NcSelectTags-BZqBdSqC.cjs} +2 -2
  194. package/dist/chunks/{NcSelectTags-D9-2HA1H.cjs.map → NcSelectTags-BZqBdSqC.cjs.map} +1 -1
  195. package/dist/chunks/{NcSelectUsers-arPrkqH_.cjs → NcSelectUsers-CshAjqE_.cjs} +3 -3
  196. package/dist/chunks/{NcSelectUsers-arPrkqH_.cjs.map → NcSelectUsers-CshAjqE_.cjs.map} +1 -1
  197. package/dist/chunks/{NcSelectUsers-DaHVPRPE.mjs → NcSelectUsers-DK3EtvnG.mjs} +3 -3
  198. package/dist/chunks/{NcSelectUsers-DaHVPRPE.mjs.map → NcSelectUsers-DK3EtvnG.mjs.map} +1 -1
  199. package/dist/chunks/{NcSettingsSelectGroup-SuQNKdqU.mjs → NcSettingsSelectGroup-CUUKv6lH.mjs} +2 -2
  200. package/dist/chunks/{NcSettingsSelectGroup-SuQNKdqU.mjs.map → NcSettingsSelectGroup-CUUKv6lH.mjs.map} +1 -1
  201. package/dist/chunks/{NcSettingsSelectGroup-D0s0bzQI.cjs → NcSettingsSelectGroup-Dd04CVAM.cjs} +2 -2
  202. package/dist/chunks/{NcSettingsSelectGroup-D0s0bzQI.cjs.map → NcSettingsSelectGroup-Dd04CVAM.cjs.map} +1 -1
  203. package/dist/chunks/{NcTextField-Dyuxj4yu.cjs → NcTextField-DDJqk3SI.cjs} +2 -2
  204. package/dist/chunks/{NcTextField-Dyuxj4yu.cjs.map → NcTextField-DDJqk3SI.cjs.map} +1 -1
  205. package/dist/chunks/{NcTextField-Do6wBDGH.mjs → NcTextField-eKuP0G6I.mjs} +2 -2
  206. package/dist/chunks/{NcTextField-Do6wBDGH.mjs.map → NcTextField-eKuP0G6I.mjs.map} +1 -1
  207. package/dist/chunks/{NcTimezonePicker-bIwFQlmV.mjs → NcTimezonePicker-BbqblRd7.mjs} +2 -2
  208. package/dist/chunks/{NcTimezonePicker-bIwFQlmV.mjs.map → NcTimezonePicker-BbqblRd7.mjs.map} +1 -1
  209. package/dist/chunks/{NcTimezonePicker-obgDIrK0.cjs → NcTimezonePicker-DV_arh0f.cjs} +2 -2
  210. package/dist/chunks/{NcTimezonePicker-obgDIrK0.cjs.map → NcTimezonePicker-DV_arh0f.cjs.map} +1 -1
  211. package/dist/chunks/{NcUserBubble-BmPOx3MW.mjs → NcUserBubble-C7XtYsrf.mjs} +3 -3
  212. package/dist/chunks/{NcUserBubble-BmPOx3MW.mjs.map → NcUserBubble-C7XtYsrf.mjs.map} +1 -1
  213. package/dist/chunks/{NcUserBubble-BusyVqGW.cjs → NcUserBubble-DuyMsPzl.cjs} +3 -3
  214. package/dist/chunks/{NcUserBubble-BusyVqGW.cjs.map → NcUserBubble-DuyMsPzl.cjs.map} +1 -1
  215. package/dist/chunks/{ScopeComponent-CNZNqO-O.mjs → ScopeComponent-B_NOkzpc.mjs} +2 -2
  216. package/dist/chunks/{ScopeComponent-CNZNqO-O.mjs.map → ScopeComponent-B_NOkzpc.mjs.map} +1 -1
  217. package/dist/chunks/{ScopeComponent-CTlekHht.cjs → ScopeComponent-CbzbU6pi.cjs} +2 -2
  218. package/dist/chunks/{ScopeComponent-CTlekHht.cjs.map → ScopeComponent-CbzbU6pi.cjs.map} +1 -1
  219. package/dist/chunks/{index-56SXuvlv.mjs → customPickerElements-CH9vlHLd.mjs} +47 -46
  220. package/dist/chunks/customPickerElements-CH9vlHLd.mjs.map +1 -0
  221. package/dist/chunks/{index-BV85rPB7.cjs → customPickerElements-Q3Y7fgZ1.cjs} +42 -41
  222. package/dist/chunks/customPickerElements-Q3Y7fgZ1.cjs.map +1 -0
  223. package/dist/chunks/{mdi-B_QN3oas.cjs → mdi-BBwE-MZC.cjs} +3 -1
  224. package/dist/chunks/{mdi-B_QN3oas.cjs.map → mdi-BBwE-MZC.cjs.map} +1 -1
  225. package/dist/chunks/{mdi-DoaiuWye.mjs → mdi-DXu6GWVJ.mjs} +8 -6
  226. package/dist/chunks/{mdi-DoaiuWye.mjs.map → mdi-DXu6GWVJ.mjs.map} +1 -1
  227. package/dist/chunks/{referencePickerModal-CtMUY45l.mjs → referencePickerModal-B2nPzrke.mjs} +45 -51
  228. package/dist/chunks/referencePickerModal-B2nPzrke.mjs.map +1 -0
  229. package/dist/chunks/{referencePickerModal-C1Srl207.cjs → referencePickerModal-BINQW-pL.cjs} +53 -59
  230. package/dist/chunks/referencePickerModal-BINQW-pL.cjs.map +1 -0
  231. package/dist/components/NcAssistantButton/index.d.ts +5 -0
  232. package/dist/components/NcAssistantContent/index.d.ts +5 -0
  233. package/dist/components/NcAssistantIcon/index.d.ts +5 -0
  234. package/dist/functions/reference/customPickerElements.d.ts +56 -0
  235. package/dist/functions/reference/index.d.ts +8 -0
  236. package/dist/functions/reference/providerHelper.d.ts +45 -0
  237. package/dist/functions/reference/referencePickerModal.d.ts +11 -0
  238. package/dist/functions/reference/widgets.d.ts +47 -28
  239. package/dist/functions/registerReference/index.d.ts +6 -0
  240. package/dist/index.cjs +48 -39
  241. package/dist/index.cjs.map +1 -1
  242. package/dist/index.mjs +46 -37
  243. package/dist/index.mjs.map +1 -1
  244. package/package.json +1 -1
  245. package/dist/chunks/NcCheckboxRadioSwitch-ip_mRd2T.mjs.map +0 -1
  246. package/dist/chunks/NcCheckboxRadioSwitch-kdoDmLpF.cjs.map +0 -1
  247. package/dist/chunks/NcPopover-CAJVK-MR.mjs.map +0 -1
  248. package/dist/chunks/NcPopover-QGSKWhSP.cjs.map +0 -1
  249. package/dist/chunks/index-56SXuvlv.mjs.map +0 -1
  250. package/dist/chunks/index-BV85rPB7.cjs.map +0 -1
  251. package/dist/chunks/referencePickerModal-C1Srl207.cjs.map +0 -1
  252. package/dist/chunks/referencePickerModal-CtMUY45l.mjs.map +0 -1
@@ -9,14 +9,14 @@
9
9
  /*
10
10
  * Ensure proper alignment of the vue material icons
11
11
  */
12
- .material-design-icon[data-v-3714b019] {
12
+ .material-design-icon[data-v-6df74cd5] {
13
13
  display: flex;
14
14
  align-self: center;
15
15
  justify-self: center;
16
16
  align-items: center;
17
17
  justify-content: center;
18
18
  }
19
- .checkbox-content[data-v-3714b019] {
19
+ .checkbox-content[data-v-6df74cd5] {
20
20
  display: flex;
21
21
  align-items: center;
22
22
  flex-direction: row;
@@ -28,30 +28,40 @@
28
28
  width: 100%;
29
29
  max-width: fit-content;
30
30
  }
31
- .checkbox-content__text[data-v-3714b019] {
31
+ .checkbox-content__wrapper[data-v-6df74cd5] {
32
32
  flex: 1 0;
33
33
  }
34
- .checkbox-content__text[data-v-3714b019]:empty {
34
+ .checkbox-content__text[data-v-6df74cd5]:empty {
35
35
  display: none;
36
36
  }
37
- .checkbox-content-checkbox:not(.checkbox-content--button-variant) .checkbox-content__icon[data-v-3714b019], .checkbox-content-radio:not(.checkbox-content--button-variant) .checkbox-content__icon[data-v-3714b019], .checkbox-content-switch:not(.checkbox-content--button-variant) .checkbox-content__icon[data-v-3714b019] {
37
+ .checkbox-content-checkbox:not(.checkbox-content--button-variant) .checkbox-content__icon[data-v-6df74cd5], .checkbox-content-radio:not(.checkbox-content--button-variant) .checkbox-content__icon[data-v-6df74cd5], .checkbox-content-switch:not(.checkbox-content--button-variant) .checkbox-content__icon[data-v-6df74cd5] {
38
38
  margin-block: calc((var(--default-clickable-area) - 2 * var(--default-grid-baseline) - var(--icon-height)) / 2) auto;
39
39
  }
40
- .checkbox-content__icon > *[data-v-3714b019] {
40
+ .checkbox-content-checkbox:not(.checkbox-content--button-variant) .checkbox-content__icon--has-description[data-v-6df74cd5], .checkbox-content-radio:not(.checkbox-content--button-variant) .checkbox-content__icon--has-description[data-v-6df74cd5], .checkbox-content-switch:not(.checkbox-content--button-variant) .checkbox-content__icon--has-description[data-v-6df74cd5] {
41
+ display: flex;
42
+ align-items: center;
43
+ margin-block-end: 0;
44
+ align-self: start;
45
+ }
46
+ .checkbox-content__icon > *[data-v-6df74cd5] {
41
47
  width: var(--icon-size);
42
48
  height: var(--icon-height);
43
49
  color: var(--color-primary-element);
44
50
  }
45
- .checkbox-content--button-variant .checkbox-content__icon:not(.checkbox-content__icon--checked) > *[data-v-3714b019] {
51
+ .checkbox-content__description[data-v-6df74cd5] {
52
+ display: block;
53
+ color: var(--color-text-maxcontrast);
54
+ }
55
+ .checkbox-content--button-variant .checkbox-content__icon:not(.checkbox-content__icon--checked) > *[data-v-6df74cd5] {
46
56
  color: var(--color-primary-element);
47
57
  }
48
- .checkbox-content--button-variant .checkbox-content__icon--checked > *[data-v-3714b019] {
58
+ .checkbox-content--button-variant .checkbox-content__icon--checked > *[data-v-6df74cd5] {
49
59
  color: var(--color-primary-element-text);
50
60
  }
51
- .checkbox-content--has-text[data-v-3714b019] {
61
+ .checkbox-content--has-text[data-v-6df74cd5] {
52
62
  padding-right: calc((var(--default-clickable-area) - 16px) / 2);
53
63
  }
54
- .checkbox-content[data-v-3714b019], .checkbox-content *[data-v-3714b019] {
64
+ .checkbox-content[data-v-6df74cd5], .checkbox-content *[data-v-6df74cd5] {
55
65
  cursor: pointer;
56
66
  flex-shrink: 0;
57
67
  }/**
@@ -65,14 +75,14 @@
65
75
  /*
66
76
  * Ensure proper alignment of the vue material icons
67
77
  */
68
- .material-design-icon[data-v-2c897dd5] {
78
+ .material-design-icon[data-v-581c226a] {
69
79
  display: flex;
70
80
  align-self: center;
71
81
  justify-self: center;
72
82
  align-items: center;
73
83
  justify-content: center;
74
84
  }
75
- .checkbox-radio-switch[data-v-2c897dd5] {
85
+ .checkbox-radio-switch[data-v-581c226a] {
76
86
  display: flex;
77
87
  align-items: center;
78
88
  color: var(--color-main-text);
@@ -87,10 +97,10 @@
87
97
  /* Special rules for vertical button groups */
88
98
  /* Special rules for horizontal button groups */
89
99
  }
90
- .checkbox-radio-switch *[data-v-2c897dd5] {
100
+ .checkbox-radio-switch *[data-v-581c226a] {
91
101
  box-sizing: border-box;
92
102
  }
93
- .checkbox-radio-switch__input[data-v-2c897dd5] {
103
+ .checkbox-radio-switch__input[data-v-581c226a] {
94
104
  position: absolute;
95
105
  z-index: -1;
96
106
  opacity: 0 !important;
@@ -98,106 +108,106 @@
98
108
  height: var(--icon-size);
99
109
  margin: 4px calc((var(--default-clickable-area) - 16px) / 2);
100
110
  }
101
- .checkbox-radio-switch__input:focus-visible + .checkbox-radio-switch__content[data-v-2c897dd5], .checkbox-radio-switch__input[data-v-2c897dd5]:focus-visible {
111
+ .checkbox-radio-switch__input:focus-visible + .checkbox-radio-switch__content[data-v-581c226a], .checkbox-radio-switch__input[data-v-581c226a]:focus-visible {
102
112
  outline: 2px solid var(--color-main-text);
103
113
  border-color: var(--color-main-background);
104
114
  outline-offset: -2px;
105
115
  }
106
- .checkbox-radio-switch--disabled .checkbox-radio-switch__content[data-v-2c897dd5] {
116
+ .checkbox-radio-switch--disabled .checkbox-radio-switch__content[data-v-581c226a] {
107
117
  opacity: 0.5;
108
118
  }
109
- .checkbox-radio-switch--disabled .checkbox-radio-switch__content[data-v-2c897dd5] .checkbox-radio-switch__icon > * {
119
+ .checkbox-radio-switch--disabled .checkbox-radio-switch__content[data-v-581c226a] .checkbox-radio-switch__icon > * {
110
120
  color: var(--color-main-text);
111
121
  }
112
- .checkbox-radio-switch--disabled .checkbox-radio-switch__content.checkbox-content[data-v-2c897dd5], .checkbox-radio-switch--disabled .checkbox-radio-switch__content.checkbox-content[data-v-2c897dd5] *:not(a) {
122
+ .checkbox-radio-switch--disabled .checkbox-radio-switch__content.checkbox-content[data-v-581c226a], .checkbox-radio-switch--disabled .checkbox-radio-switch__content.checkbox-content[data-v-581c226a] *:not(a) {
113
123
  cursor: default !important;
114
124
  }
115
- .checkbox-radio-switch:not(.checkbox-radio-switch--disabled, .checkbox-radio-switch--checked):focus-within .checkbox-radio-switch__content[data-v-2c897dd5], .checkbox-radio-switch:not(.checkbox-radio-switch--disabled, .checkbox-radio-switch--checked) .checkbox-radio-switch__content[data-v-2c897dd5]:hover {
125
+ .checkbox-radio-switch:not(.checkbox-radio-switch--disabled, .checkbox-radio-switch--checked):focus-within .checkbox-radio-switch__content[data-v-581c226a], .checkbox-radio-switch:not(.checkbox-radio-switch--disabled, .checkbox-radio-switch--checked) .checkbox-radio-switch__content[data-v-581c226a]:hover {
116
126
  background-color: var(--color-background-hover);
117
127
  }
118
- .checkbox-radio-switch--checked:not(.checkbox-radio-switch--disabled):focus-within .checkbox-radio-switch__content[data-v-2c897dd5], .checkbox-radio-switch--checked:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__content[data-v-2c897dd5]:hover {
128
+ .checkbox-radio-switch--checked:not(.checkbox-radio-switch--disabled):focus-within .checkbox-radio-switch__content[data-v-581c226a], .checkbox-radio-switch--checked:not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__content[data-v-581c226a]:hover {
119
129
  background-color: var(--color-primary-element-hover);
120
130
  }
121
- .checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.checkbox-radio-switch--disabled):focus-within .checkbox-radio-switch__content[data-v-2c897dd5], .checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__content[data-v-2c897dd5]:hover {
131
+ .checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.checkbox-radio-switch--disabled):focus-within .checkbox-radio-switch__content[data-v-581c226a], .checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.checkbox-radio-switch--disabled) .checkbox-radio-switch__content[data-v-581c226a]:hover {
122
132
  background-color: var(--color-primary-element-light-hover);
123
133
  }
124
- .checkbox-radio-switch-switch[data-v-2c897dd5]:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon > * {
134
+ .checkbox-radio-switch-switch[data-v-581c226a]:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon > * {
125
135
  color: var(--color-text-maxcontrast);
126
136
  }
127
- .checkbox-radio-switch-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked[data-v-2c897dd5] .checkbox-radio-switch__icon > * {
137
+ .checkbox-radio-switch-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked[data-v-581c226a] .checkbox-radio-switch__icon > * {
128
138
  color: var(--color-primary-element-light);
129
139
  }
130
- .checkbox-radio-switch--button-variant.checkbox-radio-switch[data-v-2c897dd5] {
140
+ .checkbox-radio-switch--button-variant.checkbox-radio-switch[data-v-581c226a] {
131
141
  background-color: var(--color-main-background);
132
142
  border: 2px solid var(--color-border-maxcontrast);
133
143
  overflow: hidden;
134
144
  }
135
- .checkbox-radio-switch--button-variant.checkbox-radio-switch--checked[data-v-2c897dd5] {
145
+ .checkbox-radio-switch--button-variant.checkbox-radio-switch--checked[data-v-581c226a] {
136
146
  font-weight: bold;
137
147
  }
138
- .checkbox-radio-switch--button-variant.checkbox-radio-switch--checked .checkbox-radio-switch__content[data-v-2c897dd5] {
148
+ .checkbox-radio-switch--button-variant.checkbox-radio-switch--checked .checkbox-radio-switch__content[data-v-581c226a] {
139
149
  background-color: var(--color-primary-element);
140
150
  color: var(--color-primary-element-text);
141
151
  }
142
- .checkbox-radio-switch--button-variant[data-v-2c897dd5] .checkbox-radio-switch__text {
152
+ .checkbox-radio-switch--button-variant[data-v-581c226a] .checkbox-radio-switch__text {
143
153
  overflow: hidden;
144
154
  text-overflow: ellipsis;
145
155
  white-space: nowrap;
146
156
  width: 100%;
147
157
  }
148
- .checkbox-radio-switch--button-variant[data-v-2c897dd5]:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon > * {
158
+ .checkbox-radio-switch--button-variant[data-v-581c226a]:not(.checkbox-radio-switch--checked) .checkbox-radio-switch__icon > * {
149
159
  color: var(--color-main-text);
150
160
  }
151
- .checkbox-radio-switch--button-variant[data-v-2c897dd5] .checkbox-radio-switch__icon:empty {
161
+ .checkbox-radio-switch--button-variant[data-v-581c226a] .checkbox-radio-switch__icon:empty {
152
162
  display: none;
153
163
  }
154
- .checkbox-radio-switch--button-variant[data-v-2c897dd5]:not(.checkbox-radio-switch--button-variant-v-grouped):not(.checkbox-radio-switch--button-variant-h-grouped), .checkbox-radio-switch--button-variant .checkbox-radio-switch__content[data-v-2c897dd5] {
164
+ .checkbox-radio-switch--button-variant[data-v-581c226a]:not(.checkbox-radio-switch--button-variant-v-grouped):not(.checkbox-radio-switch--button-variant-h-grouped), .checkbox-radio-switch--button-variant .checkbox-radio-switch__content[data-v-581c226a] {
155
165
  border-radius: var(--checkbox-radio-switch--border-radius);
156
166
  }
157
- .checkbox-radio-switch--button-variant-v-grouped .checkbox-radio-switch__content[data-v-2c897dd5] {
167
+ .checkbox-radio-switch--button-variant-v-grouped .checkbox-radio-switch__content[data-v-581c226a] {
158
168
  flex-basis: 100%;
159
169
  max-width: unset;
160
170
  }
161
- .checkbox-radio-switch--button-variant-v-grouped[data-v-2c897dd5]:first-of-type {
171
+ .checkbox-radio-switch--button-variant-v-grouped[data-v-581c226a]:first-of-type {
162
172
  border-start-start-radius: var(--checkbox-radio-switch--border-radius-outer);
163
173
  border-start-end-radius: var(--checkbox-radio-switch--border-radius-outer);
164
174
  }
165
- .checkbox-radio-switch--button-variant-v-grouped[data-v-2c897dd5]:last-of-type {
175
+ .checkbox-radio-switch--button-variant-v-grouped[data-v-581c226a]:last-of-type {
166
176
  border-end-start-radius: var(--checkbox-radio-switch--border-radius-outer);
167
177
  border-end-end-radius: var(--checkbox-radio-switch--border-radius-outer);
168
178
  }
169
- .checkbox-radio-switch--button-variant-v-grouped[data-v-2c897dd5]:not(:last-of-type) {
179
+ .checkbox-radio-switch--button-variant-v-grouped[data-v-581c226a]:not(:last-of-type) {
170
180
  border-bottom: 0 !important;
171
181
  }
172
- .checkbox-radio-switch--button-variant-v-grouped:not(:last-of-type) .checkbox-radio-switch__content[data-v-2c897dd5] {
182
+ .checkbox-radio-switch--button-variant-v-grouped:not(:last-of-type) .checkbox-radio-switch__content[data-v-581c226a] {
173
183
  margin-bottom: 2px;
174
184
  }
175
- .checkbox-radio-switch--button-variant-v-grouped[data-v-2c897dd5]:not(:first-of-type) {
185
+ .checkbox-radio-switch--button-variant-v-grouped[data-v-581c226a]:not(:first-of-type) {
176
186
  border-top: 0 !important;
177
187
  }
178
- .checkbox-radio-switch--button-variant-h-grouped[data-v-2c897dd5]:first-of-type {
188
+ .checkbox-radio-switch--button-variant-h-grouped[data-v-581c226a]:first-of-type {
179
189
  border-start-start-radius: var(--checkbox-radio-switch--border-radius-outer);
180
190
  border-end-start-radius: var(--checkbox-radio-switch--border-radius-outer);
181
191
  }
182
- .checkbox-radio-switch--button-variant-h-grouped[data-v-2c897dd5]:last-of-type {
192
+ .checkbox-radio-switch--button-variant-h-grouped[data-v-581c226a]:last-of-type {
183
193
  border-start-end-radius: var(--checkbox-radio-switch--border-radius-outer);
184
194
  border-end-end-radius: var(--checkbox-radio-switch--border-radius-outer);
185
195
  }
186
- .checkbox-radio-switch--button-variant-h-grouped[data-v-2c897dd5]:not(:last-of-type) {
196
+ .checkbox-radio-switch--button-variant-h-grouped[data-v-581c226a]:not(:last-of-type) {
187
197
  border-inline-end: 0 !important;
188
198
  }
189
- .checkbox-radio-switch--button-variant-h-grouped:not(:last-of-type) .checkbox-radio-switch__content[data-v-2c897dd5] {
199
+ .checkbox-radio-switch--button-variant-h-grouped:not(:last-of-type) .checkbox-radio-switch__content[data-v-581c226a] {
190
200
  margin-inline-end: 2px;
191
201
  }
192
- .checkbox-radio-switch--button-variant-h-grouped[data-v-2c897dd5]:not(:first-of-type) {
202
+ .checkbox-radio-switch--button-variant-h-grouped[data-v-581c226a]:not(:first-of-type) {
193
203
  border-inline-start: 0 !important;
194
204
  }
195
- .checkbox-radio-switch--button-variant-h-grouped[data-v-2c897dd5] .checkbox-radio-switch__text {
205
+ .checkbox-radio-switch--button-variant-h-grouped[data-v-581c226a] .checkbox-radio-switch__text {
196
206
  text-align: center;
197
207
  display: flex;
198
208
  align-items: center;
199
209
  }
200
- .checkbox-radio-switch--button-variant-h-grouped .checkbox-radio-switch__content[data-v-2c897dd5] {
210
+ .checkbox-radio-switch--button-variant-h-grouped .checkbox-radio-switch__content[data-v-581c226a] {
201
211
  flex-direction: column;
202
212
  justify-content: center;
203
213
  width: 100%;
@@ -484,29 +484,29 @@
484
484
  background-color: #f3f3f3;
485
485
  }
486
486
 
487
- .mx-datepicker[data-v-5a538c8] {
487
+ .mx-datepicker[data-v-dd4fb6c] {
488
488
  user-select: none;
489
489
  color: var(--color-main-text);
490
490
  /* INPUT CONTAINER */
491
491
  }
492
- .mx-datepicker[data-v-5a538c8] svg {
492
+ .mx-datepicker[data-v-dd4fb6c] svg {
493
493
  fill: var(--color-main-text);
494
494
  }
495
- .mx-datepicker[data-v-5a538c8] .mx-input-wrapper .mx-input {
495
+ .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper .mx-input {
496
496
  width: 100%;
497
497
  border: 2px solid var(--color-border-maxcontrast);
498
498
  background-color: var(--color-main-background);
499
499
  background-clip: content-box;
500
500
  }
501
- .mx-datepicker[data-v-5a538c8] .mx-input-wrapper .mx-input:active:not(.disabled), .mx-datepicker[data-v-5a538c8] .mx-input-wrapper .mx-input:hover:not(.disabled), .mx-datepicker[data-v-5a538c8] .mx-input-wrapper .mx-input:focus:not(.disabled) {
501
+ .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper .mx-input:active:not(.disabled), .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper .mx-input:hover:not(.disabled), .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper .mx-input:focus:not(.disabled) {
502
502
  border-color: var(--color-primary-element);
503
503
  }
504
- .mx-datepicker[data-v-5a538c8] .mx-input-wrapper:disabled, .mx-datepicker[data-v-5a538c8] .mx-input-wrapper.disabled {
504
+ .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper:disabled, .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper.disabled {
505
505
  cursor: not-allowed;
506
506
  opacity: 0.7;
507
507
  }
508
- .mx-datepicker[data-v-5a538c8] .mx-input-wrapper .mx-icon-calendar,
509
- .mx-datepicker[data-v-5a538c8] .mx-input-wrapper .mx-icon-clear {
508
+ .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper .mx-icon-calendar,
509
+ .mx-datepicker[data-v-dd4fb6c] .mx-input-wrapper .mx-icon-clear {
510
510
  color: var(--color-text-lighter);
511
511
  }
512
512
 
@@ -123,7 +123,7 @@
123
123
  /*
124
124
  * Ensure proper alignment of the vue material icons
125
125
  */
126
- .material-design-icon[data-v-de9850e4] {
126
+ .material-design-icon[data-v-93468058] {
127
127
  display: flex;
128
128
  align-self: center;
129
129
  justify-self: center;
@@ -140,40 +140,40 @@
140
140
  /*
141
141
  * Ensure proper alignment of the vue material icons
142
142
  */
143
- .material-design-icon[data-v-f03ee0c9] {
143
+ .material-design-icon[data-v-10f6fc31] {
144
144
  display: flex;
145
145
  align-self: center;
146
146
  justify-self: center;
147
147
  align-items: center;
148
148
  justify-content: center;
149
149
  }
150
- .provider-list[data-v-f03ee0c9] {
150
+ .provider-list[data-v-10f6fc31] {
151
151
  width: 100%;
152
152
  min-height: 400px;
153
153
  padding: 0 16px 16px 16px;
154
154
  display: flex;
155
155
  flex-direction: column;
156
156
  }
157
- .provider-list--select[data-v-f03ee0c9] {
157
+ .provider-list--select[data-v-10f6fc31] {
158
158
  width: 100%;
159
159
  }
160
- .provider-list--select .provider[data-v-f03ee0c9] {
160
+ .provider-list--select .provider[data-v-10f6fc31] {
161
161
  display: flex;
162
162
  align-items: center;
163
163
  height: 28px;
164
164
  overflow: hidden;
165
165
  }
166
- .provider-list--select .provider .link-icon[data-v-f03ee0c9] {
166
+ .provider-list--select .provider .link-icon[data-v-10f6fc31] {
167
167
  margin-inline-end: 8px;
168
168
  }
169
- .provider-list--select .provider .provider-icon[data-v-f03ee0c9] {
169
+ .provider-list--select .provider .provider-icon[data-v-10f6fc31] {
170
170
  width: 20px;
171
171
  height: 20px;
172
172
  object-fit: contain;
173
173
  margin-inline-end: 8px;
174
174
  filter: var(--background-invert-if-dark);
175
175
  }
176
- .provider-list--select .provider .option-text[data-v-f03ee0c9] {
176
+ .provider-list--select .provider .option-text[data-v-10f6fc31] {
177
177
  overflow: hidden;
178
178
  text-overflow: ellipsis;
179
179
  white-space: nowrap;
@@ -326,24 +326,24 @@
326
326
  /*
327
327
  * Ensure proper alignment of the vue material icons
328
328
  */
329
- .material-design-icon[data-v-cd33df8e] {
329
+ .material-design-icon[data-v-98624f25] {
330
330
  display: flex;
331
331
  align-self: center;
332
332
  justify-self: center;
333
333
  align-items: center;
334
334
  justify-content: center;
335
335
  }
336
- .reference-picker[data-v-cd33df8e] {
336
+ .reference-picker[data-v-98624f25] {
337
337
  display: flex;
338
338
  overflow-y: auto;
339
339
  width: 100%;
340
340
  }
341
- .reference-picker .custom-element-wrapper[data-v-cd33df8e] {
341
+ .reference-picker .custom-element-wrapper[data-v-98624f25] {
342
342
  display: flex;
343
343
  overflow-y: auto;
344
344
  width: 100%;
345
345
  }
346
- .reference-picker .custom-element-wrapper .custom-element[data-v-cd33df8e] {
346
+ .reference-picker .custom-element-wrapper .custom-element[data-v-98624f25] {
347
347
  display: flex;
348
348
  overflow-y: auto;
349
349
  width: 100%;
@@ -358,17 +358,17 @@
358
358
  /*
359
359
  * Ensure proper alignment of the vue material icons
360
360
  */
361
- .material-design-icon[data-v-a3c031e1] {
361
+ .material-design-icon[data-v-13d8f21e] {
362
362
  display: flex;
363
363
  align-self: center;
364
364
  justify-self: center;
365
365
  align-items: center;
366
366
  justify-content: center;
367
367
  }
368
- .reference-picker-modal[data-v-a3c031e1] .modal-container {
368
+ .reference-picker-modal[data-v-13d8f21e] .modal-container {
369
369
  display: flex !important;
370
370
  }
371
- .reference-picker-modal--content[data-v-a3c031e1] {
371
+ .reference-picker-modal--content[data-v-13d8f21e] {
372
372
  width: 100%;
373
373
  display: flex;
374
374
  flex-direction: column;
@@ -376,21 +376,21 @@
376
376
  justify-content: center;
377
377
  overflow-y: auto;
378
378
  }
379
- .reference-picker-modal--content .close-button[data-v-a3c031e1],
380
- .reference-picker-modal--content .back-button[data-v-a3c031e1] {
379
+ .reference-picker-modal--content .close-button[data-v-13d8f21e],
380
+ .reference-picker-modal--content .back-button[data-v-13d8f21e] {
381
381
  position: absolute;
382
382
  top: 4px;
383
383
  }
384
- .reference-picker-modal--content .back-button[data-v-a3c031e1] {
384
+ .reference-picker-modal--content .back-button[data-v-13d8f21e] {
385
385
  inset-inline-start: 4px;
386
386
  }
387
- .reference-picker-modal--content .close-button[data-v-a3c031e1] {
387
+ .reference-picker-modal--content .close-button[data-v-13d8f21e] {
388
388
  inset-inline-end: 4px;
389
389
  }
390
- .reference-picker-modal--content > h2[data-v-a3c031e1] {
390
+ .reference-picker-modal--content > h2[data-v-13d8f21e] {
391
391
  display: flex;
392
392
  margin: 12px 0 20px 0;
393
393
  }
394
- .reference-picker-modal--content > h2 .icon[data-v-a3c031e1] {
394
+ .reference-picker-modal--content > h2 .icon[data-v-13d8f21e] {
395
395
  margin-inline-end: 8px;
396
396
  }
@@ -1,6 +1,6 @@
1
1
  require('../assets/NcActionButton-D8Lyueq3.css');
2
2
  "use strict";
3
- const mdi = require("./mdi-B_QN3oas.cjs");
3
+ const mdi = require("./mdi-BBwE-MZC.cjs");
4
4
  const actionText = require("./actionText-BcrK4uH1.cjs");
5
5
  const NcIconSvgWrapper = require("./NcIconSvgWrapper-CrnN5Sq5.cjs");
6
6
  const _pluginVue2_normalizer = require("./_plugin-vue2_normalizer-V0q-tHlQ.cjs");
@@ -178,4 +178,4 @@ var __component__ = /* @__PURE__ */ _pluginVue2_normalizer.normalizeComponent(
178
178
  );
179
179
  const NcActionButton = __component__.exports;
180
180
  exports.NcActionButton = NcActionButton;
181
- //# sourceMappingURL=NcActionButton-D_9FsTpM.cjs.map
181
+ //# sourceMappingURL=NcActionButton-BhSk7AAp.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"NcActionButton-D_9FsTpM.cjs","sources":["../../src/components/NcActionButton/NcActionButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Delete')\">\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\t<NcActionButton :close-after-click=\"true\" @click=\"showMessage('Delete and close menu')\">\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 and close\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :is-menu=\"true\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCreate\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :disabled=\"true\" @click=\"showMessage('Disabled')\">\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\tDisabled button\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Delete from 'vue-material-design-icons/Delete.vue'\n\timport Plus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tDelete,\n\t\t\tPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n```\n\nIf you're using a long text, you can specify a `name` prop.\n\nFor the same purpose, but in a more compact way, `description` prop can be used.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton name=\"Long button\" @click=\"showMessage('Delete')\">\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\tThis button is associated with a very long text.\\nAnd with new lines too.\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton description=\"Subline description for the button\" @click=\"showMessage('Edit')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tEdit\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Delete from 'vue-material-design-icons/Delete.vue'\n\timport Pencil from 'vue-material-design-icons/Pencil.vue'\n\timport Plus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tDelete,\n\t\t\tPencil,\n\t\t\tPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nAction icon attribute with a single action\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Plus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nYou can also use a custom icon, for example from the vue-material-design-icons library:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<HandBackLeft :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise left hand\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<HandBackRight :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise right hand\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport HandBackLeft from 'vue-material-design-icons/HandBackLeft.vue'\nimport HandBackRight from 'vue-material-design-icons/HandBackRight.vue'\n\nexport default {\n\tcomponents: {\n\t\tHandBackLeft,\n\t\tHandBackRight,\n\t},\n}\n</script>\n```\n\n### With different model behavior\nBy default the button will act like a normal button, but it is also possible to change the behavior to a toggle button, checkbox button or radio button.\n\nFor example to have the button act like a toggle button just set the `modelValue` property to the toggle state:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\">\n\t\t\t<template #icon>\n\t\t\t\t<Fullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport Fullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t}\n\t},\n}\n</script>\n```\n\nAnother example would be using it with checkbox semantics, to enable or disable features.\nThis also allows tri-state behavior (`true`, `false`, `null`) in which case `aria-checked` will be either `true`, `false` or `mixed`.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"handRaised\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<HandBackLeft :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise hand\n\t\t</NcActionButton>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<Fullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport HandBackLeft from 'vue-material-design-icons/HandBackLeft.vue'\nimport Fullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tHandBackLeft,\n\t\tFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t\thandRaised: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nIt is also possible to use the button with radio semantics, this is only possible in menus and not for inline actions!\n\nWith a string `modelValue`, checked state is determined by the `value` property and updates `modelValue` with the new `value` string.\n\nWith a boolean `modelValue`, checked state is determined by `modelValue` and updates to `true` on check.\n\nNote: unlike native radio buttons, `NcActionButton` are not grouped by name, so you need to connect them by bind correct `modelValue``.\n\n```vue\n<template>\n\t<div>\n\t\t<NcActions>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"cash\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Cash :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay with cash\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"card\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<CreditCard :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay by card\n\t\t\t</NcActionButton>\n\t\t\t<NcActionSeparator />\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isLeft\" @update:modelValue=\"setAlign('Left', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FormatAlignLeft :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tLeft\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isCenter\" @update:modelValue=\"setAlign('Center', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FormatAlignCenter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCenter\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isRight\" @update:modelValue=\"setAlign('Right', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FormatAlignRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRight\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t\t<p>payment = \"{{ payment }}\"</p>\n\t\t<p>align.isLeft = {{ align.isLeft }}</p>\n\t\t<p>align.isCenter = {{ align.isCenter }}</p>\n\t\t<p>align.isRight = {{ align.isRight }}</p>\n\t</div>\n</template>\n<script>\nimport Cash from 'vue-material-design-icons/Cash.vue'\nimport CreditCard from 'vue-material-design-icons/CreditCard.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'\n\nexport default {\n\tcomponents: {\n\t\tCash,\n\t\tCreditCard,\n\t\tFormatAlignLeft,\n\t\tFormatAlignCenter,\n\t\tFormatAlignRight,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tpayment: 'card',\n\t\t\talign: {\n\t\t\t\tisLeft: false,\n\t\t\t\tisCenter: true,\n\t\t\t\tisRight: false,\n\t\t\t},\n\t\t}\n\t},\n\tmethods: {\n\t\tsetAlign(direction, value) {\n\t\t\tthis.align.isLeft = false\n\t\t\tthis.align.isCenter = false\n\t\t\tthis.align.isRight = false\n\t\t\tthis.align[`is${direction}`] = value\n\t\t},\n\t}\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<button :aria-label=\"ariaLabel\"\n\t\t\t:class=\"['action-button button-vue', {\n\t\t\t\t'action-button--active': isChecked,\n\t\t\t\tfocusable: isFocusable,\n\t\t\t}]\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:title=\"title\"\n\t\t\t:type=\"nativeType\"\n\t\t\tv-bind=\"buttonAttributes\"\n\t\t\t@click=\"handleClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span :class=\"[isIconUrl ? 'action-button__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"action-button__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span class=\"action-button__longtext-wrapper\">\n\t\t\t\t<strong v-if=\"name\"\n\t\t\t\t\tclass=\"action-button__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span v-if=\"isLongText\"\n\t\t\t\t\tclass=\"action-button__longtext\"\n\t\t\t\t\tv-text=\"text\" />\n\t\t\t\t<!-- default text display -->\n\t\t\t\t<span v-else\n\t\t\t\t\tclass=\"action-button__text\">\n\t\t\t\t\t{{ text }}\n\t\t\t\t</span>\n\t\t\t\t<span v-if=\"description\"\n\t\t\t\t\tclass=\"action-button__description\"\n\t\t\t\t\tv-text=\"description\" />\n\t\t\t</span>\n\n\t\t\t<!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->\n\t\t\t<NcIconSvgWrapper v-if=\"isMenu\"\n\t\t\t\tclass=\"action-button__menu-icon\"\n\t\t\t\tdirectional\n\t\t\t\t:path=\"mdiChevronRight\" />\n\t\t\t<NcIconSvgWrapper v-else-if=\"isChecked\" :path=\"mdiCheck\" class=\"action-button__pressed-icon\" />\n\n\t\t\t<span v-else-if=\"isChecked === false\" class=\"action-button__pressed-icon material-design-icon\" />\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</button>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheck, mdiChevronRight } from '@mdi/js'\nimport ActionTextMixin from '../../mixins/actionText.js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\n\n/**\n * Button component to be used in Actions\n */\nexport default {\n\tname: 'NcActionButton',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\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 * disabled state of the action button\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 * If this is a menu, a chevron icon will\n\t\t * be added at the end of the line\n\t\t */\n\t\tisMenu: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n\t\t * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n\t\t * This extends the native HTML button type attribute.\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'button',\n\t\t\tvalidator: (behavior) => ['button', 'checkbox', 'radio', 'reset', 'submit'].includes(behavior),\n\t\t},\n\n\t\t/**\n\t\t * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n\t\t * For checkbox and toggle button behavior - boolean value.\n\t\t * For radio button behavior - could be a boolean checked or a string with the value of the button.\n\t\t * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n\t\t *\n\t\t * **This is not availabe for `type='submit'` or `type='reset'`**\n\t\t *\n\t\t * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n\t\t * For `type='radio'` `null` is equal to `false`\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The value used for the `modelValue` when this component is used with radio behavior\n\t\t * Similar to the `value` attribute of `<input type=\"radio\">`\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Small underlying text content of the entry\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\tsetup() {\n\t\treturn {\n\t\t\tmdiCheck,\n\t\t\tmdiChevronRight,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\n\t\t/**\n\t\t * The current \"checked\" or \"pressed\" state for the model behavior\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.type === 'radio' && typeof this.modelValue !== 'boolean') {\n\t\t\t\treturn this.modelValue === this.value\n\t\t\t}\n\t\t\treturn this.modelValue\n\t\t},\n\n\t\t/**\n\t\t * The native HTML type to set on the button\n\t\t */\n\t\tnativeType() {\n\t\t\tif (this.type === 'submit' || this.type === 'reset') {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn 'button'\n\t\t},\n\n\t\t/**\n\t\t * HTML attributes to bind to the <button>\n\t\t */\n\t\tbuttonAttributes() {\n\t\t\tconst attributes = {}\n\n\t\t\tif (this.isInSemanticMenu) {\n\t\t\t\t// By default it needs to be a menu item in semantic menus\n\t\t\t\tattributes.role = 'menuitem'\n\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tattributes.role = 'menuitemradio'\n\t\t\t\t\tattributes['aria-checked'] = this.isChecked ? 'true' : 'false'\n\t\t\t\t} else if (this.type === 'checkbox' || (this.nativeType === 'button' && this.modelValue !== null)) {\n\t\t\t\t\t// either if checkbox behavior was set or the model value is not unset\n\t\t\t\t\tattributes.role = 'menuitemcheckbox'\n\t\t\t\t\tattributes['aria-checked'] = this.modelValue === null ? 'mixed' : (this.modelValue ? 'true' : 'false')\n\t\t\t\t}\n\t\t\t} else if (this.modelValue !== null && this.nativeType === 'button') {\n\t\t\t\t// In case this has a modelValue it is considered a toggle button, so we need to set the aria-pressed\n\t\t\t\tattributes['aria-pressed'] = this.modelValue ? 'true' : 'false'\n\t\t\t}\n\n\t\t\treturn attributes\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Forward click event, let mixin handle the close-after-click and emit new modelValue if needed\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClick(event) {\n\t\t\tthis.onClick(event)\n\t\t\t// If modelValue or type is set (so modelValue might be null for tri-state) we need to update it\n\t\t\tif (this.modelValue !== null || this.type !== 'button') {\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tif (typeof this.modelValue !== 'boolean') {\n\t\t\t\t\t\t// String-value radios behavior is similar to native - click on checked radio does nothing\n\t\t\t\t\t\tif (!this.isChecked) {\n\t\t\t\t\t\t\tthis.$emit('update:modelValue', this.value)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Boolean radio allows to uncheck\n\t\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Checkbox toggles value\n\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import '../../assets/action';\n@include action-active;\n@include action--disabled;\n@include action-item('button');\n\n.action-button {\n\t&__pressed-icon {\n\t\tmargin-inline: auto calc($icon-margin * -1);\n\t}\n\n\t* {\n\t\tcursor: pointer;\n\t}\n}\n</style>\n"],"names":["NcIconSvgWrapper","ActionTextMixin","mdiCheck","mdiChevronRight"],"mappings":"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"}
1
+ {"version":3,"file":"NcActionButton-BhSk7AAp.cjs","sources":["../../src/components/NcActionButton/NcActionButton.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Delete')\">\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\t<NcActionButton :close-after-click=\"true\" @click=\"showMessage('Delete and close menu')\">\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 and close\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :is-menu=\"true\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCreate\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :disabled=\"true\" @click=\"showMessage('Disabled')\">\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\tDisabled button\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Delete from 'vue-material-design-icons/Delete.vue'\n\timport Plus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tDelete,\n\t\t\tPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n```\n\nIf you're using a long text, you can specify a `name` prop.\n\nFor the same purpose, but in a more compact way, `description` prop can be used.\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton name=\"Long button\" @click=\"showMessage('Delete')\">\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\tThis button is associated with a very long text.\\nAnd with new lines too.\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton description=\"Subline description for the button\" @click=\"showMessage('Edit')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Pencil :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tEdit\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Delete from 'vue-material-design-icons/Delete.vue'\n\timport Pencil from 'vue-material-design-icons/Pencil.vue'\n\timport Plus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tDelete,\n\t\t\tPencil,\n\t\t\tPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nAction icon attribute with a single action\n\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionButton @click=\"showMessage('Add')\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Plus :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tAdd new\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Plus from 'vue-material-design-icons/Plus.vue'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tPlus,\n\t\t},\n\t\tmethods: {\n\t\t\tshowMessage(msg) {\n\t\t\t\talert(msg)\n\t\t\t},\n\t\t},\n\t}\n\t</script>\n\n```\n\nYou can also use a custom icon, for example from the vue-material-design-icons library:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<HandBackLeft :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise left hand\n\t\t</NcActionButton>\n\t\t<NcActionButton>\n\t\t\t<template #icon>\n\t\t\t\t<HandBackRight :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise right hand\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport HandBackLeft from 'vue-material-design-icons/HandBackLeft.vue'\nimport HandBackRight from 'vue-material-design-icons/HandBackRight.vue'\n\nexport default {\n\tcomponents: {\n\t\tHandBackLeft,\n\t\tHandBackRight,\n\t},\n}\n</script>\n```\n\n### With different model behavior\nBy default the button will act like a normal button, but it is also possible to change the behavior to a toggle button, checkbox button or radio button.\n\nFor example to have the button act like a toggle button just set the `modelValue` property to the toggle state:\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\">\n\t\t\t<template #icon>\n\t\t\t\t<Fullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport Fullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t}\n\t},\n}\n</script>\n```\n\nAnother example would be using it with checkbox semantics, to enable or disable features.\nThis also allows tri-state behavior (`true`, `false`, `null`) in which case `aria-checked` will be either `true`, `false` or `mixed`.\n\n```vue\n<template>\n\t<NcActions>\n\t\t<NcActionButton :model-value.sync=\"handRaised\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<HandBackLeft :size=\"20\" />\n\t\t\t</template>\n\t\t\tRaise hand\n\t\t</NcActionButton>\n\t\t<NcActionButton :model-value.sync=\"fullscreen\" type=\"checkbox\">\n\t\t\t<template #icon>\n\t\t\t\t<Fullscreen :size=\"20\" />\n\t\t\t</template>\n\t\t\tFullscreen\n\t\t</NcActionButton>\n\t</NcActions>\n</template>\n<script>\nimport HandBackLeft from 'vue-material-design-icons/HandBackLeft.vue'\nimport Fullscreen from 'vue-material-design-icons/Fullscreen.vue'\n\nexport default {\n\tcomponents: {\n\t\tHandBackLeft,\n\t\tFullscreen,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfullscreen: true,\n\t\t\thandRaised: false,\n\t\t}\n\t},\n}\n</script>\n```\n\nIt is also possible to use the button with radio semantics, this is only possible in menus and not for inline actions!\n\nWith a string `modelValue`, checked state is determined by the `value` property and updates `modelValue` with the new `value` string.\n\nWith a boolean `modelValue`, checked state is determined by `modelValue` and updates to `true` on check.\n\nNote: unlike native radio buttons, `NcActionButton` are not grouped by name, so you need to connect them by bind correct `modelValue``.\n\n```vue\n<template>\n\t<div>\n\t\t<NcActions>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"cash\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Cash :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay with cash\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton :model-value.sync=\"payment\" type=\"radio\" value=\"card\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<CreditCard :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPay by card\n\t\t\t</NcActionButton>\n\t\t\t<NcActionSeparator />\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isLeft\" @update:modelValue=\"setAlign('Left', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FormatAlignLeft :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tLeft\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isCenter\" @update:modelValue=\"setAlign('Center', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FormatAlignCenter :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tCenter\n\t\t\t</NcActionButton>\n\t\t\t<NcActionButton type=\"radio\" :model-value=\"align.isRight\" @update:modelValue=\"setAlign('Right', $event)\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<FormatAlignRight :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tRight\n\t\t\t</NcActionButton>\n\t\t</NcActions>\n\t\t<p>payment = \"{{ payment }}\"</p>\n\t\t<p>align.isLeft = {{ align.isLeft }}</p>\n\t\t<p>align.isCenter = {{ align.isCenter }}</p>\n\t\t<p>align.isRight = {{ align.isRight }}</p>\n\t</div>\n</template>\n<script>\nimport Cash from 'vue-material-design-icons/Cash.vue'\nimport CreditCard from 'vue-material-design-icons/CreditCard.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'\n\nexport default {\n\tcomponents: {\n\t\tCash,\n\t\tCreditCard,\n\t\tFormatAlignLeft,\n\t\tFormatAlignCenter,\n\t\tFormatAlignRight,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tpayment: 'card',\n\t\t\talign: {\n\t\t\t\tisLeft: false,\n\t\t\t\tisCenter: true,\n\t\t\t\tisRight: false,\n\t\t\t},\n\t\t}\n\t},\n\tmethods: {\n\t\tsetAlign(direction, value) {\n\t\t\tthis.align.isLeft = false\n\t\t\tthis.align.isCenter = false\n\t\t\tthis.align.isRight = false\n\t\t\tthis.align[`is${direction}`] = value\n\t\t},\n\t}\n}\n</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\" :role=\"isInSemanticMenu && 'presentation'\">\n\t\t<button :aria-label=\"ariaLabel\"\n\t\t\t:class=\"['action-button button-vue', {\n\t\t\t\t'action-button--active': isChecked,\n\t\t\t\tfocusable: isFocusable,\n\t\t\t}]\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:title=\"title\"\n\t\t\t:type=\"nativeType\"\n\t\t\tv-bind=\"buttonAttributes\"\n\t\t\t@click=\"handleClick\">\n\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<span :class=\"[isIconUrl ? 'action-button__icon--url' : icon]\"\n\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"action-button__icon\" />\n\t\t\t</slot>\n\n\t\t\t<!-- long text with name -->\n\t\t\t<span class=\"action-button__longtext-wrapper\">\n\t\t\t\t<strong v-if=\"name\"\n\t\t\t\t\tclass=\"action-button__name\">\n\t\t\t\t\t{{ name }}\n\t\t\t\t</strong>\n\t\t\t\t<!-- white space is shown on longtext, so we can't\n\t\t\t\t\tput {{ text }} on a new line for code readability -->\n\t\t\t\t<span v-if=\"isLongText\"\n\t\t\t\t\tclass=\"action-button__longtext\"\n\t\t\t\t\tv-text=\"text\" />\n\t\t\t\t<!-- default text display -->\n\t\t\t\t<span v-else\n\t\t\t\t\tclass=\"action-button__text\">\n\t\t\t\t\t{{ text }}\n\t\t\t\t</span>\n\t\t\t\t<span v-if=\"description\"\n\t\t\t\t\tclass=\"action-button__description\"\n\t\t\t\t\tv-text=\"description\" />\n\t\t\t</span>\n\n\t\t\t<!-- right(in LTR) or left(in RTL) arrow icon when there is a sub-menu -->\n\t\t\t<NcIconSvgWrapper v-if=\"isMenu\"\n\t\t\t\tclass=\"action-button__menu-icon\"\n\t\t\t\tdirectional\n\t\t\t\t:path=\"mdiChevronRight\" />\n\t\t\t<NcIconSvgWrapper v-else-if=\"isChecked\" :path=\"mdiCheck\" class=\"action-button__pressed-icon\" />\n\n\t\t\t<span v-else-if=\"isChecked === false\" class=\"action-button__pressed-icon material-design-icon\" />\n\n\t\t\t<!-- fake slot to gather inner text -->\n\t\t\t<slot v-if=\"false\" />\n\t\t</button>\n\t</li>\n</template>\n\n<script>\nimport { mdiCheck, mdiChevronRight } from '@mdi/js'\nimport ActionTextMixin from '../../mixins/actionText.js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/NcIconSvgWrapper.vue'\n\n/**\n * Button component to be used in Actions\n */\nexport default {\n\tname: 'NcActionButton',\n\n\tcomponents: {\n\t\tNcIconSvgWrapper,\n\t},\n\tmixins: [ActionTextMixin],\n\n\tinject: {\n\t\tisInSemanticMenu: {\n\t\t\tfrom: 'NcActions:isSemanticMenu',\n\t\t\tdefault: false,\n\t\t},\n\t},\n\n\tprops: {\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 * disabled state of the action button\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 * If this is a menu, a chevron icon will\n\t\t * be added at the end of the line\n\t\t */\n\t\tisMenu: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The button's behavior, by default the button acts like a normal button with optional toggle button behavior if `modelValue` is `true` or `false`.\n\t\t * But you can also set to checkbox button behavior with tri-state or radio button like behavior.\n\t\t * This extends the native HTML button type attribute.\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'button',\n\t\t\tvalidator: (behavior) => ['button', 'checkbox', 'radio', 'reset', 'submit'].includes(behavior),\n\t\t},\n\n\t\t/**\n\t\t * The buttons state if `type` is 'checkbox' or 'radio' (meaning if it is pressed / selected).\n\t\t * For checkbox and toggle button behavior - boolean value.\n\t\t * For radio button behavior - could be a boolean checked or a string with the value of the button.\n\t\t * Note: Unlike native radio buttons, NcActionButton are not grouped by name, so you need to connect them by bind correct modelValue.\n\t\t *\n\t\t * **This is not availabe for `type='submit'` or `type='reset'`**\n\t\t *\n\t\t * If using `type='checkbox'` a `model-value` of `true` means checked, `false` means unchecked and `null` means indeterminate (tri-state)\n\t\t * For `type='radio'` `null` is equal to `false`\n\t\t */\n\t\tmodelValue: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The value used for the `modelValue` when this component is used with radio behavior\n\t\t * Similar to the `value` attribute of `<input type=\"radio\">`\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Small underlying text content of the entry\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\tsetup() {\n\t\treturn {\n\t\t\tmdiCheck,\n\t\t\tmdiChevronRight,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * determines if the action is focusable\n\t\t *\n\t\t * @return {boolean} is the action focusable ?\n\t\t */\n\t\tisFocusable() {\n\t\t\treturn !this.disabled\n\t\t},\n\n\t\t/**\n\t\t * The current \"checked\" or \"pressed\" state for the model behavior\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.type === 'radio' && typeof this.modelValue !== 'boolean') {\n\t\t\t\treturn this.modelValue === this.value\n\t\t\t}\n\t\t\treturn this.modelValue\n\t\t},\n\n\t\t/**\n\t\t * The native HTML type to set on the button\n\t\t */\n\t\tnativeType() {\n\t\t\tif (this.type === 'submit' || this.type === 'reset') {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn 'button'\n\t\t},\n\n\t\t/**\n\t\t * HTML attributes to bind to the <button>\n\t\t */\n\t\tbuttonAttributes() {\n\t\t\tconst attributes = {}\n\n\t\t\tif (this.isInSemanticMenu) {\n\t\t\t\t// By default it needs to be a menu item in semantic menus\n\t\t\t\tattributes.role = 'menuitem'\n\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tattributes.role = 'menuitemradio'\n\t\t\t\t\tattributes['aria-checked'] = this.isChecked ? 'true' : 'false'\n\t\t\t\t} else if (this.type === 'checkbox' || (this.nativeType === 'button' && this.modelValue !== null)) {\n\t\t\t\t\t// either if checkbox behavior was set or the model value is not unset\n\t\t\t\t\tattributes.role = 'menuitemcheckbox'\n\t\t\t\t\tattributes['aria-checked'] = this.modelValue === null ? 'mixed' : (this.modelValue ? 'true' : 'false')\n\t\t\t\t}\n\t\t\t} else if (this.modelValue !== null && this.nativeType === 'button') {\n\t\t\t\t// In case this has a modelValue it is considered a toggle button, so we need to set the aria-pressed\n\t\t\t\tattributes['aria-pressed'] = this.modelValue ? 'true' : 'false'\n\t\t\t}\n\n\t\t\treturn attributes\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * Forward click event, let mixin handle the close-after-click and emit new modelValue if needed\n\t\t * @param {MouseEvent} event The click event\n\t\t */\n\t\thandleClick(event) {\n\t\t\tthis.onClick(event)\n\t\t\t// If modelValue or type is set (so modelValue might be null for tri-state) we need to update it\n\t\t\tif (this.modelValue !== null || this.type !== 'button') {\n\t\t\t\tif (this.type === 'radio') {\n\t\t\t\t\tif (typeof this.modelValue !== 'boolean') {\n\t\t\t\t\t\t// String-value radios behavior is similar to native - click on checked radio does nothing\n\t\t\t\t\t\tif (!this.isChecked) {\n\t\t\t\t\t\t\tthis.$emit('update:modelValue', this.value)\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Boolean radio allows to uncheck\n\t\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Checkbox toggles value\n\t\t\t\t\tthis.$emit('update:modelValue', !this.isChecked)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import '../../assets/action';\n@include action-active;\n@include action--disabled;\n@include action-item('button');\n\n.action-button {\n\t&__pressed-icon {\n\t\tmargin-inline: auto calc($icon-margin * -1);\n\t}\n\n\t* {\n\t\tcursor: pointer;\n\t}\n}\n</style>\n"],"names":["NcIconSvgWrapper","ActionTextMixin","mdiCheck","mdiChevronRight"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import '../assets/NcActionButton-D8Lyueq3.css';
2
- import { m as mdiChevronRight, a as mdiCheck } from "./mdi-DoaiuWye.mjs";
2
+ import { m as mdiChevronRight, a as mdiCheck } from "./mdi-DXu6GWVJ.mjs";
3
3
  import { A as ActionTextMixin } from "./actionText-fFcUPi2g.mjs";
4
4
  import { N as NcIconSvgWrapper } from "./NcIconSvgWrapper-Cb-cPj1R.mjs";
5
5
  import { n as normalizeComponent } from "./_plugin-vue2_normalizer-DU4iP6Vu.mjs";
@@ -179,4 +179,4 @@ const NcActionButton = __component__.exports;
179
179
  export {
180
180
  NcActionButton as N
181
181
  };
182
- //# sourceMappingURL=NcActionButton-rjMoymt-.mjs.map
182
+ //# sourceMappingURL=NcActionButton-DC3oAI2L.mjs.map