@nextcloud/vue 8.10.0 → 8.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  3. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  4. package/dist/Components/NcActionInput.cjs +1 -1
  5. package/dist/Components/NcActionInput.mjs +1 -1
  6. package/dist/Components/NcActions.cjs +1 -1
  7. package/dist/Components/NcActions.mjs +1 -1
  8. package/dist/Components/NcAppContent.cjs +1 -1
  9. package/dist/Components/NcAppContent.mjs +1 -1
  10. package/dist/Components/NcAppNavigation.cjs +1 -1
  11. package/dist/Components/NcAppNavigation.mjs +1 -1
  12. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  13. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  14. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  15. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  16. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  17. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  18. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  19. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  20. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  21. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  22. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  23. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  24. package/dist/Components/NcAppSidebar.cjs +1 -1
  25. package/dist/Components/NcAppSidebar.mjs +1 -1
  26. package/dist/Components/NcAvatar.cjs +1 -1
  27. package/dist/Components/NcAvatar.mjs +1 -1
  28. package/dist/Components/NcBreadcrumb.cjs +1 -1
  29. package/dist/Components/NcBreadcrumb.mjs +1 -1
  30. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  31. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  32. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  33. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  34. package/dist/Components/NcColorPicker.cjs +1 -1
  35. package/dist/Components/NcColorPicker.mjs +1 -1
  36. package/dist/Components/NcContent.cjs +1 -1
  37. package/dist/Components/NcContent.mjs +1 -1
  38. package/dist/Components/NcDashboardWidget.cjs +1 -1
  39. package/dist/Components/NcDashboardWidget.mjs +1 -1
  40. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  41. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  42. package/dist/Components/NcDateTime.cjs +1 -1
  43. package/dist/Components/NcDateTime.mjs +1 -1
  44. package/dist/Components/NcDateTimePicker.cjs +2 -2
  45. package/dist/Components/NcDateTimePicker.mjs +4 -4
  46. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  47. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  48. package/dist/Components/NcEmojiPicker.cjs +1 -1
  49. package/dist/Components/NcEmojiPicker.mjs +1 -1
  50. package/dist/Components/NcHeaderMenu.cjs +1 -1
  51. package/dist/Components/NcHeaderMenu.mjs +1 -1
  52. package/dist/Components/NcListItem.cjs +1 -1
  53. package/dist/Components/NcListItem.mjs +1 -1
  54. package/dist/Components/NcListItemIcon.cjs +1 -1
  55. package/dist/Components/NcListItemIcon.mjs +1 -1
  56. package/dist/Components/NcModal.cjs +1 -1
  57. package/dist/Components/NcModal.mjs +3 -3
  58. package/dist/Components/NcPasswordField.cjs +1 -1
  59. package/dist/Components/NcPasswordField.mjs +1 -1
  60. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  61. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  62. package/dist/Components/NcRichContenteditable.cjs +1 -1
  63. package/dist/Components/NcRichContenteditable.mjs +2 -2
  64. package/dist/Components/NcRichText.cjs +1 -1
  65. package/dist/Components/NcRichText.mjs +3 -3
  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/NcSettingsInputText.cjs +1 -1
  71. package/dist/Components/NcSettingsInputText.mjs +1 -1
  72. package/dist/Components/NcSettingsSection.cjs +1 -1
  73. package/dist/Components/NcSettingsSection.mjs +1 -1
  74. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  75. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  76. package/dist/Components/NcTextField.cjs +1 -1
  77. package/dist/Components/NcTextField.mjs +1 -1
  78. package/dist/Components/NcTimezonePicker.cjs +1 -1
  79. package/dist/Components/NcTimezonePicker.mjs +1 -1
  80. package/dist/Components/NcUserBubble.cjs +1 -1
  81. package/dist/Components/NcUserBubble.mjs +1 -1
  82. package/dist/Components/NcUserStatusIcon.cjs +1 -1
  83. package/dist/Components/NcUserStatusIcon.mjs +1 -1
  84. package/dist/Functions/reference.cjs +1 -1
  85. package/dist/Functions/reference.mjs +1 -1
  86. package/dist/Functions/usernameToColor.cjs +1 -1
  87. package/dist/Functions/usernameToColor.mjs +1 -1
  88. package/dist/Mixins/richEditor.cjs +1 -1
  89. package/dist/Mixins/richEditor.mjs +1 -1
  90. package/dist/assets/{NcActionInput-DjNK8ORa.css → NcActionInput-8F2WF3yH.css} +67 -67
  91. package/dist/assets/{NcAppContent-DcXMrsBz.css → NcAppContent-aWiDWWeq.css} +22 -19
  92. package/dist/assets/{NcAppNavigation-BgGJuJPv.css → NcAppNavigation-wkQJnaLW.css} +12 -12
  93. package/dist/assets/{NcAppSidebar-BGQX62or.css → NcAppSidebar-BJPR-mTB.css} +45 -50
  94. package/dist/assets/{NcAvatar-Dkf1ypwP.css → NcAvatar-CR4U9eTm.css} +27 -27
  95. package/dist/assets/{NcDateTimePicker-DR7jRFm4.css → NcDateTimePicker-qKgAO9KO.css} +10 -10
  96. package/dist/assets/NcListItem-BIFTbr17.css +180 -0
  97. package/dist/assets/{NcMentionBubble-BhiXWJv8.css → NcMentionBubble-7PQ8wEko.css} +9 -9
  98. package/dist/assets/{NcRichContenteditable-DvTdg1DO.css → NcRichContenteditable-BQ2-fqnd.css} +10 -10
  99. package/dist/assets/{referencePickerModal-DZ7qJeiJ.css → referencePickerModal-DWB2ghBg.css} +19 -19
  100. package/dist/chunks/{GenColors-SIdMEx1i.mjs → GenColors-D0bH59Rv.mjs} +1 -1
  101. package/dist/chunks/{GenColors-SIdMEx1i.mjs.map → GenColors-D0bH59Rv.mjs.map} +1 -1
  102. package/dist/chunks/{GenColors-DQEIzxqb.cjs → GenColors-Du2-qv6X.cjs} +1 -1
  103. package/dist/chunks/{GenColors-DQEIzxqb.cjs.map → GenColors-Du2-qv6X.cjs.map} +1 -1
  104. package/dist/chunks/{NcActionButtonGroup-B47_9Jpc.cjs → NcActionButtonGroup-Cawk1Q5J.cjs} +1 -1
  105. package/dist/chunks/{NcActionButtonGroup-B47_9Jpc.cjs.map → NcActionButtonGroup-Cawk1Q5J.cjs.map} +1 -1
  106. package/dist/chunks/{NcActionButtonGroup-D6_CIr2e.mjs → NcActionButtonGroup-jODsi2kz.mjs} +1 -1
  107. package/dist/chunks/{NcActionButtonGroup-D6_CIr2e.mjs.map → NcActionButtonGroup-jODsi2kz.mjs.map} +1 -1
  108. package/dist/chunks/{NcActionInput-GZcIfn-2.mjs → NcActionInput-BJSgHPYh.mjs} +6 -6
  109. package/dist/chunks/NcActionInput-BJSgHPYh.mjs.map +1 -0
  110. package/dist/chunks/{NcActionInput-BPPLjfW5.cjs → NcActionInput-NL0c8XAX.cjs} +3 -3
  111. package/dist/chunks/NcActionInput-NL0c8XAX.cjs.map +1 -0
  112. package/dist/chunks/{NcActions-D2wvJbMw.mjs → NcActions-B1Ue3gj8.mjs} +1 -1
  113. package/dist/chunks/{NcActions-D2wvJbMw.mjs.map → NcActions-B1Ue3gj8.mjs.map} +1 -1
  114. package/dist/chunks/{NcActions-B049TCK5.cjs → NcActions-X10TnO-4.cjs} +1 -1
  115. package/dist/chunks/{NcActions-B049TCK5.cjs.map → NcActions-X10TnO-4.cjs.map} +1 -1
  116. package/dist/chunks/{NcAppContent-CUnQ4EVa.mjs → NcAppContent-BkVLz0T8.mjs} +24 -17
  117. package/dist/chunks/NcAppContent-BkVLz0T8.mjs.map +1 -0
  118. package/dist/chunks/{NcAppContent-CuOJJPbt.cjs → NcAppContent-CxdfMOVw.cjs} +49 -42
  119. package/dist/chunks/NcAppContent-CxdfMOVw.cjs.map +1 -0
  120. package/dist/chunks/{NcAppNavigation-Dl1g_orJ.mjs → NcAppNavigation-BxaQQTmk.mjs} +3 -3
  121. package/dist/chunks/{NcAppNavigation-Dl1g_orJ.mjs.map → NcAppNavigation-BxaQQTmk.mjs.map} +1 -1
  122. package/dist/chunks/{NcAppNavigation-DtxPGDOf.cjs → NcAppNavigation-CmBNq0sh.cjs} +3 -3
  123. package/dist/chunks/{NcAppNavigation-DtxPGDOf.cjs.map → NcAppNavigation-CmBNq0sh.cjs.map} +1 -1
  124. package/dist/chunks/{NcAppNavigationCaption-g4NsNSvL.mjs → NcAppNavigationCaption-BQsUUBUS.mjs} +1 -1
  125. package/dist/chunks/{NcAppNavigationCaption-g4NsNSvL.mjs.map → NcAppNavigationCaption-BQsUUBUS.mjs.map} +1 -1
  126. package/dist/chunks/{NcAppNavigationCaption-BefNtbTx.cjs → NcAppNavigationCaption-CUJSIO54.cjs} +1 -1
  127. package/dist/chunks/{NcAppNavigationCaption-BefNtbTx.cjs.map → NcAppNavigationCaption-CUJSIO54.cjs.map} +1 -1
  128. package/dist/chunks/{NcAppNavigationItem-BSV20azN.mjs → NcAppNavigationItem-Cheox0NI.mjs} +3 -3
  129. package/dist/chunks/{NcAppNavigationItem-BSV20azN.mjs.map → NcAppNavigationItem-Cheox0NI.mjs.map} +1 -1
  130. package/dist/chunks/{NcAppNavigationItem-DVlpQH-e.cjs → NcAppNavigationItem-DdfXf1p_.cjs} +1 -1
  131. package/dist/chunks/{NcAppNavigationItem-DVlpQH-e.cjs.map → NcAppNavigationItem-DdfXf1p_.cjs.map} +1 -1
  132. package/dist/chunks/{NcAppNavigationNewItem-DG-KzABc.cjs → NcAppNavigationNewItem-BkyKxjL8.cjs} +1 -1
  133. package/dist/chunks/{NcAppNavigationNewItem-DG-KzABc.cjs.map → NcAppNavigationNewItem-BkyKxjL8.cjs.map} +1 -1
  134. package/dist/chunks/{NcAppNavigationNewItem-C7PviElx.mjs → NcAppNavigationNewItem-Dmb8qw0g.mjs} +1 -1
  135. package/dist/chunks/{NcAppNavigationNewItem-C7PviElx.mjs.map → NcAppNavigationNewItem-Dmb8qw0g.mjs.map} +1 -1
  136. package/dist/chunks/{NcAppNavigationSettings-CoutbNdC.cjs → NcAppNavigationSettings-CCjTkNf3.cjs} +2 -2
  137. package/dist/chunks/{NcAppNavigationSettings-CoutbNdC.cjs.map → NcAppNavigationSettings-CCjTkNf3.cjs.map} +1 -1
  138. package/dist/chunks/{NcAppNavigationSettings-D8MkJD-a.mjs → NcAppNavigationSettings-_O0oYU8k.mjs} +2 -2
  139. package/dist/chunks/{NcAppNavigationSettings-D8MkJD-a.mjs.map → NcAppNavigationSettings-_O0oYU8k.mjs.map} +1 -1
  140. package/dist/chunks/{NcAppNavigationToggle-n8ES2H5d.mjs → NcAppNavigationToggle-VDwkZ4nu.mjs} +1 -1
  141. package/dist/chunks/{NcAppNavigationToggle-n8ES2H5d.mjs.map → NcAppNavigationToggle-VDwkZ4nu.mjs.map} +1 -1
  142. package/dist/chunks/{NcAppNavigationToggle-ACf6tmPq.cjs → NcAppNavigationToggle-nnE6CrRb.cjs} +1 -1
  143. package/dist/chunks/{NcAppNavigationToggle-ACf6tmPq.cjs.map → NcAppNavigationToggle-nnE6CrRb.cjs.map} +1 -1
  144. package/dist/chunks/{NcAppSettingsDialog-CmQPplb5.mjs → NcAppSettingsDialog-CECnsnfv.mjs} +1 -1
  145. package/dist/chunks/{NcAppSettingsDialog-CmQPplb5.mjs.map → NcAppSettingsDialog-CECnsnfv.mjs.map} +1 -1
  146. package/dist/chunks/{NcAppSettingsDialog-DYr9eXTI.cjs → NcAppSettingsDialog-wqDewrRQ.cjs} +1 -1
  147. package/dist/chunks/{NcAppSettingsDialog-DYr9eXTI.cjs.map → NcAppSettingsDialog-wqDewrRQ.cjs.map} +1 -1
  148. package/dist/chunks/{NcAppSidebar-CSjqjYTb.mjs → NcAppSidebar-9W8ytMkj.mjs} +5 -5
  149. package/dist/chunks/{NcAppSidebar-BsbmJ5H_.cjs.map → NcAppSidebar-9W8ytMkj.mjs.map} +1 -1
  150. package/dist/chunks/{NcAppSidebar-BsbmJ5H_.cjs → NcAppSidebar-DkDtOUbu.cjs} +4 -4
  151. package/dist/chunks/{NcAppSidebar-CSjqjYTb.mjs.map → NcAppSidebar-DkDtOUbu.cjs.map} +1 -1
  152. package/dist/chunks/{NcAvatar-Bn9oT7sS.cjs → NcAvatar-CO9waN_L.cjs} +59 -59
  153. package/dist/chunks/NcAvatar-CO9waN_L.cjs.map +1 -0
  154. package/dist/chunks/{NcAvatar-BdtXzaRJ.mjs → NcAvatar-GULQurjA.mjs} +80 -77
  155. package/dist/chunks/NcAvatar-GULQurjA.mjs.map +1 -0
  156. package/dist/chunks/{NcBreadcrumb-DApyHRGZ.cjs → NcBreadcrumb-BBZofeFG.cjs} +1 -1
  157. package/dist/chunks/{NcBreadcrumb-DApyHRGZ.cjs.map → NcBreadcrumb-BBZofeFG.cjs.map} +1 -1
  158. package/dist/chunks/{NcBreadcrumb-D8yGqnFJ.mjs → NcBreadcrumb-BerOYeSO.mjs} +1 -1
  159. package/dist/chunks/{NcBreadcrumb-D8yGqnFJ.mjs.map → NcBreadcrumb-BerOYeSO.mjs.map} +1 -1
  160. package/dist/chunks/{NcBreadcrumbs-DVyfjkgH.mjs → NcBreadcrumbs-BypDKcgj.mjs} +2 -2
  161. package/dist/chunks/{NcBreadcrumbs-DVyfjkgH.mjs.map → NcBreadcrumbs-BypDKcgj.mjs.map} +1 -1
  162. package/dist/chunks/{NcBreadcrumbs-BoA2lxaY.cjs → NcBreadcrumbs-D0aoSiDN.cjs} +1 -1
  163. package/dist/chunks/{NcBreadcrumbs-BoA2lxaY.cjs.map → NcBreadcrumbs-D0aoSiDN.cjs.map} +1 -1
  164. package/dist/chunks/{NcCheckboxRadioSwitch-DiNnRbJI.mjs → NcCheckboxRadioSwitch-BcwXUfkk.mjs} +2 -2
  165. package/dist/chunks/{NcCheckboxRadioSwitch-DiNnRbJI.mjs.map → NcCheckboxRadioSwitch-BcwXUfkk.mjs.map} +1 -1
  166. package/dist/chunks/{NcCheckboxRadioSwitch-BEYj-jaN.cjs → NcCheckboxRadioSwitch-UnycoV8I.cjs} +2 -2
  167. package/dist/chunks/{NcCheckboxRadioSwitch-BEYj-jaN.cjs.map → NcCheckboxRadioSwitch-UnycoV8I.cjs.map} +1 -1
  168. package/dist/chunks/{NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Dh3GUSYj.cjs → NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Dfig4O2O.cjs} +1 -1
  169. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Dfig4O2O.cjs.map +1 -0
  170. package/dist/chunks/{NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-DMJGZndr.mjs → NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Zn4mWlPY.mjs} +1 -1
  171. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Zn4mWlPY.mjs.map +1 -0
  172. package/dist/chunks/{NcColorPicker-Acx2mFFG.cjs → NcColorPicker-BUsEYIj3.cjs} +1 -1
  173. package/dist/chunks/{NcColorPicker-Acx2mFFG.cjs.map → NcColorPicker-BUsEYIj3.cjs.map} +1 -1
  174. package/dist/chunks/{NcColorPicker-sge8Yr9m.mjs → NcColorPicker-C29EJ5Gw.mjs} +2 -2
  175. package/dist/chunks/{NcColorPicker-sge8Yr9m.mjs.map → NcColorPicker-C29EJ5Gw.mjs.map} +1 -1
  176. package/dist/chunks/{NcContent-kTlEGtKt.mjs → NcContent-CQk_EERB.mjs} +1 -1
  177. package/dist/chunks/{NcContent-kTlEGtKt.mjs.map → NcContent-CQk_EERB.mjs.map} +1 -1
  178. package/dist/chunks/{NcContent-COHfXhM3.cjs → NcContent-D-F_hXQE.cjs} +1 -1
  179. package/dist/chunks/{NcContent-COHfXhM3.cjs.map → NcContent-D-F_hXQE.cjs.map} +1 -1
  180. package/dist/chunks/{NcDashboardWidget-CL7e1yAw.mjs → NcDashboardWidget-B5kIIXjc.mjs} +3 -3
  181. package/dist/chunks/{NcDashboardWidget-CL7e1yAw.mjs.map → NcDashboardWidget-B5kIIXjc.mjs.map} +1 -1
  182. package/dist/chunks/{NcDashboardWidget-CyrKw12p.cjs → NcDashboardWidget-DLTh61Jk.cjs} +1 -1
  183. package/dist/chunks/{NcDashboardWidget-CyrKw12p.cjs.map → NcDashboardWidget-DLTh61Jk.cjs.map} +1 -1
  184. package/dist/chunks/{NcDashboardWidgetItem-C6Npm5U9.cjs → NcDashboardWidgetItem-BKhL4kyY.cjs} +1 -1
  185. package/dist/chunks/{NcDashboardWidgetItem-C6Npm5U9.cjs.map → NcDashboardWidgetItem-BKhL4kyY.cjs.map} +1 -1
  186. package/dist/chunks/{NcDashboardWidgetItem-Cq-HAbIB.mjs → NcDashboardWidgetItem-xj-DfJjn.mjs} +2 -2
  187. package/dist/chunks/{NcDashboardWidgetItem-Cq-HAbIB.mjs.map → NcDashboardWidgetItem-xj-DfJjn.mjs.map} +1 -1
  188. package/dist/chunks/{NcDateTime-B1X22iSf.mjs → NcDateTime-BeI2IjH3.mjs} +1 -1
  189. package/dist/chunks/{NcDateTime-B1X22iSf.mjs.map → NcDateTime-BeI2IjH3.mjs.map} +1 -1
  190. package/dist/chunks/{NcDateTime-CyKYSWsT.cjs → NcDateTime-DuS_515z.cjs} +1 -1
  191. package/dist/chunks/{NcDateTime-CyKYSWsT.cjs.map → NcDateTime-DuS_515z.cjs.map} +1 -1
  192. package/dist/chunks/{NcEmojiPicker-r6eAlCKl.mjs → NcEmojiPicker-028V7lKH.mjs} +4 -4
  193. package/dist/chunks/{NcEmojiPicker-r6eAlCKl.mjs.map → NcEmojiPicker-028V7lKH.mjs.map} +1 -1
  194. package/dist/chunks/{NcEmojiPicker-DuZc08BD.cjs → NcEmojiPicker-BDRuuzNw.cjs} +1 -1
  195. package/dist/chunks/{NcEmojiPicker-DuZc08BD.cjs.map → NcEmojiPicker-BDRuuzNw.cjs.map} +1 -1
  196. package/dist/chunks/{NcHeaderMenu-BUeI4DGP.cjs → NcHeaderMenu-58OTmM-5.cjs} +1 -1
  197. package/dist/chunks/{NcHeaderMenu-BUeI4DGP.cjs.map → NcHeaderMenu-58OTmM-5.cjs.map} +1 -1
  198. package/dist/chunks/{NcHeaderMenu-CXBimxcN.mjs → NcHeaderMenu-DOGXti7v.mjs} +1 -1
  199. package/dist/chunks/{NcHeaderMenu-CXBimxcN.mjs.map → NcHeaderMenu-DOGXti7v.mjs.map} +1 -1
  200. package/dist/chunks/{NcInputConfirmCancel-fwl4-RD4.mjs → NcInputConfirmCancel-D5GYt1Th.mjs} +1 -1
  201. package/dist/chunks/{NcInputConfirmCancel-fwl4-RD4.mjs.map → NcInputConfirmCancel-D5GYt1Th.mjs.map} +1 -1
  202. package/dist/chunks/{NcInputConfirmCancel-DAaMkW9I.cjs → NcInputConfirmCancel-unF2X_Ax.cjs} +1 -1
  203. package/dist/chunks/{NcInputConfirmCancel-DAaMkW9I.cjs.map → NcInputConfirmCancel-unF2X_Ax.cjs.map} +1 -1
  204. package/dist/chunks/{NcListItem-8heZoa83.cjs → NcListItem-BnsP7HQy.cjs} +6 -4
  205. package/dist/chunks/NcListItem-BnsP7HQy.cjs.map +1 -0
  206. package/dist/chunks/{NcListItem-DxnCJdGU.mjs → NcListItem-DUrmhUuv.mjs} +9 -7
  207. package/dist/chunks/NcListItem-DUrmhUuv.mjs.map +1 -0
  208. package/dist/chunks/{NcListItemIcon-DyE902SK.mjs → NcListItemIcon-9um1JI9_.mjs} +2 -2
  209. package/dist/chunks/{NcListItemIcon-DyE902SK.mjs.map → NcListItemIcon-9um1JI9_.mjs.map} +1 -1
  210. package/dist/chunks/{NcListItemIcon-D5NW3bY2.cjs → NcListItemIcon-Dd_ykGiP.cjs} +2 -2
  211. package/dist/chunks/{NcListItemIcon-D5NW3bY2.cjs.map → NcListItemIcon-Dd_ykGiP.cjs.map} +1 -1
  212. package/dist/chunks/{NcPasswordField-BeIfZq-I.mjs → NcPasswordField-BE4xwMjQ.mjs} +1 -1
  213. package/dist/chunks/{NcPasswordField-BeIfZq-I.mjs.map → NcPasswordField-BE4xwMjQ.mjs.map} +1 -1
  214. package/dist/chunks/{NcPasswordField-Bx3rarNt.cjs → NcPasswordField-ghqpLn7G.cjs} +1 -1
  215. package/dist/chunks/{NcPasswordField-Bx3rarNt.cjs.map → NcPasswordField-ghqpLn7G.cjs.map} +1 -1
  216. package/dist/chunks/{NcRelatedResourcesPanel-C8HsjDiN.mjs → NcRelatedResourcesPanel-CuvKC8Is.mjs} +1 -1
  217. package/dist/chunks/{NcRelatedResourcesPanel-C8HsjDiN.mjs.map → NcRelatedResourcesPanel-CuvKC8Is.mjs.map} +1 -1
  218. package/dist/chunks/{NcRelatedResourcesPanel-BmE02hfU.cjs → NcRelatedResourcesPanel-_r1K7ZaY.cjs} +1 -1
  219. package/dist/chunks/{NcRelatedResourcesPanel-BmE02hfU.cjs.map → NcRelatedResourcesPanel-_r1K7ZaY.cjs.map} +1 -1
  220. package/dist/chunks/{NcRichContenteditable-DVCrsKyc.cjs → NcRichContenteditable-Bm4NjGuD.cjs} +9 -13
  221. package/dist/chunks/NcRichContenteditable-Bm4NjGuD.cjs.map +1 -0
  222. package/dist/chunks/{NcRichContenteditable-COl1GELF.mjs → NcRichContenteditable-Bo4te1z-.mjs} +14 -18
  223. package/dist/chunks/NcRichContenteditable-Bo4te1z-.mjs.map +1 -0
  224. package/dist/chunks/{NcRichText-Dow2nMvP.cjs → NcRichText-BP7ht7d4.cjs} +2 -2
  225. package/dist/chunks/{NcRichText-Dow2nMvP.cjs.map → NcRichText-BP7ht7d4.cjs.map} +1 -1
  226. package/dist/chunks/{NcRichText-BEoKx41c.mjs → NcRichText-DUCudV4J.mjs} +2 -2
  227. package/dist/chunks/{NcRichText-BEoKx41c.mjs.map → NcRichText-DUCudV4J.mjs.map} +1 -1
  228. package/dist/chunks/{NcSelect-CyESQ4uQ.cjs → NcSelect-C58Mm9lZ.cjs} +1 -1
  229. package/dist/chunks/{NcSelect-CyESQ4uQ.cjs.map → NcSelect-C58Mm9lZ.cjs.map} +1 -1
  230. package/dist/chunks/{NcSelect-C_dMqtoe.mjs → NcSelect-DRVEZt73.mjs} +2 -2
  231. package/dist/chunks/{NcSelect-C_dMqtoe.mjs.map → NcSelect-DRVEZt73.mjs.map} +1 -1
  232. package/dist/chunks/{NcSelectTags-BoX-3tOa.mjs → NcSelectTags-35nlauoq.mjs} +2 -2
  233. package/dist/chunks/{NcSelectTags-BoX-3tOa.mjs.map → NcSelectTags-35nlauoq.mjs.map} +1 -1
  234. package/dist/chunks/{NcSelectTags-Bl95j2Kh.cjs → NcSelectTags-Cleij1YB.cjs} +1 -1
  235. package/dist/chunks/{NcSelectTags-Bl95j2Kh.cjs.map → NcSelectTags-Cleij1YB.cjs.map} +1 -1
  236. package/dist/chunks/{NcSettingsInputText-fLyjAE06.mjs → NcSettingsInputText-BxsnpVjM.mjs} +1 -1
  237. package/dist/chunks/{NcSettingsInputText-fLyjAE06.mjs.map → NcSettingsInputText-BxsnpVjM.mjs.map} +1 -1
  238. package/dist/chunks/{NcSettingsInputText-DlBTOZRv.cjs → NcSettingsInputText-Cy7Umyq4.cjs} +1 -1
  239. package/dist/chunks/{NcSettingsInputText-DlBTOZRv.cjs.map → NcSettingsInputText-Cy7Umyq4.cjs.map} +1 -1
  240. package/dist/chunks/{NcSettingsSection-COSdi50c.mjs → NcSettingsSection-BntYMcIt.mjs} +1 -1
  241. package/dist/chunks/{NcSettingsSection-COSdi50c.mjs.map → NcSettingsSection-BntYMcIt.mjs.map} +1 -1
  242. package/dist/chunks/{NcSettingsSection-CoHKnYDP.cjs → NcSettingsSection-fWPqQmzZ.cjs} +1 -1
  243. package/dist/chunks/{NcSettingsSection-CoHKnYDP.cjs.map → NcSettingsSection-fWPqQmzZ.cjs.map} +1 -1
  244. package/dist/chunks/{NcSettingsSelectGroup-2wsNrz7x.cjs → NcSettingsSelectGroup-68kJocD5.cjs} +1 -1
  245. package/dist/chunks/{NcSettingsSelectGroup-2wsNrz7x.cjs.map → NcSettingsSelectGroup-68kJocD5.cjs.map} +1 -1
  246. package/dist/chunks/{NcSettingsSelectGroup-BZG67QrR.mjs → NcSettingsSelectGroup-CehQI4oG.mjs} +2 -2
  247. package/dist/chunks/{NcSettingsSelectGroup-BZG67QrR.mjs.map → NcSettingsSelectGroup-CehQI4oG.mjs.map} +1 -1
  248. package/dist/chunks/{NcTextField-BEpgHsY2.mjs → NcTextField-BAKyJTQ0.mjs} +1 -1
  249. package/dist/chunks/{NcTextField-BEpgHsY2.mjs.map → NcTextField-BAKyJTQ0.mjs.map} +1 -1
  250. package/dist/chunks/{NcTextField-C-2-Of6b.cjs → NcTextField-DKppZoIo.cjs} +1 -1
  251. package/dist/chunks/{NcTextField-C-2-Of6b.cjs.map → NcTextField-DKppZoIo.cjs.map} +1 -1
  252. package/dist/chunks/{NcTimezonePicker-JJeMG5Mo.mjs → NcTimezonePicker-8juQvyGU.mjs} +2 -2
  253. package/dist/chunks/{NcTimezonePicker-JJeMG5Mo.mjs.map → NcTimezonePicker-8juQvyGU.mjs.map} +1 -1
  254. package/dist/chunks/{NcTimezonePicker-BMlKQe6-.cjs → NcTimezonePicker-D6psCKlf.cjs} +1 -1
  255. package/dist/chunks/{NcTimezonePicker-BMlKQe6-.cjs.map → NcTimezonePicker-D6psCKlf.cjs.map} +1 -1
  256. package/dist/chunks/{NcUserBubble-RZlZRmxZ.mjs → NcUserBubble-6o5fw3gB.mjs} +1 -1
  257. package/dist/chunks/{NcUserBubble-RZlZRmxZ.mjs.map → NcUserBubble-6o5fw3gB.mjs.map} +1 -1
  258. package/dist/chunks/{NcUserBubble-DMBDwtwW.cjs → NcUserBubble-J_kbLTpc.cjs} +1 -1
  259. package/dist/chunks/{NcUserBubble-DMBDwtwW.cjs.map → NcUserBubble-J_kbLTpc.cjs.map} +1 -1
  260. package/dist/chunks/{NcUserStatusIcon-7yBYL8ur.cjs → NcUserStatusIcon-Bqtgf32T.cjs} +1 -1
  261. package/dist/chunks/{NcUserStatusIcon-7yBYL8ur.cjs.map → NcUserStatusIcon-Bqtgf32T.cjs.map} +1 -1
  262. package/dist/chunks/{NcUserStatusIcon-DMQxYiY6.mjs → NcUserStatusIcon-D_ItGF5U.mjs} +1 -1
  263. package/dist/chunks/{NcUserStatusIcon-DMQxYiY6.mjs.map → NcUserStatusIcon-D_ItGF5U.mjs.map} +1 -1
  264. package/dist/chunks/{ScopeComponent-9FoStIVM.mjs → ScopeComponent-BZYPT7rR.mjs} +3 -3
  265. package/dist/chunks/{ScopeComponent-9FoStIVM.mjs.map → ScopeComponent-BZYPT7rR.mjs.map} +1 -1
  266. package/dist/chunks/{ScopeComponent-DdL1psE0.cjs → ScopeComponent-C0EJf0Ag.cjs} +1 -1
  267. package/dist/chunks/{ScopeComponent-DdL1psE0.cjs.map → ScopeComponent-C0EJf0Ag.cjs.map} +1 -1
  268. package/dist/chunks/{_l10n-DZggkcVs.cjs → _l10n-BVVVUgGU.cjs} +1 -1
  269. package/dist/chunks/_l10n-BVVVUgGU.cjs.map +1 -0
  270. package/dist/chunks/{_l10n-CAwwH-o2.mjs → _l10n-BZu8wI2q.mjs} +1 -1
  271. package/dist/chunks/_l10n-BZu8wI2q.mjs.map +1 -0
  272. package/dist/chunks/getAvatarUrl-BHpn8LgJ.mjs +32 -0
  273. package/dist/chunks/getAvatarUrl-BHpn8LgJ.mjs.map +1 -0
  274. package/dist/chunks/getAvatarUrl-CjIpoO6I.cjs +31 -0
  275. package/dist/chunks/getAvatarUrl-CjIpoO6I.cjs.map +1 -0
  276. package/dist/chunks/{index-CVsxVZon.cjs → index-CMnR5Pf6.cjs} +7 -12
  277. package/dist/chunks/index-CMnR5Pf6.cjs.map +1 -0
  278. package/dist/chunks/{index-BAVa4G2v.mjs → index-uiNhPYvS.mjs} +23 -28
  279. package/dist/chunks/index-uiNhPYvS.mjs.map +1 -0
  280. package/dist/chunks/{referencePickerModal-Ig4S8WI3.cjs → referencePickerModal-CoaOqLOw.cjs} +76 -73
  281. package/dist/chunks/referencePickerModal-CoaOqLOw.cjs.map +1 -0
  282. package/dist/chunks/{referencePickerModal-CtIcJRWz.mjs → referencePickerModal-DJNSkODj.mjs} +133 -130
  283. package/dist/chunks/referencePickerModal-DJNSkODj.mjs.map +1 -0
  284. package/dist/chunks/{usernameToColor-7pQQJMR_.cjs → usernameToColor-B7GSjspk.cjs} +1 -1
  285. package/dist/chunks/{usernameToColor-7pQQJMR_.cjs.map → usernameToColor-B7GSjspk.cjs.map} +1 -1
  286. package/dist/chunks/{usernameToColor-3Z3jKEos.mjs → usernameToColor-CgqbKJ4t.mjs} +1 -1
  287. package/dist/chunks/{usernameToColor-3Z3jKEos.mjs.map → usernameToColor-CgqbKJ4t.mjs.map} +1 -1
  288. package/dist/index.cjs +4 -4
  289. package/dist/index.mjs +43 -43
  290. package/dist/utils/getAvatarUrl.d.ts +22 -0
  291. package/package.json +1 -1
  292. package/dist/assets/NcListItem-DLFj1G31.css +0 -175
  293. package/dist/chunks/NcActionInput-BPPLjfW5.cjs.map +0 -1
  294. package/dist/chunks/NcActionInput-GZcIfn-2.mjs.map +0 -1
  295. package/dist/chunks/NcAppContent-CUnQ4EVa.mjs.map +0 -1
  296. package/dist/chunks/NcAppContent-CuOJJPbt.cjs.map +0 -1
  297. package/dist/chunks/NcAvatar-BdtXzaRJ.mjs.map +0 -1
  298. package/dist/chunks/NcAvatar-Bn9oT7sS.cjs.map +0 -1
  299. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-DMJGZndr.mjs.map +0 -1
  300. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_2603be83_lang-Dh3GUSYj.cjs.map +0 -1
  301. package/dist/chunks/NcListItem-8heZoa83.cjs.map +0 -1
  302. package/dist/chunks/NcListItem-DxnCJdGU.mjs.map +0 -1
  303. package/dist/chunks/NcRichContenteditable-COl1GELF.mjs.map +0 -1
  304. package/dist/chunks/NcRichContenteditable-DVCrsKyc.cjs.map +0 -1
  305. package/dist/chunks/_l10n-CAwwH-o2.mjs.map +0 -1
  306. package/dist/chunks/_l10n-DZggkcVs.cjs.map +0 -1
  307. package/dist/chunks/index-BAVa4G2v.mjs.map +0 -1
  308. package/dist/chunks/index-CVsxVZon.cjs.map +0 -1
  309. package/dist/chunks/referencePickerModal-CtIcJRWz.mjs.map +0 -1
  310. package/dist/chunks/referencePickerModal-Ig4S8WI3.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,18 +1,18 @@
