@nextcloud/vue 8.0.0-beta.6 → 8.0.0-beta.8

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 (568) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/Components/NcActionButton.cjs +49 -1
  3. package/dist/Components/NcActionButton.cjs.map +1 -1
  4. package/dist/Components/NcActionButton.mjs +48 -12
  5. package/dist/Components/NcActionButton.mjs.map +1 -1
  6. package/dist/Components/NcActionButtonGroup.cjs +30 -1
  7. package/dist/Components/NcActionButtonGroup.cjs.map +1 -1
  8. package/dist/Components/NcActionButtonGroup.mjs +30 -9
  9. package/dist/Components/NcActionButtonGroup.mjs.map +1 -1
  10. package/dist/Components/NcActionCaption.cjs +29 -1
  11. package/dist/Components/NcActionCaption.cjs.map +1 -1
  12. package/dist/Components/NcActionCaption.mjs +29 -9
  13. package/dist/Components/NcActionCaption.mjs.map +1 -1
  14. package/dist/Components/NcActionCheckbox.cjs +78 -1
  15. package/dist/Components/NcActionCheckbox.cjs.map +1 -1
  16. package/dist/Components/NcActionCheckbox.mjs +80 -19
  17. package/dist/Components/NcActionCheckbox.mjs.map +1 -1
  18. package/dist/Components/NcActionInput.cjs +226 -1
  19. package/dist/Components/NcActionInput.cjs.map +1 -1
  20. package/dist/Components/NcActionInput.mjs +227 -68
  21. package/dist/Components/NcActionInput.mjs.map +1 -1
  22. package/dist/Components/NcActionLink.cjs +69 -1
  23. package/dist/Components/NcActionLink.cjs.map +1 -1
  24. package/dist/Components/NcActionLink.mjs +65 -13
  25. package/dist/Components/NcActionLink.mjs.map +1 -1
  26. package/dist/Components/NcActionRadio.cjs +85 -1
  27. package/dist/Components/NcActionRadio.cjs.map +1 -1
  28. package/dist/Components/NcActionRadio.mjs +87 -19
  29. package/dist/Components/NcActionRadio.mjs.map +1 -1
  30. package/dist/Components/NcActionRouter.cjs +42 -1
  31. package/dist/Components/NcActionRouter.cjs.map +1 -1
  32. package/dist/Components/NcActionRouter.mjs +41 -12
  33. package/dist/Components/NcActionRouter.mjs.map +1 -1
  34. package/dist/Components/NcActionSeparator.cjs +20 -1
  35. package/dist/Components/NcActionSeparator.cjs.map +1 -1
  36. package/dist/Components/NcActionSeparator.mjs +20 -9
  37. package/dist/Components/NcActionSeparator.mjs.map +1 -1
  38. package/dist/Components/NcActionText.cjs +23 -1
  39. package/dist/Components/NcActionText.cjs.map +1 -1
  40. package/dist/Components/NcActionText.mjs +20 -8
  41. package/dist/Components/NcActionText.mjs.map +1 -1
  42. package/dist/Components/NcActionTextEditable.cjs +81 -1
  43. package/dist/Components/NcActionTextEditable.cjs.map +1 -1
  44. package/dist/Components/NcActionTextEditable.mjs +79 -22
  45. package/dist/Components/NcActionTextEditable.mjs.map +1 -1
  46. package/dist/Components/NcActions.cjs +455 -1
  47. package/dist/Components/NcActions.cjs.map +1 -1
  48. package/dist/Components/NcActions.mjs +459 -100
  49. package/dist/Components/NcActions.mjs.map +1 -1
  50. package/dist/Components/NcAppContent.cjs +218 -1
  51. package/dist/Components/NcAppContent.cjs.map +1 -1
  52. package/dist/Components/NcAppContent.mjs +220 -66
  53. package/dist/Components/NcAppContent.mjs.map +1 -1
  54. package/dist/Components/NcAppContentDetails.cjs +19 -1
  55. package/dist/Components/NcAppContentDetails.cjs.map +1 -1
  56. package/dist/Components/NcAppContentDetails.mjs +18 -7
  57. package/dist/Components/NcAppContentDetails.mjs.map +1 -1
  58. package/dist/Components/NcAppContentList.cjs +29 -1
  59. package/dist/Components/NcAppContentList.cjs.map +1 -1
  60. package/dist/Components/NcAppContentList.mjs +29 -8
  61. package/dist/Components/NcAppContentList.mjs.map +1 -1
  62. package/dist/Components/NcAppNavigation.cjs +66 -1
  63. package/dist/Components/NcAppNavigation.cjs.map +1 -1
  64. package/dist/Components/NcAppNavigation.mjs +67 -28
  65. package/dist/Components/NcAppNavigation.mjs.map +1 -1
  66. package/dist/Components/NcAppNavigationCaption.cjs +44 -1
  67. package/dist/Components/NcAppNavigationCaption.cjs.map +1 -1
  68. package/dist/Components/NcAppNavigationCaption.mjs +40 -9
  69. package/dist/Components/NcAppNavigationCaption.mjs.map +1 -1
  70. package/dist/Components/NcAppNavigationIconBullet.cjs +40 -1
  71. package/dist/Components/NcAppNavigationIconBullet.cjs.map +1 -1
  72. package/dist/Components/NcAppNavigationIconBullet.mjs +40 -15
  73. package/dist/Components/NcAppNavigationIconBullet.mjs.map +1 -1
  74. package/dist/Components/NcAppNavigationItem.cjs +386 -1
  75. package/dist/Components/NcAppNavigationItem.cjs.map +1 -1
  76. package/dist/Components/NcAppNavigationItem.mjs +382 -81
  77. package/dist/Components/NcAppNavigationItem.mjs.map +1 -1
  78. package/dist/Components/NcAppNavigationNew.cjs +50 -1
  79. package/dist/Components/NcAppNavigationNew.cjs.map +1 -1
  80. package/dist/Components/NcAppNavigationNew.mjs +51 -14
  81. package/dist/Components/NcAppNavigationNew.mjs.map +1 -1
  82. package/dist/Components/NcAppNavigationNewItem.cjs +87 -1
  83. package/dist/Components/NcAppNavigationNewItem.cjs.map +1 -1
  84. package/dist/Components/NcAppNavigationNewItem.mjs +83 -17
  85. package/dist/Components/NcAppNavigationNewItem.mjs.map +1 -1
  86. package/dist/Components/NcAppNavigationSettings.cjs +69 -1
  87. package/dist/Components/NcAppNavigationSettings.cjs.map +1 -1
  88. package/dist/Components/NcAppNavigationSettings.mjs +60 -21
  89. package/dist/Components/NcAppNavigationSettings.mjs.map +1 -1
  90. package/dist/Components/NcAppNavigationSpacer.cjs +20 -1
  91. package/dist/Components/NcAppNavigationSpacer.cjs.map +1 -1
  92. package/dist/Components/NcAppNavigationSpacer.mjs +20 -9
  93. package/dist/Components/NcAppNavigationSpacer.mjs.map +1 -1
  94. package/dist/Components/NcAppNavigationToggle.cjs +25 -1
  95. package/dist/Components/NcAppNavigationToggle.cjs.map +1 -1
  96. package/dist/Components/NcAppNavigationToggle.mjs +21 -1
  97. package/dist/Components/NcAppNavigationToggle.mjs.map +1 -1
  98. package/dist/Components/NcAppSettingsDialog.cjs +207 -1
  99. package/dist/Components/NcAppSettingsDialog.cjs.map +1 -1
  100. package/dist/Components/NcAppSettingsDialog.mjs +209 -48
  101. package/dist/Components/NcAppSettingsDialog.mjs.map +1 -1
  102. package/dist/Components/NcAppSettingsSection.cjs +39 -1
  103. package/dist/Components/NcAppSettingsSection.cjs.map +1 -1
  104. package/dist/Components/NcAppSettingsSection.mjs +39 -13
  105. package/dist/Components/NcAppSettingsSection.mjs.map +1 -1
  106. package/dist/Components/NcAppSidebar.cjs +443 -1
  107. package/dist/Components/NcAppSidebar.cjs.map +1 -1
  108. package/dist/Components/NcAppSidebar.mjs +409 -92
  109. package/dist/Components/NcAppSidebar.mjs.map +1 -1
  110. package/dist/Components/NcAppSidebarTab.cjs +83 -1
  111. package/dist/Components/NcAppSidebarTab.cjs.map +1 -1
  112. package/dist/Components/NcAppSidebarTab.mjs +83 -20
  113. package/dist/Components/NcAppSidebarTab.mjs.map +1 -1
  114. package/dist/Components/NcAvatar.cjs +3 -1
  115. package/dist/Components/NcAvatar.cjs.map +1 -1
  116. package/dist/Components/NcAvatar.mjs +1 -1
  117. package/dist/Components/NcBreadcrumb.cjs +175 -1
  118. package/dist/Components/NcBreadcrumb.cjs.map +1 -1
  119. package/dist/Components/NcBreadcrumb.mjs +175 -35
  120. package/dist/Components/NcBreadcrumb.mjs.map +1 -1
  121. package/dist/Components/NcBreadcrumbs.cjs +372 -1
  122. package/dist/Components/NcBreadcrumbs.cjs.map +1 -1
  123. package/dist/Components/NcBreadcrumbs.mjs +373 -142
  124. package/dist/Components/NcBreadcrumbs.mjs.map +1 -1
  125. package/dist/Components/NcButton.cjs +226 -1
  126. package/dist/Components/NcButton.cjs.map +1 -1
  127. package/dist/Components/NcButton.mjs +226 -24
  128. package/dist/Components/NcButton.mjs.map +1 -1
  129. package/dist/Components/NcCheckboxRadioSwitch.cjs +237 -1
  130. package/dist/Components/NcCheckboxRadioSwitch.cjs.map +1 -1
  131. package/dist/Components/NcCheckboxRadioSwitch.mjs +243 -57
  132. package/dist/Components/NcCheckboxRadioSwitch.mjs.map +1 -1
  133. package/dist/Components/NcColorPicker.cjs +118 -1
  134. package/dist/Components/NcColorPicker.cjs.map +1 -1
  135. package/dist/Components/NcColorPicker.mjs +124 -46
  136. package/dist/Components/NcColorPicker.mjs.map +1 -1
  137. package/dist/Components/NcContent.cjs +25 -1
  138. package/dist/Components/NcContent.cjs.map +1 -1
  139. package/dist/Components/NcContent.mjs +24 -8
  140. package/dist/Components/NcContent.mjs.map +1 -1
  141. package/dist/Components/NcCounterBubble.cjs +47 -1
  142. package/dist/Components/NcCounterBubble.cjs.map +1 -1
  143. package/dist/Components/NcCounterBubble.mjs +46 -12
  144. package/dist/Components/NcCounterBubble.mjs.map +1 -1
  145. package/dist/Components/NcDashboardWidget.cjs +133 -1
  146. package/dist/Components/NcDashboardWidget.cjs.map +1 -1
  147. package/dist/Components/NcDashboardWidget.mjs +128 -39
  148. package/dist/Components/NcDashboardWidget.mjs.map +1 -1
  149. package/dist/Components/NcDashboardWidgetItem.cjs +138 -1
  150. package/dist/Components/NcDashboardWidgetItem.cjs.map +1 -1
  151. package/dist/Components/NcDashboardWidgetItem.mjs +129 -22
  152. package/dist/Components/NcDashboardWidgetItem.mjs.map +1 -1
  153. package/dist/Components/NcDateTime.cjs +125 -0
  154. package/dist/Components/{NcDatetime.mjs.map → NcDateTime.cjs.map} +1 -1
  155. package/dist/Components/NcDateTime.mjs +129 -0
  156. package/dist/Components/{NcDatetime.cjs.map → NcDateTime.mjs.map} +1 -1
  157. package/dist/Components/NcDateTimePicker.cjs +217 -0
  158. package/dist/Components/NcDateTimePicker.cjs.map +1 -0
  159. package/dist/Components/NcDateTimePicker.mjs +228 -0
  160. package/dist/Components/NcDateTimePicker.mjs.map +1 -0
  161. package/dist/Components/NcDateTimePickerNative.cjs +199 -1
  162. package/dist/Components/NcDateTimePickerNative.cjs.map +1 -1
  163. package/dist/Components/NcDateTimePickerNative.mjs +195 -58
  164. package/dist/Components/NcDateTimePickerNative.mjs.map +1 -1
  165. package/dist/Components/NcEllipsisedOption.cjs +74 -1
  166. package/dist/Components/NcEllipsisedOption.cjs.map +1 -1
  167. package/dist/Components/NcEllipsisedOption.mjs +73 -20
  168. package/dist/Components/NcEllipsisedOption.mjs.map +1 -1
  169. package/dist/Components/NcEmojiPicker.cjs +175 -1
  170. package/dist/Components/NcEmojiPicker.cjs.map +1 -1
  171. package/dist/Components/NcEmojiPicker.mjs +173 -53
  172. package/dist/Components/NcEmojiPicker.mjs.map +1 -1
  173. package/dist/Components/NcEmptyContent.cjs +54 -1
  174. package/dist/Components/NcEmptyContent.cjs.map +1 -1
  175. package/dist/Components/NcEmptyContent.mjs +46 -10
  176. package/dist/Components/NcEmptyContent.mjs.map +1 -1
  177. package/dist/Components/NcGuestContent.cjs +26 -1
  178. package/dist/Components/NcGuestContent.cjs.map +1 -1
  179. package/dist/Components/NcGuestContent.mjs +24 -11
  180. package/dist/Components/NcGuestContent.mjs.map +1 -1
  181. package/dist/Components/NcHeaderMenu.cjs +167 -1
  182. package/dist/Components/NcHeaderMenu.cjs.map +1 -1
  183. package/dist/Components/NcHeaderMenu.mjs +161 -49
  184. package/dist/Components/NcHeaderMenu.mjs.map +1 -1
  185. package/dist/Components/NcHighlight.cjs +3 -1
  186. package/dist/Components/NcHighlight.cjs.map +1 -1
  187. package/dist/Components/NcHighlight.mjs +1 -1
  188. package/dist/Components/NcIconSvgWrapper.cjs +44 -1
  189. package/dist/Components/NcIconSvgWrapper.cjs.map +1 -1
  190. package/dist/Components/NcIconSvgWrapper.mjs +45 -15
  191. package/dist/Components/NcIconSvgWrapper.mjs.map +1 -1
  192. package/dist/Components/NcInputField.cjs +210 -1
  193. package/dist/Components/NcInputField.cjs.map +1 -1
  194. package/dist/Components/NcInputField.mjs +211 -38
  195. package/dist/Components/NcInputField.mjs.map +1 -1
  196. package/dist/Components/NcListItem.cjs +237 -1
  197. package/dist/Components/NcListItem.cjs.map +1 -1
  198. package/dist/Components/NcListItem.mjs +233 -57
  199. package/dist/Components/NcListItem.mjs.map +1 -1
  200. package/dist/Components/NcListItemIcon.cjs +150 -1
  201. package/dist/Components/NcListItemIcon.cjs.map +1 -1
  202. package/dist/Components/NcListItemIcon.mjs +142 -26
  203. package/dist/Components/NcListItemIcon.mjs.map +1 -1
  204. package/dist/Components/NcLoadingIcon.cjs +54 -1
  205. package/dist/Components/NcLoadingIcon.cjs.map +1 -1
  206. package/dist/Components/NcLoadingIcon.mjs +54 -14
  207. package/dist/Components/NcLoadingIcon.mjs.map +1 -1
  208. package/dist/Components/NcModal.cjs +405 -1
  209. package/dist/Components/NcModal.cjs.map +1 -1
  210. package/dist/Components/NcModal.mjs +401 -103
  211. package/dist/Components/NcModal.mjs.map +1 -1
  212. package/dist/Components/NcNoteCard.cjs +71 -1
  213. package/dist/Components/NcNoteCard.cjs.map +1 -1
  214. package/dist/Components/NcNoteCard.mjs +71 -37
  215. package/dist/Components/NcNoteCard.mjs.map +1 -1
  216. package/dist/Components/NcPasswordField.cjs +152 -1
  217. package/dist/Components/NcPasswordField.cjs.map +1 -1
  218. package/dist/Components/NcPasswordField.mjs +157 -53
  219. package/dist/Components/NcPasswordField.mjs.map +1 -1
  220. package/dist/Components/NcPopover.cjs +125 -1
  221. package/dist/Components/NcPopover.cjs.map +1 -1
  222. package/dist/Components/NcPopover.mjs +124 -41
  223. package/dist/Components/NcPopover.mjs.map +1 -1
  224. package/dist/Components/NcProgressBar.cjs +57 -1
  225. package/dist/Components/NcProgressBar.cjs.map +1 -1
  226. package/dist/Components/NcProgressBar.mjs +57 -15
  227. package/dist/Components/NcProgressBar.mjs.map +1 -1
  228. package/dist/Components/NcRelatedResourcesPanel.cjs +168 -1
  229. package/dist/Components/NcRelatedResourcesPanel.cjs.map +1 -1
  230. package/dist/Components/NcRelatedResourcesPanel.mjs +166 -60
  231. package/dist/Components/NcRelatedResourcesPanel.mjs.map +1 -1
  232. package/dist/Components/NcRichContenteditable.cjs +478 -1
  233. package/dist/Components/NcRichContenteditable.cjs.map +1 -1
  234. package/dist/Components/NcRichContenteditable.mjs +447 -127
  235. package/dist/Components/NcRichContenteditable.mjs.map +1 -1
  236. package/dist/Components/NcRichText.cjs +44 -1
  237. package/dist/Components/NcRichText.cjs.map +1 -1
  238. package/dist/Components/NcRichText.mjs +25 -4
  239. package/dist/Components/NcRichText.mjs.map +1 -1
  240. package/dist/Components/NcSavingIndicatorIcon.cjs +59 -1
  241. package/dist/Components/NcSavingIndicatorIcon.cjs.map +1 -1
  242. package/dist/Components/NcSavingIndicatorIcon.mjs +56 -9
  243. package/dist/Components/NcSavingIndicatorIcon.mjs.map +1 -1
  244. package/dist/Components/NcSelect.cjs +406 -1
  245. package/dist/Components/NcSelect.cjs.map +1 -1
  246. package/dist/Components/NcSelect.mjs +402 -49
  247. package/dist/Components/NcSelect.mjs.map +1 -1
  248. package/dist/Components/NcSelectTags.cjs +251 -2
  249. package/dist/Components/NcSelectTags.cjs.map +1 -1
  250. package/dist/Components/NcSelectTags.mjs +236 -73
  251. package/dist/Components/NcSelectTags.mjs.map +1 -1
  252. package/dist/Components/NcSettingsInputText.cjs +90 -1
  253. package/dist/Components/NcSettingsInputText.cjs.map +1 -1
  254. package/dist/Components/NcSettingsInputText.mjs +88 -19
  255. package/dist/Components/NcSettingsInputText.mjs.map +1 -1
  256. package/dist/Components/NcSettingsSection.cjs +62 -1
  257. package/dist/Components/NcSettingsSection.cjs.map +1 -1
  258. package/dist/Components/NcSettingsSection.mjs +62 -15
  259. package/dist/Components/NcSettingsSection.mjs.map +1 -1
  260. package/dist/Components/NcSettingsSelectGroup.cjs +26 -1
  261. package/dist/Components/NcSettingsSelectGroup.cjs.map +1 -1
  262. package/dist/Components/NcSettingsSelectGroup.mjs +24 -53
  263. package/dist/Components/NcSettingsSelectGroup.mjs.map +1 -1
  264. package/dist/Components/NcTextField.cjs +74 -1
  265. package/dist/Components/NcTextField.cjs.map +1 -1
  266. package/dist/Components/NcTextField.mjs +77 -21
  267. package/dist/Components/NcTextField.mjs.map +1 -1
  268. package/dist/Components/NcTimezonePicker.cjs +4387 -614
  269. package/dist/Components/NcTimezonePicker.cjs.map +1 -1
  270. package/dist/Components/NcTimezonePicker.mjs +4372 -663
  271. package/dist/Components/NcTimezonePicker.mjs.map +1 -1
  272. package/dist/Components/NcUserBubble.cjs +189 -1
  273. package/dist/Components/NcUserBubble.cjs.map +1 -1
  274. package/dist/Components/NcUserBubble.mjs +190 -47
  275. package/dist/Components/NcUserBubble.mjs.map +1 -1
  276. package/dist/Components/NcVNodes.cjs +35 -1
  277. package/dist/Components/NcVNodes.cjs.map +1 -1
  278. package/dist/Components/NcVNodes.mjs +35 -8
  279. package/dist/Components/NcVNodes.mjs.map +1 -1
  280. package/dist/Directives/Focus.cjs +30 -1
  281. package/dist/Directives/Focus.cjs.map +1 -1
  282. package/dist/Directives/Focus.mjs +28 -5
  283. package/dist/Directives/Focus.mjs.map +1 -1
  284. package/dist/Directives/Linkify.cjs +8 -1
  285. package/dist/Directives/Linkify.cjs.map +1 -1
  286. package/dist/Directives/Linkify.mjs +6 -6
  287. package/dist/Directives/Linkify.mjs.map +1 -1
  288. package/dist/Directives/Tooltip.cjs +37 -1
  289. package/dist/Directives/Tooltip.cjs.map +1 -1
  290. package/dist/Directives/Tooltip.mjs +29 -4
  291. package/dist/Directives/Tooltip.mjs.map +1 -1
  292. package/dist/Functions/emoji.cjs +36 -1
  293. package/dist/Functions/emoji.cjs.map +1 -1
  294. package/dist/Functions/emoji.mjs +32 -11
  295. package/dist/Functions/emoji.mjs.map +1 -1
  296. package/dist/Functions/usernameToColor.cjs +39 -1
  297. package/dist/Functions/usernameToColor.cjs.map +1 -1
  298. package/dist/Functions/usernameToColor.mjs +32 -11
  299. package/dist/Functions/usernameToColor.mjs.map +1 -1
  300. package/dist/Mixins/clickOutsideOptions.cjs +40 -1
  301. package/dist/Mixins/clickOutsideOptions.cjs.map +1 -1
  302. package/dist/Mixins/clickOutsideOptions.mjs +39 -4
  303. package/dist/Mixins/clickOutsideOptions.mjs.map +1 -1
  304. package/dist/Mixins/isFullscreen.cjs +44 -1
  305. package/dist/Mixins/isFullscreen.cjs.map +1 -1
  306. package/dist/Mixins/isFullscreen.mjs +42 -11
  307. package/dist/Mixins/isFullscreen.mjs.map +1 -1
  308. package/dist/Mixins/isMobile.cjs +87 -1
  309. package/dist/Mixins/isMobile.cjs.map +1 -1
  310. package/dist/Mixins/isMobile.mjs +86 -11
  311. package/dist/Mixins/isMobile.mjs.map +1 -1
  312. package/dist/Mixins/richEditor.cjs +10 -1
  313. package/dist/Mixins/richEditor.cjs.map +1 -1
  314. package/dist/Mixins/richEditor.mjs +2 -2
  315. package/dist/assets/{index28.css → NcAppNavigationToggle-2cc5b864.css} +16 -2
  316. package/dist/assets/NcInputConfirmCancel-2ba60a52.css +51 -0
  317. package/dist/assets/NcMentionBubble-6e887c5f.css +81 -0
  318. package/dist/assets/{index46.css → NcSettingsSelectGroup-0d38d76b.css} +15 -2
  319. package/dist/assets/index-01e5adf4.css +79 -0
  320. package/dist/assets/index-03ec5f40.css +60 -0
  321. package/dist/assets/{index.css → index-0557f12a.css} +26 -2
  322. package/dist/assets/index-0ab8e182.css +128 -0
  323. package/dist/assets/index-0adc989c.css +96 -0
  324. package/dist/assets/index-1151d229.css +41 -0
  325. package/dist/assets/index-165fce0e.css +82 -0
  326. package/dist/assets/index-194e9415.css +163 -0
  327. package/dist/assets/index-1beccc92.css +140 -0
  328. package/dist/assets/index-1cf8eeb4.css +97 -0
  329. package/dist/assets/index-23e64bbb.css +59 -0
  330. package/dist/assets/{index50.css → index-24f6c355.css} +67 -3
  331. package/dist/assets/index-294382c8.css +879 -0
  332. package/dist/assets/index-2a8e4ca1.css +540 -0
  333. package/dist/assets/index-2d4de2fc.css +38 -0
  334. package/dist/assets/{index2.css → index-30e099f7.css} +17 -2
  335. package/dist/assets/{NcInputConfirmCancel.css → index-33da80f0.css} +32 -2
  336. package/dist/assets/index-34dfc54e.css +88 -0
  337. package/dist/assets/index-3764a447.css +99 -0
  338. package/dist/assets/index-376d2dec.css +243 -0
  339. package/dist/assets/{index17.css → index-441b6552.css} +25 -2
  340. package/dist/assets/index-4a775ba1.css +204 -0
  341. package/dist/assets/index-4ebacc78.css +107 -0
  342. package/dist/assets/index-4ef32afd.css +128 -0
  343. package/dist/assets/{index47.css → index-5072b6ee.css} +77 -3
  344. package/dist/assets/index-50b0766d.css +202 -0
  345. package/dist/assets/index-5eff69c7.css +149 -0
  346. package/dist/assets/index-5fa0ac5a.css +46 -0
  347. package/dist/assets/index-61b63a8f.css +57 -0
  348. package/dist/assets/index-6405cd50.css +76 -0
  349. package/dist/assets/index-6416f636.css +83 -0
  350. package/dist/assets/index-6c47e88a.css +46 -0
  351. package/dist/assets/index-76a58945.css +68 -0
  352. package/dist/assets/index-76dd9f11.css +5 -0
  353. package/dist/assets/index-7768d5e5.css +148 -0
  354. package/dist/assets/index-7813bab3.css +66 -0
  355. package/dist/assets/index-793eae6b.css +234 -0
  356. package/dist/assets/index-8aa4712e.css +51 -0
  357. package/dist/assets/{index27.css → index-8f52a20f.css} +16 -2
  358. package/dist/assets/index-9354264c.css +80 -0
  359. package/dist/assets/index-93ad846c.css +259 -0
  360. package/dist/assets/index-a2b51bce.css +47 -0
  361. package/dist/assets/index-a2d55f92.css +204 -0
  362. package/dist/assets/{index13.css → index-a9e4fe04.css} +27 -2
  363. package/dist/assets/{NcAppNavigationToggle.css → index-b8f13a1f.css} +13 -2
  364. package/dist/assets/index-b991895f.css +87 -0
  365. package/dist/assets/{index48.css → index-baf8711a.css} +67 -3
  366. package/dist/assets/index-becfbea7.css +128 -0
  367. package/dist/assets/index-c6f0da2e.css +69 -0
  368. package/dist/assets/index-c7905a53.css +44 -0
  369. package/dist/assets/index-d211cae8.css +93 -0
  370. package/dist/assets/{index22.css → index-d646553d.css} +22 -2
  371. package/dist/assets/index-de0326c7.css +304 -0
  372. package/dist/assets/index-ed4adf1d.css +115 -0
  373. package/dist/assets/index-edee3304.css +52 -0
  374. package/dist/assets/index-fbdeb5ab.css +303 -0
  375. package/dist/assets/index-fc61f2d8.css +41 -0
  376. package/dist/assets/index-fec4bb7b.css +132 -0
  377. package/dist/assets/referencePickerModal-0acecb5e.css +482 -0
  378. package/dist/chunks/GenColors-38246c38.mjs +46 -0
  379. package/dist/chunks/{GenColors-8097de04.cjs.map → GenColors-38246c38.mjs.map} +1 -1
  380. package/dist/chunks/GenColors-eedcc70a.cjs +45 -0
  381. package/dist/chunks/{GenColors-85cb6194.mjs.map → GenColors-eedcc70a.cjs.map} +1 -1
  382. package/dist/{assets/index29.css → chunks/GenRandomId-c214d235.cjs} +8 -5
  383. package/dist/chunks/{GenRandomId-67df40eb.cjs.map → GenRandomId-c214d235.cjs.map} +1 -1
  384. package/dist/chunks/GenRandomId-cb9ccebe.mjs +25 -0
  385. package/dist/chunks/{GenRandomId-1e1b509a.mjs.map → GenRandomId-cb9ccebe.mjs.map} +1 -1
  386. package/dist/chunks/Linkify-39f20c9a.mjs +33 -0
  387. package/dist/chunks/{Linkify-a0faf443.mjs.map → Linkify-39f20c9a.mjs.map} +1 -1
  388. package/dist/chunks/Linkify-40cdd635.cjs +32 -0
  389. package/dist/chunks/{Linkify-a4db36a9.cjs.map → Linkify-40cdd635.cjs.map} +1 -1
  390. package/dist/chunks/NcAppNavigationToggle-960658a0.cjs +49 -0
  391. package/dist/chunks/NcAppNavigationToggle-960658a0.cjs.map +1 -0
  392. package/dist/chunks/NcAppNavigationToggle-d868f651.mjs +55 -0
  393. package/dist/chunks/NcAppNavigationToggle-d868f651.mjs.map +1 -0
  394. package/dist/chunks/NcInputConfirmCancel-0c4bee9a.cjs +83 -0
  395. package/dist/chunks/NcInputConfirmCancel-0c4bee9a.cjs.map +1 -0
  396. package/dist/chunks/NcInputConfirmCancel-f881168d.mjs +89 -0
  397. package/dist/chunks/NcInputConfirmCancel-f881168d.mjs.map +1 -0
  398. package/dist/chunks/NcRichText-1c3d2654.mjs +302 -0
  399. package/dist/chunks/{NcRichText-13b09624.mjs.map → NcRichText-1c3d2654.mjs.map} +1 -1
  400. package/dist/chunks/NcRichText-d385dc10.cjs +289 -0
  401. package/dist/chunks/{NcRichText-1e8854a1.cjs.map → NcRichText-d385dc10.cjs.map} +1 -1
  402. package/dist/chunks/NcSettingsSelectGroup-0f4a0f94.mjs +192 -0
  403. package/dist/chunks/NcSettingsSelectGroup-0f4a0f94.mjs.map +1 -0
  404. package/dist/chunks/NcSettingsSelectGroup-47d9c113.cjs +183 -0
  405. package/dist/chunks/NcSettingsSelectGroup-47d9c113.cjs.map +1 -0
  406. package/dist/chunks/ScopeComponent-1c75ec38.cjs +28 -0
  407. package/dist/chunks/{ScopeComponent-f6122f5a.cjs.map → ScopeComponent-1c75ec38.cjs.map} +1 -1
  408. package/dist/chunks/ScopeComponent-97a014a1.mjs +29 -0
  409. package/dist/chunks/{ScopeComponent-dbcd0e07.mjs.map → ScopeComponent-97a014a1.mjs.map} +1 -1
  410. package/dist/chunks/_plugin-vue2_normalizer-71e2aa87.mjs +32 -0
  411. package/dist/chunks/_plugin-vue2_normalizer-71e2aa87.mjs.map +1 -0
  412. package/dist/chunks/_plugin-vue2_normalizer-7f9efb60.cjs +31 -0
  413. package/dist/chunks/_plugin-vue2_normalizer-7f9efb60.cjs.map +1 -0
  414. package/dist/chunks/actionGlobal-8c1c28c9.mjs +50 -0
  415. package/dist/chunks/{actionGlobal-cda46023.mjs.map → actionGlobal-8c1c28c9.mjs.map} +1 -1
  416. package/dist/chunks/actionGlobal-9e29e11b.cjs +49 -0
  417. package/dist/chunks/{actionGlobal-ec7003e8.cjs.map → actionGlobal-9e29e11b.cjs.map} +1 -1
  418. package/dist/chunks/actionText-9f5c55bd.mjs +121 -0
  419. package/dist/chunks/{actionText-6c35d3fc.mjs.map → actionText-9f5c55bd.mjs.map} +1 -1
  420. package/dist/chunks/actionText-b0bd6eb7.cjs +120 -0
  421. package/dist/chunks/{actionText-bef01778.cjs.map → actionText-b0bd6eb7.cjs.map} +1 -1
  422. package/dist/chunks/focusTrap-14985831.cjs +26 -0
  423. package/dist/chunks/{focusTrap-173aba65.mjs.map → focusTrap-14985831.cjs.map} +1 -1
  424. package/dist/chunks/focusTrap-5d0f71d4.mjs +27 -0
  425. package/dist/chunks/{focusTrap-139520e2.cjs.map → focusTrap-5d0f71d4.mjs.map} +1 -1
  426. package/dist/chunks/index-20a9ace9.mjs +149 -0
  427. package/dist/chunks/{index-cd3f1f8f.mjs.map → index-20a9ace9.mjs.map} +1 -1
  428. package/dist/chunks/index-2a5b8ace.cjs +434 -0
  429. package/dist/chunks/index-2a5b8ace.cjs.map +1 -0
  430. package/dist/chunks/index-4398f925.cjs +149 -0
  431. package/dist/chunks/{index-c4cd0463.cjs.map → index-4398f925.cjs.map} +1 -1
  432. package/dist/chunks/index-5f2a5f57.mjs +155 -0
  433. package/dist/chunks/{index-9c621303.mjs.map → index-5f2a5f57.mjs.map} +1 -1
  434. package/dist/chunks/index-6c221fa0.mjs +447 -0
  435. package/dist/chunks/index-6c221fa0.mjs.map +1 -0
  436. package/dist/chunks/index-e894376a.cjs +148 -0
  437. package/dist/chunks/{index-df3f51c6.cjs.map → index-e894376a.cjs.map} +1 -1
  438. package/dist/chunks/l10n-27a75c40.mjs +31 -0
  439. package/dist/chunks/l10n-27a75c40.mjs.map +1 -0
  440. package/dist/chunks/l10n-4326316a.cjs +8 -0
  441. package/dist/chunks/l10n-4326316a.cjs.map +1 -0
  442. package/dist/chunks/l10n-903083c4.cjs +29 -0
  443. package/dist/chunks/l10n-903083c4.cjs.map +1 -0
  444. package/dist/chunks/l10n-c5f5f001.mjs +10 -0
  445. package/dist/chunks/l10n-c5f5f001.mjs.map +1 -0
  446. package/dist/chunks/logger-3612e664.mjs +25 -0
  447. package/dist/chunks/{logger-01af1a78.cjs.map → logger-3612e664.mjs.map} +1 -1
  448. package/dist/chunks/logger-4998b668.cjs +24 -0
  449. package/dist/chunks/{logger-ccc7ee65.mjs.map → logger-4998b668.cjs.map} +1 -1
  450. package/dist/chunks/referencePickerModal-0fde503d.mjs +877 -0
  451. package/dist/chunks/referencePickerModal-0fde503d.mjs.map +1 -0
  452. package/dist/chunks/referencePickerModal-9b4ff88d.cjs +858 -0
  453. package/dist/chunks/referencePickerModal-9b4ff88d.cjs.map +1 -0
  454. package/dist/index.cjs +251 -1
  455. package/dist/index.cjs.map +1 -1
  456. package/dist/index.mjs +286 -140
  457. package/dist/index.mjs.map +1 -1
  458. package/package.json +7 -7
  459. package/dist/Components/NcDatetime.cjs +0 -1
  460. package/dist/Components/NcDatetime.mjs +0 -44
  461. package/dist/Components/NcDatetimePicker.cjs +0 -1
  462. package/dist/Components/NcDatetimePicker.cjs.map +0 -1
  463. package/dist/Components/NcDatetimePicker.mjs +0 -69
  464. package/dist/Components/NcDatetimePicker.mjs.map +0 -1
  465. package/dist/assets/NcMentionBubble.css +0 -21
  466. package/dist/assets/index10.css +0 -21
  467. package/dist/assets/index11.css +0 -21
  468. package/dist/assets/index12.css +0 -21
  469. package/dist/assets/index14.css +0 -21
  470. package/dist/assets/index15.css +0 -21
  471. package/dist/assets/index16.css +0 -21
  472. package/dist/assets/index18.css +0 -21
  473. package/dist/assets/index19.css +0 -21
  474. package/dist/assets/index20.css +0 -21
  475. package/dist/assets/index21.css +0 -21
  476. package/dist/assets/index23.css +0 -21
  477. package/dist/assets/index24.css +0 -1
  478. package/dist/assets/index25.css +0 -21
  479. package/dist/assets/index26.css +0 -21
  480. package/dist/assets/index3.css +0 -21
  481. package/dist/assets/index30.css +0 -21
  482. package/dist/assets/index31.css +0 -21
  483. package/dist/assets/index32.css +0 -21
  484. package/dist/assets/index33.css +0 -21
  485. package/dist/assets/index34.css +0 -21
  486. package/dist/assets/index35.css +0 -21
  487. package/dist/assets/index36.css +0 -21
  488. package/dist/assets/index37.css +0 -21
  489. package/dist/assets/index38.css +0 -21
  490. package/dist/assets/index39.css +0 -21
  491. package/dist/assets/index4.css +0 -21
  492. package/dist/assets/index40.css +0 -21
  493. package/dist/assets/index41.css +0 -21
  494. package/dist/assets/index42.css +0 -21
  495. package/dist/assets/index43.css +0 -42
  496. package/dist/assets/index44.css +0 -21
  497. package/dist/assets/index45.css +0 -42
  498. package/dist/assets/index49.css +0 -42
  499. package/dist/assets/index5.css +0 -21
  500. package/dist/assets/index51.css +0 -21
  501. package/dist/assets/index52.css +0 -21
  502. package/dist/assets/index53.css +0 -42
  503. package/dist/assets/index54.css +0 -21
  504. package/dist/assets/index55.css +0 -21
  505. package/dist/assets/index56.css +0 -21
  506. package/dist/assets/index57.css +0 -21
  507. package/dist/assets/index58.css +0 -42
  508. package/dist/assets/index6.css +0 -21
  509. package/dist/assets/index7.css +0 -21
  510. package/dist/assets/index8.css +0 -21
  511. package/dist/assets/index9.css +0 -21
  512. package/dist/assets/referencePickerModal.css +0 -21
  513. package/dist/chunks/GenColors-8097de04.cjs +0 -1
  514. package/dist/chunks/GenColors-85cb6194.mjs +0 -25
  515. package/dist/chunks/GenRandomId-1e1b509a.mjs +0 -4
  516. package/dist/chunks/GenRandomId-67df40eb.cjs +0 -1
  517. package/dist/chunks/IsMobileState-151fc57d.cjs +0 -1
  518. package/dist/chunks/IsMobileState-151fc57d.cjs.map +0 -1
  519. package/dist/chunks/IsMobileState-e1fe5f58.mjs +0 -15
  520. package/dist/chunks/IsMobileState-e1fe5f58.mjs.map +0 -1
  521. package/dist/chunks/Linkify-a0faf443.mjs +0 -5
  522. package/dist/chunks/Linkify-a4db36a9.cjs +0 -1
  523. package/dist/chunks/NcAppNavigationToggle-5aa396d7.mjs +0 -23
  524. package/dist/chunks/NcAppNavigationToggle-5aa396d7.mjs.map +0 -1
  525. package/dist/chunks/NcAppNavigationToggle-c566f66e.cjs +0 -1
  526. package/dist/chunks/NcAppNavigationToggle-c566f66e.cjs.map +0 -1
  527. package/dist/chunks/NcInputConfirmCancel-77c2b04f.cjs +0 -1
  528. package/dist/chunks/NcInputConfirmCancel-77c2b04f.cjs.map +0 -1
  529. package/dist/chunks/NcInputConfirmCancel-c440e1b1.mjs +0 -43
  530. package/dist/chunks/NcInputConfirmCancel-c440e1b1.mjs.map +0 -1
  531. package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_357e6d0e_lang-b35c2f97.cjs.map +0 -1
  532. package/dist/chunks/NcMentionBubble.vue_vue_type_style_index_0_scoped_357e6d0e_lang-b99cdc21.mjs.map +0 -1
  533. package/dist/chunks/NcRichText-13b09624.mjs +0 -123
  534. package/dist/chunks/NcRichText-1e8854a1.cjs +0 -1
  535. package/dist/chunks/ScopeComponent-dbcd0e07.mjs +0 -8
  536. package/dist/chunks/ScopeComponent-f6122f5a.cjs +0 -1
  537. package/dist/chunks/_plugin-vue2_normalizer-5b4c43a4.mjs +0 -24
  538. package/dist/chunks/_plugin-vue2_normalizer-5b4c43a4.mjs.map +0 -1
  539. package/dist/chunks/_plugin-vue2_normalizer-764a4c12.cjs +0 -1
  540. package/dist/chunks/_plugin-vue2_normalizer-764a4c12.cjs.map +0 -1
  541. package/dist/chunks/actionGlobal-cda46023.mjs +0 -15
  542. package/dist/chunks/actionGlobal-ec7003e8.cjs +0 -1
  543. package/dist/chunks/actionText-6c35d3fc.mjs +0 -23
  544. package/dist/chunks/actionText-bef01778.cjs +0 -1
  545. package/dist/chunks/focusTrap-139520e2.cjs +0 -1
  546. package/dist/chunks/focusTrap-173aba65.mjs +0 -6
  547. package/dist/chunks/index-12fa9b26.cjs +0 -1
  548. package/dist/chunks/index-12fa9b26.cjs.map +0 -1
  549. package/dist/chunks/index-7aa3fc24.mjs +0 -171
  550. package/dist/chunks/index-7aa3fc24.mjs.map +0 -1
  551. package/dist/chunks/index-9c621303.mjs +0 -46
  552. package/dist/chunks/index-c4cd0463.cjs +0 -3
  553. package/dist/chunks/index-cd3f1f8f.mjs +0 -43
  554. package/dist/chunks/index-df3f51c6.cjs +0 -1
  555. package/dist/chunks/l10n-05baf7da.mjs +0 -5
  556. package/dist/chunks/l10n-05baf7da.mjs.map +0 -1
  557. package/dist/chunks/l10n-46d0c1c0.cjs +0 -1
  558. package/dist/chunks/l10n-46d0c1c0.cjs.map +0 -1
  559. package/dist/chunks/l10n-9a5a6afc.mjs +0 -18
  560. package/dist/chunks/l10n-9a5a6afc.mjs.map +0 -1
  561. package/dist/chunks/l10n-dacb6440.cjs +0 -1
  562. package/dist/chunks/l10n-dacb6440.cjs.map +0 -1
  563. package/dist/chunks/logger-01af1a78.cjs +0 -1
  564. package/dist/chunks/logger-ccc7ee65.mjs +0 -5
  565. package/dist/chunks/referencePickerModal-2b16b319.mjs +0 -428
  566. package/dist/chunks/referencePickerModal-2b16b319.mjs.map +0 -1
  567. package/dist/chunks/referencePickerModal-44160fb3.cjs +0 -1
  568. package/dist/chunks/referencePickerModal-44160fb3.cjs.map +0 -1
