@nextcloud/vue 8.39.0 → 8.41.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 (628) hide show
  1. package/CHANGELOG.md +99 -77
  2. package/dist/Components/NcActionButton.cjs +1 -1
  3. package/dist/Components/NcActionButton.mjs +1 -1
  4. package/dist/Components/NcActionButtonGroup.cjs +1 -1
  5. package/dist/Components/NcActionButtonGroup.mjs +1 -1
  6. package/dist/Components/NcActionCheckbox.cjs +1 -1
  7. package/dist/Components/NcActionCheckbox.mjs +1 -1
  8. package/dist/Components/NcActionInput.cjs +1 -1
  9. package/dist/Components/NcActionInput.mjs +1 -1
  10. package/dist/Components/NcActionLink.cjs +1 -1
  11. package/dist/Components/NcActionLink.mjs +1 -1
  12. package/dist/Components/NcActionRadio.cjs +1 -1
  13. package/dist/Components/NcActionRadio.mjs +1 -1
  14. package/dist/Components/NcActionRouter.cjs +1 -1
  15. package/dist/Components/NcActionRouter.mjs +1 -1
  16. package/dist/Components/NcActionText.cjs +1 -1
  17. package/dist/Components/NcActionText.mjs +1 -1
  18. package/dist/Components/NcActionTextEditable.cjs +1 -1
  19. package/dist/Components/NcActionTextEditable.mjs +1 -1
  20. package/dist/Components/NcActions.cjs +1 -1
  21. package/dist/Components/NcActions.mjs +1 -1
  22. package/dist/Components/NcAppContent.cjs +1 -1
  23. package/dist/Components/NcAppContent.mjs +1 -1
  24. package/dist/Components/NcAppNavigation.cjs +1 -1
  25. package/dist/Components/NcAppNavigation.mjs +1 -1
  26. package/dist/Components/NcAppNavigationCaption.cjs +1 -1
  27. package/dist/Components/NcAppNavigationCaption.mjs +1 -1
  28. package/dist/Components/NcAppNavigationItem.cjs +1 -1
  29. package/dist/Components/NcAppNavigationItem.mjs +1 -1
  30. package/dist/Components/NcAppNavigationNew.cjs +1 -1
  31. package/dist/Components/NcAppNavigationNew.mjs +1 -1
  32. package/dist/Components/NcAppNavigationNewItem.cjs +1 -1
  33. package/dist/Components/NcAppNavigationNewItem.mjs +1 -1
  34. package/dist/Components/NcAppNavigationSearch.cjs +1 -1
  35. package/dist/Components/NcAppNavigationSearch.mjs +1 -1
  36. package/dist/Components/NcAppNavigationSettings.cjs +1 -1
  37. package/dist/Components/NcAppNavigationSettings.mjs +1 -1
  38. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  39. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  40. package/dist/Components/NcAppSettingsDialog.cjs +1 -1
  41. package/dist/Components/NcAppSettingsDialog.mjs +1 -1
  42. package/dist/Components/NcAppSettingsSection.cjs +1 -1
  43. package/dist/Components/NcAppSettingsSection.mjs +1 -1
  44. package/dist/Components/NcAppSettingsSectionShortcuts.cjs +1 -1
  45. package/dist/Components/NcAppSettingsSectionShortcuts.mjs +1 -1
  46. package/dist/Components/NcAppSettingsShortcutsSection.cjs +1 -1
  47. package/dist/Components/NcAppSettingsShortcutsSection.mjs +1 -1
  48. package/dist/Components/NcAppSidebar.cjs +1 -1
  49. package/dist/Components/NcAppSidebar.mjs +1 -1
  50. package/dist/Components/NcAssistantButton.cjs +1 -1
  51. package/dist/Components/NcAssistantButton.mjs +1 -1
  52. package/dist/Components/NcAssistantContent.cjs +4 -4
  53. package/dist/Components/NcAssistantContent.mjs +4 -4
  54. package/dist/Components/NcAssistantIcon.cjs +1 -1
  55. package/dist/Components/NcAssistantIcon.mjs +1 -1
  56. package/dist/Components/NcAvatar.cjs +1 -1
  57. package/dist/Components/NcAvatar.mjs +1 -1
  58. package/dist/Components/NcBlurHash.cjs +1 -1
  59. package/dist/Components/NcBlurHash.mjs +1 -1
  60. package/dist/Components/NcBreadcrumb.cjs +1 -1
  61. package/dist/Components/NcBreadcrumb.mjs +1 -1
  62. package/dist/Components/NcBreadcrumbs.cjs +1 -1
  63. package/dist/Components/NcBreadcrumbs.mjs +1 -1
  64. package/dist/Components/NcButton.cjs +1 -1
  65. package/dist/Components/NcButton.mjs +1 -1
  66. package/dist/Components/NcCheckboxRadioSwitch.cjs +1 -1
  67. package/dist/Components/NcCheckboxRadioSwitch.mjs +1 -1
  68. package/dist/Components/NcChip.cjs +4 -4
  69. package/dist/Components/NcChip.mjs +4 -4
  70. package/dist/Components/NcCollectionList.cjs +1 -1
  71. package/dist/Components/NcCollectionList.mjs +1 -1
  72. package/dist/Components/NcColorPicker.cjs +1 -1
  73. package/dist/Components/NcColorPicker.mjs +1 -1
  74. package/dist/Components/NcContent.cjs +1 -1
  75. package/dist/Components/NcContent.mjs +1 -1
  76. package/dist/Components/NcDashboardWidget.cjs +1 -1
  77. package/dist/Components/NcDashboardWidget.mjs +1 -1
  78. package/dist/Components/NcDashboardWidgetItem.cjs +1 -1
  79. package/dist/Components/NcDashboardWidgetItem.mjs +1 -1
  80. package/dist/Components/NcDateTimePicker.cjs +6 -6
  81. package/dist/Components/NcDateTimePicker.mjs +6 -6
  82. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  83. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  84. package/dist/Components/NcDialog.cjs +1 -1
  85. package/dist/Components/NcDialog.mjs +1 -1
  86. package/dist/Components/NcDialogButton.cjs +1 -1
  87. package/dist/Components/NcDialogButton.mjs +1 -1
  88. package/dist/Components/NcEmojiPicker.cjs +1 -1
  89. package/dist/Components/NcEmojiPicker.mjs +1 -1
  90. package/dist/Components/NcEmptyContent.cjs +2 -2
  91. package/dist/Components/NcEmptyContent.cjs.map +1 -1
  92. package/dist/Components/NcEmptyContent.mjs +2 -2
  93. package/dist/Components/NcEmptyContent.mjs.map +1 -1
  94. package/dist/Components/NcFilePicker.cjs +1 -1
  95. package/dist/Components/NcFilePicker.mjs +1 -1
  96. package/dist/Components/NcFormBox.cjs +1 -1
  97. package/dist/Components/NcFormBox.mjs +1 -1
  98. package/dist/Components/NcFormBoxButton.cjs +1 -1
  99. package/dist/Components/NcFormBoxButton.mjs +1 -1
  100. package/dist/Components/NcFormBoxCopyButton.cjs +1 -1
  101. package/dist/Components/NcFormBoxCopyButton.mjs +1 -1
  102. package/dist/Components/NcFormBoxSwitch.cjs +1 -1
  103. package/dist/Components/NcFormBoxSwitch.mjs +1 -1
  104. package/dist/Components/NcFormGroup.cjs +1 -1
  105. package/dist/Components/NcFormGroup.mjs +1 -1
  106. package/dist/Components/NcGuestContent.cjs +3 -9
  107. package/dist/Components/NcGuestContent.cjs.map +1 -1
  108. package/dist/Components/NcGuestContent.mjs +3 -9
  109. package/dist/Components/NcGuestContent.mjs.map +1 -1
  110. package/dist/Components/NcHeaderButton.cjs +1 -1
  111. package/dist/Components/NcHeaderButton.mjs +1 -1
  112. package/dist/Components/NcHeaderMenu.cjs +1 -1
  113. package/dist/Components/NcHeaderMenu.mjs +1 -1
  114. package/dist/Components/NcHotkey.cjs +1 -1
  115. package/dist/Components/NcHotkey.mjs +1 -1
  116. package/dist/Components/NcHotkeyList.cjs +1 -1
  117. package/dist/Components/NcHotkeyList.mjs +1 -1
  118. package/dist/Components/NcInputField.cjs +1 -1
  119. package/dist/Components/NcInputField.mjs +1 -1
  120. package/dist/Components/NcKbd.cjs +1 -1
  121. package/dist/Components/NcKbd.mjs +1 -1
  122. package/dist/Components/NcListItem.cjs +1 -1
  123. package/dist/Components/NcListItem.mjs +1 -1
  124. package/dist/Components/NcListItemIcon.cjs +1 -1
  125. package/dist/Components/NcListItemIcon.mjs +1 -1
  126. package/dist/Components/NcModal.cjs +5 -5
  127. package/dist/Components/NcModal.mjs +5 -5
  128. package/dist/Components/NcNoteCard.cjs +3 -3
  129. package/dist/Components/NcNoteCard.cjs.map +1 -1
  130. package/dist/Components/NcNoteCard.mjs +3 -3
  131. package/dist/Components/NcNoteCard.mjs.map +1 -1
  132. package/dist/Components/NcPasswordField.cjs +1 -1
  133. package/dist/Components/NcPasswordField.mjs +1 -1
  134. package/dist/Components/NcPopover.cjs +1 -1
  135. package/dist/Components/NcPopover.mjs +1 -1
  136. package/dist/Components/NcProfileHoverCard.cjs +4 -0
  137. package/dist/Components/NcProfileHoverCard.cjs.map +1 -0
  138. package/dist/Components/NcProfileHoverCard.mjs +5 -0
  139. package/dist/Components/NcProfileHoverCard.mjs.map +1 -0
  140. package/dist/Components/NcRadioGroup.cjs +1 -1
  141. package/dist/Components/NcRadioGroup.mjs +1 -1
  142. package/dist/Components/NcRadioGroupButton.cjs +1 -1
  143. package/dist/Components/NcRadioGroupButton.mjs +1 -1
  144. package/dist/Components/NcRelatedResourcesPanel.cjs +1 -1
  145. package/dist/Components/NcRelatedResourcesPanel.mjs +1 -1
  146. package/dist/Components/NcRichContenteditable.cjs +1 -1
  147. package/dist/Components/NcRichContenteditable.mjs +1 -1
  148. package/dist/Components/NcRichText.cjs +9 -7
  149. package/dist/Components/NcRichText.cjs.map +1 -1
  150. package/dist/Components/NcRichText.mjs +15 -13
  151. package/dist/Components/NcRichText.mjs.map +1 -1
  152. package/dist/Components/NcSelect.cjs +1 -1
  153. package/dist/Components/NcSelect.mjs +1 -1
  154. package/dist/Components/NcSelectTags.cjs +1 -1
  155. package/dist/Components/NcSelectTags.mjs +1 -1
  156. package/dist/Components/NcSelectUsers.cjs +1 -1
  157. package/dist/Components/NcSelectUsers.mjs +1 -1
  158. package/dist/Components/NcSettingsInputText.cjs +1 -1
  159. package/dist/Components/NcSettingsInputText.mjs +1 -1
  160. package/dist/Components/NcSettingsSection.cjs +1 -1
  161. package/dist/Components/NcSettingsSection.mjs +1 -1
  162. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  163. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  164. package/dist/Components/NcTextArea.cjs +1 -1
  165. package/dist/Components/NcTextArea.mjs +1 -1
  166. package/dist/Components/NcTextField.cjs +1 -1
  167. package/dist/Components/NcTextField.mjs +1 -1
  168. package/dist/Components/NcTimezonePicker.cjs +1 -1
  169. package/dist/Components/NcTimezonePicker.mjs +1 -1
  170. package/dist/Components/NcUserBubble.cjs +1 -1
  171. package/dist/Components/NcUserBubble.mjs +1 -1
  172. package/dist/Components/NcUserStatusIcon.cjs +1 -1
  173. package/dist/Components/NcUserStatusIcon.mjs +1 -1
  174. package/dist/Composables/useFormatDateTime.cjs +11 -5
  175. package/dist/Composables/useFormatDateTime.cjs.map +1 -1
  176. package/dist/Composables/useFormatDateTime.mjs +11 -5
  177. package/dist/Composables/useFormatDateTime.mjs.map +1 -1
  178. package/dist/Functions/reference.cjs +11 -10
  179. package/dist/Functions/reference.cjs.map +1 -1
  180. package/dist/Functions/reference.mjs +7 -6
  181. package/dist/Functions/reference.mjs.map +1 -1
  182. package/dist/Functions/registerReference.cjs +6 -5
  183. package/dist/Functions/registerReference.cjs.map +1 -1
  184. package/dist/Functions/registerReference.mjs +6 -5
  185. package/dist/Functions/registerReference.mjs.map +1 -1
  186. package/dist/Functions/usernameToColor.cjs +1 -1
  187. package/dist/Functions/usernameToColor.mjs +1 -1
  188. package/dist/assets/{NcActionButton-CjKx3679.css → NcActionButton-CwGeOQFe.css} +3 -2
  189. package/dist/assets/{NcActionCheckbox-CzUElysW.css → NcActionCheckbox-DG9SyAAy.css} +3 -2
  190. package/dist/assets/{NcActionInput-CPu4Btyq.css → NcActionInput-ESkvZDNh.css} +66 -66
  191. package/dist/assets/{NcActionLink-Bt-73iBm.css → NcActionLink-CB74Y-9f.css} +3 -2
  192. package/dist/assets/{NcActionRadio-CROsOVZe.css → NcActionRadio-4a1cWuYb.css} +3 -2
  193. package/dist/assets/{NcActionRouter-Bpv5Ywxq.css → NcActionRouter-CyyaRzft.css} +3 -2
  194. package/dist/assets/{NcActionText-IMOkntPi.css → NcActionText-BMO_HKvg.css} +3 -2
  195. package/dist/assets/{NcActionTextEditable-AuLw5QVP.css → NcActionTextEditable-DPpx-OUr.css} +66 -66
  196. package/dist/assets/{NcAppContent-CKJUs-ZZ.css → NcAppContent-DyFYmhvX.css} +20 -20
  197. package/dist/assets/{NcAppNavigation-DfsSMVgo.css → NcAppNavigation-B-X0bAXx.css} +14 -16
  198. package/dist/assets/{NcAppNavigationCaption-C7GtQb_y.css → NcAppNavigationCaption-NX44RnkW.css} +8 -8
  199. package/dist/assets/{NcAppNavigationItem-CksjxOVP.css → NcAppNavigationItem-D4T7UQqz.css} +8 -7
  200. package/dist/assets/{NcAppNavigationNewItem-Dn_iz3og.css → NcAppNavigationNewItem-CtObIA-e.css} +4 -3
  201. package/dist/assets/{NcAppNavigationSettings-2Wh1E3Hq.css → NcAppNavigationSettings-DGkLlCyq.css} +11 -11
  202. package/dist/assets/{NcAppNavigationToggle-DgwbZOWc.css → NcAppNavigationToggle-D1K2TRZ-.css} +3 -3
  203. package/dist/assets/{NcAppSettingsDialog-DRyLeR3T.css → NcAppSettingsDialog-Cu7QAD8V.css} +34 -34
  204. package/dist/assets/{NcAppSettingsSection-Yg4NYCih.css → NcAppSettingsSection-DU9FOAnJ.css} +7 -7
  205. package/dist/assets/{NcAppSettingsShortcutsSection-C_DMnyUy.css → NcAppSettingsShortcutsSection-D-FcvAWd.css} +3 -3
  206. package/dist/assets/{NcAppSidebar-B1bkEVQA.css → NcAppSidebar-DPorFaqk.css} +73 -73
  207. package/dist/assets/{NcAssistantButton-BNEXluSq.css → NcAssistantButton-C6d88UPB.css} +9 -9
  208. package/dist/assets/{NcAssistantContent-DrswfkY-.css → NcAssistantContent-DTHxHZ09.css} +3 -3
  209. package/dist/assets/{NcAssistantIcon-CdtR1Psu.css → NcAssistantIcon-BV1uZpAb.css} +4 -4
  210. package/dist/assets/{NcAvatar-CK9ipsjF.css → NcAvatar-BdHHFwV3.css} +41 -26
  211. package/dist/assets/{NcBlurHash-CT92vFpc.css → NcBlurHash-Zj5Z9WKv.css} +2 -2
  212. package/dist/assets/{NcBreadcrumb-0xB19h6f.css → NcBreadcrumb-DyXnSA6l.css} +16 -16
  213. package/dist/assets/{NcButton-o3s2D3Dl.css → NcButton-C-bkSL_r.css} +49 -49
  214. package/dist/assets/{NcCheckboxRadioSwitch-BojbloxL.css → NcCheckboxRadioSwitch-DCSWiHVq.css} +53 -51
  215. package/dist/assets/{NcColorPicker-CCqpXoam.css → NcColorPicker-DjmfbD2K.css} +32 -32
  216. package/dist/assets/{NcContent-URJTZQq1.css → NcContent-rDfulBCh.css} +12 -13
  217. package/dist/assets/{NcDateTimePicker-DknygOcQ.css → NcDateTimePicker-CD0ZGUBz.css} +15 -15
  218. package/dist/assets/{NcEmptyContent-CUFc_Dds.css → NcEmptyContent-DAR2ze6H.css} +10 -10
  219. package/dist/assets/{NcFilePicker-BokX813z.css → NcFilePicker-BjFpDu4R.css} +1 -1
  220. package/dist/assets/{NcFormBox-9NY7pxez.css → NcFormBox-DoEpsPVV.css} +11 -11
  221. package/dist/assets/{NcFormBoxButton-BlS280R1.css → NcFormBoxButton-CFtdjCfy.css} +2 -2
  222. package/dist/assets/{NcFormBoxItem-BdFKDYqL.css → NcFormBoxItem-C918I2qS.css} +17 -13
  223. package/dist/assets/{NcFormBoxSwitch-CXtmxIfB.css → NcFormBoxSwitch-C4cbxBBA.css} +2 -2
  224. package/dist/assets/{NcFormGroup-uKT9TTrz.css → NcFormGroup-CUFSO_ru.css} +8 -8
  225. package/dist/assets/{NcGuestContent-BkegjnLL.css → NcGuestContent-27hnc8yQ.css} +3 -3
  226. package/dist/assets/{NcHotkey-9k8cxWO5.css → NcHotkey-D_InvA0N.css} +8 -8
  227. package/dist/assets/{NcHotkeyList-CNWXE5jg.css → NcHotkeyList-XE5Xd_iE.css} +3 -3
  228. package/dist/assets/{NcIconToggleSwitch-sDZkWAmc.css → NcIconToggleSwitch-DO_sv5_o.css} +4 -4
  229. package/dist/assets/{NcInputConfirmCancel-Brp9ZfY5.css → NcInputConfirmCancel-DRZviUxz.css} +8 -8
  230. package/dist/assets/{NcInputField-Cc-l-KGd.css → NcInputField-KvlF4emB.css} +46 -46
  231. package/dist/assets/{NcKbd-8TOrFNAw.css → NcKbd-IflT8hS_.css} +3 -3
  232. package/dist/assets/{NcListItem-DP1egljH.css → NcListItem-3a4Lafwa.css} +47 -47
  233. package/dist/assets/{NcNoteCard-CwNXZ4vV.css → NcNoteCard-C4SocW9G.css} +13 -13
  234. package/dist/assets/{NcPopover-CJgeCuwk.css → NcPopover-nBCZ8J9Q.css} +13 -13
  235. package/dist/assets/NcProfileHoverCard-D3V682nS.css +340 -0
  236. package/dist/assets/{NcRadioGroup-Dss0ok3g.css → NcRadioGroup-Bq7x-xEK.css} +2 -2
  237. package/dist/assets/{NcRadioGroupButton-CMOW3Q4J.css → NcRadioGroupButton-i11p0wHX.css} +14 -14
  238. package/dist/assets/NcReferenceWidget-Cg4xOL_8.css +150 -0
  239. package/dist/assets/{NcRelatedResourcesPanel-CTpqdDL9.css → NcRelatedResourcesPanel-D5DxWJPc.css} +30 -30
  240. package/dist/assets/{NcRichContenteditable-DwS6PNCv.css → NcRichContenteditable-DRPzKa4Z.css} +29 -29
  241. package/dist/assets/{NcRichText-Cp_5tfBy.css → NcRichText-D0xtzoWq.css} +91 -91
  242. package/dist/assets/{NcSettingsSection-D_qeKnRb.css → NcSettingsSection-Fyy2lFk_.css} +9 -9
  243. package/dist/assets/{NcTextArea-BtG5_qHD.css → NcTextArea-BMPUvHVL.css} +28 -28
  244. package/dist/assets/{autolink-KPdaBewQ.css → autolink-CEziQYgN.css} +3 -3
  245. package/dist/assets/{referencePickerModal-CGtNx7ew.css → referencePickerModal-0oYth4rX.css} +0 -114
  246. package/dist/chunks/DockRight-B0D52yCO.mjs +38 -0
  247. package/dist/chunks/DockRight-B0D52yCO.mjs.map +1 -0
  248. package/dist/chunks/DockRight-CXafXJaH.cjs +37 -0
  249. package/dist/chunks/DockRight-CXafXJaH.cjs.map +1 -0
  250. package/dist/chunks/{NcActionButton-CiYel4_C.cjs → NcActionButton-B1jvJWjl.cjs} +2 -2
  251. package/dist/chunks/{NcActionButton-CiYel4_C.cjs.map → NcActionButton-B1jvJWjl.cjs.map} +1 -1
  252. package/dist/chunks/{NcActionButton-K4jUGMlW.mjs → NcActionButton-D7uypboC.mjs} +2 -2
  253. package/dist/chunks/{NcActionButton-K4jUGMlW.mjs.map → NcActionButton-D7uypboC.mjs.map} +1 -1
  254. package/dist/chunks/{NcActionButtonGroup-B95wg_Q6.mjs → NcActionButtonGroup-C3eUBbt4.mjs} +2 -2
  255. package/dist/chunks/{NcActionButtonGroup-B95wg_Q6.mjs.map → NcActionButtonGroup-C3eUBbt4.mjs.map} +1 -1
  256. package/dist/chunks/{NcActionButtonGroup-CFGCmzTM.cjs → NcActionButtonGroup-CsOhQH6p.cjs} +2 -2
  257. package/dist/chunks/{NcActionButtonGroup-CFGCmzTM.cjs.map → NcActionButtonGroup-CsOhQH6p.cjs.map} +1 -1
  258. package/dist/chunks/{NcActionCheckbox-BGCUJhg_.cjs → NcActionCheckbox-B3vUOSeb.cjs} +2 -2
  259. package/dist/chunks/{NcActionCheckbox-BGCUJhg_.cjs.map → NcActionCheckbox-B3vUOSeb.cjs.map} +1 -1
  260. package/dist/chunks/{NcActionCheckbox-23CmleUh.mjs → NcActionCheckbox-Cbg5yktN.mjs} +2 -2
  261. package/dist/chunks/{NcActionCheckbox-23CmleUh.mjs.map → NcActionCheckbox-Cbg5yktN.mjs.map} +1 -1
  262. package/dist/chunks/{NcActionInput-CcA3XFGe.cjs → NcActionInput-C-j7Mehu.cjs} +7 -7
  263. package/dist/chunks/{NcActionInput-CcA3XFGe.cjs.map → NcActionInput-C-j7Mehu.cjs.map} +1 -1
  264. package/dist/chunks/{NcActionInput-BoKGVBu8.mjs → NcActionInput-CMLDgnF_.mjs} +7 -7
  265. package/dist/chunks/{NcActionInput-BoKGVBu8.mjs.map → NcActionInput-CMLDgnF_.mjs.map} +1 -1
  266. package/dist/chunks/{NcActionRadio-Dd3CsuiD.mjs → NcActionRadio-B2bgbBHw.mjs} +2 -2
  267. package/dist/chunks/{NcActionRadio-Dd3CsuiD.mjs.map → NcActionRadio-B2bgbBHw.mjs.map} +1 -1
  268. package/dist/chunks/{NcActionRadio-DbkRiTHX.cjs → NcActionRadio-BJSZBI9N.cjs} +2 -2
  269. package/dist/chunks/{NcActionRadio-DbkRiTHX.cjs.map → NcActionRadio-BJSZBI9N.cjs.map} +1 -1
  270. package/dist/chunks/{NcActionTextEditable-YqvZGY07.mjs → NcActionTextEditable-BykT5Byh.mjs} +3 -3
  271. package/dist/chunks/{NcActionTextEditable-BqJ5wONY.cjs.map → NcActionTextEditable-BykT5Byh.mjs.map} +1 -1
  272. package/dist/chunks/{NcActionTextEditable-BqJ5wONY.cjs → NcActionTextEditable-D4nvhJff.cjs} +3 -3
  273. package/dist/chunks/{NcActionTextEditable-YqvZGY07.mjs.map → NcActionTextEditable-D4nvhJff.cjs.map} +1 -1
  274. package/dist/chunks/{NcActions-DbPerbGE.mjs → NcActions-CX1MSord.mjs} +5 -5
  275. package/dist/chunks/{NcActions-DbPerbGE.mjs.map → NcActions-CX1MSord.mjs.map} +1 -1
  276. package/dist/chunks/{NcActions-D51W1X9v.cjs → NcActions-H0GXWVPU.cjs} +5 -5
  277. package/dist/chunks/{NcActions-D51W1X9v.cjs.map → NcActions-H0GXWVPU.cjs.map} +1 -1
  278. package/dist/chunks/{NcAppContent-DAN0qPID.mjs → NcAppContent-7ziLICwJ.mjs} +7 -8
  279. package/dist/chunks/NcAppContent-7ziLICwJ.mjs.map +1 -0
  280. package/dist/chunks/{NcAppContent-0hbQMH35.cjs → NcAppContent-BCYyp6nc.cjs} +9 -10
  281. package/dist/chunks/NcAppContent-BCYyp6nc.cjs.map +1 -0
  282. package/dist/chunks/{NcAppNavigation-DGufDPoi.mjs → NcAppNavigation-BDyBoXA1.mjs} +5 -5
  283. package/dist/chunks/{NcAppNavigation-DGufDPoi.mjs.map → NcAppNavigation-BDyBoXA1.mjs.map} +1 -1
  284. package/dist/chunks/{NcAppNavigation-DB3HqxPL.cjs → NcAppNavigation-BEor4mmi.cjs} +5 -5
  285. package/dist/chunks/{NcAppNavigation-DB3HqxPL.cjs.map → NcAppNavigation-BEor4mmi.cjs.map} +1 -1
  286. package/dist/chunks/{NcAppNavigationCaption-BZwuqQcm.mjs → NcAppNavigationCaption-DYdHKPv7.mjs} +4 -4
  287. package/dist/chunks/{NcAppNavigationCaption-WVnxSeIf.cjs.map → NcAppNavigationCaption-DYdHKPv7.mjs.map} +1 -1
  288. package/dist/chunks/{NcAppNavigationCaption-WVnxSeIf.cjs → NcAppNavigationCaption-drD-T2kk.cjs} +4 -4
  289. package/dist/chunks/{NcAppNavigationCaption-BZwuqQcm.mjs.map → NcAppNavigationCaption-drD-T2kk.cjs.map} +1 -1
  290. package/dist/chunks/{NcAppNavigationItem-0zDqIuUZ.cjs → NcAppNavigationItem-Ccy8CT50.cjs} +14 -14
  291. package/dist/chunks/{NcAppNavigationItem-0zDqIuUZ.cjs.map → NcAppNavigationItem-Ccy8CT50.cjs.map} +1 -1
  292. package/dist/chunks/{NcAppNavigationItem-CgYgq_nb.mjs → NcAppNavigationItem-Dg-2s6bP.mjs} +14 -14
  293. package/dist/chunks/{NcAppNavigationItem-CgYgq_nb.mjs.map → NcAppNavigationItem-Dg-2s6bP.mjs.map} +1 -1
  294. package/dist/chunks/{NcAppNavigationNew-DRdPwKOi.cjs → NcAppNavigationNew-4O3IsPEz.cjs} +2 -2
  295. package/dist/chunks/{NcAppNavigationNew-DRdPwKOi.cjs.map → NcAppNavigationNew-4O3IsPEz.cjs.map} +1 -1
  296. package/dist/chunks/{NcAppNavigationNew-BUVnumWS.mjs → NcAppNavigationNew-B8Ny1xKx.mjs} +2 -2
  297. package/dist/chunks/{NcAppNavigationNew-BUVnumWS.mjs.map → NcAppNavigationNew-B8Ny1xKx.mjs.map} +1 -1
  298. package/dist/chunks/{NcAppNavigationNewItem-Nz2HecTz.mjs → NcAppNavigationNewItem-BHnL_502.mjs} +3 -3
  299. package/dist/chunks/{NcAppNavigationNewItem-Nz2HecTz.mjs.map → NcAppNavigationNewItem-BHnL_502.mjs.map} +1 -1
  300. package/dist/chunks/{NcAppNavigationNewItem-SR744REn.cjs → NcAppNavigationNewItem-CW4Y7Hz9.cjs} +3 -3
  301. package/dist/chunks/{NcAppNavigationNewItem-SR744REn.cjs.map → NcAppNavigationNewItem-CW4Y7Hz9.cjs.map} +1 -1
  302. package/dist/chunks/{NcAppNavigationSearch-CzhlljAU.mjs → NcAppNavigationSearch-DIO0S2TU.mjs} +4 -4
  303. package/dist/chunks/{NcAppNavigationSearch-CzhlljAU.mjs.map → NcAppNavigationSearch-DIO0S2TU.mjs.map} +1 -1
  304. package/dist/chunks/{NcAppNavigationSearch-Czcwiin4.cjs → NcAppNavigationSearch-DZEqsYpD.cjs} +4 -4
  305. package/dist/chunks/{NcAppNavigationSearch-Czcwiin4.cjs.map → NcAppNavigationSearch-DZEqsYpD.cjs.map} +1 -1
  306. package/dist/chunks/{NcAppNavigationSettings-BaO-G72x.mjs → NcAppNavigationSettings-3jZKd9et.mjs} +7 -7
  307. package/dist/chunks/{NcAppNavigationSettings-BaO-G72x.mjs.map → NcAppNavigationSettings-3jZKd9et.mjs.map} +1 -1
  308. package/dist/chunks/{NcAppNavigationSettings-CotFe5aD.cjs → NcAppNavigationSettings-DpIprW-E.cjs} +7 -7
  309. package/dist/chunks/{NcAppNavigationSettings-CotFe5aD.cjs.map → NcAppNavigationSettings-DpIprW-E.cjs.map} +1 -1
  310. package/dist/chunks/{NcAppNavigationToggle-CkDMk16T.cjs → NcAppNavigationToggle-DFGuYTE8.cjs} +23 -52
  311. package/dist/chunks/NcAppNavigationToggle-DFGuYTE8.cjs.map +1 -0
  312. package/dist/chunks/{NcAppNavigationToggle-CXX1MFrf.mjs → NcAppNavigationToggle-DQZ2LWw4.mjs} +23 -52
  313. package/dist/chunks/NcAppNavigationToggle-DQZ2LWw4.mjs.map +1 -0
  314. package/dist/chunks/{NcAppSettingsDialog-Fa5DTfig.cjs → NcAppSettingsDialog-BoHdpAtG.cjs} +10 -10
  315. package/dist/chunks/NcAppSettingsDialog-BoHdpAtG.cjs.map +1 -0
  316. package/dist/chunks/{NcAppSettingsDialog-MxrFh-Ln.mjs → NcAppSettingsDialog-JB67n8yt.mjs} +10 -10
  317. package/dist/chunks/NcAppSettingsDialog-JB67n8yt.mjs.map +1 -0
  318. package/dist/chunks/{NcAppSettingsSection-BjQllLEA.mjs → NcAppSettingsSection-CsGyNFSh.mjs} +3 -3
  319. package/dist/chunks/{NcAppSettingsSection-BjQllLEA.mjs.map → NcAppSettingsSection-CsGyNFSh.mjs.map} +1 -1
  320. package/dist/chunks/{NcAppSettingsSection-CDLQ-AjK.cjs → NcAppSettingsSection-De6vkXOF.cjs} +3 -3
  321. package/dist/chunks/{NcAppSettingsSection-CDLQ-AjK.cjs.map → NcAppSettingsSection-De6vkXOF.cjs.map} +1 -1
  322. package/dist/chunks/{NcAppSettingsShortcutsSection-DgGU8-cF.cjs → NcAppSettingsShortcutsSection-Bli0fYba.cjs} +7 -7
  323. package/dist/chunks/NcAppSettingsShortcutsSection-Bli0fYba.cjs.map +1 -0
  324. package/dist/chunks/{NcAppSettingsShortcutsSection-DblUBaWP.mjs → NcAppSettingsShortcutsSection-BpUlnEbQ.mjs} +7 -7
  325. package/dist/chunks/NcAppSettingsShortcutsSection-BpUlnEbQ.mjs.map +1 -0
  326. package/dist/chunks/{NcAppSidebar-B7GuNZ4C.mjs → NcAppSidebar-B2F66PCc.mjs} +16 -48
  327. package/dist/chunks/NcAppSidebar-B2F66PCc.mjs.map +1 -0
  328. package/dist/chunks/{NcAppSidebar-DXEl0_ou.cjs → NcAppSidebar-CMHPTlTQ.cjs} +16 -48
  329. package/dist/chunks/NcAppSidebar-CMHPTlTQ.cjs.map +1 -0
  330. package/dist/chunks/{NcAssistantButton-B7BLAkwW.mjs → NcAssistantButton-D2gOuok6.mjs} +11 -11
  331. package/dist/chunks/{NcAssistantButton-B7BLAkwW.mjs.map → NcAssistantButton-D2gOuok6.mjs.map} +1 -1
  332. package/dist/chunks/{NcAssistantButton-XS3UdAKm.cjs → NcAssistantButton-po8AW9pX.cjs} +11 -11
  333. package/dist/chunks/{NcAssistantButton-XS3UdAKm.cjs.map → NcAssistantButton-po8AW9pX.cjs.map} +1 -1
  334. package/dist/chunks/{NcAssistantIcon-DCx6AaSW.mjs → NcAssistantIcon-CTTn1608.mjs} +6 -6
  335. package/dist/chunks/{NcAssistantIcon-DCx6AaSW.mjs.map → NcAssistantIcon-CTTn1608.mjs.map} +1 -1
  336. package/dist/chunks/{NcAssistantIcon-CD5mu9O1.cjs → NcAssistantIcon-D_1fcbQU.cjs} +6 -6
  337. package/dist/chunks/{NcAssistantIcon-CD5mu9O1.cjs.map → NcAssistantIcon-D_1fcbQU.cjs.map} +1 -1
  338. package/dist/chunks/{NcAvatar-D09ZAgeJ.cjs → NcAvatar-BbR_mZyT.cjs} +126 -21
  339. package/dist/chunks/NcAvatar-BbR_mZyT.cjs.map +1 -0
  340. package/dist/chunks/{NcAvatar-DkAX4nqq.mjs → NcAvatar-C1ty7wsG.mjs} +125 -21
  341. package/dist/chunks/NcAvatar-C1ty7wsG.mjs.map +1 -0
  342. package/dist/chunks/{NcBlurHash-D0wcwBet.cjs → NcBlurHash-CXPnoVsM.cjs} +4 -4
  343. package/dist/chunks/{NcBlurHash-D0wcwBet.cjs.map → NcBlurHash-CXPnoVsM.cjs.map} +1 -1
  344. package/dist/chunks/{NcBlurHash-KSj0HXbX.mjs → NcBlurHash-DKfLn7BC.mjs} +4 -4
  345. package/dist/chunks/{NcBlurHash-KSj0HXbX.mjs.map → NcBlurHash-DKfLn7BC.mjs.map} +1 -1
  346. package/dist/chunks/{NcBreadcrumb-D8xA3KcG.mjs → NcBreadcrumb-BPaEIFrD.mjs} +5 -5
  347. package/dist/chunks/{NcBreadcrumb-14OmaYrH.cjs.map → NcBreadcrumb-BPaEIFrD.mjs.map} +1 -1
  348. package/dist/chunks/{NcBreadcrumb-14OmaYrH.cjs → NcBreadcrumb-ZV3_rxwo.cjs} +5 -5
  349. package/dist/chunks/{NcBreadcrumb-D8xA3KcG.mjs.map → NcBreadcrumb-ZV3_rxwo.cjs.map} +1 -1
  350. package/dist/chunks/{NcBreadcrumbs-CesoXxTs.mjs → NcBreadcrumbs-BN_Nk5sm.mjs} +4 -4
  351. package/dist/chunks/{NcBreadcrumbs-CesoXxTs.mjs.map → NcBreadcrumbs-BN_Nk5sm.mjs.map} +1 -1
  352. package/dist/chunks/{NcBreadcrumbs-CZt3UuyO.cjs → NcBreadcrumbs-lgJctYCF.cjs} +4 -4
  353. package/dist/chunks/{NcBreadcrumbs-CZt3UuyO.cjs.map → NcBreadcrumbs-lgJctYCF.cjs.map} +1 -1
  354. package/dist/chunks/{NcButton-CCWEL9Ci.mjs → NcButton-DAGirW_B.mjs} +4 -4
  355. package/dist/chunks/NcButton-DAGirW_B.mjs.map +1 -0
  356. package/dist/chunks/{NcButton-ByTFUhwJ.cjs → NcButton-W3wDpCdX.cjs} +4 -4
  357. package/dist/chunks/NcButton-W3wDpCdX.cjs.map +1 -0
  358. package/dist/chunks/{NcCheckboxRadioSwitch-D4IV4zWy.mjs → NcCheckboxRadioSwitch-BAjRm8PQ.mjs} +18 -9
  359. package/dist/chunks/NcCheckboxRadioSwitch-BAjRm8PQ.mjs.map +1 -0
  360. package/dist/chunks/{NcCheckboxRadioSwitch-BQeglWXd.cjs → NcCheckboxRadioSwitch-Bc1iPxKK.cjs} +18 -9
  361. package/dist/chunks/NcCheckboxRadioSwitch-Bc1iPxKK.cjs.map +1 -0
  362. package/dist/chunks/{NcCollectionList-DOAZ13vO.mjs → NcCollectionList-75D50pZU.mjs} +9 -9
  363. package/dist/chunks/NcCollectionList-75D50pZU.mjs.map +1 -0
  364. package/dist/chunks/{NcCollectionList-2jk5XCm8.cjs → NcCollectionList-CX9fHs--.cjs} +9 -9
  365. package/dist/chunks/NcCollectionList-CX9fHs--.cjs.map +1 -0
  366. package/dist/chunks/{NcColorPicker-SlazeVcI.mjs → NcColorPicker-BwqjqV32.mjs} +8 -8
  367. package/dist/chunks/{NcColorPicker-SlazeVcI.mjs.map → NcColorPicker-BwqjqV32.mjs.map} +1 -1
  368. package/dist/chunks/{NcColorPicker-BTiAa5mm.cjs → NcColorPicker-oQVwX8dO.cjs} +8 -8
  369. package/dist/chunks/{NcColorPicker-BTiAa5mm.cjs.map → NcColorPicker-oQVwX8dO.cjs.map} +1 -1
  370. package/dist/chunks/{NcContent-BB-v-amq.cjs → NcContent-BlABZ4r6.cjs} +7 -7
  371. package/dist/chunks/{NcContent-BB-v-amq.cjs.map → NcContent-BlABZ4r6.cjs.map} +1 -1
  372. package/dist/chunks/{NcContent-BuTh0ZPb.mjs → NcContent-nvVwz9xO.mjs} +7 -7
  373. package/dist/chunks/{NcContent-BuTh0ZPb.mjs.map → NcContent-nvVwz9xO.mjs.map} +1 -1
  374. package/dist/chunks/{NcDashboardWidget-dMwnFBzc.cjs → NcDashboardWidget-CY9oWI6e.cjs} +5 -5
  375. package/dist/chunks/{NcDashboardWidget-dMwnFBzc.cjs.map → NcDashboardWidget-CY9oWI6e.cjs.map} +1 -1
  376. package/dist/chunks/{NcDashboardWidget-CO1z9VUN.mjs → NcDashboardWidget-d_eqooRR.mjs} +5 -5
  377. package/dist/chunks/{NcDashboardWidget-CO1z9VUN.mjs.map → NcDashboardWidget-d_eqooRR.mjs.map} +1 -1
  378. package/dist/chunks/{NcDashboardWidgetItem-9tQgaPXS.cjs → NcDashboardWidgetItem-BWELTjeT.cjs} +4 -4
  379. package/dist/chunks/{NcDashboardWidgetItem-9tQgaPXS.cjs.map → NcDashboardWidgetItem-BWELTjeT.cjs.map} +1 -1
  380. package/dist/chunks/{NcDashboardWidgetItem-2VgB9qj2.mjs → NcDashboardWidgetItem-BiZ8QNOR.mjs} +4 -4
  381. package/dist/chunks/{NcDashboardWidgetItem-2VgB9qj2.mjs.map → NcDashboardWidgetItem-BiZ8QNOR.mjs.map} +1 -1
  382. package/dist/chunks/NcDateTime-DE-ltgw2.cjs.map +1 -1
  383. package/dist/chunks/NcDateTime-enXYuwj8.mjs.map +1 -1
  384. package/dist/chunks/{NcDialog-Qak1QTrv.cjs → NcDialog-CiuR4ZK0.cjs} +2 -2
  385. package/dist/chunks/{NcDialog-Qak1QTrv.cjs.map → NcDialog-CiuR4ZK0.cjs.map} +1 -1
  386. package/dist/chunks/{NcDialog-DZ7xq7XA.mjs → NcDialog-DoGsI2_6.mjs} +2 -2
  387. package/dist/chunks/{NcDialog-DZ7xq7XA.mjs.map → NcDialog-DoGsI2_6.mjs.map} +1 -1
  388. package/dist/chunks/{NcDialogButton-BoetK2zm.cjs → NcDialogButton-BR6KI4--.cjs} +4 -4
  389. package/dist/chunks/{NcDialogButton-BoetK2zm.cjs.map → NcDialogButton-BR6KI4--.cjs.map} +1 -1
  390. package/dist/chunks/{NcDialogButton-KNF3Co74.mjs → NcDialogButton-D5yuDtSF.mjs} +4 -4
  391. package/dist/chunks/{NcDialogButton-KNF3Co74.mjs.map → NcDialogButton-D5yuDtSF.mjs.map} +1 -1
  392. package/dist/chunks/{NcEmojiPicker-DNxcceCn.mjs → NcEmojiPicker-C_88_f6x.mjs} +8 -8
  393. package/dist/chunks/{NcEmojiPicker-DNxcceCn.mjs.map → NcEmojiPicker-C_88_f6x.mjs.map} +1 -1
  394. package/dist/chunks/{NcEmojiPicker-2KIJVstd.cjs → NcEmojiPicker-Dyqwkm_d.cjs} +8 -8
  395. package/dist/chunks/{NcEmojiPicker-2KIJVstd.cjs.map → NcEmojiPicker-Dyqwkm_d.cjs.map} +1 -1
  396. package/dist/chunks/{NcFilePicker-BL6iajt2.cjs → NcFilePicker-Cdc1TsXy.cjs} +7 -7
  397. package/dist/chunks/{NcFilePicker-BL6iajt2.cjs.map → NcFilePicker-Cdc1TsXy.cjs.map} +1 -1
  398. package/dist/chunks/{NcFilePicker-Ck9o-ia3.mjs → NcFilePicker-Dg6UqMN1.mjs} +7 -7
  399. package/dist/chunks/{NcFilePicker-Ck9o-ia3.mjs.map → NcFilePicker-Dg6UqMN1.mjs.map} +1 -1
  400. package/dist/chunks/{NcFormBox-DtoCXLMx.mjs → NcFormBox-C38-8CH6.mjs} +7 -7
  401. package/dist/chunks/{NcFormBox-DtoCXLMx.mjs.map → NcFormBox-C38-8CH6.mjs.map} +1 -1
  402. package/dist/chunks/{NcFormBox-DRGVpFeZ.cjs → NcFormBox-C8LDr6nF.cjs} +7 -7
  403. package/dist/chunks/{NcFormBox-DRGVpFeZ.cjs.map → NcFormBox-C8LDr6nF.cjs.map} +1 -1
  404. package/dist/chunks/{NcFormBoxButton-ozVuTgCZ.cjs → NcFormBoxButton-Bk-1cqbj.cjs} +5 -5
  405. package/dist/chunks/{NcFormBoxButton-ozVuTgCZ.cjs.map → NcFormBoxButton-Bk-1cqbj.cjs.map} +1 -1
  406. package/dist/chunks/{NcFormBoxButton-CFWCJ0-X.mjs → NcFormBoxButton-DFqqtbav.mjs} +5 -5
  407. package/dist/chunks/{NcFormBoxButton-CFWCJ0-X.mjs.map → NcFormBoxButton-DFqqtbav.mjs.map} +1 -1
  408. package/dist/chunks/{NcFormBoxCopyButton-BS9aM994.cjs → NcFormBoxCopyButton-LEjPAg3D.cjs} +3 -3
  409. package/dist/chunks/{NcFormBoxCopyButton-BS9aM994.cjs.map → NcFormBoxCopyButton-LEjPAg3D.cjs.map} +1 -1
  410. package/dist/chunks/{NcFormBoxCopyButton-Da8RuDH1.mjs → NcFormBoxCopyButton-_KxKabAB.mjs} +3 -3
  411. package/dist/chunks/{NcFormBoxCopyButton-Da8RuDH1.mjs.map → NcFormBoxCopyButton-_KxKabAB.mjs.map} +1 -1
  412. package/dist/chunks/{NcFormBoxItem-3lI7Bu3S.cjs → NcFormBoxItem-BAJxkxRf.cjs} +12 -12
  413. package/dist/chunks/{NcFormBoxItem-3lI7Bu3S.cjs.map → NcFormBoxItem-BAJxkxRf.cjs.map} +1 -1
  414. package/dist/chunks/{NcFormBoxItem-Bz-P0lVG.mjs → NcFormBoxItem-CmfqBL1k.mjs} +12 -12
  415. package/dist/chunks/{NcFormBoxItem-Bz-P0lVG.mjs.map → NcFormBoxItem-CmfqBL1k.mjs.map} +1 -1
  416. package/dist/chunks/{NcFormBoxSwitch-DaaMuPnk.mjs → NcFormBoxSwitch-B34n4EwU.mjs} +6 -6
  417. package/dist/chunks/NcFormBoxSwitch-B34n4EwU.mjs.map +1 -0
  418. package/dist/chunks/{NcFormBoxSwitch-7R8iAj1R.cjs → NcFormBoxSwitch-Bw2utaCz.cjs} +6 -6
  419. package/dist/chunks/NcFormBoxSwitch-Bw2utaCz.cjs.map +1 -0
  420. package/dist/chunks/{NcFormGroup-AxkxubKD.cjs → NcFormGroup-dH5AXvsT.cjs} +9 -9
  421. package/dist/chunks/{NcFormGroup-AxkxubKD.cjs.map → NcFormGroup-dH5AXvsT.cjs.map} +1 -1
  422. package/dist/chunks/{NcFormGroup-DblLoFMf.mjs → NcFormGroup-geUvdoIG.mjs} +9 -9
  423. package/dist/chunks/{NcFormGroup-DblLoFMf.mjs.map → NcFormGroup-geUvdoIG.mjs.map} +1 -1
  424. package/dist/chunks/{NcHeaderButton-GtIbBhEd.mjs → NcHeaderButton-BqjMDSal.mjs} +2 -2
  425. package/dist/chunks/{NcHeaderButton-GtIbBhEd.mjs.map → NcHeaderButton-BqjMDSal.mjs.map} +1 -1
  426. package/dist/chunks/{NcHeaderButton-BndVfb3e.cjs → NcHeaderButton-ChwiTpxY.cjs} +2 -2
  427. package/dist/chunks/{NcHeaderButton-BndVfb3e.cjs.map → NcHeaderButton-ChwiTpxY.cjs.map} +1 -1
  428. package/dist/chunks/{NcHeaderMenu-elBE_Ukl.mjs → NcHeaderMenu-BB2r8v-X.mjs} +2 -2
  429. package/dist/chunks/{NcHeaderMenu-elBE_Ukl.mjs.map → NcHeaderMenu-BB2r8v-X.mjs.map} +1 -1
  430. package/dist/chunks/{NcHeaderMenu-DUQ4pqU-.cjs → NcHeaderMenu-BivYykFA.cjs} +2 -2
  431. package/dist/chunks/{NcHeaderMenu-DUQ4pqU-.cjs.map → NcHeaderMenu-BivYykFA.cjs.map} +1 -1
  432. package/dist/chunks/{NcHotkey-CLLtt9LG.mjs → NcHotkey-B6KIqqii.mjs} +7 -7
  433. package/dist/chunks/{NcHotkey-CLLtt9LG.mjs.map → NcHotkey-B6KIqqii.mjs.map} +1 -1
  434. package/dist/chunks/{NcHotkey-vKyDZ2a7.cjs → NcHotkey-BVSKiKpz.cjs} +7 -7
  435. package/dist/chunks/{NcHotkey-vKyDZ2a7.cjs.map → NcHotkey-BVSKiKpz.cjs.map} +1 -1
  436. package/dist/chunks/{NcHotkeyList-Co7MBL5U.mjs → NcHotkeyList-BACQoMeA.mjs} +6 -6
  437. package/dist/chunks/NcHotkeyList-BACQoMeA.mjs.map +1 -0
  438. package/dist/chunks/{NcHotkeyList-DhFQdopw.cjs → NcHotkeyList-Crj5V-KW.cjs} +6 -6
  439. package/dist/chunks/NcHotkeyList-Crj5V-KW.cjs.map +1 -0
  440. package/dist/chunks/{NcIconToggleSwitch-0NTw7i-t.mjs → NcIconToggleSwitch-B19dt_oD.mjs} +4 -4
  441. package/dist/chunks/{NcIconToggleSwitch-0NTw7i-t.mjs.map → NcIconToggleSwitch-B19dt_oD.mjs.map} +1 -1
  442. package/dist/chunks/{NcIconToggleSwitch-LTgdIBoC.cjs → NcIconToggleSwitch-DZSBCDbH.cjs} +4 -4
  443. package/dist/chunks/{NcIconToggleSwitch-LTgdIBoC.cjs.map → NcIconToggleSwitch-DZSBCDbH.cjs.map} +1 -1
  444. package/dist/chunks/{NcInputConfirmCancel-CwuZqsuC.mjs → NcInputConfirmCancel-44rhjqEA.mjs} +10 -10
  445. package/dist/chunks/{NcInputConfirmCancel-CwuZqsuC.mjs.map → NcInputConfirmCancel-44rhjqEA.mjs.map} +1 -1
  446. package/dist/chunks/{NcInputConfirmCancel-CEZVhgJR.cjs → NcInputConfirmCancel-CaCFiQnc.cjs} +10 -10
  447. package/dist/chunks/{NcInputConfirmCancel-CEZVhgJR.cjs.map → NcInputConfirmCancel-CaCFiQnc.cjs.map} +1 -1
  448. package/dist/chunks/{NcInputField-Brpn446B.cjs → NcInputField-BcmWwfT5.cjs} +5 -5
  449. package/dist/chunks/{NcInputField-Brpn446B.cjs.map → NcInputField-BcmWwfT5.cjs.map} +1 -1
  450. package/dist/chunks/{NcInputField-i4Z8nb4b.mjs → NcInputField-Cym5GuvB.mjs} +5 -5
  451. package/dist/chunks/{NcInputField-i4Z8nb4b.mjs.map → NcInputField-Cym5GuvB.mjs.map} +1 -1
  452. package/dist/chunks/{NcKbd-DbjnDaJH.cjs → NcKbd-CrXHar_q.cjs} +6 -6
  453. package/dist/chunks/{NcKbd-DbjnDaJH.cjs.map → NcKbd-CrXHar_q.cjs.map} +1 -1
  454. package/dist/chunks/{NcKbd-GB8FuSAU.mjs → NcKbd-D86qGvDb.mjs} +6 -6
  455. package/dist/chunks/{NcKbd-GB8FuSAU.mjs.map → NcKbd-D86qGvDb.mjs.map} +1 -1
  456. package/dist/chunks/{NcListItem-C-e9iA9w.cjs → NcListItem-5_QrKITf.cjs} +4 -4
  457. package/dist/chunks/{NcListItem-CaosvdEe.mjs.map → NcListItem-5_QrKITf.cjs.map} +1 -1
  458. package/dist/chunks/{NcListItem-CaosvdEe.mjs → NcListItem-DFrhF-DU.mjs} +4 -4
  459. package/dist/chunks/{NcListItem-C-e9iA9w.cjs.map → NcListItem-DFrhF-DU.mjs.map} +1 -1
  460. package/dist/chunks/{NcListItemIcon-BQ0f65Vg.cjs → NcListItemIcon-BpEOUL7y.cjs} +2 -2
  461. package/dist/chunks/{NcListItemIcon-BQ0f65Vg.cjs.map → NcListItemIcon-BpEOUL7y.cjs.map} +1 -1
  462. package/dist/chunks/{NcListItemIcon-DCKYv8Jr.mjs → NcListItemIcon-DIecVacf.mjs} +2 -2
  463. package/dist/chunks/{NcListItemIcon-DCKYv8Jr.mjs.map → NcListItemIcon-DIecVacf.mjs.map} +1 -1
  464. package/dist/chunks/{NcPasswordField-D4OFjLza.mjs → NcPasswordField-2woxTjbl.mjs} +4 -4
  465. package/dist/chunks/{NcPasswordField-D4OFjLza.mjs.map → NcPasswordField-2woxTjbl.mjs.map} +1 -1
  466. package/dist/chunks/{NcPasswordField-PQt7wMbW.cjs → NcPasswordField-C1FGaXn4.cjs} +4 -4
  467. package/dist/chunks/{NcPasswordField-PQt7wMbW.cjs.map → NcPasswordField-C1FGaXn4.cjs.map} +1 -1
  468. package/dist/chunks/{NcPopover-UAg26Qdd.mjs → NcPopover-BaHX3QSG.mjs} +4 -4
  469. package/dist/chunks/{NcPopover-UAg26Qdd.mjs.map → NcPopover-BaHX3QSG.mjs.map} +1 -1
  470. package/dist/chunks/{NcPopover-Ujf9nIvN.cjs → NcPopover-Bq-bsaqt.cjs} +4 -4
  471. package/dist/chunks/{NcPopover-Ujf9nIvN.cjs.map → NcPopover-Bq-bsaqt.cjs.map} +1 -1
  472. package/dist/chunks/NcProfileHoverCard-DK5YkGF0.mjs +479 -0
  473. package/dist/chunks/NcProfileHoverCard-DK5YkGF0.mjs.map +1 -0
  474. package/dist/chunks/NcProfileHoverCard-rEanhQqc.cjs +481 -0
  475. package/dist/chunks/NcProfileHoverCard-rEanhQqc.cjs.map +1 -0
  476. package/dist/chunks/{NcRadioGroup-CsPmwGlc.cjs → NcRadioGroup-C2lG1kIj.cjs} +6 -6
  477. package/dist/chunks/{NcRadioGroup-CsPmwGlc.cjs.map → NcRadioGroup-C2lG1kIj.cjs.map} +1 -1
  478. package/dist/chunks/{NcRadioGroup-BbBX9X2J.mjs → NcRadioGroup-D_7OAyQ4.mjs} +6 -6
  479. package/dist/chunks/{NcRadioGroup-BbBX9X2J.mjs.map → NcRadioGroup-D_7OAyQ4.mjs.map} +1 -1
  480. package/dist/chunks/{NcRadioGroupButton-BkxlxjIA.mjs → NcRadioGroupButton-CkpB4myv.mjs} +8 -8
  481. package/dist/chunks/{NcRadioGroupButton-BkxlxjIA.mjs.map → NcRadioGroupButton-CkpB4myv.mjs.map} +1 -1
  482. package/dist/chunks/{NcRadioGroupButton-6skMHhr7.cjs → NcRadioGroupButton-DcU_Yagn.cjs} +8 -8
  483. package/dist/chunks/{NcRadioGroupButton-6skMHhr7.cjs.map → NcRadioGroupButton-DcU_Yagn.cjs.map} +1 -1
  484. package/dist/chunks/NcReferenceWidget-Br8ecSQw.cjs +280 -0
  485. package/dist/chunks/NcReferenceWidget-Br8ecSQw.cjs.map +1 -0
  486. package/dist/chunks/NcReferenceWidget-CMq5QVka.mjs +281 -0
  487. package/dist/chunks/NcReferenceWidget-CMq5QVka.mjs.map +1 -0
  488. package/dist/chunks/{NcRelatedResourcesPanel-I2ZOB3cx.mjs → NcRelatedResourcesPanel-BKygMHvP.mjs} +11 -11
  489. package/dist/chunks/NcRelatedResourcesPanel-BKygMHvP.mjs.map +1 -0
  490. package/dist/chunks/{NcRelatedResourcesPanel-l1AlGr83.cjs → NcRelatedResourcesPanel-CjmzJ9Ex.cjs} +11 -11
  491. package/dist/chunks/NcRelatedResourcesPanel-CjmzJ9Ex.cjs.map +1 -0
  492. package/dist/chunks/{NcRichContenteditable-DZjIiOKo.cjs → NcRichContenteditable-CaDBJIrd.cjs} +28 -32
  493. package/dist/chunks/NcRichContenteditable-CaDBJIrd.cjs.map +1 -0
  494. package/dist/chunks/{NcRichContenteditable-8ZA_LArB.mjs → NcRichContenteditable-rJPX28V6.mjs} +28 -32
  495. package/dist/chunks/NcRichContenteditable-rJPX28V6.mjs.map +1 -0
  496. package/dist/chunks/{NcRichText-pqvg5l27.cjs → NcRichText-BC9lKFPb.cjs} +10 -10
  497. package/dist/chunks/{NcRichText-pqvg5l27.cjs.map → NcRichText-BC9lKFPb.cjs.map} +1 -1
  498. package/dist/chunks/{NcRichText-ByLPwUvM.mjs → NcRichText-K2ZjNIbK.mjs} +9 -9
  499. package/dist/chunks/{NcRichText-ByLPwUvM.mjs.map → NcRichText-K2ZjNIbK.mjs.map} +1 -1
  500. package/dist/chunks/{NcSelect-CHc1QupB.mjs → NcSelect-CxHfXvZV.mjs} +5 -5
  501. package/dist/chunks/{NcSelect-CHc1QupB.mjs.map → NcSelect-CxHfXvZV.mjs.map} +1 -1
  502. package/dist/chunks/{NcSelect-BCcSawYf.cjs → NcSelect-DW5W3ZIM.cjs} +5 -5
  503. package/dist/chunks/{NcSelect-BCcSawYf.cjs.map → NcSelect-DW5W3ZIM.cjs.map} +1 -1
  504. package/dist/chunks/{NcSelectTags-Bokig7ar.mjs → NcSelectTags-BWTTPN2O.mjs} +3 -3
  505. package/dist/chunks/{NcSelectTags-Bokig7ar.mjs.map → NcSelectTags-BWTTPN2O.mjs.map} +1 -1
  506. package/dist/chunks/{NcSelectTags-uU_mHbSm.cjs → NcSelectTags-Bk4doVG3.cjs} +3 -3
  507. package/dist/chunks/{NcSelectTags-uU_mHbSm.cjs.map → NcSelectTags-Bk4doVG3.cjs.map} +1 -1
  508. package/dist/chunks/{NcSelectUsers-BB9ZIHeB.cjs → NcSelectUsers-BxmxyFcE.cjs} +5 -5
  509. package/dist/chunks/{NcSelectUsers-BB9ZIHeB.cjs.map → NcSelectUsers-BxmxyFcE.cjs.map} +1 -1
  510. package/dist/chunks/{NcSelectUsers-B4w9UC_d.mjs → NcSelectUsers-D2jOjPs4.mjs} +5 -5
  511. package/dist/chunks/{NcSelectUsers-B4w9UC_d.mjs.map → NcSelectUsers-D2jOjPs4.mjs.map} +1 -1
  512. package/dist/chunks/{NcSettingsInputText-BF5437Q7.cjs → NcSettingsInputText-BAMF6udc.cjs} +3 -3
  513. package/dist/chunks/{NcSettingsInputText-BF5437Q7.cjs.map → NcSettingsInputText-BAMF6udc.cjs.map} +1 -1
  514. package/dist/chunks/{NcSettingsInputText-BwnkZzWL.mjs → NcSettingsInputText-Cc7cCwNm.mjs} +3 -3
  515. package/dist/chunks/{NcSettingsInputText-BwnkZzWL.mjs.map → NcSettingsInputText-Cc7cCwNm.mjs.map} +1 -1
  516. package/dist/chunks/{NcSettingsSection-BrIKMh-B.cjs → NcSettingsSection-D48jcXDL.cjs} +5 -5
  517. package/dist/chunks/{NcSettingsSection-BrIKMh-B.cjs.map → NcSettingsSection-D48jcXDL.cjs.map} +1 -1
  518. package/dist/chunks/{NcSettingsSection-Dz_b9rcq.mjs → NcSettingsSection-D9qxzYDc.mjs} +5 -5
  519. package/dist/chunks/{NcSettingsSection-Dz_b9rcq.mjs.map → NcSettingsSection-D9qxzYDc.mjs.map} +1 -1
  520. package/dist/chunks/{NcSettingsSelectGroup-BtNFBX1V.cjs → NcSettingsSelectGroup-CJGf5mxJ.cjs} +4 -4
  521. package/dist/chunks/{NcSettingsSelectGroup-BtNFBX1V.cjs.map → NcSettingsSelectGroup-CJGf5mxJ.cjs.map} +1 -1
  522. package/dist/chunks/{NcSettingsSelectGroup-BdXf7ytX.mjs → NcSettingsSelectGroup-DzzNyHN_.mjs} +4 -4
  523. package/dist/chunks/{NcSettingsSelectGroup-BdXf7ytX.mjs.map → NcSettingsSelectGroup-DzzNyHN_.mjs.map} +1 -1
  524. package/dist/chunks/{NcTextArea-B9Vn3rQC.cjs → NcTextArea-GxhBi7Z3.cjs} +4 -4
  525. package/dist/chunks/{NcTextArea-B9Vn3rQC.cjs.map → NcTextArea-GxhBi7Z3.cjs.map} +1 -1
  526. package/dist/chunks/{NcTextArea-DPJWqlJb.mjs → NcTextArea-T9totbme.mjs} +4 -4
  527. package/dist/chunks/{NcTextArea-DPJWqlJb.mjs.map → NcTextArea-T9totbme.mjs.map} +1 -1
  528. package/dist/chunks/{NcTextField-Czr9S6YO.mjs → NcTextField-CQp8XS4C.mjs} +4 -4
  529. package/dist/chunks/{NcTextField-Czr9S6YO.mjs.map → NcTextField-CQp8XS4C.mjs.map} +1 -1
  530. package/dist/chunks/{NcTextField-B92lM77I.cjs → NcTextField-DMxdmT5a.cjs} +4 -4
  531. package/dist/chunks/{NcTextField-B92lM77I.cjs.map → NcTextField-DMxdmT5a.cjs.map} +1 -1
  532. package/dist/chunks/{NcTimezonePicker-D2e7hW-Z.cjs → NcTimezonePicker-B0rvWaty.cjs} +4 -4
  533. package/dist/chunks/{NcTimezonePicker-D2e7hW-Z.cjs.map → NcTimezonePicker-B0rvWaty.cjs.map} +1 -1
  534. package/dist/chunks/{NcTimezonePicker-n9kr9A4o.mjs → NcTimezonePicker-BfSjyBxq.mjs} +4 -4
  535. package/dist/chunks/{NcTimezonePicker-n9kr9A4o.mjs.map → NcTimezonePicker-BfSjyBxq.mjs.map} +1 -1
  536. package/dist/chunks/{NcUserBubble-CNQJUk2l.cjs → NcUserBubble-BR5bw7lO.cjs} +3 -3
  537. package/dist/chunks/{NcUserBubble-CNQJUk2l.cjs.map → NcUserBubble-BR5bw7lO.cjs.map} +1 -1
  538. package/dist/chunks/{NcUserBubble-BGfZAi4c.mjs → NcUserBubble-Bd-PEfyK.mjs} +3 -3
  539. package/dist/chunks/{NcUserBubble-BGfZAi4c.mjs.map → NcUserBubble-Bd-PEfyK.mjs.map} +1 -1
  540. package/dist/chunks/{NcUserStatusIcon-BnGtoiCy.cjs → NcUserStatusIcon-BP2cHGxs.cjs} +5 -5
  541. package/dist/chunks/{NcUserStatusIcon-BnGtoiCy.cjs.map → NcUserStatusIcon-BP2cHGxs.cjs.map} +1 -1
  542. package/dist/chunks/{NcUserStatusIcon-DdPPN-cP.mjs → NcUserStatusIcon-gpl3yJFX.mjs} +5 -5
  543. package/dist/chunks/{NcUserStatusIcon-DdPPN-cP.mjs.map → NcUserStatusIcon-gpl3yJFX.mjs.map} +1 -1
  544. package/dist/chunks/{ScopeComponent-77Az-4PS.mjs → ScopeComponent-Df3JYkxQ.mjs} +2 -2
  545. package/dist/chunks/{ScopeComponent-77Az-4PS.mjs.map → ScopeComponent-Df3JYkxQ.mjs.map} +1 -1
  546. package/dist/chunks/{ScopeComponent-BLaRYUFv.cjs → ScopeComponent-O4dfHJkP.cjs} +2 -2
  547. package/dist/chunks/{ScopeComponent-BLaRYUFv.cjs.map → ScopeComponent-O4dfHJkP.cjs.map} +1 -1
  548. package/dist/chunks/{_l10n-skrZri3h.cjs → _l10n-Be-gO5QO.cjs} +56 -54
  549. package/dist/chunks/{_l10n-skrZri3h.cjs.map → _l10n-Be-gO5QO.cjs.map} +1 -1
  550. package/dist/chunks/{_l10n-DVz9Qdzk.mjs → _l10n-CAnZaLWU.mjs} +110 -108
  551. package/dist/chunks/_l10n-CAnZaLWU.mjs.map +1 -0
  552. package/dist/chunks/{autolink-VQMuzjxl.cjs → autolink-BHlqTULT.cjs} +5 -5
  553. package/dist/chunks/{autolink-VQMuzjxl.cjs.map → autolink-BHlqTULT.cjs.map} +1 -1
  554. package/dist/chunks/{autolink-CeB9uxD9.mjs → autolink-COrOqbJu.mjs} +5 -5
  555. package/dist/chunks/{autolink-CeB9uxD9.mjs.map → autolink-COrOqbJu.mjs.map} +1 -1
  556. package/dist/chunks/{colors-Bp0JzIQ4.mjs → colors-B_oqiKWY.mjs} +3 -3
  557. package/dist/chunks/{colors-Bp0JzIQ4.mjs.map → colors-B_oqiKWY.mjs.map} +1 -1
  558. package/dist/chunks/{colors-CyIwf6gH.cjs → colors-DF9O093h.cjs} +3 -3
  559. package/dist/chunks/{colors-CyIwf6gH.cjs.map → colors-DF9O093h.cjs.map} +1 -1
  560. package/dist/chunks/customPickerElements-CYpmyl0b.mjs +61 -0
  561. package/dist/chunks/customPickerElements-CYpmyl0b.mjs.map +1 -0
  562. package/dist/chunks/{customPickerElements-GyIIOHiQ.cjs → customPickerElements-DNevxofg.cjs} +1 -58
  563. package/dist/chunks/customPickerElements-DNevxofg.cjs.map +1 -0
  564. package/dist/chunks/{legacy-Bk0qQxIg.cjs → legacy-BpZw2Eww.cjs} +4 -2
  565. package/dist/chunks/legacy-BpZw2Eww.cjs.map +1 -0
  566. package/dist/chunks/legacy-Cy3dCXuB.mjs +11 -0
  567. package/dist/chunks/legacy-Cy3dCXuB.mjs.map +1 -0
  568. package/dist/chunks/{referencePickerModal-BGYbZYrX.cjs → referencePickerModal-D2nYmN67.cjs} +23 -198
  569. package/dist/chunks/referencePickerModal-D2nYmN67.cjs.map +1 -0
  570. package/dist/chunks/{referencePickerModal-B69WouiU.mjs → referencePickerModal-P_15xB7f.mjs} +24 -199
  571. package/dist/chunks/referencePickerModal-P_15xB7f.mjs.map +1 -0
  572. package/dist/chunks/rtl-DLuwcTlm.cjs +5 -0
  573. package/dist/chunks/rtl-DLuwcTlm.cjs.map +1 -0
  574. package/dist/chunks/rtl-v0UOPAM7.mjs +6 -0
  575. package/dist/chunks/rtl-v0UOPAM7.mjs.map +1 -0
  576. package/dist/chunks/{useCopy-DDDe5RYH.mjs → useCopy-C-jNoLry.mjs} +3 -3
  577. package/dist/chunks/{useCopy-DDDe5RYH.mjs.map → useCopy-C-jNoLry.mjs.map} +1 -1
  578. package/dist/chunks/{useCopy-3m2jDiIN.cjs → useCopy-DXXjl8MD.cjs} +3 -3
  579. package/dist/chunks/{useCopy-3m2jDiIN.cjs.map → useCopy-DXXjl8MD.cjs.map} +1 -1
  580. package/dist/chunks/widgets-DoYhefYe.cjs +65 -0
  581. package/dist/chunks/widgets-DoYhefYe.cjs.map +1 -0
  582. package/dist/chunks/widgets-XxirL-2f.mjs +66 -0
  583. package/dist/chunks/widgets-XxirL-2f.mjs.map +1 -0
  584. package/dist/components/NcProfileHoverCard/index.d.ts +5 -0
  585. package/dist/components/NcProfileHoverCard/profileCache.d.ts +31 -0
  586. package/dist/functions/reference/index.d.ts +6 -3
  587. package/dist/functions/reference/widgets.d.ts +11 -1
  588. package/dist/index.cjs +83 -84
  589. package/dist/index.cjs.map +1 -1
  590. package/dist/index.mjs +85 -86
  591. package/dist/index.mjs.map +1 -1
  592. package/dist/utils/legacy.d.ts +2 -0
  593. package/package.json +18 -18
  594. package/dist/chunks/NcAppContent-0hbQMH35.cjs.map +0 -1
  595. package/dist/chunks/NcAppContent-DAN0qPID.mjs.map +0 -1
  596. package/dist/chunks/NcAppNavigationToggle-CXX1MFrf.mjs.map +0 -1
  597. package/dist/chunks/NcAppNavigationToggle-CkDMk16T.cjs.map +0 -1
  598. package/dist/chunks/NcAppSettingsDialog-Fa5DTfig.cjs.map +0 -1
  599. package/dist/chunks/NcAppSettingsDialog-MxrFh-Ln.mjs.map +0 -1
  600. package/dist/chunks/NcAppSettingsShortcutsSection-DblUBaWP.mjs.map +0 -1
  601. package/dist/chunks/NcAppSettingsShortcutsSection-DgGU8-cF.cjs.map +0 -1
  602. package/dist/chunks/NcAppSidebar-B7GuNZ4C.mjs.map +0 -1
  603. package/dist/chunks/NcAppSidebar-DXEl0_ou.cjs.map +0 -1
  604. package/dist/chunks/NcAvatar-D09ZAgeJ.cjs.map +0 -1
  605. package/dist/chunks/NcAvatar-DkAX4nqq.mjs.map +0 -1
  606. package/dist/chunks/NcButton-ByTFUhwJ.cjs.map +0 -1
  607. package/dist/chunks/NcButton-CCWEL9Ci.mjs.map +0 -1
  608. package/dist/chunks/NcCheckboxRadioSwitch-BQeglWXd.cjs.map +0 -1
  609. package/dist/chunks/NcCheckboxRadioSwitch-D4IV4zWy.mjs.map +0 -1
  610. package/dist/chunks/NcCollectionList-2jk5XCm8.cjs.map +0 -1
  611. package/dist/chunks/NcCollectionList-DOAZ13vO.mjs.map +0 -1
  612. package/dist/chunks/NcFormBoxSwitch-7R8iAj1R.cjs.map +0 -1
  613. package/dist/chunks/NcFormBoxSwitch-DaaMuPnk.mjs.map +0 -1
  614. package/dist/chunks/NcHotkeyList-Co7MBL5U.mjs.map +0 -1
  615. package/dist/chunks/NcHotkeyList-DhFQdopw.cjs.map +0 -1
  616. package/dist/chunks/NcRelatedResourcesPanel-I2ZOB3cx.mjs.map +0 -1
  617. package/dist/chunks/NcRelatedResourcesPanel-l1AlGr83.cjs.map +0 -1
  618. package/dist/chunks/NcRichContenteditable-8ZA_LArB.mjs.map +0 -1
  619. package/dist/chunks/NcRichContenteditable-DZjIiOKo.cjs.map +0 -1
  620. package/dist/chunks/_l10n-DVz9Qdzk.mjs.map +0 -1
  621. package/dist/chunks/customPickerElements-DLFtgReB.mjs +0 -118
  622. package/dist/chunks/customPickerElements-DLFtgReB.mjs.map +0 -1
  623. package/dist/chunks/customPickerElements-GyIIOHiQ.cjs.map +0 -1
  624. package/dist/chunks/legacy-Bk0qQxIg.cjs.map +0 -1
  625. package/dist/chunks/legacy-DV3mGZdh.mjs +0 -9
  626. package/dist/chunks/legacy-DV3mGZdh.mjs.map +0 -1
  627. package/dist/chunks/referencePickerModal-B69WouiU.mjs.map +0 -1
  628. package/dist/chunks/referencePickerModal-BGYbZYrX.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_l10n-CAnZaLWU.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- require('../assets/autolink-KPdaBewQ.css');
