@conduction/nextcloud-vue 2.161.0 → 2.163.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 (233) hide show
  1. package/dist/esm/components/CnActionsMenu/CnActionsMenu.vue2.js +3 -2
  2. package/dist/esm/components/CnActionsMenu/CnActionsMenu.vue2.js.map +1 -1
  3. package/dist/esm/components/CnActionsMenu/CnActionsMenu.vue3.js.map +1 -1
  4. package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue.js +1 -1
  5. package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue2.js +2 -1
  6. package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue2.js.map +1 -1
  7. package/dist/esm/components/CnAddressSearch/CnAddressSearch.vue3.js.map +1 -1
  8. package/dist/esm/components/CnChipListManager/CnChipListManager.vue.js +9 -0
  9. package/dist/esm/components/CnChipListManager/CnChipListManager.vue.js.map +1 -0
  10. package/dist/esm/components/CnChipListManager/CnChipListManager.vue2.js +304 -0
  11. package/dist/esm/components/CnChipListManager/CnChipListManager.vue2.js.map +1 -0
  12. package/dist/esm/components/CnChipListManager/CnChipListManager.vue3.js +161 -0
  13. package/dist/esm/components/CnChipListManager/CnChipListManager.vue3.js.map +1 -0
  14. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
  15. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +2 -1
  16. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  17. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  18. package/dist/esm/components/CnDataTable/CnDataTable.vue2.js +8 -8
  19. package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
  20. package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
  21. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
  22. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js +23 -0
  23. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
  24. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
  25. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
  26. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +48 -5
  27. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
  28. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +2 -1
  29. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
  30. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
  31. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +4 -3
  32. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
  33. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
  34. package/dist/esm/components/CnFilesBrowser/filesBrowser.js +6 -5
  35. package/dist/esm/components/CnFilesBrowser/filesBrowser.js.map +1 -1
  36. package/dist/esm/components/CnFilesBrowser/openRegisterSource.js +2 -1
  37. package/dist/esm/components/CnFilesBrowser/openRegisterSource.js.map +1 -1
  38. package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue.js +1 -1
  39. package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue2.js +2 -1
  40. package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue2.js.map +1 -1
  41. package/dist/esm/components/CnFilesWidget/CnFilesWidget.vue3.js.map +1 -1
  42. package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue.js +1 -1
  43. package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue2.js +4 -0
  44. package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue2.js.map +1 -1
  45. package/dist/esm/components/CnFilterRowsEditor/CnFilterRowsEditor.vue3.js.map +1 -1
  46. package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue.js +1 -1
  47. package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue2.js.map +1 -1
  48. package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue3.js +41 -39
  49. package/dist/esm/components/CnFlowRunsWidget/CnFlowRunsWidget.vue3.js.map +1 -1
  50. package/dist/esm/components/CnFolderSidebar/webdavFolders.js +2 -1
  51. package/dist/esm/components/CnFolderSidebar/webdavFolders.js.map +1 -1
  52. package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
  53. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js +2 -2
  54. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
  55. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
  56. package/dist/esm/components/CnIconPicker/CnIconPicker.vue.js +1 -1
  57. package/dist/esm/components/CnIconPicker/CnIconPicker.vue2.js +4 -3
  58. package/dist/esm/components/CnIconPicker/CnIconPicker.vue2.js.map +1 -1
  59. package/dist/esm/components/CnIconPicker/CnIconPicker.vue3.js.map +1 -1
  60. package/dist/esm/components/CnIconPicker/iconCatalogues.js +16 -3
  61. package/dist/esm/components/CnIconPicker/iconCatalogues.js.map +1 -1
  62. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +87 -11
  63. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  64. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +2 -2
  65. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  66. package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue.js +1 -1
  67. package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue2.js +2 -1
  68. package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue2.js.map +1 -1
  69. package/dist/esm/components/CnLinksWidgetForm/CnLinksWidgetForm.vue3.js.map +1 -1
  70. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue.js +1 -1
  71. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue2.js +6 -1
  72. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue2.js.map +1 -1
  73. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue3.js.map +1 -1
  74. package/dist/esm/components/CnMenuWidget/menuActive.js +2 -1
  75. package/dist/esm/components/CnMenuWidget/menuActive.js.map +1 -1
  76. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue.js +1 -1
  77. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue2.js +1 -1
  78. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue2.js.map +1 -1
  79. package/dist/esm/components/CnObjectListWidget/CnObjectListWidget.vue3.js.map +1 -1
  80. package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue.js +1 -1
  81. package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue2.js +4 -0
  82. package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue2.js.map +1 -1
  83. package/dist/esm/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue3.js.map +1 -1
  84. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue.js +1 -1
  85. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js +39 -2
  86. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js.map +1 -1
  87. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js +1 -1
  88. package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js.map +1 -1
  89. package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue.js +1 -1
  90. package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue2.js +2 -1
  91. package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue2.js.map +1 -1
  92. package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue3.js.map +1 -1
  93. package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue.js +1 -1
  94. package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue2.js +10 -1
  95. package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue2.js.map +1 -1
  96. package/dist/esm/components/CnPageTreeNode/CnPageTreeRow.vue3.js.map +1 -1
  97. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
  98. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +5 -5
  99. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
  100. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
  101. package/dist/esm/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue2.js +22 -0
  102. package/dist/esm/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue2.js.map +1 -1
  103. package/dist/esm/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue3.js.map +1 -1
  104. package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue.js +1 -1
  105. package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue2.js +4 -0
  106. package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue2.js.map +1 -1
  107. package/dist/esm/components/CnStagesWidgetForm/CnStagesWidgetForm.vue3.js.map +1 -1
  108. package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue.js +1 -1
  109. package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue2.js +1 -1
  110. package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue2.js.map +1 -1
  111. package/dist/esm/components/CnWalkthrough/CnWalkthrough.vue3.js.map +1 -1
  112. package/dist/esm/composables/indexSources.js +30 -2
  113. package/dist/esm/composables/indexSources.js.map +1 -1
  114. package/dist/esm/index.js +1 -0
  115. package/dist/esm/index.js.map +1 -1
  116. package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue.js +1 -1
  117. package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue2.js +2 -1
  118. package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue2.js.map +1 -1
  119. package/dist/esm/integrations/builtin/analytics/CnAnalyticsCard.vue3.js.map +1 -1
  120. package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue.js +1 -1
  121. package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue2.js +3 -2
  122. package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue2.js.map +1 -1
  123. package/dist/esm/integrations/builtin/analytics/CnAnalyticsTab.vue3.js.map +1 -1
  124. package/dist/esm/integrations/builtin/email/CnEmailTab.vue.js +1 -1
  125. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js +130 -1
  126. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js.map +1 -1
  127. package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js +27 -16
  128. package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js.map +1 -1
  129. package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue.js +1 -1
  130. package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue2.js +2 -1
  131. package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue2.js.map +1 -1
  132. package/dist/esm/integrations/builtin/photos/CnPhotosCard.vue3.js.map +1 -1
  133. package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue.js +1 -1
  134. package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue2.js +2 -1
  135. package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue2.js.map +1 -1
  136. package/dist/esm/integrations/builtin/photos/CnPhotosTab.vue3.js.map +1 -1
  137. package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue.js +1 -1
  138. package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue2.js +2 -6
  139. package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue2.js.map +1 -1
  140. package/dist/esm/integrations/builtin/xwiki/CnXwikiCard.vue3.js.map +1 -1
  141. package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue.js +1 -1
  142. package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue2.js +2 -6
  143. package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue2.js.map +1 -1
  144. package/dist/esm/integrations/builtin/xwiki/CnXwikiTab.vue3.js.map +1 -1
  145. package/dist/esm/integrations/utils/marker.js +35 -6
  146. package/dist/esm/integrations/utils/marker.js.map +1 -1
  147. package/dist/esm/l10n/en.json.js +17 -1
  148. package/dist/esm/l10n/en.json.js.map +1 -1
  149. package/dist/esm/l10n/nl.json.js +17 -1
  150. package/dist/esm/l10n/nl.json.js.map +1 -1
  151. package/dist/esm/library-style.js +1 -1
  152. package/dist/esm/nextcloud-vue.css +1038 -822
  153. package/dist/esm/utils/buildManifestRoutes.js +2 -1
  154. package/dist/esm/utils/buildManifestRoutes.js.map +1 -1
  155. package/dist/esm/utils/cnFetch.js +1 -15
  156. package/dist/esm/utils/cnFetch.js.map +1 -1
  157. package/dist/esm/utils/fillTemplate.js +32 -2
  158. package/dist/esm/utils/fillTemplate.js.map +1 -1
  159. package/dist/esm/utils/forge.js +4 -1
  160. package/dist/esm/utils/forge.js.map +1 -1
  161. package/dist/esm/utils/htmlToText.js +36 -0
  162. package/dist/esm/utils/htmlToText.js.map +1 -0
  163. package/dist/esm/utils/myTeam.js +17 -3
  164. package/dist/esm/utils/myTeam.js.map +1 -1
  165. package/dist/esm/utils/prototypeKeys.js +20 -0
  166. package/dist/esm/utils/prototypeKeys.js.map +1 -0
  167. package/dist/esm/utils/rowAggregate.js +20 -1
  168. package/dist/esm/utils/rowAggregate.js.map +1 -1
  169. package/dist/esm/utils/toastUiRawHtmlGuard.js +166 -0
  170. package/dist/esm/utils/toastUiRawHtmlGuard.js.map +1 -0
  171. package/dist/esm/utils/trailingSlashes.js +24 -0
  172. package/dist/esm/utils/trailingSlashes.js.map +1 -0
  173. package/dist/nextcloud-vue.cjs.js +12490 -11295
  174. package/dist/nextcloud-vue.cjs.js.map +2 -2
  175. package/dist/nextcloud-vue.css +1038 -822
  176. package/l10n/en.json +17 -1
  177. package/l10n/nl.json +17 -1
  178. package/package.json +1 -1
  179. package/src/components/CnActionsMenu/CnActionsMenu.vue +3 -2
  180. package/src/components/CnAddressSearch/CnAddressSearch.vue +2 -1
  181. package/src/components/CnChipListManager/CnChipListManager.vue +504 -0
  182. package/src/components/CnChipListManager/index.js +4 -0
  183. package/src/components/CnDashboardPage/CnDashboardPage.vue +2 -1
  184. package/src/components/CnDataTable/CnDataTable.vue +8 -8
  185. package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +23 -0
  186. package/src/components/CnFactsWidget/CnFactsWidget.vue +49 -5
  187. package/src/components/CnFilesBrowser/CnFilesBrowser.vue +4 -3
  188. package/src/components/CnFilesBrowser/filesBrowser.js +6 -5
  189. package/src/components/CnFilesBrowser/openRegisterSource.js +2 -1
  190. package/src/components/CnFilesWidget/CnFilesWidget.vue +2 -1
  191. package/src/components/CnFilterRowsEditor/CnFilterRowsEditor.vue +4 -0
  192. package/src/components/CnFlowRunsWidget/CnFlowRunsWidget.vue +1 -1
  193. package/src/components/CnFolderSidebar/webdavFolders.js +2 -1
  194. package/src/components/CnFormDialog/CnFormDialog.vue +2 -2
  195. package/src/components/CnIconPicker/CnIconPicker.vue +4 -3
  196. package/src/components/CnIconPicker/iconCatalogues.js +16 -3
  197. package/src/components/CnIndexPage/CnIndexPage.vue +89 -13
  198. package/src/components/CnLinksWidgetForm/CnLinksWidgetForm.vue +2 -1
  199. package/src/components/CnMarkdownEditor/CnMarkdownEditor.vue +6 -1
  200. package/src/components/CnMenuWidget/menuActive.js +2 -1
  201. package/src/components/CnObjectListWidget/CnObjectListWidget.vue +1 -1
  202. package/src/components/CnObjectListWidgetForm/CnObjectListWidgetForm.vue +4 -0
  203. package/src/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue +40 -3
  204. package/src/components/CnPageTreeNode/CnPageTreeNode.vue +2 -1
  205. package/src/components/CnPageTreeNode/CnPageTreeRow.vue +10 -1
  206. package/src/components/CnRecordListWidget/CnRecordListWidget.vue +5 -5
  207. package/src/components/CnSchemaFormDialog/CnSchemaPropertyActions.vue +22 -0
  208. package/src/components/CnStagesWidgetForm/CnStagesWidgetForm.vue +4 -0
  209. package/src/components/CnWalkthrough/CnWalkthrough.vue +1 -1
  210. package/src/components/index.js +1 -0
  211. package/src/composables/indexSources.js +30 -2
  212. package/src/css/dialog.css +7 -0
  213. package/src/css/look-board-detail.css +41 -4
  214. package/src/css/look-board.css +64 -2
  215. package/src/index.js +1 -0
  216. package/src/integrations/builtin/analytics/CnAnalyticsCard.vue +2 -1
  217. package/src/integrations/builtin/analytics/CnAnalyticsTab.vue +3 -2
  218. package/src/integrations/builtin/email/CnEmailTab.vue +155 -4
  219. package/src/integrations/builtin/photos/CnPhotosCard.vue +2 -1
  220. package/src/integrations/builtin/photos/CnPhotosTab.vue +2 -1
  221. package/src/integrations/builtin/xwiki/CnXwikiCard.vue +2 -6
  222. package/src/integrations/builtin/xwiki/CnXwikiTab.vue +2 -6
  223. package/src/integrations/utils/marker.js +35 -6
  224. package/src/utils/buildManifestRoutes.js +2 -1
  225. package/src/utils/cnFetch.js +3 -15
  226. package/src/utils/fillTemplate.js +32 -2
  227. package/src/utils/forge.js +3 -1
  228. package/src/utils/htmlToText.js +33 -0
  229. package/src/utils/myTeam.js +17 -3
  230. package/src/utils/prototypeKeys.js +17 -0
  231. package/src/utils/rowAggregate.js +19 -0
  232. package/src/utils/toastUiRawHtmlGuard.js +162 -0
  233. package/src/utils/trailingSlashes.js +21 -0
