@nextcloud/vue 8.0.0-beta.8 → 8.0.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 (322) hide show
  1. package/CHANGELOG.md +64 -2
  2. package/dist/Components/NcActionButton.cjs +22 -11
  3. package/dist/Components/NcActionButton.cjs.map +1 -1
  4. package/dist/Components/NcActionButton.mjs +24 -12
  5. package/dist/Components/NcActionButton.mjs.map +1 -1
  6. package/dist/Components/NcActionInput.cjs +23 -18
  7. package/dist/Components/NcActionInput.cjs.map +1 -1
  8. package/dist/Components/NcActionInput.mjs +20 -14
  9. package/dist/Components/NcActionInput.mjs.map +1 -1
  10. package/dist/Components/NcActionLink.cjs +7 -7
  11. package/dist/Components/NcActionLink.cjs.map +1 -1
  12. package/dist/Components/NcActionLink.mjs +4 -4
  13. package/dist/Components/NcActionLink.mjs.map +1 -1
  14. package/dist/Components/NcActionRouter.cjs +8 -8
  15. package/dist/Components/NcActionRouter.cjs.map +1 -1
  16. package/dist/Components/NcActionRouter.mjs +4 -4
  17. package/dist/Components/NcActionRouter.mjs.map +1 -1
  18. package/dist/Components/NcActionText.cjs +10 -10
  19. package/dist/Components/NcActionText.cjs.map +1 -1
  20. package/dist/Components/NcActionText.mjs +11 -11
  21. package/dist/Components/NcActionText.mjs.map +1 -1
  22. package/dist/Components/NcActionTextEditable.cjs +10 -10
  23. package/dist/Components/NcActionTextEditable.cjs.map +1 -1
  24. package/dist/Components/NcActionTextEditable.mjs +2 -2
  25. package/dist/Components/NcActions.cjs +64 -57
  26. package/dist/Components/NcActions.cjs.map +1 -1
  27. package/dist/Components/NcActions.mjs +76 -69
  28. package/dist/Components/NcActions.mjs.map +1 -1
  29. package/dist/Components/NcAppContent.cjs +19 -20
  30. package/dist/Components/NcAppContent.cjs.map +1 -1
  31. package/dist/Components/NcAppContent.mjs +8 -8
  32. package/dist/Components/NcAppContent.mjs.map +1 -1
  33. package/dist/Components/NcAppNavigation.cjs +58 -27
  34. package/dist/Components/NcAppNavigation.cjs.map +1 -1
  35. package/dist/Components/NcAppNavigation.mjs +67 -34
  36. package/dist/Components/NcAppNavigation.mjs.map +1 -1
  37. package/dist/Components/NcAppNavigationItem.cjs +167 -63
  38. package/dist/Components/NcAppNavigationItem.cjs.map +1 -1
  39. package/dist/Components/NcAppNavigationItem.mjs +142 -40
  40. package/dist/Components/NcAppNavigationItem.mjs.map +1 -1
  41. package/dist/Components/NcAppNavigationNew.cjs +6 -6
  42. package/dist/Components/NcAppNavigationNew.cjs.map +1 -1
  43. package/dist/Components/NcAppNavigationNew.mjs +17 -17
  44. package/dist/Components/NcAppNavigationNew.mjs.map +1 -1
  45. package/dist/Components/NcAppNavigationNewItem.cjs +7 -7
  46. package/dist/Components/NcAppNavigationNewItem.cjs.map +1 -1
  47. package/dist/Components/NcAppNavigationNewItem.mjs +5 -5
  48. package/dist/Components/NcAppNavigationNewItem.mjs.map +1 -1
  49. package/dist/Components/NcAppNavigationSettings.cjs +46 -14
  50. package/dist/Components/NcAppNavigationSettings.cjs.map +1 -1
  51. package/dist/Components/NcAppNavigationSettings.mjs +48 -16
  52. package/dist/Components/NcAppNavigationSettings.mjs.map +1 -1
  53. package/dist/Components/NcAppNavigationToggle.cjs +1 -1
  54. package/dist/Components/NcAppNavigationToggle.mjs +1 -1
  55. package/dist/Components/NcAppSettingsDialog.cjs +87 -117
  56. package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
  57. package/dist/Components/NcAppSettingsDialog.mjs +95 -124
  58. package/dist/Components/NcAppSettingsDialog.mjs.map +1 -1
  59. package/dist/Components/NcAppSettingsSection.cjs +29 -10
  60. package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
  61. package/dist/Components/NcAppSettingsSection.mjs +29 -10
  62. package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
  63. package/dist/Components/NcAppSidebar.cjs +100 -34
  64. package/dist/Components/NcAppSidebar.cjs.map +1 -1
  65. package/dist/Components/NcAppSidebar.mjs +157 -93
  66. package/dist/Components/NcAppSidebar.mjs.map +1 -1
  67. package/dist/Components/NcAppSidebarTab.cjs +7 -7
  68. package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
  69. package/dist/Components/NcAppSidebarTab.mjs +4 -4
  70. package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
  71. package/dist/Components/NcAvatar.cjs +1 -1
  72. package/dist/Components/NcAvatar.mjs +1 -1
  73. package/dist/Components/NcBreadcrumb.cjs +10 -10
  74. package/dist/Components/NcBreadcrumb.cjs.map +1 -1
  75. package/dist/Components/NcBreadcrumb.mjs +1 -1
  76. package/dist/Components/NcBreadcrumbs.cjs +86 -54
  77. package/dist/Components/NcBreadcrumbs.cjs.map +1 -1
  78. package/dist/Components/NcBreadcrumbs.mjs +93 -62
  79. package/dist/Components/NcBreadcrumbs.mjs.map +1 -1
  80. package/dist/Components/NcButton.cjs +25 -25
  81. package/dist/Components/NcButton.cjs.map +1 -1
  82. package/dist/Components/NcButton.mjs +25 -25
  83. package/dist/Components/NcButton.mjs.map +1 -1
  84. package/dist/Components/NcCheckboxRadioSwitch.cjs +400 -54
  85. package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
  86. package/dist/Components/NcCheckboxRadioSwitch.mjs +398 -58
  87. package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
  88. package/dist/Components/NcColorPicker.cjs +18 -18
  89. package/dist/Components/NcColorPicker.cjs.map +1 -1
  90. package/dist/Components/NcColorPicker.mjs +17 -17
  91. package/dist/Components/NcColorPicker.mjs.map +1 -1
  92. package/dist/Components/NcDashboardWidget.cjs +30 -30
  93. package/dist/Components/NcDashboardWidget.cjs.map +1 -1
  94. package/dist/Components/NcDashboardWidget.mjs +3 -3
  95. package/dist/Components/NcDashboardWidgetItem.cjs +11 -11
  96. package/dist/Components/NcDashboardWidgetItem.cjs.map +1 -1
  97. package/dist/Components/NcDashboardWidgetItem.mjs +9 -9
  98. package/dist/Components/NcDashboardWidgetItem.mjs.map +1 -1
  99. package/dist/Components/NcDateTime.cjs +1 -1
  100. package/dist/Components/NcDateTime.mjs +1 -1
  101. package/dist/Components/NcDateTimePicker.cjs +109 -44
  102. package/dist/Components/NcDateTimePicker.cjs.map +1 -1
  103. package/dist/Components/NcDateTimePicker.mjs +115 -52
  104. package/dist/Components/NcDateTimePicker.mjs.map +1 -1
  105. package/dist/Components/NcDateTimePickerNative.cjs +1 -1
  106. package/dist/Components/NcDateTimePickerNative.mjs +1 -1
  107. package/dist/Components/NcDialog.cjs +171 -0
  108. package/dist/Components/NcDialog.cjs.map +1 -0
  109. package/dist/Components/NcDialog.mjs +177 -0
  110. package/dist/Components/NcDialog.mjs.map +1 -0
  111. package/dist/Components/NcDialogButton.cjs +69 -0
  112. package/dist/Components/NcDialogButton.cjs.map +1 -0
  113. package/dist/Components/NcDialogButton.mjs +74 -0
  114. package/dist/Components/NcDialogButton.mjs.map +1 -0
  115. package/dist/Components/NcEmojiPicker.cjs +1 -1
  116. package/dist/Components/NcEmojiPicker.mjs +1 -1
  117. package/dist/Components/NcEmptyContent.cjs +14 -14
  118. package/dist/Components/NcEmptyContent.cjs.map +1 -1
  119. package/dist/Components/NcEmptyContent.mjs +7 -7
  120. package/dist/Components/NcEmptyContent.mjs.map +1 -1
  121. package/dist/Components/NcIconSvgWrapper.cjs +29 -14
  122. package/dist/Components/NcIconSvgWrapper.cjs.map +1 -1
  123. package/dist/Components/NcIconSvgWrapper.mjs +32 -17
  124. package/dist/Components/NcIconSvgWrapper.mjs.map +1 -1
  125. package/dist/Components/NcInputField.cjs +16 -16
  126. package/dist/Components/NcInputField.cjs.map +1 -1
  127. package/dist/Components/NcInputField.mjs +5 -5
  128. package/dist/Components/NcInputField.mjs.map +1 -1
  129. package/dist/Components/NcListItem.cjs +3 -3
  130. package/dist/Components/NcListItem.cjs.map +1 -1
  131. package/dist/Components/NcListItem.mjs +3 -3
  132. package/dist/Components/NcListItem.mjs.map +1 -1
  133. package/dist/Components/NcListItemIcon.cjs +20 -12
  134. package/dist/Components/NcListItemIcon.cjs.map +1 -1
  135. package/dist/Components/NcListItemIcon.mjs +21 -13
  136. package/dist/Components/NcListItemIcon.mjs.map +1 -1
  137. package/dist/Components/NcModal.cjs +167 -72
  138. package/dist/Components/NcModal.cjs.map +1 -1
  139. package/dist/Components/NcModal.mjs +171 -79
  140. package/dist/Components/NcModal.mjs.map +1 -1
  141. package/dist/Components/NcNoteCard.cjs +147 -19
  142. package/dist/Components/NcNoteCard.cjs.map +1 -1
  143. package/dist/Components/NcNoteCard.mjs +148 -23
  144. package/dist/Components/NcNoteCard.mjs.map +1 -1
  145. package/dist/Components/NcPasswordField.cjs +114 -39
  146. package/dist/Components/NcPasswordField.cjs.map +1 -1
  147. package/dist/Components/NcPasswordField.mjs +125 -52
  148. package/dist/Components/NcPasswordField.mjs.map +1 -1
  149. package/dist/Components/NcRelatedResourcesPanel.cjs +70 -37
  150. package/dist/Components/NcRelatedResourcesPanel.cjs.map +1 -1
  151. package/dist/Components/NcRelatedResourcesPanel.mjs +60 -27
  152. package/dist/Components/NcRelatedResourcesPanel.mjs.map +1 -1
  153. package/dist/Components/NcRichContenteditable.cjs +22 -18
  154. package/dist/Components/NcRichContenteditable.cjs.map +1 -1
  155. package/dist/Components/NcRichContenteditable.mjs +32 -28
  156. package/dist/Components/NcRichContenteditable.mjs.map +1 -1
  157. package/dist/Components/NcRichText.cjs +1 -1
  158. package/dist/Components/NcRichText.mjs +3 -3
  159. package/dist/Components/NcSelect.cjs +82 -54
  160. package/dist/Components/NcSelect.cjs.map +1 -1
  161. package/dist/Components/NcSelect.mjs +77 -47
  162. package/dist/Components/NcSelect.mjs.map +1 -1
  163. package/dist/Components/NcSelectTags.cjs +2 -2
  164. package/dist/Components/NcSelectTags.cjs.map +1 -1
  165. package/dist/Components/NcSelectTags.mjs +4 -4
  166. package/dist/Components/NcSelectTags.mjs.map +1 -1
  167. package/dist/Components/NcSettingsInputText.cjs +1 -1
  168. package/dist/Components/NcSettingsInputText.mjs +1 -1
  169. package/dist/Components/NcSettingsSection.cjs +46 -14
  170. package/dist/Components/NcSettingsSection.cjs.map +1 -1
  171. package/dist/Components/NcSettingsSection.mjs +44 -12
  172. package/dist/Components/NcSettingsSection.mjs.map +1 -1
  173. package/dist/Components/NcSettingsSelectGroup.cjs +1 -1
  174. package/dist/Components/NcSettingsSelectGroup.mjs +1 -1
  175. package/dist/Components/NcTextArea.cjs +167 -0
  176. package/dist/Components/NcTextArea.cjs.map +1 -0
  177. package/dist/Components/NcTextArea.mjs +172 -0
  178. package/dist/Components/NcTextArea.mjs.map +1 -0
  179. package/dist/Components/NcTextField.cjs +79 -23
  180. package/dist/Components/NcTextField.cjs.map +1 -1
  181. package/dist/Components/NcTextField.mjs +82 -27
  182. package/dist/Components/NcTextField.mjs.map +1 -1
  183. package/dist/Components/NcTimezonePicker.cjs +26 -19
  184. package/dist/Components/NcTimezonePicker.cjs.map +1 -1
  185. package/dist/Components/NcTimezonePicker.mjs +31 -23
  186. package/dist/Components/NcTimezonePicker.mjs.map +1 -1
  187. package/dist/Components/NcUserBubble.cjs +24 -20
  188. package/dist/Components/NcUserBubble.cjs.map +1 -1
  189. package/dist/Components/NcUserBubble.mjs +25 -20
  190. package/dist/Components/NcUserBubble.mjs.map +1 -1
  191. package/dist/assets/{NcAppNavigationToggle-2cc5b864.css → NcAppNavigationToggle-9e170630.css} +3 -2
  192. package/dist/assets/{NcInputConfirmCancel-2ba60a52.css → NcInputConfirmCancel-45d1d76b.css} +7 -7
  193. package/dist/assets/{index-5072b6ee.css → index-05760fea.css} +16 -11
  194. package/dist/assets/{index-30e099f7.css → index-0ac09203.css} +3 -3
  195. package/dist/assets/{index-0ab8e182.css → index-0e9b11c7.css} +27 -22
  196. package/dist/assets/{index-1151d229.css → index-1f25a3c0.css} +3 -3
  197. package/dist/assets/{index-5eff69c7.css → index-2e5e3b55.css} +32 -30
  198. package/dist/assets/{index-03ec5f40.css → index-400b48a6.css} +7 -7
  199. package/dist/assets/{index-ed4adf1d.css → index-4271da53.css} +18 -17
  200. package/dist/assets/{index-33da80f0.css → index-4611417f.css} +8 -9
  201. package/dist/assets/{index-01e5adf4.css → index-55600948.css} +11 -11
  202. package/dist/assets/{index-c7905a53.css → index-57b305d3.css} +3 -3
  203. package/dist/assets/{index-de0326c7.css → index-5ee8a575.css} +69 -78
  204. package/dist/assets/index-6899d75b.css +150 -0
  205. package/dist/assets/{index-9354264c.css → index-6f721577.css} +16 -16
  206. package/dist/assets/{index-1beccc92.css → index-750c02cc.css} +28 -10
  207. package/dist/assets/{index-0557f12a.css → index-77a548be.css} +4 -4
  208. package/dist/assets/{index-fbdeb5ab.css → index-7d211db9.css} +11 -11
  209. package/dist/assets/{index-becfbea7.css → index-802d2118.css} +28 -23
  210. package/dist/assets/{index-a2d55f92.css → index-9176105d.css} +41 -41
  211. package/dist/assets/index-93bc89ef.css +197 -0
  212. package/dist/assets/{index-50b0766d.css → index-a0532427.css} +55 -70
  213. package/dist/assets/{index-6405cd50.css → index-ab715d82.css} +4 -4
  214. package/dist/assets/index-abb90c97.css +164 -0
  215. package/dist/assets/{index-23e64bbb.css → index-c221fe05.css} +9 -9
  216. package/dist/assets/{index-c6f0da2e.css → index-c239a2fc.css} +14 -8
  217. package/dist/assets/{index-fec4bb7b.css → index-d3702c91.css} +22 -17
  218. package/dist/assets/{index-194e9415.css → index-d5716ef0.css} +74 -59
  219. package/dist/assets/{index-4a775ba1.css → index-d812ed9e.css} +43 -43
  220. package/dist/assets/{index-793eae6b.css → index-d9ae9479.css} +6 -6
  221. package/dist/assets/{index-1cf8eeb4.css → index-db5a8b1c.css} +26 -33
  222. package/dist/assets/index-dc612aa3.css +112 -0
  223. package/dist/assets/{index-294382c8.css → index-e1a7aa6f.css} +43 -38
  224. package/dist/assets/{index-376d2dec.css → index-e7c55791.css} +67 -67
  225. package/dist/assets/{index-165fce0e.css → index-e7eadba7.css} +13 -13
  226. package/dist/assets/{index-0adc989c.css → index-ebbb7829.css} +9 -13
  227. package/dist/assets/{referencePickerModal-0acecb5e.css → referencePickerModal-3a127978.css} +55 -55
  228. package/dist/chunks/AlertCircleOutline-7085c10f.cjs +35 -0
  229. package/dist/chunks/AlertCircleOutline-7085c10f.cjs.map +1 -0
  230. package/dist/chunks/AlertCircleOutline-b73838e0.mjs +37 -0
  231. package/dist/chunks/AlertCircleOutline-b73838e0.mjs.map +1 -0
  232. package/dist/chunks/ArrowLeft-2f9b9323.cjs +35 -0
  233. package/dist/chunks/ArrowLeft-2f9b9323.cjs.map +1 -0
  234. package/dist/chunks/ArrowLeft-3779ba88.mjs +37 -0
  235. package/dist/chunks/ArrowLeft-3779ba88.mjs.map +1 -0
  236. package/dist/chunks/ArrowRight-7315f6c1.cjs +35 -0
  237. package/dist/chunks/ArrowRight-7315f6c1.cjs.map +1 -0
  238. package/dist/chunks/ArrowRight-74a9fcb2.mjs +37 -0
  239. package/dist/chunks/ArrowRight-74a9fcb2.mjs.map +1 -0
  240. package/dist/chunks/Check-2ea0a88a.mjs +37 -0
  241. package/dist/chunks/Check-2ea0a88a.mjs.map +1 -0
  242. package/dist/chunks/Check-be8cd6af.cjs +35 -0
  243. package/dist/chunks/Check-be8cd6af.cjs.map +1 -0
  244. package/dist/chunks/ChevronDown-a72d365d.mjs +37 -0
  245. package/dist/chunks/ChevronDown-a72d365d.mjs.map +1 -0
  246. package/dist/chunks/ChevronDown-dc32e51d.cjs +35 -0
  247. package/dist/chunks/ChevronDown-dc32e51d.cjs.map +1 -0
  248. package/dist/chunks/ChevronRight-1a6a6cf2.mjs +37 -0
  249. package/dist/chunks/ChevronRight-1a6a6cf2.mjs.map +1 -0
  250. package/dist/chunks/ChevronRight-a4c1e0d3.cjs +35 -0
  251. package/dist/chunks/ChevronRight-a4c1e0d3.cjs.map +1 -0
  252. package/dist/chunks/Close-271f72e2.mjs +37 -0
  253. package/dist/chunks/Close-271f72e2.mjs.map +1 -0
  254. package/dist/chunks/Close-98cb6f12.cjs +35 -0
  255. package/dist/chunks/Close-98cb6f12.cjs.map +1 -0
  256. package/dist/chunks/DotsHorizontal-0ee7d901.mjs +37 -0
  257. package/dist/chunks/DotsHorizontal-0ee7d901.mjs.map +1 -0
  258. package/dist/chunks/DotsHorizontal-ac96129a.cjs +35 -0
  259. package/dist/chunks/DotsHorizontal-ac96129a.cjs.map +1 -0
  260. package/dist/chunks/NcAppNavigationToggle-364eb664.cjs +113 -0
  261. package/dist/chunks/NcAppNavigationToggle-364eb664.cjs.map +1 -0
  262. package/dist/chunks/NcAppNavigationToggle-cd2ef112.mjs +118 -0
  263. package/dist/chunks/NcAppNavigationToggle-cd2ef112.mjs.map +1 -0
  264. package/dist/chunks/{NcInputConfirmCancel-f881168d.mjs → NcInputConfirmCancel-304f0b74.mjs} +22 -15
  265. package/dist/chunks/NcInputConfirmCancel-304f0b74.mjs.map +1 -0
  266. package/dist/chunks/NcInputConfirmCancel-c873bb9b.cjs +90 -0
  267. package/dist/chunks/NcInputConfirmCancel-c873bb9b.cjs.map +1 -0
  268. package/dist/chunks/{NcRichText-1c3d2654.mjs → NcRichText-25edeb8e.mjs} +9 -9
  269. package/dist/chunks/{NcRichText-d385dc10.cjs.map → NcRichText-25edeb8e.mjs.map} +1 -1
  270. package/dist/chunks/{NcRichText-d385dc10.cjs → NcRichText-dcb4fb97.cjs} +2 -2
  271. package/dist/chunks/{NcRichText-1c3d2654.mjs.map → NcRichText-dcb4fb97.cjs.map} +1 -1
  272. package/dist/chunks/{NcSettingsSelectGroup-47d9c113.cjs → NcSettingsSelectGroup-d639533d.cjs} +1 -1
  273. package/dist/chunks/{NcSettingsSelectGroup-47d9c113.cjs.map → NcSettingsSelectGroup-d639533d.cjs.map} +1 -1
  274. package/dist/chunks/{NcSettingsSelectGroup-0f4a0f94.mjs → NcSettingsSelectGroup-fd91d31a.mjs} +2 -2
  275. package/dist/chunks/{NcSettingsSelectGroup-0f4a0f94.mjs.map → NcSettingsSelectGroup-fd91d31a.mjs.map} +1 -1
  276. package/dist/chunks/{ScopeComponent-97a014a1.mjs → ScopeComponent-5b9e60d8.mjs} +3 -3
  277. package/dist/chunks/{ScopeComponent-97a014a1.mjs.map → ScopeComponent-5b9e60d8.mjs.map} +1 -1
  278. package/dist/chunks/{ScopeComponent-1c75ec38.cjs → ScopeComponent-dfa5ec75.cjs} +1 -1
  279. package/dist/chunks/{ScopeComponent-1c75ec38.cjs.map → ScopeComponent-dfa5ec75.cjs.map} +1 -1
  280. package/dist/chunks/{actionText-b0bd6eb7.cjs → actionText-54bc24a6.cjs} +1 -1
  281. package/dist/chunks/{actionText-9f5c55bd.mjs.map → actionText-54bc24a6.cjs.map} +1 -1
  282. package/dist/chunks/{actionText-9f5c55bd.mjs → actionText-a64be267.mjs} +1 -1
  283. package/dist/chunks/{actionText-b0bd6eb7.cjs.map → actionText-a64be267.mjs.map} +1 -1
  284. package/dist/chunks/{index-2a5b8ace.cjs → index-343ecbe5.cjs} +98 -55
  285. package/dist/chunks/index-343ecbe5.cjs.map +1 -0
  286. package/dist/chunks/{index-6c221fa0.mjs → index-a01ff595.mjs} +143 -100
  287. package/dist/chunks/index-a01ff595.mjs.map +1 -0
  288. package/dist/chunks/{l10n-4326316a.cjs → l10n-9321b50d.cjs} +1 -1
  289. package/dist/chunks/{l10n-4326316a.cjs.map → l10n-9321b50d.cjs.map} +1 -1
  290. package/dist/chunks/l10n-9f3afaf5.cjs +29 -0
  291. package/dist/chunks/l10n-9f3afaf5.cjs.map +1 -0
  292. package/dist/chunks/l10n-b6d21146.mjs +31 -0
  293. package/dist/chunks/l10n-b6d21146.mjs.map +1 -0
  294. package/dist/chunks/{l10n-c5f5f001.mjs → l10n-bef4ea85.mjs} +1 -1
  295. package/dist/chunks/{l10n-c5f5f001.mjs.map → l10n-bef4ea85.mjs.map} +1 -1
  296. package/dist/chunks/{referencePickerModal-0fde503d.mjs → referencePickerModal-58498cac.mjs} +157 -125
  297. package/dist/chunks/referencePickerModal-58498cac.mjs.map +1 -0
  298. package/dist/chunks/{referencePickerModal-9b4ff88d.cjs → referencePickerModal-a739a17b.cjs} +145 -112
  299. package/dist/chunks/referencePickerModal-a739a17b.cjs.map +1 -0
  300. package/dist/index.cjs +105 -103
  301. package/dist/index.cjs.map +1 -1
  302. package/dist/index.mjs +138 -133
  303. package/dist/index.mjs.map +1 -1
  304. package/dist/vendor.LICENSE.txt +5 -1
  305. package/package.json +8 -5
  306. package/dist/assets/index-7768d5e5.css +0 -148
  307. package/dist/assets/index-d646553d.css +0 -41
  308. package/dist/chunks/NcAppNavigationToggle-960658a0.cjs +0 -49
  309. package/dist/chunks/NcAppNavigationToggle-960658a0.cjs.map +0 -1
  310. package/dist/chunks/NcAppNavigationToggle-d868f651.mjs +0 -55
  311. package/dist/chunks/NcAppNavigationToggle-d868f651.mjs.map +0 -1
  312. package/dist/chunks/NcInputConfirmCancel-0c4bee9a.cjs +0 -83
  313. package/dist/chunks/NcInputConfirmCancel-0c4bee9a.cjs.map +0 -1
  314. package/dist/chunks/NcInputConfirmCancel-f881168d.mjs.map +0 -1
  315. package/dist/chunks/index-2a5b8ace.cjs.map +0 -1
  316. package/dist/chunks/index-6c221fa0.mjs.map +0 -1
  317. package/dist/chunks/l10n-27a75c40.mjs +0 -31
  318. package/dist/chunks/l10n-27a75c40.mjs.map +0 -1
  319. package/dist/chunks/l10n-903083c4.cjs +0 -29
  320. package/dist/chunks/l10n-903083c4.cjs.map +0 -1
  321. package/dist/chunks/referencePickerModal-0fde503d.mjs.map +0 -1
  322. package/dist/chunks/referencePickerModal-9b4ff88d.cjs.map +0 -1