1
1
  require('./assets/NcRichText-D2BBsB-_.css');
2
2
  "use strict";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const p = require("./Components/NcActionButton.cjs"), l = require("./chunks/NcActionButtonGroup-B47_9Jpc.cjs"), g = require("./Components/NcActionCaption.cjs"), d = require("./Components/NcActionCheckbox.cjs"), A = require("./chunks/NcActionInput-BPPLjfW5.cjs"), m = require("./Components/NcActionLink.cjs"), S = require("./Components/NcActionRadio.cjs"), C = require("./Components/NcActionRouter.cjs"), b = require("./chunks/NcActions-B049TCK5.cjs"), q = require("./Components/NcActionSeparator.cjs"), I = require("./Components/NcActionText.cjs"), v = require("./Components/NcActionTextEditable.cjs"), P = require("./chunks/NcAppContent-CuOJJPbt.cjs"), T = require("./Components/NcAppContentDetails.cjs"), k = require("./Components/NcAppContentList.cjs"), h = require("./chunks/NcAppNavigation-DtxPGDOf.cjs"), B = require("./chunks/NcAppNavigationCaption-BefNtbTx.cjs"), _ = require("./Components/NcAppNavigationIconBullet.cjs"), R = require("./chunks/NcAppNavigationItem-DVlpQH-e.cjs"), D = require("./Components/NcAppNavigationList.cjs"), x = require("./Components/NcAppNavigationNew.cjs"), L = require("./chunks/NcAppNavigationNewItem-DG-KzABc.cjs"), M = require("./chunks/NcAppNavigationSettings-CoutbNdC.cjs"), E = require("./Components/NcAppNavigationSpacer.cjs"), F = require("./chunks/NcAppSettingsDialog-DYr9eXTI.cjs"), W = require("./Components/NcAppSettingsSection.cjs"), w = require("./chunks/NcAppSidebar-BsbmJ5H_.cjs"), y = require("./Components/NcAppSidebarTab.cjs"), s = require("./chunks/NcAvatar-Bn9oT7sS.cjs"), j = require("./chunks/NcBreadcrumb-DApyHRGZ.cjs"), O = require("./chunks/NcBreadcrumbs-BoA2lxaY.cjs"), f = require("./Components/NcButton.cjs"), G = require("./chunks/NcCheckboxRadioSwitch-BEYj-jaN.cjs"), H = require("./chunks/NcColorPicker-Acx2mFFG.cjs"), U = require("./chunks/NcContent-COHfXhM3.cjs"), z = require("./Components/NcCounterBubble.cjs"), V = require("./chunks/NcDashboardWidget-CyrKw12p.cjs"), K = require("./chunks/NcDashboardWidgetItem-C6Npm5U9.cjs"), a = require("./chunks/NcDateTime-CyKYSWsT.cjs"), J = require("./Components/NcDateTimePicker.cjs"), Q = require("./Components/NcDateTimePickerNative.cjs"), X = require("./chunks/NcDialog-C6nYgBDF.cjs"), Y = require("./chunks/NcDialogButton-D7ibBxsQ.cjs"), Z = require("./chunks/NcEmojiPicker-DuZc08BD.cjs"), $ = require("./Components/NcEmptyContent.cjs"), ee = require("./Components/NcGuestContent.cjs"), te = require("./chunks/NcHeaderMenu-BUeI4DGP.cjs"), ce = require("./chunks/index-Cke9rKBg.cjs"), ie = require("./chunks/NcIconSvgWrapper-kIn1eQyv.cjs"), oe = require("./chunks/NcListItem-8heZoa83.cjs"), ne = require("./chunks/NcListItemIcon-D5NW3bY2.cjs"), re = require("./Components/NcLoadingIcon.cjs"), Ne = require("./Components/NcModal.cjs"), se = require("./Components/NcNoteCard.cjs"), ae = require("./chunks/NcPasswordField-Bx3rarNt.cjs"), ue = require("./chunks/NcPopover-h-t7Dnjk.cjs"), pe = require("./chunks/NcProgressBar-BYk5hfPI.cjs"), le = require("./chunks/NcRelatedResourcesPanel-BmE02hfU.cjs"), u = require("./chunks/index-CVsxVZon.cjs"), r = require("./chunks/NcRichContenteditable-DVCrsKyc.cjs"), ge = require("./chunks/NcRichText-Dow2nMvP.cjs"), e = require("./chunks/index-Bh9FEWbr.cjs");