@@ -686,8 +686,9 @@
686
686
  }
687
687
 
688
688
  /* The reply box under a conversation (DqZaakContact): a hairline and 16px
689
- above it, 10px between its parts, the field 10px 12px at 15px/1.5 with
690
- room for two lines (67px), the option at 14px.
689
+ above it, 10px between its parts, the field 10px 12px at 15px on the
690
+ normal line, two lines high (58px) and growing with its text, the option
691
+ at 14px.
691
692
  @spec openspec/changes/board-conversation-reply-box/specs/board-conversation-reply-box/spec.md#requirement-the-board-reply-box */
692
693
  .cn-look-board .cn-conversation-thread__reply:not(.cn-look-nextcloud *) {
693
694
  gap: 10px;
@@ -696,10 +697,11 @@
696
697
  }
697
698
 
698
699
  .cn-look-board .cn-conversation-thread__input:not(.cn-look-nextcloud *) {
699
- min-height: calc(3em + 22px);
700
+ field-sizing: content;
701
+ min-height: calc(2lh + 22px);
700
702
  padding: 10px 12px;
701
703
  font-size: 15px;
702
- line-height: 1.5;
704
+ line-height: normal;
703
705
  }
704
706
 
705
707
  .cn-look-board .cn-conversation-thread__reply-option:not(.cn-look-nextcloud *) {
@@ -848,6 +850,14 @@
848
850
  padding-top: 10px;
849
851
  }