@@ -1,24 +1,23 @@
1
- import "../assets/referencePickerModal-0acecb5e.css";
2
- import { n as l } from "./_plugin-vue2_normalizer-71e2aa87.mjs";
3
- import { t as n } from "./l10n-27a75c40.mjs";
4
- import m from "@nextcloud/axios";
5
- import { loadState as P } from "@nextcloud/initial-state";
6
- import { imagePath as N, generateOcsUrl as p } from "@nextcloud/router";
7
- import _ from "../Components/NcEmptyContent.mjs";
8
- import { N as w } from "./index-20a9ace9.mjs";
9
- import b from "../Components/NcSelect.mjs";
10
- import f from "vue-material-design-icons/LinkVariant.vue";
11
- import L from "../Components/NcLoadingIcon.mjs";
1
+ import "../assets/referencePickerModal-3a127978.css";
2
+ import { n as c } from "./_plugin-vue2_normalizer-71e2aa87.mjs";
3
+ import { t as n } from "./l10n-b6d21146.mjs";
4
+ import p from "@nextcloud/axios";
5
+ import { loadState as C } from "@nextcloud/initial-state";
6
+ import { imagePath as L, generateOcsUrl as _ } from "@nextcloud/router";
7
+ import m from "../Components/NcEmptyContent.mjs";
8
+ import { N as P } from "./index-20a9ace9.mjs";
9
+ import w from "../Components/NcSelect.mjs";
10
+ import N from "../Components/NcLoadingIcon.mjs";
12
11
  import E from "../Components/NcTextField.mjs";