4
+ const p = require("./Components/NcActionButton.cjs"), l = require("./chunks/NcActionButtonGroup-Cawk1Q5J.cjs"), g = require("./Components/NcActionCaption.cjs"), d = require("./Components/NcActionCheckbox.cjs"), A = require("./chunks/NcActionInput-NL0c8XAX.cjs"), m = require("./Components/NcActionLink.cjs"), S = require("./Components/NcActionRadio.cjs"), C = require("./Components/NcActionRouter.cjs"), b = require("./chunks/NcActions-X10TnO-4.cjs"), q = require("./Components/NcActionSeparator.cjs"), I = require("./Components/NcActionText.cjs"), v = require("./Components/NcActionTextEditable.cjs"), P = require("./chunks/NcAppContent-CxdfMOVw.cjs"), T = require("./Components/NcAppContentDetails.cjs"), k = require("./Components/NcAppContentList.cjs"), h = require("./chunks/NcAppNavigation-CmBNq0sh.cjs"), B = require("./chunks/NcAppNavigationCaption-CUJSIO54.cjs"), _ = require("./Components/NcAppNavigationIconBullet.cjs"), R = require("./chunks/NcAppNavigationItem-DdfXf1p_.cjs"), D = require("./Components/NcAppNavigationList.cjs"), x = require("./Components/NcAppNavigationNew.cjs"), L = require("./chunks/NcAppNavigationNewItem-BkyKxjL8.cjs"), M = require("./chunks/NcAppNavigationSettings-CCjTkNf3.cjs"), E = require("./Components/NcAppNavigationSpacer.cjs"), F = require("./chunks/NcAppSettingsDialog-wqDewrRQ.cjs"), W = require("./Components/NcAppSettingsSection.cjs"), w = require("./chunks/NcAppSidebar-DkDtOUbu.cjs"), y = require("./Components/NcAppSidebarTab.cjs"), s = require("./chunks/NcAvatar-CO9waN_L.cjs"), j = require("./chunks/NcBreadcrumb-BBZofeFG.cjs"), O = require("./chunks/NcBreadcrumbs-D0aoSiDN.cjs"), f = require("./Components/NcButton.cjs"), G = require("./chunks/NcCheckboxRadioSwitch-UnycoV8I.cjs"), H = require("./chunks/NcColorPicker-BUsEYIj3.cjs"), U = require("./chunks/NcContent-D-F_hXQE.cjs"), z = require("./Components/NcCounterBubble.cjs"), V = require("./chunks/NcDashboardWidget-DLTh61Jk.cjs"), K = require("./chunks/NcDashboardWidgetItem-BKhL4kyY.cjs"), a = require("./chunks/NcDateTime-DuS_515z.cjs"), J = require("./Components/NcDateTimePicker.cjs"), Q = require("./Components/NcDateTimePickerNative.cjs"), X = require("./chunks/NcDialog-C6nYgBDF.cjs"), Y = require("./chunks/NcDialogButton-D7ibBxsQ.cjs"), Z = require("./chunks/NcEmojiPicker-BDRuuzNw.cjs"), $ = require("./Components/NcEmptyContent.cjs"), ee = require("./Components/NcGuestContent.cjs"), te = require("./chunks/NcHeaderMenu-58OTmM-5.cjs"), ce = require("./chunks/index-Cke9rKBg.cjs"), ie = require("./chunks/NcIconSvgWrapper-kIn1eQyv.cjs"), oe = require("./chunks/NcListItem-BnsP7HQy.cjs"), ne = require("./chunks/NcListItemIcon-Dd_ykGiP.cjs"), re = require("./Components/NcLoadingIcon.cjs"), Ne = require("./Components/NcModal.cjs"), se = require("./Components/NcNoteCard.cjs"), ae = require("./chunks/NcPasswordField-ghqpLn7G.cjs"), ue = require("./chunks/NcPopover-h-t7Dnjk.cjs"), pe = require("./chunks/NcProgressBar-BYk5hfPI.cjs"), le = require("./chunks/NcRelatedResourcesPanel-_r1K7ZaY.cjs"), u = require("./chunks/index-CMnR5Pf6.cjs"), r = require("./chunks/NcRichContenteditable-Bm4NjGuD.cjs"), ge = require("./chunks/NcRichText-BP7ht7d4.cjs"), e = require("./chunks/index-Bh9FEWbr.cjs");
5
5
  require("@vueuse/core");
6
6
  require("vue");
7
- const c = require("./chunks/referencePickerModal-Ig4S8WI3.cjs");
7
+ const c = require("./chunks/referencePickerModal-CoaOqLOw.cjs");
8
8
  require("unist-util-visit");
9
9
  require("unist-builder");
10
10
  require("@nextcloud/router");
11
11
  require("@nextcloud/axios");
12
12
  ;/* empty css */
13
- const de = require("./chunks/NcSelect-CyESQ4uQ.cjs"), Ae = require("./chunks/NcTextField-C-2-Of6b.cjs");
13
+ const de = require("./chunks/NcSelect-C58Mm9lZ.cjs"), Ae = require("./chunks/NcTextField-DKppZoIo.cjs");
14
14
  require("@nextcloud/event-bus");
15
- const me = require("./chunks/NcSavingIndicatorIcon-BTvUkUn-.cjs"), Se = require("./chunks/NcSelectTags-Bl95j2Kh.cjs"), Ce = require("./chunks/NcSettingsInputText-DlBTOZRv.cjs"), be = require("./chunks/NcSettingsSection-CoHKnYDP.cjs"), qe = require("./chunks/NcSettingsSelectGroup-2wsNrz7x.cjs"), Ie = require("./chunks/NcTimezonePicker-BMlKQe6-.cjs"), ve = require("./chunks/NcUserBubble-DMBDwtwW.cjs"), Pe = require("./chunks/NcUserStatusIcon-7yBYL8ur.cjs"), Te = require("./Components/NcTextArea.cjs"), ke = require("./Composables/useIsFullscreen.cjs"), i = require("./Composables/useIsMobile.cjs"), o = require("./chunks/emoji-DEH9dtOa.cjs"), Re = require("./chunks/usernameToColor-7pQQJMR_.cjs"), he = require("./Directives/Focus.cjs"), Be = require("./Directives/Linkify.cjs");
15
+ const me = require("./chunks/NcSavingIndicatorIcon-BTvUkUn-.cjs"), Se = require("./chunks/NcSelectTags-Cleij1YB.cjs"), Ce = require("./chunks/NcSettingsInputText-Cy7Umyq4.cjs"), be = require("./chunks/NcSettingsSection-fWPqQmzZ.cjs"), qe = require("./chunks/NcSettingsSelectGroup-68kJocD5.cjs"), Ie = require("./chunks/NcTimezonePicker-D6psCKlf.cjs"), ve = require("./chunks/NcUserBubble-J_kbLTpc.cjs"), Pe = require("./chunks/NcUserStatusIcon-Bqtgf32T.cjs"), Te = require("./Components/NcTextArea.cjs"), ke = require("./Composables/useIsFullscreen.cjs"), i = require("./Composables/useIsMobile.cjs"), o = require("./chunks/emoji-DEH9dtOa.cjs"), Re = require("./chunks/usernameToColor-B7GSjspk.cjs"), he = require("./Directives/Focus.cjs"), Be = require("./Directives/Linkify.cjs");
16
16
  require("./Directives/Tooltip.cjs");
17
17
  const De = require("./Mixins/clickOutsideOptions.cjs"), xe = require("./Mixins/isFullscreen.cjs"), Le = require("./Mixins/isMobile.cjs"), _e = require("floating-vue");
