@nextcloud/vue 8.13.0 → 8.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/Components/NcActionButton.cjs +2 -2
  3. package/dist/Components/NcActionButton.cjs.map +1 -1
  4. package/dist/Components/NcActionButton.mjs +2 -2
  5. package/dist/Components/NcActionButton.mjs.map +1 -1
  6. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  7. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  8. package/dist/Components/NcActionCaption.cjs +2 -2
  9. package/dist/Components/NcActionCaption.cjs.map +1 -1
  10. package/dist/Components/NcActionCaption.mjs +2 -2
  11. package/dist/Components/NcActionCaption.mjs.map +1 -1
  12. package/dist/Components/NcActionCheckbox.cjs +2 -2
  13. package/dist/Components/NcActionCheckbox.cjs.map +1 -1
  14. package/dist/Components/NcActionCheckbox.mjs +2 -2
  15. package/dist/Components/NcActionCheckbox.mjs.map +1 -1
  16. package/dist/Components/NcActionInput.cjs +1 -1
  17. package/dist/Components/NcActionInput.mjs +1 -1
  18. package/dist/Components/NcActionLink.cjs +1 -1
  19. package/dist/Components/NcActionLink.mjs +1 -1
  20. package/dist/Components/NcActionRadio.cjs +2 -2
  21. package/dist/Components/NcActionRadio.cjs.map +1 -1
  22. package/dist/Components/NcActionRadio.mjs +2 -2
  23. package/dist/Components/NcActionRadio.mjs.map +1 -1
  24. package/dist/Components/NcActionRouter.cjs +1 -1
  25. package/dist/Components/NcActionRouter.mjs +1 -1
  26. package/dist/Components/NcActionText.cjs +1 -1
  27. package/dist/Components/NcActionText.mjs +1 -1
  28. package/dist/Components/NcActionTextEditable.cjs +2 -2
  29. package/dist/Components/NcActionTextEditable.cjs.map +1 -1
  30. package/dist/Components/NcActionTextEditable.mjs +2 -2
  31. package/dist/Components/NcActionTextEditable.mjs.map +1 -1
  32. package/dist/Components/NcActions.cjs +1 -1
  33. package/dist/Components/NcActions.mjs +1 -1
  34. package/dist/Components/NcAppContent.cjs +1 -1
  35. package/dist/Components/NcAppContent.mjs +1 -1
  36. package/dist/Components/NcAppNavigation.cjs +1 -1
  37. package/dist/Components/NcAppNavigation.mjs +1 -1
  38. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  39. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  40. package/dist/Components/NcAppNavigationIconBullet.cjs +2 -2
  41. package/dist/Components/NcAppNavigationIconBullet.cjs.map +1 -1
  42. package/dist/Components/NcAppNavigationIconBullet.mjs +2 -2
  43. package/dist/Components/NcAppNavigationIconBullet.mjs.map +1 -1
  44. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  45. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  46. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  47. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  48. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  49. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  50. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  51. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  52. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  53. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  54. package/dist/Components/NcAppSettingsSection.cjs +3 -3
  55. package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
  56. package/dist/Components/NcAppSettingsSection.mjs +3 -3
  57. package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
  58. package/dist/Components/NcAppSidebar.cjs +1 -1
  59. package/dist/Components/NcAppSidebar.mjs +1 -1
  60. package/dist/Components/NcAvatar.cjs +1 -1
  61. package/dist/Components/NcAvatar.mjs +1 -1
  62. package/dist/Components/NcBreadcrumb.cjs +1 -1
  63. package/dist/Components/NcBreadcrumb.mjs +1 -1
  64. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  65. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  66. package/dist/Components/NcButton.cjs +15 -3
  67. package/dist/Components/NcButton.cjs.map +1 -1
  68. package/dist/Components/NcButton.mjs +15 -3
  69. package/dist/Components/NcButton.mjs.map +1 -1
  70. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  71. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  72. package/dist/Components/NcChip.cjs +3 -3
  73. package/dist/Components/NcChip.mjs +3 -3
  74. package/dist/Components/NcCollectionList.cjs +3 -0
  75. package/dist/Components/NcCollectionList.cjs.map +1 -0
  76. package/dist/Components/NcCollectionList.mjs +4 -0
  77. package/dist/Components/NcCollectionList.mjs.map +1 -0
  78. package/dist/Components/NcColorPicker.cjs +1 -1
  79. package/dist/Components/NcColorPicker.mjs +1 -1
  80. package/dist/Components/NcContent.cjs +1 -1
  81. package/dist/Components/NcContent.mjs +1 -1
  82. package/dist/Components/NcCounterBubble.cjs +2 -2
  83. package/dist/Components/NcCounterBubble.cjs.map +1 -1
  84. package/dist/Components/NcCounterBubble.mjs +2 -2
  85. package/dist/Components/NcCounterBubble.mjs.map +1 -1
  86. package/dist/Components/NcDashboardWidget.cjs +1 -1
  87. package/dist/Components/NcDashboardWidget.mjs +1 -1
  88. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  89. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  90. package/dist/Components/NcDateTime.cjs +1 -1
  91. package/dist/Components/NcDateTime.mjs +1 -1
  92. package/dist/Components/NcDateTimePicker.cjs +5 -5
  93. package/dist/Components/NcDateTimePicker.mjs +5 -5
  94. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  95. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  96. package/dist/Components/NcDialog.cjs +1 -1
  97. package/dist/Components/NcDialog.mjs +1 -1
  98. package/dist/Components/NcEmojiPicker.cjs +1 -1
  99. package/dist/Components/NcEmojiPicker.mjs +1 -1
  100. package/dist/Components/NcHeaderMenu.cjs +1 -1
  101. package/dist/Components/NcHeaderMenu.mjs +1 -1
  102. package/dist/Components/NcInputField.cjs +2 -2
  103. package/dist/Components/NcInputField.cjs.map +1 -1
  104. package/dist/Components/NcInputField.mjs +2 -2
  105. package/dist/Components/NcInputField.mjs.map +1 -1
  106. package/dist/Components/NcListItem.cjs +1 -1
  107. package/dist/Components/NcListItem.mjs +1 -1
  108. package/dist/Components/NcListItemIcon.cjs +1 -1
  109. package/dist/Components/NcListItemIcon.mjs +1 -1
  110. package/dist/Components/NcModal.cjs +29 -9
  111. package/dist/Components/NcModal.cjs.map +1 -1
  112. package/dist/Components/NcModal.mjs +27 -9
  113. package/dist/Components/NcModal.mjs.map +1 -1
  114. package/dist/Components/NcPasswordField.cjs +1 -1
  115. package/dist/Components/NcPasswordField.mjs +1 -1
  116. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  117. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  118. package/dist/Components/NcRichContenteditable.cjs +2 -2
  119. package/dist/Components/NcRichContenteditable.mjs +2 -2
  120. package/dist/Components/NcRichText.cjs +2 -2
  121. package/dist/Components/NcRichText.mjs +3 -3
  122. package/dist/Components/NcSelect.cjs +1 -1
  123. package/dist/Components/NcSelect.mjs +1 -1
  124. package/dist/Components/NcSelectTags.cjs +1 -1
  125. package/dist/Components/NcSelectTags.mjs +1 -1
  126. package/dist/Components/NcSettingsInputText.cjs +1 -1
  127. package/dist/Components/NcSettingsInputText.mjs +1 -1
  128. package/dist/Components/NcSettingsSection.cjs +1 -1
  129. package/dist/Components/NcSettingsSection.mjs +1 -1
  130. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  131. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  132. package/dist/Components/NcTextField.cjs +1 -1
  133. package/dist/Components/NcTextField.mjs +1 -1
  134. package/dist/Components/NcTimezonePicker.cjs +1 -1
  135. package/dist/Components/NcTimezonePicker.mjs +1 -1
  136. package/dist/Components/NcUserBubble.cjs +1 -1
  137. package/dist/Components/NcUserBubble.mjs +1 -1
  138. package/dist/Components/NcUserStatusIcon.cjs +1 -1
  139. package/dist/Components/NcUserStatusIcon.mjs +1 -1
  140. package/dist/Functions/reference.cjs +1 -1
  141. package/dist/Functions/reference.mjs +1 -1
  142. package/dist/Functions/usernameToColor.cjs +1 -1
  143. package/dist/Functions/usernameToColor.mjs +1 -1
  144. package/dist/Mixins/richEditor.cjs +1 -1
  145. package/dist/Mixins/richEditor.mjs +1 -1
  146. package/dist/assets/{NcActionButton-BQGADRoe.css → NcActionButton-D90PTEA5.css} +25 -25
  147. package/dist/assets/{NcActionCaption-D-VXTPLI.css → NcActionCaption-B7FZTc3Y.css} +4 -4
  148. package/dist/assets/{NcActionRadio-mQBhh9vp.css → NcActionCheckbox-C-PJVvtb.css} +13 -13
  149. package/dist/assets/NcActionInput-C_3Csa6A.css +220 -0
  150. package/dist/assets/{NcActionLink-Djp7wPGg.css → NcActionLink-Db_ZlqWs.css} +9 -9
  151. package/dist/assets/{NcActionCheckbox-_DSvRrCm.css → NcActionRadio-CpCvyMa_.css} +13 -13
  152. package/dist/assets/{NcActionRouter-DzcScCc6.css → NcActionRouter-DidTlbov.css} +9 -9
  153. package/dist/assets/{NcActionText-DSk64KBl.css → NcActionText-DCx1DWXe.css} +9 -9
  154. package/dist/assets/NcActionTextEditable-Dud9NOdm.css +238 -0
  155. package/dist/assets/{NcActions-DtkhUUGj.css → NcActions-JDMMURyt.css} +13 -13
  156. package/dist/assets/{NcAppContent-D0DGjfq9.css → NcAppContent-B1ZWQTUv.css} +7 -7
  157. package/dist/assets/{NcAppNavigationCaption-32LhJ9Co.css → NcAppNavigationCaption-Cgexlz2n.css} +10 -10
  158. package/dist/assets/{NcAppNavigationIconBullet-EfIZU7x-.css → NcAppNavigationIconBullet-By_0o2dG.css} +4 -4
  159. package/dist/assets/{NcAppNavigationItem-CflKjlYl.css → NcAppNavigationItem-Cas1plMr.css} +13 -13
  160. package/dist/assets/{NcAppNavigationNewItem-CO3GnR26.css → NcAppNavigationNewItem-Dw2sHtEO.css} +46 -46
  161. package/dist/assets/{NcAppNavigationSettings-CbV2ZQ9_.css → NcAppNavigationSettings-DtCFYPKb.css} +17 -17
  162. package/dist/assets/{NcAppNavigationToggle-DzpFNOgZ.css → NcAppNavigationToggle-DvYpNzHv.css} +4 -4
  163. package/dist/assets/{NcAppSettingsDialog-DkvJ9cKe.css → NcAppSettingsDialog-YgAGku7I.css} +12 -12
  164. package/dist/assets/{NcAppSettingsSection-B5r6VWct.css → NcAppSettingsSection-AUZ2NjMX.css} +3 -3
  165. package/dist/assets/{NcAppSidebar-ITHlK5rW.css → NcAppSidebar-GLK326IR.css} +70 -70
  166. package/dist/assets/{NcBreadcrumb-rVleA0T6.css → NcBreadcrumb-DOvK-XG1.css} +16 -16
  167. package/dist/assets/{NcBreadcrumbs-Bue16qCC.css → NcBreadcrumbs-CPUAM38l.css} +6 -6
  168. package/dist/assets/NcButton-BHxZm42y.css +210 -0
  169. package/dist/assets/{NcCheckboxRadioSwitch-CFKCb80n.css → NcCheckboxRadioSwitch-BkBep4wT.css} +46 -46
  170. package/dist/assets/NcCollectionList-ETQTqkqt.css +221 -0
  171. package/dist/assets/{NcColorPicker-DH3H7HLS.css → NcColorPicker-Ctv2cwt1.css} +25 -25
  172. package/dist/assets/{NcCounterBubble-DT16e2bg.css → NcCounterBubble-BlAq2Vim.css} +8 -8
  173. package/dist/assets/{NcDashboardWidget-CwzqyUG9.css → NcDashboardWidget-CpstyXok.css} +13 -13
  174. package/dist/assets/{NcDashboardWidgetItem-JCtQhwhS.css → NcDashboardWidgetItem-Qe5SSOhA.css} +14 -14
  175. package/dist/assets/{NcDateTimePicker-Cs-VgGon.css → NcDateTimePicker-BR1KY59N.css} +8 -8
  176. package/dist/assets/{NcDialog-BR3cQR_R.css → NcDialog-j6_6dpiF.css} +15 -15
  177. package/dist/assets/{NcHeaderMenu-BbpDtHjf.css → NcHeaderMenu-CuAI7Fgb.css} +13 -13
  178. package/dist/assets/{NcInputField-CyNcetxP.css → NcInputField-CrdP183e.css} +34 -34
  179. package/dist/assets/{NcListItemIcon-Cd4723rU.css → NcListItemIcon-DxPdaRV5.css} +14 -14
  180. package/dist/assets/{NcMentionBubble-B-xYaJDc.css → NcMentionBubble-C6t8od-_.css} +13 -10
  181. package/dist/assets/{NcModal-6bpKFk4w.css → NcModal-CYa2IEvm.css} +69 -69
  182. package/dist/assets/{NcRelatedResourcesPanel-i_FBo7DY.css → NcRelatedResourcesPanel-BE9CQ8s8.css} +25 -25
  183. package/dist/assets/{NcRichContenteditable-BIclrp8v.css → NcRichContenteditable-CkvTrjfG.css} +13 -13
  184. package/dist/assets/{NcRichText-BKoK9ulg.css → NcRichText-BzeK2YTS.css} +4 -4
  185. package/dist/assets/{NcSelect-9AZOhTlS.css → NcSelect-BQt_SpyP.css} +1 -1
  186. package/dist/assets/{NcSettingsSection-B_Dat_E8.css → NcSettingsSection-DZwOPKg1.css} +11 -11
  187. package/dist/assets/{referencePickerModal-C_c_8fEM.css → referencePickerModal-9BcmmfUy.css} +36 -36
  188. package/dist/chunks/{GenColors-Cf5olCPx.cjs → GenColors-Dt-3yZwf.cjs} +1 -1
  189. package/dist/chunks/{GenColors-Cf5olCPx.cjs.map → GenColors-Dt-3yZwf.cjs.map} +1 -1
  190. package/dist/chunks/{GenColors-BvNpSI9g.mjs → GenColors-DtEnxSd9.mjs} +1 -1
  191. package/dist/chunks/{GenColors-BvNpSI9g.mjs.map → GenColors-DtEnxSd9.mjs.map} +1 -1
  192. package/dist/chunks/{NcActionButtonGroup-DCKhQnHH.mjs → NcActionButtonGroup-B62_HajM.mjs} +1 -1
  193. package/dist/chunks/{NcActionButtonGroup-DCKhQnHH.mjs.map → NcActionButtonGroup-B62_HajM.mjs.map} +1 -1
  194. package/dist/chunks/{NcActionButtonGroup-BO4eSfV4.cjs → NcActionButtonGroup-DKtkuRy5.cjs} +1 -1
  195. package/dist/chunks/{NcActionButtonGroup-BO4eSfV4.cjs.map → NcActionButtonGroup-DKtkuRy5.cjs.map} +1 -1
  196. package/dist/chunks/{NcActionInput-9zrp0_WC.mjs → NcActionInput-DvbN3P1D.mjs} +7 -7
  197. package/dist/chunks/{NcActionInput-9zrp0_WC.mjs.map → NcActionInput-DvbN3P1D.mjs.map} +1 -1
  198. package/dist/chunks/{NcActionInput-CEjCUwt0.cjs → NcActionInput-Dw1TL9ig.cjs} +7 -7
  199. package/dist/chunks/{NcActionInput-CEjCUwt0.cjs.map → NcActionInput-Dw1TL9ig.cjs.map} +1 -1
  200. package/dist/chunks/{NcActions-VXT4YqSd.mjs → NcActions-CL3YRRgz.mjs} +3 -3
  201. package/dist/chunks/{NcActions-VXT4YqSd.mjs.map → NcActions-CL3YRRgz.mjs.map} +1 -1
  202. package/dist/chunks/{NcActions-B4kN_x_I.cjs → NcActions-DRSoPS6a.cjs} +3 -3
  203. package/dist/chunks/{NcActions-B4kN_x_I.cjs.map → NcActions-DRSoPS6a.cjs.map} +1 -1
  204. package/dist/chunks/{NcAppContent-B-VnA8x6.mjs → NcAppContent-Cgay0O3i.mjs} +4 -4
  205. package/dist/chunks/NcAppContent-Cgay0O3i.mjs.map +1 -0
  206. package/dist/chunks/{NcAppContent-CoKCN5M3.cjs → NcAppContent-ibyvoVc4.cjs} +4 -4
  207. package/dist/chunks/NcAppContent-ibyvoVc4.cjs.map +1 -0
  208. package/dist/chunks/{NcAppNavigation-Bto5gXEz.cjs → NcAppNavigation-Cw8qnf4l.cjs} +1 -1
  209. package/dist/chunks/{NcAppNavigation-Bto5gXEz.cjs.map → NcAppNavigation-Cw8qnf4l.cjs.map} +1 -1
  210. package/dist/chunks/{NcAppNavigation-BoSCCzgq.mjs → NcAppNavigation-D15PXjlO.mjs} +1 -1
  211. package/dist/chunks/{NcAppNavigation-BoSCCzgq.mjs.map → NcAppNavigation-D15PXjlO.mjs.map} +1 -1
  212. package/dist/chunks/{NcAppNavigationCaption-7V2xr2JU.cjs → NcAppNavigationCaption-CO8Hwyrb.cjs} +3 -3
  213. package/dist/chunks/{NcAppNavigationCaption-7V2xr2JU.cjs.map → NcAppNavigationCaption-CO8Hwyrb.cjs.map} +1 -1
  214. package/dist/chunks/{NcAppNavigationCaption-D5IlWwqU.mjs → NcAppNavigationCaption-DsGPHQvj.mjs} +3 -3
  215. package/dist/chunks/{NcAppNavigationCaption-D5IlWwqU.mjs.map → NcAppNavigationCaption-DsGPHQvj.mjs.map} +1 -1
  216. package/dist/chunks/{NcAppNavigationItem-D0BY5hCQ.cjs → NcAppNavigationItem-BVLg_dnQ.cjs} +6 -6
  217. package/dist/chunks/{NcAppNavigationItem-D0BY5hCQ.cjs.map → NcAppNavigationItem-BVLg_dnQ.cjs.map} +1 -1
  218. package/dist/chunks/{NcAppNavigationItem-BvTE5-IF.mjs → NcAppNavigationItem-fKe0Oi-K.mjs} +6 -6
  219. package/dist/chunks/{NcAppNavigationItem-BvTE5-IF.mjs.map → NcAppNavigationItem-fKe0Oi-K.mjs.map} +1 -1
  220. package/dist/chunks/{NcAppNavigationNewItem-a_KNNkkf.mjs → NcAppNavigationNewItem-BEVsUTrd.mjs} +3 -3
  221. package/dist/chunks/{NcAppNavigationNewItem-DI3F9V41.cjs.map → NcAppNavigationNewItem-BEVsUTrd.mjs.map} +1 -1
  222. package/dist/chunks/{NcAppNavigationNewItem-DI3F9V41.cjs → NcAppNavigationNewItem-DlC2GWGK.cjs} +3 -3
  223. package/dist/chunks/{NcAppNavigationNewItem-a_KNNkkf.mjs.map → NcAppNavigationNewItem-DlC2GWGK.cjs.map} +1 -1
  224. package/dist/chunks/{NcAppNavigationSettings-CkdNLEGg.cjs → NcAppNavigationSettings-BidyunnY.cjs} +5 -5
  225. package/dist/chunks/{NcAppNavigationSettings-CkdNLEGg.cjs.map → NcAppNavigationSettings-BidyunnY.cjs.map} +1 -1
  226. package/dist/chunks/{NcAppNavigationSettings-ZYhJhZza.mjs → NcAppNavigationSettings-CEHSXiJt.mjs} +5 -5
  227. package/dist/chunks/{NcAppNavigationSettings-ZYhJhZza.mjs.map → NcAppNavigationSettings-CEHSXiJt.mjs.map} +1 -1
  228. package/dist/chunks/{NcAppNavigationToggle-dHmyeRMf.mjs → NcAppNavigationToggle-CdNG26lR.mjs} +4 -4
  229. package/dist/chunks/{NcAppNavigationToggle-dTKw7Sw8.cjs.map → NcAppNavigationToggle-CdNG26lR.mjs.map} +1 -1
  230. package/dist/chunks/{NcAppNavigationToggle-dTKw7Sw8.cjs → NcAppNavigationToggle-DFhfV_Ic.cjs} +4 -4
  231. package/dist/chunks/{NcAppNavigationToggle-dHmyeRMf.mjs.map → NcAppNavigationToggle-DFhfV_Ic.cjs.map} +1 -1
  232. package/dist/chunks/{NcAppSettingsDialog-B_JHYQei.mjs → NcAppSettingsDialog-BExa9wmg.mjs} +5 -5
  233. package/dist/chunks/{NcAppSettingsDialog-B_JHYQei.mjs.map → NcAppSettingsDialog-BExa9wmg.mjs.map} +1 -1
  234. package/dist/chunks/{NcAppSettingsDialog-DB9IGg_1.cjs → NcAppSettingsDialog-Zy4akEYz.cjs} +5 -5
  235. package/dist/chunks/{NcAppSettingsDialog-DB9IGg_1.cjs.map → NcAppSettingsDialog-Zy4akEYz.cjs.map} +1 -1
  236. package/dist/chunks/{NcAppSidebar-DfMS3rRN.mjs → NcAppSidebar-CYd47NKe.mjs} +26 -9
  237. package/dist/chunks/NcAppSidebar-CYd47NKe.mjs.map +1 -0
  238. package/dist/chunks/{NcAppSidebar-Be2hX08l.cjs → NcAppSidebar-kuqm78Wl.cjs} +26 -9
  239. package/dist/chunks/NcAppSidebar-kuqm78Wl.cjs.map +1 -0
  240. package/dist/chunks/{NcAvatar-DrN_43xE.mjs → NcAvatar-BC884DnC.mjs} +6 -6
  241. package/dist/chunks/{NcAvatar-DrN_43xE.mjs.map → NcAvatar-BC884DnC.mjs.map} +1 -1
  242. package/dist/chunks/{NcAvatar-B1PwcHhO.cjs → NcAvatar-BX8J9gZF.cjs} +6 -6
  243. package/dist/chunks/{NcAvatar-B1PwcHhO.cjs.map → NcAvatar-BX8J9gZF.cjs.map} +1 -1
  244. package/dist/chunks/{NcBreadcrumb-BB7O3NvV.mjs → NcBreadcrumb-BVLavjOe.mjs} +3 -3
  245. package/dist/chunks/{NcBreadcrumb-BB7O3NvV.mjs.map → NcBreadcrumb-BVLavjOe.mjs.map} +1 -1
  246. package/dist/chunks/{NcBreadcrumb-C1VWgdNk.cjs → NcBreadcrumb-DbuEPD5w.cjs} +3 -3
  247. package/dist/chunks/{NcBreadcrumb-C1VWgdNk.cjs.map → NcBreadcrumb-DbuEPD5w.cjs.map} +1 -1
  248. package/dist/chunks/{NcBreadcrumbs-BRl8V6ie.mjs → NcBreadcrumbs-BBO2DLP1.mjs} +4 -4
  249. package/dist/chunks/NcBreadcrumbs-BBO2DLP1.mjs.map +1 -0
  250. package/dist/chunks/{NcBreadcrumbs-BZFTIrPp.cjs → NcBreadcrumbs-iIR1Tw0r.cjs} +4 -4
  251. package/dist/chunks/NcBreadcrumbs-iIR1Tw0r.cjs.map +1 -0
  252. package/dist/chunks/{NcCheckboxRadioSwitch-BC-PCCMB.cjs → NcCheckboxRadioSwitch-B0HYTOsR.cjs} +11 -5
  253. package/dist/chunks/NcCheckboxRadioSwitch-B0HYTOsR.cjs.map +1 -0
  254. package/dist/chunks/{NcCheckboxRadioSwitch-08IiPYnO.mjs → NcCheckboxRadioSwitch-D2GbHtCS.mjs} +11 -5
  255. package/dist/chunks/NcCheckboxRadioSwitch-D2GbHtCS.mjs.map +1 -0
  256. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_919d07b7_lang-CPc4BraS.cjs +4 -0
  257. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_919d07b7_lang-CPc4BraS.cjs.map +1 -0
  258. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_919d07b7_lang-ScT6WV__.mjs +3 -0
  259. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_919d07b7_lang-ScT6WV__.mjs.map +1 -0
  260. package/dist/chunks/NcCollectionList-3O-OrcfS.mjs +428 -0
  261. package/dist/chunks/NcCollectionList-3O-OrcfS.mjs.map +1 -0
  262. package/dist/chunks/NcCollectionList-D4oNsvJ0.cjs +430 -0
  263. package/dist/chunks/NcCollectionList-D4oNsvJ0.cjs.map +1 -0
  264. package/dist/chunks/{NcColorPicker-C5AAUZow.mjs → NcColorPicker-D7awy8o_.mjs} +4 -4
  265. package/dist/chunks/{NcColorPicker-C5AAUZow.mjs.map → NcColorPicker-D7awy8o_.mjs.map} +1 -1
  266. package/dist/chunks/{NcColorPicker-DQVfrnSU.cjs → NcColorPicker-hOteJtis.cjs} +4 -4
  267. package/dist/chunks/{NcColorPicker-DQVfrnSU.cjs.map → NcColorPicker-hOteJtis.cjs.map} +1 -1
  268. package/dist/chunks/{NcContent-DlpAl0Ng.mjs → NcContent-CQn8oXxp.mjs} +2 -2
  269. package/dist/chunks/{NcContent-DlpAl0Ng.mjs.map → NcContent-CQn8oXxp.mjs.map} +1 -1
  270. package/dist/chunks/{NcContent-DqUD53yw.cjs → NcContent-Dr9e_aYA.cjs} +2 -2
  271. package/dist/chunks/{NcContent-DqUD53yw.cjs.map → NcContent-Dr9e_aYA.cjs.map} +1 -1
  272. package/dist/chunks/{NcDashboardWidget-DHZ91zbH.cjs → NcDashboardWidget-DnDLhRmV.cjs} +6 -6
  273. package/dist/chunks/{NcDashboardWidget-DHZ91zbH.cjs.map → NcDashboardWidget-DnDLhRmV.cjs.map} +1 -1
  274. package/dist/chunks/{NcDashboardWidget-Bgws_A-4.mjs → NcDashboardWidget-hTBgsnwG.mjs} +6 -6
  275. package/dist/chunks/{NcDashboardWidget-Bgws_A-4.mjs.map → NcDashboardWidget-hTBgsnwG.mjs.map} +1 -1
  276. package/dist/chunks/{NcDashboardWidgetItem-7POJ_0UL.cjs → NcDashboardWidgetItem-BorZC7ZL.cjs} +4 -4
  277. package/dist/chunks/{NcDashboardWidgetItem-7POJ_0UL.cjs.map → NcDashboardWidgetItem-BorZC7ZL.cjs.map} +1 -1
  278. package/dist/chunks/{NcDashboardWidgetItem-yOTSuJJW.mjs → NcDashboardWidgetItem-CorJJt6-.mjs} +4 -4
  279. package/dist/chunks/{NcDashboardWidgetItem-yOTSuJJW.mjs.map → NcDashboardWidgetItem-CorJJt6-.mjs.map} +1 -1
  280. package/dist/chunks/{NcDateTime-DBvDI3ZP.mjs → NcDateTime-Eat0YWPN.mjs} +1 -1
  281. package/dist/chunks/{NcDateTime-DBvDI3ZP.mjs.map → NcDateTime-Eat0YWPN.mjs.map} +1 -1
  282. package/dist/chunks/{NcDateTime-DPpc-ffs.cjs → NcDateTime-K3Rie9qv.cjs} +1 -1
  283. package/dist/chunks/{NcDateTime-DPpc-ffs.cjs.map → NcDateTime-K3Rie9qv.cjs.map} +1 -1
  284. package/dist/chunks/{NcDialog-dCyByQCG.cjs → NcDialog-DGaf6Udc.cjs} +6 -4
  285. package/dist/chunks/{NcDialog-CDQmAtFa.mjs.map → NcDialog-DGaf6Udc.cjs.map} +1 -1
  286. package/dist/chunks/{NcDialog-CDQmAtFa.mjs → NcDialog-VincZ0XS.mjs} +6 -4
  287. package/dist/chunks/{NcDialog-dCyByQCG.cjs.map → NcDialog-VincZ0XS.mjs.map} +1 -1
  288. package/dist/chunks/{NcEmojiPicker-CNiHLIbP.cjs → NcEmojiPicker-DCT0-SIC.cjs} +5 -5
  289. package/dist/chunks/{NcEmojiPicker-CNiHLIbP.cjs.map → NcEmojiPicker-DCT0-SIC.cjs.map} +1 -1
  290. package/dist/chunks/{NcEmojiPicker-CEeN-AZM.mjs → NcEmojiPicker-ziqKge9K.mjs} +5 -5
  291. package/dist/chunks/{NcEmojiPicker-CEeN-AZM.mjs.map → NcEmojiPicker-ziqKge9K.mjs.map} +1 -1
  292. package/dist/chunks/{NcHeaderMenu-C7peZLEA.cjs → NcHeaderMenu-D-Jo3l41.cjs} +4 -4
  293. package/dist/chunks/NcHeaderMenu-D-Jo3l41.cjs.map +1 -0
  294. package/dist/chunks/{NcHeaderMenu-BEp6lzuy.mjs → NcHeaderMenu-Da6Ob-6t.mjs} +4 -4
  295. package/dist/chunks/NcHeaderMenu-Da6Ob-6t.mjs.map +1 -0
  296. package/dist/chunks/{NcInputConfirmCancel-CD8NS4jj.cjs → NcInputConfirmCancel-Bt_VDaTA.cjs} +2 -2
  297. package/dist/chunks/{NcInputConfirmCancel-CD8NS4jj.cjs.map → NcInputConfirmCancel-Bt_VDaTA.cjs.map} +1 -1
  298. package/dist/chunks/{NcInputConfirmCancel-BojmHIVt.mjs → NcInputConfirmCancel-BvsvyKxD.mjs} +2 -2
  299. package/dist/chunks/{NcInputConfirmCancel-BojmHIVt.mjs.map → NcInputConfirmCancel-BvsvyKxD.mjs.map} +1 -1
  300. package/dist/chunks/{NcListItem-Bt5RbZT6.cjs → NcListItem-BwUN8FaS.cjs} +2 -2
  301. package/dist/chunks/{NcListItem-Bt5RbZT6.cjs.map → NcListItem-BwUN8FaS.cjs.map} +1 -1
  302. package/dist/chunks/{NcListItem-PX9C1UU4.mjs → NcListItem-DwIZ95t7.mjs} +2 -2
  303. package/dist/chunks/{NcListItem-PX9C1UU4.mjs.map → NcListItem-DwIZ95t7.mjs.map} +1 -1
  304. package/dist/chunks/{NcListItemIcon-NtOXrncP.mjs → NcListItemIcon-DhW1Fob8.mjs} +4 -4
  305. package/dist/chunks/{NcListItemIcon-NtOXrncP.mjs.map → NcListItemIcon-DhW1Fob8.mjs.map} +1 -1
  306. package/dist/chunks/{NcListItemIcon-CSD8rRYj.cjs → NcListItemIcon-JeS1a2jI.cjs} +4 -4
  307. package/dist/chunks/{NcListItemIcon-CSD8rRYj.cjs.map → NcListItemIcon-JeS1a2jI.cjs.map} +1 -1
  308. package/dist/chunks/{NcPasswordField-Y4-be0L7.cjs → NcPasswordField-9h22h-sl.cjs} +2 -2
  309. package/dist/chunks/{NcPasswordField-Y4-be0L7.cjs.map → NcPasswordField-9h22h-sl.cjs.map} +1 -1
  310. package/dist/chunks/{NcPasswordField-XxjYVmM9.mjs → NcPasswordField-xauR6801.mjs} +2 -2
  311. package/dist/chunks/{NcPasswordField-XxjYVmM9.mjs.map → NcPasswordField-xauR6801.mjs.map} +1 -1
  312. package/dist/chunks/{NcRelatedResourcesPanel-Dlf-t8iR.cjs → NcRelatedResourcesPanel-Be1fGCiu.cjs} +7 -7
  313. package/dist/chunks/NcRelatedResourcesPanel-Be1fGCiu.cjs.map +1 -0
  314. package/dist/chunks/{NcRelatedResourcesPanel-wFENPmmn.mjs → NcRelatedResourcesPanel-mSjo_nq5.mjs} +7 -7
  315. package/dist/chunks/NcRelatedResourcesPanel-mSjo_nq5.mjs.map +1 -0
  316. package/dist/chunks/{NcRichContenteditable-DdG9-ftG.cjs → NcRichContenteditable-BbPOC-_I.cjs} +12 -11
  317. package/dist/chunks/{NcRichContenteditable-DdG9-ftG.cjs.map → NcRichContenteditable-BbPOC-_I.cjs.map} +1 -1
  318. package/dist/chunks/{NcRichContenteditable-BGW5Ut1z.mjs → NcRichContenteditable-CakN30zF.mjs} +12 -11
  319. package/dist/chunks/{NcRichContenteditable-BGW5Ut1z.mjs.map → NcRichContenteditable-CakN30zF.mjs.map} +1 -1
  320. package/dist/chunks/{NcRichText-B0CKR0jj.cjs → NcRichText-65CdQLUw.cjs} +4 -4
  321. package/dist/chunks/NcRichText-65CdQLUw.cjs.map +1 -0
  322. package/dist/chunks/{NcRichText-D3knHFLh.mjs → NcRichText-CCM1HmZE.mjs} +4 -4
  323. package/dist/chunks/NcRichText-CCM1HmZE.mjs.map +1 -0
  324. package/dist/chunks/{NcSelect-BVltxWdw.mjs → NcSelect-CKgXIbQN.mjs} +4 -4
  325. package/dist/chunks/{NcSelect-BXjYMf6X.cjs.map → NcSelect-CKgXIbQN.mjs.map} +1 -1
  326. package/dist/chunks/{NcSelect-BXjYMf6X.cjs → NcSelect-CmV2Q0A0.cjs} +4 -4
  327. package/dist/chunks/{NcSelect-BVltxWdw.mjs.map → NcSelect-CmV2Q0A0.cjs.map} +1 -1
  328. package/dist/chunks/{NcSelectTags-BA6aGEca.mjs → NcSelectTags-BIha_vfa.mjs} +2 -2
  329. package/dist/chunks/{NcSelectTags-BA6aGEca.mjs.map → NcSelectTags-BIha_vfa.mjs.map} +1 -1
  330. package/dist/chunks/{NcSelectTags-DzNoReBn.cjs → NcSelectTags-eQRTXuQr.cjs} +2 -2
  331. package/dist/chunks/{NcSelectTags-DzNoReBn.cjs.map → NcSelectTags-eQRTXuQr.cjs.map} +1 -1
  332. package/dist/chunks/{NcSettingsInputText-B3aogzD0.cjs → NcSettingsInputText-Cdw4mTrp.cjs} +2 -2
  333. package/dist/chunks/{NcSettingsInputText-B3aogzD0.cjs.map → NcSettingsInputText-Cdw4mTrp.cjs.map} +1 -1
  334. package/dist/chunks/{NcSettingsInputText-CXURkBMD.mjs → NcSettingsInputText-DDJdALzH.mjs} +2 -2
  335. package/dist/chunks/{NcSettingsInputText-CXURkBMD.mjs.map → NcSettingsInputText-DDJdALzH.mjs.map} +1 -1
  336. package/dist/chunks/{NcSettingsSection-PZ3JkBWO.mjs → NcSettingsSection-CFn4bRnA.mjs} +4 -4
  337. package/dist/chunks/{NcSettingsSection-B8Nn29kV.cjs.map → NcSettingsSection-CFn4bRnA.mjs.map} +1 -1
  338. package/dist/chunks/{NcSettingsSection-B8Nn29kV.cjs → NcSettingsSection-uZhZY4jp.cjs} +4 -4
  339. package/dist/chunks/{NcSettingsSection-PZ3JkBWO.mjs.map → NcSettingsSection-uZhZY4jp.cjs.map} +1 -1
  340. package/dist/chunks/{NcSettingsSelectGroup-Z3yYfNTs.mjs → NcSettingsSelectGroup-BJIByip9.mjs} +3 -3
  341. package/dist/chunks/{NcSettingsSelectGroup-Z3yYfNTs.mjs.map → NcSettingsSelectGroup-BJIByip9.mjs.map} +1 -1
  342. package/dist/chunks/{NcSettingsSelectGroup-k5AMJoPl.cjs → NcSettingsSelectGroup-fY7wG4iL.cjs} +3 -3
  343. package/dist/chunks/{NcSettingsSelectGroup-k5AMJoPl.cjs.map → NcSettingsSelectGroup-fY7wG4iL.cjs.map} +1 -1
  344. package/dist/chunks/{NcTextField-C8iERu7z.mjs → NcTextField-CjEhJrIE.mjs} +2 -2
  345. package/dist/chunks/{NcTextField-C8iERu7z.mjs.map → NcTextField-CjEhJrIE.mjs.map} +1 -1
  346. package/dist/chunks/{NcTextField-Y_QNDoeN.cjs → NcTextField-DGywgzwv.cjs} +2 -2
  347. package/dist/chunks/{NcTextField-Y_QNDoeN.cjs.map → NcTextField-DGywgzwv.cjs.map} +1 -1
  348. package/dist/chunks/{NcTimezonePicker-DDNT7-mK.cjs → NcTimezonePicker-DLFrgfqk.cjs} +4 -4
  349. package/dist/chunks/{NcTimezonePicker-DDNT7-mK.cjs.map → NcTimezonePicker-DLFrgfqk.cjs.map} +1 -1
  350. package/dist/chunks/{NcTimezonePicker-BlnrXG8A.mjs → NcTimezonePicker-J8vQyRH8.mjs} +4 -4
  351. package/dist/chunks/{NcTimezonePicker-BlnrXG8A.mjs.map → NcTimezonePicker-J8vQyRH8.mjs.map} +1 -1
  352. package/dist/chunks/{NcUserBubble-BiLpvdja.mjs → NcUserBubble-C1ecV_fU.mjs} +1 -1
  353. package/dist/chunks/{NcUserBubble-BiLpvdja.mjs.map → NcUserBubble-C1ecV_fU.mjs.map} +1 -1
  354. package/dist/chunks/{NcUserBubble-eXO4wtN5.cjs → NcUserBubble-C4fdYO4b.cjs} +1 -1
  355. package/dist/chunks/{NcUserBubble-eXO4wtN5.cjs.map → NcUserBubble-C4fdYO4b.cjs.map} +1 -1
  356. package/dist/chunks/{NcUserStatusIcon-J509k6M1.cjs → NcUserStatusIcon-BqUz25xE.cjs} +3 -3
  357. package/dist/chunks/{NcUserStatusIcon-J509k6M1.cjs.map → NcUserStatusIcon-BqUz25xE.cjs.map} +1 -1
  358. package/dist/chunks/{NcUserStatusIcon-DLhfp6bb.mjs → NcUserStatusIcon-DQyfBtYn.mjs} +3 -3
  359. package/dist/chunks/{NcUserStatusIcon-DLhfp6bb.mjs.map → NcUserStatusIcon-DQyfBtYn.mjs.map} +1 -1
  360. package/dist/chunks/{ScopeComponent-BJmRUKzI.mjs → ScopeComponent-00_hPc9T.mjs} +1 -1
  361. package/dist/chunks/{ScopeComponent-BJmRUKzI.mjs.map → ScopeComponent-00_hPc9T.mjs.map} +1 -1
  362. package/dist/chunks/{ScopeComponent-Dn9AdAJf.cjs → ScopeComponent-ByTiGqjs.cjs} +1 -1
  363. package/dist/chunks/{ScopeComponent-Dn9AdAJf.cjs.map → ScopeComponent-ByTiGqjs.cjs.map} +1 -1
  364. package/dist/chunks/_l10n-CWsOa8mM.cjs +125 -0
  365. package/dist/chunks/{_l10n-BGF_R72e.cjs.map → _l10n-CWsOa8mM.cjs.map} +1 -1
  366. package/dist/chunks/_l10n-DDx8P-X1.mjs +126 -0
  367. package/dist/chunks/_l10n-DDx8P-X1.mjs.map +1 -0
  368. package/dist/chunks/{index-CVcTbcD3.mjs → index-DbA2OZyf.mjs} +2 -2
  369. package/dist/chunks/index-DbA2OZyf.mjs.map +1 -0
  370. package/dist/chunks/{index-C8XDBNYC.cjs → index-oIpl1nrk.cjs} +2 -2
  371. package/dist/chunks/index-oIpl1nrk.cjs.map +1 -0
  372. package/dist/chunks/{referencePickerModal-D7ZD0avR.cjs → referencePickerModal-Dab6KzWL.cjs} +15 -16
  373. package/dist/chunks/referencePickerModal-Dab6KzWL.cjs.map +1 -0
  374. package/dist/chunks/{referencePickerModal-CGhrhjCk.mjs → referencePickerModal-KbBRUf9r.mjs} +15 -16
  375. package/dist/chunks/referencePickerModal-KbBRUf9r.mjs.map +1 -0
  376. package/dist/chunks/{usernameToColor-BKMu6XL_.cjs → usernameToColor-BzDTLedj.cjs} +1 -1
  377. package/dist/chunks/{usernameToColor-BKMu6XL_.cjs.map → usernameToColor-BzDTLedj.cjs.map} +1 -1
  378. package/dist/chunks/{usernameToColor-BkmF7_85.mjs → usernameToColor-CB3rGdYw.mjs} +1 -1
  379. package/dist/chunks/{usernameToColor-BkmF7_85.mjs.map → usernameToColor-CB3rGdYw.mjs.map} +1 -1
  380. package/dist/components/NcCollectionList/service.d.ts +47 -0
  381. package/dist/composables/actions/useActionText.d.ts +14 -0
  382. package/dist/index.cjs +45 -42
  383. package/dist/index.cjs.map +1 -1
  384. package/dist/index.mjs +48 -45
  385. package/dist/index.mjs.map +1 -1
  386. package/package.json +3 -2
  387. package/dist/assets/NcActionInput-K-aWGceI.css +0 -222
  388. package/dist/assets/NcActionTextEditable-BIjM-JsZ.css +0 -238
  389. package/dist/assets/NcButton-BlkIlpQf.css +0 -191
  390. package/dist/chunks/NcAppContent-B-VnA8x6.mjs.map +0 -1
  391. package/dist/chunks/NcAppContent-CoKCN5M3.cjs.map +0 -1
  392. package/dist/chunks/NcAppSidebar-Be2hX08l.cjs.map +0 -1
  393. package/dist/chunks/NcAppSidebar-DfMS3rRN.mjs.map +0 -1
  394. package/dist/chunks/NcBreadcrumbs-BRl8V6ie.mjs.map +0 -1
  395. package/dist/chunks/NcBreadcrumbs-BZFTIrPp.cjs.map +0 -1
  396. package/dist/chunks/NcCheckboxRadioSwitch-08IiPYnO.mjs.map +0 -1
  397. package/dist/chunks/NcCheckboxRadioSwitch-BC-PCCMB.cjs.map +0 -1
  398. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_45bd1a5d_lang-DM3kps3m.cjs +0 -4
  399. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_45bd1a5d_lang-DM3kps3m.cjs.map +0 -1
  400. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_45bd1a5d_lang-DP6Ws4da.mjs +0 -3
  401. package/dist/chunks/NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_45bd1a5d_lang-DP6Ws4da.mjs.map +0 -1
  402. package/dist/chunks/NcHeaderMenu-BEp6lzuy.mjs.map +0 -1
  403. package/dist/chunks/NcHeaderMenu-C7peZLEA.cjs.map +0 -1
  404. package/dist/chunks/NcRelatedResourcesPanel-Dlf-t8iR.cjs.map +0 -1
  405. package/dist/chunks/NcRelatedResourcesPanel-wFENPmmn.mjs.map +0 -1
  406. package/dist/chunks/NcRichText-B0CKR0jj.cjs.map +0 -1
  407. package/dist/chunks/NcRichText-D3knHFLh.mjs.map +0 -1
  408. package/dist/chunks/_l10n-B6zipH_A.mjs +0 -122
  409. package/dist/chunks/_l10n-B6zipH_A.mjs.map +0 -1
  410. package/dist/chunks/_l10n-BGF_R72e.cjs +0 -121
  411. package/dist/chunks/index-C8XDBNYC.cjs.map +0 -1
  412. package/dist/chunks/index-CVcTbcD3.mjs.map +0 -1
  413. package/dist/chunks/referencePickerModal-CGhrhjCk.mjs.map +0 -1
  414. package/dist/chunks/referencePickerModal-D7ZD0avR.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcCheckboxRadioSwitch-D2GbHtCS.mjs","sources":["../../node_modules/vue-material-design-icons/CheckboxBlankOutline.vue","../../node_modules/vue-material-design-icons/MinusBox.vue","../../node_modules/vue-material-design-icons/CheckboxMarked.vue","../../node_modules/vue-material-design-icons/RadioboxMarked.vue","../../node_modules/vue-material-design-icons/RadioboxBlank.vue","../../node_modules/vue-material-design-icons/ToggleSwitchOff.vue","../../node_modules/vue-material-design-icons/ToggleSwitch.vue","../../src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue","../../src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue"],"sourcesContent":["<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : true\"\n :aria-label=\"title\"\n class=\"material-design-icon checkbox-blank-outline-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"CheckboxBlankOutlineIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : true\"\n :aria-label=\"title\"\n class=\"material-design-icon minus-box-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"MinusBoxIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : true\"\n :aria-label=\"title\"\n class=\"material-design-icon checkbox-marked-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"CheckboxMarkedIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : true\"\n :aria-label=\"title\"\n class=\"material-design-icon radiobox-marked-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"RadioboxMarkedIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : true\"\n :aria-label=\"title\"\n class=\"material-design-icon radiobox-blank-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"RadioboxBlankIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : true\"\n :aria-label=\"title\"\n class=\"material-design-icon toggle-switch-off-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"ToggleSwitchOffIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<template>\n <span v-bind=\"$attrs\"\n :aria-hidden=\"title ? null : true\"\n :aria-label=\"title\"\n class=\"material-design-icon toggle-switch-icon\"\n role=\"img\"\n @click=\"$emit('click', $event)\">\n <svg :fill=\"fillColor\"\n class=\"material-design-icon__svg\"\n :width=\"size\"\n :height=\"size\"\n viewBox=\"0 0 24 24\">\n <path d=\"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z\">\n <title v-if=\"title\">{{ title }}</title>\n </path>\n </svg>\n </span>\n</template>\n\n<script>\nexport default {\n name: \"ToggleSwitchIcon\",\n emits: ['click'],\n props: {\n title: {\n type: String,\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n}\n</script>","<!--\n - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<span :id=\"!isButtonType ? `${id}-label` : undefined\"\n\t\tclass=\"checkbox-content\"\n\t\t:class=\"{\n\t\t\t['checkbox-content-' + type]: true,\n\t\t\t'checkbox-content--button-variant': buttonVariant,\n\t\t\t'checkbox-content--has-text': !!$slots.default,\n\t\t}\">\n\t\t<!--\n\t\t\tlabel can't be used here because of shift+click firefox bug\n\t\t\thttps://bugzilla.mozilla.org/show_bug.cgi?id=559506\n\t\t-->\n\t\t<span :class=\"{\n\t\t\t\t'checkbox-content__icon': true,\n\t\t\t\t'checkbox-content__icon--checked': isChecked,\n\t\t\t\t[iconClass]: true\n\t\t\t}\"\n\t\t\t:aria-hidden=\"true\"\n\t\t\tinert>\n\t\t\t<!-- @slot The checkbox/radio icon, you can use it for adding an icon to the button variant\n\t\t\t\t\t@binding {bool} checked The input checked state\n\t\t\t\t\t@binding {bool} loading The loading state\n\t\t\t-->\n\t\t\t<slot name=\"icon\"\n\t\t\t\t:checked=\"isChecked\"\n\t\t\t\t:loading=\"loading\">\n\t\t\t\t<NcLoadingIcon v-if=\"loading\" />\n\t\t\t\t<component :is=\"checkboxRadioIconElement\"\n\t\t\t\t\tv-else-if=\"!buttonVariant\"\n\t\t\t\t\t:size=\"size\" />\n\t\t\t</slot>\n\t\t</span>\n\n\t\t<span v-if=\"$slots.default\" :class=\"['checkbox-content__text', textClass]\">\n\t\t\t<!-- @slot The checkbox/radio label -->\n\t\t\t<slot />\n\t\t</span>\n\t</span>\n</template>\n\n<script>\nimport CheckboxBlankOutline from 'vue-material-design-icons/CheckboxBlankOutline.vue'\nimport MinusBox from 'vue-material-design-icons/MinusBox.vue'\nimport CheckboxMarked from 'vue-material-design-icons/CheckboxMarked.vue'\nimport RadioboxMarked from 'vue-material-design-icons/RadioboxMarked.vue'\nimport RadioboxBlank from 'vue-material-design-icons/RadioboxBlank.vue'\nimport ToggleSwitchOff from 'vue-material-design-icons/ToggleSwitchOff.vue'\nimport ToggleSwitch from 'vue-material-design-icons/ToggleSwitch.vue'\n\nimport NcLoadingIcon from '../NcLoadingIcon/index.js'\n\nexport const TYPE_CHECKBOX = 'checkbox'\nexport const TYPE_RADIO = 'radio'\nexport const TYPE_SWITCH = 'switch'\nexport const TYPE_BUTTON = 'button'\n\nexport default {\n\tname: 'NcCheckboxContent',\n\n\tcomponents: {\n\t\tNcLoadingIcon,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Unique id attribute of the input to label\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Class for the icon element\n\t\t */\n\t\ticonClass: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Class for the text element\n\t\t */\n\t\ttextClass: {\n\t\t\ttype: [String, Object],\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Type of the input. checkbox, radio, switch, or button.\n\t\t *\n\t\t * Only use button when used in a `tablist` container and the\n\t\t * `tab` role is set.\n\t\t *\n\t\t * @type {'checkbox'|'radio'|'switch'|'button'}\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'checkbox',\n\t\t\tvalidator: type => [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t\tTYPE_SWITCH,\n\t\t\t\tTYPE_BUTTON,\n\t\t\t].includes(type),\n\t\t},\n\n\t\t/**\n\t\t * Toggle the alternative button style\n\t\t */\n\t\tbuttonVariant: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * True if the entry is checked\n\t\t */\n\t\tisChecked: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Indeterminate state\n\t\t */\n\t\tindeterminate: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Loading state\n\t\t */\n\t\tloading: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Icon size\n\t\t */\n\t\tsize: {\n\t\t\ttype: Number,\n\t\t\tdefault: 24,\n\t\t},\n\t},\n\n\tcomputed: {\n\t\tisButtonType() {\n\t\t\treturn this.type === TYPE_BUTTON\n\t\t},\n\n\t\t/**\n\t\t * Returns the proper Material icon depending on the select case\n\t\t *\n\t\t * @return {object}\n\t\t */\n\t\tcheckboxRadioIconElement() {\n\t\t\tif (this.type === TYPE_RADIO) {\n\t\t\t\tif (this.isChecked) {\n\t\t\t\t\treturn RadioboxMarked\n\t\t\t\t}\n\t\t\t\treturn RadioboxBlank\n\t\t\t}\n\n\t\t\t// Switch\n\t\t\tif (this.type === TYPE_SWITCH) {\n\t\t\t\tif (this.isChecked) {\n\t\t\t\t\treturn ToggleSwitch\n\t\t\t\t}\n\t\t\t\treturn ToggleSwitchOff\n\t\t\t}\n\n\t\t\t// Checkbox\n\t\t\tif (this.indeterminate) {\n\t\t\t\treturn MinusBox\n\t\t\t}\n\t\t\tif (this.isChecked) {\n\t\t\t\treturn CheckboxMarked\n\t\t\t}\n\t\t\treturn CheckboxBlankOutline\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.checkbox-content {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: row;\n\tgap: 4px;\n\tuser-select: none;\n\tmin-height: var(--default-clickable-area);\n\tborder-radius: var(--default-clickable-area);\n\tpadding: 4px calc((var(--default-clickable-area) - var(--icon-height)) / 2);\n\t// Set to 100% to make text overflow work on button style\n\twidth: 100%;\n\t// but restrict to content so plain checkboxes / radio switches do not expand\n\tmax-width: fit-content;\n\n\t&__text {\n\t\tflex: 1 0;\n\n\t\t&:empty {\n\t\t\t// hide text if empty to ensure checkbox outline is a circle instead of oval\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t&__icon > * {\n\t\twidth: var(--icon-size);\n\t\theight: var(--icon-size);\n\t}\n\n\t&--button-variant {\n\t\t.checkbox-content__icon:not(.checkbox-content__icon--checked) > * {\n\t\t\tcolor: var(--color-primary-element);\n\t\t}\n\n\t\t.checkbox-content__icon--checked > * {\n\t\t\tcolor: var(--color-primary-element-text);\n\t\t}\n\t}\n\n\t&--has-text {\n\t\tpadding-right: $icon-margin;\n\t}\n\n\t&:not(&--button-variant) {\n\t\t.checkbox-content__icon > * {\n\t\t\tcolor: var(--color-primary-element);\n\t\t}\n\t}\n\n\t&, * {\n\t\tcursor: pointer;\n\t\tflex-shrink: 0;\n\t}\n}\n</style>\n","<!--\n - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\n\n### General description\n\nThis is a simple input checkbox, radio and switch design.\nPlease have a look at proper usage and recommendations: https://material.io/components/checkboxes\n\nNote: All attributes on the element are passed to the inner input element - except for the button type.\n\n### Standard checkbox\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingEnabled\">Enable sharing</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingEnabled\" :disabled=\"true\">Enable sharing (disabled)</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch :checked=\"sharingEnabled\" :loading=\"loading\" @update:checked=\"onToggle\">Enable sharing (with request loading)</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingEnabled: {{ sharingEnabled }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tloading: false,\n\t\t\tsharingEnabled: false,\n\t\t}\n\t},\n\tmethods: {\n\t\tonToggle() {\n\t\t\tthis.loading = true\n\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.sharingEnabled = !this.sharingEnabled\n\t\t\t\tthis.loading = false\n\t\t\t}, 1000)\n\t\t}\n\t}\n}\n</script>\n```\n\n### Standard radio set\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingPermission\" value=\"r\" name=\"sharing_permission_radio\" type=\"radio\">Default permission read</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingPermission\" value=\"rw\" name=\"sharing_permission_radio\" type=\"radio\">Default permission read+write</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingPermission: {{ sharingPermission }}\n\t</div>\n</template>\n<script>\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tsharingPermission: 'r',\n\t\t\t}\n\t\t}\n\t}\n</script>\n```\n\n### Standard radio set with alternative button style\n```vue\n<template>\n\t<div>\n\t\t<h4>Horizontal</h4>\n\t\t<div style=\"display: flex\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"sharingPermission\"\n\t\t\t\tvalue=\"r\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tDefault permission read\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"sharingPermission\"\n\t\t\t\tvalue=\"rw\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tDefault permission read+write\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\t<h4>Vertically</h4>\n\t\t<div style=\"width: fit-content\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"sharingPermission\"\n\t\t\t\tvalue=\"r\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tDefault permission read\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"sharingPermission\"\n\t\t\t\tvalue=\"rw\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tDefault permission read+write\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\tsharingPermission: {{ sharingPermission }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsharingPermission: 'r',\n\t\t}\n\t}\n}\n</script>\n```\n\n### Radio set with button style and icons\n```vue\n<template>\n\t<div>\n\t\t<h4>Horizontal</h4>\n\t\t<div style=\"display: flex\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"enableSettings\"\n\t\t\t\tvalue=\"y\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tEnable settings\n\t\t\t\t<template #icon><CheckIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"enableSettings\"\n\t\t\t\tvalue=\"n\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"horizontal\">\n\t\t\t\tDisable settings\n\t\t\t\t<template #icon><CancelIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\t<h4>Vertically</h4>\n\t\t<div style=\"width: fit-content\">\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"enableSettings\"\n\t\t\t\tvalue=\"y\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tEnable settings\n\t\t\t\t<template #icon><CheckIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t\t<NcCheckboxRadioSwitch\n\t\t\t\t:button-variant=\"true\"\n\t\t\t\t:checked.sync=\"enableSettings\"\n\t\t\t\tvalue=\"n\"\n\t\t\t\tname=\"sharing_permission_radio\"\n\t\t\t\ttype=\"radio\"\n\t\t\t\tbutton-variant-grouped=\"vertical\">\n\t\t\t\tDisable settings\n\t\t\t\t<template #icon><CancelIcon :size=\"20\"></template>\n\t\t\t</NcCheckboxRadioSwitch>\n\t\t</div>\n\t\tSettings enabled: {{ enableSettings === 'y' ? 'yes' : 'no' }}\n\t</div>\n</template>\n<script>\nimport CheckIcon from 'vue-material-design-icons/Check.vue'\nimport CancelIcon from 'vue-material-design-icons/Cancel.vue'\nexport default {\n\tcomponents: {\n\t\tCheckIcon,\n\t\tCancelIcon,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tenableSettings: 'n',\n\t\t}\n\t}\n}\n</script>\n```\n\n### Standard checkbox set\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch :disabled=\"true\" :checked.sync=\"sharingPermission\" value=\"r\" name=\"sharing_permission\">Permission read</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingPermission\" value=\"w\" name=\"sharing_permission\">Permission write</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingPermission\" value=\"d\" name=\"sharing_permission\">Permission delete</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingPermission: {{ sharingPermission }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsharingPermission: ['r', 'd'],\n\t\t}\n\t}\n}\n</script>\n```\n\n### Standard switch\n```vue\n<template>\n\t<div>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingEnabled\" type=\"switch\">Enable sharing</NcCheckboxRadioSwitch>\n\t\t<NcCheckboxRadioSwitch :checked.sync=\"sharingEnabled\" type=\"switch\" :disabled=\"true\">Enable sharing (disabled)</NcCheckboxRadioSwitch>\n\t\t<br>\n\t\tsharingEnabled: {{ sharingEnabled }}\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tsharingEnabled: true,\n\t\t}\n\t},\n}\n</script>\n```\n\n</docs>\n\n<template>\n\t<component :is=\"computedWrapperElement\"\n\t\t:id=\"wrapperId\"\n\t\t:aria-label=\"isButtonType && ariaLabel ? ariaLabel : undefined\"\n\t\t:class=\"{\n\t\t\t['checkbox-radio-switch-' + type]: type,\n\t\t\t'checkbox-radio-switch--checked': isChecked,\n\t\t\t'checkbox-radio-switch--disabled': disabled,\n\t\t\t'checkbox-radio-switch--indeterminate': hasIndeterminate ? indeterminate : false,\n\t\t\t'checkbox-radio-switch--button-variant': buttonVariant,\n\t\t\t'checkbox-radio-switch--button-variant-v-grouped': buttonVariant && buttonVariantGrouped === 'vertical',\n\t\t\t'checkbox-radio-switch--button-variant-h-grouped': buttonVariant && buttonVariantGrouped === 'horizontal',\n\t\t\t'button-vue': isButtonType,\n\t\t}\"\n\t\tclass=\"checkbox-radio-switch\"\n\t\t:style=\"cssVars\"\n\t\t:type=\"isButtonType ? 'button' : null\"\n\t\tv-bind=\"isButtonType ? $attrs : dataAttrs\"\n\t\tv-on=\"isButtonType ? listeners : null\">\n\t\t<input v-if=\"!isButtonType\"\n\t\t\t:id=\"id\"\n\t\t\t:aria-labelledby=\"!isButtonType && !ariaLabel ? `${id}-label` : null\"\n\t\t\t:aria-label=\"ariaLabel || undefined\"\n\t\t\tclass=\"checkbox-radio-switch__input\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t:type=\"inputType\"\n\t\t\t:value=\"value\"\n\t\t\t:checked=\"isChecked\"\n\t\t\t:indeterminate.prop=\"hasIndeterminate ? indeterminate : null\"\n\t\t\t:required=\"required\"\n\t\t\t:name=\"name\"\n\t\t\tv-bind=\"nonDataAttrs\"\n\t\t\tv-on=\"listeners\">\n\t\t<NcCheckboxContent :id=\"id\"\n\t\t\tclass=\"checkbox-radio-switch__content\"\n\t\t\ticon-class=\"checkbox-radio-switch__icon\"\n\t\t\ttext-class=\"checkbox-radio-switch__text\"\n\t\t\t:type=\"type\"\n\t\t\t:indeterminate=\"hasIndeterminate ? indeterminate : false\"\n\t\t\t:button-variant=\"buttonVariant\"\n\t\t\t:is-checked=\"isChecked\"\n\t\t\t:loading=\"loading\"\n\t\t\t:size=\"size\"\n\t\t\t@click.native=\"onToggle\">\n\t\t\t<template #icon>\n\t\t\t\t<!-- @slot The checkbox/radio icon, you can use it for adding an icon to the button variant -->\n\t\t\t\t<slot name=\"icon\" />\n\t\t\t</template>\n\n\t\t\t<!-- @slot The checkbox/radio label -->\n\t\t\t<slot />\n\t\t</NcCheckboxContent>\n\t</component>\n</template>\n\n<script>\nimport NcCheckboxContent, { TYPE_BUTTON, TYPE_CHECKBOX, TYPE_RADIO, TYPE_SWITCH } from './NcCheckboxContent.vue'\nimport GenRandomId from '../../utils/GenRandomId.js'\nimport { t, n } from '../../l10n.js'\n\nexport default {\n\tname: 'NcCheckboxRadioSwitch',\n\n\tcomponents: {\n\t\tNcCheckboxContent,\n\t},\n\n\t// We need to pass attributes to the input element\n\tinheritAttrs: false,\n\n\tprops: {\n\t\t/**\n\t\t * Unique id attribute of the input\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'checkbox-radio-switch-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\n\t\t/**\n\t\t * Unique id attribute of the wrapper element\n\t\t */\n\t\twrapperId: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Input name. Required for radio, optional for checkbox, and ignored\n\t\t * for button.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Required if no text is set.\n\t\t * The aria-label is forwarded to the input or button.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Type of the input. checkbox, radio, switch, or button.\n\t\t *\n\t\t * Only use button when used in a `tablist` container and the\n\t\t * `tab` role is set.\n\t\t *\n\t\t * @type {'checkbox'|'radio'|'switch'|'button'}\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'checkbox',\n\t\t\tvalidator: type => [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t\tTYPE_SWITCH,\n\t\t\t\tTYPE_BUTTON,\n\t\t\t].includes(type),\n\t\t},\n\n\t\t/**\n\t\t * Toggle the alternative button style\n\t\t */\n\t\tbuttonVariant: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Are the elements are all direct siblings?\n\t\t * If so they will be grouped horizontally or vertically\n\t\t *\n\t\t * @type {'no'|'horizontal'|'vertical'}\n\t\t */\n\t\tbuttonVariantGrouped: {\n\t\t\ttype: String,\n\t\t\tdefault: 'no',\n\t\t\tvalidator: v => ['no', 'vertical', 'horizontal'].includes(v),\n\t\t},\n\n\t\t/**\n\t\t * Checked state. To be used with `:value.sync`\n\t\t */\n\t\tchecked: {\n\t\t\ttype: [Boolean, Array, String],\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Value to be synced on check\n\t\t */\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Disabled state\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Indeterminate state\n\t\t */\n\t\tindeterminate: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Required state\n\t\t */\n\t\trequired: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Loading state\n\t\t */\n\t\tloading: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Wrapping element tag\n\t\t *\n\t\t * When `type` is set to `button` this will be ignored\n\t\t *\n\t\t * Defaults to `span`\n\t\t */\n\t\twrapperElement: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: ['update:checked'],\n\n\tcomputed: {\n\t\tdataAttrs() {\n\t\t\t// filter all data attributes\n\t\t\treturn Object.fromEntries(Object.entries(this.$attrs)\n\t\t\t\t.filter(([key]) => key.startsWith('data-')))\n\t\t},\n\n\t\tnonDataAttrs() {\n\t\t\t// filter all non-data attributes\n\t\t\treturn Object.fromEntries(Object.entries(this.$attrs)\n\t\t\t\t.filter(([key]) => !key.startsWith('data-')))\n\t\t},\n\n\t\tisButtonType() {\n\t\t\treturn this.type === TYPE_BUTTON\n\t\t},\n\n\t\tcomputedWrapperElement() {\n\t\t\tif (this.isButtonType) {\n\t\t\t\treturn 'button'\n\t\t\t}\n\t\t\tif (this.wrapperElement !== null) {\n\t\t\t\treturn this.wrapperElement\n\t\t\t}\n\t\t\treturn 'span'\n\t\t},\n\n\t\tlisteners() {\n\t\t\tif (this.isButtonType) {\n\t\t\t\treturn {\n\t\t\t\t\tclick: this.onToggle,\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tchange: this.onToggle,\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Icon size\n\t\t *\n\t\t * @return {number}\n\t\t */\n\t\tsize() {\n\t\t\treturn this.type === TYPE_SWITCH\n\t\t\t\t? 36\n\t\t\t\t: 24\n\t\t},\n\n\t\t/**\n\t\t * Css local variables for this component\n\t\t *\n\t\t * @return {object}\n\t\t */\n\t\tcssVars() {\n\t\t\treturn {\n\t\t\t\t'--icon-size': this.size + 'px',\n\t\t\t\t'--icon-height': (this.type === TYPE_SWITCH ? 16 : this.size) + 'px',\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Return the input type.\n\t\t * Switch is not an official type\n\t\t *\n\t\t * @return {string}\n\t\t */\n\t\tinputType() {\n\t\t\tconst nativeTypes = [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t\tTYPE_BUTTON,\n\t\t\t]\n\t\t\tif (nativeTypes.includes(this.type)) {\n\t\t\t\treturn this.type\n\t\t\t}\n\t\t\treturn TYPE_CHECKBOX\n\t\t},\n\n\t\t/**\n\t\t * Check if that entry is checked\n\t\t * If value is defined, we use that as the checked value\n\t\t * If not, we expect true/false in this.checked\n\t\t *\n\t\t * @return {boolean}\n\t\t */\n\t\tisChecked() {\n\t\t\tif (this.value !== null) {\n\t\t\t\tif (Array.isArray(this.checked)) {\n\t\t\t\t\treturn [...this.checked].indexOf(this.value) > -1\n\t\t\t\t}\n\t\t\t\treturn this.checked === this.value\n\t\t\t}\n\t\t\treturn this.checked === true\n\t\t},\n\n\t\thasIndeterminate() {\n\t\t\treturn [\n\t\t\t\tTYPE_CHECKBOX,\n\t\t\t\tTYPE_RADIO,\n\t\t\t].includes(this.inputType)\n\t\t},\n\t},\n\n\tmounted() {\n\t\tif (this.name && this.type === TYPE_CHECKBOX) {\n\t\t\tif (!Array.isArray(this.checked)) {\n\t\t\t\tthrow new Error('When using groups of checkboxes, the updated value will be an array.')\n\t\t\t}\n\t\t}\n\n\t\t// https://material.io/components/checkboxes#usage\n\t\tif (this.name && this.type === TYPE_SWITCH) {\n\t\t\tthrow new Error('Switches are not made to be used for data sets. Please use checkboxes instead.')\n\t\t}\n\n\t\t// https://material.io/components/checkboxes#usage\n\t\tif (typeof this.checked !== 'boolean' && this.type === TYPE_SWITCH) {\n\t\t\tthrow new Error('Switches can only be used with boolean as checked prop.')\n\t\t}\n\t},\n\n\tmethods: {\n\t\tt,\n\t\tn,\n\n\t\tonToggle() {\n\t\t\tif (this.disabled) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// If this is a radio, there can only be one value\n\t\t\tif (this.type === TYPE_RADIO) {\n\t\t\t\tthis.$emit('update:checked', this.value)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// If this is a radio, there can only be one value\n\t\t\tif (this.type === TYPE_SWITCH) {\n\t\t\t\tthis.$emit('update:checked', !this.isChecked)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// If the initial value was a boolean, let's keep it that way\n\t\t\tif (typeof this.checked === 'boolean') {\n\t\t\t\tthis.$emit('update:checked', !this.checked)\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\t// Dispatch the checked values as an array if multiple, or single value otherwise\n\t\t\tconst values = this.getInputsSet()\n\t\t\t\t.filter(input => input.checked)\n\t\t\t\t.map(input => input.value)\n\n\t\t\tif (values.includes(this.value)) {\n\t\t\t\tthis.$emit('update:checked', values.filter((v) => v !== this.value))\n\t\t\t} else {\n\t\t\t\tthis.$emit('update:checked', [...values, this.value])\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * Get the input set based on this name\n\t\t *\n\t\t * @return {Node[]}\n\t\t */\n\t\tgetInputsSet() {\n\t\t\treturn [...document.getElementsByName(this.name)]\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.checkbox-radio-switch {\n\tdisplay: flex;\n\talign-items: center;\n\tcolor: var(--color-main-text);\n\tbackground-color: transparent;\n\tfont-size: var(--default-font-size);\n\tline-height: var(--default-line-height);\n\tpadding: 0;\n\tposition: relative;\n\n\t&__input {\n\t\tposition: absolute;\n\t\tz-index: -1;\n\t\topacity: 0 !important; // We need !important, or it gets overwritten by server style\n\t\twidth: var(--icon-size);\n\t\theight: var(--icon-size);\n\t\t// Same as label padding\n\t\tmargin: 4px $icon-margin;\n\t}\n\n\t&__input:focus-visible + &__content,\n\t&__input:focus-visible {\n\t\toutline: 2px solid var(--color-main-text);\n\t\tborder-color: var(--color-main-background);\n\t\toutline-offset: -2px;\n\t}\n\n\t&--disabled &__content {\n\t\topacity: $opacity_disabled;\n\t\t:deep(.checkbox-radio-switch__icon) > * {\n\t\t\tcolor: var(--color-main-text)\n\t\t}\n\t}\n\n\t&:not(&--disabled, &--checked):focus-within &__content,\n\t&:not(&--disabled, &--checked) &__content:hover {\n\t\tbackground-color: var(--color-background-hover);\n\t}\n\n\t&--checked:not(&--disabled):focus-within &__content,\n\t&--checked:not(&--disabled) &__content:hover {\n\t\tbackground-color: var(--color-primary-element-hover);\n\t}\n\n\t&--checked:not(&--button-variant):not(&--disabled):focus-within &__content,\n\t&--checked:not(&--button-variant):not(&--disabled) &__content:hover {\n\t\tbackground-color: var(--color-primary-element-light-hover);\n\t}\n\n\t// Switch specific rules\n\t&-switch:not(&--checked) :deep(.checkbox-radio-switch__icon) > * {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\t// If switch is checked AND disabled, use the fade primary colour\n\t&-switch.checkbox-radio-switch--disabled.checkbox-radio-switch--checked :deep(.checkbox-radio-switch__icon) > * {\n\t\tcolor: var(--color-primary-element-light);\n\t}\n\n\t$border-radius: calc(var(--default-clickable-area) / 2);\n\t// keep inner border width in mind\n\t$border-radius-outer: calc($border-radius + 2px);\n\n\t&--button-variant.checkbox-radio-switch {\n\t\tbackground-color: var(--color-main-background);\n\t\tborder: 2px solid var(--color-border-maxcontrast);\n\t\toverflow: hidden;\n\n\t\t&--checked {\n\t\t\tfont-weight: bold;\n\n\t\t\t.checkbox-radio-switch__content {\n\t\t\t\tbackground-color: var(--color-primary-element);\n\t\t\t\tcolor: var(--color-primary-element-text);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Text overflow of button style\n\t&--button-variant :deep(.checkbox-radio-switch__text) {\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\twhite-space: nowrap;\n\t\twidth: 100%;\n\t}\n\n\t// Set icon color for non active elements to main text color\n\t&--button-variant:not(&--checked) :deep(.checkbox-radio-switch__icon) > * {\n\t\tcolor: var(--color-main-text);\n\t}\n\n\t// Hide icon container if empty to remove virtual padding\n\t&--button-variant :deep(.checkbox-radio-switch__icon:empty) {\n\t\tdisplay: none;\n\t}\n\n\t&--button-variant:not(&--button-variant-v-grouped):not(&--button-variant-h-grouped),\n\t&--button-variant &__content {\n\t\tborder-radius: $border-radius;\n\t}\n\n\t/* Special rules for vertical button groups */\n\t&--button-variant-v-grouped &__content {\n\t\tflex-basis: 100%;\n\t\t// vertically grouped buttons should all have the same width\n\t\tmax-width: unset;\n\t}\n\t&--button-variant-v-grouped {\n\t\t&:first-of-type {\n\t\t\tborder-top-left-radius: $border-radius-outer;\n\t\t\tborder-top-right-radius: $border-radius-outer;\n\t\t}\n\t\t&:last-of-type {\n\t\t\tborder-bottom-left-radius: $border-radius-outer;\n\t\t\tborder-bottom-right-radius: $border-radius-outer;\n\t\t}\n\n\t\t// remove borders between elements\n\t\t&:not(:last-of-type) {\n\t\t\tborder-bottom: 0!important;\n\t\t\t.checkbox-radio-switch__content {\n\t\t\t\tmargin-bottom: 2px;\n\t\t\t}\n\t\t}\n\t\t&:not(:first-of-type) {\n\t\t\tborder-top: 0!important;\n\t\t}\n\t}\n\n\t/* Special rules for horizontal button groups */\n\t&--button-variant-h-grouped {\n\t\t&:first-of-type {\n\t\t\tborder-top-left-radius: $border-radius-outer;\n\t\t\tborder-bottom-left-radius: $border-radius-outer;\n\t\t}\n\t\t&:last-of-type {\n\t\t\tborder-top-right-radius: $border-radius-outer;\n\t\t\tborder-bottom-right-radius: $border-radius-outer;\n\t\t}\n\n\t\t// remove borders between elements\n\t\t&:not(:last-of-type) {\n\t\t\tborder-right: 0!important;\n\t\t\t.checkbox-radio-switch__content {\n\t\t\t\tmargin-right: 2px;\n\t\t\t}\n\t\t}\n\t\t&:not(:first-of-type) {\n\t\t\tborder-left: 0!important;\n\t\t}\n\t}\n\t&--button-variant-h-grouped :deep(.checkbox-radio-switch__text) {\n\t\ttext-align: center;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n\t&--button-variant-h-grouped &__content {\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\twidth: 100%;\n\t\tmargin: 0;\n\t\tgap: 0;\n\t}\n}\n</style>\n"],"names":["_sfc_main"],"mappings":";;;;;AAoBA,MAAAA,cAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,CAAA,OAAA;AAAA,EACA,OAAA;AAAA,IACA,OAAA;AAAA,MACA,MAAA;AAAA,IACA;AAAA,IACA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;AChBA,MAAAA,cAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,CAAA,OAAA;AAAA,EACA,OAAA;AAAA,IACA,OAAA;AAAA,MACA,MAAA;AAAA,IACA;AAAA,IACA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;AChBA,MAAAA,cAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,CAAA,OAAA;AAAA,EACA,OAAA;AAAA,IACA,OAAA;AAAA,MACA,MAAA;AAAA,IACA;AAAA,IACA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;AChBA,MAAAA,cAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA,CAAA,OAAA;AAAA,EACA,OAAA;AAAA,IACA,OAAA;AAAA,MACA,MAAA;AAAA,IACA;AA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AAA,KAAA,KAAA;AACA;AAAA,MACA;AAGA,UAAA,KAAA,SAAA,aAAA;AACA,aAAA,MAAA,kBAAA,CAAA,KAAA,SAAA;AACA;AAAA,MACA;AAGA,UAAA,OAAA,KAAA,YAAA,WAAA;AACA,aAAA,MAAA,kBAAA,CAAA,KAAA,OAAA;AACA;AAAA,MACA;AAGA,YAAA,SAAA,KAAA,aAAA,EACA,OAAA,WAAA,MAAA,OAAA,EACA,IAAA,WAAA,MAAA,KAAA;AAEA,UAAA,OAAA,SAAA,KAAA,KAAA,GAAA;AACA,aAAA,MAAA,kBAAA,OAAA,OAAA,CAAA,MAAA,MAAA,KAAA,KAAA,CAAA;AAAA,MACA,OAAA;AACA,aAAA,MAAA,kBAAA,CAAA,GAAA,QAAA,KAAA,KAAA,CAAA;AAAA,MACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,eAAA;AACA,aAAA,CAAA,GAAA,SAAA,kBAAA,KAAA,IAAA,CAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6]}