850
852
 
853
+ /* The calendar and Deck cards (DqZaakTaken "Afspraken", "Kaarten") open on a
854
+ ruled row, so no leading comes off: the first row starts 12px under the
855
+ title block, as drawn. */
856
+ .cn-look-board .cn-detail-card .cn-detail-card__content:has(> .cn-calendar-card__list:first-child):not(.cn-look-nextcloud *),
857
+ .cn-look-board .cn-detail-card .cn-detail-card__content:has(> .cn-deck-card__rows:first-child):not(.cn-look-nextcloud *) {
858
+ padding-top: 12px;
859
+ }
860
+
851
861
  /* A data card (labels over values) starts 14px below its title (DqZaak
852
862
  "Zaakgegevens", DqContact "Contact"); its first label sits at the top of
853
863
  its line box, so no leading comes off. A side card keeps its 10px.
@@ -2088,6 +2098,33 @@
2088
2098
  color: var(--cn-board-text-soft);
2089
2099
  }
2090
2100
 
2101
+ /* A linked mail's details (DqZaakEmail): an outgoing mail's initials on the
2102
+ light primary tile, and a 13px/600 pill after the text, green for its
2103
+ archive copy ("Als pdf gearchiveerd"), light primary for "Gekoppeld".
2104
+ @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md */
2105
+ .cn-look-board .cn-email-tab__avatar--outbound:not(.cn-look-nextcloud *) .avatardiv__initials-wrapper {
2106
+ background-color: var(--color-primary-element-light) !important;
2107
+ }
2108
+
2109
+ .cn-look-board .cn-email-tab__avatar--outbound:not(.cn-look-nextcloud *) .avatardiv__initials {
2110
+ color: var(--cn-board-primary-light-ink) !important;
2111
+ }
2112
+
2113
+ .cn-look-board .cn-email-tab__pill:not(.cn-look-nextcloud *) {
2114
+ padding: 3px 10px;
2115
+ border-radius: 12px;
2116
+ background: var(--color-primary-element-light);
2117
+ color: var(--cn-board-primary-light-ink);
2118
+ font-size: 13px;
2119
+ font-weight: 600;
2120
+ line-height: normal;
2121
+ }
2122
+
2123
+ .cn-look-board .cn-email-tab__pill--archived:not(.cn-look-nextcloud *) {
2124
+ background: var(--cn-board-success-tint);
2125
+ color: var(--cn-board-success-ink);
2126
+ }
2127
+
2091
2128
  /* ---- The attention flag's buttons --------------------------------------- */