1
+ require('../assets/autolink-CEziQYgN.css');
2
2
  "use strict";
3
3
  const router = require("@nextcloud/router");
4
4
  const unistBuilder = require("unist-builder");
@@ -17,10 +17,10 @@ const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
17
17
  return { __sfc: true };
18
18
  }
19
19
  });
20
- const externalLink = "_externalLink_13JXa";
21
- const externalLink_decorated = "_externalLink_decorated_-4s4L";
20
+ const externalLink = "_externalLink_qMkgj";
21
+ const externalLink_decorated = "_externalLink_decorated_Tm8HU";
22
22
  const style0 = {
23
- "material-design-icon": "_material-design-icon_0S7Ib",
23
+ "material-design-icon": "_material-design-icon_08-Q6",
24
24
  externalLink,
25
25
  externalLink_decorated
26
26
  };
@@ -142,4 +142,4 @@ exports.URL_PATTERN = URL_PATTERN;
142
142
  exports.getRoute = getRoute;
143
143
  exports.parseUrl = parseUrl;
144
144
  exports.remarkAutolink = remarkAutolink;
145
- //# sourceMappingURL=autolink-VQMuzjxl.cjs.map
145
+ //# sourceMappingURL=autolink-BHlqTULT.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"autolink-VQMuzjxl.cjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visitParents } from 'unist-util-visit-parents'\nimport NcRichTextExternalLink from './NcRichTextExternalLink.vue'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\n/**\n * Remark plugin for autolink parsing\n *\n * @param {object} root0 - Options\n * @param {boolean} root0.autolink - Whether to enable autolink parsing\n * @param {boolean} root0.useMarkdown - Whether markdown is being used\n * @param {boolean} root0.useExtendedMarkdown - Whether extended markdown is being used\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisitParents(tree, (node) => node.type === 'text', (node, ancestors) => {\n\t\t\t// Do not autolink text already inside a link node\n\t\t\tif (ancestors.some((ancestor) => ancestor.type === 'link' || ancestor.type === 'linkReference')) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst parent = ancestors.at(-1)\n\t\t\tconst index = parent.children.indexOf(node) ?? 0\n\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\n/**\n * Parse URLs in text and create link components\n *\n * @param {string} text - Text to parse\n * @return {Array<string | { component: typeof NcLink, props: { href: string } }>} Array of text parts - plain text and description of the link component to use\n */\nexport function parseUrl(text) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcRichTextExternalLink, props: { href: href.trim(), decorateExternal: true } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param {import('vue-router').default} router - VueRouter instance of the router link\n * @param {string} url - absolute URL to parse\n * @return {string|null} a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router, url) {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath).route\n\n\tif (!route.matched.length) {\n\t\treturn null\n\t}\n\n\treturn route.fullPath\n}\n"],"names":["visitParents","u","SKIP","logger","router","getBaseUrl","getRootUrl"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUY,MAAC,cAAc;AAOpB,MAAM,uBAAuB;ACG7B,SAAS,eAAe,EAAE,UAAU,aAAa,oBAAmB,GAAI;AAC9E,SAAO,SAAS,MAAM;AAGrB,QAAI,uBAAuB,CAAC,eAAe,CAAC,UAAU;AACrD;AAAA,IACD;AAEAA,uCAAa,MAAM,CAAC,SAAS,KAAK,SAAS,QAAQ,CAAC,MAAM,cAAc;AAEvE,UAAI,UAAU,KAAK,CAAC,aAAa,SAAS,SAAS,UAAU,SAAS,SAAS,eAAe,GAAG;AAChG;AAAA,MACD;AAEA,YAAM,SAAS,UAAU,GAAG,EAAE;AAC9B,YAAM,QAAQ,OAAO,SAAS,QAAQ,IAAI,KAAK;AAE/C,UAAI,SAAS,SAAS,KAAK,KAAK;AAChC,eAAS,OAAO,IAAI,CAAC,MAAM;AAC1B,YAAI,OAAO,MAAM,UAAU;AAC1B,iBAAOC,aAAAA,EAAE,QAAQ,CAAC;AAAA,QACnB;AAEA,eAAOA,aAAAA,EAAE,QAAQ;AAAA,UAChB,KAAK,EAAE,MAAM;AAAA,QAClB,GAAO,CAACA,aAAAA,EAAE,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC;AAAA,MAC7B,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;AAElB,aAAO,SAAS,OAAO,OAAO,GAAG,GAAG,OAAO,KAAI,CAAE;AACjD,aAAO,CAACC,sBAAAA,MAAM,QAAQ,OAAO,KAAI,EAAG,MAAM;AAAA,IAC3C,CAAC;AAAA,EACF;AACD;AAQO,SAAS,SAAS,MAAM;AAC9B,MAAI,QAAQ,qBAAqB,KAAK,IAAI;AAC1C,QAAM,OAAO,CAAA;AACb,M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,UAAQ;AACZ,WAAO;AAAA,EACR;AAEA,QAAM,gBAAgB,eAAe,KAAK,GAAG;AAG7C,QAAM,gBAAgB,wBAAwB,KAAK,GAAG;AACtD,MAAI,CAAC,iBAAiB,eAAe;AACpC,WAAO;AAAA,EACR;AAGA,MAAI,iBAAiB,CAAC,IAAI,WAAWC,OAAAA,WAAU,CAAE,GAAG;AACnD,WAAO;AAAA,EACR;AAEA,MAAI,CAAC,iBAAiB,CAAC,IAAI,WAAW,GAAG,GAAG;AAM3C,WAAO;AAAA,EACR;AAGA,QAAM,cAAc,gBAAgB,eAAe,KAAKA,OAAAA,WAAU,GAAI,YAAY,IAAI;AAGtF,QAAM,qBAAqB,eAAeD,SAAO,QAAQ,MAAME,OAAAA,WAAU,GAAI,YAAY;AAGzF,QAAM,sBAAsB,eAAe,aAAa,kBAAkB,KAAK;AAG/E,QAAM,QAAQF,SAAO,QAAQ,mBAAmB,EAAE;AAElD,MAAI,CAAC,MAAM,QAAQ,QAAQ;AAC1B,WAAO;AAAA,EACR;AAEA,SAAO,MAAM;AACd;;;;;;"}
1
+ {"version":3,"file":"autolink-BHlqTULT.cjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visitParents } from 'unist-util-visit-parents'\nimport NcRichTextExternalLink from './NcRichTextExternalLink.vue'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\n/**\n * Remark plugin for autolink parsing\n *\n * @param {object} root0 - Options\n * @param {boolean} root0.autolink - Whether to enable autolink parsing\n * @param {boolean} root0.useMarkdown - Whether markdown is being used\n * @param {boolean} root0.useExtendedMarkdown - Whether extended markdown is being used\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisitParents(tree, (node) => node.type === 'text', (node, ancestors) => {\n\t\t\t// Do not autolink text already inside a link node\n\t\t\tif (ancestors.some((ancestor) => ancestor.type === 'link' || ancestor.type === 'linkReference')) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst parent = ancestors.at(-1)\n\t\t\tconst index = parent.children.indexOf(node) ?? 0\n\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\n/**\n * Parse URLs in text and create link components\n *\n * @param {string} text - Text to parse\n * @return {Array<string | { component: typeof NcLink, props: { href: string } }>} Array of text parts - plain text and description of the link component to use\n */\nexport function parseUrl(text) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcRichTextExternalLink, props: { href: href.trim(), decorateExternal: true } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param {import('vue-router').default} router - VueRouter instance of the router link\n * @param {string} url - absolute URL to parse\n * @return {string|null} a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router, url) {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath).route\n\n\tif (!route.matched.length) {\n\t\treturn null\n\t}\n\n\treturn route.fullPath\n}\n"],"names":["visitParents","u","SKIP","logger","router","getBaseUrl","getRootUrl"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUY,MAAC,cAAc;AAOpB,MAAM,uBAAuB;ACG7B,SAAS,eAAe,EAAE,UAAU,aAAa,oBAAmB,GAAI;AAC9E,SAAO,SAAS,MAAM;AAGrB,QAAI,uBAAuB,CAAC,eAAe,CAAC,UA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AAgB,eAAe,KAAKA,OAAAA,WAAU,GAAI,YAAY,IAAI;AAGtF,QAAM,qBAAqB,eAAeD,SAAO,QAAQ,MAAME,OAAAA,WAAU,GAAI,YAAY;AAGzF,QAAM,sBAAsB,eAAe,aAAa,kBAAkB,KAAK;AAG/E,QAAM,QAAQF,SAAO,QAAQ,mBAAmB,EAAE;AAElD,MAAI,CAAC,MAAM,QAAQ,QAAQ;AAC1B,WAAO;AAAA,EACR;AAEA,SAAO,MAAM;AACd;;;;;;"}
@@ -1,4 +1,4 @@
1
- import '../assets/autolink-KPdaBewQ.css';
1
+ import '../assets/autolink-CEziQYgN.css';
2
2
  import { getBaseUrl, getRootUrl } from "@nextcloud/router";
3
3
  import { u } from "unist-builder";
4
4
  import { visitParents, SKIP } from "unist-util-visit-parents";
@@ -16,10 +16,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  return { __sfc: true };
17
17
  }