13
- import I from "vue-material-design-icons/DotsHorizontal.vue";
12
+ import { D as I } from "./DotsHorizontal-0ee7d901.mjs";
14
13
  import O from "../Components/NcButton.mjs";
15
14
  import B from "../Components/NcModal.mjs";
16
15
  import { emit as M } from "@nextcloud/event-bus";
17
- import W from "vue-material-design-icons/ArrowLeft.vue";
18
- import q from "vue-material-design-icons/Close.vue";
19
- import T from "vue";
16
+ import { A as V } from "./ArrowLeft-3779ba88.mjs";
17
+ import { C as W } from "./Close-271f72e2.mjs";
18
+ import q from "vue";
20
19
  window._vue_richtext_widgets || (window._vue_richtext_widgets = {});
21
- const V = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
20
+ const T = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
22
21
  }) => {
23
22
  if (window._vue_richtext_widgets[t]) {
24
23
  console.error("Widget for id " + t + " already registered");
@@ -29,7 +28,7 @@ const V = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
29
28
  callback: e,
30
29
  onDestroy: r
31
30
  };
32
- }, D = (t, { richObjectType: e, richObject: r, accessible: s }) => {
31
+ }, z = (t, { richObjectType: e, richObject: r, accessible: s }) => {
33
32
  if (e !== "open-graph") {
34
33
  if (!window._vue_richtext_widgets[e]) {
35
34
  console.error("Widget for rich object type " + e + " not registered");
@@ -37,7 +36,7 @@ const V = (t) => !!window._vue_richtext_widgets[t], j = (t, e, r = (s) => {
37
36
  }
38
37
  window._vue_richtext_widgets[e].callback(t, { richObjectType: e, richObject: r, accessible: s });
39
38
  }
40
- }, z = (t, e) => {
39
+ }, D = (t, e) => {
41
40
  t !== "open-graph" && window._vue_richtext_widgets[t] && window._vue_richtext_widgets[t].onDestroy(e);
42
41
  };
43
42
  window._registerWidget = j;
@@ -56,7 +55,7 @@ const A = {
56
55
  },
57
56
  computed: {
58
57
  hasCustomWidget() {
59
- return V(this.reference.richObjectType);
58
+ return T(this.reference.richObjectType);
60
59
  },
61
60
  noAccess() {
62
61
  return this.reference && !this.reference.accessible;
@@ -83,13 +82,13 @@ const A = {
83
82
  }), this.observer.observe(this.$el);
84
83
  },
85
84
  beforeDestroy() {
86
- this.observer.disconnect(), z(this.reference.richObjectType, this.$el);
85
+ this.observer.disconnect(), D(this.reference.richObjectType, this.$el);
87
86
  },
88
87
  methods: {
89
88
  renderWidget() {
90
89
  var t;
91
90
  this.$refs.customWidget && (this.$refs.customWidget.innerHTML = ""), ((t = this == null ? void 0 : this.reference) == null ? void 0 : t.richObjectType) !== "open-graph" && this.$nextTick(() => {
92
- D(this.$refs.customWidget, this.reference);
91
+ z(this.$refs.customWidget, this.reference);
93
92
  });
94
93
  }
95
94
  }
@@ -97,7 +96,7 @@ const A = {
97
96
  var F = function() {
98
97
  var e = this, r = e._self._c;
99
98
  return r("div", [e.reference && e.hasCustomWidget ? r("div", { staticClass: "widget-custom" }, [r("div", { ref: "customWidget" })]) : !e.noAccess && e.reference && e.reference.openGraphObject && !e.hasCustomWidget ? r("a", { staticClass: "widget-default", attrs: { href: e.reference.openGraphObject.link, rel: "noopener noreferrer", target: "_blank" } }, [e.reference.openGraphObject.thumb ? r("img", { staticClass: "widget-default--image", attrs: { src: e.reference.openGraphObject.thumb } }) : e._e(), r("div", { staticClass: "widget-default--details" }, [r("p", { staticClass: "widget-default--name" }, [e._v(e._s(e.reference.openGraphObject.name))]), r("p", { staticClass: "widget-default--description", style: e.descriptionStyle }, [e._v(e._s(e.reference.openGraphObject.description))]), r("p", { staticClass: "widget-default--link" }, [e._v(e._s(e.compactLink))])])]) : e._e()]);
100
- }, U = [], Q = /* @__PURE__ */ l(
99
+ }, U = [], Q = /* @__PURE__ */ c(
101
100
  A,
102
101
  F,
103
102
  U,
@@ -109,7 +108,7 @@ var F = function() {
109
108
  );
110
109
  const G = Q.exports;
111
110
  window._vue_richtext_custom_picker_elements || (window._vue_richtext_custom_picker_elements = {});
112
- class rt {
111
+ class nt {
113
112
  /**
114
113
  * @param {HTMLElement} element The HTML element
115
114
  * @param {object} object The object
@@ -122,7 +121,7 @@ const h = (t) => !!window._vue_richtext_custom_picker_elements[t], H = (t) => {
122
121
  var r;
123
122
  const e = (r = window._vue_richtext_custom_picker_elements[t]) == null ? void 0 : r.size;
124
123
  return ["small", "normal", "large", "full"].includes(e) ? e : null;
125
- }, J = (t, e, r = (i) => {
124
+ }, Z = (t, e, r = (i) => {
126
125
  }, s = "large") => {
127
126
  if (window._vue_richtext_custom_picker_elements[t]) {
128
127
  console.error("Custom reference picker element for id " + t + " already registered");
@@ -134,17 +133,17 @@ const h = (t) => !!window._vue_richtext_custom_picker_elements[t], H = (t) => {
134
133
  onDestroy: r,
135
134
  size: s
136
135
  };
137
- }, K = (t, { providerId: e, accessible: r }) => {
136
+ }, J = (t, { providerId: e, accessible: r }) => {
138
137
  if (!window._vue_richtext_custom_picker_elements[e]) {
139
138
  console.error("Custom reference picker element for reference provider ID " + e + " not registered");
140
139
  return;
141
140
  }
142
141
  return window._vue_richtext_custom_picker_elements[e].callback(t, { providerId: e, accessible: r });
143
- }, X = (t, e, r) => {
142
+ }, K = (t, e, r) => {
144
143
  window._vue_richtext_custom_picker_elements[t] && window._vue_richtext_custom_picker_elements[t].onDestroy(e, r);
145
144
  };
146
- window._registerCustomPickerElement = J;
147
- const Y = {
145
+ window._registerCustomPickerElement = Z;
146
+ const X = {
148
147
  name: "NcCustomPickerElement",
149
148
  props: {
150
149
  /**
@@ -169,12 +168,12 @@ const Y = {
169
168
  this.isRegistered && this.renderElement();
170
169
  },
171
170
  beforeDestroy() {
172
- this.isRegistered && X(this.provider.id, this.$el, this.renderResult);
171
+ this.isRegistered && K(this.provider.id, this.$el, this.renderResult);
173
172
  },
174
173
  methods: {
175
174
  renderElement() {
176
175
  this.$refs.domElement && (this.$refs.domElement.innerHTML = "");
177
- const t = K(this.$refs.domElement, { providerId: this.provider.id, accessible: !1 });
176
+ const t = J(this.$refs.domElement, { providerId: this.provider.id, accessible: !1 });
178
177
  Promise.resolve(t).then((e) => {
179
178
  var r, s;
180
179
  this.renderResult = e, (r = this.renderResult.object) != null && r._isVue && ((s = this.renderResult.object) != null && s.$on) && (this.renderResult.object.$on("submit", this.onSubmit), this.renderResult.object.$on("cancel", this.onCancel)), this.renderResult.element.addEventListener("submit", (i) => {
@@ -190,12 +189,12 @@ const Y = {
190
189
  }
191
190
  }
192
191
  };
193
- var Z = function() {
192
+ var Y = function() {
194
193
  var e = this, r = e._self._c;
195
194
  return r("div", { ref: "domElement" });
196
- }, ee = [], te = /* @__PURE__ */ l(
195
+ }, ee = [], te = /* @__PURE__ */ c(
196
+ X,
197
197
  Y,
198
- Z,
199
198
  ee,
200
199
  !1,
201
200
  null,
@@ -203,15 +202,15 @@ var Z = function() {
203
202
  null,
204
203
  null
205
204
  );
206
- const re = te.exports, C = "any-link", S = {
207
- id: C,
205
+ const re = te.exports, b = "any-link", S = {
206
+ id: b,
208
207
  title: n("Any link"),
209
- icon_url: N("core", "filetypes/link.svg")
208
+ icon_url: L("core", "filetypes/link.svg")
210
209
  };
211
- window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = P("core", "reference-provider-list", []));
212
- window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = P("core", "reference-provider-timestamps", {}));
210
+ window._vue_richtext_reference_providers || (window._vue_richtext_reference_providers = C("core", "reference-provider-list", []));
211
+ window._vue_richtext_reference_provider_timestamps || (window._vue_richtext_reference_provider_timestamps = C("core", "reference-provider-timestamps", {}));
213
212
  function se(t) {
214
- return t === C ? S : R().find((e) => e.id === t);
213
+ return t === b ? S : R().find((e) => e.id === t);
215
214
  }
216
215
  function R() {
217
216
  return window._vue_richtext_reference_providers.filter((t) => {
@@ -227,27 +226,27 @@ function ie(t) {
227
226
  });
228
227
  }
229
228
  function ne(t, e = null) {
230
- const r = R(), s = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(s, "i"), c = ie(r).filter((a) => a.title.match(i)), u = e ? c.slice(0, e) : c;
229
+ const r = R(), s = t.replace(/[/\-\\^$*+?.()|[\]{}]/g, "\\$&"), i = new RegExp(s, "i"), l = ie(r).filter((a) => a.title.match(i)), u = e ? l.slice(0, e) : l;
231
230
  return (t === "" || u.length === 0) && u.push(S), u;
232
231
  }
233
232
  function oe(t) {
234
233
  const e = Math.floor(Date.now() / 1e3), r = {
235
234
  timestamp: e
236
- }, s = p("references/provider/{providerId}", { providerId: t });
237
- m.put(s, r).then((i) => {
235
+ }, s = _("references/provider/{providerId}", { providerId: t });
236
+ p.put(s, r).then((i) => {
238
237
  window._vue_richtext_reference_provider_timestamps[t] = e;
239
238
  });
240
239
  }
241
- let g = 0;
240
+ let y = 0;
242
241
  function x(t, e) {
243
242
  return function() {
244
243
  const r = this, s = arguments;
245
- clearTimeout(g), g = setTimeout(function() {
244
+ clearTimeout(y), y = setTimeout(function() {
246
245
  t.apply(r, s);
247
246
  }, e || 0);
248
247
  };
249
248
  }
250
- function v(t) {
249
+ function f(t) {
251
250
  try {
252
251
  return !!new URL(t);
253
252
  } catch {
@@ -255,12 +254,45 @@ function v(t) {
255
254
  }
256
255
  }
257
256
  const ce = {
257
+ name: "LinkVariantIcon",
258
+ emits: ["click"],
259
+ props: {
260
+ title: {
261
+ type: String
262
+ },
263
+ fillColor: {
264
+ type: String,
265
+ default: "currentColor"
266
+ },
267
+ size: {
268
+ type: Number,
269
+ default: 24
270
+ }
271
+ }
272
+ };
273
+ var le = function() {
274
+ var e = this, r = e._self._c;
275
+ return r("span", e._b({ staticClass: "material-design-icon link-variant-icon", attrs: { "aria-hidden": !e.title, "aria-label": e.title, role: "img" }, on: { click: function(s) {
276
+ return e.$emit("click", s);
277
+ } } }, "span", e.$attrs, !1), [r("svg", { staticClass: "material-design-icon__svg", attrs: { fill: e.fillColor, width: e.size, height: e.size, viewBox: "0 0 24 24" } }, [r("path", { attrs: { d: "M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z" } }, [e.title ? r("title", [e._v(e._s(e.title))]) : e._e()])])]);
278
+ }, ae = [], ue = /* @__PURE__ */ c(
279
+ ce,
280
+ le,
281
+ ae,
282
+ !1,
283
+ null,
284
+ null,
285
+ null,
286
+ null
287
+ );
288
+ const v = ue.exports;
289
+ const de = {
258
290
  name: "NcProviderList",
259
291
  components: {
260
- NcSelect: b,
261
- NcHighlight: w,
262
- NcEmptyContent: _,
263
- LinkVariantIcon: f
292
+ NcSelect: w,
293
+ NcHighlight: P,
294
+ NcEmptyContent: m,
295
+ LinkVariantIcon: v
264
296
  },
265
297
  emits: [
266
298
  "select-provider",
@@ -277,7 +309,7 @@ const ce = {
277
309
  computed: {
278
310
  options() {
279
311
  const t = [];
280
- return this.query !== "" && v(this.query) && t.push({
312
+ return this.query !== "" && f(this.query) && t.push({
281
313
  id: this.query,
282
314
  title: this.query,
283
315
  isLink: !0
@@ -299,7 +331,7 @@ const ce = {
299
331
  }
300
332
  }
301
333
  };
302
- var le = function() {
334
+ var he = function() {
303
335
  var e = this, r = e._self._c;
304
336
  return r("div", { staticClass: "provider-list" }, [r("NcSelect", { ref: "provider-select", staticClass: "provider-list--select", attrs: { "input-id": "provider-select-input", label: "title", placeholder: e.multiselectPlaceholder, options: e.options, "append-to-body": !1, "clear-search-on-select": !0, "clear-search-on-blur": () => !1, filterable: !1 }, on: { search: e.onSearch, input: e.onProviderSelected }, scopedSlots: e._u([{ key: "option", fn: function(s) {
305
337
  return [s.isLink ? r("div", { staticClass: "provider" }, [r("LinkVariantIcon", { staticClass: "link-icon", attrs: { size: 20 } }), r("span", [e._v(e._s(s.title))])], 1) : r("div", { staticClass: "provider" }, [r("img", { staticClass: "provider-icon", attrs: { src: s.icon_url, alt: e.providerIconAlt } }), r("NcHighlight", { staticClass: "option-text", attrs: { search: e.query, text: s.title } })], 1)];
@@ -308,23 +340,23 @@ var le = function() {
308
340
  }, expression: "selectedProvider" } }), r("NcEmptyContent", { staticClass: "provider-list--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
309
341
  return [r("LinkVariantIcon")];
310
342
  }, proxy: !0 }]) })], 1);
311
- }, ae = [], ue = /* @__PURE__ */ l(
312
- ce,
313
- le,
314
- ae,
343
+ }, _e = [], pe = /* @__PURE__ */ c(
344
+ de,
345
+ he,
346
+ _e,
315
347
  !1,
316
348
  null,
317
349
  "9d850ea5",
318
350
  null,
319
351
  null
320
352
  );
321
- const de = ue.exports;
322
- const he = {
353
+ const me = pe.exports;
354
+ const fe = {
323
355
  name: "NcRawLinkInput",
324
356
  components: {
325
- LinkVariantIcon: f,
326
- NcEmptyContent: _,
327
- NcLoadingIcon: L,
357
+ LinkVariantIcon: v,
358
+ NcEmptyContent: m,
359
+ NcLoadingIcon: N,
328
360
  NcReferenceWidget: G,
329
361
  NcTextField: E
330
362
  },
@@ -351,7 +383,7 @@ const he = {
351
383
  },
352
384
  computed: {
353
385
  isLinkValid() {
354
- return v(this.inputValue);
386
+ return f(this.inputValue);
355
387
  }
356
388
  },
357
389
  methods: {
@@ -372,7 +404,7 @@ const he = {
372
404
  }, 500)();
373
405
  },
374
406
  updateReference() {
375
- this.loading = !0, this.abortController = new AbortController(), m.get(p("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
407
+ this.loading = !0, this.abortController = new AbortController(), p.get(_("references/resolve", 2) + "?reference=" + encodeURIComponent(this.inputValue), {
376
408
  signal: this.abortController.signal
377
409
  }).then((t) => {
378
410
  this.reference = t.data.ocs.data.references[this.inputValue];
@@ -384,7 +416,7 @@ const he = {
384
416
  }
385
417
  }
386
418
  };
387
- var pe = function() {
419
+ var ve = function() {
388
420
  var e = this, r = e._self._c;
389
421
  return r("div", { staticClass: "raw-link" }, [r("div", { staticClass: "input-wrapper" }, [r("NcTextField", { ref: "url-input", attrs: { value: e.inputValue, "show-trailing-button": e.inputValue !== "", label: e.inputPlaceholder }, on: { "update:value": [function(s) {
390
422
  e.inputValue = s;
@@ -393,21 +425,21 @@ var pe = function() {
393
425
  } } }, [e.loading ? r("NcLoadingIcon", { attrs: { size: 16 } }) : r("LinkVariantIcon", { attrs: { size: 16 } })], 1)], 1), e.reference !== null ? r("NcReferenceWidget", { staticClass: "reference-widget", attrs: { reference: e.reference } }) : r("NcEmptyContent", { staticClass: "raw-link--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
394
426
  return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { src: e.provider.icon_url } }) : r("LinkVariantIcon")];
395
427
  }, proxy: !0 }]) })], 1);
396
- }, me = [], _e = /* @__PURE__ */ l(
397
- he,
398
- pe,
399
- me,
428
+ }, ge = [], ye = /* @__PURE__ */ c(
429
+ fe,
430
+ ve,
431
+ ge,
400
432
  !1,
401
433
  null,
402
434
  "d0ba247a",
403
435
  null,
404
436
  null
405
437
  );
406
- const fe = _e.exports;
407
- const ve = {
438
+ const ke = ye.exports;
439
+ const Ce = {
408
440
  name: "NcSearchResult",
409
441
  components: {
410
- NcHighlight: w
442
+ NcHighlight: P
411
443
  },
412
444
  props: {
413
445
  /**
@@ -427,28 +459,28 @@ const ve = {
427
459
  }
428
460
  }
429
461
  };
430
- var ye = function() {
462
+ var Pe = function() {
431
463
  var e = this, r = e._self._c;
432
464
  return r("div", { staticClass: "result" }, [e.entry.icon ? r("div", { staticClass: "result--icon-class", class: { [e.entry.icon]: !0, rounded: e.entry.rounded } }) : r("img", { staticClass: "result--image", class: { rounded: e.entry.rounded }, attrs: { src: e.entry.thumbnailUrl } }), r("div", { staticClass: "result--content" }, [r("span", { staticClass: "result--content--name" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.title } })], 1), r("span", { staticClass: "result--content--subline" }, [r("NcHighlight", { attrs: { search: e.query, text: e.entry.subline } })], 1)])]);
433
- }, ge = [], ke = /* @__PURE__ */ l(
434
- ve,
435
- ye,
436
- ge,
465
+ }, we = [], be = /* @__PURE__ */ c(
466
+ Ce,
467
+ Pe,
468
+ we,
437
469
  !1,
438
470
  null,
439
471
  "7a394a58",
440
472
  null,
441
473
  null
442
474
  );
443
- const Pe = ke.exports;
444
- const k = 5, we = {
475
+ const Se = be.exports;
476
+ const k = 5, Re = {
445
477
  name: "NcSearch",
446
478
  components: {
447
- LinkVariantIcon: f,
479
+ LinkVariantIcon: v,
448
480
  DotsHorizontalIcon: I,
449
- NcEmptyContent: _,
450
- NcSelect: b,
451
- NcSearchResult: Pe
481
+ NcEmptyContent: m,
482
+ NcSelect: w,
483
+ NcSearchResult: Se
452
484
  },
453
485
  props: {
454
486
  /**
@@ -493,7 +525,7 @@ const k = 5, we = {
493
525
  if (this.searchQuery === "")
494
526
  return [];
495
527
  const t = [];
496
- return v(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
528
+ return f(this.searchQuery) && t.push(this.rawLinkEntry), t.push(...this.formattedSearchResults), t;
497
529
  },
498
530
  rawLinkEntry() {
499
531
  return {
@@ -577,12 +609,12 @@ const k = 5, we = {
577
609
  this.abortController = new AbortController(), this.searching = !0;
578
610
  const e = t === null ? [...this.searchProviderIds].map((i) => this.searchOneProvider(i)) : [this.searchOneProvider(t, (s = (r = this.resultsBySearchProvider[t]) == null ? void 0 : r.cursor) != null ? s : null)];
579
611
  return Promise.allSettled(e).then((i) => {
580
- !!i.find((c) => c.status === "rejected" && (c.reason.name === "CanceledError" || c.reason.code === "ERR_CANCELED")) || (this.searching = !1, this.searchingMoreOf = null);
612
+ !!i.find((l) => l.status === "rejected" && (l.reason.name === "CanceledError" || l.reason.code === "ERR_CANCELED")) || (this.searching = !1, this.searchingMoreOf = null);
581
613
  });
582
614
  },
583
615
  searchOneProvider(t, e = null) {
584
- const r = e === null ? p("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: k }) : p("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: k, cursor: e });
585
- return m.get(r, {
616
+ const r = e === null ? _("search/providers/{providerId}/search?term={term}&limit={limit}", { providerId: t, term: this.searchQuery, limit: k }) : _("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}", { providerId: t, term: this.searchQuery, limit: k, cursor: e });
617
+ return p.get(r, {
586
618
  signal: this.abortController.signal
587
619
  }).then((s) => {
588
620
  const i = s.data.ocs.data;
@@ -591,7 +623,7 @@ const k = 5, we = {
591
623
  }
592
624
  }
593
625
  };
594
- var be = function() {
626
+ var xe = function() {
595
627
  var e = this, r = e._self._c;
596
628
  return r("div", { staticClass: "smart-picker-search", class: { "with-empty-content": e.showEmptyContent } }, [r("NcSelect", { ref: "search-select", staticClass: "smart-picker-search--select", attrs: { "input-id": "search-select-input", label: "name", placeholder: e.mySearchPlaceholder, options: e.options, "append-to-body": !1, "close-on-select": !1, "clear-search-on-select": !1, "clear-search-on-blur": () => !1, "reset-focus-on-options-change": !1, filterable: !1, autoscroll: !0, "reset-on-options-change": !1, loading: e.searching }, on: { search: e.onSearchInput, input: e.onSelectResultSelected }, scopedSlots: e._u([{ key: "option", fn: function(s) {
597
629
  return [s.isRawLink ? r("div", { staticClass: "custom-option" }, [r("LinkVariantIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t("Raw link {options}", { options: s.resourceUrl })) + " ")])], 1) : s.resourceUrl ? r("NcSearchResult", { staticClass: "search-result", attrs: { entry: s, query: e.searchQuery } }) : s.isCustomGroupTitle ? r("span", { staticClass: "custom-option group-name" }, [e.provider.icon_url ? r("img", { staticClass: "provider-icon group-name-icon", attrs: { src: e.provider.icon_url } }) : e._e(), r("span", { staticClass: "option-text" }, [r("strong", [e._v(e._s(s.name))])])]) : s.isMore ? r("span", { class: { "custom-option": !0 } }, [s.isLoading ? r("span", { staticClass: "option-simple-icon icon-loading-small" }) : r("DotsHorizontalIcon", { staticClass: "option-simple-icon", attrs: { size: 20 } }), r("span", { staticClass: "option-text" }, [e._v(" " + e._s(e.t('Load more "{options}"', { options: s.name })) + " ")])], 1) : e._e()];
@@ -602,29 +634,29 @@ var be = function() {
602
634
  }, expression: "selectedResult" } }), e.showEmptyContent ? r("NcEmptyContent", { staticClass: "smart-picker-search--empty-content", scopedSlots: e._u([{ key: "icon", fn: function() {
603
635
  return [e.provider.icon_url ? r("img", { staticClass: "provider-icon", attrs: { alt: e.providerIconAlt, src: e.provider.icon_url } }) : r("LinkVariantIcon")];
604
636
  }, proxy: !0 }], null, !1, 2922132592) }) : e._e()], 1);
605
- }, Ce = [], Se = /* @__PURE__ */ l(
606
- we,
607
- be,
608
- Ce,
637
+ }, $e = [], Le = /* @__PURE__ */ c(
638
+ Re,
639
+ xe,
640
+ $e,
609
641
  !1,
610
642
  null,
611
643
  "97d196f0",
612
644
  null,
613
645
  null
614
646
  );
615
- const Re = Se.exports;
647
+ const Ne = Le.exports;
616
648
  const d = {
617
649
  providerList: 1,
618
650
  standardLinkInput: 2,
619
651
  searchInput: 3,
620
652
  customElement: 4
621
- }, xe = {
653
+ }, Ee = {
622
654
  name: "NcReferencePicker",
623
655
  components: {
624
656
  NcCustomPickerElement: re,
625
- NcProviderList: de,
626
- NcRawLinkInput: fe,
627
- NcSearch: Re
657
+ NcProviderList: me,
658
+ NcRawLinkInput: ke,
659
+ NcSearch: Ne
628
660
  },
629
661
  props: {
630
662
  /**
@@ -719,30 +751,30 @@ const d = {
719
751
  }
720
752
  }
721
753
  };
722
- var $e = function() {
754
+ var Ie = function() {
723
755
  var e = this, r = e._self._c;
724
756
  return r("div", { staticClass: "reference-picker", style: e.pickerWrapperStyle, attrs: { tabindex: "-1" }, on: { keydown: function(s) {
725
757
  return !s.type.indexOf("key") && e._k(s.keyCode, "esc", 27, s.key, ["Esc", "Escape"]) ? null : (s.stopPropagation(), s.preventDefault(), e.onEscapePressed.apply(null, arguments));
726
758
  } } }, [e.mode === e.MODES.providerList ? r("NcProviderList", { ref: "provider-list", on: { "select-provider": e.onProviderSelected, submit: e.submitLink, cancel: e.cancelProviderSelection } }) : e.mode === e.MODES.standardLinkInput ? r("NcRawLinkInput", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelRawLinkInput } }) : e.mode === e.MODES.searchInput ? r("NcSearch", { ref: "url-input", attrs: { provider: e.selectedProvider }, on: { cancel: e.cancelSearch, submit: e.submitLink } }) : e.mode === e.MODES.customElement ? r("div", { staticClass: "custom-element-wrapper" }, [r("NcCustomPickerElement", { attrs: { provider: e.selectedProvider }, on: { submit: e.submitLink, cancel: e.cancelCustomElement } })], 1) : e._e()], 1);
727
- }, Ne = [], Le = /* @__PURE__ */ l(
728
- xe,
729
- $e,
730
- Ne,
759
+ }, Oe = [], Be = /* @__PURE__ */ c(
760
+ Ee,
761
+ Ie,
762
+ Oe,
731
763
  !1,
732
764
  null,
733
765
  "aa77d0d3",
734
766
  null,
735
767
  null
736
768
  );
737
- const Ee = Le.exports;
738
- const Ie = {
769
+ const Me = Be.exports;
770
+ const Ve = {
739
771
  name: "NcReferencePickerModal",
740
772
  components: {
741
- NcReferencePicker: Ee,
773
+ NcReferencePicker: Me,
742
774
  NcModal: B,
743
775
  NcButton: O,
744
- ArrowLeftIcon: W,
745
- CloseIcon: q
776
+ ArrowLeftIcon: V,
777
+ CloseIcon: W
746
778
  },
747
779
  props: {
748
780
  /**
@@ -820,32 +852,32 @@ const Ie = {
820
852
  }
821
853
  }
822
854
  };
823
- var Oe = function() {
855
+ var We = function() {
824
856
  var e = this, r = e._self._c;
825
857
  return e.show ? r("NcModal", { staticClass: "reference-picker-modal", attrs: { size: e.modalSize, "can-close": !1 }, on: { close: e.onCancel } }, [r("div", { ref: "modal_content", staticClass: "reference-picker-modal--content" }, [e.showBackButton ? r("NcButton", { staticClass: "back-button", attrs: { "aria-label": e.backButtonTitle, title: e.backButtonTitle }, on: { click: e.onBackClicked }, scopedSlots: e._u([{ key: "icon", fn: function() {
826
858
  return [r("ArrowLeftIcon")];
827
859
  }, proxy: !0 }], null, !1, 3001860362) }) : e._e(), r("NcButton", { staticClass: "close-button", attrs: { "aria-label": e.closeButtonLabel, title: e.closeButtonTitle, type: "tertiary" }, on: { click: e.onCancel }, scopedSlots: e._u([{ key: "icon", fn: function() {
828
860
  return [r("CloseIcon")];
829
861
  }, proxy: !0 }], null, !1, 2491825086) }), e.showModalName ? r("h2", [e._v(" " + e._s(e.modalName) + " ")]) : e._e(), r("NcReferencePicker", { ref: "referencePicker", attrs: { "initial-provider": e.initialProvider, "focus-on-create": e.focusOnCreate }, on: { "provider-selected": e.onProviderSelect, submit: e.onSubmit, cancel: e.onCancel } })], 1)]) : e._e();
830
- }, Be = [], Me = /* @__PURE__ */ l(
831
- Ie,
832
- Oe,
833
- Be,
862
+ }, qe = [], Te = /* @__PURE__ */ c(
863
+ Ve,
864
+ We,
865
+ qe,
834
866
  !1,
835
867
  null,
836
868
  "3f1a4ac7",
837
869
  null,
838
870
  null
839
871
  );
840
- const We = Me.exports;
841
- async function st(t = null, e = void 0) {
872
+ const je = Te.exports;
873
+ async function ot(t = null, e = void 0) {
842
874
  return await new Promise((r, s) => {
843
- var y;
875
+ var g;
844
876
  const i = "referencePickerModal", o = document.createElement("div");
845
877
  o.id = i, document.body.append(o);
846
- const c = t === null ? null : (y = se(t)) != null ? y : null, u = T.extend(We), a = new u({
878
+ const l = t === null ? null : (g = se(t)) != null ? g : null, u = q.extend(je), a = new u({
847
879
  propsData: {
848
- initialProvider: c,
880
+ initialProvider: l,
849
881
  isInsideViewer: e
850
882
  }
851
883
  }).$mount(o);
@@ -858,17 +890,17 @@ async function st(t = null, e = void 0) {
858
890
  }
859
891
  export {
860
892
  G as N,
861
- Ee as a,
862
- We as b,
863
- Re as c,
864
- D as d,
865
- rt as e,
866
- J as f,
867
- K as g,
893
+ Me as a,
894
+ je as b,
895
+ Ne as c,
896
+ z as d,
897
+ nt as e,
898
+ Z as f,
899
+ J as g,
868
900
  h,
869
- V as i,
870
- st as j,
871
- C as k,
901
+ T as i,
902
+ ot as j,
903
+ b as k,
872
904
  se as l,
873
905
  R as m,
874
906
  ne as n,