2092
2129
  /* The case boards draw "Markeer voor aandacht" and the flag's other labelled
2093
2130
  buttons at the 40px control height (DqZaak and the case tab boards);
@@ -482,6 +482,47 @@
482
482
  background-color: transparent !important;
483
483
  }
484
484
 
485
+ /* A checkbox in a board settings section is the boards' native box, as a
486
+ board dialog's is (dialog.css): an 18px square with a 2px corner and a grey
487
+ 1px edge while open, filled in the primary colour with a white tick once
488
+ checked, the glyph hidden, the label on the regular weight (PqBeheer
489
+ Verkoop, Kassa, Producten drew the 20px primary glyph and a 600 label).
490
+ @spec openspec/changes/board-settings-checkbox-native-box/specs/board-settings-checkbox-native-box/spec.md */
491
+ .cn-look-board .settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon,
492
+ .cn-look-board .cn-settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon {
493
+ position: relative;
494
+ flex: none;
495
+ width: 18px;
496
+ height: 18px;
497
+ }
498
+
499
+ .cn-look-board .settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon svg,
500
+ .cn-look-board .cn-settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon svg {
501
+ visibility: hidden;
502
+ }
503
+
504
+ .cn-look-board .settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon::before,
505
+ .cn-look-board .cn-settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon::before {
506
+ position: absolute;
507
+ inset: 0;
508
+ box-sizing: border-box;
509
+ border: 1px solid var(--color-border-maxcontrast);
510
+ border-radius: 2px;
511
+ background: var(--color-main-background);
512
+ content: '';
513
+ }
514
+
515
+ .cn-look-board .settings-section .checkbox-radio-switch-checkbox.checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon::before,
516
+ .cn-look-board .cn-settings-section .checkbox-radio-switch-checkbox.checkbox-radio-switch--checked:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__icon::before {
517
+ border-color: var(--color-primary-element);
518
+ background: var(--color-primary-element) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z'/%3E%3C/svg%3E") center / 14px no-repeat;
519
+ }
520
+
521
+ .cn-look-board .settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__text,
522
+ .cn-look-board .cn-settings-section .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant):not(.cn-look-nextcloud *) .checkbox-content__text {
523
+ font-weight: 400;
524
+ }
525
+
485
526
  /* ---- A dashboard's page filters ---------------------------------------- */
486
527
  /* The boards draw a dashboard's page filters 36px tall (DqProcesanalyse,
487
528
  DqDoorlooptijd "Filteren op zaaktype", "Periode"); NcInputField, also
@@ -598,7 +639,8 @@
598
639
 
599
640
  /* ---- A table on a dashboard card ------------------------------------------ */
600
641
  /* The card is the frame: a table on it draws no border of its own, and its
601
- pager sits on the card's inset under a hairline, 12px down (DqDoorlooptijd
642
+ pager sits on the card's inset under a hairline 12px under the table, its
643
+ links 12px below that (DqDoorlooptijd
602
644
  "Zaken met risico", "Prestaties per zaaktype"; r32 a second frame inside
603
645
  the card, the pager 16px in).
604
646
  @spec openspec/changes/board-dashboard-table-in-card/specs/board-dashboard-table-in-card/spec.md#requirement-a-table-on-a-board-dashboard-card-has-no-frame-of-its-own */
@@ -608,6 +650,7 @@
608
650
  }
609
651
 
610
652
  .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper__content .cn-table-container--board .cn-pagination.cn-pagination--board {
653
+ margin: 12px 0 0;
611
654
  padding: 12px 0 0;
612
655
  }
613
656
 