18
18
  /**
package/dist/index.mjs CHANGED
@@ -1,93 +1,93 @@
1
1
  import './assets/NcRichText-D2BBsB-_.css';
2
2
  import i from "./Components/NcActionButton.mjs";
3
- import { N as e } from "./chunks/NcActionButtonGroup-D6_CIr2e.mjs";
3
+ import { N as e } from "./chunks/NcActionButtonGroup-jODsi2kz.mjs";
4
4
  import m from "./Components/NcActionCaption.mjs";
5
5
  import a from "./Components/NcActionCheckbox.mjs";
6
- import { N as p } from "./chunks/NcActionInput-GZcIfn-2.mjs";
6
+ import { N as p } from "./chunks/NcActionInput-BJSgHPYh.mjs";
7
7
  import c from "./Components/NcActionLink.mjs";
8
8
  import s from "./Components/NcActionRadio.mjs";
9
9
  import N from "./Components/NcActionRouter.mjs";
10
- import { N as n } from "./chunks/NcActions-D2wvJbMw.mjs";
10
+ import { N as n } from "./chunks/NcActions-B1Ue3gj8.mjs";
11
11
  import f from "./Components/NcActionSeparator.mjs";
12
12
  import l from "./Components/NcActionText.mjs";
13
13
  import u from "./Components/NcActionTextEditable.mjs";
14
- import { N as d } from "./chunks/NcAppContent-CUnQ4EVa.mjs";
14
+ import { N as d } from "./chunks/NcAppContent-BkVLz0T8.mjs";
15
15
  import g from "./Components/NcAppContentDetails.mjs";
16
16
  import A from "./Components/NcAppContentList.mjs";
17
- import { N as S } from "./chunks/NcAppNavigation-Dl1g_orJ.mjs";
18
- import { N as b } from "./chunks/NcAppNavigationCaption-g4NsNSvL.mjs";
17
+ import { N as S } from "./chunks/NcAppNavigation-BxaQQTmk.mjs";
18
+ import { N as b } from "./chunks/NcAppNavigationCaption-BQsUUBUS.mjs";
19
19
  import v from "./Components/NcAppNavigationIconBullet.mjs";
20
- import { N as T } from "./chunks/NcAppNavigationItem-BSV20azN.mjs";
20
+ import { N as T } from "./chunks/NcAppNavigationItem-Cheox0NI.mjs";
21
21
  import k from "./Components/NcAppNavigationList.mjs";
22
22
  import P from "./Components/NcAppNavigationNew.mjs";
23
- import { N as x } from "./chunks/NcAppNavigationNewItem-C7PviElx.mjs";
24
- import { N as C } from "./chunks/NcAppNavigationSettings-D8MkJD-a.mjs";
23
+ import { N as x } from "./chunks/NcAppNavigationNewItem-Dmb8qw0g.mjs";
24
+ import { N as C } from "./chunks/NcAppNavigationSettings-_O0oYU8k.mjs";
25
25
  import I from "./Components/NcAppNavigationSpacer.mjs";
26
- import { N as h } from "./chunks/NcAppSettingsDialog-CmQPplb5.mjs";
26
+ import { N as h } from "./chunks/NcAppSettingsDialog-CECnsnfv.mjs";
27
27
  import E from "./Components/NcAppSettingsSection.mjs";
28
- import { N as B } from "./chunks/NcAppSidebar-CSjqjYTb.mjs";
28
+ import { N as B } from "./chunks/NcAppSidebar-9W8ytMkj.mjs";
29
29
  import R from "./Components/NcAppSidebarTab.mjs";
30
- import { N as L } from "./chunks/NcAvatar-BdtXzaRJ.mjs";
31
- import { u as ct } from "./chunks/NcAvatar-BdtXzaRJ.mjs";
32
- import { N as y } from "./chunks/NcBreadcrumb-D8yGqnFJ.mjs";
33
- import { N as M } from "./chunks/NcBreadcrumbs-DVyfjkgH.mjs";
30
+ import { N as L } from "./chunks/NcAvatar-GULQurjA.mjs";
31
+ import { u as ct } from "./chunks/NcAvatar-GULQurjA.mjs";
32
+ import { N as y } from "./chunks/NcBreadcrumb-BerOYeSO.mjs";
33
+ import { N as M } from "./chunks/NcBreadcrumbs-BypDKcgj.mjs";
34
34
  import O from "./Components/NcButton.mjs";
35
- import { N as D } from "./chunks/NcCheckboxRadioSwitch-DiNnRbJI.mjs";
36
- import { N as _ } from "./chunks/NcColorPicker-sge8Yr9m.mjs";
37
- import { N as j } from "./chunks/NcContent-kTlEGtKt.mjs";
35
+ import { N as D } from "./chunks/NcCheckboxRadioSwitch-BcwXUfkk.mjs";
36
+ import { N as _ } from "./chunks/NcColorPicker-C29EJ5Gw.mjs";
37
+ import { N as j } from "./chunks/NcContent-CQk_EERB.mjs";
38
38
  import F from "./Components/NcCounterBubble.mjs";
39
- import { N as W } from "./chunks/NcDashboardWidget-CL7e1yAw.mjs";
40
- import { N as w } from "./chunks/NcDashboardWidgetItem-Cq-HAbIB.mjs";
41
- import { N as z } from "./chunks/NcDateTime-B1X22iSf.mjs";
42
- import { u as Nt } from "./chunks/NcDateTime-B1X22iSf.mjs";
39
+ import { N as W } from "./chunks/NcDashboardWidget-B5kIIXjc.mjs";
40
+ import { N as w } from "./chunks/NcDashboardWidgetItem-xj-DfJjn.mjs";
41
+ import { N as z } from "./chunks/NcDateTime-BeI2IjH3.mjs";
42
+ import { u as Nt } from "./chunks/NcDateTime-BeI2IjH3.mjs";
43
43
  import G from "./Components/NcDateTimePicker.mjs";
44
44
  import V from "./Components/NcDateTimePickerNative.mjs";
45
45
  import { N as H } from "./chunks/NcDialog-D6YSjidf.mjs";
46
46
  import { N as K } from "./chunks/NcDialogButton-DQFoaN7q.mjs";
47
- import { N as U } from "./chunks/NcEmojiPicker-r6eAlCKl.mjs";
47
+ import { N as U } from "./chunks/NcEmojiPicker-028V7lKH.mjs";
48
48
  import $ from "./Components/NcEmptyContent.mjs";
49
49
  import q from "./Components/NcGuestContent.mjs";
50
- import { N as J } from "./chunks/NcHeaderMenu-CXBimxcN.mjs";
50
+ import { N as J } from "./chunks/NcHeaderMenu-DOGXti7v.mjs";
51
51
  import { N as Q } from "./chunks/index-CnpswYi6.mjs";
52
52
  import { N as X } from "./chunks/NcIconSvgWrapper-BTdzvQGV.mjs";
53
- import { N as Y } from "./chunks/NcListItem-DxnCJdGU.mjs";
54
- import { N as Z } from "./chunks/NcListItemIcon-DyE902SK.mjs";
53
+ import { N as Y } from "./chunks/NcListItem-DUrmhUuv.mjs";
54
+ import { N as Z } from "./chunks/NcListItemIcon-9um1JI9_.mjs";
55
55
  import oo from "./Components/NcLoadingIcon.mjs";
56
56
  import ro from "./Components/NcModal.mjs";
57
57
  import to from "./Components/NcNoteCard.mjs";
58
- import { N as io } from "./chunks/NcPasswordField-BeIfZq-I.mjs";
58
+ import { N as io } from "./chunks/NcPasswordField-BE4xwMjQ.mjs";
59
59
  import { N as eo } from "./chunks/NcPopover--V3R3EKV.mjs";
60
60
  import { N as mo } from "./chunks/NcProgressBar-DDAeXyp8.mjs";
61
- import { N as ao } from "./chunks/NcRelatedResourcesPanel-C8HsjDiN.mjs";
62
- import { N as po } from "./chunks/index-BAVa4G2v.mjs";
63
- import { r as ft } from "./chunks/index-BAVa4G2v.mjs";
64
- import { N as co, a as so } from "./chunks/NcRichContenteditable-COl1GELF.mjs";
65
- import { N as No } from "./chunks/NcRichText-BEoKx41c.mjs";
61
+ import { N as ao } from "./chunks/NcRelatedResourcesPanel-CuvKC8Is.mjs";
62
+ import { N as po } from "./chunks/index-uiNhPYvS.mjs";
63
+ import { r as ft } from "./chunks/index-uiNhPYvS.mjs";
64
+ import { N as co, a as so } from "./chunks/NcRichContenteditable-Bo4te1z-.mjs";
65
+ import { N as No } from "./chunks/NcRichText-DUCudV4J.mjs";
66
66
  import { N as ut, h as dt, d as gt, i as At, b as St, r as bt, c as vt, a as Tt } from "./chunks/index-CU14QsCg.mjs";
67
67
  import "@vueuse/core";
68
68
  import "vue";
69
- import { a as Pt, g as xt, b as Ct, c as It, d as ht, s as Et } from "./chunks/referencePickerModal-CtIcJRWz.mjs";
69
+ import { a as Pt, g as xt, b as Ct, c as It, d as ht, s as Et } from "./chunks/referencePickerModal-DJNSkODj.mjs";
70
70
  import "unist-util-visit";
71
71
  import "unist-builder";
72
72
  import "@nextcloud/router";
73
73
  import "@nextcloud/axios";
74
74
  /* empty css */
75
- import { N as no } from "./chunks/NcSelect-C_dMqtoe.mjs";
76
- import { N as fo } from "./chunks/NcTextField-BEpgHsY2.mjs";
75
+ import { N as no } from "./chunks/NcSelect-DRVEZt73.mjs";
76
+ import { N as fo } from "./chunks/NcTextField-BAKyJTQ0.mjs";
77
77
  import "@nextcloud/event-bus";
78
78
  import { N as lo } from "./chunks/NcSavingIndicatorIcon-Bf0SEmgS.mjs";
79
- import { N as uo } from "./chunks/NcSelectTags-BoX-3tOa.mjs";
80
- import { N as go } from "./chunks/NcSettingsInputText-fLyjAE06.mjs";
81
- import { N as Ao } from "./chunks/NcSettingsSection-COSdi50c.mjs";
82
- import { N as So } from "./chunks/NcSettingsSelectGroup-BZG67QrR.mjs";
83
- import { N as bo } from "./chunks/NcTimezonePicker-JJeMG5Mo.mjs";
84
- import { N as vo } from "./chunks/NcUserBubble-RZlZRmxZ.mjs";
85
- import { N as To } from "./chunks/NcUserStatusIcon-DMQxYiY6.mjs";
79
+ import { N as uo } from "./chunks/NcSelectTags-35nlauoq.mjs";
80
+ import { N as go } from "./chunks/NcSettingsInputText-BxsnpVjM.mjs";
81
+ import { N as Ao } from "./chunks/NcSettingsSection-BntYMcIt.mjs";
82
+ import { N as So } from "./chunks/NcSettingsSelectGroup-CehQI4oG.mjs";
83
+ import { N as bo } from "./chunks/NcTimezonePicker-8juQvyGU.mjs";
84
+ import { N as vo } from "./chunks/NcUserBubble-6o5fw3gB.mjs";
85
+ import { N as To } from "./chunks/NcUserStatusIcon-D_ItGF5U.mjs";
86
86
  import ko from "./Components/NcTextArea.mjs";
87
87
  import { isFullscreenState as Rt, useIsFullscreen as Lt } from "./Composables/useIsFullscreen.mjs";
88
88
  import { MOBILE_BREAKPOINT as Mt, MOBILE_SMALL_BREAKPOINT as Ot, isMobileState as Dt, useIsMobile as _t, useIsSmallMobile as jt } from "./Composables/useIsMobile.mjs";
89
89
  import { E as Wt, a as wt, e as zt, g as Gt, s as Vt } from "./chunks/emoji-k4gWHxrE.mjs";
90
- import { u as Kt } from "./chunks/usernameToColor-3Z3jKEos.mjs";
90
+ import { u as Kt } from "./chunks/usernameToColor-CgqbKJ4t.mjs";
91
91
  import { directive as Po } from "./Directives/Focus.mjs";
92
92
  import { directive as xo } from "./Directives/Linkify.mjs";
93
93
  import "./Directives/Tooltip.mjs";
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @copyright Copyright (c) 2024 Maksim Sukharev <antreesy.web@gmail.com>
3
+ *
4
+ * @author Maksim Sukharev <antreesy.web@gmail.com>
5
+ *
6
+ * @license AGPL-3.0-or-later
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+ export declare const getAvatarUrl: (user: string, size: number | string, isGuest?: boolean) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextcloud/vue",
3
- "version": "8.10.0",
3
+ "version": "8.11.1",
4
4
  "description": "Nextcloud vue components",