@@ -0,0 +1,183 @@
1
+ var y = require("../assets/NcSettingsSelectGroup-0d38d76b.css");
2
+ const a = require("../Components/NcSelect.cjs"), i = require("./l10n-903083c4.cjs"), n = require("./l10n-4326316a.cjs"), o = require("./GenRandomId-c214d235.cjs"), l = require("@nextcloud/axios"), u = require("@nextcloud/router"), c = require("debounce"), d = require("./_plugin-vue2_normalizer-7f9efb60.cjs"), p = (t) => t && t.__esModule ? t : { default: t }, h = /* @__PURE__ */ p(l);
3
+ const g = {
4
+ name: "NcSettingsSelectGroup",
5
+ components: {
6
+ NcSelect: a
7
+ },
8
+ mixins: [n.l10n],
9
+ props: {
10
+ /**
11
+ * The text of the label element of the select group input
12
+ */
13
+ label: {
14
+ type: String,
15
+ required: !0
16
+ },
17
+ /**
18
+ * Placeholder for the input element
19
+ * For backwards compatibility it falls back to the `label` value
20
+ */
21
+ placeholder: {
22
+ type: String,
23
+ default: ""
24
+ },
25
+ /**
26
+ * id attribute of the select group element
27
+ */
28
+ id: {
29
+ type: String,
30
+ default: () => "action-" + o.GenRandomId(),
31
+ validator: (t) => t.trim() !== ""
32
+ },
33
+ /**
34
+ * value of the select group input
35
+ * A list of group IDs can be provided
36
+ */
37
+ value: {
38
+ type: Array,
39
+ default: () => []
40
+ },
41
+ /**
42
+ * disabled state of the settings select group input
43
+ */
44
+ disabled: {
45
+ type: Boolean,
46
+ default: !1
47
+ }
48
+ },
49
+ emits: [
50
+ "input",
51
+ "error"
52
+ ],
53
+ data() {
54
+ return {
55
+ /** Temporary store to cache groups */
56
+ groups: {},
57
+ randId: o.GenRandomId(),
58
+ errorMessage: ""
59
+ };
60
+ },
61
+ computed: {
62
+ /**
63
+ * If the error message should be shown
64
+ */
65
+ hasError() {
66
+ return this.errorMessage !== "";
67
+ },
68
+ /**
69
+ * Validate input value and only return valid strings (group IDs)
70
+ *
71
+ * @return {string[]}
72
+ */
73
+ filteredValue() {
74
+ return this.value.filter((t) => t !== "" && typeof t == "string");
75
+ },
76
+ /**
77
+ * value property converted to an array of group objects used as input for the NcSelect
78
+ */
79
+ inputValue() {
80
+ return this.filteredValue.map(
81
+ (t) => typeof this.groups[t] > "u" ? {
82
+ id: t,
83
+ displayname: t
84
+ } : this.groups[t]
85
+ );
86
+ },
87
+ /**
88
+ * Convert groups object to array of groups required for NcSelect.options
89
+ * Filter out currently selected values
90
+ *
91
+ * @return {object[]}
92
+ */
93
+ groupsArray() {
94
+ return Object.values(this.groups).filter((t) => !this.value.includes(t.id));
95
+ }
96
+ },
97
+ watch: {
98
+ /**
99
+ * If the value is changed, check that all groups are loaded so we show the correct display name
100
+ */
101
+ value: {
102
+ handler() {
103
+ const t = Object.keys(this.groups);
104
+ this.filteredValue.filter((r) => !t.includes(r)).forEach((r) => {
105
+ this.loadGroup(r);
106
+ });
107
+ },
108
+ // Run the watch handler also when the component is initially mounted
109
+ immediate: !0
110
+ }
111
+ },
112
+ /**
113
+ * Load groups matching the empty query to reduce API calls
114
+ */
115
+ async mounted() {
116
+ const t = `${appName}:${appVersion}/initialGroups`;
117
+ let e = window.sessionStorage.getItem(t);
118
+ e ? (e = Object.fromEntries(JSON.parse(e).map((r) => [r.id, r])), this.groups = { ...this.groups, ...e }) : (await this.loadGroup(""), window.sessionStorage.setItem(t, JSON.stringify(Object.values(this.groups))));
119
+ },
120
+ methods: {
121
+ /**
122
+ * Called when a new group is selected or previous group is deselected to emit the update event
123
+ *
124
+ * @param {object[]} updatedValue Array of selected groups
125
+ */
126
+ update(t) {
127
+ const e = t.map((r) => r.id);
128
+ this.$emit("input", e);
129
+ },
130
+ /**
131
+ * Use provisioning API to search for given group and save it in the groups object
132
+ *
133
+ * @param {string} query The query like parts of the id oder display name
134
+ * @return {boolean}
135
+ */
136
+ async loadGroup(t) {
137
+ try {
138
+ t = typeof t == "string" ? encodeURI(t) : "";
139
+ const e = await h.default.get(u.generateOcsUrl(`cloud/groups/details?search=${t}&limit=10`, 2));
140
+ if (this.errorMessage !== "" && window.setTimeout(() => {
141
+ this.errorMessage = "";
142
+ }, 5e3), Object.keys(e.data.ocs.data.groups).length > 0) {
143
+ const r = Object.fromEntries(e.data.ocs.data.groups.map((s) => [s.id, s]));
144
+ return this.groups = { ...this.groups, ...r }, !0;
145
+ }
146
+ } catch (e) {
147
+ this.$emit("error", e), this.errorMessage = i.t("Unable to search the group");
148
+ }
149
+ return !1;
150
+ },
151
+ /**
152
+ * Custom filter function for `NcSelect` to filter by ID *and* display name
153
+ *
154
+ * @param {object} option One of the groups
155
+ * @param {string} label The label property of the group
156
+ * @param {string} search The current search string
157
+ */
158
+ filterGroups(t, e, r) {
159
+ return `${e || ""} ${t.id}`.toLocaleLowerCase().indexOf(r.toLocaleLowerCase()) > -1;
160
+ },
161
+ /**
162
+ * Debounce the group search (reduce API calls)
163
+ */
164
+ onSearch: c.debounce(function(t) {
165
+ this.loadGroup(t);
166
+ }, 200)
167
+ }
168
+ };
169
+ var m = function() {
170
+ var e = this, r = e._self._c;
171
+ return r("div", [e.label ? r("label", { staticClass: "hidden-visually", attrs: { for: e.id } }, [e._v(e._s(e.label))]) : e._e(), r("NcSelect", { attrs: { value: e.inputValue, options: e.groupsArray, placeholder: e.placeholder || e.label, "filter-by": e.filterGroups, "input-id": e.id, limit: 5, label: "displayname", multiple: !0, "close-on-select": !1, disabled: e.disabled }, on: { input: e.update, search: e.onSearch } }), r("div", { directives: [{ name: "show", rawName: "v-show", value: e.hasError, expression: "hasError" }], staticClass: "select-group-error" }, [e._v(" " + e._s(e.errorMessage) + " ")])], 1);
172
+ }, f = [], _ = /* @__PURE__ */ d.normalizeComponent(
173
+ g,
174
+ m,
175
+ f,
176
+ !1,
177
+ null,
178
+ "5a35ccce",
179
+ null,
180
+ null
181
+ );
182
+ const v = _.exports;
183
+ exports.NcSettingsSelectGroup = v;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcSettingsSelectGroup-47d9c113.cjs","sources":["../../src/components/NcSettingsSelectGroup/NcSettingsSelectGroup.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n -\n - @author Julius Härtl <jus@bitgrid.net>\n - @author Greta Doci <gretadoci@gmail.com>\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n```vue\n<template>\n\t<section>\n\t\t<NcSettingsSelectGroup v-model=\"groups\" placeholder=\"Select user groups\" label=\"The hidden label\" />\n\t\t<NcSettingsSelectGroup v-model=\"otherGroups\" :disabled=\"true\" label=\"Also a fallback for the placeholder\" />\n\t\t<div>You have selected: <code>{{ groups }}</code> and <code>{{ otherGroups }}</code></div>\n\t</section>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tgroups: [],\n\t\t\totherGroups: ['admin']\n\t\t}\n\t}\n}\n</script>\n<style scoped>\nsection * {\n\tpadding: 6px 0px;\n}\n</style>\n```\n</docs>\n\n<template>\n\t<div>\n\t\t<label v-if=\"label\" :for=\"id\" class=\"hidden-visually\">{{ label }}</label>\n\t\t<NcSelect :value=\"inputValue\"\n\t\t\t:options=\"groupsArray\"\n\t\t\t:placeholder=\"placeholder || label\"\n\t\t\t:filter-by=\"filterGroups\"\n\t\t\t:input-id=\"id\"\n\t\t\t:limit=\"5\"\n\t\t\tlabel=\"displayname\"\n\t\t\t:multiple=\"true\"\n\t\t\t:close-on-select=\"false\"\n\t\t\t:disabled=\"disabled\"\n\t\t\t@input=\"update\"\n\t\t\t@search=\"onSearch\" />\n\t\t<div v-show=\"hasError\" class=\"select-group-error\">\n\t\t\t{{ errorMessage }}\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport NcSelect from '../../components/NcSelect/index.js'\nimport { t } from '../../l10n.js'\nimport l10n from '../../mixins/l10n.js'\nimport GenRandomId from '../../utils/GenRandomId.js'\n\nimport axios from '@nextcloud/axios'\nimport { generateOcsUrl } from '@nextcloud/router'\nimport { debounce } from 'debounce'\n\nexport default {\n\tname: 'NcSettingsSelectGroup',\n\tcomponents: {\n\t\tNcSelect,\n\t},\n\tmixins: [l10n],\n\tprops: {\n\t\t/**\n\t\t * The text of the label element of the select group input\n\t\t */\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\t/**\n\t\t * Placeholder for the input element\n\t\t * For backwards compatibility it falls back to the `label` value\n\t\t */\n\t\tplaceholder: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * id attribute of the select group element\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: () => 'action-' + GenRandomId(),\n\t\t\tvalidator: id => id.trim() !== '',\n\t\t},\n\n\t\t/**\n\t\t * value of the select group input\n\t\t * A list of group IDs can be provided\n\t\t */\n\t\tvalue: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * disabled state of the settings select group input\n\t\t */\n\t\tdisabled: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t},\n\temits: [\n\t\t'input',\n\t\t'error',\n\t],\n\tdata() {\n\t\treturn {\n\t\t\t/** Temporary store to cache groups */\n\t\t\tgroups: {},\n\t\t\trandId: GenRandomId(),\n\t\t\terrorMessage: '',\n\t\t}\n\t},\n\tcomputed: {\n\t\t/**\n\t\t * If the error message should be shown\n\t\t */\n\t\thasError() {\n\t\t\treturn this.errorMessage !== ''\n\t\t},\n\n\t\t/**\n\t\t * Validate input value and only return valid strings (group IDs)\n\t\t *\n\t\t * @return {string[]}\n\t\t */\n\t\tfilteredValue() {\n\t\t\treturn this.value.filter((group) => group !== '' && typeof group === 'string')\n\t\t},\n\n\t\t/**\n\t\t * value property converted to an array of group objects used as input for the NcSelect\n\t\t */\n\t\tinputValue() {\n\t\t\treturn this.filteredValue.map(\n\t\t\t\t(id) => {\n\t\t\t\t\tif (typeof this.groups[id] === 'undefined') {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tid,\n\t\t\t\t\t\t\tdisplayname: id,\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this.groups[id]\n\t\t\t\t},\n\t\t\t)\n\t\t},\n\n\t\t/**\n\t\t * Convert groups object to array of groups required for NcSelect.options\n\t\t * Filter out currently selected values\n\t\t *\n\t\t * @return {object[]}\n\t\t */\n\t\tgroupsArray() {\n\t\t\treturn Object.values(this.groups).filter(g => !this.value.includes(g.id))\n\t\t},\n\t},\n\twatch: {\n\t\t/**\n\t\t * If the value is changed, check that all groups are loaded so we show the correct display name\n\t\t */\n\t\tvalue: {\n\t\t\thandler() {\n\t\t\t\tconst loadedGroupIds = Object.keys(this.groups)\n\t\t\t\tconst missing = this.filteredValue.filter(group => !loadedGroupIds.includes(group))\n\t\t\t\tmissing.forEach((groupId) => {\n\t\t\t\t\tthis.loadGroup(groupId)\n\t\t\t\t})\n\t\t\t},\n\t\t\t// Run the watch handler also when the component is initially mounted\n\t\t\timmediate: true,\n\t\t},\n\t},\n\t/**\n\t * Load groups matching the empty query to reduce API calls\n\t */\n\tasync mounted() {\n\t\t// version scoped to prevent issues with different library versions\n\t\tconst storageName = `${appName}:${appVersion}/initialGroups`\n\n\t\tlet savedGroups = window.sessionStorage.getItem(storageName)\n\t\tif (savedGroups) {\n\t\t\tsavedGroups = Object.fromEntries(JSON.parse(savedGroups).map(group => [group.id, group]))\n\t\t\tthis.groups = { ...this.groups, ...savedGroups }\n\t\t} else {\n\t\t\tawait this.loadGroup('')\n\t\t\twindow.sessionStorage.setItem(storageName, JSON.stringify(Object.values(this.groups)))\n\t\t}\n\t},\n\tmethods: {\n\t\t/**\n\t\t * Called when a new group is selected or previous group is deselected to emit the update event\n\t\t *\n\t\t * @param {object[]} updatedValue Array of selected groups\n\t\t */\n\t\tupdate(updatedValue) {\n\t\t\tconst value = updatedValue.map((element) => element.id)\n\t\t\t/** Emitted when the groups selection changes<br />**Payload:** `value` (`Array`) - *Ids of selected groups */\n\t\t\tthis.$emit('input', value)\n\t\t},\n\n\t\t/**\n\t\t * Use provisioning API to search for given group and save it in the groups object\n\t\t *\n\t\t * @param {string} query The query like parts of the id oder display name\n\t\t * @return {boolean}\n\t\t */\n\t\tasync loadGroup(query) {\n\t\t\ttry {\n\t\t\t\tquery = typeof query === 'string' ? encodeURI(query) : ''\n\t\t\t\tconst response = await axios.get(generateOcsUrl(`cloud/groups/details?search=${query}&limit=10`, 2))\n\n\t\t\t\t// No network error, so reset any error after 5 seconds\n\t\t\t\tif (this.errorMessage !== '') {\n\t\t\t\t\twindow.setTimeout(() => {\n\t\t\t\t\t\tthis.errorMessage = ''\n\t\t\t\t\t}, 5000)\n\t\t\t\t}\n\n\t\t\t\tif (Object.keys(response.data.ocs.data.groups).length > 0) {\n\t\t\t\t\tconst newGroups = Object.fromEntries(response.data.ocs.data.groups.map((element) => [element.id, element]))\n\t\t\t\t\tthis.groups = { ...this.groups, ...newGroups }\n\t\t\t\t\treturn true\n\t\t\t\t}\n\t\t\t} catch (error) {\n\t\t\t\t/** Emitted if groups could not be queried.<br />**Payload:** `error` (`object`) - The Axios error */\n\t\t\t\tthis.$emit('error', error)\n\t\t\t\tthis.errorMessage = t('Unable to search the group')\n\t\t\t}\n\t\t\treturn false\n\t\t},\n\n\t\t/**\n\t\t * Custom filter function for `NcSelect` to filter by ID *and* display name\n\t\t *\n\t\t * @param {object} option One of the groups\n\t\t * @param {string} label The label property of the group\n\t\t * @param {string} search The current search string\n\t\t */\n\t\tfilterGroups(option, label, search) {\n\t\t\treturn `${label || ''} ${option.id}`.toLocaleLowerCase().indexOf(search.toLocaleLowerCase()) > -1\n\t\t},\n\n\t\t/**\n\t\t * Debounce the group search (reduce API calls)\n\t\t */\n\t\tonSearch: debounce(function(query) {\n\t\t\tthis.loadGroup(query)\n\t\t}, 200),\n\t},\n}\n</script>\n\n<style scoped lang=\"scss\">\n.select-group-error {\n\tcolor: var(--color-error);\n\tfont-size: 13px;\n\tpadding-inline-start: var(--border-radius-large);\n}\n</style>\n"],"names":["_sfc_main","Components_NcSelect","l10n","GenRandomId","id","group","g","loadedGroupIds","groupId","storageName","savedGroups","updatedValue","value","element","query","response","axios__default","router","newGroups","error","l10n$1","option","label","search","debounce"],"mappings":";;AAkFA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EACA,YAAA;AAAA,IACA,UAAAC;AAAA,EACA;AAAA,EACA,QAAA,CAAAC,EAAA,IAAA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,IAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA,MAAA,YAAAC,EAAA,YAAA;AAAA,MACA,WAAA,CAAAC,MAAAA,EAAA,KAAA,MAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA,MAAA,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,OAAA;AAAA,IACA;AAAA,IACA;AAAA,EACA;AAAA,EACA,OAAA;AACA,WAAA;AAAA;AAAA,MAEA,QAAA,CAAA;AAAA,MACA,QAAAD,EAAA,YAAA;AAAA,MACA,cAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,UAAA;AAAA;AAAA;AAAA;AAAA,IAIA,WAAA;AACA,aAAA,KAAA,iBAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,gBAAA;AACA,aAAA,KAAA,MAAA,OAAA,CAAAE,MAAAA,MAAA,MAAA,OAAAA,KAAA,QAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,aAAA;AACA,aAAA,KAAA,cAAA;AAAA,QACA,CAAAD,MACA,OAAA,KAAA,OAAAA,CAAA,IAAA,MACA;AAAA,UACA,IAAAA;AAAA,UACA,aAAAA;AAAA,QACA,IAEA,KAAA,OAAAA,CAAA;AAAA,MAEA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,cAAA;AACA,aAAA,OAAA,OAAA,KAAA,MAAA,EAAA,OAAA,CAAAE,MAAA,CAAA,KAAA,MAAA,SAAAA,EAAA,EAAA,CAAA;AAAA,IACA;AAAA,EACA;AAAA,EACA,OAAA;AAAA;AAAA;AAAA;AAAA,IAIA,OAAA;AAAA,MACA,UAAA;AACA,cAAAC,IAAA,OAAA,KAAA,KAAA,MAAA;AAEA,QADA,KAAA,cAAA,OAAA,CAAAF,MAAA,CAAAE,EAAA,SAAAF,CAAA,CAAA,EACA,QAAA,CAAAG,MAAA;AACA,eAAA,UAAAA,CAAA;AAAA,QACA,CAAA;AAAA,MACA;AAAA;AAAA,MAEA,WAAA;AAAA,IACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,UAAA;AAEA,UAAAC,IAAA,GAAA,OAAA,IAAA,UAAA;AAEA,QAAAC,IAAA,OAAA,eAAA,QAAAD,CAAA;AACA,IAAAC,KACAA,IAAA,OAAA,YAAA,KAAA,MAAAA,CAAA,EAAA,IAAA,CAAAL,MAAA,CAAAA,EAAA,IAAAA,CAAA,CAAA,CAAA,GACA,KAAA,SAAA,EAAA,GAAA,KAAA,QAAA,GAAAK,EAAA,MAEA,MAAA,KAAA,UAAA,EAAA,GACA,OAAA,eAAA,QAAAD,GAAA,KAAA,UAAA,OAAA,OAAA,KAAA,MAAA,CAAA,CAAA;AAAA,EAEA;AAAA,EACA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAAE,GAAA;AACA,YAAAC,IAAAD,EAAA,IAAA,CAAAE,MAAAA,EAAA,EAAA;AAEA,WAAA,MAAA,SAAAD,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQA,MAAA,UAAAE,GAAA;AACA,UAAA;AACA,QAAAA,IAAA,OAAAA,KAAA,WAAA,UAAAA,CAAA,IAAA;AACA,cAAAC,IAAA,MAAAC,EAAA,QAAA,IAAAC,EAAA,eAAA,+BAAAH,CAAA,aAAA,CAAA,CAAA;AASA,YANA,KAAA,iBAAA,MACA,OAAA,WAAA,MAAA;AACA,eAAA,eAAA;AAAA,QACA,GAAA,GAAA,GAGA,OAAA,KAAAC,EAAA,KAAA,IAAA,KAAA,MAAA,EAAA,SAAA,GAAA;AACA,gBAAAG,IAAA,OAAA,YAAAH,EAAA,KAAA,IAAA,KAAA,OAAA,IAAA,CAAAF,MAAA,CAAAA,EAAA,IAAAA,CAAA,CAAA,CAAA;AACA,sBAAA,SAAA,EAAA,GAAA,KAAA,QAAA,GAAAK,EAAA,GACA;AAAA,QACA;AAAA,MACA,SAAAC,GAAA;AAEA,aAAA,MAAA,SAAAA,CAAA,GACA,KAAA,eAAAC,EAAA,EAAA,4BAAA;AAAA,MACA;AACA,aAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASA,aAAAC,GAAAC,GAAAC,GAAA;AACA,aAAA,GAAAD,KAAA,EAAA,IAAAD,EAAA,EAAA,GAAA,kBAAA,EAAA,QAAAE,EAAA,kBAAA,CAAA,IAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAAC,EAAA,SAAA,SAAAV,GAAA;AACA,WAAA,UAAAA,CAAA;AAAA,IACA,GAAA,GAAA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
4
+ *
5
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
6
+ *
7
+ * @license AGPL-3.0-or-later
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU Affero General Public License as
11
+ * published by the Free Software Foundation, either version 3 of the
12
+ * License, or (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU Affero General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+ const e = (t) => {
24
+ t.mounted ? Array.isArray(t.mounted) || (t.mounted = [t.mounted]) : t.mounted = [], t.mounted.push(function() {
25
+ this.$el.setAttribute("data-v-5fe12d9", "");
26
+ });
27
+ };
28
+ exports.ScopeComponent = e;
@@ -1 +1 @@
1
- {"version":3,"file":"ScopeComponent-f6122f5a.cjs","sources":["../../src/utils/ScopeComponent.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nconst ScopeComponent = (Component) => {\n\t// Init mounted vue if none\n\tif (!Component.mounted) {\n\t\tComponent.mounted = []\n\t} else if (!Array.isArray(Component.mounted)) {\n\t\tComponent.mounted = [Component.mounted]\n\t}\n\n\t// Inject root scoping function\n\tComponent.mounted.push(function() {\n\t\tthis.$el.setAttribute(`data-v-${SCOPE_VERSION}`, '')\n\t})\n}\n\nexport default ScopeComponent\n"],"names":["ScopeComponent","Component"],"mappings":"aAsBK,MAACA,EAAkBC,GAAc,CAEhCA,EAAU,QAEH,MAAM,QAAQA,EAAU,OAAO,IAC1CA,EAAU,QAAU,CAACA,EAAU,OAAO,GAFtCA,EAAU,QAAU,CAAE,EAMvBA,EAAU,QAAQ,KAAK,UAAW,CACjC,KAAK,IAAI,aAAa,iBAA2B,EAAE,CACrD,CAAE,CACF"}
1
+ {"version":3,"file":"ScopeComponent-1c75ec38.cjs","sources":["../../src/utils/ScopeComponent.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nconst ScopeComponent = (Component) => {\n\t// Init mounted vue if none\n\tif (!Component.mounted) {\n\t\tComponent.mounted = []\n\t} else if (!Array.isArray(Component.mounted)) {\n\t\tComponent.mounted = [Component.mounted]\n\t}\n\n\t// Inject root scoping function\n\tComponent.mounted.push(function() {\n\t\tthis.$el.setAttribute(`data-v-${SCOPE_VERSION}`, '')\n\t})\n}\n\nexport default ScopeComponent\n"],"names":["ScopeComponent","Component"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBK,MAACA,IAAiB,CAACC,MAAc;AAErC,EAAKA,EAAU,UAEH,MAAM,QAAQA,EAAU,OAAO,MAC1CA,EAAU,UAAU,CAACA,EAAU,OAAO,KAFtCA,EAAU,UAAU,CAAE,GAMvBA,EAAU,QAAQ,KAAK,WAAW;AACjC,SAAK,IAAI,aAAa,kBAA2B,EAAE;AAAA,EACrD,CAAE;AACF;;"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
3
+ *
4
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
5
+ *
6
+ * @license AGPL-3.0-or-later
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU Affero General Public License as
10
+ * published by the Free Software Foundation, either version 3 of the
11
+ * License, or (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ * GNU Affero General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU Affero General Public License
19
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+ const e = (t) => {
23
+ t.mounted ? Array.isArray(t.mounted) || (t.mounted = [t.mounted]) : t.mounted = [], t.mounted.push(function() {
24
+ this.$el.setAttribute("data-v-5fe12d9", "");
25
+ });
26
+ };
27
+ export {
28
+ e as S
29
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ScopeComponent-dbcd0e07.mjs","sources":["../../src/utils/ScopeComponent.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nconst ScopeComponent = (Component) => {\n\t// Init mounted vue if none\n\tif (!Component.mounted) {\n\t\tComponent.mounted = []\n\t} else if (!Array.isArray(Component.mounted)) {\n\t\tComponent.mounted = [Component.mounted]\n\t}\n\n\t// Inject root scoping function\n\tComponent.mounted.push(function() {\n\t\tthis.$el.setAttribute(`data-v-${SCOPE_VERSION}`, '')\n\t})\n}\n\nexport default ScopeComponent\n"],"names":["ScopeComponent","Component"],"mappings":"AAsBK,MAACA,IAAkBC,CAAAA,MAAc;AAEhCA,EAAAA,EAAU,UAEH,MAAM,QAAQA,EAAU,OAAO,MAC1CA,EAAU,UAAU,CAACA,EAAU,OAAO,KAFtCA,EAAU,UAAU,CAAE,GAMvBA,EAAU,QAAQ,KAAK,WAAW;AACjC,SAAK,IAAI,aAAa,kBAA2B,EAAE;AAAA,EACrD,CAAE;AACF;"}
1
+ {"version":3,"file":"ScopeComponent-97a014a1.mjs","sources":["../../src/utils/ScopeComponent.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nconst ScopeComponent = (Component) => {\n\t// Init mounted vue if none\n\tif (!Component.mounted) {\n\t\tComponent.mounted = []\n\t} else if (!Array.isArray(Component.mounted)) {\n\t\tComponent.mounted = [Component.mounted]\n\t}\n\n\t// Inject root scoping function\n\tComponent.mounted.push(function() {\n\t\tthis.$el.setAttribute(`data-v-${SCOPE_VERSION}`, '')\n\t})\n}\n\nexport default ScopeComponent\n"],"names":["ScopeComponent","Component"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBK,MAACA,IAAiB,CAACC,MAAc;AAErC,EAAKA,EAAU,UAEH,MAAM,QAAQA,EAAU,OAAO,MAC1CA,EAAU,UAAU,CAACA,EAAU,OAAO,KAFtCA,EAAU,UAAU,CAAE,GAMvBA,EAAU,QAAQ,KAAK,WAAW;AACjC,SAAK,IAAI,aAAa,kBAA2B,EAAE;AAAA,EACrD,CAAE;AACF;"}
@@ -0,0 +1,32 @@
1
+ function v(r, a, d, h, i, t, f, u) {
2
+ var e = typeof r == "function" ? r.options : r;
3
+ a && (e.render = a, e.staticRenderFns = d, e._compiled = !0), h && (e.functional = !0), t && (e._scopeId = "data-v-" + t);
4
+ var o;
5
+ if (f ? (o = function(n) {
6
+ n = n || // cached call
7
+ this.$vnode && this.$vnode.ssrContext || // stateful
8
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ < "u" && (n = __VUE_SSR_CONTEXT__), i && i.call(this, n), n && n._registeredComponents && n._registeredComponents.add(f);
9
+ }, e._ssrRegister = o) : i && (o = u ? function() {
10
+ i.call(
11
+ this,
12
+ (e.functional ? this.parent : this).$root.$options.shadowRoot
13
+ );
14
+ } : i), o)
15
+ if (e.functional) {
16
+ e._injectStyles = o;
17
+ var l = e.render;
18
+ e.render = function(p, _) {
19
+ return o.call(_), l(p, _);
20
+ };
21
+ } else {
22
+ var s = e.beforeCreate;
23
+ e.beforeCreate = s ? [].concat(s, o) : [o];
24
+ }
25
+ return {
26
+ exports: r,
27
+ options: e
28
+ };
29
+ }
30
+ export {
31
+ v as n
32
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_plugin-vue2_normalizer-71e2aa87.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ function C(r, t, d, u, i, a, f, h) {
3
+ var e = typeof r == "function" ? r.options : r;
4
+ t && (e.render = t, e.staticRenderFns = d, e._compiled = !0), u && (e.functional = !0), a && (e._scopeId = "data-v-" + a);
5
+ var o;
6
+ if (f ? (o = function(n) {
7
+ n = n || // cached call
8
+ this.$vnode && this.$vnode.ssrContext || // stateful
9
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !n && typeof __VUE_SSR_CONTEXT__ < "u" && (n = __VUE_SSR_CONTEXT__), i && i.call(this, n), n && n._registeredComponents && n._registeredComponents.add(f);
10
+ }, e._ssrRegister = o) : i && (o = h ? function() {
11
+ i.call(
12
+ this,
13
+ (e.functional ? this.parent : this).$root.$options.shadowRoot
14
+ );
15
+ } : i), o)
16
+ if (e.functional) {
17
+ e._injectStyles = o;
18
+ var l = e.render;
19
+ e.render = function(p, _) {
20
+ return o.call(_), l(p, _);
21
+ };
22
+ } else {
23
+ var s = e.beforeCreate;
24
+ e.beforeCreate = s ? [].concat(s, o) : [o];
25
+ }
26
+ return {
27
+ exports: r,
28
+ options: e
29
+ };
30
+ }
31
+ exports.normalizeComponent = C;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_plugin-vue2_normalizer-7f9efb60.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,50 @@
1
+ import t from "vue";
2
+ /**
3
+ * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
4
+ *
5
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
6
+ *
7
+ * @license AGPL-3.0-or-later
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU Affero General Public License as
11
+ * published by the Free Software Foundation, either version 3 of the
12
+ * License, or (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU Affero General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+ const i = {
24
+ before() {
25
+ (!this.$slots.default || this.text.trim() === "") && (t.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`, this), this.$destroy(), this.$el.remove());
26
+ },
27
+ beforeUpdate() {
28
+ this.text = this.getText();
29
+ },
30
+ data() {
31
+ return {
32
+ // $slots are not reactive.
33
+ // We need to update the content manually
34
+ text: this.getText()
35
+ };
36
+ },
37
+ computed: {
38
+ isLongText() {
39
+ return this.text && this.text.trim().length > 20;
40
+ }
41
+ },
42
+ methods: {
43
+ getText() {
44
+ return this.$slots.default ? this.$slots.default[0].text.trim() : "";
45
+ }
46
+ }
47
+ };
48
+ export {
49
+ i as A
50
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"actionGlobal-cda46023.mjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport Vue from 'vue'\n\nexport default {\n\tbefore() {\n\t\t// all actions requires a valid text content\n\t\t// if none, forbid the component mount and throw error\n\t\tif (!this.$slots.default || this.text.trim() === '') {\n\t\t\tVue.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`, this)\n\t\t\tthis.$destroy()\n\t\t\tthis.$el.remove()\n\t\t}\n\t},\n\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin","Vue"],"mappings":";AAuBA,MAAeA,IAAA,EACd,SAAS;GAGJ,CAAC,KAAK,OAAO,WAAW,KAAK,KAAK,KAAM,MAAK,QAChDC,EAAI,KAAK,KAAK,GAAG,KAAK,SAAS,+DAA+D,IAAI,GAClG,KAAK,SAAU,GACf,KAAK,IAAI,OAAQ;AAElB,GAED,eAAe;AACd,OAAK,OAAO,KAAK,QAAS;AAC1B,GAED,OAAO;AACN,SAAO,EAGN,MAAM,KAAK,QAAS,EACpB;AACD,GAED,UAAU,EACT,aAAa;AACZ,SAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAC9C,EACD,GAED,SAAS,EACR,UAAU;AACT,SAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,IAAG;AAClE,EACD,EACF;"}
1
+ {"version":3,"file":"actionGlobal-8c1c28c9.mjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport Vue from 'vue'\n\nexport default {\n\tbefore() {\n\t\t// all actions requires a valid text content\n\t\t// if none, forbid the component mount and throw error\n\t\tif (!this.$slots.default || this.text.trim() === '') {\n\t\t\tVue.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`, this)\n\t\t\tthis.$destroy()\n\t\t\tthis.$el.remove()\n\t\t}\n\t},\n\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin","Vue"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBA,MAAeA,IAAA;AAAA,EACd,SAAS;AAGR,KAAI,CAAC,KAAK,OAAO,WAAW,KAAK,KAAK,KAAM,MAAK,QAChDC,EAAI,KAAK,KAAK,GAAG,KAAK,SAAS,IAAI,2DAA2D,IAAI,GAClG,KAAK,SAAU,GACf,KAAK,IAAI,OAAQ;AAAA,EAElB;AAAA,EAED,eAAe;AACd,SAAK,OAAO,KAAK,QAAS;AAAA,EAC1B;AAAA,EAED,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAS;AAAA,IACpB;AAAA,EACD;AAAA,EAED,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC9C;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,IAAG;AAAA,IAClE;AAAA,EACD;AACF;"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ const e = require("vue"), i = (t) => t && t.__esModule ? t : { default: t }, s = /* @__PURE__ */ i(e);
3
+ /**
4
+ * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
5
+ *
6
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
7
+ *
8
+ * @license AGPL-3.0-or-later
9
+ *
10
+ * This program is free software: you can redistribute it and/or modify
11
+ * it under the terms of the GNU Affero General Public License as
12
+ * published by the Free Software Foundation, either version 3 of the
13
+ * License, or (at your option) any later version.
14
+ *
15
+ * This program is distributed in the hope that it will be useful,
16
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
+ * GNU Affero General Public License for more details.
19
+ *
20
+ * You should have received a copy of the GNU Affero General Public License
21
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
22
+ *
23
+ */
24
+ const n = {
25
+ before() {
26
+ (!this.$slots.default || this.text.trim() === "") && (s.default.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`, this), this.$destroy(), this.$el.remove());
27
+ },
28
+ beforeUpdate() {
29
+ this.text = this.getText();
30
+ },
31
+ data() {
32
+ return {
33
+ // $slots are not reactive.
34
+ // We need to update the content manually
35
+ text: this.getText()
36
+ };
37
+ },
38
+ computed: {
39
+ isLongText() {
40
+ return this.text && this.text.trim().length > 20;
41
+ }
42
+ },
43
+ methods: {
44
+ getText() {
45
+ return this.$slots.default ? this.$slots.default[0].text.trim() : "";
46
+ }
47
+ }
48
+ };
49
+ exports.ActionGlobalMixin = n;
@@ -1 +1 @@
1
- {"version":3,"file":"actionGlobal-ec7003e8.cjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport Vue from 'vue'\n\nexport default {\n\tbefore() {\n\t\t// all actions requires a valid text content\n\t\t// if none, forbid the component mount and throw error\n\t\tif (!this.$slots.default || this.text.trim() === '') {\n\t\t\tVue.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`, this)\n\t\t\tthis.$destroy()\n\t\t\tthis.$el.remove()\n\t\t}\n\t},\n\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin","Vue"],"mappings":"oCAuBeA,EAAA,CACd,QAAS,EAGJ,CAAC,KAAK,OAAO,SAAW,KAAK,KAAK,KAAM,IAAK,MAChDC,EAAI,KAAK,KAAK,GAAG,KAAK,SAAS,IAA+D,0DAAA,IAAI,EAClG,KAAK,SAAU,EACf,KAAK,IAAI,OAAQ,EAElB,EAED,cAAe,CACd,KAAK,KAAO,KAAK,QAAS,CAC1B,EAED,MAAO,CACN,MAAO,CAGN,KAAM,KAAK,QAAS,CACpB,CACD,EAED,SAAU,CACT,YAAa,CACZ,OAAO,KAAK,MAAQ,KAAK,KAAK,KAAI,EAAG,OAAS,EAC9C,CACD,EAED,QAAS,CACR,SAAU,CACT,OAAO,KAAK,OAAO,QAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,EAAG,EAClE,CACD,CACF"}
1
+ {"version":3,"file":"actionGlobal-9e29e11b.cjs","sources":["../../src/mixins/actionGlobal.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport Vue from 'vue'\n\nexport default {\n\tbefore() {\n\t\t// all actions requires a valid text content\n\t\t// if none, forbid the component mount and throw error\n\t\tif (!this.$slots.default || this.text.trim() === '') {\n\t\t\tVue.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`, this)\n\t\t\tthis.$destroy()\n\t\t\tthis.$el.remove()\n\t\t}\n\t},\n\n\tbeforeUpdate() {\n\t\tthis.text = this.getText()\n\t},\n\n\tdata() {\n\t\treturn {\n\t\t\t// $slots are not reactive.\n\t\t\t// We need to update the content manually\n\t\t\ttext: this.getText(),\n\t\t}\n\t},\n\n\tcomputed: {\n\t\tisLongText() {\n\t\t\treturn this.text && this.text.trim().length > 20\n\t\t},\n\t},\n\n\tmethods: {\n\t\tgetText() {\n\t\t\treturn this.$slots.default ? this.$slots.default[0].text.trim() : ''\n\t\t},\n\t},\n}\n"],"names":["ActionGlobalMixin","Vue"],"mappings":";;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBA,MAAeA,IAAA;AAAA,EACd,SAAS;AAGR,KAAI,CAAC,KAAK,OAAO,WAAW,KAAK,KAAK,KAAM,MAAK,QAChDC,UAAI,KAAK,KAAK,GAAG,KAAK,SAAS,IAAI,2DAA2D,IAAI,GAClG,KAAK,SAAU,GACf,KAAK,IAAI,OAAQ;AAAA,EAElB;AAAA,EAED,eAAe;AACd,SAAK,OAAO,KAAK,QAAS;AAAA,EAC1B;AAAA,EAED,OAAO;AACN,WAAO;AAAA;AAAA;AAAA,MAGN,MAAM,KAAK,QAAS;AAAA,IACpB;AAAA,EACD;AAAA,EAED,UAAU;AAAA,IACT,aAAa;AACZ,aAAO,KAAK,QAAQ,KAAK,KAAK,KAAI,EAAG,SAAS;AAAA,IAC9C;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,UAAU;AACT,aAAO,KAAK,OAAO,UAAU,KAAK,OAAO,QAAQ,CAAC,EAAE,KAAK,KAAM,IAAG;AAAA,IAClE;AAAA,EACD;AACF;;"}
@@ -0,0 +1,121 @@
1
+ import { A as n } from "./actionGlobal-8c1c28c9.mjs";
2
+ /**
3
+ * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
4
+ *
5
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
6
+ *
7
+ * @license AGPL-3.0-or-later
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU Affero General Public License as
11
+ * published by the Free Software Foundation, either version 3 of the
12
+ * License, or (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU Affero General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public License
20
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+ const l = function(i, t) {
24
+ let e = i.$parent;
25
+ for (; e; ) {
26
+ if (e.$options.name === t)
27
+ return e;
28
+ e = e.$parent;
29
+ }
30
+ };
31
+ /**
32
+ * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
33
+ *
34
+ * @author John Molakvoæ <skjnldsv@protonmail.com>
35
+ *
36
+ * @license AGPL-3.0-or-later
37
+ *
38
+ * This program is free software: you can redistribute it and/or modify
39
+ * it under the terms of the GNU Affero General Public License as
40
+ * published by the Free Software Foundation, either version 3 of the
41
+ * License, or (at your option) any later version.
42
+ *
43
+ * This program is distributed in the hope that it will be useful,
44
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
45
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46
+ * GNU Affero General Public License for more details.
47
+ *
48
+ * You should have received a copy of the GNU Affero General Public License
49
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
50
+ *
51
+ */
52
+ const r = {
53
+ mixins: [n],
54
+ props: {
55
+ /**
56
+ * Icon to show with the action, can be either a CSS class or an URL
57
+ */
58
+ icon: {
59
+ type: String,
60
+ default: ""
61
+ },
62
+ /**
63
+ * The main text content of the entry.
64
+ */
65
+ name: {
66
+ type: String,
67
+ default: ""
68
+ },
69
+ /**
70
+ * The title attribute of the element.
71
+ */
72
+ title: {
73
+ type: String,
74
+ default: ""
75
+ },
76
+ /**
77
+ * Whether we close the Actions menu after the click
78
+ */
79
+ closeAfterClick: {
80
+ type: Boolean,
81
+ default: !1
82
+ },
83
+ /**
84
+ * Aria label for the button. Not needed if the button has text.
85
+ */
86
+ ariaLabel: {
87
+ type: String,
88
+ default: ""
89
+ },
90
+ /**
91
+ * aria-hidden attribute for the icon slot
92
+ */
93
+ ariaHidden: {
94
+ type: Boolean,
95
+ default: null
96
+ }
97
+ },
98
+ emits: [
99
+ "click"
100
+ ],
101
+ computed: {
102
+ isIconUrl() {
103
+ try {
104
+ return new URL(this.icon);
105
+ } catch {
106
+ return !1;
107
+ }
108
+ }
109
+ },
110
+ methods: {
111
+ onClick(i) {
112
+ if (this.$emit("click", i), this.closeAfterClick) {
113
+ const t = l(this, "NcActions");
114
+ t && t.closeMenu && t.closeMenu(!1);
115
+ }
116
+ }
117
+ }
118
+ };
119
+ export {
120
+ r as A
121
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"actionText-6c35d3fc.mjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nconst GetParent = function(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport actionGlobal from './actionGlobal.js'\nimport GetParent from '../utils/GetParent.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * aria-hidden attribute for the icon slot\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn new URL(this.icon)\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["GetParent","context","name","parent","ActionTextMixin","actionGlobal","event"],"mappings":";AA6BA,MAAMA,IAAY,SAASC,GAASC,GAAM;AACzC,MAAIC,IAASF,EAAQ;AACrB,SAAOE,KAAQ;AACd,QAAIA,EAAO,SAAS,SAASD;AAC5B,aAAOC;AAERA,QAASA,EAAO;AAAA,EAElB;AAAA,GCbeC,IAAA,EACd,QAAQ,CAACC,CAAY,GACrB,OAAO,EAIN,MAAM,EACL,MAAM,QACN,SAAS,GACT,GAID,MAAM,EACL,MAAM,QACN,SAAS,GACT,GAID,OAAO,EACN,MAAM,QACN,SAAS,GACT,GAID,iBAAiB,EAChB,MAAM,SACN,SAAS,GACT,GAID,WAAW,EACV,MAAM,QACN,SAAS,GACT,GAID,YAAY,EACX,MAAM,SACN,SAAS,KACT,EACD,GAED,OAAO,CACN,OACA,GAED,UAAU,EACT,YAAY;AACX,MAAI;AACH,WAAO,IAAI,IAAI,KAAK,IAAI;AAAA,EACxB,QAAC;AACD,WAAO;AAAA,EACP;AACD,EACD,GAED,SAAS,EACR,QAAQC,GAAO;AAQd,MAFA,KAAK,MAAM,SAASA,CAAK,GAErB,KAAK,iBAAiB;AACzB,UAAMH,IAASH,EAAU,MAAM,WAAW;AACtCG,SAAUA,EAAO,aACpBA,EAAO,UAAU,EAAK;AAAA,EAGxB;AAAA,EACD,EACF;"}
1
+ {"version":3,"file":"actionText-9f5c55bd.mjs","sources":["../../src/utils/GetParent.js","../../src/mixins/actionText.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\n/**\n * Get the first parent component matching the provided name\n *\n * @param {object} context the context to search from (usually this)\n * @param {string} name the parent name\n * @return {object|undefined} the parent component\n */\nconst GetParent = function(context, name) {\n\tlet parent = context.$parent\n\twhile (parent) {\n\t\tif (parent.$options.name === name) {\n\t\t\treturn parent\n\t\t}\n\t\tparent = parent.$parent\n\t}\n}\n\nexport default GetParent\n","/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nimport actionGlobal from './actionGlobal.js'\nimport GetParent from '../utils/GetParent.js'\n\nexport default {\n\tmixins: [actionGlobal],\n\tprops: {\n\t\t/**\n\t\t * Icon to show with the action, can be either a CSS class or an URL\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The main text content of the entry.\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * The title attribute of the element.\n\t\t */\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * Whether we close the Actions menu after the click\n\t\t */\n\t\tcloseAfterClick: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\t/**\n\t\t * Aria label for the button. Not needed if the button has text.\n\t\t */\n\t\tariaLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\t/**\n\t\t * aria-hidden attribute for the icon slot\n\t\t */\n\t\tariaHidden: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\n\temits: [\n\t\t'click',\n\t],\n\n\tcomputed: {\n\t\tisIconUrl() {\n\t\t\ttry {\n\t\t\t\treturn new URL(this.icon)\n\t\t\t} catch (error) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t},\n\t},\n\n\tmethods: {\n\t\tonClick(event) {\n\t\t\t/**\n\t\t\t * Emitted when the action is clicked\n\t\t\t *\n\t\t\t * @type {Event}\n\t\t\t */\n\t\t\tthis.$emit('click', event)\n\n\t\t\tif (this.closeAfterClick) {\n\t\t\t\tconst parent = GetParent(this, 'NcActions')\n\t\t\t\tif (parent && parent.closeMenu) {\n\t\t\t\t\tparent.closeMenu(false)\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t},\n}\n"],"names":["GetParent","context","name","parent","ActionTextMixin","actionGlobal","event"],"mappings":";AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA,MAAMA,IAAY,SAASC,GAASC,GAAM;AACzC,MAAIC,IAASF,EAAQ;AACrB,SAAOE,KAAQ;AACd,QAAIA,EAAO,SAAS,SAASD;AAC5B,aAAOC;AAER,IAAAA,IAASA,EAAO;AAAA,EAChB;AACF;ACrCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAwBA,MAAeC,IAAA;AAAA,EACd,QAAQ,CAACC,CAAY;AAAA,EACrB,OAAO;AAAA;AAAA;AAAA;AAAA,IAIN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,iBAAiB;AAAA,MAChB,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA;AAAA;AAAA,IAID,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,EACD;AAAA,EAED,OAAO;AAAA,IACN;AAAA,EACA;AAAA,EAED,UAAU;AAAA,IACT,YAAY;AACX,UAAI;AACH,eAAO,IAAI,IAAI,KAAK,IAAI;AAAA,MACxB,QAAe;AACf,eAAO;AAAA,MACP;AAAA,IACD;AAAA,EACD;AAAA,EAED,SAAS;AAAA,IACR,QAAQC,GAAO;AAQd,UAFA,KAAK,MAAM,SAASA,CAAK,GAErB,KAAK,iBAAiB;AACzB,cAAMH,IAASH,EAAU,MAAM,WAAW;AAC1C,QAAIG,KAAUA,EAAO,aACpBA,EAAO,UAAU,EAAK;AAAA,MAEvB;AAAA,IACD;AAAA,EACD;AACF;"}