@@ -2132,8 +2175,12 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .vs__dropdown-menu:has(.c
2132
2175
  boards draw them (56 board textareas; NcTextArea took the browser's
2133
2176
  leading, ~1.13). The padding carries `!important` because a theme sets
2134
2177
  every textarea to 5px 12px with `!important` (r33: 124.5px, board 130.5).
2135
- @spec openspec/changes/board-settings-textarea-leading/specs/board-settings-textarea-leading/spec.md#requirement-a-board-settings-text-area-sets-its-lines-at-15 */
2178
+ It is a block: inline, it sat on a text line whose descender left 7px
2179
+ under it, so the hint stood that much lower than drawn.
2180
+ @spec openspec/changes/board-settings-textarea-leading/specs/board-settings-textarea-leading/spec.md#requirement-a-board-settings-text-area-sets-its-lines-at-15
2181
+ @spec openspec/changes/board-settings-textarea-leading/specs/board-settings-textarea-leading/spec.md#requirement-a-board-settings-text-area-leaves-no-line-gap-under-it */
2136
2182
  .cn-look-board .settings-section:not(.cn-look-nextcloud *) .textarea__input {
2183
+ display: block;
2137
2184
  box-sizing: border-box;
2138
2185
  padding: 8px 12px !important;
2139
2186
  font-size: 15px;
@@ -3343,6 +3390,15 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .vs__dropdown-menu:has(.c
3343
3390
  padding: 0 var(--cn-board-dashboard-card-inset) 10px;
3344
3391
  }
3345
3392
 
3393
+ /* A card of ruled rows (a record list that rules above its rows, a task
3394
+ list) ends 20px under its last row, the card's own padding, as the Dq
3395
+ boards draw it (DqMijnTeam "Wachtrij van uw team", DqMijnWerk "Mijn
3396
+ taken", "Verder werken"). */
3397
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper:not(.cn-widget-wrapper--borderless) .cn-widget-wrapper__content > .cn-record-list.cn-record-list--rule-above,
3398
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper:not(.cn-widget-wrapper--borderless) .cn-widget-wrapper__content > .cn-tasks-widget.cn-tasks-widget--list {
3399
+ padding-bottom: 20px;
3400
+ }
3401
+
3346
3402
  /* The stacked bar's legend in the board's type: the label 14px and the
3347
3403
  count 22px, both at the font's normal line height, 2px apart: a 46px item
3348
3404
  (DqMijnWerk "Mijn 14 zaken per stap"; live drew 14.25/22.5px at 1.5 and
@@ -3583,6 +3639,12 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .vs__dropdown-menu:has(.c
3583
3639
  line-height: normal;
3584
3640
  }
3585
3641
 
3642
+ /* The footnote under the sections is a 13px line on the font's own leading
3643
+ (DqDoorlooptijd "Naleving"); the body's 1.5 made it 19.5 high. */
3644
+ .cn-look-board .cn-sections-widget__footnote:not(.cn-look-nextcloud *) {
3645
+ line-height: normal;
3646
+ }
3647
+
3586
3648
  /* ---- Week strip (DqMijnWerk "Termijnen deze week") ---------------------- */
3587
3649
  /* The days wrap inside the card instead of scrolling sideways: a row holds
3588
3650
  as many days of at least 120px as the card fits, and the rest go to the
package/src/index.js CHANGED
@@ -71,6 +71,7 @@ export {
71
71
  CnChecklistRunWidget,
72
72
  CnChecklistWidget,
73
73
  CnChildRecordsField,
74
+ CnChipListManager,
74
75
  CnChipsFieldWidget,
75
76
  CnChoiceCards,
76
77
  CnChoicePickerWidget,
@@ -123,6 +123,7 @@ import TableIcon from 'vue-material-design-icons/Table.vue'
123
123
  import ViewDashboard from 'vue-material-design-icons/ViewDashboard.vue'
124
124
  import CnDetailCard from '../../../components/CnDetailCard/CnDetailCard.vue'
125
125
  import { buildHeaders, prefixUrl, safeHref } from '../../../utils/index.js'
126
+ import { stripMarker } from '../../utils/marker.js'
126
127
 
127
128
  const VALID_SURFACES = ['user-dashboard', 'app-dashboard', 'detail-page', 'single-entity']
128
129
  const COMPACT_LIMIT = 5
@@ -246,7 +247,7 @@ export default {
246
247
 
247
248
  reportTitle(report) {
248
249
  const raw = (report && (report.title || report.name || report.data?.name)) || ''
249
- return String(raw).replace(/\s*\[or:[^\]]+\]\s*/g, ' ').trim() || t('nextcloud-vue', 'Untitled report')
250
+ return stripMarker(raw) || t('nextcloud-vue', 'Untitled report')
250
251
  },
251
252
 
252
253
  reportType(report) {
@@ -178,6 +178,7 @@ import CnAnalyticsReportPicker from '../../../components/CnAnalyticsReportPicker
178
178
  import CnStatusBadge from '../../../components/CnStatusBadge/CnStatusBadge.vue'
179
179
  import { buildHeaders, prefixUrl, safeHref } from '../../../utils/index.js'
180
180
  import { userLocale } from '../../../utils/userLocale.js'
181
+ import { stripMarker } from '../../utils/marker.js'
181
182
 
182
183
  /**
183
184
  * CnAnalyticsTab — bespoke dataset list for the `analytics` integration.
@@ -292,7 +293,7 @@ export default {
292
293
  */
293
294
  reportTitle(report) {
294
295
  const raw = (report && (report.reportTitle || report.title || report.name || report.data?.name)) || ''
295
- return String(raw).replace(/\s*\[or:[^\]]+\]\s*/g, ' ').trim() || t('nextcloud-vue', 'Untitled report')
296
+ return stripMarker(raw) || t('nextcloud-vue', 'Untitled report')
296
297
  },
297
298
 
298
299
  /**
@@ -305,7 +306,7 @@ export default {
305
306
  */
306
307
  reportSubheader(report) {
307
308
  const raw = report?.subheader ?? report?.dataSource ?? report?.data?.subheader ?? ''
308
- return String(raw).replace(/\s*\[or:[^\]]+\]\s*/g, ' ').trim()
309
+ return stripMarker(raw)
309
310
  },
310
311
 