18
18
  });
19
- const externalLink = "_externalLink_13JXa";
20
- const externalLink_decorated = "_externalLink_decorated_-4s4L";
19
+ const externalLink = "_externalLink_qMkgj";
20
+ const externalLink_decorated = "_externalLink_decorated_Tm8HU";
21
21
  const style0 = {
22
- "material-design-icon": "_material-design-icon_0S7Ib",
22
+ "material-design-icon": "_material-design-icon_08-Q6",
23
23
  externalLink,
24
24
  externalLink_decorated
25
25
  };
@@ -143,4 +143,4 @@ export {
143
143
  parseUrl as p,
144
144
  remarkAutolink as r
145
145
  };
146
- //# sourceMappingURL=autolink-CeB9uxD9.mjs.map
146
+ //# sourceMappingURL=autolink-COrOqbJu.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"autolink-CeB9uxD9.mjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visitParents } from 'unist-util-visit-parents'\nimport NcRichTextExternalLink from './NcRichTextExternalLink.vue'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\n/**\n * Remark plugin for autolink parsing\n *\n * @param {object} root0 - Options\n * @param {boolean} root0.autolink - Whether to enable autolink parsing\n * @param {boolean} root0.useMarkdown - Whether markdown is being used\n * @param {boolean} root0.useExtendedMarkdown - Whether extended markdown is being used\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisitParents(tree, (node) => node.type === 'text', (node, ancestors) => {\n\t\t\t// Do not autolink text already inside a link node\n\t\t\tif (ancestors.some((ancestor) => ancestor.type === 'link' || ancestor.type === 'linkReference')) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst parent = ancestors.at(-1)\n\t\t\tconst index = parent.children.indexOf(node) ?? 0\n\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\n/**\n * Parse URLs in text and create link components\n *\n * @param {string} text - Text to parse\n * @return {Array<string | { component: typeof NcLink, props: { href: string } }>} Array of text parts - plain text and description of the link component to use\n */\nexport function parseUrl(text) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcRichTextExternalLink, props: { href: href.trim(), decorateExternal: true } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param {import('vue-router').default} router - VueRouter instance of the router link\n * @param {string} url - absolute URL to parse\n * @return {string|null} a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router, url) {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath).route\n\n\tif (!route.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;AACtD,MAAI,CAAC,iBAAiB,eAAe;AACpC,WAAO;AAAA,EACR;AAGA,MAAI,iBAAiB,CAAC,IAAI,WAAW,WAAU,CAAE,GAAG;AACnD,WAAO;AAAA,EACR;AAEA,MAAI,CAAC,iBAAiB,CAAC,IAAI,WAAW,GAAG,GAAG;AAM3C,WAAO;AAAA,EACR;AAGA,QAAM,cAAc,gBAAgB,eAAe,KAAK,WAAU,GAAI,YAAY,IAAI;AAGtF,QAAM,qBAAqB,eAAe,OAAO,QAAQ,MAAM,WAAU,GAAI,YAAY;AAGzF,QAAM,sBAAsB,eAAe,aAAa,kBAAkB,KAAK;AAG/E,QAAM,QAAQ,OAAO,QAAQ,mBAAmB,EAAE;AAElD,MAAI,CAAC,MAAM,QAAQ,QAAQ;AAC1B,WAAO;AAAA,EACR;AAEA,SAAO,MAAM;AACd;"}
1
+ {"version":3,"file":"autolink-COrOqbJu.mjs","sources":["../../src/components/NcRichText/helpers.js","../../src/components/NcRichText/autolink.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Regex pattern to match links to be resolved by the link-reference provider\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN = /(\\s|^)(https?:\\/\\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\\s|$)/ig\n\n/**\n * Regex pattern to identify strings as links and then making them clickable\n *\n * @type {RegExp}\n */\nexport const URL_PATTERN_AUTOLINK = /(\\s|\\(|^)((https?:\\/\\/)([-A-Z0-9+_.]+[-A-Z0-9]+(?::[0-9]+)?(?:\\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*))(?=\\s|\\)|$)/ig\n","/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getBaseUrl, getRootUrl } from '@nextcloud/router'\nimport { u } from 'unist-builder'\nimport { SKIP, visitParents } from 'unist-util-visit-parents'\nimport NcRichTextExternalLink from './NcRichTextExternalLink.vue'\nimport { logger } from '../../utils/logger.ts'\nimport { URL_PATTERN_AUTOLINK } from './helpers.js'\n\n/**\n * Remark plugin for autolink parsing\n *\n * @param {object} root0 - Options\n * @param {boolean} root0.autolink - Whether to enable autolink parsing\n * @param {boolean} root0.useMarkdown - Whether markdown is being used\n * @param {boolean} root0.useExtendedMarkdown - Whether extended markdown is being used\n */\nexport function remarkAutolink({ autolink, useMarkdown, useExtendedMarkdown }) {\n\treturn function(tree) {\n\t\t// remark-gfm has its own autolink parser which can not be disabled\n\t\t// and thus a local one is not needed\n\t\tif (useExtendedMarkdown || !useMarkdown || !autolink) {\n\t\t\treturn\n\t\t}\n\n\t\tvisitParents(tree, (node) => node.type === 'text', (node, ancestors) => {\n\t\t\t// Do not autolink text already inside a link node\n\t\t\tif (ancestors.some((ancestor) => ancestor.type === 'link' || ancestor.type === 'linkReference')) {\n\t\t\t\treturn\n\t\t\t}\n\n\t\t\tconst parent = ancestors.at(-1)\n\t\t\tconst index = parent.children.indexOf(node) ?? 0\n\n\t\t\tlet parsed = parseUrl(node.value)\n\t\t\tparsed = parsed.map((n) => {\n\t\t\t\tif (typeof n === 'string') {\n\t\t\t\t\treturn u('text', n)\n\t\t\t\t}\n\n\t\t\t\treturn u('link', {\n\t\t\t\t\turl: n.props.href,\n\t\t\t\t}, [u('text', n.props.href)])\n\t\t\t}).filter((x) => x)\n\n\t\t\tparent.children.splice(index, 1, ...parsed.flat())\n\t\t\treturn [SKIP, index + parsed.flat().length]\n\t\t})\n\t}\n}\n\n/**\n * Parse URLs in text and create link components\n *\n * @param {string} text - Text to parse\n * @return {Array<string | { component: typeof NcLink, props: { href: string } }>} Array of text parts - plain text and description of the link component to use\n */\nexport function parseUrl(text) {\n\tlet match = URL_PATTERN_AUTOLINK.exec(text)\n\tconst list = []\n\tlet start = 0\n\twhile (match !== null) {\n\t\tlet href = match[2]\n\t\tlet textAfter\n\t\tlet textBefore = text.substring(start, match.index + match[1].length)\n\t\tif (href[0] === ' ') {\n\t\t\ttextBefore += href[0]\n\t\t\thref = href.substring(1).trim()\n\t\t}\n\t\tconst lastChar = href[(href.length - 1)]\n\t\tif (lastChar === '.' || lastChar === ',' || lastChar === ';' || (match[0][0] === '(' && lastChar === ')')) {\n\t\t\thref = href.substring(0, href.length - 1)\n\t\t\ttextAfter = lastChar\n\t\t}\n\t\tlist.push(textBefore)\n\t\tlist.push({ component: NcRichTextExternalLink, props: { href: href.trim(), decorateExternal: true } })\n\t\tif (textAfter) {\n\t\t\tlist.push(textAfter)\n\t\t}\n\t\tstart = match.index + match[0].length\n\t\tmatch = URL_PATTERN_AUTOLINK.exec(text)\n\t}\n\tlist.push(text.substring(start))\n\tconst joinedText = list.map((item) => typeof item === 'string' ? item : item.props.href).join('')\n\tif (text === joinedText) {\n\t\treturn list\n\t}\n\tlogger.error('Failed to reassemble the chunked text: ' + text)\n\treturn text\n}\n\n/**\n * Try to get path for router link from an absolute or relative URL.\n *\n * @param {import('vue-router').default} router - VueRouter instance of the router link\n * @param {string} url - absolute URL to parse\n * @return {string|null} a path that can be used in the router link or null if this URL doesn't match this router config\n * @example http://cloud.ltd/nextcloud/index.php/apps/files/favorites?fileid=2#fragment => /files/favorites?fileid=2#fragment\n */\nexport function getRoute(router, url) {\n\t/**\n\t * http://cloud.ltd /nextcloud /index.php /apps/files /favorites?fileid=2#fragment\n\t * |_____origin____|___________router-base____________| |\n\t * |__________base____________| |______________relative-url______________|\n\t * | |___root___|_optional_|__app-base__|_________router-path_______|\n\t */\n\n\tconst removePrefix = (str, prefix) => str.startsWith(prefix) ? str.slice(prefix.length) : str\n\tconst removePrefixes = (str, ...prefixes) => prefixes.reduce((acc, prefix) => removePrefix(acc, prefix), str)\n\n\t// Router is not defined in the app => not an app route\n\tif (!router) {\n\t\treturn null\n\t}\n\n\tconst isAbsoluteURL = /^https?:\\/\\//.test(url)\n\n\t// URL is a \"mailto:\", \"tel:\" or any custom app protocol link\n\tconst isNonHttpLink = /^[a-z][a-z0-9+.-]*:.+/.test(url)\n\tif (!isAbsoluteURL && isNonHttpLink) {\n\t\treturn null\n\t}\n\n\t// URL is not a link to this Nextcloud server instance => not an app route\n\tif (isAbsoluteURL && !url.startsWith(getBaseUrl())) {\n\t\treturn null\n\t}\n\n\tif (!isAbsoluteURL && !url.startsWith('/')) {\n\t\t// Relative URL without a leading slash are not allowed\n\t\t// VueRouter handles such urls according to the URL RFC,\n\t\t// for example, being on /call/abc page, link \"def\" is resolved as \"/call/def\" relative to \"/call/\".\n\t\t// We don't want to support such links,\n\t\t// so relative URL MUST start with a slash.\n\t\treturn null\n\t}\n\n\t// URL relative to the instance root\n\tconst relativeUrl = isAbsoluteURL ? removePrefixes(url, getBaseUrl(), '/index.php') : url\n\n\t// Router base relative to the instance root (app-base above)\n\tconst relativeRouterBase = removePrefixes(router.history.base, getRootUrl(), '/index.php')\n\n\t// Root route may have an empty '' path, fallback to '/'\n\tconst potentialRouterPath = removePrefixes(relativeUrl, relativeRouterBase) || '/'\n\n\t// Check if there is actually matching route in the router for this path\n\tconst route = router.resolve(potentialRouterPath).route\n\n\tif (!route.matched.length) {\n\t\treturn null\n\t}\n\n\treturn route.fullPath\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUY,MAAC,cAAc;AAOpB,MAAM,uBAAuB;ACG7B,SAAS,eAAe,EAAE,UAAU,aAAa,oBAAmB,GAAI;AAC9E,SAAO,SAAS,MAAM;AAGrB,QAAI,uBAAuB,CAAC,eAAe,CAAC,UAAU;AACrD;AAAA,IACD;AAEA,iBAAa,MAAM,CAAC,SAAS,KAAK,SAAS,QAAQ,CAAC,MAAM,cAAc;AAEvE,UAAI,UAAU,KAAK,CAAC,aAAa,SAAS,SAAS,UAAU,SAAS,SAAS,eAAe,GAAG;AAChG;AAAA,M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,QAAQ,QAAQ;AAC1B,WAAO;AAAA,EACR;AAEA,SAAO,MAAM;AACd;"}
@@ -1,5 +1,5 @@
1
- import { r as register, t as t3, a as t } from "./_l10n-DVz9Qdzk.mjs";
2
- register(t3);
1
+ import { r as register, t as t4, a as t } from "./_l10n-CAnZaLWU.mjs";
2
+ register(t4);
3
3
  class Color {
4
4
  /**
5
5
  * @param r - The red value
@@ -116,4 +116,4 @@ export {
116
116
  defaultPalette as d,
117
117
  generatePalette as g
118
118
  };
119
- //# sourceMappingURL=colors-Bp0JzIQ4.mjs.map
119
+ //# sourceMappingURL=colors-B_oqiKWY.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors-Bp0JzIQ4.mjs","sources":["../../src/utils/colors.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { t } from '../l10n.js'\n\nexport class Color {\n\t/**\n\t * @param r - The red value\n\t * @param g - The green value\n\t * @param b - The blue value\n\t * @param name - The name of the color\n\t */\n\tconstructor(\n\t\tpublic readonly r: number,\n\t\tpublic readonly g: number,\n\t\tpublic readonly b: number,\n\t\tpublic readonly name?: string,\n\t) {\n\t\tthis.r = Math.min(r, 255)\n\t\tthis.g = Math.min(g, 255)\n\t\tthis.b = Math.min(b, 255)\n\t\tthis.name = name\n\t}\n\n\t/**\n\t * The hexadecimal color string.\n\t */\n\tget color(): string {\n\t\tconst toHex = (int: number) => `00${int.toString(16)}`.slice(-2)\n\t\treturn `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`\n\t}\n}\n\n/**\n * Calculate the increment needed to blend color1 into color2 within specified number of steps.\n *\n * @param steps - The number of steps\n * @param color1 - The color to start with\n * @param color2 - The color to end at\n * @return The increment needed per color channel\n */\nfunction calculateStepIncrement(steps: number, color1: Color, color2: Color): { r: number, g: number, b: number } {\n\treturn {\n\t\tr: (color2.r - color1.r) / steps,\n\t\tg: (color2.g - color1.g) / steps,\n\t\tb: (color2.b - color1.b) / steps,\n\t}\n}\n\n/**\n * Create a color palette from two colors\n *\n * @param steps - The number of steps the palette should have\n * @param color1 - The first color to mix\n * @param color2 - The second color to mix\n * @return The created palette array (mixed `color1` and `color2` with `steps` steps)\n */\nfunction mixPalette(steps: number, color1: Color, color2: Color): Color[] {\n\tconst palette: Color[] = []\n\tpalette.push(color1)\n\tconst increment = calculateStepIncrement(steps, color1, color2)\n\tfor (let i = 1; i < steps; i++) {\n\t\tconst r = Math.floor(color1.r + increment.r * i)\n\t\tconst g = Math.floor(color1.g + increment.g * i)\n\t\tconst b = Math.floor(color1.b + increment.b * i)\n\t\tpalette.push(new Color(r, g, b))\n\t}\n\treturn palette\n}\n\n// This are our default base colors we use for mixing palettes\nconst COLOR_RED = new Color(182, 70, 157, t('Purple'))\nconst COLOR_YELLOW = new Color(221, 203, 85, t('Gold'))\nconst COLOR_BLUE = new Color(0, 130, 201, t('Nextcloud blue'))\n// Special \"none\"-colors\nexport const COLOR_BLACK = new Color(0, 0, 0, t('Black'))\nexport const COLOR_WHITE = new Color(255, 255, 255, t('White'))\n\n/**\n * Like GenColor(4) but with labels\n */\nexport const defaultPalette = [\n\tCOLOR_RED,\n\tnew Color(\n\t\t...[191, 103, 139],\n\t\tt('Rosy brown'), // TRANSLATORS: A color name for RGB(191, 103, 139)\n\t),\n\tnew Color(\n\t\t...[201, 136, 121],\n\t\tt('Feldspar'), // TRANSLATORS: A color name for RGB(201, 136, 121)\n\t),\n\tnew Color(\n\t\t...[211, 169, 103],\n\t\tt('Whiskey'), // TRANSLATORS: A color name for RGB(211, 169, 103)\n\t),\n\tCOLOR_YELLOW,\n\tnew Color(\n\t\t...[165, 184, 114],\n\t\tt('Olivine'), // TRANSLATORS: A color name for RGB(165, 184, 114)\n\t),\n\tnew Color(\n\t\t...[110, 166, 143],\n\t\tt('Acapulco'), // TRANSLATORS: A color name for RGB(110, 166, 143)\n\t),\n\tnew Color(\n\t\t...[55, 148, 172],\n\t\tt('Boston Blue'), // TRANSLATORS: A color name for RGB(55, 148, 172)\n\t),\n\tCOLOR_BLUE,\n\tnew Color(\n\t\t...[45, 115, 190],\n\t\tt('Mariner'), // TRANSLATORS: A color name for RGB(45, 115, 190)\n\t),\n\tnew Color(\n\t\t...[91, 100, 179],\n\t\tt('Blue Violet'), // TRANSLATORS: A color name for RGB(91, 100, 179)\n\t),\n\tnew Color(\n\t\t...[136, 85, 168],\n\t\tt('Deluge'), // TRANSLATORS: A color name for RGB(136, 85, 168)\n\t),\n]\n\n/**\n * Generate colors from the official nextcloud color\n * You can provide how many colors you want (multiplied by 3).\n *\n * For example if steps is set to 6, then 3 colors * 6 will result in 18 generated colors.\n *\n * @param steps - Number of steps to go from a color to another\n */\nexport function generatePalette(steps: number): Color[] {\n\tif (steps <= 0) {\n\t\tsteps = 6\n\t}\n\n\tif (steps === 4) {\n\t\treturn [...defaultPalette]\n\t}\n\n\tconst palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW)\n\tconst palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE)\n\tconst palette3 = mixPalette(steps, COLOR_BLUE, COLOR_RED)\n\n\treturn palette1.concat(palette2).concat(palette3)\n}\n"],"names":[],"mappings":";;AAOO,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlB,YACiB,GACA,GACA,GACA,MACf;AAJe,SAAA,IAAA;AACA,SAAA,IAAA;AACA,SAAA,IAAA;AACA,SAAA,OAAA;AAEhB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,OAAO;AAAA,EACb;AAAA,EATiB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAWjB,IAAI,QAAgB;AACnB,UAAM,QAAQ,CAAC,QAAgB,KAAK,IAAI,SA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IACjB,EAAE,YAAY;AAAA;AAAA,EAAA;AAAA,EAEf,IAAI;AAAA,IACH,GAAG,CAAC,KAAK,KAAK,GAAG;AAAA,IACjB,EAAE,UAAU;AAAA;AAAA,EAAA;AAAA,EAEb,IAAI;AAAA,IACH,GAAG,CAAC,KAAK,KAAK,GAAG;AAAA,IACjB,EAAE,SAAS;AAAA;AAAA,EAAA;AAAA,EAEZ;AAAA,EACA,IAAI;AAAA,IACH,GAAG,CAAC,KAAK,KAAK,GAAG;AAAA,IACjB,EAAE,SAAS;AAAA;AAAA,EAAA;AAAA,EAEZ,IAAI;AAAA,IACH,GAAG,CAAC,KAAK,KAAK,GAAG;AAAA,IACjB,EAAE,UAAU;AAAA;AAAA,EAAA;AAAA,EAEb,IAAI;AAAA,IACH,GAAG,CAAC,IAAI,KAAK,GAAG;AAAA,IAChB,EAAE,aAAa;AAAA;AAAA,EAAA;AAAA,EAEhB;AAAA,EACA,IAAI;AAAA,IACH,GAAG,CAAC,IAAI,KAAK,GAAG;AAAA,IAChB,EAAE,SAAS;AAAA;AAAA,EAAA;AAAA,EAEZ,IAAI;AAAA,IACH,GAAG,CAAC,IAAI,KAAK,GAAG;AAAA,IAChB,EAAE,aAAa;AAAA;AAAA,EAAA;AAAA,EAEhB,IAAI;AAAA,IACH,GAAG,CAAC,KAAK,IAAI,GAAG;AAAA,IAChB,EAAE,QAAQ;AAAA;AAAA,EAAA;AAEZ;AAUO,SAAS,gBAAgB,OAAwB;AASvD,QAAM,WAAW,WAAW,OAAO,WAAW,YAAY;AAC1D,QAAM,WAAW,WAAW,OAAO,cAAc,UAAU;AAC3D,QAAM,WAAW,WAAW,OAAO,YAAY,SAAS;AAExD,SAAO,SAAS,OAAO,QAAQ,EAAE,OAAO,QAAQ;AACjD;"}
1
+ {"version":3,"file":"colors-B_oqiKWY.mjs","sources":["../../src/utils/colors.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { t } from '../l10n.js'\n\nexport class Color {\n\t/**\n\t * @param r - The red value\n\t * @param g - The green value\n\t * @param b - The blue value\n\t * @param name - The name of the color\n\t */\n\tconstructor(\n\t\tpublic readonly r: number,\n\t\tpublic readonly g: number,\n\t\tpublic readonly b: number,\n\t\tpublic readonly name?: string,\n\t) {\n\t\tthis.r = Math.min(r, 255)\n\t\tthis.g = Math.min(g, 255)\n\t\tthis.b = Math.min(b, 255)\n\t\tthis.name = name\n\t}\n\n\t/**\n\t * The hexadecimal color string.\n\t */\n\tget color(): string {\n\t\tconst toHex = (int: number) => `00${int.toString(16)}`.slice(-2)\n\t\treturn `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`\n\t}\n}\n\n/**\n * Calculate the increment needed to blend color1 into color2 within specified number of steps.\n *\n * @param steps - The number of steps\n * @param color1 - The color to start with\n * @param color2 - The color to end at\n * @return The increment needed per color channel\n */\nfunction calculateStepIncrement(steps: number, color1: Color, color2: Color): { r: number, g: number, b: number } {\n\treturn {\n\t\tr: (color2.r - color1.r) / steps,\n\t\tg: (color2.g - color1.g) / steps,\n\t\tb: (color2.b - color1.b) / steps,\n\t}\n}\n\n/**\n * Create a color palette from two colors\n *\n * @param steps - The number of steps the palette should have\n * @param color1 - The first color to mix\n * @param color2 - The second color to mix\n * @return The created palette array (mixed `color1` and `color2` with `steps` steps)\n */\nfunction mixPalette(steps: number, color1: Color, color2: Color): Color[] {\n\tconst palette: Color[] = []\n\tpalette.push(color1)\n\tconst increment = calculateStepIncrement(steps, color1, color2)\n\tfor (let i = 1; i < steps; i++) {\n\t\tconst r = Math.floor(color1.r + increment.r * i)\n\t\tconst g = Math.floor(color1.g + increment.g * i)\n\t\tconst b = Math.floor(color1.b + increment.b * i)\n\t\tpalette.push(new Color(r, g, b))\n\t}\n\treturn palette\n}\n\n// This are our default base colors we use for mixing palettes\nconst COLOR_RED = new Color(182, 70, 157, t('Purple'))\nconst COLOR_YELLOW = new Color(221, 203, 85, t('Gold'))\nconst COLOR_BLUE = new Color(0, 130, 201, t('Nextcloud blue'))\n// Special \"none\"-colors\nexport const COLOR_BLACK = new Color(0, 0, 0, t('Black'))\nexport const COLOR_WHITE = new Color(255, 255, 255, t('White'))\n\n/**\n * Like GenColor(4) but with labels\n */\nexport const defaultPalette = [\n\tCOLOR_RED,\n\tnew Color(\n\t\t...[191, 103, 139],\n\t\tt('Rosy brown'), // TRANSLATORS: A color name for RGB(191, 103, 139)\n\t),\n\tnew Color(\n\t\t...[201, 136, 121],\n\t\tt('Feldspar'), // TRANSLATORS: A color name for RGB(201, 136, 121)\n\t),\n\tnew Color(\n\t\t...[211, 169, 103],\n\t\tt('Whiskey'), // TRANSLATORS: A color name for RGB(211, 169, 103)\n\t),\n\tCOLOR_YELLOW,\n\tnew Color(\n\t\t...[165, 184, 114],\n\t\tt('Olivine'), // TRANSLATORS: A color name for RGB(165, 184, 114)\n\t),\n\tnew Color(\n\t\t...[110, 166, 143],\n\t\tt('Acapulco'), // TRANSLATORS: A color name for RGB(110, 166, 143)\n\t),\n\tnew Color(\n\t\t...[55, 148, 172],\n\t\tt('Boston Blue'), // TRANSLATORS: A color name for RGB(55, 148, 172)\n\t),\n\tCOLOR_BLUE,\n\tnew Color(\n\t\t...[45, 115, 190],\n\t\tt('Mariner'), // TRANSLATORS: A color name for RGB(45, 115, 190)\n\t),\n\tnew Color(\n\t\t...[91, 100, 179],\n\t\tt('Blue Violet'), // TRANSLATORS: A color name for RGB(91, 100, 179)\n\t),\n\tnew Color(\n\t\t...[136, 85, 168],\n\t\tt('Deluge'), // TRANSLATORS: A color name for RGB(136, 85, 168)\n\t),\n]\n\n/**\n * Generate colors from the official nextcloud color\n * You can provide how many colors you want (multiplied by 3).\n *\n * For example if steps is set to 6, then 3 colors * 6 will result in 18 generated colors.\n *\n * @param steps - Number of steps to go from a color to another\n */\nexport function generatePalette(steps: number): Color[] {\n\tif (steps <= 0) {\n\t\tsteps = 6\n\t}\n\n\tif (steps === 4) {\n\t\treturn [...defaultPalette]\n\t}\n\n\tconst palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW)\n\tconst palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE)\n\tconst palette3 = mixPalette(steps, COLOR_BLUE, COLOR_RED)\n\n\treturn palette1.concat(palette2).concat(palette3)\n}\n"],"names":[],"mappings":";;AAOO,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlB,YACiB,GACA,GACA,GACA,MACf;AAJe,SAAA,IAAA;AACA,SAAA,IAAA;AACA,SAAA,IAAA;AACA,SAAA,OAAA;AAEhB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,OAAO;AAAA,EACb;AAAA,EATiB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAWjB,IAAI,QAAgB;AACnB,UAAM,QAAQ,CAAC,QAAgB,KAAK,IAAI,SAAS,EAAE,CAAC,GAAG,MAAM,EAAE;AAC/D,WAAO,IAAI,MAAM,KAAK,CAAC,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC,GAAG,MAAM,KAAK,CAAC,CAAC;AAAA,EACzD;AACD;AAUA,SAAS,uBAAuB,OAAe,QAAe,QAAoD;AACjH,SAAO;AAAA,IACN,IAAI,OAAO,IAAI,OAAO,KAAK;AAAA,IAC3B,IAAI,OAAO,IAAI,OAAO,KAAK;AAAA,IAC3B,IAAI,OAAO,IAAI,OAAO,KAAK;AAAA,EAAA;AAE7B;AAUA,SAAS,WAAW,OAAe,QAAe,QAAwB;AACzE,QAAM,UAAmB,CAAA;AACzB,UAAQ,KAAK,MAAM;AACnB,QAAM,YAAY,uBAAuB,OAAO,QAAQ,MAAM;AAC9D,WAAS,IAAI,GAAG,IAAI,OAAO,KAAK;AAC/B,UAAM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;AAAA,EAAA;AAAA,EAEhB;AAAA,EACA,IAAI;AAAA,IACH,GAAG,CAAC,IAAI,KAAK,GAAG;AAAA,IAChB,EAAE,SAAS;AAAA;AAAA,EAAA;AAAA,EAEZ,IAAI;AAAA,IACH,GAAG,CAAC,IAAI,KAAK,GAAG;AAAA,IAChB,EAAE,aAAa;AAAA;AAAA,EAAA;AAAA,EAEhB,IAAI;AAAA,IACH,GAAG,CAAC,KAAK,IAAI,GAAG;AAAA,IAChB,EAAE,QAAQ;AAAA;AAAA,EAAA;AAEZ;AAUO,SAAS,gBAAgB,OAAwB;AASvD,QAAM,WAAW,WAAW,OAAO,WAAW,YAAY;AAC1D,QAAM,WAAW,WAAW,OAAO,cAAc,UAAU;AAC3D,QAAM,WAAW,WAAW,OAAO,YAAY,SAAS;AAExD,SAAO,SAAS,OAAO,QAAQ,EAAE,OAAO,QAAQ;AACjD;"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const _l10n = require("./_l10n-skrZri3h.cjs");
3
- _l10n.register(_l10n.t3);
2
+ const _l10n = require("./_l10n-Be-gO5QO.cjs");
3
+ _l10n.register(_l10n.t4);
4
4
  class Color {
5
5
  /**
6
6
  * @param r - The red value
@@ -115,4 +115,4 @@ exports.COLOR_WHITE = COLOR_WHITE;
115
115
  exports.Color = Color;
116
116
  exports.defaultPalette = defaultPalette;
117
117
  exports.generatePalette = generatePalette;
118
- //# sourceMappingURL=colors-CyIwf6gH.cjs.map
118
+ //# sourceMappingURL=colors-DF9O093h.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors-CyIwf6gH.cjs","sources":["../../src/utils/colors.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { t } from '../l10n.js'\n\nexport class Color {\n\t/**\n\t * @param r - The red value\n\t * @param g - The green value\n\t * @param b - The blue value\n\t * @param name - The name of the color\n\t */\n\tconstructor(\n\t\tpublic readonly r: number,\n\t\tpublic readonly g: number,\n\t\tpublic readonly b: number,\n\t\tpublic readonly name?: string,\n\t) {\n\t\tthis.r = Math.min(r, 255)\n\t\tthis.g = Math.min(g, 255)\n\t\tthis.b = Math.min(b, 255)\n\t\tthis.name = name\n\t}\n\n\t/**\n\t * The hexadecimal color string.\n\t */\n\tget color(): string {\n\t\tconst toHex = (int: number) => `00${int.toString(16)}`.slice(-2)\n\t\treturn `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`\n\t}\n}\n\n/**\n * Calculate the increment needed to blend color1 into color2 within specified number of steps.\n *\n * @param steps - The number of steps\n * @param color1 - The color to start with\n * @param color2 - The color to end at\n * @return The increment needed per color channel\n */\nfunction calculateStepIncrement(steps: number, color1: Color, color2: Color): { r: number, g: number, b: number } {\n\treturn {\n\t\tr: (color2.r - color1.r) / steps,\n\t\tg: (color2.g - color1.g) / steps,\n\t\tb: (color2.b - color1.b) / steps,\n\t}\n}\n\n/**\n * Create a color palette from two colors\n *\n * @param steps - The number of steps the palette should have\n * @param color1 - The first color to mix\n * @param color2 - The second color to mix\n * @return The created palette array (mixed `color1` and `color2` with `steps` steps)\n */\nfunction mixPalette(steps: number, color1: Color, color2: Color): Color[] {\n\tconst palette: Color[] = []\n\tpalette.push(color1)\n\tconst increment = calculateStepIncrement(steps, color1, color2)\n\tfor (let i = 1; i < steps; i++) {\n\t\tconst r = Math.floor(color1.r + increment.r * i)\n\t\tconst g = Math.floor(color1.g + increment.g * i)\n\t\tconst b = Math.floor(color1.b + increment.b * i)\n\t\tpalette.push(new Color(r, g, b))\n\t}\n\treturn palette\n}\n\n// This are our default base colors we use for mixing palettes\nconst COLOR_RED = new Color(182, 70, 157, t('Purple'))\nconst COLOR_YELLOW = new Color(221, 203, 85, t('Gold'))\nconst COLOR_BLUE = new Color(0, 130, 201, t('Nextcloud blue'))\n// Special \"none\"-colors\nexport const COLOR_BLACK = new Color(0, 0, 0, t('Black'))\nexport const COLOR_WHITE = new Color(255, 255, 255, t('White'))\n\n/**\n * Like GenColor(4) but with labels\n */\nexport const defaultPalette = [\n\tCOLOR_RED,\n\tnew Color(\n\t\t...[191, 103, 139],\n\t\tt('Rosy brown'), // TRANSLATORS: A color name for RGB(191, 103, 139)\n\t),\n\tnew Color(\n\t\t...[201, 136, 121],\n\t\tt('Feldspar'), // TRANSLATORS: A color name for RGB(201, 136, 121)\n\t),\n\tnew Color(\n\t\t...[211, 169, 103],\n\t\tt('Whiskey'), // TRANSLATORS: A color name for RGB(211, 169, 103)\n\t),\n\tCOLOR_YELLOW,\n\tnew Color(\n\t\t...[165, 184, 114],\n\t\tt('Olivine'), // TRANSLATORS: A color name for RGB(165, 184, 114)\n\t),\n\tnew Color(\n\t\t...[110, 166, 143],\n\t\tt('Acapulco'), // TRANSLATORS: A color name for RGB(110, 166, 143)\n\t),\n\tnew Color(\n\t\t...[55, 148, 172],\n\t\tt('Boston Blue'), // TRANSLATORS: A color name for RGB(55, 148, 172)\n\t),\n\tCOLOR_BLUE,\n\tnew Color(\n\t\t...[45, 115, 190],\n\t\tt('Mariner'), // TRANSLATORS: A color name for RGB(45, 115, 190)\n\t),\n\tnew Color(\n\t\t...[91, 100, 179],\n\t\tt('Blue Violet'), // TRANSLATORS: A color name for RGB(91, 100, 179)\n\t),\n\tnew Color(\n\t\t...[136, 85, 168],\n\t\tt('Deluge'), // TRANSLATORS: A color name for RGB(136, 85, 168)\n\t),\n]\n\n/**\n * Generate colors from the official nextcloud color\n * You can provide how many colors you want (multiplied by 3).\n *\n * For example if steps is set to 6, then 3 colors * 6 will result in 18 generated colors.\n *\n * @param steps - Number of steps to go from a color to another\n */\nexport function generatePalette(steps: number): Color[] {\n\tif (steps <= 0) {\n\t\tsteps = 6\n\t}\n\n\tif (steps === 4) {\n\t\treturn [...defaultPalette]\n\t}\n\n\tconst palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW)\n\tconst palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE)\n\t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AA,IACH,GAAG,CAAC,IAAI,KAAK,GAAG;AAAA,IAChBA,MAAAA,EAAE,SAAS;AAAA;AAAA,EAAA;AAAA,EAEZ,IAAI;AAAA,IACH,GAAG,CAAC,IAAI,KAAK,GAAG;AAAA,IAChBA,MAAAA,EAAE,aAAa;AAAA;AAAA,EAAA;AAAA,EAEhB,IAAI;AAAA,IACH,GAAG,CAAC,KAAK,IAAI,GAAG;AAAA,IAChBA,MAAAA,EAAE,QAAQ;AAAA;AAAA,EAAA;AAEZ;AAUO,SAAS,gBAAgB,OAAwB;AASvD,QAAM,WAAW,WAAW,OAAO,WAAW,YAAY;AAC1D,QAAM,WAAW,WAAW,OAAO,cAAc,UAAU;AAC3D,QAAM,WAAW,WAAW,OAAO,YAAY,SAAS;AAExD,SAAO,SAAS,OAAO,QAAQ,EAAE,OAAO,QAAQ;AACjD;;;;;;"}
1
+ {"version":3,"file":"colors-DF9O093h.cjs","sources":["../../src/utils/colors.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { t } from '../l10n.js'\n\nexport class Color {\n\t/**\n\t * @param r - The red value\n\t * @param g - The green value\n\t * @param b - The blue value\n\t * @param name - The name of the color\n\t */\n\tconstructor(\n\t\tpublic readonly r: number,\n\t\tpublic readonly g: number,\n\t\tpublic readonly b: number,\n\t\tpublic readonly name?: string,\n\t) {\n\t\tthis.r = Math.min(r, 255)\n\t\tthis.g = Math.min(g, 255)\n\t\tthis.b = Math.min(b, 255)\n\t\tthis.name = name\n\t}\n\n\t/**\n\t * The hexadecimal color string.\n\t */\n\tget color(): string {\n\t\tconst toHex = (int: number) => `00${int.toString(16)}`.slice(-2)\n\t\treturn `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`\n\t}\n}\n\n/**\n * Calculate the increment needed to blend color1 into color2 within specified number of steps.\n *\n * @param steps - The number of steps\n * @param color1 - The color to start with\n * @param color2 - The color to end at\n * @return The increment needed per color channel\n */\nfunction calculateStepIncrement(steps: number, color1: Color, color2: Color): { r: number, g: number, b: number } {\n\treturn {\n\t\tr: (color2.r - color1.r) / steps,\n\t\tg: (color2.g - color1.g) / steps,\n\t\tb: (color2.b - color1.b) / steps,\n\t}\n}\n\n/**\n * Create a color palette from two colors\n *\n * @param steps - The number of steps the palette should have\n * @param color1 - The first color to mix\n * @param color2 - The second color to mix\n * @return The created palette array (mixed `color1` and `color2` with `steps` steps)\n */\nfunction mixPalette(steps: number, color1: Color, color2: Color): Color[] {\n\tconst palette: Color[] = []\n\tpalette.push(color1)\n\tconst increment = calculateStepIncrement(steps, color1, color2)\n\tfor (let i = 1; i < steps; i++) {\n\t\tconst r = Math.floor(color1.r + increment.r * i)\n\t\tconst g = Math.floor(color1.g + increment.g * i)\n\t\tconst b = Math.floor(color1.b + increment.b * i)\n\t\tpalette.push(new Color(r, g, b))\n\t}\n\treturn palette\n}\n\n// This are our default base colors we use for mixing palettes\nconst COLOR_RED = new Color(182, 70, 157, t('Purple'))\nconst COLOR_YELLOW = new Color(221, 203, 85, t('Gold'))\nconst COLOR_BLUE = new Color(0, 130, 201, t('Nextcloud blue'))\n// Special \"none\"-colors\nexport const COLOR_BLACK = new Color(0, 0, 0, t('Black'))\nexport const COLOR_WHITE = new Color(255, 255, 255, t('White'))\n\n/**\n * Like GenColor(4) but with labels\n */\nexport const defaultPalette = [\n\tCOLOR_RED,\n\tnew Color(\n\t\t...[191, 103, 139],\n\t\tt('Rosy brown'), // TRANSLATORS: A color name for RGB(191, 103, 139)\n\t),\n\tnew Color(\n\t\t...[201, 136, 121],\n\t\tt('Feldspar'), // TRANSLATORS: A color name for RGB(201, 136, 121)\n\t),\n\tnew Color(\n\t\t...[211, 169, 103],\n\t\tt('Whiskey'), // TRANSLATORS: A color name for RGB(211, 169, 103)\n\t),\n\tCOLOR_YELLOW,\n\tnew Color(\n\t\t...[165, 184, 114],\n\t\tt('Olivine'), // TRANSLATORS: A color name for RGB(165, 184, 114)\n\t),\n\tnew Color(\n\t\t...[110, 166, 143],\n\t\tt('Acapulco'), // TRANSLATORS: A color name for RGB(110, 166, 143)\n\t),\n\tnew Color(\n\t\t...[55, 148, 172],\n\t\tt('Boston Blue'), // TRANSLATORS: A color name for RGB(55, 148, 172)\n\t),\n\tCOLOR_BLUE,\n\tnew Color(\n\t\t...[45, 115, 190],\n\t\tt('Mariner'), // TRANSLATORS: A color name for RGB(45, 115, 190)\n\t),\n\tnew Color(\n\t\t...[91, 100, 179],\n\t\tt('Blue Violet'), // TRANSLATORS: A color name for RGB(91, 100, 179)\n\t),\n\tnew Color(\n\t\t...[136, 85, 168],\n\t\tt('Deluge'), // TRANSLATORS: A color name for RGB(136, 85, 168)\n\t),\n]\n\n/**\n * Generate colors from the official nextcloud color\n * You can provide how many colors you want (multiplied by 3).\n *\n * For example if steps is set to 6, then 3 colors * 6 will result in 18 generated colors.\n *\n * @param steps - Number of steps to go from a color to another\n */\nexport function generatePalette(steps: number): Color[] {\n\tif (steps <= 0) {\n\t\tsteps = 6\n\t}\n\n\tif (steps === 4) {\n\t\treturn [...defaultPalette]\n\t}\n\n\tconst palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW)\n\tconst palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE)\n\tconst palette3 = mixPalette(steps, COLOR_BLUE, COLOR_RED)\n\n\treturn palette1.concat(palette2).concat(palette3)\n}\n"],"names":["t"],"mappings":";;;AAOO,MAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlB,YACiB,GACA,GACA,GACA,MACf;AAJe,SAAA,IAAA;AACA,SAAA,IAAA;AACA,SAAA,IAAA;AACA,SAAA,OAAA;AAEhB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,IAAI,KAAK,IAAI,GAAG,GAAG;AACxB,SAAK,OAAO;AAAA,EACb;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AO,cAAc,UAAU;AAC3D,QAAM,WAAW,WAAW,OAAO,YAAY,SAAS;AAExD,SAAO,SAAS,OAAO,QAAQ,EAAE,OAAO,QAAQ;AACjD;;;;;;"}
@@ -0,0 +1,61 @@
1
+ import { l as logger } from "./logger-D3RVzcfQ.mjs";
2
+ window._vue_richtext_custom_picker_elements ??= {};
3
+ window._registerCustomPickerElement ??= registerCustomPickerElement;
4
+ class NcCustomPickerRenderResult {
5
+ element;
6
+ object;
7
+ /**
8
+ * @param element - The HTML element
9
+ * @param object - The object
10
+ */
11
+ constructor(element, object) {
12
+ this.element = element;
13
+ this.object = object;
14
+ }
15
+ }
16
+ function isCustomPickerElementRegistered(id) {
17
+ return !!window._vue_richtext_custom_picker_elements[id];
18
+ }
19
+ function getCustomPickerElementSize(id) {
20
+ const size = window._vue_richtext_custom_picker_elements[id]?.size;
21
+ if (["small", "normal", "large", "full"].includes(size)) {
22
+ return size;
23
+ }
24
+ return null;
25
+ }
26
+ function registerCustomPickerElement(id, callback, onDestroy = () => {
27
+ }, size = "large") {
28
+ if (window._vue_richtext_custom_picker_elements[id]) {
29
+ logger.error(`Custom reference picker element for id ${id} already registered`);
30
+ return;
31
+ }
32
+ window._vue_richtext_custom_picker_elements[id] = {
33
+ id,
34
+ callback,
35
+ onDestroy,
36
+ size
37
+ };
38
+ }
39
+ function renderCustomPickerElement(el, options) {
40
+ const { providerId, accessible } = options;
41
+ if (!window._vue_richtext_custom_picker_elements[providerId]) {
42
+ logger.error(`Custom reference picker element for reference provider ID ${providerId} not registered`);
43
+ return;
44
+ }
45
+ return window._vue_richtext_custom_picker_elements[providerId].callback(el, { providerId, accessible });
46
+ }
47
+ function destroyCustomPickerElement(providerId, el, renderResult) {
48
+ if (!window._vue_richtext_custom_picker_elements[providerId]) {
49
+ return;
50
+ }
51
+ window._vue_richtext_custom_picker_elements[providerId].onDestroy(el, renderResult);
52
+ }
53
+ export {
54
+ NcCustomPickerRenderResult as N,
55
+ renderCustomPickerElement as a,
56
+ destroyCustomPickerElement as d,
57
+ getCustomPickerElementSize as g,
58
+ isCustomPickerElementRegistered as i,
59
+ registerCustomPickerElement as r
60
+ };
61
+ //# sourceMappingURL=customPickerElements-CYpmyl0b.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customPickerElements-CYpmyl0b.mjs","sources":["../../src/functions/reference/customPickerElements.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { logger } from '../../utils/logger.ts'\n\nwindow._vue_richtext_custom_picker_elements ??= {}\nwindow._registerCustomPickerElement ??= registerCustomPickerElement\n\n/**\n * Representation of the render callback result\n * It contains a dom element and an object (Vue instance or other fancy things)\n */\nexport class NcCustomPickerRenderResult {\n\tpublic element: HTMLElement\n\tpublic object: object\n\n\t/**\n\t * @param element - The HTML element\n\t * @param object - The object\n\t */\n\tconstructor(element: HTMLElement, object: object) {\n\t\tthis.element = element\n\t\tthis.object = object\n\t}\n}\n\ninterface CustomPickerElementProps {\n\tproviderId: number\n\taccessible: boolean\n}\n\ntype CustomPickerElementRegistrationCallback = (el: HTMLElement, options: CustomPickerElementProps) => void\ntype CustomPickerElementDestroyCallback = (el: HTMLElement, result: NcCustomPickerRenderResult) => void\n\nexport interface CustomPickerElement {\n\tid: string\n\tsize: 'small' | 'normal' | 'large' | 'full'\n\n\tcallback: CustomPickerElementRegistrationCallback\n\tonDestroy: CustomPickerElementDestroyCallback\n}\n\n/**\n * @param id - Id of the element to check\n */\nexport function isCustomPickerElementRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_custom_picker_elements[id]\n}\n\n/**\n * @param id - Id of the element to get\n */\nexport function getCustomPickerElementSize(id: string): 'small' | 'normal' | 'large' | 'full' | null {\n\tconst size = window._vue_richtext_custom_picker_elements[id]?.size\n\tif (['small', 'normal', 'large', 'full'].includes(size)) {\n\t\treturn size\n\t}\n\treturn null\n}\n\n/**\n * @param id - Id of element to register\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param size - Size of the element\n */\nexport function registerCustomPickerElement(\n\tid: string,\n\tcallback: CustomPickerElementRegistrationCallback,\n\tonDestroy: CustomPickerElementDestroyCallback = () => {},\n\tsize: CustomPickerElement['size'] = 'large',\n) {\n\tif (window._vue_richtext_custom_picker_elements[id]) {\n\t\tlogger.error(`Custom reference picker element for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\tsize,\n\t}\n}\n\n/**\n * @param el - element to render to\n * @param options - Element options\n */\nexport function renderCustomPickerElement(el: HTMLElement, options: CustomPickerElementProps) {\n\tconst { providerId, accessible } = options\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\tlogger.error(`Custom reference picker element for reference provider ID ${providerId} not registered`)\n\t\treturn\n\t}\n\n\treturn window._vue_richtext_custom_picker_elements[providerId]\n\t\t.callback(el, { providerId, accessible })\n}\n\n/**\n * @param providerId - Provider id of element to destroy\n * @param el - The element to destroy element from\n * @param renderResult - The render result\n */\nexport function destroyCustomPickerElement(providerId: string, el: HTMLElement, renderResult: NcCustomPickerRenderResult) {\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[providerId]\n\t\t.onDestroy(el, renderResult)\n}\n"],"names":[],"mappings":";AAOA,OAAO,yCAAyC,CAAA;AAChD,OAAO,iCAAiC;AAMjC,MAAM,2BAA2B;AAAA,EAChC;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMP,YAAY,SAAsB,QAAgB;AACjD,SAAK,UAAU;AACf,SAAK,SAAS;AAAA,EACf;AACD;AAqBO,SAAS,gCAAgC,IAAqB;AACpE,SAAO,CAAC,CAAC,OAAO,qCAAqC,EAAE;AACxD;AAKO,SAAS,2BAA2B,IAA0D;AACpG,QAAM,OAAO,OAAO,qCAAqC,EAAE,GAAG;AAC9D,MAAI,CAAC,SAAS,UAAU,SAAS,MAAM,EAAE,SAAS,IAAI,GAAG;AACxD,WAAO;AAAA,EACR;AACA,SAAO;AACR;AAQO,SAAS,4BACf,IACA,UACA,YAAgD,MAAM;AAAC,GACvD,OAAoC,SACnC;AACD,MAAI,OAAO,qCAAqC,EAAE,GAAG;AACpD,WAAO,MAAM,0CAA0C,EAAE,qBAAqB;AAC9E;AAAA,EACD;AAEA,SAAO,qCAAqC,EAAE,IAAI;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF;AAMO,SAAS,0BAA0B,IAAiB,SAAmC;AAC7F,QAAM,EAAE,YAAY,WAAA,IAAe;AACnC,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D,WAAO,MAAM,6DAA6D,UAAU,iBAAiB;AACrG;AAAA,EACD;AAEA,SAAO,OAAO,qCAAqC,UAAU,EAC3D,SAAS,IAAI,EAAE,YAAY,YAAY;AAC1C;AAOO,SAAS,2BAA2B,YAAoB,IAAiB,cAA0C;AACzH,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D;AAAA,EACD;AAEA,SAAO,qCAAqC,UAAU,EACpD,UAAU,IAAI,YAAY;AAC7B;"}
@@ -1,56 +1,5 @@
1
1
  "use strict";
2
2
  const logger = require("./logger-3HuiEIF6.cjs");
3
- window._vue_richtext_widgets ??= {};
4
- window._registerWidget ??= (id, callback, onDestroy, props) => {
5
- registerWidget(id, callback, onDestroy, props);
6
- };
7
- function registerWidget(id, callback, onDestroy = () => {
8
- }, props) {
9
- const propsWithDefaults = {
10
- hasInteractiveView: true,
11
- fullWidth: false,
12
- ...props
13
- };
14
- if (window._vue_richtext_widgets[id]) {
15
- logger.logger.error(`[ReferencePicker]: Widget for id ${id} already registered`);
16
- return;
17
- }
18
- window._vue_richtext_widgets[id] = {
19
- id,
20
- callback,
21
- onDestroy,
22
- ...propsWithDefaults
23
- };
24
- }
25
- function renderWidget(el, options) {
26
- const { richObjectType, richObject, accessible, interactive } = options;
27
- if (richObjectType === "open-graph") {
28
- return;
29
- }
30
- if (!window._vue_richtext_widgets[richObjectType]) {
31
- logger.logger.error("Widget for rich object type " + richObjectType + " not registered");
32
- return;
33
- }
34
- window._vue_richtext_widgets[richObjectType].callback(el, { richObjectType, richObject, accessible, interactive });
35
- }
36
- function destroyWidget(richObjectType, el) {
37
- if (richObjectType === "open-graph") {
38
- return;
39
- }
40
- if (!window._vue_richtext_widgets[richObjectType]) {
41
- return;
42
- }
43
- window._vue_richtext_widgets[richObjectType].onDestroy(el);
44
- }
45
- function isWidgetRegistered(id) {
46
- return !!window._vue_richtext_widgets[id];
47
- }
48
- function hasInteractiveView(id) {
49
- return !!window._vue_richtext_widgets[id]?.hasInteractiveView;
50
- }
51
- function hasFullWidth(id) {
52
- return !!window._vue_richtext_widgets[id]?.fullWidth;
53
- }
54
3
  window._vue_richtext_custom_picker_elements ??= {};
55
4
  window._registerCustomPickerElement ??= registerCustomPickerElement;
56
5
  class NcCustomPickerRenderResult {
@@ -104,14 +53,8 @@ function destroyCustomPickerElement(providerId, el, renderResult) {
104
53
  }
105
54
  exports.NcCustomPickerRenderResult = NcCustomPickerRenderResult;
106
55
  exports.destroyCustomPickerElement = destroyCustomPickerElement;
107
- exports.destroyWidget = destroyWidget;
108
56
  exports.getCustomPickerElementSize = getCustomPickerElementSize;
109
- exports.hasFullWidth = hasFullWidth;
110
- exports.hasInteractiveView = hasInteractiveView;
111
57
  exports.isCustomPickerElementRegistered = isCustomPickerElementRegistered;
112
- exports.isWidgetRegistered = isWidgetRegistered;
113
58
  exports.registerCustomPickerElement = registerCustomPickerElement;
114
- exports.registerWidget = registerWidget;
115
59
  exports.renderCustomPickerElement = renderCustomPickerElement;
116
- exports.renderWidget = renderWidget;
117
- //# sourceMappingURL=customPickerElements-GyIIOHiQ.cjs.map
60
+ //# sourceMappingURL=customPickerElements-DNevxofg.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customPickerElements-DNevxofg.cjs","sources":["../../src/functions/reference/customPickerElements.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { logger } from '../../utils/logger.ts'\n\nwindow._vue_richtext_custom_picker_elements ??= {}\nwindow._registerCustomPickerElement ??= registerCustomPickerElement\n\n/**\n * Representation of the render callback result\n * It contains a dom element and an object (Vue instance or other fancy things)\n */\nexport class NcCustomPickerRenderResult {\n\tpublic element: HTMLElement\n\tpublic object: object\n\n\t/**\n\t * @param element - The HTML element\n\t * @param object - The object\n\t */\n\tconstructor(element: HTMLElement, object: object) {\n\t\tthis.element = element\n\t\tthis.object = object\n\t}\n}\n\ninterface CustomPickerElementProps {\n\tproviderId: number\n\taccessible: boolean\n}\n\ntype CustomPickerElementRegistrationCallback = (el: HTMLElement, options: CustomPickerElementProps) => void\ntype CustomPickerElementDestroyCallback = (el: HTMLElement, result: NcCustomPickerRenderResult) => void\n\nexport interface CustomPickerElement {\n\tid: string\n\tsize: 'small' | 'normal' | 'large' | 'full'\n\n\tcallback: CustomPickerElementRegistrationCallback\n\tonDestroy: CustomPickerElementDestroyCallback\n}\n\n/**\n * @param id - Id of the element to check\n */\nexport function isCustomPickerElementRegistered(id: string): boolean {\n\treturn !!window._vue_richtext_custom_picker_elements[id]\n}\n\n/**\n * @param id - Id of the element to get\n */\nexport function getCustomPickerElementSize(id: string): 'small' | 'normal' | 'large' | 'full' | null {\n\tconst size = window._vue_richtext_custom_picker_elements[id]?.size\n\tif (['small', 'normal', 'large', 'full'].includes(size)) {\n\t\treturn size\n\t}\n\treturn null\n}\n\n/**\n * @param id - Id of element to register\n * @param callback - Render callback\n * @param onDestroy - Cleanup callback\n * @param size - Size of the element\n */\nexport function registerCustomPickerElement(\n\tid: string,\n\tcallback: CustomPickerElementRegistrationCallback,\n\tonDestroy: CustomPickerElementDestroyCallback = () => {},\n\tsize: CustomPickerElement['size'] = 'large',\n) {\n\tif (window._vue_richtext_custom_picker_elements[id]) {\n\t\tlogger.error(`Custom reference picker element for id ${id} already registered`)\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[id] = {\n\t\tid,\n\t\tcallback,\n\t\tonDestroy,\n\t\tsize,\n\t}\n}\n\n/**\n * @param el - element to render to\n * @param options - Element options\n */\nexport function renderCustomPickerElement(el: HTMLElement, options: CustomPickerElementProps) {\n\tconst { providerId, accessible } = options\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\tlogger.error(`Custom reference picker element for reference provider ID ${providerId} not registered`)\n\t\treturn\n\t}\n\n\treturn window._vue_richtext_custom_picker_elements[providerId]\n\t\t.callback(el, { providerId, accessible })\n}\n\n/**\n * @param providerId - Provider id of element to destroy\n * @param el - The element to destroy element from\n * @param renderResult - The render result\n */\nexport function destroyCustomPickerElement(providerId: string, el: HTMLElement, renderResult: NcCustomPickerRenderResult) {\n\tif (!window._vue_richtext_custom_picker_elements[providerId]) {\n\t\treturn\n\t}\n\n\twindow._vue_richtext_custom_picker_elements[providerId]\n\t\t.onDestroy(el, renderResult)\n}\n"],"names":["logger"],"mappings":";;AAOA,OAAO,yCAAyC,CAAA;AAChD,OAAO,iCAAiC;AAMjC,MAAM,2BAA2B;AAAA,EAChC;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMP,YAAY,SAAsB,QAAgB;AACjD,SAAK,UAAU;AACf,SAAK,SAAS;AAAA,EACf;AACD;AAqBO,SAAS,gCAAgC,IAAqB;AACpE,SAAO,CAAC,CAAC,OAAO,qCAAqC,EAAE;AACxD;AAKO,SAAS,2BAA2B,IAA0D;AACpG,QAAM,OAAO,OAAO,qCAAqC,EAAE,GAAG;AAC9D,MAAI,CAAC,SAAS,UAAU,SAAS,MAAM,EAAE,SAAS,IAAI,GAAG;AACxD,WAAO;AAAA,EACR;AACA,SAAO;AACR;AAQO,SAAS,4BACf,IACA,UACA,YAAgD,MAAM;AAAC,GACvD,OAAoC,SACnC;AACD,MAAI,OAAO,qCAAqC,EAAE,GAAG;AACpDA,WAAAA,OAAO,MAAM,0CAA0C,EAAE,qBAAqB;AAC9E;AAAA,EACD;AAEA,SAAO,qCAAqC,EAAE,IAAI;AAAA,IACjD;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEF;AAMO,SAAS,0BAA0B,IAAiB,SAAmC;AAC7F,QAAM,EAAE,YAAY,WAAA,IAAe;AACnC,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7DA,WAAAA,OAAO,MAAM,6DAA6D,UAAU,iBAAiB;AACrG;AAAA,EACD;AAEA,SAAO,OAAO,qCAAqC,UAAU,EAC3D,SAAS,IAAI,EAAE,YAAY,YAAY;AAC1C;AAOO,SAAS,2BAA2B,YAAoB,IAAiB,cAA0C;AACzH,MAAI,CAAC,OAAO,qCAAqC,UAAU,GAAG;AAC7D;AAAA,EACD;AAEA,SAAO,qCAAqC,UAAU,EACpD,UAAU,IAAI,YAAY;AAC7B;;;;;;;"}
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
- const version = window.OC?.config?.version?.split(".")[0] || "34";
2
+ const version = window.OC?.config?.version?.split(".")[0] || "35";
3
3
  const major = Number.parseInt(version);
4
4
  const isLegacy32 = major < 32;
5
5
  const isLegacy34 = major < 34;
6
+ const isLegacy35 = major < 35;
6
7
  exports.isLegacy32 = isLegacy32;
7
8
  exports.isLegacy34 = isLegacy34;
8
- //# sourceMappingURL=legacy-Bk0qQxIg.cjs.map
9
+ exports.isLegacy35 = isLegacy35;
10
+ //# sourceMappingURL=legacy-BpZw2Eww.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-BpZw2Eww.cjs","sources":["../../src/utils/legacy.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nconst version = window.OC?.config?.version?.split('.')[0] || '35'\nconst major = Number.parseInt(version)\nexport const isLegacy32 = major < 32\nexport const isLegacy34 = major < 34\n/** Nextcloud 32–34: keep pre–profile-hovercard avatar contacts menu. */\nexport const isLegacy35 = major < 35\n"],"names":[],"mappings":";AAKA,MAAM,UAAU,OAAO,IAAI,QAAQ,SAAS,MAAM,GAAG,EAAE,CAAC,KAAK;AAC7D,MAAM,QAAQ,OAAO,SAAS,OAAO;AAC9B,MAAM,aAAa,QAAQ;AAC3B,MAAM,aAAa,QAAQ;AAE3B,MAAM,aAAa,QAAQ;;;;"}
@@ -0,0 +1,11 @@
1
+ const version = window.OC?.config?.version?.split(".")[0] || "35";
2
+ const major = Number.parseInt(version);
3
+ const isLegacy32 = major < 32;
4
+ const isLegacy34 = major < 34;
5
+ const isLegacy35 = major < 35;
6
+ export {
7
+ isLegacy32 as a,
8
+ isLegacy35 as b,
9
+ isLegacy34 as i
10
+ };
11
+ //# sourceMappingURL=legacy-Cy3dCXuB.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-Cy3dCXuB.mjs","sources":["../../src/utils/legacy.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nconst version = window.OC?.config?.version?.split('.')[0] || '35'\nconst major = Number.parseInt(version)\nexport const isLegacy32 = major < 32\nexport const isLegacy34 = major < 34\n/** Nextcloud 32–34: keep pre–profile-hovercard avatar contacts menu. */\nexport const isLegacy35 = major < 35\n"],"names":[],"mappings":"AAKA,MAAM,UAAU,OAAO,IAAI,QAAQ,SAAS,MAAM,GAAG,EAAE,CAAC,KAAK;AAC7D,MAAM,QAAQ,OAAO,SAAS,OAAO;AAC9B,MAAM,aAAa,QAAQ;AAC3B,MAAM,aAAa,QAAQ;AAE3B,MAAM,aAAa,QAAQ;"}