@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
@@ -0,0 +1,177 @@
1
+ import "../assets/index-dc612aa3.css";
2
+ import { useElementSize as p } from "@vueuse/core";
3
+ import { defineComponent as g, ref as d, computed as s } from "vue";
4
+ import m from "./NcModal.mjs";
5
+ import y from "./NcDialogButton.mjs";
6
+ import { n as v } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
7
+ const C = g({
8
+ name: "NcDialog",
9
+ components: {
10
+ NcDialogButton: y,
11
+ NcModal: m
12
+ },
13
+ props: {
14
+ /** Name of the dialog (the heading) */
15
+ name: {
16
+ type: String,
17
+ required: !0
18
+ },
19
+ /** Text of the dialog */
20
+ message: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ /** Additional elements to add to the focus trap */
25
+ additionalTrapElements: {
26
+ type: Array,
27
+ validator: (a) => Array.isArray(a) && a.every((e) => typeof e == "string"),
28
+ default: () => []
29
+ },
30
+ /**
31
+ * The element where to mount the dialog, if `null` is passed the dialog is mounted in place
32
+ * @default 'body'
33
+ */
34
+ container: {
35
+ type: String,
36
+ required: !1,
37
+ default: "body"
38
+ },
39
+ /**
40
+ * Whether the dialog should be shown
41
+ * @default true
42
+ */
43
+ open: {
44
+ type: Boolean,
45
+ default: !0
46
+ },
47
+ /**
48
+ * Size of the underlying NcModal
49
+ * @default 'small'
50
+ * @values 'small', 'normal', 'large', 'full'
51
+ */
52
+ size: {
53
+ type: String,
54
+ required: !1,
55
+ default: "small",
56
+ validator: (a) => typeof a == "string" && ["small", "normal", "large", "full"].includes(a)
57
+ },
58
+ /**
59
+ * Buttons to display
60
+ * @default []
61
+ */
62
+ buttons: {
63
+ type: Array,
64
+ required: !1,
65
+ default: () => [],
66
+ validator: (a) => Array.isArray(a) && a.every((e) => typeof e == "object")
67
+ },
68
+ /**
69
+ * Set to false to no show a close button on the dialog
70
+ * @default true
71
+ */
72
+ canClose: {
73
+ type: Boolean,
74
+ default: !0
75
+ },
76
+ /**
77
+ * Declare if hiding the modal should be animated
78
+ * @default false
79
+ */
80
+ outTransition: {
81
+ type: Boolean,
82
+ default: !1
83
+ },
84
+ /**
85
+ * Optionally pass additionaly classes which will be set on the navigation for custom styling
86
+ * @default ''
87
+ * @example
88
+ * ```html
89
+ * <DialogBase :navigation-classes="['mydialog-navigation']"><!-- --></DialogBase>
90
+ * <!-- ... -->
91
+ * <style lang="scss">
92
+ * :deep(.mydialog-navigation) {
93
+ * flex-direction: row-reverse;
94
+ * }
95
+ * </style>
96
+ * ```
97
+ */
98
+ navigationClasses: {
99
+ type: [String, Array, Object],
100
+ required: !1,
101
+ default: ""
102
+ },
103
+ /**
104
+ * Optionally pass additionaly classes which will be set on the content wrapper for custom styling
105
+ * @default ''
106
+ */
107
+ contentClasses: {
108
+ type: [String, Array, Object],
109
+ required: !1,
110
+ default: ""
111
+ },
112
+ /**
113
+ * Optionally pass additionaly classes which will be set on the dialog itself
114
+ * (the default `class` attribute will be set on the modal wrapper)
115
+ * @default ''
116
+ */
117
+ dialogClasses: {
118
+ type: [String, Array, Object],
119
+ required: !1,
120
+ default: ""
121
+ }
122
+ },
123
+ emits: ["closing", "update:open"],
124
+ setup(a, { emit: e, slots: t }) {
125
+ const n = d(), { width: o } = p(n), c = s(() => o.value < 876), u = s(() => (t == null ? void 0 : t.navigation) !== void 0), l = d(!0), _ = () => {
126
+ i(), window.setTimeout(() => r(), 300);
127
+ }, i = () => {
128
+ l.value = !1, e("closing");
129
+ }, r = () => {
130
+ l.value = !0, e("update:open", !1);
131
+ }, f = s(() => ({
132
+ canClose: a.canClose,
133
+ container: a.container === void 0 ? "body" : a.container,
134
+ // we do not pass the name as we already have the name as the headline
135
+ // name: props.name,
136
+ size: a.size,
137
+ show: a.open && l.value,
138
+ outTransition: a.outTransition,
139
+ class: "dialog__modal",
140
+ closeOnClickOutside: !1,
141
+ enableSlideshow: !1,
142
+ enableSwipe: !1
143
+ }));
144
+ return {
145
+ handleButtonClose: _,
146
+ handleClosing: i,
147
+ handleClosed: r,
148
+ hasNavigation: u,
149
+ isNavigationCollapsed: c,
150
+ modalProps: f,
151
+ wrapper: n
152
+ };
153
+ }
154
+ });
155
+ var h = function() {
156
+ var e = this, t = e._self._c;
157
+ return e._self._setupProxy, e.open ? t("NcModal", e._b({ on: { close: e.handleClosed, "update:show": e.handleClosing } }, "NcModal", e.modalProps, !1), [t("h2", { staticClass: "dialog__name", domProps: { textContent: e._s(e.name) } }), t("div", { staticClass: "dialog", class: e.dialogClasses }, [t("div", { ref: "wrapper", class: ["dialog__wrapper", { "dialog__wrapper--collapsed": e.isNavigationCollapsed }] }, [e.hasNavigation ? t("nav", { staticClass: "dialog__navigation", class: e.navigationClasses }, [e._t("navigation", null, { isCollapsed: e.isNavigationCollapsed })], 2) : e._e(), t("div", { staticClass: "dialog__content", class: e.contentClasses }, [e._t("default", function() {
158
+ return [t("p", [e._v(e._s(e.message))])];
159
+ })], 2)]), t("div", { staticClass: "dialog__actions" }, [e._t("actions", function() {
160
+ return e._l(e.buttons, function(n, o) {
161
+ return t("NcDialogButton", e._b({ key: o, on: { click: e.handleButtonClose } }, "NcDialogButton", n, !1));
162
+ });
163
+ })], 2)])]) : e._e();
164
+ }, N = [], b = /* @__PURE__ */ v(
165
+ C,
166
+ h,
167
+ N,
168
+ !1,
169
+ null,
170
+ "cf1c45bf",
171
+ null,
172
+ null
173
+ );
174
+ const x = b.exports;
175
+ export {
176
+ x as default
177
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcDialog.mjs","sources":["../../src/components/NcDialog/NcDialog.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2023 Ferdinand Thiessen\n -\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\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<docs>\n### General description\n\nThis component uses the `NcModal` under the hood for allowing users to create generic dialogs.\n\n### Basic example\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showDialog = true\">Show dialog</NcButton>\n\t\t<NcDialog :open.sync=\"showDialog\" name=\"Confirmation\" message=\"Are you sure to proceed?\" :buttons=\"buttons\" />\n\t\t<p>Last response: {{ lastResponse }}</p>\n\t</div>\n</template>\n<script>\nimport IconCancel from '@mdi/svg/svg/cancel.svg?raw'\nimport IconCheck from '@mdi/svg/svg/check.svg?raw'\n\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tshowDialog: false,\n\t\t\tlastResponse: 'None',\n\t\t\tbuttons: [\n\t\t\t\t{\n\t\t\t\t\tlabel: 'Ok',\n\t\t\t\t\ttype: 'primary',\n\t\t\t\t\ticon: IconCheck,\n\t\t\t\t\tcallback: () => { this.lastResponse = 'Pressed \"Ok\"' },\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tlabel: 'Cancel',\n\t\t\t\t\ticon: IconCancel,\n\t\t\t\t\tcallback: () => { this.lastResponse = 'Pressed \"Cancel\"' },\n\t\t\t\t}\n\t\t\t]\n\t\t}\n\t},\n}\n</script>\n```\n\n### Use custom actions and content\nInstead of using the buttons property, you can also inject your custom actions using a named slot.\nYou can also use the default slot to inject custom content.\n\n```vue\n<template>\n\t<div>\n\t\t<NcButton @click=\"showDialog = true\">Show dialog</NcButton>\n\t\t<NcDialog v-if=\"showDialog\" name=\"Warning\" :can-close=\"false\">\n\t\t\t<template #actions>\n\t\t\t\t<NcButton @click=\"showDialog = false\">Ok</NcButton>\n\t\t\t</template>\n\t\t\t<div style=\"color: red; font-weight: bold;\">This is serious</div>\n\t\t</NcDialog>\n\t</div>\n</template>\n<script>\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tshowDialog: false,\n\t\t}\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<NcModal v-if=\"open\"\n\t\tv-bind=\"modalProps\"\n\t\t@close=\"handleClosed\"\n\t\t@update:show=\"handleClosing\">\n\t\t<!-- The dialog name / header -->\n\t\t<h2 class=\"dialog__name\" v-text=\"name\" />\n\t\t<div class=\"dialog\" :class=\"dialogClasses\">\n\t\t\t<div ref=\"wrapper\" :class=\"['dialog__wrapper', { 'dialog__wrapper--collapsed': isNavigationCollapsed }]\">\n\t\t\t\t<!-- When the navigation is collapsed (too small dialog) it is displayed above the main content, otherwise on the inline start -->\n\t\t\t\t<nav v-if=\"hasNavigation\" class=\"dialog__navigation\" :class=\"navigationClasses\">\n\t\t\t\t\t<slot name=\"navigation\" :is-collapsed=\"isNavigationCollapsed\" />\n\t\t\t\t</nav>\n\t\t\t\t<!-- Main dialog content -->\n\t\t\t\t<div class=\"dialog__content\" :class=\"contentClasses\">\n\t\t\t\t\t<slot>\n\t\t\t\t\t\t<p>{{ message }}</p>\n\t\t\t\t\t</slot>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<!-- The dialog actions aka the buttons -->\n\t\t\t<div class=\"dialog__actions\">\n\t\t\t\t<slot name=\"actions\">\n\t\t\t\t\t<NcDialogButton v-for=\"(button, idx) in buttons\"\n\t\t\t\t\t\t:key=\"idx\"\n\t\t\t\t\t\tv-bind=\"button\"\n\t\t\t\t\t\t@click=\"handleButtonClose\" />\n\t\t\t\t</slot>\n\t\t\t</div>\n\t\t</div>\n\t</NcModal>\n</template>\n\n<script>\nimport { useElementSize } from '@vueuse/core'\nimport { computed, defineComponent, ref } from 'vue'\n\nimport NcModal from '../NcModal/index.js'\nimport NcDialogButton from '../NcDialogButton/index.js'\n\nexport default defineComponent({\n\tname: 'NcDialog',\n\n\tcomponents: {\n\t\tNcDialogButton,\n\t\tNcModal,\n\t},\n\n\tprops: {\n\t\t/** Name of the dialog (the heading) */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\n\t\t/** Text of the dialog */\n\t\tmessage: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/** Additional elements to add to the focus trap */\n\t\tadditionalTrapElements: {\n\t\t\ttype: Array,\n\t\t\tvalidator: (arr) => Array.isArray(arr) && arr.every((element) => typeof element === 'string'),\n\t\t\tdefault: () => ([]),\n\t\t},\n\n\t\t/**\n\t\t * The element where to mount the dialog, if `null` is passed the dialog is mounted in place\n\t\t * @default 'body'\n\t\t */\n\t\tcontainer: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: 'body',\n\t\t},\n\n\t\t/**\n\t\t * Whether the dialog should be shown\n\t\t * @default true\n\t\t */\n\t\topen: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Size of the underlying NcModal\n\t\t * @default 'small'\n\t\t * @values 'small', 'normal', 'large', 'full'\n\t\t */\n\t\tsize: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: 'small',\n\t\t\tvalidator: (value) => typeof value === 'string' && ['small', 'normal', 'large', 'full'].includes(value),\n\t\t},\n\n\t\t/**\n\t\t * Buttons to display\n\t\t * @default []\n\t\t */\n\t\tbuttons: {\n\t\t\ttype: Array,\n\t\t\trequired: false,\n\t\t\tdefault: () => ([]),\n\t\t\tvalidator: (value) => Array.isArray(value) && value.every((element) => typeof element === 'object'),\n\t\t},\n\n\t\t/**\n\t\t * Set to false to no show a close button on the dialog\n\t\t * @default true\n\t\t */\n\t\tcanClose: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\n\t\t/**\n\t\t * Declare if hiding the modal should be animated\n\t\t * @default false\n\t\t */\n\t\toutTransition: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Optionally pass additionaly classes which will be set on the navigation for custom styling\n\t\t * @default ''\n\t\t * @example\n\t\t * ```html\n\t\t * <DialogBase :navigation-classes=\"['mydialog-navigation']\"><!-- --></DialogBase>\n\t\t * <!-- ... -->\n\t\t * <style lang=\"scss\">\n\t\t * :deep(.mydialog-navigation) {\n\t\t * flex-direction: row-reverse;\n\t\t * }\n\t\t * </style>\n\t\t * ```\n\t\t */\n\t\tnavigationClasses: {\n\t\t\ttype: [String, Array, Object],\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Optionally pass additionaly classes which will be set on the content wrapper for custom styling\n\t\t * @default ''\n\t\t */\n\t\tcontentClasses: {\n\t\t\ttype: [String, Array, Object],\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Optionally pass additionaly classes which will be set on the dialog itself\n\t\t * (the default `class` attribute will be set on the modal wrapper)\n\t\t * @default ''\n\t\t */\n\t\tdialogClasses: {\n\t\t\ttype: [String, Array, Object],\n\t\t\trequired: false,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\temits: ['closing', 'update:open'],\n\n\tsetup(props, { emit, slots }) {\n\t\t/**\n\t\t * The dialog wrapper element\n\t\t * @type {import('vue').Ref<HTMLDivElement>}\n\t\t */\n\t\tconst wrapper = ref()\n\n\t\t/**\n\t\t * We use the dialog width to decide if we collapse the navigation (flex direction row)\n\t\t */\n\t\tconst { width: dialogWidth } = useElementSize(wrapper)\n\n\t\t/**\n\t\t * Whether the navigation is collapsed due to dialog and window size\n\t\t * (collapses when modal is below: 900px modal width - 2x 12px margin)\n\t\t */\n\t\tconst isNavigationCollapsed = computed(() => dialogWidth.value < 876)\n\n\t\t/**\n\t\t * Whether a navigation was passed and the element should be displayed\n\t\t */\n\t\tconst hasNavigation = computed(() => slots?.navigation !== undefined)\n\n\t\t/**\n\t\t * If the underlaying modal is shown\n\t\t */\n\t\tconst showModal = ref(true)\n\n\t\t// Because NcModal does not emit `close` when show prop is changed\n\t\t/**\n\t\t * Handle clicking a dialog button -> should close\n\t\t */\n\t\tconst handleButtonClose = () => {\n\t\t\thandleClosing()\n\t\t\twindow.setTimeout(() => handleClosed(), 300)\n\t\t}\n\n\t\t/**\n\t\t * Handle closing the dialog, optional out transition did not run yet\n\t\t */\n\t\tconst handleClosing = () => {\n\t\t\tshowModal.value = false\n\t\t\t/**\n\t\t\t * Emitted when the dialog is closing, so the out transition did not finish yet\n\t\t\t */\n\t\t\temit('closing')\n\t\t}\n\n\t\t/**\n\t\t * Handle dialog closed (out transition finished)\n\t\t */\n\t\tconst handleClosed = () => {\n\t\t\tshowModal.value = true\n\t\t\t/**\n\t\t\t * Emitted then the dialog is fully closed and the out transition run\n\t\t\t */\n\t\t\temit('update:open', false)\n\t\t}\n\n\t\t/**\n\t\t * Properties to pass to the underlying NcModal\n\t\t */\n\t\tconst modalProps = computed(() => ({\n\t\t\tcanClose: props.canClose,\n\t\t\tcontainer: props.container === undefined ? 'body' : props.container,\n\t\t\t// we do not pass the name as we already have the name as the headline\n\t\t\t// name: props.name,\n\t\t\tsize: props.size,\n\t\t\tshow: props.open && showModal.value,\n\t\t\toutTransition: props.outTransition,\n\t\t\tclass: 'dialog__modal',\n\t\t\tcloseOnClickOutside: false,\n\t\t\tenableSlideshow: false,\n\t\t\tenableSwipe: false,\n\t\t}))\n\n\t\treturn {\n\t\t\thandleButtonClose,\n\t\t\thandleClosing,\n\t\t\thandleClosed,\n\t\t\thasNavigation,\n\t\t\tisNavigationCollapsed,\n\t\t\tmodalProps,\n\t\t\twrapper,\n\t\t}\n\t},\n})\n</script>\n\n<style lang=\"scss\">\n/** When having the small dialog style we override the modal styling so dialogs look more dialog like */\n@media only screen and (max-width: math.div($breakpoint-mobile, 2)) {\n\t.dialog__modal .modal-wrapper--small .modal-container {\n\t\twidth: fit-content;\n\t\theight: unset;\n\t\tmax-height: 90%;\n\t\tposition: relative;\n\t\ttop: unset;\n\t\tborder-radius: var(--border-radius-large);\n\t}\n}\n</style>\n\n<style lang=\"scss\" scoped>\n.dialog {\n\theight: 100%;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\toverflow: hidden;\n\n\t&__modal {\n\t\t:deep(.modal-container) {\n\t\t\tdisplay: flex !important;\n\t\t\tpadding-block: 4px 8px; // 4px to align with close button, 8px block-end to allow the actions a margin of 4px for the focus visible outline\n\t\t\tpadding-inline: 12px 8px; // Same as with padding-block, we need the actions to have a margin of 4px for the button outline\n\t\t}\n\t\t:deep(.modal-container__content) {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t}\n\t}\n\n\t&__wrapper {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\t// Auto scale to fit\n\t\tflex: 1;\n\t\tmin-height: 0;\n\t\toverflow: hidden;\n\t\t// see modal-container padding, this aligns with the padding-inline-start (8px + 4px = 12px)\n\t\tpadding-inline-end: 4px;\n\n\t\t&--collapsed {\n\t\t\tflex-direction: column;\n\t\t}\n\t}\n\n\t&__navigation {\n\t\tdisplay: flex;\n\t\tflex-shrink: 0;\n\t}\n\n\t// Navigation styling when side-by-side with content\n\t&__wrapper:not(&__wrapper--collapsed) &__navigation {\n\t\tflex-direction: column;\n\n\t\toverflow: hidden auto;\n\t\theight: 100%;\n\t\tmin-width: 200px;\n\t\tmargin-inline-end: 20px;\n\t}\n\n\t// Navigation styling when on top of content\n\t&__wrapper#{&}__wrapper--collapsed &__navigation {\n\t\tflex-direction: row;\n\t\tjustify-content: space-between;\n\n\t\toverflow: auto hidden;\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&__name {\n\t\t// Same as the NcAppSettingsDialog\n\t\ttext-align: center;\n\t\theight: var(--default-clickable-area);\n\t\tmin-height: var(--default-clickable-area);\n\t\tline-height: var(--default-clickable-area);\n\t\tmargin-block-end: 12px;\n\t}\n\n\t&__content {\n\t\t// Auto fit\n\t\tflex: 1;\n\t\tmin-height: 0;\n\t\toverflow: auto;\n\t}\n\n\t&__actions {\n\t\tdisplay: flex;\n\t\tgap: 6px;\n\t\talign-content: center;\n\t\twidth: fit-content;\n\t\tmargin-inline: auto 4px; // 4px to align with the overall modal padding, we need this here for the buttons to have their 4px focus-visible outline\n\t\tmargin-block: 6px 4px; // 4px block-end see reason above\n\t}\n}\n</style>\n"],"names":["_sfc_main","defineComponent","NcDialogButton","NcModal","arr","element","value","props","emit","slots","wrapper","ref","dialogWidth","useElementSize","isNavigationCollapsed","computed","hasNavigation","showModal","handleButtonClose","handleClosing","handleClosed","modalProps"],"mappings":";;;;;;AAoIA,MAAAA,IAAAC,EAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,gBAAAC;AAAA,IACA,SAAAC;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA,IAEA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA,IAGA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA,IAGA,wBAAA;AAAA,MACA,MAAA;AAAA,MACA,WAAA,CAAAC,MAAA,MAAA,QAAAA,CAAA,KAAAA,EAAA,MAAA,CAAAC,MAAA,OAAAA,KAAA,QAAA;AAAA,MACA,SAAA,MAAA,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,WAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAAA,KAAA,YAAA,CAAA,SAAA,UAAA,SAAA,MAAA,EAAA,SAAAA,CAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,SAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA,MAAA,CAAA;AAAA,MACA,WAAA,CAAAA,MAAA,MAAA,QAAAA,CAAA,KAAAA,EAAA,MAAA,CAAAD,MAAA,OAAAA,KAAA,QAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,eAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAgBA,mBAAA;AAAA,MACA,MAAA,CAAA,QAAA,OAAA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,gBAAA;AAAA,MACA,MAAA,CAAA,QAAA,OAAA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAOA,eAAA;AAAA,MACA,MAAA,CAAA,QAAA,OAAA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA,CAAA,WAAA,aAAA;AAAA,EAEA,MAAAE,GAAA,EAAA,MAAAC,GAAA,OAAAC,EAAA,GAAA;AAKA,UAAAC,IAAAC,EAAA,GAKA,EAAA,OAAAC,EAAA,IAAAC,EAAAH,CAAA,GAMAI,IAAAC,EAAA,MAAAH,EAAA,QAAA,GAAA,GAKAI,IAAAD,EAAA,OAAAN,KAAA,gBAAAA,EAAA,gBAAA,MAAA,GAKAQ,IAAAN,EAAA,EAAA,GAMAO,IAAA,MAAA;AACA,MAAAC,EAAA,GACA,OAAA,WAAA,MAAAC,EAAA,GAAA,GAAA;AAAA,IACA,GAKAD,IAAA,MAAA;AACA,MAAAF,EAAA,QAAA,IAIAT,EAAA,SAAA;AAAA,IACA,GAKAY,IAAA,MAAA;AACA,MAAAH,EAAA,QAAA,IAIAT,EAAA,eAAA,EAAA;AAAA,IACA,GAKAa,IAAAN,EAAA,OAAA;AAAA,MACA,UAAAR,EAAA;AAAA,MACA,WAAAA,EAAA,cAAA,SAAA,SAAAA,EAAA;AAAA;AAAA;AAAA,MAGA,MAAAA,EAAA;AAAA,MACA,MAAAA,EAAA,QAAAU,EAAA;AAAA,MACA,eAAAV,EAAA;AAAA,MACA,OAAA;AAAA,MACA,qBAAA;AAAA,MACA,iBAAA;AAAA,MACA,aAAA;AAAA,IACA,EAAA;AAEA,WAAA;AAAA,MACA,mBAAAW;AAAA,MACA,eAAAC;AAAA,MACA,cAAAC;AAAA,MACA,eAAAJ;AAAA,MACA,uBAAAF;AAAA,MACA,YAAAO;AAAA,MACA,SAAAX;AAAA,IACA;AAAA,EACA;AACA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ const o = require("vue"), l = require("./NcButton.cjs"), i = require("./NcIconSvgWrapper.cjs"), u = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs"), a = o.defineComponent({
3
+ name: "NcDialogButton",
4
+ components: {
5
+ NcButton: l,
6
+ NcIconSvgWrapper: i
7
+ },
8
+ props: {
9
+ /**
10
+ * The function that will be called when the button is pressed
11
+ * @type {() => void}
12
+ */
13
+ callback: {
14
+ type: Function,
15
+ required: !0
16
+ },
17
+ /**
18
+ * The label of the button
19
+ */
20
+ label: {
21
+ type: String,
22
+ required: !0
23
+ },
24
+ /**
25
+ * Optional inline SVG icon for the button
26
+ */
27
+ icon: {
28
+ type: String,
29
+ required: !1,
30
+ default: void 0
31
+ },
32
+ /**
33
+ * The button type, see NcButton
34
+ * @values 'primary', 'secondary', 'error', 'warning', 'success'
35
+ */
36
+ type: {
37
+ type: String,
38
+ required: !1,
39
+ default: "secondary",
40
+ validator: (n) => typeof n == "string" && ["primary", "secondary", "error", "warning", "success"].includes(n)
41
+ }
42
+ },
43
+ emits: ["click"],
44
+ setup(n, { emit: e }) {
45
+ return { handleClick: (c) => {
46
+ var r;
47
+ (r = n.callback) == null || r.call(n), e("click", c);
48
+ } };
49
+ }
50
+ });
51
+ var s = function() {
52
+ var e = this, t = e._self._c;
53
+ return e._self._setupProxy, t("NcButton", { attrs: { "aria-label": e.label, type: e.type }, on: { click: e.handleClick }, scopedSlots: e._u([{ key: "icon", fn: function() {
54
+ return [e._t("icon", function() {
55
+ return [e.icon !== void 0 ? t("NcIconSvgWrapper", { attrs: { svg: e.icon } }) : e._e()];
56
+ })];
57
+ }, proxy: !0 }], null, !0) }, [e._v(" " + e._s(e.label) + " ")]);
58
+ }, _ = [], d = /* @__PURE__ */ u.normalizeComponent(
59
+ a,
60
+ s,
61
+ _,
62
+ !1,
63
+ null,
64
+ null,
65
+ null,
66
+ null
67
+ );
68
+ const p = d.exports;
69
+ module.exports = p;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcDialogButton.cjs","sources":["../../src/components/NcDialogButton/NcDialogButton.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2023 Ferdinand Thiessen\n -\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\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<docs>\nDialog button component used by NcDialog in the actions slot to display the buttons passed by the `buttons` prop.\n</docs>\n\n<template>\n\t<NcButton :aria-label=\"label\" :type=\"type\" @click=\"handleClick\">\n\t\t{{ label }}\n\t\t<template #icon>\n\t\t\t<!-- @slot Allow to set a custom icon for the button -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<NcIconSvgWrapper v-if=\"icon !== undefined\" :svg=\"icon\" />\n\t\t\t</slot>\n\t\t</template>\n\t</NcButton>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport NcButton from '../NcButton/index.js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/index.js'\n\nexport default defineComponent({\n\tname: 'NcDialogButton',\n\n\tcomponents: {\n\t\tNcButton,\n\t\tNcIconSvgWrapper,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The function that will be called when the button is pressed\n\t\t * @type {() => void}\n\t\t */\n\t\tcallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\n\t\t/**\n\t\t * The label of the button\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 * Optional inline SVG icon for the button\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * The button type, see NcButton\n\t\t * @values 'primary', 'secondary', 'error', 'warning', 'success'\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: 'secondary',\n\t\t\tvalidator: (type) => typeof type === 'string' && ['primary', 'secondary', 'error', 'warning', 'success'].includes(type),\n\t\t},\n\t},\n\n\temits: ['click'],\n\n\tsetup(props, { emit }) {\n\t\t/**\n\t\t * Handle clicking the button\n\t\t * @param {MouseEvent} e The click event\n\t\t */\n\t\tconst handleClick = (e) => {\n\t\t\tprops.callback?.()\n\t\t\temit('click', e)\n\t\t}\n\n\t\treturn { handleClick }\n\t},\n})\n</script>\n"],"names":["_sfc_main","defineComponent","NcButton","NcIconSvgWrapper","type","props","emit","e","_a"],"mappings":";+JA2CAA,IAAAC,EAAAA,gBAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,UAAAC;AAAAA,IACA,kBAAAC;AAAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAAA,KAAA,YAAA,CAAA,WAAA,aAAA,SAAA,WAAA,SAAA,EAAA,SAAAA,CAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA,CAAA,OAAA;AAAA,EAEA,MAAAC,GAAA,EAAA,MAAAC,KAAA;AAUA,WAAA,EAAA,aALA,CAAAC,MAAA;;AACA,OAAAC,IAAAH,EAAA,aAAA,QAAAG,EAAA,KAAAH,IACAC,EAAA,SAAAC,CAAA;AAAA,IACA,EAEA;AAAA,EACA;AACA,CAAA;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,74 @@
1
+ import { defineComponent as o } from "vue";
2
+ import l from "./NcButton.mjs";
3
+ import i from "./NcIconSvgWrapper.mjs";
4
+ import { n as a } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
5
+ const u = o({
6
+ name: "NcDialogButton",
7
+ components: {
8
+ NcButton: l,
9
+ NcIconSvgWrapper: i
10
+ },
11
+ props: {
12
+ /**
13
+ * The function that will be called when the button is pressed
14
+ * @type {() => void}
15
+ */
16
+ callback: {
17
+ type: Function,
18
+ required: !0
19
+ },
20
+ /**
21
+ * The label of the button
22
+ */
23
+ label: {
24
+ type: String,
25
+ required: !0
26
+ },
27
+ /**
28
+ * Optional inline SVG icon for the button
29
+ */
30
+ icon: {
31
+ type: String,
32
+ required: !1,
33
+ default: void 0
34
+ },
35
+ /**
36
+ * The button type, see NcButton
37
+ * @values 'primary', 'secondary', 'error', 'warning', 'success'
38
+ */
39
+ type: {
40
+ type: String,
41
+ required: !1,
42
+ default: "secondary",
43
+ validator: (n) => typeof n == "string" && ["primary", "secondary", "error", "warning", "success"].includes(n)
44
+ }
45
+ },
46
+ emits: ["click"],
47
+ setup(n, { emit: e }) {
48
+ return { handleClick: (c) => {
49
+ var r;
50
+ (r = n.callback) == null || r.call(n), e("click", c);
51
+ } };
52
+ }
53
+ });
54
+ var s = function() {
55
+ var e = this, t = e._self._c;
56
+ return e._self._setupProxy, t("NcButton", { attrs: { "aria-label": e.label, type: e.type }, on: { click: e.handleClick }, scopedSlots: e._u([{ key: "icon", fn: function() {
57
+ return [e._t("icon", function() {
58
+ return [e.icon !== void 0 ? t("NcIconSvgWrapper", { attrs: { svg: e.icon } }) : e._e()];
59
+ })];
60
+ }, proxy: !0 }], null, !0) }, [e._v(" " + e._s(e.label) + " ")]);
61
+ }, d = [], f = /* @__PURE__ */ a(
62
+ u,
63
+ s,
64
+ d,
65
+ !1,
66
+ null,
67
+ null,
68
+ null,
69
+ null
70
+ );
71
+ const g = f.exports;
72
+ export {
73
+ g as default
74
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NcDialogButton.mjs","sources":["../../src/components/NcDialogButton/NcDialogButton.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2023 Ferdinand Thiessen\n -\n - @author Ferdinand Thiessen <opensource@fthiessen.de>\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<docs>\nDialog button component used by NcDialog in the actions slot to display the buttons passed by the `buttons` prop.\n</docs>\n\n<template>\n\t<NcButton :aria-label=\"label\" :type=\"type\" @click=\"handleClick\">\n\t\t{{ label }}\n\t\t<template #icon>\n\t\t\t<!-- @slot Allow to set a custom icon for the button -->\n\t\t\t<slot name=\"icon\">\n\t\t\t\t<NcIconSvgWrapper v-if=\"icon !== undefined\" :svg=\"icon\" />\n\t\t\t</slot>\n\t\t</template>\n\t</NcButton>\n</template>\n\n<script>\nimport { defineComponent } from 'vue'\nimport NcButton from '../NcButton/index.js'\nimport NcIconSvgWrapper from '../NcIconSvgWrapper/index.js'\n\nexport default defineComponent({\n\tname: 'NcDialogButton',\n\n\tcomponents: {\n\t\tNcButton,\n\t\tNcIconSvgWrapper,\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The function that will be called when the button is pressed\n\t\t * @type {() => void}\n\t\t */\n\t\tcallback: {\n\t\t\ttype: Function,\n\t\t\trequired: true,\n\t\t},\n\n\t\t/**\n\t\t * The label of the button\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 * Optional inline SVG icon for the button\n\t\t */\n\t\ticon: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: undefined,\n\t\t},\n\n\t\t/**\n\t\t * The button type, see NcButton\n\t\t * @values 'primary', 'secondary', 'error', 'warning', 'success'\n\t\t */\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\trequired: false,\n\t\t\tdefault: 'secondary',\n\t\t\tvalidator: (type) => typeof type === 'string' && ['primary', 'secondary', 'error', 'warning', 'success'].includes(type),\n\t\t},\n\t},\n\n\temits: ['click'],\n\n\tsetup(props, { emit }) {\n\t\t/**\n\t\t * Handle clicking the button\n\t\t * @param {MouseEvent} e The click event\n\t\t */\n\t\tconst handleClick = (e) => {\n\t\t\tprops.callback?.()\n\t\t\temit('click', e)\n\t\t}\n\n\t\treturn { handleClick }\n\t},\n})\n</script>\n"],"names":["_sfc_main","defineComponent","NcButton","NcIconSvgWrapper","type","props","emit","e","_a"],"mappings":";;;;AA2CA,MAAAA,IAAAC,EAAA;AAAA,EACA,MAAA;AAAA,EAEA,YAAA;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,EACA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,UAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,OAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,WAAA,CAAAC,MAAA,OAAAA,KAAA,YAAA,CAAA,WAAA,aAAA,SAAA,WAAA,SAAA,EAAA,SAAAA,CAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,OAAA,CAAA,OAAA;AAAA,EAEA,MAAAC,GAAA,EAAA,MAAAC,KAAA;AAUA,WAAA,EAAA,aALA,CAAAC,MAAA;;AACA,OAAAC,IAAAH,EAAA,aAAA,QAAAG,EAAA,KAAAH,IACAC,EAAA,SAAAC,CAAA;AAAA,IACA,EAEA;AAAA,EACA;AACA,CAAA;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  var j = require("../assets/index-2a8e4ca1.css");
2
- const c = require("./NcPopover.cjs"), l = require("./NcTextField.cjs"), r = require("../chunks/l10n-903083c4.cjs"), a = require("emoji-mart-vue-fast"), u = require("emoji-mart-vue-fast/data/all.json"), f = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs"), p = (t) => t && t.__esModule ? t : { default: t }, d = /* @__PURE__ */ p(u);
2
+ const c = require("./NcPopover.cjs"), l = require("./NcTextField.cjs"), r = require("../chunks/l10n-9f3afaf5.cjs"), a = require("emoji-mart-vue-fast"), u = require("emoji-mart-vue-fast/data/all.json"), f = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs"), p = (t) => t && t.__esModule ? t : { default: t }, d = /* @__PURE__ */ p(u);
3
3
  let o;