5
5
  "keywords": [
6
6
  "vuejs",
@@ -1,175 +0,0 @@
1
- @charset "UTF-8";
2
- /**
3
- * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
4
- *
5
- * @author John Molakvoæ <skjnldsv@protonmail.com>
6
- *
7
- * @license GNU AGPL version 3 or any later version
8
- *
9
- * This program is free software: you can redistribute it and/or modify
10
- * it under the terms of the GNU Affero General Public License as
11
- * published by the Free Software Foundation, either version 3 of the
12
- * License, or (at your option) any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- * GNU Affero General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU Affero General Public License
20
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
- *
22
- */
23
- .material-design-icon[data-v-2318213f] {
24
- display: flex;
25
- align-self: center;
26
- justify-self: center;
27
- align-items: center;
28
- justify-content: center;
29
- }
30
- .list-item__wrapper[data-v-2318213f] {
31
- display: flex;
32
- position: relative;
33
- width: 100%;
34
- }
35
- .list-item__wrapper--active .list-item[data-v-2318213f],
36
- .list-item__wrapper.active .list-item[data-v-2318213f] {
37
- background-color: var(--color-primary-element);
38
- }
39
- .list-item__wrapper--active .list-item[data-v-2318213f]:hover,
40
- .list-item__wrapper--active .list-item[data-v-2318213f]:focus-within,
41
- .list-item__wrapper--active .list-item[data-v-2318213f]:has(:focus-visible),
42
- .list-item__wrapper--active .list-item[data-v-2318213f]:has(:active),
43
- .list-item__wrapper.active .list-item[data-v-2318213f]:hover,
44
- .list-item__wrapper.active .list-item[data-v-2318213f]:focus-within,
45
- .list-item__wrapper.active .list-item[data-v-2318213f]:has(:focus-visible),
46
- .list-item__wrapper.active .list-item[data-v-2318213f]:has(:active) {
47
- background-color: var(--color-primary-element-hover);
48
- }
49
- .list-item__wrapper--active .list-item-content__name[data-v-2318213f],
50
- .list-item__wrapper--active .list-item-content__subname[data-v-2318213f],
51
- .list-item__wrapper--active .list-item-content__details[data-v-2318213f],
52
- .list-item__wrapper--active .list-item-details__details[data-v-2318213f],
53
- .list-item__wrapper.active .list-item-content__name[data-v-2318213f],
54
- .list-item__wrapper.active .list-item-content__subname[data-v-2318213f],
55
- .list-item__wrapper.active .list-item-content__details[data-v-2318213f],
56
- .list-item__wrapper.active .list-item-details__details[data-v-2318213f] {
57
- color: var(--color-primary-element-text) !important;
58
- }
59
- .list-item__wrapper .list-item-content__name[data-v-2318213f],
60
- .list-item__wrapper .list-item-content__subname[data-v-2318213f],
61
- .list-item__wrapper .list-item-content__details[data-v-2318213f],
62
- .list-item__wrapper .list-item-details__details[data-v-2318213f] {
63
- white-space: nowrap;
64
- margin: 0 auto 0 0;
65
- overflow: hidden;
66
- text-overflow: ellipsis;
67
- }
68
- .list-item-content__name[data-v-2318213f] {
69
- min-width: 100px;
70
- max-width: 300px;
71
- flex: 1 1 10%;
72
- text-overflow: ellipsis;
73
- }
74
- .list-item-content__subname[data-v-2318213f] {
75
- flex: 1 0;
76
- min-width: 0;
77
- }
78
- .list-item[data-v-2318213f] {
79
- box-sizing: border-box;
80
- display: flex;
81
- position: relative;
82
- flex: 0 0 auto;
83
- justify-content: flex-start;
84
- padding: 8px 10px;
85
- margin: 4px;
86
- width: calc(100% - 8px);
87
- border-radius: 32px;
88
- cursor: pointer;
89
- transition: background-color var(--animation-quick) ease-in-out;
90
- list-style: none;
91
- }
92
- .list-item[data-v-2318213f]:hover,
93
- .list-item[data-v-2318213f]:focus-within,
94
- .list-item[data-v-2318213f]:has(:active),
95
- .list-item[data-v-2318213f]:has(:focus-visible) {
96
- background-color: var(--color-background-hover);
97
- }
98
- .list-item[data-v-2318213f]:has(.list-item__anchor:focus-visible) {
99
- outline: 2px solid var(--color-main-text);
100
- box-shadow: 0 0 0 4px var(--color-main-background);
101
- }
102
- .list-item--compact[data-v-2318213f] {
103
- padding: 4px 10px;
104
- }
105
- .list-item--compact .list-item__anchor .line-one[data-v-2318213f],
106
- .list-item--compact .list-item__anchor .line-two[data-v-2318213f] {
107
- margin-block: -4px;
108
- }
109
- .list-item .list-item-content__details[data-v-2318213f] {
110
- display: flex;
111
- flex-direction: row;
112
- justify-content: end;
113
- }
114
- .list-item--one-line[data-v-2318213f] {
115
- padding: 0 9px;
116
- margin: 2px;
117
- }
118
- .list-item--one-line .list-item-content__main[data-v-2318213f] {
119
- display: flex;
120
- justify-content: start;
121
- gap: 12px;
122
- min-width: 0;
123
- }
124
- .list-item--one-line .list-item-content__details[data-v-2318213f] {
125
- display: flex;
126
- flex-direction: row;
127
- justify-content: end;
128
- }
129
- .list-item__anchor[data-v-2318213f] {
130
- display: flex;
131
- flex: 1 0 auto;
132
- align-items: center;
133
- height: var(--default-clickable-area);
134
- min-width: 0;
135
- }
136
- .list-item__anchor[data-v-2318213f]:focus-visible {
137
- outline: none;
138
- }
139
- .list-item-content[data-v-2318213f] {
140
- display: flex;
141
- flex: 1 0;
142
- justify-content: space-between;
143
- padding-left: 8px;
144
- min-width: 0;
145
- }
146
- .list-item-content__main[data-v-2318213f] {
147
- flex: 1 0;
148
- width: 0;
149
- margin: auto 0;
150
- }
151
- .list-item-content__main--oneline[data-v-2318213f] {
152
- display: flex;
153
- }
154
- .list-item-content__actions[data-v-2318213f] {
155
- flex: 0 0 auto;
156
- align-self: center;
157
- justify-content: center;
158
- margin-left: 4px;
159
- }
160
- .list-item-details__details[data-v-2318213f] {
161
- color: var(--color-text-maxcontrast);
162
- margin: 0 9px;
163
- font-weight: 400;
164
- }
165
- .list-item-details__extra[data-v-2318213f] {
166
- margin: 2px 4px 0;
167
- display: flex;
168
- align-items: center;
169
- }
170
- .list-item-details__indicator[data-v-2318213f] {
171
- margin: 0 5px;
172
- }
173
- .list-item__extra[data-v-2318213f] {
174
- margin-top: 4px;
175
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"NcActionInput-BPPLjfW5.cjs","sources":["../../src/components/NcActionInput/NcActionInput.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\n - @author Marco Ambrosini <marcoambrosini@icloud.com>\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<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\nIt is recommended to not only provide a placeholder, but also a label.\nThe label should describe what input is expected and the placehold what format the input should have.\n\nAll undocumented attributes will be bound to the input, the datepicker or the select component, e.g. `maxlength`, `not-before`.\nFor the `NcSelect` component, all events will be passed through. Please see the `NcSelect` component's documentation for more details and examples.\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionInput :value.sync=\"text\" :label-outside=\"true\" label=\"Label outside the input\">\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</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" :show-trailing-button=\"false\" label=\"Input without trailing button\">\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</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" label=\"Input with placeholder\">\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\tThis is the placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" label=\"Password with visible label\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" :show-trailing-button=\"false\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"color\" :value.sync=\"color\" label=\"Favorite color\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Eyedropper :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tColor placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput label=\"Visible label\" :value.sync=\"text\">\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\tInput with visible label\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :disabled=\"true\" label=\"This is a disabled input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\" isNativePicker :value=\"new Date()\">\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\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\">\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\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"multiselect\" :options=\"['Apple', 'Banana', 'Cherry']\">\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\tPlease pick a fruit\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\tv-model=\"multiSelected\"\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tlabel=\"label\"\n\t\t\t\ttrack-by=\"id\"\n\t\t\t\t:append-to-body=\"true\"\n\t\t\t\t:multiple=\"true\"\n\t\t\t\t:options=\"[{label:'Apple', id: 'apple'}, {label:'Banana', id: 'banana'}, {label:'Cherry', id: 'cherry'}]\">\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\tPlease pick a fruit object\n\t\t\t</NcActionInput>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Close from 'vue-material-design-icons/Close'\n\timport Eyedropper from 'vue-material-design-icons/Eyedropper'\n\timport Key from 'vue-material-design-icons/Key'\n\timport Pencil from 'vue-material-design-icons/Pencil'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tClose,\n\t\t\tEyedropper,\n\t\t\tKey,\n\t\t\tPencil,\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tcolor: '#0082C9',\n\t\t\t\ttext: 'This is the input text',\n\t\t\t\tmultiSelected: [],\n\t\t\t}\n\t\t},\n\t}\n\t</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\">\n\t\t<span :class=\"{\n\t\t\t\t'action-input-picker--disabled': disabled,\n\t\t\t\t'action-input--visible-label': labelOutside && label,\n\t\t\t}\"\n\t\t\tclass=\"action-input\"\n\t\t\t@mouseleave=\"onLeave\">\n\t\t\t<span class=\"action-input__icon-wrapper\">\n\t\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t\t<slot name=\"icon\">\n\t\t\t\t\t<span :class=\"[isIconUrl ? 'action-input__icon--url' : icon]\"\n\t\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"action-input__icon\" />\n\t\t\t\t</slot>\n\t\t\t</span>\n\n\t\t\t<!-- form and input -->\n\t\t\t<form ref=\"form\"\n\t\t\t\tclass=\"action-input__form\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t@submit.prevent=\"onSubmit\">\n\t\t\t\t<div class=\"action-input__container\">\n\t\t\t\t\t<label v-if=\"label && labelOutside\"\n\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t</label>\n\t\t\t\t\t<div class=\"action-input__input-container\">\n\n\t\t\t\t\t\t<NcDateTimePicker v-if=\"datePickerType\"\n\t\t\t\t\t\t\tref=\"datetimepicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\tstyle=\"z-index: 99999999999;\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:type=\"datePickerType\"\n\t\t\t\t\t\t\t:input-class=\"['mx-input', { focusable: isFocusable }]\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<NcDateTimePickerNative v-else-if=\"isNativePicker\"\n\t\t\t\t\t\t\t:id=\"idNativeDateTimePicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:type=\"nativeDatePickerType\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"$emit('input', $event)\"\n\t\t\t\t\t\t\t@change=\"$emit('change', $event)\" />\n\n\t\t\t\t\t\t<NcSelect v-else-if=\"isMultiselectType\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:append-to-body=\"$attrs.appendToBody || $attrs['append-to-body'] || false\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__multi\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\" />\n\n\t\t\t\t\t\t<NcPasswordField v-else-if=\"type==='password'\"\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<div v-else-if=\"type === 'color'\" class=\"action-input__container\">\n\t\t\t\t\t\t\t<label v-if=\"label && type === 'color'\"\n\t\t\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<div class=\"action-input__input-container\">\n\t\t\t\t\t\t\t\t<NcColorPicker id=\"inputId\"\n\t\t\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t\t\tclass=\"colorpicker__trigger\"\n\t\t\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t\t\t@submit=\"$refs.form.requestSubmit()\">\n\t\t\t\t\t\t\t\t\t<button :style=\"{'background-color': value}\"\n\t\t\t\t\t\t\t\t\t\tclass=\"colorpicker__preview\"\n\t\t\t\t\t\t\t\t\t\t:class=\"{ focusable: isFocusable }\" />\n\t\t\t\t\t\t\t\t</NcColorPicker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<NcTextField v-else\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:type=\"type\"\n\t\t\t\t\t\t\ttrailing-button-icon=\"arrowRight\"\n\t\t\t\t\t\t\t:trailing-button-label=\"trailingButtonLabel\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@trailing-button-click=\"$refs.form.requestSubmit()\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</span>\n\t</li>\n</template>\n\n<script>\nimport NcDateTimePicker from '../NcDateTimePicker/index.js'\nimport NcDateTimePickerNative from '../NcDateTimePickerNative/index.js'\nimport NcPasswordField from '../NcPasswordField/index.js'\nimport NcSelect from '../NcSelect/index.js'\nimport NcTextField from '../NcTextField/index.js'\nimport ActionGlobalMixin from '../../mixins/actionGlobal.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcActionInput',\n\n\tcomponents: {\n\t\tNcDateTimePicker,\n\t\tNcDateTimePickerNative,\n\t\tNcPasswordField,\n\t\tNcSelect,\n\t\tNcTextField,\n\t},\n\n\tmixins: [ActionGlobalMixin],\n\n\tprops: {\n\t\t/**\n\t\t * id attribute of the checkbox element\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * id attribute of the text input element\n\t\t */\n\t\tinputId: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-input-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * type attribute of the input field\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'text',\n\t\t\tvalidator(type) {\n\t\t\t\treturn ['date', 'datetime-local', 'month', 'multiselect',\n\t\t\t\t\t'number', 'password', 'search', 'tel',\n\t\t\t\t\t'text', 'time', 'url', 'week', 'color',\n\t\t\t\t\t'email'].indexOf(type) > -1\n\t\t\t},\n\t\t},\n\t\t/**\n\t\t * id attribute for the native date time picker\n\t\t */\n\t\tidNativeDateTimePicker: {\n\t\t\ttype: String,\n\t\t\tdefault: 'date-time-picker_id',\n\t\t},\n\t\t/**\n\t\t * Flag to use a native date time picker\n\t\t */\n\t\tisNativePicker: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * The visible input label for accessibility purposes.\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * If you want to show the label just above the\n\t\t * input field, pass in `true` to this prop.\n\t\t */\n\t\tlabelOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * value attribute of the input field\n\t\t */\n\t\tvalue: {\n\t\t\ttype: [String, Date, Number, Array],\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * disabled state of the input field\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * aria-label attribute of the input field\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\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\t\t/**\n\t\t * Attribute forwarded to the underlying NcPasswordField and NcTextField\n\t\t */\n\t\tshowTrailingButton: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * Trailing button label forwarded to the underlying NcTextField\n\t\t */\n\t\ttrailingButtonLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: t('Submit'),\n\t\t},\n\t},\n\n\temits: [\n\t\t'input',\n\t\t'submit',\n\t\t'change',\n\t\t'update:value',\n\t],\n\n\tcomputed: {\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn new URL(this.icon)\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\tisMultiselectType() {\n\t\t\treturn this.type === 'multiselect'\n\t\t},\n\n\t\tnativeDatePickerType() {\n\t\t\tswitch (this.type) {\n\t\t\tcase 'date':\n\t\t\tcase 'month':\n\t\t\tcase 'time':\n\t\t\tcase 'week':\n\t\t\tcase 'datetime-local':\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\n\t\tdatePickerType() {\n\t\t\tif (!this.isNativePicker) {\n\t\t\t\tswitch (this.type) {\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'month':\n\t\t\t\tcase 'time':\n\t\t\t\t\treturn this.type\n\n\t\t\t\tcase 'datetime-local':\n\t\t\t\t\treturn 'datetime'\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false\n\t\t},\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\t},\n\n\tmethods: {\n\t\t// closing datepicker popup on mouseleave = unfocus\n\t\tonLeave() {\n\t\t\tif (this.$refs.datetimepicker && this.$refs.datetimepicker.$refs.datepicker) {\n\t\t\t\tthis.$refs.datetimepicker.$refs.datepicker.closePopup()\n\t\t\t}\n\t\t},\n\t\tonInput(event) {\n\t\t\t/**\n\t\t\t * Emitted on input events of the text field\n\t\t\t *\n\t\t\t * @type {Event|Date}\n\t\t\t */\n\t\t\tthis.$emit('input', event)\n\t\t\t/**\n\t\t\t * Emitted when the inputs value changes\n\t\t\t * ! DatetimePicker only send the value\n\t\t\t *\n\t\t\t * @type {string|Date}\n\t\t\t */\n\t\t\tthis.$emit('update:value', event.target ? event.target.value : event)\n\t\t},\n\t\tonSubmit(event) {\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t\tif (!this.disabled) {\n\t\t\t\t/**\n\t\t\t\t * Emitted on submit of the input field\n\t\t\t\t *\n\t\t\t\t * @type {Event}\n\t\t\t\t */\n\t\t\t\tthis.$emit('submit', event)\n\t\t\t} else {\n\t\t\t\t// ignore submit\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t\tonChange(event) {\n\t\t\t/**\n\t\t\t * Emitted on change of the input field\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('change', event)\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import '../../assets/inputs';\n@import '../../assets/action';\n@include action-active;\n@include action--disabled;\n\n$input-margin: 4px;\n\n.action-input {\n\tdisplay: flex;\n\talign-items: flex-start;\n\n\twidth: 100%;\n\theight: auto;\n\tmargin: 0;\n\tpadding: 0;\n\n\tcursor: pointer;\n\twhite-space: nowrap;\n\n\tcolor: var(--color-main-text);\n\tborder: 0;\n\tborder-radius: 0; // otherwise Safari will cut the border-radius area\n\tbackground-color: transparent;\n\tbox-shadow: none;\n\n\tfont-weight: normal;\n\n\t&__icon-wrapper {\n\t\tdisplay: flex;\n\t\talign-self: center;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t&:deep(.material-design-icon) {\n\t\t\twidth: $clickable-area;\n\t\t\theight: $clickable-area;\n\t\t\topacity: $opacity_full;\n\n\t\t\t.material-design-icon__svg {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > span {\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t}\n\n\t&__icon {\n\t\tmin-width: 0; /* Overwrite icons*/\n\t\tmin-height: 0;\n\t\t/* Keep padding to define the width to\n\t\t\tassure correct position of a possible text */\n\t\tpadding: #{math.div($clickable-area, 2)} 0 #{math.div($clickable-area, 2)} $clickable-area;\n\n\t\tbackground-position: #{$icon-margin} center;\n\t\tbackground-size: $icon-size;\n\t}\n\n\t// Forms & text inputs\n\t&__form {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex: 1 1 auto;\n\n\t\tmargin: $input-margin 0;\n\t\tpadding-right: $icon-margin;\n\t}\n\n\t&__container {\n\t\twidth: 100%;\n\t}\n\n\t&__input-container {\n\t\tdisplay: flex;\n\n\t\t.colorpicker {\n\t\t\t&__trigger,\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 36px;\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\t\t\tbox-shadow: none !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__text-label {\n\t\tpadding: 4px 0;\n\t\tdisplay: block;\n\n\t\t&--hidden {\n\t\t\tposition: absolute;\n\t\t\tleft: -10000px;\n\t\t\ttop: auto;\n\t\t\twidth: 1px;\n\t\t\theight: 1px;\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t&__datetimepicker {\n\t\twidth: 100%;\n\n\t\t:deep(.mx-input) {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\n\t&__multi {\n\t\twidth: 100%;\n\t}\n}\n\n// if a form is the last of the list\n// add the same bottomMargin as the right padding\n// for visual balance\nli:last-child > .action-input {\n\tpadding-bottom: $icon-margin - $input-margin;\n}\n\n// same for first item\nli:first-child > .action-input:not(.action-input--visible-label) {\n\tpadding-top: $icon-margin - $input-margin;\n}\n\n</style>\n"],"names":["_sfc_main","NcDateTimePicker","NcDateTimePickerNative","NcPasswordField","NcSelect","NcTextField","ActionGlobalMixin","GenRandomId","id","type","t","event"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NcActionInput-GZcIfn-2.mjs","sources":["../../src/components/NcActionInput/NcActionInput.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\n - @author Marco Ambrosini <marcoambrosini@icloud.com>\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<docs>\nThis component is made to be used inside of the [NcActions](#NcActions) component slots.\n\nIt is recommended to not only provide a placeholder, but also a label.\nThe label should describe what input is expected and the placehold what format the input should have.\n\nAll undocumented attributes will be bound to the input, the datepicker or the select component, e.g. `maxlength`, `not-before`.\nFor the `NcSelect` component, all events will be passed through. Please see the `NcSelect` component's documentation for more details and examples.\n```vue\n\t<template>\n\t\t<NcActions>\n\t\t\t<NcActionInput :value.sync=\"text\" :label-outside=\"true\" label=\"Label outside the input\">\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</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" :show-trailing-button=\"false\" label=\"Input without trailing button\">\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</NcActionInput>\n\t\t\t<NcActionInput :value.sync=\"text\" label=\"Input with placeholder\">\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\tThis is the placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" label=\"Password with visible label\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"password\" :value.sync=\"text\" :show-trailing-button=\"false\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Key :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tPassword placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"color\" :value.sync=\"color\" label=\"Favorite color\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Eyedropper :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\tColor placeholder\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput label=\"Visible label\" :value.sync=\"text\">\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\tInput with visible label\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput :disabled=\"true\" label=\"This is a disabled input\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<Close :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\" isNativePicker :value=\"new Date()\">\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\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"date\">\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\tPlease pick a date\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput type=\"multiselect\" :options=\"['Apple', 'Banana', 'Cherry']\">\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\tPlease pick a fruit\n\t\t\t</NcActionInput>\n\t\t\t<NcActionInput\n\t\t\t\tv-model=\"multiSelected\"\n\t\t\t\ttype=\"multiselect\"\n\t\t\t\tlabel=\"label\"\n\t\t\t\ttrack-by=\"id\"\n\t\t\t\t:append-to-body=\"true\"\n\t\t\t\t:multiple=\"true\"\n\t\t\t\t:options=\"[{label:'Apple', id: 'apple'}, {label:'Banana', id: 'banana'}, {label:'Cherry', id: 'cherry'}]\">\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\tPlease pick a fruit object\n\t\t\t</NcActionInput>\n\t\t</NcActions>\n\t</template>\n\t<script>\n\timport Close from 'vue-material-design-icons/Close'\n\timport Eyedropper from 'vue-material-design-icons/Eyedropper'\n\timport Key from 'vue-material-design-icons/Key'\n\timport Pencil from 'vue-material-design-icons/Pencil'\n\n\texport default {\n\t\tcomponents: {\n\t\t\tClose,\n\t\t\tEyedropper,\n\t\t\tKey,\n\t\t\tPencil,\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tcolor: '#0082C9',\n\t\t\t\ttext: 'This is the input text',\n\t\t\t\tmultiSelected: [],\n\t\t\t}\n\t\t},\n\t}\n\t</script>\n```\n</docs>\n\n<template>\n\t<li class=\"action\" :class=\"{ 'action--disabled': disabled }\">\n\t\t<span :class=\"{\n\t\t\t\t'action-input-picker--disabled': disabled,\n\t\t\t\t'action-input--visible-label': labelOutside && label,\n\t\t\t}\"\n\t\t\tclass=\"action-input\"\n\t\t\t@mouseleave=\"onLeave\">\n\t\t\t<span class=\"action-input__icon-wrapper\">\n\t\t\t\t<!-- @slot Manually provide icon -->\n\t\t\t\t<slot name=\"icon\">\n\t\t\t\t\t<span :class=\"[isIconUrl ? 'action-input__icon--url' : icon]\"\n\t\t\t\t\t\t:style=\"{ backgroundImage: isIconUrl ? `url(${icon})` : null }\"\n\t\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\t\tclass=\"action-input__icon\" />\n\t\t\t\t</slot>\n\t\t\t</span>\n\n\t\t\t<!-- form and input -->\n\t\t\t<form ref=\"form\"\n\t\t\t\tclass=\"action-input__form\"\n\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t@submit.prevent=\"onSubmit\">\n\t\t\t\t<div class=\"action-input__container\">\n\t\t\t\t\t<label v-if=\"label && labelOutside\"\n\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t</label>\n\t\t\t\t\t<div class=\"action-input__input-container\">\n\n\t\t\t\t\t\t<NcDateTimePicker v-if=\"datePickerType\"\n\t\t\t\t\t\t\tref=\"datetimepicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\tstyle=\"z-index: 99999999999;\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:type=\"datePickerType\"\n\t\t\t\t\t\t\t:input-class=\"['mx-input', { focusable: isFocusable }]\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<NcDateTimePickerNative v-else-if=\"isNativePicker\"\n\t\t\t\t\t\t\t:id=\"idNativeDateTimePicker\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:type=\"nativeDatePickerType\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__datetimepicker\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t@input=\"$emit('input', $event)\"\n\t\t\t\t\t\t\t@change=\"$emit('change', $event)\" />\n\n\t\t\t\t\t\t<NcSelect v-else-if=\"isMultiselectType\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:append-to-body=\"$attrs.appendToBody || $attrs['append-to-body'] || false\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\tclass=\"action-input__multi\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\" />\n\n\t\t\t\t\t\t<NcPasswordField v-else-if=\"type==='password'\"\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\n\t\t\t\t\t\t<div v-else-if=\"type === 'color'\" class=\"action-input__container\">\n\t\t\t\t\t\t\t<label v-if=\"label && type === 'color'\"\n\t\t\t\t\t\t\t\tclass=\"action-input__text-label\"\n\t\t\t\t\t\t\t\t:class=\"{ 'action-input__text-label--hidden': !labelOutside}\"\n\t\t\t\t\t\t\t\t:for=\"inputId\">\n\t\t\t\t\t\t\t\t{{ label }}\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<div class=\"action-input__input-container\">\n\t\t\t\t\t\t\t\t<NcColorPicker id=\"inputId\"\n\t\t\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t\t\tclass=\"colorpicker__trigger\"\n\t\t\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t\t\t@submit=\"$refs.form.requestSubmit()\">\n\t\t\t\t\t\t\t\t\t<button :style=\"{'background-color': value}\"\n\t\t\t\t\t\t\t\t\t\tclass=\"colorpicker__preview\"\n\t\t\t\t\t\t\t\t\t\t:class=\"{ focusable: isFocusable }\" />\n\t\t\t\t\t\t\t\t</NcColorPicker>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<NcTextField v-else\n\t\t\t\t\t\t\t:id=\"inputId\"\n\t\t\t\t\t\t\t:value=\"value\"\n\t\t\t\t\t\t\t:label=\"label\"\n\t\t\t\t\t\t\t:label-outside=\"!label || labelOutside\"\n\t\t\t\t\t\t\t:placeholder=\"text\"\n\t\t\t\t\t\t\t:disabled=\"disabled\"\n\t\t\t\t\t\t\t:input-class=\"{ focusable: isFocusable }\"\n\t\t\t\t\t\t\t:type=\"type\"\n\t\t\t\t\t\t\ttrailing-button-icon=\"arrowRight\"\n\t\t\t\t\t\t\t:trailing-button-label=\"trailingButtonLabel\"\n\t\t\t\t\t\t\t:show-trailing-button=\"showTrailingButton && !disabled\"\n\t\t\t\t\t\t\tv-bind=\"$attrs\"\n\t\t\t\t\t\t\tv-on=\"$listeners\"\n\t\t\t\t\t\t\t@trailing-button-click=\"$refs.form.requestSubmit()\"\n\t\t\t\t\t\t\t@input=\"onInput\"\n\t\t\t\t\t\t\t@change=\"onChange\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</form>\n\t\t</span>\n\t</li>\n</template>\n\n<script>\nimport NcDateTimePicker from '../NcDateTimePicker/index.js'\nimport NcDateTimePickerNative from '../NcDateTimePickerNative/index.js'\nimport NcPasswordField from '../NcPasswordField/index.js'\nimport NcSelect from '../NcSelect/index.js'\nimport NcTextField from '../NcTextField/index.js'\nimport ActionGlobalMixin from '../../mixins/actionGlobal.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { t } from '../../l10n.js'\n\nexport default {\n\tname: 'NcActionInput',\n\n\tcomponents: {\n\t\tNcDateTimePicker,\n\t\tNcDateTimePickerNative,\n\t\tNcPasswordField,\n\t\tNcSelect,\n\t\tNcTextField,\n\t},\n\n\tmixins: [ActionGlobalMixin],\n\n\tprops: {\n\t\t/**\n\t\t * id attribute of the checkbox element\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * id attribute of the text input element\n\t\t */\n\t\tinputId: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-input-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * type attribute of the input field\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'text',\n\t\t\tvalidator(type) {\n\t\t\t\treturn ['date', 'datetime-local', 'month', 'multiselect',\n\t\t\t\t\t'number', 'password', 'search', 'tel',\n\t\t\t\t\t'text', 'time', 'url', 'week', 'color',\n\t\t\t\t\t'email'].indexOf(type) > -1\n\t\t\t},\n\t\t},\n\t\t/**\n\t\t * id attribute for the native date time picker\n\t\t */\n\t\tidNativeDateTimePicker: {\n\t\t\ttype: String,\n\t\t\tdefault: 'date-time-picker_id',\n\t\t},\n\t\t/**\n\t\t * Flag to use a native date time picker\n\t\t */\n\t\tisNativePicker: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * The visible input label for accessibility purposes.\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * If you want to show the label just above the\n\t\t * input field, pass in `true` to this prop.\n\t\t */\n\t\tlabelOutside: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * value attribute of the input field\n\t\t */\n\t\tvalue: {\n\t\t\ttype: [String, Date, Number, Array],\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * disabled state of the input field\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * aria-label attribute of the input field\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\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\t\t/**\n\t\t * Attribute forwarded to the underlying NcPasswordField and NcTextField\n\t\t */\n\t\tshowTrailingButton: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t\t/**\n\t\t * Trailing button label forwarded to the underlying NcTextField\n\t\t */\n\t\ttrailingButtonLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: t('Submit'),\n\t\t},\n\t},\n\n\temits: [\n\t\t'input',\n\t\t'submit',\n\t\t'change',\n\t\t'update:value',\n\t],\n\n\tcomputed: {\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn new URL(this.icon)\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\n\t\tisMultiselectType() {\n\t\t\treturn this.type === 'multiselect'\n\t\t},\n\n\t\tnativeDatePickerType() {\n\t\t\tswitch (this.type) {\n\t\t\tcase 'date':\n\t\t\tcase 'month':\n\t\t\tcase 'time':\n\t\t\tcase 'week':\n\t\t\tcase 'datetime-local':\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\n\t\tdatePickerType() {\n\t\t\tif (!this.isNativePicker) {\n\t\t\t\tswitch (this.type) {\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'month':\n\t\t\t\tcase 'time':\n\t\t\t\t\treturn this.type\n\n\t\t\t\tcase 'datetime-local':\n\t\t\t\t\treturn 'datetime'\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false\n\t\t},\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\t},\n\n\tmethods: {\n\t\t// closing datepicker popup on mouseleave = unfocus\n\t\tonLeave() {\n\t\t\tif (this.$refs.datetimepicker && this.$refs.datetimepicker.$refs.datepicker) {\n\t\t\t\tthis.$refs.datetimepicker.$refs.datepicker.closePopup()\n\t\t\t}\n\t\t},\n\t\tonInput(event) {\n\t\t\t/**\n\t\t\t * Emitted on input events of the text field\n\t\t\t *\n\t\t\t * @type {Event|Date}\n\t\t\t */\n\t\t\tthis.$emit('input', event)\n\t\t\t/**\n\t\t\t * Emitted when the inputs value changes\n\t\t\t * ! DatetimePicker only send the value\n\t\t\t *\n\t\t\t * @type {string|Date}\n\t\t\t */\n\t\t\tthis.$emit('update:value', event.target ? event.target.value : event)\n\t\t},\n\t\tonSubmit(event) {\n\t\t\tevent.preventDefault()\n\t\t\tevent.stopPropagation()\n\t\t\tif (!this.disabled) {\n\t\t\t\t/**\n\t\t\t\t * Emitted on submit of the input field\n\t\t\t\t *\n\t\t\t\t * @type {Event}\n\t\t\t\t */\n\t\t\t\tthis.$emit('submit', event)\n\t\t\t} else {\n\t\t\t\t// ignore submit\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t\tonChange(event) {\n\t\t\t/**\n\t\t\t * Emitted on change of the input field\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('change', event)\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import '../../assets/inputs';\n@import '../../assets/action';\n@include action-active;\n@include action--disabled;\n\n$input-margin: 4px;\n\n.action-input {\n\tdisplay: flex;\n\talign-items: flex-start;\n\n\twidth: 100%;\n\theight: auto;\n\tmargin: 0;\n\tpadding: 0;\n\n\tcursor: pointer;\n\twhite-space: nowrap;\n\n\tcolor: var(--color-main-text);\n\tborder: 0;\n\tborder-radius: 0; // otherwise Safari will cut the border-radius area\n\tbackground-color: transparent;\n\tbox-shadow: none;\n\n\tfont-weight: normal;\n\n\t&__icon-wrapper {\n\t\tdisplay: flex;\n\t\talign-self: center;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\n\t\t&:deep(.material-design-icon) {\n\t\t\twidth: $clickable-area;\n\t\t\theight: $clickable-area;\n\t\t\topacity: $opacity_full;\n\n\t\t\t.material-design-icon__svg {\n\t\t\t\tvertical-align: middle;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > span {\n\t\tcursor: pointer;\n\t\twhite-space: nowrap;\n\t}\n\n\t&__icon {\n\t\tmin-width: 0; /* Overwrite icons*/\n\t\tmin-height: 0;\n\t\t/* Keep padding to define the width to\n\t\t\tassure correct position of a possible text */\n\t\tpadding: #{math.div($clickable-area, 2)} 0 #{math.div($clickable-area, 2)} $clickable-area;\n\n\t\tbackground-position: #{$icon-margin} center;\n\t\tbackground-size: $icon-size;\n\t}\n\n\t// Forms & text inputs\n\t&__form {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex: 1 1 auto;\n\n\t\tmargin: $input-margin 0;\n\t\tpadding-right: $icon-margin;\n\t}\n\n\t&__container {\n\t\twidth: 100%;\n\t}\n\n\t&__input-container {\n\t\tdisplay: flex;\n\n\t\t.colorpicker {\n\t\t\t&__trigger,\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t&__preview {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 36px;\n\t\t\t\tborder-radius: var(--border-radius-large);\n\t\t\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\t\t\tbox-shadow: none !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__text-label {\n\t\tpadding: 4px 0;\n\t\tdisplay: block;\n\n\t\t&--hidden {\n\t\t\tposition: absolute;\n\t\t\tleft: -10000px;\n\t\t\ttop: auto;\n\t\t\twidth: 1px;\n\t\t\theight: 1px;\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t&__datetimepicker {\n\t\twidth: 100%;\n\n\t\t:deep(.mx-input) {\n\t\t\tmargin: 0;\n\t\t}\n\t}\n\n\t&__multi {\n\t\twidth: 100%;\n\t}\n}\n\n// if a form is the last of the list\n// add the same bottomMargin as the right padding\n// for visual balance\nli:last-child > .action-input {\n\tpadding-bottom: $icon-margin - $input-margin;\n}\n\n// same for first item\nli:first-child > .action-input:not(.action-input--visible-label) {\n\tpadding-top: $icon-margin - $input-margin;\n}\n\n</style>\n"],"names":["_sfc_main","NcDateTimePicker","NcDateTimePickerNative","NcPasswordField","NcSelect","NcTextField","ActionGlobalMixin","GenRandomId","id","type","t","event"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NcAppContent-CUnQ4EVa.mjs","sources":["../../src/components/NcAppContent/NcAppDetailsToggle.vue","../../src/components/NcAppContent/NcAppContent.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2021 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\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<template>\n\t<NcButton v-tooltip=\"title\"\n\t\ttype=\"tertiary\"\n\t\t:aria-label=\"title\"\n\t\tclass=\"app-details-toggle\"\n\t\t:class=\"{ 'app-details-toggle--mobile': isMobile }\">\n\t\t<template #icon>\n\t\t\t<ArrowRight :size=\"20\" />\n\t\t</template>\n\t</NcButton>\n</template>\n\n<script>\nimport NcButton from '../NcButton/index.js'\nimport { t } from '../../l10n.js'\nimport Tooltip from '../../directives/Tooltip/index.js'\n\nimport { emit } from '@nextcloud/event-bus'\n\nimport ArrowRight from 'vue-material-design-icons/ArrowRight.vue'\nimport { useIsMobile } from '../../composables/useIsMobile/index.js'\n\nexport default {\n\tname: 'NcAppDetailsToggle',\n\n\tdirectives: {\n\t\ttooltip: Tooltip,\n\t},\n\n\tcomponents: {\n\t\tNcButton,\n\t\tArrowRight,\n\t},\n\tsetup() {\n\t\treturn {\n\t\t\tisMobile: useIsMobile(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\ttitle() {\n\t\t\treturn t('Go back to the list')\n\t\t},\n\t},\n\twatch: {\n\t\tisMobile: {\n\t\t\timmediate: true,\n\t\t\thandler() {\n\t\t\t\tthis.toggleAppNavigationButton(this.isMobile)\n\t\t\t},\n\t\t},\n\t},\n\n\tbeforeDestroy() {\n\t\tif (this.isMobile) {\n\t\t\tthis.toggleAppNavigationButton(false)\n\t\t}\n\t},\n\n\tmethods: {\n\t\ttoggleAppNavigationButton(hide = true) {\n\t\t\tconst appNavigationToggle = document.querySelector('.app-navigation .app-navigation-toggle')\n\t\t\tif (appNavigationToggle) {\n\t\t\t\tappNavigationToggle.style.display = hide ? 'none' : null\n\n\t\t\t\t// If we hide the NavigationToggle, we need to make sure the Navigation is also closed\n\t\t\t\tif (hide === true) {\n\t\t\t\t\temit('toggle-navigation', { open: false })\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.app-details-toggle {\n\tposition: sticky;\n\twidth: $clickable-area;\n\theight: $clickable-area;\n\tpadding: $icon-margin;\n\tcursor: pointer;\n\topacity: .6;\n\ttransform: rotate(180deg);\n\tbackground-color: var(--color-main-background);\n\tz-index: 2000;\n\n\ttop: var(--app-navigation-padding);\n\t// Navigation Toggle button width + 2 paddings around\n\tleft: calc(var(--default-clickable-area) + var(--app-navigation-padding) * 2);\n\t&--mobile {\n\t\t// There is no NavigationToggle button\n\t\tleft: var(--app-navigation-padding);\n\t}\n\n\t&:active,\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n\n</style>\n","<!--\n - @copyright Copyright (c) 2019 Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @author Christoph Wurst <christoph@winzerhof-wurst.at>\n - @author Marco Ambrosini <marcoambrosini@icloud.com>\n - @author John Molakvoæ <skjnldsv@protonmail.com>\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<docs>\n### General description\n\nThis components provides a wrapper around the main app's content.\n\nSingle-column layouts can just use the default slot. A resizable column\ncan be added by providing content to the named slot `list`.\n\n### CSS variables\nIn the css section some css variables are declared and will be available for\nall the children of the NcAppContent component\n\n### Examples\n\n#### Usage: Single-column content\n```vue\n<template>\n\t<NcAppContent>\n\t\t<h2>Single-column main content</h2>\n\t</NcAppContent>\n</template>\n```\n\n#### Usage: Two resizable columns\n```vue\n<template>\n\t<NcAppContent>\n\t\t<template #list>\n\t\t\t<div>Resizable list content</div>\n\t\t</template>\n\n\t\t<div>Main content</div>\n\t</NcAppContent>\n</template>\n```\n\n#### Overriding Defaults\nThe default, min and max sizes (in percent) of the resizable list column can be overridden.\nThe list size must be between the min and the max width value.\n\n```\n<NcAppContent\n\t:list-size=\"35\"\n\t:list-min-width=\"20\"\n\t:list-max-width=\"45\"\n>...</NcAppContent>\n```\n</docs>\n\n<template>\n\t<main id=\"app-content-vue\" class=\"app-content no-snapper\" :class=\"{ 'app-content--has-list': hasList }\">\n\t\t<h1 v-if=\"pageHeading\" class=\"hidden-visually\">\n\t\t\t{{ pageHeading }}\n\t\t</h1>\n\n\t\t<template v-if=\"hasList\">\n\t\t\t<!-- Mobile view does not allow resizeable panes -->\n\t\t\t<div v-if=\"isMobile || layout === 'no-split'\"\n\t\t\t\tclass=\"app-content-wrapper app-content-wrapper--no-split\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'app-content-wrapper--show-details': showDetails,\n\t\t\t\t\t'app-content-wrapper--show-list': !showDetails,\n\t\t\t\t\t'app-content-wrapper--mobile': isMobile,}\">\n\t\t\t\t<NcAppDetailsToggle v-if=\"showDetails\" @click.native.stop.prevent=\"hideDetails\" />\n\t\t\t\t<slot v-if=\"!showDetails\" name=\"list\" />\n\n\t\t\t\t<slot v-else />\n\t\t\t</div>\n\t\t\t<div v-else-if=\"layout === 'vertical-split'\" class=\"app-content-wrapper\">\n\t\t\t\t<Splitpanes class=\"default-theme\"\n\t\t\t\t\t@resized=\"handlePaneResize\">\n\t\t\t\t\t<Pane class=\"splitpanes__pane-list\"\n\t\t\t\t\t\t:size=\"listPaneSize || paneDefaults.list.size\"\n\t\t\t\t\t\t:min-size=\"paneDefaults.list.min\"\n\t\t\t\t\t\t:max-size=\"paneDefaults.list.max\">\n\t\t\t\t\t\t<!-- @slot Provide a list to the app content -->\n\t\t\t\t\t\t<slot name=\"list\" />\n\t\t\t\t\t</Pane>\n\n\t\t\t\t\t<Pane class=\"splitpanes__pane-details\"\n\t\t\t\t\t\t:size=\"detailsPaneSize\"\n\t\t\t\t\t\t:min-size=\"paneDefaults.details.min\"\n\t\t\t\t\t\t:max-size=\"paneDefaults.details.max\">\n\t\t\t\t\t\t<!-- @slot Provide the main content to the app content -->\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</Pane>\n\t\t\t\t</Splitpanes>\n\t\t\t</div>\n\t\t</template>\n\t\t<!-- @slot Provide the main content to the app content -->\n\t\t<slot v-if=\"!hasList\" />\n\t</main>\n</template>\n\n<script>\nimport NcAppDetailsToggle from './NcAppDetailsToggle.vue'\nimport { useIsMobile } from '../../composables/useIsMobile/index.js'\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { useSwipe } from '@vueuse/core'\nimport { Splitpanes, Pane } from 'splitpanes'\n\nimport 'splitpanes/dist/splitpanes.css'\nimport { emit } from '@nextcloud/event-bus'\n\nconst browserStorage = getBuilder('nextcloud').persist().build()\n\n/**\n * App content container to be used for the main content of your app\n *\n */\nexport default {\n\tname: 'NcAppContent',\n\n\tcomponents: {\n\t\tNcAppDetailsToggle,\n\t\tPane,\n\t\tSplitpanes,\n\t},\n\tprops: {\n\t\t/**\n\t\t * Allows to disable the control by swipe of the app navigation open state\n\t\t */\n\t\tallowSwipeNavigation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Allows you to set the default width of the resizable list in %\n\t\t * Must be between listMinWidth and listMaxWidth\n\t\t */\n\t\tlistSize: {\n\t\t\ttype: Number,\n\t\t\tdefault: 20,\n\t\t},\n\n\t\t/**\n\t\t * Allows you to set the minimum width of the list column in %\n\t\t */\n\t\tlistMinWidth: {\n\t\t\ttype: Number,\n\t\t\tdefault: 15,\n\t\t},\n\n\t\t/**\n\t\t * Allows you to set the maximum width of the list column in %\n\t\t */\n\t\tlistMaxWidth: {\n\t\t\ttype: Number,\n\t\t\tdefault: 40,\n\t\t},\n\n\t\t/**\n\t\t * Specify the config key for the pane config sizes\n\t\t * Default is the global var appName if you use the webpack-vue-config\n\t\t */\n\t\tpaneConfigKey: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * When in mobile view, only the list or the details are shown\n\t\t * If you provide a list, you need to provide a variable\n\t\t * that will be set to true by the user when an element of\n\t\t * the list gets selected. The details will then show a back\n\t\t * arrow to return to the list that will update this prop to false.\n\t\t */\n\t\tshowDetails: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Specify the `<h1>` page heading\n\t\t */\n\t\tpageHeading: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Content layout used when there is a list together with content:\n\t\t * - `vertical-split` - a 2-column layout with list and default content separated vertically\n\t\t * - `no-split` - a single column layout; List is shown when `showDetails` is `false`, otherwise the default slot content is shown with a back button to return to the list.\n\t\t * On mobile screen `no-split` layout is forced.\n\t\t */\n\t\tlayout: {\n\t\t\ttype: String,\n\t\t\tdefault: 'vertical-split',\n\t\t\tvalidator(value) {\n\t\t\t\treturn ['no-split', 'vertical-split'].includes(value)\n\t\t\t},\n\t\t},\n\t},\n\n\temits: [\n\t\t'update:showDetails',\n\t\t'resize:list',\n\t],\n\n\tsetup() {\n\t\treturn {\n\t\t\tisMobile: useIsMobile(),\n\t\t}\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcontentHeight: 0,\n\t\t\thasList: false,\n\t\t\thasContent: false,\n\t\t\tswiping: {},\n\t\t\tlistPaneSize: this.restorePaneConfig(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tpaneConfigID() {\n\t\t\t// If provided, let's use it\n\t\t\tif (this.paneConfigKey !== '') {\n\t\t\t\treturn `pane-list-size-${this.paneConfigKey}`\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Using the webpack-vue-config, appName is a global variable\n\t\t\t\t// This will throw a ReferenceError when the global variable is missing\n\t\t\t\t// In that case either you provide paneConfigKey or else it fallback\n\t\t\t\t// to a global storage key\n\t\t\t\treturn `pane-list-size-${appName}`\n\t\t\t} catch (e) {\n\t\t\t\tconsole.info('[INFO] AppContent:', 'falling back to global nextcloud pane config')\n\t\t\t\treturn 'pane-list-size-nextcloud'\n\t\t\t}\n\t\t},\n\n\t\tdetailsPaneSize() {\n\t\t\tif (this.listPaneSize) {\n\t\t\t\treturn 100 - this.listPaneSize\n\t\t\t}\n\t\t\treturn this.paneDefaults.details.size\n\t\t},\n\n\t\tpaneDefaults() {\n\t\t\treturn {\n\t\t\t\tlist: {\n\t\t\t\t\tsize: this.listSize,\n\t\t\t\t\tmin: this.listMinWidth,\n\t\t\t\t\tmax: this.listMaxWidth,\n\t\t\t\t},\n\n\t\t\t\t// set the inverse values of the details column\n\t\t\t\t// based on the provided (or default) values of the list column\n\t\t\t\tdetails: {\n\t\t\t\t\tsize: 100 - this.listSize,\n\t\t\t\t\tmin: 100 - this.listMaxWidth,\n\t\t\t\t\tmax: 100 - this.listMinWidth,\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t},\n\n\tupdated() {\n\t\tthis.checkSlots()\n\t},\n\n\tmounted() {\n\t\tif (this.allowSwipeNavigation) {\n\t\t\tthis.swiping = useSwipe(this.$el, {\n\t\t\t\tonSwipeEnd: this.handleSwipe,\n\t\t\t})\n\t\t}\n\n\t\tthis.checkSlots()\n\t\tthis.restorePaneConfig()\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * handle the swipe event\n\t\t *\n\t\t * @param {TouchEvent} e The touch event\n\t\t * @param {import('@vueuse/core').SwipeDirection} direction The swipe direction of the event\n\t\t */\n\t\thandleSwipe(e, direction) {\n\t\t\tconst minSwipeX = 70\n\t\t\tconst touchZone = 300\n\t\t\tif (Math.abs(this.swiping.lengthX) > minSwipeX) {\n\t\t\t\tif (this.swiping.coordsStart.x < (touchZone / 2) && direction === 'right') {\n\t\t\t\t\temit('toggle-navigation', {\n\t\t\t\t\t\topen: true,\n\t\t\t\t\t})\n\t\t\t\t} else if (this.swiping.coordsStart.x < touchZone * 1.5 && direction === 'left') {\n\t\t\t\t\temit('toggle-navigation', {\n\t\t\t\t\t\topen: false,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\thandlePaneResize(event) {\n\t\t\tconst listPaneSize = parseInt(event[0].size, 10)\n\t\t\tbrowserStorage.setItem(this.paneConfigID, JSON.stringify(listPaneSize))\n\t\t\tthis.listPaneSize = listPaneSize\n\t\t\t/**\n\t\t\t * Emitted when the list pane is resized by the user\n\t\t\t */\n\t\t\tthis.$emit('resize:list', { size: listPaneSize })\n\t\t\tconsole.debug('AppContent pane config', listPaneSize)\n\t\t},\n\n\t\t// $slots is not reactive, we need to update this manually\n\t\tcheckSlots() {\n\t\t\tthis.hasList = !!this.$scopedSlots.list\n\t\t\tthis.hasContent = !!this.$scopedSlots.default\n\t\t},\n\n\t\t// browserStorage is not reactive, we need to update this manually\n\t\trestorePaneConfig() {\n\t\t\tconst listPaneSize = parseInt(browserStorage.getItem(this.paneConfigID), 10)\n\t\t\tif (!isNaN(listPaneSize) && listPaneSize !== this.listPaneSize) {\n\t\t\t\tconsole.debug('AppContent pane config', listPaneSize)\n\t\t\t\tthis.listPaneSize = listPaneSize\n\t\t\t\treturn listPaneSize\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * The user clicked the back arrow from the details view\n\t\t */\n\t\thideDetails() {\n\t\t\tthis.$emit('update:showDetails', false)\n\t\t},\n\t},\n}\n</script>\n<style lang=\"scss\" scoped>\n\n.app-content {\n\tposition: initial;\n\tz-index: 1000;\n\tflex-basis: 100vw;\n\theight: 100%;\n\t// Overriding server styles TODO: cleanup!\n\tmargin: 0 !important;\n\tbackground-color: var(--color-main-background);\n\tmin-width: 0;\n\n\t&:not(.app-content--has-list) {\n\t\toverflow: auto;\n\t}\n}\n\n.app-content-wrapper {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n// Mobile list/details handling\n.app-content-wrapper--no-split {\n\t&.app-content-wrapper--show-list :deep() {\n\t\t.app-content-list {\n\t\t\tdisplay: flex;\n\t\t}\n\t\t.app-content-details {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\t&.app-content-wrapper--show-details :deep() {\n\t\t.app-content-list {\n\t\t\tdisplay: none;\n\t\t}\n\t\t.app-content-details {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n\n:deep(.splitpanes.default-theme) {\n\t.app-content-list {\n\t\tmax-width: none;\n\t\t/* Thin scrollbar is hard to catch on resizable columns */\n\t\tscrollbar-width: auto;\n\t}\n\n\t.splitpanes__pane {\n\t\tbackground-color: transparent;\n\t\ttransition: none;\n\n\t\t&-list {\n\t\t\tmin-width: 300px;\n\t\t\tposition: sticky;\n\t\t\ttop: var(--header-height);\n\n\t\t\t@media only screen and (width < $breakpoint-mobile) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\n\t\t&-details {\n\t\t\toverflow-y: auto;\n\n\t\t\t@media only screen and (width < $breakpoint-mobile) {\n\t\t\t\tmin-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.splitpanes__splitter {\n\t\twidth: 9px;\n\t\tmargin-left: -5px;\n\t\tbackground-color: transparent;\n\t\tborder-left: none;\n\n\t\t&:before,\n\t\t&:after {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.app-content-wrapper--show-list {\n\t:deep(.app-content-list) {\n\t\tmax-width: none;\n\t}\n}\n</style>\n"],"names":["_sfc_main","Tooltip","NcButton","ArrowRight","useIsMobile","t","hide","appNavigationToggle","emit","browserStorage","getBuilder","NcAppDetailsToggle","Pane","Splitpanes","value","useSwipe","direction","event","listPaneSize"],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"NcAppContent-CuOJJPbt.cjs","sources":["../../src/components/NcAppContent/NcAppDetailsToggle.vue","../../src/components/NcAppContent/NcAppContent.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2021 John Molakvoæ <skjnldsv@protonmail.com>\n -\n - @author John Molakvoæ <skjnldsv@protonmail.com>\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<template>\n\t<NcButton v-tooltip=\"title\"\n\t\ttype=\"tertiary\"\n\t\t:aria-label=\"title\"\n\t\tclass=\"app-details-toggle\"\n\t\t:class=\"{ 'app-details-toggle--mobile': isMobile }\">\n\t\t<template #icon>\n\t\t\t<ArrowRight :size=\"20\" />\n\t\t</template>\n\t</NcButton>\n</template>\n\n<script>\nimport NcButton from '../NcButton/index.js'\nimport { t } from '../../l10n.js'\nimport Tooltip from '../../directives/Tooltip/index.js'\n\nimport { emit } from '@nextcloud/event-bus'\n\nimport ArrowRight from 'vue-material-design-icons/ArrowRight.vue'\nimport { useIsMobile } from '../../composables/useIsMobile/index.js'\n\nexport default {\n\tname: 'NcAppDetailsToggle',\n\n\tdirectives: {\n\t\ttooltip: Tooltip,\n\t},\n\n\tcomponents: {\n\t\tNcButton,\n\t\tArrowRight,\n\t},\n\tsetup() {\n\t\treturn {\n\t\t\tisMobile: useIsMobile(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\ttitle() {\n\t\t\treturn t('Go back to the list')\n\t\t},\n\t},\n\twatch: {\n\t\tisMobile: {\n\t\t\timmediate: true,\n\t\t\thandler() {\n\t\t\t\tthis.toggleAppNavigationButton(this.isMobile)\n\t\t\t},\n\t\t},\n\t},\n\n\tbeforeDestroy() {\n\t\tif (this.isMobile) {\n\t\t\tthis.toggleAppNavigationButton(false)\n\t\t}\n\t},\n\n\tmethods: {\n\t\ttoggleAppNavigationButton(hide = true) {\n\t\t\tconst appNavigationToggle = document.querySelector('.app-navigation .app-navigation-toggle')\n\t\t\tif (appNavigationToggle) {\n\t\t\t\tappNavigationToggle.style.display = hide ? 'none' : null\n\n\t\t\t\t// If we hide the NavigationToggle, we need to make sure the Navigation is also closed\n\t\t\t\tif (hide === true) {\n\t\t\t\t\temit('toggle-navigation', { open: false })\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.app-details-toggle {\n\tposition: sticky;\n\twidth: $clickable-area;\n\theight: $clickable-area;\n\tpadding: $icon-margin;\n\tcursor: pointer;\n\topacity: .6;\n\ttransform: rotate(180deg);\n\tbackground-color: var(--color-main-background);\n\tz-index: 2000;\n\n\ttop: var(--app-navigation-padding);\n\t// Navigation Toggle button width + 2 paddings around\n\tleft: calc(var(--default-clickable-area) + var(--app-navigation-padding) * 2);\n\t&--mobile {\n\t\t// There is no NavigationToggle button\n\t\tleft: var(--app-navigation-padding);\n\t}\n\n\t&:active,\n\t&:hover,\n\t&:focus {\n\t\topacity: 1;\n\t}\n}\n\n</style>\n","<!--\n - @copyright Copyright (c) 2019 Christoph Wurst <christoph@winzerhof-wurst.at>\n -\n - @author Christoph Wurst <christoph@winzerhof-wurst.at>\n - @author Marco Ambrosini <marcoambrosini@icloud.com>\n - @author John Molakvoæ <skjnldsv@protonmail.com>\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<docs>\n### General description\n\nThis components provides a wrapper around the main app's content.\n\nSingle-column layouts can just use the default slot. A resizable column\ncan be added by providing content to the named slot `list`.\n\n### CSS variables\nIn the css section some css variables are declared and will be available for\nall the children of the NcAppContent component\n\n### Examples\n\n#### Usage: Single-column content\n```vue\n<template>\n\t<NcAppContent>\n\t\t<h2>Single-column main content</h2>\n\t</NcAppContent>\n</template>\n```\n\n#### Usage: Two resizable columns\n```vue\n<template>\n\t<NcAppContent>\n\t\t<template #list>\n\t\t\t<div>Resizable list content</div>\n\t\t</template>\n\n\t\t<div>Main content</div>\n\t</NcAppContent>\n</template>\n```\n\n#### Overriding Defaults\nThe default, min and max sizes (in percent) of the resizable list column can be overridden.\nThe list size must be between the min and the max width value.\n\n```\n<NcAppContent\n\t:list-size=\"35\"\n\t:list-min-width=\"20\"\n\t:list-max-width=\"45\"\n>...</NcAppContent>\n```\n</docs>\n\n<template>\n\t<main id=\"app-content-vue\" class=\"app-content no-snapper\" :class=\"{ 'app-content--has-list': hasList }\">\n\t\t<h1 v-if=\"pageHeading\" class=\"hidden-visually\">\n\t\t\t{{ pageHeading }}\n\t\t</h1>\n\n\t\t<template v-if=\"hasList\">\n\t\t\t<!-- Mobile view does not allow resizeable panes -->\n\t\t\t<div v-if=\"isMobile || layout === 'no-split'\"\n\t\t\t\tclass=\"app-content-wrapper app-content-wrapper--no-split\"\n\t\t\t\t:class=\"{\n\t\t\t\t\t'app-content-wrapper--show-details': showDetails,\n\t\t\t\t\t'app-content-wrapper--show-list': !showDetails,\n\t\t\t\t\t'app-content-wrapper--mobile': isMobile,}\">\n\t\t\t\t<NcAppDetailsToggle v-if=\"showDetails\" @click.native.stop.prevent=\"hideDetails\" />\n\t\t\t\t<slot v-if=\"!showDetails\" name=\"list\" />\n\n\t\t\t\t<slot v-else />\n\t\t\t</div>\n\t\t\t<div v-else-if=\"layout === 'vertical-split'\" class=\"app-content-wrapper\">\n\t\t\t\t<Splitpanes class=\"default-theme\"\n\t\t\t\t\t@resized=\"handlePaneResize\">\n\t\t\t\t\t<Pane class=\"splitpanes__pane-list\"\n\t\t\t\t\t\t:size=\"listPaneSize || paneDefaults.list.size\"\n\t\t\t\t\t\t:min-size=\"paneDefaults.list.min\"\n\t\t\t\t\t\t:max-size=\"paneDefaults.list.max\">\n\t\t\t\t\t\t<!-- @slot Provide a list to the app content -->\n\t\t\t\t\t\t<slot name=\"list\" />\n\t\t\t\t\t</Pane>\n\n\t\t\t\t\t<Pane class=\"splitpanes__pane-details\"\n\t\t\t\t\t\t:size=\"detailsPaneSize\"\n\t\t\t\t\t\t:min-size=\"paneDefaults.details.min\"\n\t\t\t\t\t\t:max-size=\"paneDefaults.details.max\">\n\t\t\t\t\t\t<!-- @slot Provide the main content to the app content -->\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</Pane>\n\t\t\t\t</Splitpanes>\n\t\t\t</div>\n\t\t</template>\n\t\t<!-- @slot Provide the main content to the app content -->\n\t\t<slot v-if=\"!hasList\" />\n\t</main>\n</template>\n\n<script>\nimport NcAppDetailsToggle from './NcAppDetailsToggle.vue'\nimport { useIsMobile } from '../../composables/useIsMobile/index.js'\n\nimport { getBuilder } from '@nextcloud/browser-storage'\nimport { useSwipe } from '@vueuse/core'\nimport { Splitpanes, Pane } from 'splitpanes'\n\nimport 'splitpanes/dist/splitpanes.css'\nimport { emit } from '@nextcloud/event-bus'\n\nconst browserStorage = getBuilder('nextcloud').persist().build()\n\n/**\n * App content container to be used for the main content of your app\n *\n */\nexport default {\n\tname: 'NcAppContent',\n\n\tcomponents: {\n\t\tNcAppDetailsToggle,\n\t\tPane,\n\t\tSplitpanes,\n\t},\n\tprops: {\n\t\t/**\n\t\t * Allows to disable the control by swipe of the app navigation open state\n\t\t */\n\t\tallowSwipeNavigation: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Allows you to set the default width of the resizable list in %\n\t\t * Must be between listMinWidth and listMaxWidth\n\t\t */\n\t\tlistSize: {\n\t\t\ttype: Number,\n\t\t\tdefault: 20,\n\t\t},\n\n\t\t/**\n\t\t * Allows you to set the minimum width of the list column in %\n\t\t */\n\t\tlistMinWidth: {\n\t\t\ttype: Number,\n\t\t\tdefault: 15,\n\t\t},\n\n\t\t/**\n\t\t * Allows you to set the maximum width of the list column in %\n\t\t */\n\t\tlistMaxWidth: {\n\t\t\ttype: Number,\n\t\t\tdefault: 40,\n\t\t},\n\n\t\t/**\n\t\t * Specify the config key for the pane config sizes\n\t\t * Default is the global var appName if you use the webpack-vue-config\n\t\t */\n\t\tpaneConfigKey: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * When in mobile view, only the list or the details are shown\n\t\t * If you provide a list, you need to provide a variable\n\t\t * that will be set to true by the user when an element of\n\t\t * the list gets selected. The details will then show a back\n\t\t * arrow to return to the list that will update this prop to false.\n\t\t */\n\t\tshowDetails: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Specify the `<h1>` page heading\n\t\t */\n\t\tpageHeading: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Content layout used when there is a list together with content:\n\t\t * - `vertical-split` - a 2-column layout with list and default content separated vertically\n\t\t * - `no-split` - a single column layout; List is shown when `showDetails` is `false`, otherwise the default slot content is shown with a back button to return to the list.\n\t\t * On mobile screen `no-split` layout is forced.\n\t\t */\n\t\tlayout: {\n\t\t\ttype: String,\n\t\t\tdefault: 'vertical-split',\n\t\t\tvalidator(value) {\n\t\t\t\treturn ['no-split', 'vertical-split'].includes(value)\n\t\t\t},\n\t\t},\n\t},\n\n\temits: [\n\t\t'update:showDetails',\n\t\t'resize:list',\n\t],\n\n\tsetup() {\n\t\treturn {\n\t\t\tisMobile: useIsMobile(),\n\t\t}\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tcontentHeight: 0,\n\t\t\thasList: false,\n\t\t\thasContent: false,\n\t\t\tswiping: {},\n\t\t\tlistPaneSize: this.restorePaneConfig(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tpaneConfigID() {\n\t\t\t// If provided, let's use it\n\t\t\tif (this.paneConfigKey !== '') {\n\t\t\t\treturn `pane-list-size-${this.paneConfigKey}`\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Using the webpack-vue-config, appName is a global variable\n\t\t\t\t// This will throw a ReferenceError when the global variable is missing\n\t\t\t\t// In that case either you provide paneConfigKey or else it fallback\n\t\t\t\t// to a global storage key\n\t\t\t\treturn `pane-list-size-${appName}`\n\t\t\t} catch (e) {\n\t\t\t\tconsole.info('[INFO] AppContent:', 'falling back to global nextcloud pane config')\n\t\t\t\treturn 'pane-list-size-nextcloud'\n\t\t\t}\n\t\t},\n\n\t\tdetailsPaneSize() {\n\t\t\tif (this.listPaneSize) {\n\t\t\t\treturn 100 - this.listPaneSize\n\t\t\t}\n\t\t\treturn this.paneDefaults.details.size\n\t\t},\n\n\t\tpaneDefaults() {\n\t\t\treturn {\n\t\t\t\tlist: {\n\t\t\t\t\tsize: this.listSize,\n\t\t\t\t\tmin: this.listMinWidth,\n\t\t\t\t\tmax: this.listMaxWidth,\n\t\t\t\t},\n\n\t\t\t\t// set the inverse values of the details column\n\t\t\t\t// based on the provided (or default) values of the list column\n\t\t\t\tdetails: {\n\t\t\t\t\tsize: 100 - this.listSize,\n\t\t\t\t\tmin: 100 - this.listMaxWidth,\n\t\t\t\t\tmax: 100 - this.listMinWidth,\n\t\t\t\t},\n\t\t\t}\n\t\t},\n\t},\n\n\tupdated() {\n\t\tthis.checkSlots()\n\t},\n\n\tmounted() {\n\t\tif (this.allowSwipeNavigation) {\n\t\t\tthis.swiping = useSwipe(this.$el, {\n\t\t\t\tonSwipeEnd: this.handleSwipe,\n\t\t\t})\n\t\t}\n\n\t\tthis.checkSlots()\n\t\tthis.restorePaneConfig()\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * handle the swipe event\n\t\t *\n\t\t * @param {TouchEvent} e The touch event\n\t\t * @param {import('@vueuse/core').SwipeDirection} direction The swipe direction of the event\n\t\t */\n\t\thandleSwipe(e, direction) {\n\t\t\tconst minSwipeX = 70\n\t\t\tconst touchZone = 300\n\t\t\tif (Math.abs(this.swiping.lengthX) > minSwipeX) {\n\t\t\t\tif (this.swiping.coordsStart.x < (touchZone / 2) && direction === 'right') {\n\t\t\t\t\temit('toggle-navigation', {\n\t\t\t\t\t\topen: true,\n\t\t\t\t\t})\n\t\t\t\t} else if (this.swiping.coordsStart.x < touchZone * 1.5 && direction === 'left') {\n\t\t\t\t\temit('toggle-navigation', {\n\t\t\t\t\t\topen: false,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\thandlePaneResize(event) {\n\t\t\tconst listPaneSize = parseInt(event[0].size, 10)\n\t\t\tbrowserStorage.setItem(this.paneConfigID, JSON.stringify(listPaneSize))\n\t\t\tthis.listPaneSize = listPaneSize\n\t\t\t/**\n\t\t\t * Emitted when the list pane is resized by the user\n\t\t\t */\n\t\t\tthis.$emit('resize:list', { size: listPaneSize })\n\t\t\tconsole.debug('AppContent pane config', listPaneSize)\n\t\t},\n\n\t\t// $slots is not reactive, we need to update this manually\n\t\tcheckSlots() {\n\t\t\tthis.hasList = !!this.$scopedSlots.list\n\t\t\tthis.hasContent = !!this.$scopedSlots.default\n\t\t},\n\n\t\t// browserStorage is not reactive, we need to update this manually\n\t\trestorePaneConfig() {\n\t\t\tconst listPaneSize = parseInt(browserStorage.getItem(this.paneConfigID), 10)\n\t\t\tif (!isNaN(listPaneSize) && listPaneSize !== this.listPaneSize) {\n\t\t\t\tconsole.debug('AppContent pane config', listPaneSize)\n\t\t\t\tthis.listPaneSize = listPaneSize\n\t\t\t\treturn listPaneSize\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * The user clicked the back arrow from the details view\n\t\t */\n\t\thideDetails() {\n\t\t\tthis.$emit('update:showDetails', false)\n\t\t},\n\t},\n}\n</script>\n<style lang=\"scss\" scoped>\n\n.app-content {\n\tposition: initial;\n\tz-index: 1000;\n\tflex-basis: 100vw;\n\theight: 100%;\n\t// Overriding server styles TODO: cleanup!\n\tmargin: 0 !important;\n\tbackground-color: var(--color-main-background);\n\tmin-width: 0;\n\n\t&:not(.app-content--has-list) {\n\t\toverflow: auto;\n\t}\n}\n\n.app-content-wrapper {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n// Mobile list/details handling\n.app-content-wrapper--no-split {\n\t&.app-content-wrapper--show-list :deep() {\n\t\t.app-content-list {\n\t\t\tdisplay: flex;\n\t\t}\n\t\t.app-content-details {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\t&.app-content-wrapper--show-details :deep() {\n\t\t.app-content-list {\n\t\t\tdisplay: none;\n\t\t}\n\t\t.app-content-details {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n\n:deep(.splitpanes.default-theme) {\n\t.app-content-list {\n\t\tmax-width: none;\n\t\t/* Thin scrollbar is hard to catch on resizable columns */\n\t\tscrollbar-width: auto;\n\t}\n\n\t.splitpanes__pane {\n\t\tbackground-color: transparent;\n\t\ttransition: none;\n\n\t\t&-list {\n\t\t\tmin-width: 300px;\n\t\t\tposition: sticky;\n\t\t\ttop: var(--header-height);\n\n\t\t\t@media only screen and (width < $breakpoint-mobile) {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\n\t\t&-details {\n\t\t\toverflow-y: auto;\n\n\t\t\t@media only screen and (width < $breakpoint-mobile) {\n\t\t\t\tmin-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.splitpanes__splitter {\n\t\twidth: 9px;\n\t\tmargin-left: -5px;\n\t\tbackground-color: transparent;\n\t\tborder-left: none;\n\n\t\t&:before,\n\t\t&:after {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.app-content-wrapper--show-list {\n\t:deep(.app-content-list) {\n\t\tmax-width: none;\n\t}\n}\n</style>\n"],"names":["_sfc_main","Tooltip","NcButton","ArrowRight","useIsMobile","t","hide","appNavigationToggle","emit","browserStorage","getBuilder","NcAppDetailsToggle","Pane","Splitpanes","value","useSwipe","e","direction","event","listPaneSize"],"mappings":"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"}