311
312
  reportType(report) {
@@ -57,6 +57,7 @@
57
57
  <span class="cn-email-tab__unread-dot" :class="{ 'is-shown': row.unread }" />
58
58
  <NcAvatar
59
59
  class="cn-email-tab__avatar"
60
+ :class="{ 'cn-email-tab__avatar--outbound': row.outbound }"
60
61
  :size="36"
61
62
  :displayName="row.avatarName"
62
63
  :user="row.avatarUser"
@@ -64,7 +65,7 @@
64
65
  <div class="cn-email-tab__body">
65
66
  <div class="cn-email-tab__line">
66
67
  <span class="cn-email-tab__subject" :title="row.subject">{{ row.subject }}</span>
67
- <span class="cn-email-tab__date">
68
+ <span v-if="!row.meta" class="cn-email-tab__date">
68
69
  <NcDateTime
69
70
  v-if="row.dateValid"
70
71
  :timestamp="row.dateMs"
@@ -72,14 +73,20 @@
72
73
  <template v-else>{{ row.dateRaw }}</template>
73
74
  </span>
74
75
  </div>
75
- <div class="cn-email-tab__sender" :title="row.sender">
76
- {{ row.sender }}
76
+ <div class="cn-email-tab__sender" :title="row.meta || row.sender">
77
+ {{ row.meta || row.sender }}
77
78
  </div>
78
79
  <div v-if="row.snippet" class="cn-email-tab__snippet" :title="row.snippet">
79
80
  {{ row.snippet }}
80
81
  </div>
81
82
  </div>
82
83
  </component>
84
+ <span
85
+ v-if="row.pill"
86
+ class="cn-email-tab__pill"
87
+ :class="{ 'cn-email-tab__pill--archived': row.archived }">
88
+ {{ row.pill }}
89
+ </span>
83
90
  <NcActions
84
91
  class="cn-email-tab__menu"
85
92
  :ariaLabel="moreActionsLabel"
@@ -125,14 +132,16 @@
125
132
  </template>
126
133
 
127
134
  <script>
128
- import { translate as t } from '@nextcloud/l10n'
135
+ import { translatePlural as n, translate as t } from '@nextcloud/l10n'
129
136
  import { NcActionButton, NcActionLink, NcActions, NcAvatar, NcButton, NcDateTime, NcLoadingIcon } from '@nextcloud/vue'
130
137
  import EmailEditOutline from 'vue-material-design-icons/EmailEditOutline.vue'
131
138
  import LinkVariant from 'vue-material-design-icons/LinkVariant.vue'
132
139
  import LinkVariantOff from 'vue-material-design-icons/LinkVariantOff.vue'
133
140
  import OpenInNew from 'vue-material-design-icons/OpenInNew.vue'
134
141
  import CnEmailPicker from '../../../components/CnEmailPicker/CnEmailPicker.vue'
142
+ import { ageInDays, formatBoardDate, formatTimeOfDay } from '../../../utils/boardDate.js'
135
143
  import { buildHeaders, prefixUrl } from '../../../utils/index.js'
144
+ import { userDisplayName } from '../../../utils/userDisplayName.js'
136
145
 
137
146
  /**
138
147
  * CnEmailTab — sidebar tab rendering the full list of Nextcloud Mail
@@ -242,6 +251,7 @@ export default {
242
251
  * buble-compiled Vue 2 template stays free of `?.` / `??`.
243
252
  *
244
253
  * @return {object[]} One descriptor per message.
254
+ * @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md#requirement-a-linked-mail-with-details-reads-as-the-boards-draw-it
245
255
  */
246
256
  rows() {
247
257
  return this.messages.map((message) => {
@@ -249,6 +259,8 @@ export default {
249
259
  const d = dateRaw === '' ? null : new Date(dateRaw)
250
260
  const dateValid = d !== null && Number.isNaN(d.getTime()) === false
251
261
  const sender = this.formatSender(message)
262
+ const details = this.linkDetails(message)
263
+ const archivedAs = details === null ? '' : this.text(details.archivedAs)
252
264
  return {
253
265
  id: message.id,
254
266
  message,
@@ -262,6 +274,10 @@ export default {
262
274
  avatarName: sender,
263
275
  avatarUser: this.senderEmail(message),
264
276
  href: this.threadUrl(message),
277
+ meta: details === null ? '' : this.metaLine(message, details, dateValid ? d : null),
278
+ outbound: details !== null && details.direction === 'outbound',
279
+ pill: details === null ? '' : this.archiveLabel(archivedAs),
280
+ archived: archivedAs !== '',
265
281
  }
266
282
  })
267
283
  },
@@ -439,6 +455,126 @@ export default {
439
455
  return false
440
456
  },
441
457
 
458
+ /**
459
+ * The link's details (OpenRegister's EmailLink `details`), or null for
460
+ * a link without them, which keeps the plain sender line.
461
+ *
462
+ * @param {object} message The message record.
463
+ * @return {object|null} The details.
464
+ * @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md#requirement-a-linked-mail-with-details-reads-as-the-boards-draw-it
465
+ */
466
+ linkDetails(message) {
467
+ const details = message.details
468
+ if (details === null || typeof details !== 'object') {
469
+ return null
470
+ }
471
+ const filled = Object.keys(details).some((key) => details[key] !== null && details[key] !== undefined && details[key] !== '')
472
+ return filled ? details : null
473
+ },
474
+
475
+ /**
476
+ * A trimmed string, or '' for anything that is not a filled string.
477
+ *
478
+ * @param {unknown} value The value.
479
+ * @return {string} The text.
480
+ * @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md#requirement-a-linked-mail-with-details-reads-as-the-boards-draw-it
481
+ */
482
+ text(value) {
483
+ return typeof value === 'string' ? value.trim() : ''
484
+ },
485
+
486
+ /**
487
+ * The line under the subject: who it is from or to, when, how many
488
+ * attachments, and how it was linked, joined by middle dots.
489
+ *
490
+ * @param {object} message The message record.
491
+ * @param {object} details The link details.
492
+ * @param {Date|null} date The mail's moment, or null when unknown.
493
+ * @return {string} The meta line.
494
+ * @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md#requirement-a-linked-mail-with-details-reads-as-the-boards-draw-it
495
+ */
496
+ metaLine(message, details, date) {
497
+ const parts = []
498
+ const recipient = this.text(details.recipientName)
499
+ if (details.direction === 'outbound' && recipient !== '') {
500
+ parts.push(t('nextcloud-vue', 'To {name}', { name: recipient }))
501
+ } else {
502
+ parts.push(t('nextcloud-vue', 'From {name}', { name: this.formatSender(message) }))
503
+ }
504
+ if (date !== null) {
505
+ parts.push(this.whenText(date))
506
+ }
507
+ const count = Number(details.attachmentCount)
508
+ if (Number.isInteger(count) && count > 0) {
509
+ parts.push(n('nextcloud-vue', '%n attachment', '%n attachments', count))
510
+ }
511
+ const linked = this.linkedText(message, details)
512
+ if (linked !== '') {
513
+ parts.push(linked)
514
+ }
515
+ return parts.join(' · ')
516
+ },
517
+
518
+ /**
519
+ * The mail's date as the boards write it: "5 okt 09.15" in the last
520
+ * week, "12 mrt" before that.
521
+ *
522
+ * @param {Date} date The mail's moment.
523
+ * @return {string} The date.
524
+ * @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md#requirement-a-linked-mail-with-details-reads-as-the-boards-draw-it
525
+ */
526
+ whenText(date) {
527
+ const day = formatBoardDate(date)
528
+ const age = ageInDays(date)
529
+ if (age !== null && age >= 0 && age <= 7) {
530
+ return day + ' ' + formatTimeOfDay(date)
531
+ }
532
+ return day
533
+ },
534
+
535
+ /**
536
+ * How the mail was linked: automatically through a shared mailbox, from
537
+ * a saved mail file, or by a person.
538
+ *
539
+ * @param {object} message The message record.
540
+ * @param {object} details The link details.
541
+ * @return {string} The phrase, or '' when unknown.
542
+ * @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md#requirement-a-linked-mail-with-details-reads-as-the-boards-draw-it
543
+ */
544
+ linkedText(message, details) {
545
+ if (details.linkedVia === 'mailbox') {
546
+ const mailbox = this.text(details.mailboxName)
547
+ return mailbox === ''
548
+ ? t('nextcloud-vue', 'linked automatically')
549
+ : t('nextcloud-vue', 'linked automatically via {mailbox}', { mailbox })
550
+ }
551
+ if (details.linkedVia === 'file') {
552
+ return t('nextcloud-vue', 'from a saved mail file')
553
+ }
554
+ if (details.linkedVia === 'manual') {
555
+ const name = userDisplayName(message.linkedBy)
556
+ return name === '' ? '' : t('nextcloud-vue', 'linked by {name}', { name })
557
+ }
558
+ return ''
559
+ },
560
+
561
+ /**
562
+ * The pill beside a mail with details: its archive copy, or "Linked".
563
+ *
564
+ * @param {string} archivedAs The archive format, such as pdf, or ''.
565
+ * @return {string} The pill text.
566
+ * @spec openspec/changes/linked-mail-row-details/specs/linked-mail-row-details/spec.md#requirement-a-linked-mail-with-details-reads-as-the-boards-draw-it
567
+ */
568
+ archiveLabel(archivedAs) {
569
+ if (archivedAs === '') {
570
+ return t('nextcloud-vue', 'Linked')
571
+ }
572
+ if (archivedAs.toLowerCase() === 'pdf') {
573
+ return t('nextcloud-vue', 'Archived as PDF')
574
+ }
575
+ return t('nextcloud-vue', 'Archived as {format}', { format: archivedAs })
576
+ },
577
+
442
578
  rawWhen(message) {
443
579
  const raw = message.mailDate || message.date || message.linkedAt
444
580
  if (raw === undefined || raw === null || raw === '') {
@@ -659,6 +795,21 @@ a.cn-email-tab__row:hover {
659
795
  white-space: nowrap;
660
796
  }
661
797
 
798
+ .cn-email-tab__pill {
799
+ flex: none;
800
+ padding: 2px 8px;
801
+ border-radius: var(--border-radius-pill, 12px);
802
+ background: var(--color-primary-element-light);
803
+ color: var(--color-primary-element-light-text);
804
+ font-size: 0.85em;
805
+ white-space: nowrap;
806
+ }
807
+
808
+ .cn-email-tab__pill--archived {
809
+ background: var(--color-success);
810
+ color: var(--color-success-text);
811
+ }
812
+
662
813
  .cn-email-tab__snippet {
663
814
  color: var(--color-text-maxcontrast);
664
815
  font-size: 0.85em;
@@ -129,6 +129,7 @@ import ImageIcon from 'vue-material-design-icons/Image.vue'
129
129
  import ImageMultiple from 'vue-material-design-icons/ImageMultiple.vue'
130
130
  import CnDetailCard from '../../../components/CnDetailCard/CnDetailCard.vue'
131
131
  import { buildHeaders, prefixUrl, safeHref } from '../../../utils/index.js'
132
+ import { stripMarker } from '../../utils/marker.js'
132
133
 
133
134
  const VALID_SURFACES = ['user-dashboard', 'app-dashboard', 'detail-page', 'single-entity']
134
135
  const COMPACT_LIMIT = 4
@@ -261,7 +262,7 @@ export default {
261
262
 
262
263
  albumName(album) {
263
264
  const raw = (album && (album.title || album.name || album.data?.name)) || ''
264
- return String(raw).replace(/\s*\[or:[^\]]+\]\s*/g, ' ').trim() || t('nextcloud-vue', 'Untitled album')
265
+ return stripMarker(raw) || t('nextcloud-vue', 'Untitled album')
265
266
  },
266
267
 
267
268
  albumUrl(album) {
@@ -155,6 +155,7 @@ import CnPhotoAlbumCreate from '../../../components/CnPhotoAlbumCreate/CnPhotoAl
155
155
  import CnPhotoAlbumPicker from '../../../components/CnPhotoAlbumPicker/CnPhotoAlbumPicker.vue'
156
156
  import { buildHeaders, prefixUrl, safeHref } from '../../../utils/index.js'
157
157
  import { userLocale } from '../../../utils/userLocale.js'
158
+ import { stripMarker } from '../../utils/marker.js'
158
159
 
159
160
  /**
160
161
  * CnPhotosTab — bespoke album grid for the `photos` integration.
@@ -258,7 +259,7 @@ export default {
258
259
  */
259
260
  albumName(album) {
260
261
  const raw = (album && (album.albumName || album.title || album.name || album.data?.name)) || ''
261
- return String(raw).replace(/\s*\[or:[^\]]+\]\s*/g, ' ').trim() || t('nextcloud-vue', 'Untitled album')
262
+ return stripMarker(raw) || t('nextcloud-vue', 'Untitled album')
262
263
  },
263
264
 
264
265
  albumUrl(album) {
@@ -138,6 +138,7 @@ import { translatePlural as n, translate as t } from '@nextcloud/l10n'
138
138
  import { NcLoadingIcon } from '@nextcloud/vue'
139
139
  import FileDocumentMultiple from 'vue-material-design-icons/FileDocumentMultiple.vue'
140
140
  import CnDetailCard from '../../../components/CnDetailCard/CnDetailCard.vue'
141
+ import { htmlToText } from '../../../utils/htmlToText.js'
141
142
  import { buildHeaders, prefixUrl, safeHref } from '../../../utils/index.js'
142
143
 
143
144
  const VALID_SURFACES = ['user-dashboard', 'app-dashboard', 'detail-page', 'single-entity']
@@ -357,12 +358,7 @@ export default {
357
358
  if (raw === '') {
358
359
  return ''
359
360
  }
360
- let text = raw
361
- .replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, '')
362
- .replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi, '')
363
- .replace(/<[^>]+>/g, ' ')
364
- .replace(/\s+/g, ' ')
365
- .trim()
361
+ let text = htmlToText(raw)
366
362
  if (text.length > PREVIEW_MAX_CHARS) {
367
363
  text = text.slice(0, PREVIEW_MAX_CHARS).trimEnd() + '…'
368
364
  }
@@ -179,6 +179,7 @@ import OpenInNew from 'vue-material-design-icons/OpenInNew.vue'
179
179
  import Plus from 'vue-material-design-icons/Plus.vue'
180
180
  import CnXwikiPageCreate from '../../../components/CnXwikiPageCreate/CnXwikiPageCreate.vue'
181
181
  import CnXwikiPagePicker from '../../../components/CnXwikiPagePicker/CnXwikiPagePicker.vue'
182
+ import { htmlToText } from '../../../utils/htmlToText.js'
182
183
  import { buildHeaders, prefixUrl, safeHref } from '../../../utils/index.js'
183
184
 
184
185
  const EXCERPT_MAX_CHARS = 140
@@ -428,12 +429,7 @@ export default {
428
429
  if (str === '') {
429
430
  return ''
430
431
  }
431
- let text = str
432
- .replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, '')
433
- .replace(/<style\b[^>]*>[\s\S]*?<\/style>/gi, '')
434
- .replace(/<[^>]+>/g, ' ')
435
- .replace(/\s+/g, ' ')
436
- .trim()
432
+ let text = htmlToText(str)
437
433
  if (text.length > EXCERPT_MAX_CHARS) {
438
434
  text = text.slice(0, EXCERPT_MAX_CHARS).trimEnd() + '…'
439
435
  }
@@ -25,15 +25,45 @@
25
25
  * @module integrations/utils/marker
26
26
  */
27
27
 
28
- // UUID-shaped (or any non-`]` content) marker enclosed in brackets,
29
- // optionally surrounded by whitespace.
30
- const BRACKETED = /\s*\[or:[^\]]+\]\s*/g
28
+ const OPEN = '[or:'
31
29
 
32
30
  // Bare `or:{uuid}` marker without enclosing brackets. UUID-shaped
33
31
  // payload only — we deliberately do NOT match arbitrary `or:foo` text
34
32
  // to avoid eating legitimate values like "or:option-a" (a poll option).
35
33
  // Pattern: `or:` followed by hex/hyphens (UUID alphabet) of length ≥ 8.
36
- const BARE = /\s*or:[0-9a-f-]{8,}\s*/gi
34
+ const BARE = /or:[0-9a-f-]{8,}/gi
35
+
36
+ /**
37
+ * Replace every `[or:…]` marker (any non-empty, non-`]` content) with a
38
+ * space, in one pass over the text.
39
+ *
40
+ * @param {string} text The text to clean.
41
+ *
42
+ * @return {string}
43
+ */
44
+ function dropBracketed(text) {
45
+ let out = ''
46
+ let from = 0
47
+ let search = 0
48
+ for (;;) {
49
+ const start = text.indexOf(OPEN, search)
50
+ if (start === -1) {
51
+ break
52
+ }
53
+ const end = text.indexOf(']', start + OPEN.length)
54
+ if (end === -1) {
55
+ break
56
+ }
57
+ if (end === start + OPEN.length) {
58
+ search = end
59
+ continue
60
+ }
61
+ out += text.slice(from, start) + ' '
62
+ from = end + 1
63
+ search = from
64
+ }
65
+ return out + text.slice(from)
66
+ }
37
67
 
38
68
  /**
39
69
  * Strip the `[or:{uuid}]` marker (and the rarer bare `or:{uuid}`
@@ -48,8 +78,7 @@ export function stripMarker(raw) {
48
78
  if (raw === null || raw === undefined) {
49
79
  return ''
50
80
  }
51
- return String(raw)
52
- .replace(BRACKETED, ' ')
81
+ return dropBracketed(String(raw))
53
82
  .replace(BARE, ' ')
54
83
  .replace(/\s+/g, ' ')
55
84
  .trim()
@@ -24,6 +24,7 @@
24
24
  */
25
25
 
26
26
  import { routeParamNames } from './routeParams.js'
27
+ import { stripTrailingSlashes } from './trailingSlashes.js'
27
28
 
28
29
  /**
29
30
  * Suffix that turns a page id into the name of its split route.
@@ -73,7 +74,7 @@ export function pageHasSplitView(page) {
73
74
  * @spec openspec/changes/case-page-and-list-as-a-place/specs/index-page/spec.md
74
75
  */
75
76
  export function splitRoutePath(route) {
76
- const base = typeof route === 'string' ? route.replace(/\/+$/, '') : ''
77
+ const base = typeof route === 'string' ? stripTrailingSlashes(route) : ''
77
78
  const param = routeParamNames(base).includes('id') ? 'splitId' : 'id'
78
79
  return `${base}/split/:${param}`
79
80
  }
@@ -31,6 +31,9 @@
31
31
 
32
32
  import { trackedFetch } from './diagnostics.js'
33
33
  import { buildHeaders, buildQueryString, prefixUrl } from './headers.js'
34
+ import { stripTrailingSlashes } from './trailingSlashes.js'
35
+
36
+ export { stripTrailingSlashes }
34
37
 
35
38
  /** The hosts the runtime can boot under. */
36
39
  export const CN_HOSTS = ['nextcloud', 'public']
@@ -64,21 +67,6 @@ export function configureCnFetch(config = {}) {
64
67
  }
65
68
  }
66
69
 
67
- /**
68
- * Drop trailing `/` characters in one linear pass (a `/\/+$/` pattern
69
- * backtracks quadratically on a long run of slashes).
70
- *
71
- * @param {string} value The string to trim.
72
- * @return {string} The string without trailing slashes.
73
- */
74
- export function stripTrailingSlashes(value) {
75
- let end = value.length
76
- while (end > 0 && value.charCodeAt(end - 1) === 47) {
77
- end--
78
- }
79
- return value.slice(0, end)
80
- }
81
-
82
70
  /**
83
71
  * The bearer credential, resolved.
84
72
  *