4
4
  const m = {
5
5
  search: r.t("Search emoji"),
@@ -1,7 +1,7 @@
1
1
  import "../assets/index-2a8e4ca1.css";
2
2
  import n from "./NcPopover.mjs";
3
3
  import c from "./NcTextField.mjs";
4
- import { t as r } from "../chunks/l10n-27a75c40.mjs";
4
+ import { t as r } from "../chunks/l10n-b6d21146.mjs";
5
5
  import { Emoji as l, Picker as u, EmojiIndex as f } from "emoji-mart-vue-fast";
6
6
  import p from "emoji-mart-vue-fast/data/all.json";
7
7
  import { n as m } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
@@ -1,4 +1,4 @@
1
- var a = require("../assets/index-c6f0da2e.css");
1
+ var a = require("../assets/index-c239a2fc.css");
2
2
  const s = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs");
3
3
  const i = {
4
4
  name: "NcEmptyContent",
@@ -28,27 +28,27 @@ const i = {
28
28
  * Check if a description is given as either property or slot
29
29
  */
30
30
  hasDescription() {
31
- var e;
32
- return this.description !== "" || ((e = this.$slots.description) == null ? void 0 : e[0]);
31
+ var n;
32
+ return this.description !== "" || ((n = this.$slots.description) == null ? void 0 : n[0]);
33
33
  }
34
34
  }
35
35
  };
36
- var c = function() {
37
- var t = this, n = t._self._c;
38
- return n("div", { staticClass: "empty-content", attrs: { role: "note" } }, [t.$slots.icon ? n("div", { staticClass: "empty-content__icon", attrs: { "aria-hidden": "true" } }, [t._t("icon")], 2) : t._e(), t._t("name", function() {
39
- return [t.hasName ? n("h2", { staticClass: "empty-content__name" }, [t._v(" " + t._s(t.name) + " ")]) : t._e()];
40
- }), t.hasDescription ? n("p", [t._t("description", function() {
36
+ var o = function() {
37
+ var t = this, e = t._self._c;
38
+ return e("div", { staticClass: "empty-content", attrs: { role: "note" } }, [t.$slots.icon ? e("div", { staticClass: "empty-content__icon", attrs: { "aria-hidden": "true" } }, [t._t("icon")], 2) : t._e(), t._t("name", function() {
39
+ return [t.hasName ? e("span", { staticClass: "empty-content__name" }, [t._v(" " + t._s(t.name) + " ")]) : t._e()];
40
+ }), t.hasDescription ? e("p", { staticClass: "empty-content__description" }, [t._t("description", function() {
41
41
  return [t._v(" " + t._s(t.description) + " ")];
42
- })], 2) : t._e(), t.$slots.action ? n("div", { staticClass: "empty-content__action" }, [t._t("action")], 2) : t._e()], 2);
43
- }, o = [], r = /* @__PURE__ */ s.normalizeComponent(
42
+ })], 2) : t._e(), t.$slots.action ? e("div", { staticClass: "empty-content__action" }, [t._t("action")], 2) : t._e()], 2);
43
+ }, _ = [], c = /* @__PURE__ */ s.normalizeComponent(
44
44
  i,
45
- c,
46
45
  o,
46
+ _,
47
47
  !1,
48
48
  null,
49
- "3c45cf57",
49
+ "458108e7",
50
50
  null,
51
51
  null
52
52
  );
53
- const _ = r.exports;
54
- module.exports = _;
53
+ const r = c.exports;
54
+ module.exports = r;
@@ -1 +1 @@
1
- {"version":3,"file":"NcEmptyContent.cjs","sources":["../../src/components/NcEmptyContent/NcEmptyContent.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @author 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Basic use\n\nUse this component to display a message about an empty content.\nProviding an icon, name, and a description is strongly advised.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No comments\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n#### With custom svg\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No files in here\">\n\t\t<template #icon>\n\t\t\t<NcIconSvgWrapper :svg=\"folderSvg\" />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport folderSvg from '@mdi/svg/svg/folder.svg?raw'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfolderSvg,\n\t\t}\n\t},\n}\n</script>\n```\n\nYou can also customize the name using the `#name` slot\nand add actions. But to keep the style consistent across Nextcloud\nconsider only using header elements as the root elements for the name slot.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tdescription=\"No comments in here\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #name>\n\t\t\t<h1 class=\"empty-content__name\">\n\t\t\t\tNo comments\n\t\t\t</h1>\n\t\t</template>\n\t\t<template #action>\n\t\t\t<NcButton type=\"primary\">\n\t\t\t\tAdd a comment!\n\t\t\t</NcButton>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n\nSimilar to the `#name` slot, you could also use the `#description` slot.\nThe content will be rendered within a paragraph so you can use any inline element,\nlike a link.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No comments\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #description>\n\t\t\t<a href=\"https://en.wikipedia.org/wiki/Comment\">What is even a comment?</a>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<div class=\"empty-content\" role=\"note\">\n\t\t<div v-if=\"$slots.icon\" class=\"empty-content__icon\" aria-hidden=\"true\">\n\t\t\t<!-- @slot Optional material design icon -->\n\t\t\t<slot name=\"icon\" />\n\t\t</div>\n\t\t<!-- @slot Optional name if not set as property, shall be enclosed by a header element -->\n\t\t<slot name=\"name\">\n\t\t\t<h2 v-if=\"hasName\" class=\"empty-content__name\">\n\t\t\t\t{{ name }}\n\t\t\t</h2>\n\t\t</slot>\n\t\t<p v-if=\"hasDescription\">\n\t\t\t<!-- @slot Optional formatted description rendered inside a paragraph -->\n\t\t\t<slot name=\"description\">\n\t\t\t\t{{ description }}\n\t\t\t</slot>\n\t\t</p>\n\t\t<div v-if=\"$slots.action\" class=\"empty-content__action\">\n\t\t\t<!-- @slot Optional slot for a button or the like -->\n\t\t\t<slot name=\"action\" />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tname: 'NcEmptyContent',\n\n\tprops: {\n\t\t/**\n\t\t * A header message about an empty content shown\n\t\t * @example 'No comments'\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Desription of the empty content\n\t\t * @example 'No comments yet, start the conversation!'\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tcomputed: {\n\t\thasName() {\n\t\t\treturn this.name !== ''\n\t\t},\n\t\t/**\n\t\t * Check if a description is given as either property or slot\n\t\t */\n\t\thasDescription() {\n\t\t\treturn this.description !== '' || this.$slots.description?.[0]\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.empty-content {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\tjustify-content: center;\n\t/* In case of using in a flex container - flex in advance */\n\tflex-grow: 1;\n\n\t.modal-wrapper & {\n\t\tmargin-top: 5vh;\n\t\tmargin-bottom: 5vh;\n\t}\n\n\t&__icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 64px;\n\t\theight: 64px;\n\t\tmargin: 0 auto 15px;\n\t\topacity: .4;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: 64px;\n\n\t\t:deep(svg) {\n\t\t\twidth: 64px !important;\n\t\t\theight: 64px !important;\n\t\t\tmax-width: 64px !important;\n\t\t\tmax-height: 64px !important;\n\t\t}\n\t}\n\n\t&__name {\n\t\tmargin-bottom: 10px;\n\t\ttext-align: center;\n\t}\n\n\t&__action {\n\t\tmargin-top: 8px;\n\n\t\t.modal-wrapper & {\n\t\t\tmargin-top: 20px;\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n}\n</style>\n"],"names":["_sfc_main","_a"],"mappings":";;AAsKA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,UAAA;AACA,aAAA,KAAA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;;AACA,aAAA,KAAA,gBAAA,QAAAC,IAAA,KAAA,OAAA,gBAAA,gBAAAA,EAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"NcEmptyContent.cjs","sources":["../../src/components/NcEmptyContent/NcEmptyContent.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @author 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Basic use\n\nUse this component to display a message about an empty content.\nProviding an icon, name, and a description is strongly advised.\n\n```\n<template>\n\t<NcEmptyContent name=\"No comments\"\n\t\tdescription=\"Start writing comments and they will appear here.\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n#### With custom svg\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No files in here\">\n\t\t<template #icon>\n\t\t\t<NcIconSvgWrapper :svg=\"folderSvg\" />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport folderSvg from '@mdi/svg/svg/folder.svg?raw'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfolderSvg,\n\t\t}\n\t},\n}\n</script>\n```\n\nYou can also customize the name using the `#name` slot\nand add actions. But to keep the style consistent across Nextcloud\nconsider only using header elements as the root elements for the name slot.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tdescription=\"No comments in here\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #name>\n\t\t\t<h1 class=\"empty-content__name\">\n\t\t\t\tNo comments\n\t\t\t</h1>\n\t\t</template>\n\t\t<template #action>\n\t\t\t<NcButton type=\"primary\">\n\t\t\t\tAdd a comment!\n\t\t\t</NcButton>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n\nSimilar to the `#name` slot, you could also use the `#description` slot.\nThe content will be rendered within a paragraph so you can use any inline element,\nlike a link.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No comments\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #description>\n\t\t\t<a href=\"https://en.wikipedia.org/wiki/Comment\">What is even a comment?</a>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<div class=\"empty-content\" role=\"note\">\n\t\t<div v-if=\"$slots.icon\" class=\"empty-content__icon\" aria-hidden=\"true\">\n\t\t\t<!-- @slot Optional material design icon -->\n\t\t\t<slot name=\"icon\" />\n\t\t</div>\n\t\t<!-- @slot Optional name if not set as property, shall be enclosed by a header element -->\n\t\t<slot name=\"name\">\n\t\t\t<span v-if=\"hasName\" class=\"empty-content__name\">\n\t\t\t\t{{ name }}\n\t\t\t</span>\n\t\t</slot>\n\t\t<p v-if=\"hasDescription\" class=\"empty-content__description\">\n\t\t\t<!-- @slot Optional formatted description rendered inside a paragraph -->\n\t\t\t<slot name=\"description\">\n\t\t\t\t{{ description }}\n\t\t\t</slot>\n\t\t</p>\n\t\t<div v-if=\"$slots.action\" class=\"empty-content__action\">\n\t\t\t<!-- @slot Optional slot for a button or the like -->\n\t\t\t<slot name=\"action\" />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tname: 'NcEmptyContent',\n\n\tprops: {\n\t\t/**\n\t\t * A header message about an empty content shown\n\t\t * @example 'No comments'\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Desription of the empty content\n\t\t * @example 'No comments yet, start the conversation!'\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tcomputed: {\n\t\thasName() {\n\t\t\treturn this.name !== ''\n\t\t},\n\t\t/**\n\t\t * Check if a description is given as either property or slot\n\t\t */\n\t\thasDescription() {\n\t\t\treturn this.description !== '' || this.$slots.description?.[0]\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.empty-content {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\tjustify-content: center;\n\t/* In case of using in a flex container - flex in advance */\n\tflex-grow: 1;\n\n\t.modal-wrapper & {\n\t\tmargin-top: 5vh;\n\t\tmargin-bottom: 5vh;\n\t}\n\n\t&__icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 64px;\n\t\theight: 64px;\n\t\tmargin: 0 auto 15px;\n\t\topacity: .4;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: 64px;\n\n\t\t:deep(svg) {\n\t\t\twidth: 64px !important;\n\t\t\theight: 64px !important;\n\t\t\tmax-width: 64px !important;\n\t\t\tmax-height: 64px !important;\n\t\t}\n\t}\n\n\t&__name {\n\t\tmargin-bottom: 10px;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tfont-size: 20px;\n\t\tline-height: 30px;\n\t}\n\n\t&__description {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\t&__action {\n\t\tmargin-top: 8px;\n\n\t\t.modal-wrapper & {\n\t\t\tmargin-top: 20px;\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n}\n</style>\n"],"names":["_sfc_main","_a"],"mappings":";;AAsKA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,UAAA;AACA,aAAA,KAAA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;;AACA,aAAA,KAAA,gBAAA,QAAAC,IAAA,KAAA,OAAA,gBAAA,gBAAAA,EAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import "../assets/index-c6f0da2e.css";
1
+ import "../assets/index-c239a2fc.css";
2
2
  import { n as s } from "../chunks/_plugin-vue2_normalizer-71e2aa87.mjs";
3
3
  const i = {
4
4
  name: "NcEmptyContent",
@@ -36,21 +36,21 @@ const i = {
36
36
  var o = function() {
37
37
  var t = this, n = t._self._c;
38
38
  return n("div", { staticClass: "empty-content", attrs: { role: "note" } }, [t.$slots.icon ? n("div", { staticClass: "empty-content__icon", attrs: { "aria-hidden": "true" } }, [t._t("icon")], 2) : t._e(), t._t("name", function() {
39
- return [t.hasName ? n("h2", { staticClass: "empty-content__name" }, [t._v(" " + t._s(t.name) + " ")]) : t._e()];
40
- }), t.hasDescription ? n("p", [t._t("description", function() {
39
+ return [t.hasName ? n("span", { staticClass: "empty-content__name" }, [t._v(" " + t._s(t.name) + " ")]) : t._e()];
40
+ }), t.hasDescription ? n("p", { staticClass: "empty-content__description" }, [t._t("description", function() {
41
41
  return [t._v(" " + t._s(t.description) + " ")];
42
42
  })], 2) : t._e(), t.$slots.action ? n("div", { staticClass: "empty-content__action" }, [t._t("action")], 2) : t._e()], 2);
43
- }, c = [], a = /* @__PURE__ */ s(
43
+ }, a = [], _ = /* @__PURE__ */ s(
44
44
  i,
45
45
  o,
46
- c,
46
+ a,
47
47
  !1,
48
48
  null,
49
- "3c45cf57",
49
+ "458108e7",
50
50
  null,
51
51
  null
52
52
  );
53
- const p = a.exports;
53
+ const p = _.exports;
54
54
  export {
55
55
  p as default
56
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"NcEmptyContent.mjs","sources":["../../src/components/NcEmptyContent/NcEmptyContent.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @author 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Basic use\n\nUse this component to display a message about an empty content.\nProviding an icon, name, and a description is strongly advised.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No comments\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n#### With custom svg\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No files in here\">\n\t\t<template #icon>\n\t\t\t<NcIconSvgWrapper :svg=\"folderSvg\" />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport folderSvg from '@mdi/svg/svg/folder.svg?raw'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfolderSvg,\n\t\t}\n\t},\n}\n</script>\n```\n\nYou can also customize the name using the `#name` slot\nand add actions. But to keep the style consistent across Nextcloud\nconsider only using header elements as the root elements for the name slot.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tdescription=\"No comments in here\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #name>\n\t\t\t<h1 class=\"empty-content__name\">\n\t\t\t\tNo comments\n\t\t\t</h1>\n\t\t</template>\n\t\t<template #action>\n\t\t\t<NcButton type=\"primary\">\n\t\t\t\tAdd a comment!\n\t\t\t</NcButton>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n\nSimilar to the `#name` slot, you could also use the `#description` slot.\nThe content will be rendered within a paragraph so you can use any inline element,\nlike a link.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No comments\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #description>\n\t\t\t<a href=\"https://en.wikipedia.org/wiki/Comment\">What is even a comment?</a>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<div class=\"empty-content\" role=\"note\">\n\t\t<div v-if=\"$slots.icon\" class=\"empty-content__icon\" aria-hidden=\"true\">\n\t\t\t<!-- @slot Optional material design icon -->\n\t\t\t<slot name=\"icon\" />\n\t\t</div>\n\t\t<!-- @slot Optional name if not set as property, shall be enclosed by a header element -->\n\t\t<slot name=\"name\">\n\t\t\t<h2 v-if=\"hasName\" class=\"empty-content__name\">\n\t\t\t\t{{ name }}\n\t\t\t</h2>\n\t\t</slot>\n\t\t<p v-if=\"hasDescription\">\n\t\t\t<!-- @slot Optional formatted description rendered inside a paragraph -->\n\t\t\t<slot name=\"description\">\n\t\t\t\t{{ description }}\n\t\t\t</slot>\n\t\t</p>\n\t\t<div v-if=\"$slots.action\" class=\"empty-content__action\">\n\t\t\t<!-- @slot Optional slot for a button or the like -->\n\t\t\t<slot name=\"action\" />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tname: 'NcEmptyContent',\n\n\tprops: {\n\t\t/**\n\t\t * A header message about an empty content shown\n\t\t * @example 'No comments'\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Desription of the empty content\n\t\t * @example 'No comments yet, start the conversation!'\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tcomputed: {\n\t\thasName() {\n\t\t\treturn this.name !== ''\n\t\t},\n\t\t/**\n\t\t * Check if a description is given as either property or slot\n\t\t */\n\t\thasDescription() {\n\t\t\treturn this.description !== '' || this.$slots.description?.[0]\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.empty-content {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\tjustify-content: center;\n\t/* In case of using in a flex container - flex in advance */\n\tflex-grow: 1;\n\n\t.modal-wrapper & {\n\t\tmargin-top: 5vh;\n\t\tmargin-bottom: 5vh;\n\t}\n\n\t&__icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 64px;\n\t\theight: 64px;\n\t\tmargin: 0 auto 15px;\n\t\topacity: .4;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: 64px;\n\n\t\t:deep(svg) {\n\t\t\twidth: 64px !important;\n\t\t\theight: 64px !important;\n\t\t\tmax-width: 64px !important;\n\t\t\tmax-height: 64px !important;\n\t\t}\n\t}\n\n\t&__name {\n\t\tmargin-bottom: 10px;\n\t\ttext-align: center;\n\t}\n\n\t&__action {\n\t\tmargin-top: 8px;\n\n\t\t.modal-wrapper & {\n\t\t\tmargin-top: 20px;\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n}\n</style>\n"],"names":["_sfc_main","_a"],"mappings":";;AAsKA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,UAAA;AACA,aAAA,KAAA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;;AACA,aAAA,KAAA,gBAAA,QAAAC,IAAA,KAAA,OAAA,gBAAA,gBAAAA,EAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"NcEmptyContent.mjs","sources":["../../src/components/NcEmptyContent/NcEmptyContent.vue"],"sourcesContent":["<!--\n - @copyright Copyright (c) 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @author 2020 Greta Doci <gretadoci@gmail.com>\n -\n - @license GNU AGPL version 3 or any later version\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n\n<docs>\n### Basic use\n\nUse this component to display a message about an empty content.\nProviding an icon, name, and a description is strongly advised.\n\n```\n<template>\n\t<NcEmptyContent name=\"No comments\"\n\t\tdescription=\"Start writing comments and they will appear here.\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n#### With custom svg\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No files in here\">\n\t\t<template #icon>\n\t\t\t<NcIconSvgWrapper :svg=\"folderSvg\" />\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport folderSvg from '@mdi/svg/svg/folder.svg?raw'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tfolderSvg,\n\t\t}\n\t},\n}\n</script>\n```\n\nYou can also customize the name using the `#name` slot\nand add actions. But to keep the style consistent across Nextcloud\nconsider only using header elements as the root elements for the name slot.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tdescription=\"No comments in here\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #name>\n\t\t\t<h1 class=\"empty-content__name\">\n\t\t\t\tNo comments\n\t\t\t</h1>\n\t\t</template>\n\t\t<template #action>\n\t\t\t<NcButton type=\"primary\">\n\t\t\t\tAdd a comment!\n\t\t\t</NcButton>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n\nSimilar to the `#name` slot, you could also use the `#description` slot.\nThe content will be rendered within a paragraph so you can use any inline element,\nlike a link.\n\n```\n<template>\n\t<NcEmptyContent\n\t\tname=\"No comments\">\n\t\t<template #icon>\n\t\t\t<Comment />\n\t\t</template>\n\t\t<template #description>\n\t\t\t<a href=\"https://en.wikipedia.org/wiki/Comment\">What is even a comment?</a>\n\t\t</template>\n\t</NcEmptyContent>\n</template>\n\n<script>\nimport Comment from 'vue-material-design-icons/Comment'\n\nexport default {\n\tcomponents: {\n\t\tComment,\n\t},\n}\n</script>\n```\n</docs>\n\n<template>\n\t<div class=\"empty-content\" role=\"note\">\n\t\t<div v-if=\"$slots.icon\" class=\"empty-content__icon\" aria-hidden=\"true\">\n\t\t\t<!-- @slot Optional material design icon -->\n\t\t\t<slot name=\"icon\" />\n\t\t</div>\n\t\t<!-- @slot Optional name if not set as property, shall be enclosed by a header element -->\n\t\t<slot name=\"name\">\n\t\t\t<span v-if=\"hasName\" class=\"empty-content__name\">\n\t\t\t\t{{ name }}\n\t\t\t</span>\n\t\t</slot>\n\t\t<p v-if=\"hasDescription\" class=\"empty-content__description\">\n\t\t\t<!-- @slot Optional formatted description rendered inside a paragraph -->\n\t\t\t<slot name=\"description\">\n\t\t\t\t{{ description }}\n\t\t\t</slot>\n\t\t</p>\n\t\t<div v-if=\"$slots.action\" class=\"empty-content__action\">\n\t\t\t<!-- @slot Optional slot for a button or the like -->\n\t\t\t<slot name=\"action\" />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nexport default {\n\tname: 'NcEmptyContent',\n\n\tprops: {\n\t\t/**\n\t\t * A header message about an empty content shown\n\t\t * @example 'No comments'\n\t\t */\n\t\tname: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Desription of the empty content\n\t\t * @example 'No comments yet, start the conversation!'\n\t\t */\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\tcomputed: {\n\t\thasName() {\n\t\t\treturn this.name !== ''\n\t\t},\n\t\t/**\n\t\t * Check if a description is given as either property or slot\n\t\t */\n\t\thasDescription() {\n\t\t\treturn this.description !== '' || this.$slots.description?.[0]\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.empty-content {\n\tdisplay: flex;\n\talign-items: center;\n\tflex-direction: column;\n\tjustify-content: center;\n\t/* In case of using in a flex container - flex in advance */\n\tflex-grow: 1;\n\n\t.modal-wrapper & {\n\t\tmargin-top: 5vh;\n\t\tmargin-bottom: 5vh;\n\t}\n\n\t&__icon {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tjustify-content: center;\n\t\twidth: 64px;\n\t\theight: 64px;\n\t\tmargin: 0 auto 15px;\n\t\topacity: .4;\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: center;\n\t\tbackground-size: 64px;\n\n\t\t:deep(svg) {\n\t\t\twidth: 64px !important;\n\t\t\theight: 64px !important;\n\t\t\tmax-width: 64px !important;\n\t\t\tmax-height: 64px !important;\n\t\t}\n\t}\n\n\t&__name {\n\t\tmargin-bottom: 10px;\n\t\ttext-align: center;\n\t\tfont-weight: bold;\n\t\tfont-size: 20px;\n\t\tline-height: 30px;\n\t}\n\n\t&__description {\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\t&__action {\n\t\tmargin-top: 8px;\n\n\t\t.modal-wrapper & {\n\t\t\tmargin-top: 20px;\n\t\t\tdisplay: flex;\n\t\t}\n\t}\n}\n</style>\n"],"names":["_sfc_main","_a"],"mappings":";;AAsKA,MAAAA,IAAA;AAAA,EACA,MAAA;AAAA,EAEA,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,aAAA;AAAA,MACA,MAAA;AAAA,MACA,SAAA;AAAA,IACA;AAAA,EACA;AAAA,EAEA,UAAA;AAAA,IACA,UAAA;AACA,aAAA,KAAA,SAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA,IAIA,iBAAA;;AACA,aAAA,KAAA,gBAAA,QAAAC,IAAA,KAAA,OAAA,gBAAA,gBAAAA,EAAA;AAAA,IACA;AAAA,EACA;AACA;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
- var p = require("../assets/index-c7905a53.css");
2
- const s = require("vue"), a = require("dompurify"), o = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs"), r = (n) => n && n.__esModule ? n : { default: n }, i = /* @__PURE__ */ r(s), u = /* @__PURE__ */ r(a);
3
- const c = {
1
+ var f = require("../assets/index-57b305d3.css");
2
+ const s = require("vue"), a = require("dompurify"), i = require("../chunks/_plugin-vue2_normalizer-7f9efb60.cjs"), r = (t) => t && t.__esModule ? t : { default: t }, u = /* @__PURE__ */ r(s), o = /* @__PURE__ */ r(a);
3
+ const l = {
4
4
  name: "NcIconSvgWrapper",
5
5
  props: {
6
6
  /**
@@ -16,29 +16,44 @@ const c = {
16
16
  name: {
17
17
  type: String,
18
18
  default: ""
19
+ },
20
+ /**
21
+ * Raw SVG path to render. Takes precedence over the SVG string in the `svg` prop.
22
+ */
23
+ path: {
24
+ type: String,
25
+ default: ""
19
26
  }
20
27
  },
21
28
  computed: {
22
29
  cleanSvg() {
23
- if (!this.svg)
30
+ if (!this.svg || this.path)
24
31
  return;
25
- const n = u.default.sanitize(this.svg), e = new DOMParser().parseFromString(n, "image/svg+xml");
26
- return e.querySelector("parsererror") ? (i.default.util.warn("SVG is not valid"), "") : (e.documentElement.id && e.documentElement.removeAttribute("id"), e.documentElement.outerHTML);
32
+ const t = o.default.sanitize(this.svg), e = new DOMParser().parseFromString(t, "image/svg+xml");
33
+ return e.querySelector("parsererror") ? (u.default.util.warn("SVG is not valid"), "") : (e.documentElement.id && e.documentElement.removeAttribute("id"), e.documentElement.outerHTML);
34
+ },
35
+ attributes() {
36
+ return {
37
+ class: "icon-vue",
38
+ role: "img",
39
+ "aria-hidden": this.name ? void 0 : !0,
40
+ "aria-label": this.name || void 0
41
+ };
27
42
  }
28
43
  }
29
44
  };
30
- var l = function() {
31
- var e = this, t = e._self._c;
32
- return t("span", { staticClass: "icon-vue", attrs: { role: "img", "aria-hidden": e.name ? void 0 : !0, "aria-label": e.name || void 0 }, domProps: { innerHTML: e._s(e.cleanSvg) } });
33
- }, _ = [], d = /* @__PURE__ */ o.normalizeComponent(
34
- c,
45
+ var c = function() {
46
+ var e = this, n = e._self._c;
47
+ return e.cleanSvg ? n("span", e._b({ domProps: { innerHTML: e._s(e.cleanSvg) } }, "span", e.attributes, !1)) : n("span", e._b({}, "span", e.attributes, !1), [n("svg", { attrs: { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" } }, [n("path", { attrs: { d: e.path } })])]);
48
+ }, _ = [], p = /* @__PURE__ */ i.normalizeComponent(
35
49
  l,
50
+ c,
36
51
  _,
37
52
  !1,
38
53
  null,
39
- "3f335862",
54
+ "6176f396",
40
55
  null,
41
56
  null
42
57
  );
43
- const m = d.exports;
44
- module.exports = m;
58
+ const d = p.exports;
59
+ module.exports = d;