@@ -0,0 +1,4 @@
1
+ require('../assets/NcCheckboxRadioSwitch-BkBep4wT.css');
2
+ "use strict";
3
+ const _l10n = require("./_l10n-CWsOa8mM.cjs");
4
+ _l10n.register();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_919d07b7_lang-CPc4BraS.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -0,0 +1,3 @@
1
+ import '../assets/NcCheckboxRadioSwitch-BkBep4wT.css';
2
+ import { r as register } from "./_l10n-DDx8P-X1.mjs";
3
+ register();
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcCheckboxRadioSwitch.vue_vue_type_style_index_0_scoped_919d07b7_lang-ScT6WV__.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,428 @@
1
+ import '../assets/NcCollectionList-ETQTqkqt.css';
2
+ import debounce from "debounce";
3
+ import { ref, set } from "vue";
4
+ import { r as register, G as t7, H as t26, a as t } from "./_l10n-DDx8P-X1.mjs";
5
+ import { N as NcAvatar } from "./NcAvatar-BC884DnC.mjs";
6
+ import { N as NcSelect } from "./NcSelect-CKgXIbQN.mjs";
7
+ import { g as getRoute } from "./autolink-cbuFALXr.mjs";
8
+ import { N as NcActions } from "./NcActions-CL3YRRgz.mjs";
9
+ import NcActionButton from "../Components/NcActionButton.mjs";
10
+ import { n as normalizeComponent } from "./_plugin-vue2_normalizer-D637Qkok.mjs";
11
+ import axios from "@nextcloud/axios";
12
+ import { generateOcsUrl } from "@nextcloud/router";
13
+ register(t7);
14
+ register(t26);
15
+ const _sfc_main$1 = {
16
+ name: "NcCollectionListItem",
17
+ components: {
18
+ NcAvatar,
19
+ NcActions,
20
+ NcActionButton
21
+ },
22
+ props: {
23
+ collection: {
24
+ type: Object,
25
+ default: null
26
+ },
27
+ error: {
28
+ type: String,
29
+ default: void 0
30
+ }
31
+ },
32
+ emits: ["remove-resource", "rename-collection"],
33
+ data() {
34
+ return {
35
+ detailsOpen: false,
36
+ newName: null
37
+ };
38
+ },
39
+ computed: {
40
+ getIcon() {
41
+ return (resource) => [resource.iconClass];
42
+ },
43
+ typeClass() {
44
+ return (resource) => "resource-type-" + resource.type;
45
+ },
46
+ resources() {
47
+ var _a, _b;
48
+ return (_b = (_a = this.collection.resources) == null ? void 0 : _a.filter((resource) => !Array.isArray(resource))) != null ? _b : [];
49
+ },
50
+ getComponent() {
51
+ return (resource) => {
52
+ const route = getRoute(this.$router, resource.link);
53
+ return route ? { component: "router-link", to: route, href: void 0 } : { component: "a", to: void 0, href: resource.link };
54
+ };
55
+ },
56
+ iconUrl() {
57
+ return (resource) => {
58
+ if (resource.mimetype) {
59
+ return OC.MimeType.getIconUrl(resource.mimetype);
60
+ }
61
+ if (resource.iconUrl) {
62
+ return resource.iconUrl;
63
+ }
64
+ return "";
65
+ };
66
+ }
67
+ },
68
+ methods: {
69
+ t,
70
+ toggleDetails() {
71
+ this.detailsOpen = !this.detailsOpen;
72
+ },
73
+ showDetails() {
74
+ this.detailsOpen = true;
75
+ },
76
+ removeResource(collection, resource) {
77
+ this.$emit("remove-resource", {
78
+ collectionId: collection.id,
79
+ resourceType: resource.type,
80
+ resourceId: resource.id
81
+ });
82
+ },
83
+ openRename() {
84
+ this.newName = this.collection.name;
85
+ },
86
+ renameCollection() {
87
+ if (this.newName) {
88
+ this.$emit("rename-collection", {
89
+ collectionId: this.collection.id,
90
+ name: this.newName
91
+ });
92
+ }
93
+ this.newName = null;
94
+ }
95
+ }
96
+ };
97
+ var _sfc_render$1 = function render() {
98
+ var _vm = this, _c = _vm._self._c;
99
+ return _c("li", { staticClass: "collection-list-item" }, [_c("NcAvatar", { staticClass: "collection-avatar", attrs: { "display-name": _vm.collection.name, "allow-placeholder": "" } }), _vm.newName === null ? _c("span", { staticClass: "collection-item-name", attrs: { "title": "" }, on: { "click": _vm.showDetails } }, [_vm._v(_vm._s(_vm.collection.name))]) : _c("form", { class: { "should-shake": _vm.error }, on: { "submit": function($event) {
100
+ $event.preventDefault();
101
+ return _vm.renameCollection.apply(null, arguments);
102
+ } } }, [_c("input", { directives: [{ name: "model", rawName: "v-model", value: _vm.newName, expression: "newName" }], attrs: { "type": "text", "autocomplete": "off", "autocapitalize": "off" }, domProps: { "value": _vm.newName }, on: { "input": function($event) {
103
+ if ($event.target.composing) return;
104
+ _vm.newName = $event.target.value;
105
+ } } }), _c("input", { staticClass: "icon-confirm", attrs: { "type": "submit", "value": "" } })]), !_vm.detailsOpen && _vm.newName === null ? _c("div", { staticClass: "linked-icons" }, _vm._l(_vm.resources.slice(0, 2), function(resource) {
106
+ return _c(_vm.getComponent(resource).component, { key: resource.type + "|" + resource.id, tag: "component", class: _vm.typeClass(resource), attrs: { "title": resource.name, "to": _vm.getComponent(resource).to, "href": _vm.getComponent(resource).href } }, [_c("img", { attrs: { "src": _vm.iconUrl(resource), "alt": resource.name } })]);
107
+ }), 1) : _vm._e(), _vm.newName === null ? _c("span", { staticClass: "sharingOptionsGroup" }, [_c("NcActions", [_c("NcActionButton", { attrs: { "icon": "icon-info" }, on: { "click": function($event) {
108
+ $event.preventDefault();
109
+ return _vm.toggleDetails.apply(null, arguments);
110
+ } } }, [_vm._v(" " + _vm._s(_vm.detailsOpen ? _vm.t("Hide details") : _vm.t("Show details")) + " ")]), _c("NcActionButton", { attrs: { "icon": "icon-rename" }, on: { "click": function($event) {
111
+ $event.preventDefault();
112
+ return _vm.openRename.apply(null, arguments);
113
+ } } }, [_vm._v(" " + _vm._s(_vm.t("Rename project")) + " ")])], 1)], 1) : _vm._e(), _c("transition", { attrs: { "name": "fade" } }, [_vm.error ? _c("div", { staticClass: "error" }, [_vm._v(" " + _vm._s(_vm.error) + " ")]) : _vm._e()]), _c("transition", { attrs: { "name": "fade" } }, [_vm.detailsOpen ? _c("ul", { staticClass: "resource-list-details" }, _vm._l(_vm.resources, function(resource) {
114
+ return _c("li", { key: resource.type + "|" + resource.id, class: _vm.typeClass(resource) }, [_c(_vm.getComponent(resource).component, { tag: "component", attrs: { "to": _vm.getComponent(resource).to, "href": _vm.getComponent(resource).href } }, [_c("img", { attrs: { "src": _vm.iconUrl(resource), "alt": resource.name } }), _c("span", { staticClass: "resource-name" }, [_vm._v(_vm._s(resource.name || ""))])]), _c("span", { staticClass: "icon-close", on: { "click": function($event) {
115
+ return _vm.removeResource(_vm.collection, resource);
116
+ } } })], 1);
117
+ }), 0) : _vm._e()])], 1);
118
+ };
119
+ var _sfc_staticRenderFns$1 = [];
120
+ var __component__$1 = /* @__PURE__ */ normalizeComponent(
121
+ _sfc_main$1,
122
+ _sfc_render$1,
123
+ _sfc_staticRenderFns$1,
124
+ false,
125
+ null,
126
+ "878b819f",
127
+ null,
128
+ null
129
+ );
130
+ const NcCollectionListItem = __component__$1.exports;
131
+ function extractOcsData(response) {
132
+ return response.data.ocs.data;
133
+ }
134
+ function renameCollectionService(collectionId, collectionName) {
135
+ return axios.put(generateOcsUrl("collaboration/resources/collections/{collectionId}", { collectionId }), { collectionName }).then(extractOcsData);
136
+ }
137
+ function getCollectionsByResourceService(resourceType, resourceId) {
138
+ return axios.get(generateOcsUrl("collaboration/resources/{resourceType}/{resourceId}", { resourceType, resourceId })).then(extractOcsData);
139
+ }
140
+ function createCollectionService(resourceType, resourceId, name) {
141
+ return axios.post(generateOcsUrl("collaboration/resources/{resourceType}/{resourceId}", { resourceType, resourceId }), { name }).then(extractOcsData);
142
+ }
143
+ function addResourceService(collectionId, resourceType, resourceId) {
144
+ return axios.post(generateOcsUrl("collaboration/resources/collections/{collectionId}", { collectionId }), { resourceType, resourceId }).then(extractOcsData);
145
+ }
146
+ function removeResourceService(collectionId, resourceType, resourceId) {
147
+ return axios.delete(generateOcsUrl("collaboration/resources/collections/{collectionId}", { collectionId }), { params: { resourceType, resourceId } }).then(extractOcsData);
148
+ }
149
+ function searchService(query) {
150
+ return axios.get(generateOcsUrl("collaboration/resources/collections/search/{query}", { query })).then(extractOcsData);
151
+ }
152
+ function useCollections() {
153
+ const storedCollections = ref([]);
154
+ const addCollections = (collections) => {
155
+ set(storedCollections, "value", collections);
156
+ };
157
+ const addCollection = (collection) => {
158
+ set(storedCollections, "value", [...storedCollections.value, collection]);
159
+ };
160
+ const removeCollection = (collectionId) => {
161
+ set(storedCollections, "value", storedCollections.value.filter((item) => item.id !== collectionId));
162
+ };
163
+ const updateCollection = (collection) => {
164
+ const index = storedCollections.value.findIndex((item) => item.id === collection.id);
165
+ if (index !== -1) {
166
+ set(storedCollections.value, index, collection);
167
+ } else {
168
+ addCollection(collection);
169
+ }
170
+ };
171
+ const fetchCollectionsByResource = async ({ resourceType, resourceId }) => {
172
+ const collections = await getCollectionsByResourceService(resourceType, resourceId);
173
+ addCollections(collections);
174
+ };
175
+ const createCollection = async ({ baseResourceType, baseResourceId, resourceType, resourceId, name }) => {
176
+ const collection = await createCollectionService(baseResourceType, baseResourceId, name);
177
+ addCollection(collection);
178
+ await addResourceToCollection({
179
+ collectionId: collection.id,
180
+ resourceType,
181
+ resourceId
182
+ });
183
+ };
184
+ const renameCollection = async ({ collectionId, name }) => {
185
+ const collection = await renameCollectionService(collectionId, name);
186
+ updateCollection(collection);
187
+ };
188
+ const addResourceToCollection = async ({ collectionId, resourceType, resourceId }) => {
189
+ const collection = await addResourceService(collectionId, resourceType, String(resourceId));
190
+ updateCollection(collection);
191
+ };
192
+ const removeResourceFromCollection = async ({ collectionId, resourceType, resourceId }) => {
193
+ const collection = await removeResourceService(collectionId, resourceType, String(resourceId));
194
+ if (collection.resources.length > 0) {
195
+ updateCollection(collection);
196
+ } else {
197
+ removeCollection(collectionId);
198
+ }
199
+ };
200
+ return {
201
+ storedCollections,
202
+ fetchCollectionsByResource,
203
+ createCollection,
204
+ renameCollection,
205
+ addResourceToCollection,
206
+ removeResourceFromCollection
207
+ };
208
+ }
209
+ const METHOD_CREATE_COLLECTION = 0;
210
+ const METHOD_ADD_TO_COLLECTION = 1;
211
+ const _sfc_main = {
212
+ name: "NcCollectionList",
213
+ components: {
214
+ NcCollectionListItem,
215
+ NcAvatar,
216
+ NcSelect
217
+ },
218
+ props: {
219
+ /**
220
+ * Resource type identifier
221
+ */
222
+ type: {
223
+ type: String,
224
+ default: null
225
+ },
226
+ /**
227
+ * Unique id of the resource
228
+ */
229
+ id: {
230
+ type: String,
231
+ default: null
232
+ },
233
+ /**
234
+ * Name of the resource
235
+ */
236
+ name: {
237
+ type: String,
238
+ default: ""
239
+ },
240
+ /**
241
+ * Whether the component is active (to start fetch resources)
242
+ */
243
+ isActive: {
244
+ type: Boolean,
245
+ default: true
246
+ }
247
+ },
248
+ setup() {
249
+ const {
250
+ storedCollections,
251
+ fetchCollectionsByResource,
252
+ createCollection,
253
+ addResourceToCollection,
254
+ removeResourceFromCollection,
255
+ renameCollection
256
+ } = useCollections();
257
+ const searchCollections = ref([]);
258
+ const search = debounce(function(query, loading) {
259
+ if (query !== "") {
260
+ loading(true);
261
+ searchService(query).then((collections) => {
262
+ searchCollections.value = collections;
263
+ }).catch((e) => {
264
+ console.error("Failed to search for collections", e);
265
+ }).finally(() => {
266
+ loading(false);
267
+ });
268
+ }
269
+ }, 500);
270
+ return {
271
+ storedCollections,
272
+ fetchCollectionsByResource,
273
+ createCollection,
274
+ addResourceToCollection,
275
+ removeResourceFromCollection,
276
+ renameCollection,
277
+ searchCollections,
278
+ search
279
+ };
280
+ },
281
+ data() {
282
+ return {
283
+ selectIsOpen: false,
284
+ generatingCodes: false,
285
+ codes: void 0,
286
+ value: null,
287
+ model: {},
288
+ collectionsError: {},
289
+ error: null,
290
+ isSelectOpen: false
291
+ };
292
+ },
293
+ computed: {
294
+ collections() {
295
+ return this.storedCollections.filter(
296
+ (collection) => collection.resources.some((resource) => resource && resource.id === String(this.id) && resource.type === this.type)
297
+ );
298
+ },
299
+ placeholder() {
300
+ return this.isSelectOpen ? t("Type to search for existing projects") : t("Add to a project");
301
+ },
302
+ options() {
303
+ const options = [];
304
+ window.OCP.Collaboration.getTypes().sort().forEach((type) => {
305
+ options.push({
306
+ method: METHOD_CREATE_COLLECTION,
307
+ type,
308
+ title: window.OCP.Collaboration.getLabel(type),
309
+ class: window.OCP.Collaboration.getIcon(type),
310
+ action: () => window.OCP.Collaboration.trigger(type)
311
+ });
312
+ });
313
+ for (const index in this.searchCollections) {
314
+ if (!this.collections.find((collection) => collection.id === this.searchCollections[index].id)) {
315
+ options.push({
316
+ method: METHOD_ADD_TO_COLLECTION,
317
+ title: this.searchCollections[index].name,
318
+ collectionId: this.searchCollections[index].id
319
+ });
320
+ }
321
+ }
322
+ return options;
323
+ },
324
+ resourceIdentifier() {
325
+ return {
326
+ resourceType: this.type,
327
+ resourceId: this.id,
328
+ isActive: this.isActive
329
+ };
330
+ }
331
+ },
332
+ watch: {
333
+ resourceIdentifier: {
334
+ deep: true,
335
+ immediate: true,
336
+ handler(resourceIdentifier) {
337
+ if (!resourceIdentifier.isActive || !resourceIdentifier.resourceId || !resourceIdentifier.resourceType) {
338
+ return;
339
+ }
340
+ this.fetchCollectionsByResource(resourceIdentifier);
341
+ }
342
+ }
343
+ },
344
+ methods: {
345
+ t,
346
+ select(selectedOption) {
347
+ if (selectedOption.method === METHOD_CREATE_COLLECTION) {
348
+ selectedOption.action().then((resourceId) => {
349
+ this.createCollection({
350
+ baseResourceType: this.type,
351
+ baseResourceId: this.id,
352
+ resourceType: selectedOption.type,
353
+ resourceId,
354
+ name: this.name
355
+ }).catch((e) => {
356
+ this.setError(t("Failed to create a project"), e);
357
+ });
358
+ }).catch((e) => {
359
+ console.error("No resource selected", e);
360
+ });
361
+ }
362
+ if (selectedOption.method === METHOD_ADD_TO_COLLECTION) {
363
+ this.addResourceToCollection({
364
+ collectionId: selectedOption.collectionId,
365
+ resourceType: this.type,
366
+ resourceId: this.id
367
+ }).catch((e) => {
368
+ this.setError(t("Failed to add the item to the project"), e);
369
+ });
370
+ }
371
+ this.value = null;
372
+ },
373
+ showSelect() {
374
+ this.selectIsOpen = true;
375
+ this.$refs.select.$el.focus();
376
+ },
377
+ setError(error, e) {
378
+ console.error(error, e);
379
+ this.error = error;
380
+ setTimeout(() => {
381
+ this.error = null;
382
+ }, 5e3);
383
+ },
384
+ renameCollectionFromItem({ collectionId, name }) {
385
+ this.renameCollection({ collectionId, name }).catch((e) => {
386
+ console.error(t("Failed to rename the project"), e);
387
+ this.collectionsError[collectionId] = t("Failed to rename the project");
388
+ setTimeout(() => {
389
+ this.collectionsError[collectionId] = null;
390
+ }, 5e3);
391
+ });
392
+ }
393
+ }
394
+ };
395
+ var _sfc_render = function render2() {
396
+ var _vm = this, _c = _vm._self._c;
397
+ return _vm.collections && _vm.type && _vm.id ? _c("ul", { staticClass: "collection-list", attrs: { "id": "collection-list" } }, [_c("li", { on: { "click": _vm.showSelect } }, [_vm._m(0), _c("div", { attrs: { "id": "collection-select-container" } }, [_c("NcSelect", { ref: "select", attrs: { "aria-label-combobox": _vm.t("Add to a project"), "options": _vm.options, "placeholder": _vm.placeholder, "label": "title", "limit": 5 }, on: { "close": function($event) {
398
+ _vm.isSelectOpen = false;
399
+ }, "open": function($event) {
400
+ _vm.isSelectOpen = true;
401
+ }, "option:selected": _vm.select, "search": _vm.search }, scopedSlots: _vm._u([{ key: "selected-option", fn: function(option) {
402
+ return [_c("span", { staticClass: "option__desc" }, [_c("span", { staticClass: "option__title" }, [_vm._v(_vm._s(option.title))])])];
403
+ } }, { key: "option", fn: function(option) {
404
+ return [_c("span", { staticClass: "option__wrapper" }, [option.class ? _c("span", { staticClass: "avatar", class: option.class }) : option.method !== 2 ? _c("NcAvatar", { attrs: { "allow-placeholder": "", "display-name": option.title } }) : _vm._e(), _c("span", { staticClass: "option__title" }, [_vm._v(_vm._s(option.title))])], 1)];
405
+ } }], null, false, 2397208459), model: { value: _vm.value, callback: function($$v) {
406
+ _vm.value = $$v;
407
+ }, expression: "value" } }, [_c("p", { staticClass: "hint" }, [_vm._v(" " + _vm._s(_vm.t("Connect items to a project to make them easier to find")) + " ")])])], 1)]), _c("transition", { attrs: { "name": "fade" } }, [_vm.error ? _c("li", { staticClass: "error" }, [_vm._v(" " + _vm._s(_vm.error) + " ")]) : _vm._e()]), _vm._l(_vm.collections, function(collection) {
408
+ return _c("NcCollectionListItem", { key: collection.id, attrs: { "collection": collection, "error": _vm.collectionsError[collection.id] }, on: { "rename-collection": _vm.renameCollectionFromItem, "remove-resource": _vm.removeResourceFromCollection } });
409
+ })], 2) : _vm._e();
410
+ };
411
+ var _sfc_staticRenderFns = [function() {
412
+ var _vm = this, _c = _vm._self._c;
413
+ return _c("div", { staticClass: "avatar" }, [_c("span", { staticClass: "icon-projects" })]);
414
+ }];
415
+ var __component__ = /* @__PURE__ */ normalizeComponent(
416
+ _sfc_main,
417
+ _sfc_render,
418
+ _sfc_staticRenderFns,
419
+ false,
420
+ null,
421
+ "efe8beb8",
422
+ null,
423
+ null
424
+ );
425
+ const NcCollectionList = __component__.exports;
426
+ export {
427
+ NcCollectionList as N
428
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcCollectionList-3O-OrcfS.mjs","sources":["../../src/components/NcCollectionList/NcCollectionListItem.vue","../../src/components/NcCollectionList/service.ts","../../src/components/NcCollectionList/useCollections.js","../../src/components/NcCollectionList/NcCollectionList.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<li class=\"collection-list-item\">\n\t\t<NcAvatar :display-name=\"collection.name\" allow-placeholder class=\"collection-avatar\" />\n\t\t<span v-if=\"newName === null\"\n\t\t\tclass=\"collection-item-name\"\n\t\t\ttitle=\"\"\n\t\t\t@click=\"showDetails\">{{ collection.name }}</span>\n\t\t<form v-else :class=\"{'should-shake': error }\" @submit.prevent=\"renameCollection\">\n\t\t\t<input v-model=\"newName\"\n\t\t\t\ttype=\"text\"\n\t\t\t\tautocomplete=\"off\"\n\t\t\t\tautocapitalize=\"off\">\n\t\t\t<input type=\"submit\" value=\"\" class=\"icon-confirm\">\n\t\t</form>\n\t\t<div v-if=\"!detailsOpen && newName === null\" class=\"linked-icons\">\n\t\t\t<component :is=\"getComponent(resource).component\"\n\t\t\t\tv-for=\"resource in resources.slice(0, 2)\"\n\t\t\t\t:key=\"resource.type + '|' + resource.id\"\n\t\t\t\t:title=\"resource.name\"\n\t\t\t\t:to=\"getComponent(resource).to\"\n\t\t\t\t:href=\"getComponent(resource).href\"\n\t\t\t\t:class=\"typeClass(resource)\">\n\t\t\t\t<img :src=\"iconUrl(resource)\" :alt=\"resource.name\">\n\t\t\t</component>\n\t\t</div>\n\n\t\t<span v-if=\"newName === null\" class=\"sharingOptionsGroup\">\n\t\t\t<NcActions>\n\t\t\t\t<NcActionButton icon=\"icon-info\"\n\t\t\t\t\t@click.prevent=\"toggleDetails\">\n\t\t\t\t\t{{ detailsOpen ? t('Hide details') : t('Show details') }}\n\t\t\t\t</NcActionButton>\n\t\t\t\t<NcActionButton icon=\"icon-rename\"\n\t\t\t\t\t@click.prevent=\"openRename\">\n\t\t\t\t\t{{ t('Rename project') }}\n\t\t\t\t</NcActionButton>\n\t\t\t</NcActions>\n\t\t</span>\n\n\t\t<transition name=\"fade\">\n\t\t\t<div v-if=\"error\" class=\"error\">\n\t\t\t\t{{ error }}\n\t\t\t</div>\n\t\t</transition>\n\t\t<transition name=\"fade\">\n\t\t\t<ul v-if=\"detailsOpen\" class=\"resource-list-details\">\n\t\t\t\t<li v-for=\"resource in resources\"\n\t\t\t\t\t:key=\"resource.type + '|' + resource.id\"\n\t\t\t\t\t:class=\"typeClass(resource)\">\n\t\t\t\t\t<component :is=\"getComponent(resource).component\"\n\t\t\t\t\t\t:to=\"getComponent(resource).to\"\n\t\t\t\t\t\t:href=\"getComponent(resource).href\">\n\t\t\t\t\t\t<img :src=\"iconUrl(resource)\" :alt=\"resource.name\">\n\t\t\t\t\t\t<span class=\"resource-name\">{{ resource.name || '' }}</span>\n\t\t\t\t\t</component>\n\t\t\t\t\t<span class=\"icon-close\" @click=\"removeResource(collection, resource)\" />\n\t\t\t\t</li>\n\t\t\t</ul>\n\t\t</transition>\n\t</li>\n</template>\n\n<script>\nimport { t } from '../../l10n.js'\nimport { getRoute } from '../NcRichText/autolink.js'\n\nimport NcActions from '../NcActions/index.js'\nimport NcActionButton from '../NcActionButton/index.js'\nimport NcAvatar from '../NcAvatar/index.js'\n\nexport default {\n\tname: 'NcCollectionListItem',\n\n\tcomponents: {\n\t\tNcAvatar,\n\t\tNcActions,\n\t\tNcActionButton,\n\t},\n\n\tprops: {\n\t\tcollection: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\terror: {\n\t\t\ttype: String,\n\t\t\tdefault: undefined,\n\t\t},\n\t},\n\n\temits: ['remove-resource', 'rename-collection'],\n\n\tdata() {\n\t\treturn {\n\t\t\tdetailsOpen: false,\n\t\t\tnewName: null,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tgetIcon() {\n\t\t\treturn (resource) => [resource.iconClass]\n\t\t},\n\n\t\ttypeClass() {\n\t\t\treturn (resource) => 'resource-type-' + resource.type\n\t\t},\n\n\t\tresources() {\n\t\t\t// invalid resources come from server as empty array ([]) and not an object\n\t\t\treturn this.collection.resources?.filter(resource => !Array.isArray(resource)) ?? []\n\t\t},\n\n\t\tgetComponent() {\n\t\t\treturn (resource) => {\n\t\t\t\tconst route = getRoute(this.$router, resource.link)\n\n\t\t\t\treturn route\n\t\t\t\t\t? { component: 'router-link', to: route, href: undefined }\n\t\t\t\t\t: { component: 'a', to: undefined, href: resource.link }\n\t\t\t}\n\t\t},\n\n\t\ticonUrl() {\n\t\t\treturn (resource) => {\n\t\t\t\tif (resource.mimetype) {\n\t\t\t\t\treturn OC.MimeType.getIconUrl(resource.mimetype)\n\t\t\t\t}\n\t\t\t\tif (resource.iconUrl) {\n\t\t\t\t\treturn resource.iconUrl\n\t\t\t\t}\n\t\t\t\treturn ''\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\n\t\ttoggleDetails() {\n\t\t\tthis.detailsOpen = !this.detailsOpen\n\t\t},\n\n\t\tshowDetails() {\n\t\t\tthis.detailsOpen = true\n\t\t},\n\n\t\tremoveResource(collection, resource) {\n\t\t\tthis.$emit('remove-resource', {\n\t\t\t\tcollectionId: collection.id,\n\t\t\t\tresourceType: resource.type,\n\t\t\t\tresourceId: resource.id,\n\t\t\t})\n\t\t},\n\n\t\topenRename() {\n\t\t\tthis.newName = this.collection.name\n\t\t},\n\n\t\trenameCollection() {\n\t\t\tif (this.newName) {\n\t\t\t\tthis.$emit('rename-collection', {\n\t\t\t\t\tcollectionId: this.collection.id,\n\t\t\t\t\tname: this.newName,\n\t\t\t\t})\n\t\t\t}\n\t\t\tthis.newName = null\n\t\t},\n\t},\n}\n</script>\n\n<style scoped lang=\"scss\">\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .3s ease;\n}\n\n.fade-enter, .fade-leave-to\n\t/* .fade-leave-active below version 2.1.8 */\n{\n\topacity: 0;\n}\n\n.linked-icons {\n\tdisplay: flex;\n\n\timg {\n\t\tpadding: 12px;\n\t\theight: 44px;\n\t\tdisplay: block;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\topacity: 0.7;\n\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n\n.popovermenu {\n\tdisplay: none;\n\n\t&.open {\n\t\tdisplay: block;\n\t}\n}\n\nli.collection-list-item {\n\tflex-wrap: wrap;\n\theight: auto;\n\tcursor: pointer;\n\tmargin-bottom: 0 !important;\n\n\t.collection-avatar {\n\t\tmargin-top: 0;\n\t}\n\n\tform, .collection-item-name {\n\t\tflex-basis: 10%;\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t}\n\n\t.collection-item-name {\n\t\tpadding: 12px 9px;\n\t}\n\n\tinput {\n\t\tmargin-top: 4px;\n\t\tborder-color: var(--color-border-maxcontrast);\n\n\t\t&[type=text] {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t.error {\n\t\tflex-basis: 100%;\n\t\twidth: 100%;\n\t}\n\n\t.resource-list-details {\n\t\tflex-basis: 100%;\n\t\twidth: 100%;\n\n\t\tli {\n\t\t\tdisplay: flex;\n\t\t\tmargin-left: 44px;\n\t\t\tborder-radius: 3px;\n\t\t\tcursor: pointer;\n\n\t\t\t&:hover {\n\t\t\t\tbackground-color: var(--color-background-dark);\n\t\t\t}\n\n\t\t\ta {\n\t\t\t\tflex-grow: 1;\n\t\t\t\tpadding: 3px;\n\t\t\t\tmax-width: calc(100% - 30px);\n\t\t\t\tdisplay: flex;\n\t\t\t}\n\t\t}\n\n\t\tspan {\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: top;\n\t\t\tmargin-right: 10px;\n\t\t}\n\n\t\tspan.resource-name {\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\t\t\tposition: relative;\n\t\t\tvertical-align: top;\n\t\t\twhite-space: nowrap;\n\t\t\tflex-grow: 1;\n\t\t\tpadding: 4px;\n\t\t}\n\n\t\timg {\n\t\t\twidth: 24px;\n\t\t\theight: 24px;\n\t\t}\n\n\t\t.icon-close {\n\t\t\topacity: .7;\n\n\t\t\t&:hover, &:focus {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.should-shake {\n\tanimation: shake 0.6s 1 linear;\n}\n\n@keyframes shake {\n\t0% {\n\t\ttransform: translate(15px);\n\t}\n\t20% {\n\t\ttransform: translate(-15px);\n\t}\n\t40% {\n\t\ttransform: translate(7px);\n\t}\n\t60% {\n\t\ttransform: translate(-7px);\n\t}\n\t80% {\n\t\ttransform: translate(3px);\n\t}\n\t100% {\n\t\ttransform: translate(0px);\n\t}\n}\n</style>\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport axios, { type AxiosResponse } from '@nextcloud/axios'\nimport { generateOcsUrl } from '@nextcloud/router'\nimport type { OCSResponse } from '@nextcloud/typings/ocs'\n\n/**\n * Extracts the OCS data from a response\n * @param response OCS response\n */\nfunction extractOcsData(response: AxiosResponse<OCSResponse>) {\n\treturn response.data.ocs.data\n}\n\n/**\n * Lists all collections\n * @param collectionId Collection ID\n */\nexport function listCollectionService(collectionId: number) {\n\treturn axios.get(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId })).then(extractOcsData)\n}\n\n/**\n * Renames a collection\n * @param collectionId Collection ID\n * @param collectionName New collection name\n */\nexport function renameCollectionService(collectionId: number, collectionName: string) {\n\treturn axios.put(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId }), { collectionName }).then(extractOcsData)\n}\n\n/**\n * Lists all collections for a resource\n * @param resourceType Resource type\n * @param resourceId Resource ID\n */\nexport function getCollectionsByResourceService(resourceType: string, resourceId: string) {\n\treturn axios.get(generateOcsUrl('collaboration/resources/{resourceType}/{resourceId}', { resourceType, resourceId })).then(extractOcsData)\n}\n\n/**\n * Creates a collection\n * @param resourceType Resource type\n * @param resourceId Resource ID\n * @param name Collection name\n */\nexport function createCollectionService(resourceType: string, resourceId: string, name: string) {\n\treturn axios.post(generateOcsUrl('collaboration/resources/{resourceType}/{resourceId}', { resourceType, resourceId }), { name }).then(extractOcsData)\n}\n\n/**\n * Adds a resource to a collection\n * @param collectionId Collection ID\n * @param resourceType Resource type\n * @param resourceId Resource ID\n */\nexport function addResourceService(collectionId: number, resourceType: string, resourceId: string) {\n\treturn axios.post(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId }), { resourceType, resourceId }).then(extractOcsData)\n}\n\n/**\n * Removes a resource from a collection\n * @param collectionId Collection ID\n * @param resourceType Resource type\n * @param resourceId Resource ID\n */\nexport function removeResourceService(collectionId: number, resourceType: string, resourceId: string) {\n\treturn axios.delete(generateOcsUrl('collaboration/resources/collections/{collectionId}', { collectionId }), { params: { resourceType, resourceId } }).then(extractOcsData)\n}\n\n/**\n * Searches for collections\n * @param query Search query\n */\nexport function searchService(query: string) {\n\treturn axios.get(generateOcsUrl('collaboration/resources/collections/search/{query}', { query })).then(extractOcsData)\n}\n","/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { ref, set } from 'vue'\nimport {\n\trenameCollectionService,\n\tgetCollectionsByResourceService,\n\tcreateCollectionService,\n\taddResourceService,\n\tremoveResourceService,\n} from './service.ts'\n\n/**\n * Use collections composable\n */\nexport function useCollections() {\n\t// State\n\tconst storedCollections = ref([])\n\n\t// Mutations\n\tconst addCollections = (collections) => {\n\t\tset(storedCollections, 'value', collections)\n\t}\n\n\tconst addCollection = (collection) => {\n\t\tset(storedCollections, 'value', [...storedCollections.value, collection])\n\t}\n\n\tconst removeCollection = (collectionId) => {\n\t\tset(storedCollections, 'value', storedCollections.value.filter(item => item.id !== collectionId))\n\t}\n\n\tconst updateCollection = (collection) => {\n\t\tconst index = storedCollections.value.findIndex(item => item.id === collection.id)\n\t\tif (index !== -1) {\n\t\t\tset(storedCollections.value, index, collection)\n\t\t} else {\n\t\t\taddCollection(collection)\n\t\t}\n\t}\n\n\t// Actions\n\tconst fetchCollectionsByResource = async ({ resourceType, resourceId }) => {\n\t\tconst collections = await getCollectionsByResourceService(resourceType, resourceId)\n\n\t\taddCollections(collections)\n\t}\n\n\tconst createCollection = async ({ baseResourceType, baseResourceId, resourceType, resourceId, name }) => {\n\t\tconst collection = await createCollectionService(baseResourceType, baseResourceId, name)\n\n\t\taddCollection(collection)\n\t\tawait addResourceToCollection({\n\t\t\tcollectionId: collection.id,\n\t\t\tresourceType,\n\t\t\tresourceId,\n\t\t})\n\t}\n\n\tconst renameCollection = async ({ collectionId, name }) => {\n\t\tconst collection = await renameCollectionService(collectionId, name)\n\n\t\tupdateCollection(collection)\n\t}\n\n\tconst addResourceToCollection = async ({ collectionId, resourceType, resourceId }) => {\n\t\tconst collection = await addResourceService(collectionId, resourceType, String(resourceId))\n\n\t\tupdateCollection(collection)\n\t}\n\n\tconst removeResourceFromCollection = async ({ collectionId, resourceType, resourceId }) => {\n\t\tconst collection = await removeResourceService(collectionId, resourceType, String(resourceId))\n\n\t\tif (collection.resources.length > 0) {\n\t\t\tupdateCollection(collection)\n\t\t} else {\n\t\t\tremoveCollection(collectionId)\n\t\t}\n\t}\n\n\treturn {\n\t\tstoredCollections,\n\t\tfetchCollectionsByResource,\n\t\tcreateCollection,\n\t\trenameCollection,\n\t\taddResourceToCollection,\n\t\tremoveResourceFromCollection,\n\t}\n}\n","<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<docs>\nProvides a Vue standalone component for Nextcloud Projects feature introduced in Nextcloud 16. Replaces deprecated `nextcloud-vue-collections` library.\n\nProjects feature is deprecated since Nextcloud 25, and superseded by Related resources. See [NcRelatedResourcesPanel](#/Components/NcRelatedResourcesPanel) documentation for more information.\n\n### Usage\n\nTo enable feature in Nextcloud, run following command:\n```sh\nocc config:system:set --value true 'projects.enabled'\n```\n</docs>\n\n<template>\n\t<ul v-if=\"collections && type && id\" id=\"collection-list\" class=\"collection-list\">\n\t\t<li @click=\"showSelect\">\n\t\t\t<div class=\"avatar\">\n\t\t\t\t<span class=\"icon-projects\" />\n\t\t\t</div>\n\t\t\t<div id=\"collection-select-container\">\n\t\t\t\t<NcSelect ref=\"select\"\n\t\t\t\t\tv-model=\"value\"\n\t\t\t\t\t:aria-label-combobox=\"t('Add to a project')\"\n\t\t\t\t\t:options=\"options\"\n\t\t\t\t\t:placeholder=\"placeholder\"\n\t\t\t\t\tlabel=\"title\"\n\t\t\t\t\t:limit=\"5\"\n\t\t\t\t\t@close=\"isSelectOpen = false\"\n\t\t\t\t\t@open=\"isSelectOpen = true\"\n\t\t\t\t\t@option:selected=\"select\"\n\t\t\t\t\t@search=\"search\">\n\t\t\t\t\t<template #selected-option=\"option\">\n\t\t\t\t\t\t<span class=\"option__desc\">\n\t\t\t\t\t\t\t<span class=\"option__title\">{{ option.title }}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</template>\n\t\t\t\t\t<template #option=\"option\">\n\t\t\t\t\t\t<span class=\"option__wrapper\">\n\t\t\t\t\t\t\t<span v-if=\"option.class\" :class=\"option.class\" class=\"avatar\" />\n\t\t\t\t\t\t\t<NcAvatar v-else-if=\"option.method !== 2\" allow-placeholder :display-name=\"option.title\" />\n\t\t\t\t\t\t\t<span class=\"option__title\">{{ option.title }}</span>\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</template>\n\t\t\t\t\t<p class=\"hint\">\n\t\t\t\t\t\t{{ t('Connect items to a project to make them easier to find') }}\n\t\t\t\t\t</p>\n\t\t\t\t</NcSelect>\n\t\t\t</div>\n\t\t</li>\n\t\t<transition name=\"fade\">\n\t\t\t<li v-if=\"error\" class=\"error\">\n\t\t\t\t{{ error }}\n\t\t\t</li>\n\t\t</transition>\n\t\t<NcCollectionListItem v-for=\"collection in collections\"\n\t\t\t:key=\"collection.id\"\n\t\t\t:collection=\"collection\"\n\t\t\t:error=\"collectionsError[collection.id]\"\n\t\t\t@rename-collection=\"renameCollectionFromItem\"\n\t\t\t@remove-resource=\"removeResourceFromCollection\" />\n\t</ul>\n</template>\n\n<script>\nimport debounce from 'debounce'\nimport { ref } from 'vue'\nimport { t } from '../../l10n.js'\n\nimport NcAvatar from '../NcAvatar/index.js'\nimport NcSelect from '../NcSelect/index.js'\nimport NcCollectionListItem from './NcCollectionListItem.vue'\n\nimport { useCollections } from './useCollections.js'\nimport { searchService } from './service.ts'\n\nconst METHOD_CREATE_COLLECTION = 0\nconst METHOD_ADD_TO_COLLECTION = 1\n\nexport default {\n\tname: 'NcCollectionList',\n\n\tcomponents: {\n\t\tNcCollectionListItem,\n\t\tNcAvatar,\n\t\tNcSelect,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * Resource type identifier\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Unique id of the resource\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\t/**\n\t\t * Name of the resource\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether the component is active (to start fetch resources)\n\t\t */\n\t\tisActive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t},\n\n\tsetup() {\n\t\tconst {\n\t\t\tstoredCollections,\n\t\t\tfetchCollectionsByResource,\n\t\t\tcreateCollection,\n\t\t\taddResourceToCollection,\n\t\t\tremoveResourceFromCollection,\n\t\t\trenameCollection,\n\t\t} = useCollections()\n\n\t\tconst searchCollections = ref([])\n\t\tconst search = debounce(function(query, loading) {\n\t\t\tif (query !== '') {\n\t\t\t\tloading(true)\n\t\t\t\tsearchService(query).then(collections => {\n\t\t\t\t\tsearchCollections.value = collections\n\t\t\t\t}).catch(e => {\n\t\t\t\t\tconsole.error('Failed to search for collections', e)\n\t\t\t\t}).finally(() => {\n\t\t\t\t\tloading(false)\n\t\t\t\t})\n\t\t\t}\n\t\t}, 500)\n\n\t\treturn {\n\t\t\tstoredCollections,\n\t\t\tfetchCollectionsByResource,\n\t\t\tcreateCollection,\n\t\t\taddResourceToCollection,\n\t\t\tremoveResourceFromCollection,\n\t\t\trenameCollection,\n\t\t\tsearchCollections,\n\t\t\tsearch,\n\t\t}\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\tselectIsOpen: false,\n\t\t\tgeneratingCodes: false,\n\t\t\tcodes: undefined,\n\t\t\tvalue: null,\n\t\t\tmodel: {},\n\t\t\tcollectionsError: {},\n\t\t\terror: null,\n\t\t\tisSelectOpen: false,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tcollections() {\n\t\t\treturn this.storedCollections.filter(collection => collection.resources\n\t\t\t\t.some(resource => resource && resource.id === String(this.id) && resource.type === this.type),\n\t\t\t)\n\t\t},\n\n\t\tplaceholder() {\n\t\t\treturn this.isSelectOpen\n\t\t\t\t? t('Type to search for existing projects')\n\t\t\t\t: t('Add to a project')\n\t\t},\n\n\t\toptions() {\n\t\t\tconst options = []\n\t\t\twindow.OCP.Collaboration.getTypes().sort().forEach(type => {\n\t\t\t\toptions.push({\n\t\t\t\t\tmethod: METHOD_CREATE_COLLECTION,\n\t\t\t\t\ttype,\n\t\t\t\t\ttitle: window.OCP.Collaboration.getLabel(type),\n\t\t\t\t\tclass: window.OCP.Collaboration.getIcon(type),\n\t\t\t\t\taction: () => window.OCP.Collaboration.trigger(type),\n\t\t\t\t})\n\t\t\t})\n\t\t\tfor (const index in this.searchCollections) {\n\t\t\t\tif (!this.collections.find(collection => collection.id === this.searchCollections[index].id)) {\n\t\t\t\t\toptions.push({\n\t\t\t\t\t\tmethod: METHOD_ADD_TO_COLLECTION,\n\t\t\t\t\t\ttitle: this.searchCollections[index].name,\n\t\t\t\t\t\tcollectionId: this.searchCollections[index].id,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn options\n\t\t},\n\n\t\tresourceIdentifier() {\n\t\t\treturn {\n\t\t\t\tresourceType: this.type,\n\t\t\t\tresourceId: this.id,\n\t\t\t\tisActive: this.isActive,\n\t\t\t}\n\t\t},\n\t},\n\n\twatch: {\n\t\tresourceIdentifier: {\n\t\t\tdeep: true,\n\t\t\timmediate: true,\n\t\t\thandler(resourceIdentifier) {\n\t\t\t\tif (!resourceIdentifier.isActive || !resourceIdentifier.resourceId || !resourceIdentifier.resourceType) {\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tthis.fetchCollectionsByResource(resourceIdentifier)\n\t\t\t},\n\t\t},\n\t},\n\n\tmethods: {\n\t\tt,\n\n\t\tselect(selectedOption) {\n\t\t\tif (selectedOption.method === METHOD_CREATE_COLLECTION) {\n\t\t\t\tselectedOption.action().then(resourceId => {\n\t\t\t\t\tthis.createCollection({\n\t\t\t\t\t\tbaseResourceType: this.type,\n\t\t\t\t\t\tbaseResourceId: this.id,\n\t\t\t\t\t\tresourceType: selectedOption.type,\n\t\t\t\t\t\tresourceId,\n\t\t\t\t\t\tname: this.name,\n\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\tthis.setError(t('Failed to create a project'), e)\n\t\t\t\t\t})\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tconsole.error('No resource selected', e)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\tif (selectedOption.method === METHOD_ADD_TO_COLLECTION) {\n\t\t\t\tthis.addResourceToCollection({\n\t\t\t\t\tcollectionId: selectedOption.collectionId, resourceType: this.type, resourceId: this.id,\n\t\t\t\t}).catch((e) => {\n\t\t\t\t\tthis.setError(t('Failed to add the item to the project'), e)\n\t\t\t\t})\n\t\t\t}\n\n\t\t\tthis.value = null\n\t\t},\n\n\t\tshowSelect() {\n\t\t\tthis.selectIsOpen = true\n\t\t\tthis.$refs.select.$el.focus()\n\t\t},\n\n\t\tsetError(error, e) {\n\t\t\tconsole.error(error, e)\n\t\t\tthis.error = error\n\t\t\tsetTimeout(() => {\n\t\t\t\tthis.error = null\n\t\t\t}, 5000)\n\t\t},\n\n\t\trenameCollectionFromItem({ collectionId, name }) {\n\t\t\tthis.renameCollection({ collectionId, name })\n\t\t\t\t.catch((e) => {\n\t\t\t\t\tconsole.error(t('Failed to rename the project'), e)\n\t\t\t\t\tthis.collectionsError[collectionId] = t('Failed to rename the project')\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\tthis.collectionsError[collectionId] = null\n\t\t\t\t\t}, 5000)\n\t\t\t\t})\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.collection-list * {\n\tbox-sizing: border-box;\n}\n\n.collection-list > li {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 12px;\n\n\t& > .avatar {\n\t\tmargin-top: 0;\n\t}\n}\n\n#collection-select-container {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n\n.v-select {\n\t// NcAvatar in the dropdown\n\tspan.avatar {\n\t\tdisplay: block;\n\t\tpadding: 16px;\n\t\topacity: .7;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\n\t\t&:hover {\n\t\t\topacity: 1;\n\t\t}\n\t}\n}\n\np.hint {\n\tz-index: 1;\n\t// fix alignment\n\tmargin-top: -16px;\n\tpadding: 8px 8px;\n\tcolor: var(--color-text-maxcontrast);\n\tline-height: normal;\n}\n\ndiv.avatar {\n\twidth: 32px;\n\theight: 32px;\n\tmargin: 0;\n\tpadding: 8px;\n\tbackground-color: var(--color-background-dark);\n\tmargin-top: 30px;\n}\n\n/** TODO provide white icon in core */\n.icon-projects {\n\tdisplay: block;\n\tpadding: 8px;\n\tbackground-repeat: no-repeat;\n\tbackground-position: center;\n}\n\n.option__wrapper {\n\tdisplay: flex;\n\n\t.avatar {\n\t\tdisplay: block;\n\t\twidth: 32px;\n\t\theight: 32px;\n\t\tbackground-color: var(--color-background-darker) !important;\n\t}\n\n\t.option__title {\n\t\tpadding: 4px;\n\t}\n}\n\n.fade-enter-active, .fade-leave-active {\n\ttransition: opacity .5s;\n}\n\n.fade-enter, .fade-leave-to {\n\topacity: 0;\n}\n\n</style>\n"],"names":["_sfc_main"],"mappings":";;;;;;;;;;;;;AA2EA,MAAAA,cAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA;AAAA,IACA,YAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,IAEA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA,CAAA,mBAAA,mBAAA;AAAA,EAEA,OAAA;AACA,WAAA;AAAA,MACA,aAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,UAAA;AACA,aAAA,CAAA,aAAA,CAAA,SAAA,SAAA;AAAA,IACA;AAAA,IAEA,YAAA;AACA,aAAA,CAAA,aAAA,mBAAA,SAAA;AAAA,IACA;AAAA,IAEA,YAAA;;AAEA,cAAA,gBAAA,WAAA,cAAA,mBAAA,OAAA,cAAA,CAAA,MAAA,QAAA,QAAA,OAAA,YAAA,CAAA;AAAA,IACA;AAAA,IAEA,eAAA;AACA,aAAA,CAAA,aAAA;AACA,cAAA,QAAA,SAAA,KAAA,SAAA,SAAA,IAAA;AAEA,eAAA,QACA,EAAA,WAAA,eAAA,IAAA,OAAA,MAAA,OAAA,IACA,EAAA,WAAA,KAAA,IAAA,QAAA,MAAA,SAAA,KAAA;AAAA,MACA;AAAA,IACA;AAAA,IAEA,UAAA;AACA,aAAA,CAAA,aAAA;AACA,YAAA,SAAA,UAAA;AACA,iBAAA,GAAA,SAAA,WAAA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