@conduction/nextcloud-vue 2.170.0 → 2.172.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 (163) hide show
  1. package/dist/esm/components/CnActionDialog/CnActionDialog.vue.js +1 -1
  2. package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
  3. package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
  4. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  5. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +22 -3
  6. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  7. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  8. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue.js +9 -0
  9. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue.js.map +1 -0
  10. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue2.js +242 -0
  11. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue2.js.map +1 -0
  12. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue3.js +200 -0
  13. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue3.js.map +1 -0
  14. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue.js +9 -0
  15. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue.js.map +1 -0
  16. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue2.js +186 -0
  17. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue2.js.map +1 -0
  18. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue3.js +24 -0
  19. package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue3.js.map +1 -0
  20. package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue.js +1 -1
  21. package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue2.js +3 -15
  22. package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue2.js.map +1 -1
  23. package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue3.js +16 -61
  24. package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue3.js.map +1 -1
  25. package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue.js +9 -0
  26. package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue.js.map +1 -0
  27. package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue2.js +120 -0
  28. package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue2.js.map +1 -0
  29. package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue3.js +86 -0
  30. package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue3.js.map +1 -0
  31. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +1 -1
  32. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
  33. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +9 -9
  34. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
  35. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue.js +1 -1
  36. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue2.js.map +1 -1
  37. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue3.js.map +1 -1
  38. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
  39. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
  40. package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
  41. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
  42. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js +75 -4
  43. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
  44. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
  45. package/dist/esm/components/CnDialogActions/CnDialogActions.vue.js +8 -0
  46. package/dist/esm/components/CnDialogActions/CnDialogActions.vue.js.map +1 -0
  47. package/dist/esm/components/CnDialogActions/CnDialogActions.vue2.js +101 -0
  48. package/dist/esm/components/CnDialogActions/CnDialogActions.vue2.js.map +1 -0
  49. package/dist/esm/components/CnDialogActions/CnDialogActions.vue3.js +54 -0
  50. package/dist/esm/components/CnDialogActions/CnDialogActions.vue3.js.map +1 -0
  51. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
  52. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +7 -3
  53. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
  54. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
  55. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
  56. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +14 -2
  57. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
  58. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +1 -1
  59. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
  60. package/dist/esm/components/CnFilesBrowser/filesBrowser.js +21 -2
  61. package/dist/esm/components/CnFilesBrowser/filesBrowser.js.map +1 -1
  62. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
  63. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +7 -0
  64. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
  65. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +2 -2
  66. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
  67. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +11 -0
  68. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
  69. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +2 -1
  70. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js.map +1 -1
  71. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue.js +1 -1
  72. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue2.js.map +1 -1
  73. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue3.js.map +1 -1
  74. package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue.js +9 -0
  75. package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue.js.map +1 -0
  76. package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue2.js +248 -0
  77. package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue2.js.map +1 -0
  78. package/dist/esm/components/{CnMassDeleteDialog/CnMassDeleteDialog.vue3.js → CnMassActionDialog/CnMassActionDialog.vue3.js} +66 -52
  79. package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue3.js.map +1 -0
  80. package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue.js +0 -3
  81. package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue.js.map +1 -1
  82. package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue2.js +25 -121
  83. package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue2.js.map +1 -1
  84. package/dist/esm/components/CnNotesCard/CnNotesCard.vue.js +1 -1
  85. package/dist/esm/components/CnNotesCard/CnNotesCard.vue2.js +11 -3
  86. package/dist/esm/components/CnNotesCard/CnNotesCard.vue2.js.map +1 -1
  87. package/dist/esm/components/CnNotesCard/CnNotesCard.vue3.js +1 -1
  88. package/dist/esm/components/CnNotesCard/CnNotesCard.vue3.js.map +1 -1
  89. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue.js +1 -1
  90. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue2.js +21 -1
  91. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue2.js.map +1 -1
  92. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue3.js +2 -2
  93. package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue3.js.map +1 -1
  94. package/dist/esm/components/CnTreeView/CnTreeNode.vue.js +1 -1
  95. package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js.map +1 -1
  96. package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js +23 -5
  97. package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js.map +1 -1
  98. package/dist/esm/components/CnTreeView/CnTreeView.vue.js +1 -1
  99. package/dist/esm/components/CnTreeView/CnTreeView.vue2.js +3 -0
  100. package/dist/esm/components/CnTreeView/CnTreeView.vue2.js.map +1 -1
  101. package/dist/esm/components/CnTreeView/CnTreeView.vue3.js +14 -4
  102. package/dist/esm/components/CnTreeView/CnTreeView.vue3.js.map +1 -1
  103. package/dist/esm/dialogs/CnConfirmDialog.vue.js +1 -1
  104. package/dist/esm/dialogs/CnConfirmDialog.vue2.js.map +1 -1
  105. package/dist/esm/dialogs/CnConfirmDialog.vue3.js +5 -3
  106. package/dist/esm/dialogs/CnConfirmDialog.vue3.js.map +1 -1
  107. package/dist/esm/index.js +3 -0
  108. package/dist/esm/index.js.map +1 -1
  109. package/dist/esm/l10n/en.json.js +16 -1
  110. package/dist/esm/l10n/en.json.js.map +1 -1
  111. package/dist/esm/l10n/nl.json.js +16 -1
  112. package/dist/esm/l10n/nl.json.js.map +1 -1
  113. package/dist/esm/library-style.js +1 -1
  114. package/dist/esm/nextcloud-vue.css +908 -464
  115. package/dist/esm/utils/builtInFormatters.js +19 -1
  116. package/dist/esm/utils/builtInFormatters.js.map +1 -1
  117. package/dist/esm/utils/noteThreads.js +14 -2
  118. package/dist/esm/utils/noteThreads.js.map +1 -1
  119. package/dist/nextcloud-vue.cjs.js +11435 -10084
  120. package/dist/nextcloud-vue.cjs.js.map +2 -2
  121. package/dist/nextcloud-vue.css +908 -464
  122. package/l10n/en.json +16 -1
  123. package/l10n/nl.json +16 -1
  124. package/package.json +1 -1
  125. package/scripts/.jsdoc-baselines.json +1 -1
  126. package/src/components/CnActionDialog/CnActionDialog.vue +4 -1
  127. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +24 -3
  128. package/src/components/CnConditionGroupEditor/CnConditionGroup.vue +528 -0
  129. package/src/components/CnConditionGroupEditor/CnConditionGroupEditor.vue +211 -0
  130. package/src/components/CnConditionGroupEditor/index.js +9 -0
  131. package/src/components/CnConditionListEditor/CnConditionListEditor.vue +15 -78
  132. package/src/components/CnConditionListEditor/CnConditionRow.vue +226 -0
  133. package/src/components/CnDetailPage/CnDetailPage.vue +8 -8
  134. package/src/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue +6 -0
  135. package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +0 -6
  136. package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +75 -4
  137. package/src/components/CnDialogActions/CnDialogActions.vue +124 -0
  138. package/src/components/CnDialogActions/index.js +7 -0
  139. package/src/components/CnFactsWidget/CnFactsWidget.vue +7 -3
  140. package/src/components/CnFilesBrowser/CnFilesBrowser.vue +15 -3
  141. package/src/components/CnFilesBrowser/filesBrowser.js +21 -2
  142. package/src/components/CnFlowsPage/CnFlowBoard.vue +10 -3
  143. package/src/components/CnFlowsPage/CnFlowEditorPage.vue +12 -0
  144. package/src/components/CnLinkedWidget/CnLinkedWidget.vue +7 -0
  145. package/src/components/CnMassActionDialog/CnMassActionDialog.vue +382 -0
  146. package/src/components/CnMassActionDialog/index.js +7 -0
  147. package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.md +4 -0
  148. package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +25 -254
  149. package/src/components/CnNotesCard/CnNotesCard.vue +12 -4
  150. package/src/components/CnObjectSidebar/CnNotesTab.vue +23 -3
  151. package/src/components/CnTreeView/CnTreeNode.vue +10 -1
  152. package/src/components/CnTreeView/CnTreeView.vue +9 -0
  153. package/src/components/index.js +3 -0
  154. package/src/css/context-menu.css +7 -0
  155. package/src/css/look-board-detail.css +220 -2
  156. package/src/css/look-board-index.css +7 -6
  157. package/src/css/look-board.css +43 -2
  158. package/src/css/patches.css +4 -1
  159. package/src/dialogs/CnConfirmDialog.vue +3 -1
  160. package/src/index.js +3 -0
  161. package/src/utils/builtInFormatters.js +18 -0
  162. package/src/utils/noteThreads.js +13 -1
  163. package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue3.js.map +0 -1
@@ -177,7 +177,7 @@
177
177
  margin-top: 16px;
178
178
  }
179
179
 
180
- /* Row 2: pills, breadcrumb, dot, meta, chips. */
180
+ /* Row 2: pills, breadcrumb, chips, dot, meta. */
181
181
  .cn-look-board .cn-detail-page__header-row2 {
182
182
  align-items: center;
183
183
  display: flex;
@@ -206,6 +206,15 @@
206
206
  margin-bottom: 0;
207
207
  }
208
208
 
209
+ /* The header chips sit on row 2's own line, after the breadcrumb (DqTenant
210
+ "Gemeente Waterland waterland · een van ..."), so the list drops the 6px
211
+ top margin it keeps under the title outside this look. The doubled class
212
+ outranks the component's scoped rule.
213
+ @spec openspec/changes/board-header-chips-after-breadcrumb/specs/detail-page-board-look/spec.md#requirement-board-header-chips-follow-the-breadcrumb */
214
+ .cn-look-board .cn-detail-page__header-row2 .cn-detail-header-chips.cn-detail-header-chips {
215
+ margin: 0;
216
+ }
217
+
209
218
  /* The breadcrumb is a line of 14px text between the pills and the meta, as
210
219
  the boards draw it (screens-detail-header-row-parity). NcBreadcrumbs grows to
211
220
  the full row and draws each crumb as a 34px tertiary button, which pushed the
@@ -799,13 +808,23 @@
799
808
  font-size: 13px;
800
809
  }
801
810
 
802
- /* The attention flag under the status sits under a hairline (DqZaak). */
811
+ /* The attention flag under the status sits under a hairline (DqZaak), 10px
812
+ under the status: the sections column's gap is 8px. */
803
813
  .cn-look-board .cn-detail-page__sections-card .cn-attention-flag.cn-attention-flag:not(.cn-look-nextcloud *) {
804
814
  gap: 6px;
815
+ margin-block-start: 2px;
805
816
  padding: 10px 0 0;
806
817
  border-top: 1px solid var(--cn-board-hairline);
807
818
  }
808
819
 
820
+ /* The flag's button sits the column gap (6px) under its hint, as the case
821
+ boards draw it; the hint's own 8px margin stood the button 14px under it
822
+ (Status card 317 vs 311 on every case board).
823
+ @spec openspec/changes/board-attention-flag-button-height/specs/board-attention-flag-button-height/spec.md#requirement-the-attention-flags-button-sits-under-its-hint */
824
+ .cn-look-board .cn-detail-page__sections-card .cn-attention-flag:not(.cn-look-nextcloud *) .cn-attention-flag__hint {
825
+ margin-block-end: 0;
826
+ }
827
+
809
828
  /* The side cards' texts read at the font's normal leading, as the boards draw
810
829
  them; at Nextcloud's 1.5 each card stood taller and pushed the cards under it.
811
830
  @spec openspec/changes/side-card-text-normal-leading/specs/side-card-text-normal-leading/spec.md#requirement-a-side-cards-texts-read-at-normal-leading */
@@ -883,6 +902,20 @@
883
902
  padding: calc(12px - var(--cn-board-first-line-leading)) var(--cn-board-card-inline-padding) 20px;
884
903
  }
885
904
 
905
+ /* A plan card's rows carry their own 10px padding and a map has no text, so
906
+ no half-leading comes off the 12px under the title; a Doelen footer row
907
+ placed under the plan stands 4px under it (DqZaak "Zaakplan", DqZaakMeer
908
+ "Locaties").
909
+ @spec openspec/changes/board-plan-card-as-drawn/specs/plan/spec.md */
910
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-plan:first-child):not(.cn-look-nextcloud *),
911
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-map-widget:first-child):not(.cn-look-nextcloud *) {
912
+ padding-top: 12px;
913
+ }
914
+
915
+ .cn-look-board .cn-detail-page .cn-plan + .cn-detail-widget-host--bare > .cn-record-list--rows > .cn-record-list__footer--row:first-child:not(.cn-look-nextcloud *) {
916
+ margin-top: 4px;
917
+ }
918
+
886
919
  /* A card that opens on a record-list table starts 12px under its title: the
887
920
  table's head row sets its own padding and line height, so no first line
888
921
  carries the half-leading the rule above takes off (r31 DqZaaktype
@@ -972,6 +1005,22 @@
972
1005
  padding: var(--cn-board-card-padding);
973
1006
  }
974
1007
 
1008
+ /* A data grid placed bare in a section or a tab panel (PqJourney
1009
+ "Journeygegevens", PqContract "Facturering", PqMailinglijst "Lijstgegevens")
1010
+ is inset once, by the card around it: its chromeless wrapper has no header,
1011
+ so the rule above gave it a second 20px 22px.
1012
+ @spec openspec/changes/board-nested-data-card-single-inset/specs/board-card/spec.md#requirement-a-bare-data-grid-is-inset-once */
1013
+ .cn-look-board .cn-detail-page .cn-detail-widget-host--bare > .cn-widget-wrapper.cn-widget-wrapper--chromeless > .cn-widget-wrapper__content:has(> .cn-object-data-widget__grid-wrap) {
1014
+ padding: 0;
1015
+ }
1016
+
1017
+ /* A sections card that opens on such a grid starts it 14px under the card
1018
+ title, as a data card does.
1019
+ @spec openspec/changes/board-nested-data-card-single-inset/specs/board-card/spec.md#requirement-a-sections-card-that-opens-on-a-data-grid-starts-it-14px-under-the-title */
1020
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-sections-widget > .cn-sections-widget__column:first-child > .cn-sections-widget__section:first-child:not(:has(> .cn-sections-widget__heading)) > .cn-sections-widget__body > .cn-detail-widget-host--bare > .cn-widget-wrapper > .cn-widget-wrapper__content > .cn-object-data-widget__grid-wrap):not(.cn-detail-page__side *) {
1021
+ padding-top: 14px;
1022
+ }
1023
+
975
1024
  /* The data card: 200px columns, a 12px 24px gap, label over value, hairline.
976
1025
  Each selector holds one class more than the component's scoped rule
977
1026
  (`.cn-object-data-widget__cell[data-v-...]`), which loads after this sheet:
@@ -1181,6 +1230,14 @@
1181
1230
  margin-inline: 8px;
1182
1231
  }
1183
1232
 
1233
+ /* A Gekoppeld side card's rows and empty line read at the normal leading, so
1234
+ the first one starts the board's 10px under the title with no half-leading
1235
+ to take off (DqZaak "Gekoppeld").
1236
+ @spec openspec/changes/side-card-text-normal-leading/specs/side-card-text-normal-leading/spec.md#requirement-a-side-cards-texts-read-at-normal-leading */
1237
+ .cn-look-board .cn-detail-page__side .cn-widget-wrapper__content:has(> .cn-linked-widget):not(.cn-look-nextcloud *) {
1238
+ padding-top: 10px;
1239
+ }
1240
+
1184
1241
  /* A side card that opens on a list draws its first row's hairline 10px below
1185
1242
  the title box; the row has no leading for the glyph gap above to subtract
1186
1243
  (DqZaaktypeRegels, DqZaaktypeStatussen "Versies").
@@ -1218,6 +1275,60 @@
1218
1275
  gap: 12px;
1219
1276
  }
1220
1277
 
1278
+ /* A side lead card that also lists rows (DqContact "Identiteit") keeps the
1279
+ rows rhythm: 10px under the title and between its parts. The 12px above is
1280
+ for a lead followed by a link (DqZaak "Aanvrager"). An inline row (the BSN
1281
+ with its Tonen button) keeps 10px to the next row, its button without
1282
+ Nextcloud's 3px margin above and below.
1283
+ @spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-side-lead-card-with-rows-keeps-the-rows-rhythm */
1284
+ .cn-look-board .cn-detail-page__side .cn-widget-wrapper__content:has(> .cn-facts-widget > .cn-facts-widget__lead:first-child):has(> .cn-facts-widget > .cn-facts-widget__rows):not(.cn-look-nextcloud *) {
1285
+ padding-top: 10px;
1286
+ }
1287
+
1288
+ .cn-look-board .cn-detail-page__side .cn-facts-widget:has(> .cn-facts-widget__lead:first-child):has(> .cn-facts-widget__rows):not(.cn-look-nextcloud *) {
1289
+ gap: 10px;
1290
+ }
1291
+
1292
+ .cn-look-board .cn-detail-page__side .cn-facts-widget__row--inline:not(.cn-look-nextcloud *) {
1293
+ margin-bottom: 2px;
1294
+ }
1295
+
1296
+ .cn-look-board .cn-detail-page__side .cn-facts-widget__inline-button:not(.cn-look-nextcloud *) {
1297
+ margin-block: 0;
1298
+ }
1299
+
1300
+ /* A side card that opens on a text followed by its link (DqContact
1301
+ "Woonadres", "Historie") keeps 8px between them, the link without the
1302
+ first line's leading above.
1303
+ @spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-side-text-keeps-8px-to-its-link */
1304
+ .cn-look-board .cn-detail-page__side .cn-facts-widget:has(> .cn-facts-widget__text:first-child + .cn-facts-widget__link):not(.cn-look-nextcloud *) {
1305
+ gap: 8px;
1306
+ }
1307
+
1308
+ .cn-look-board .cn-detail-page__side .cn-facts-widget__text:first-child + .cn-facts-widget__link:not(.cn-look-nextcloud *) {
1309
+ margin-top: 0;
1310
+ }
1311
+
1312
+ /* A side facts card's action ("Contact vastleggen") is 34px tall with no
1313
+ margin above or below, as DqContact "Bereikbaar via" draws it.
1314
+ @spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-side-facts-action-is-34px-with-no-vertical-margin */
1315
+ .cn-look-board .cn-detail-page__side .cn-facts-widget__action:not(.cn-look-nextcloud *) {
1316
+ margin-block: 0;
1317
+ min-height: 34px;
1318
+ }
1319
+
1320
+ /* A feed row's meta line and text sit on the normal line, 3px apart, and the
1321
+ rows are 4px apart (DqContact "Laatste contactmomenten": 65px per row).
1322
+ @spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-feed-sets-its-lines-on-the-normal-line */
1323
+ .cn-look-board .cn-record-list--feed .cn-record-list__main:not(.cn-look-nextcloud *) {
1324
+ gap: 3px;
1325
+ line-height: normal;
1326
+ }
1327
+
1328
+ .cn-look-board .cn-record-list--feed .cn-record-list__item + .cn-record-list__item:not(.cn-look-nextcloud *) {
1329
+ margin-top: 4px;
1330
+ }
1331
+
1221
1332
  /* A side status card opens on its explanation, set on the normal line, so no
1222
1333
  leading comes off the 10px under the title (DqZaak "Status").
1223
1334
  @spec openspec/changes/board-side-lead-and-status-gaps/specs/board-side-lead-and-status-gaps/spec.md#requirement-a-side-status-card-starts-10px-under-its-title */
@@ -1891,6 +2002,42 @@
1891
2002
  padding-inline-end: var(--cn-board-card-inline-padding);
1892
2003
  }
1893
2004
 
2005
+ /* A bleed table with nothing under it closes its card: it runs through the
2006
+ card's 20px bottom padding to the bottom edge, its last row rounded with
2007
+ the card (DqZaakContact "Contactmomenten op deze zaak"). A pager, a view
2008
+ all link, a footnote or a total under the table keeps the padding.
2009
+ @spec openspec/changes/object-list-table-bleed/specs/object-list-table-bleed/spec.md#requirement-an-object-list-can-run-its-table-edge-to-edge-in-its-card */
2010
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed:last-child:has(> .cn-object-list-widget__table):not(:has(> :is(.cn-object-list-widget__pager, .cn-object-list-widget__view-all, .cn-object-list-widget__more, .cn-object-list-widget__summary, .cn-object-list-widget__footnote, .cn-object-list-widget__foot, .cn-object-list-widget__links, .cn-object-list-widget__hidden-note))) {
2011
+ margin-block-end: -20px;
2012
+ }
2013
+
2014
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed:last-child:has(> .cn-object-list-widget__table):not(:has(> :is(.cn-object-list-widget__pager, .cn-object-list-widget__view-all, .cn-object-list-widget__more, .cn-object-list-widget__summary, .cn-object-list-widget__footnote, .cn-object-list-widget__foot, .cn-object-list-widget__links, .cn-object-list-widget__hidden-note))) .cn-table-container tbody tr:last-child > :first-child {
2015
+ border-end-start-radius: var(--cn-board-card-radius);
2016
+ }
2017
+
2018
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed:last-child:has(> .cn-object-list-widget__table):not(:has(> :is(.cn-object-list-widget__pager, .cn-object-list-widget__view-all, .cn-object-list-widget__more, .cn-object-list-widget__summary, .cn-object-list-widget__footnote, .cn-object-list-widget__foot, .cn-object-list-widget__links, .cn-object-list-widget__hidden-note))) .cn-table-container tbody tr:last-child > :last-child {
2019
+ border-end-end-radius: var(--cn-board-card-radius);
2020
+ }
2021
+
2022
+ /* The lines under a bleed table stand as the boards draw them in the card's
2023
+ 12px column (DqZaakGerelateerd Deelzaken "(0/2 voltooid)" and its footnote,
2024
+ Objecten "Objecttypen beheren"): 12px apart at the font's normal leading. The
2025
+ summary sat flush under the table at a 1.5 leading.
2026
+ @spec openspec/changes/object-list-table-bleed/specs/object-list-table-bleed/spec.md#requirement-the-lines-under-a-bleed-table-stand-as-drawn */
2027
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed > .cn-object-list-widget__summary {
2028
+ margin-block-start: 12px;
2029
+ line-height: normal;
2030
+ }
2031
+
2032
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed > .cn-object-list-widget__summary + .cn-object-list-widget__footnote {
2033
+ margin-block-start: 12px;
2034
+ line-height: normal;
2035
+ }
2036
+
2037
+ .cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed > .cn-object-list-widget__links {
2038
+ line-height: normal;
2039
+ }
2040
+
1894
2041
  /* A row menu in the last column keeps its 34px button and 16px start
1895
2042
  padding beside the card's end padding, so it is not cut off. */
1896
2043
  .cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed .cn-table-container .cn-data-table .cn-table-col--actions:last-child {
@@ -2362,6 +2509,21 @@
2362
2509
  border-top: 1px solid var(--cn-board-hairline);
2363
2510
  }
2364
2511
 
2512
+ /* An authored note row reads in the main ink with no underline, its
2513
+ "author · time" line muted (DqZaakEmail "Notities"). NcListItem draws the
2514
+ row as an anchor, and a theme's `a { color; text-decoration }` carries
2515
+ `!important` (thematiq), hence the same here.
2516
+ @spec openspec/changes/notes-tab-authored-rows/specs/notes-tab-authored-rows/spec.md#requirement-the-notes-tab-can-draw-a-note-as-an-authored-row */
2517
+ .cn-look-board .cn-detail-widget-host .cn-notes-tab__row--authored .list-item__anchor:not(.cn-look-nextcloud *) {
2518
+ color: var(--color-main-text) !important;
2519
+ text-decoration: none !important;
2520
+ }
2521
+
2522
+ .cn-look-board .cn-detail-widget-host .cn-notes-tab__row--authored .cn-notes-tab__meta:not(.cn-look-nextcloud *) {
2523
+ color: var(--color-text-maxcontrast) !important;
2524
+ text-decoration: none !important;
2525
+ }
2526
+
2365
2527
  /* The notes tab's "Add note" button, when the add form waits behind it, is
2366
2528
  the board's 40px control (DqZaakEmail "Notitie toevoegen").
2367
2529
  @spec openspec/changes/notes-tab-composer-button/specs/notes-tab-composer-button/spec.md#requirement-the-notes-tab-can-keep-its-composer-behind-a-button */
@@ -2669,6 +2831,32 @@
2669
2831
  font-weight: 600;
2670
2832
  }
2671
2833
 
2834
+ /* A record-list checklist (DqTenant "Inrichten") as the board draws it: rows
2835
+ 20px high and 8px apart, the 20px mark 10px before a 15px label, a done mark
2836
+ on the soft green with a 12px tick, the bar 12px above the rows. The
2837
+ component's own rows are 28px tall with a 14px tick. The doubled classes
2838
+ outrank its scoped rules.
2839
+ @spec openspec/changes/board-record-list-checklist-rows/specs/record-list/spec.md#requirement-a-board-checklist-row-is-drawn-as-the-board */
2840
+ .cn-look-board .cn-record-list__check.cn-record-list__check {
2841
+ min-height: 20px;
2842
+ gap: 10px;
2843
+ font-size: 15px;
2844
+ }
2845
+
2846
+ .cn-look-board .cn-record-list__checklist-bar.cn-record-list__checklist-bar {
2847
+ margin-block-end: 12px;
2848
+ }
2849
+
2850
+ .cn-look-board .cn-record-list__check--done .cn-record-list__check-mark.cn-record-list__check-mark {
2851
+ background: var(--cn-board-success-tint);
2852
+ color: var(--cn-board-success-ink);
2853
+ }
2854
+
2855
+ .cn-look-board .cn-record-list__check-mark svg {
2856
+ width: 12px;
2857
+ height: 12px;
2858
+ }
2859
+
2672
2860
  /* The parties widget's "Dit zaaktype accepteert" strip as DqZaakBetrokkenen
2673
2861
  draws it: a sunken strip rounded at 8px, the label 14px bold, the kinds
2674
2862
  as outlined 13px chips.
@@ -3206,6 +3394,36 @@
3206
3394
  line-height: 1.2;
3207
3395
  }
3208
3396
 
3397
+ /* The visibility select stands 8px under the kind chips without NcSelect's
3398
+ 6px above and 4px under it, so the first entry starts 60px under the
3399
+ chips' foot as DqZaakHistorie draws it. The footer starts 16px under the
3400
+ last entry on one 20px line: the checkbox box without its 3px top margin,
3401
+ the audit trail as a 20px link, as drawn, not a 34px button.
3402
+ @spec openspec/changes/board-history-controls-and-footer/specs/timeline/spec.md */
3403
+ .cn-look-board .cn-timeline-manage__chips:not(.cn-look-nextcloud *) {
3404
+ margin-block-end: 8px;
3405
+ }
3406
+
3407
+ .cn-look-board .cn-timeline-manage__controls .v-select.select:not(.cn-look-nextcloud *) {
3408
+ margin: 0;
3409
+ }
3410
+
3411
+ .cn-look-board .cn-timeline-manage .cn-timeline-manage__footer:not(.cn-look-nextcloud *) {
3412
+ margin-block-start: 16px;
3413
+ }
3414
+
3415
+ .cn-look-board .cn-timeline-manage__footer .checkbox-content__icon:not(.cn-look-nextcloud *) {
3416
+ margin-block-start: 0;
3417
+ }
3418
+
3419
+ .cn-look-board .cn-timeline-manage__footer .cn-timeline-manage__audit-link.button-vue:not(.cn-look-nextcloud *) {
3420
+ --button-size: 20px;
3421
+ --button-padding: 0;
3422
+ min-height: 20px;
3423
+ height: 20px;
3424
+ padding: 0;
3425
+ }
3426
+
3209
3427
  /* A facts card's link with an icon (Werkinstructie) sets the icon beside its
3210
3428
  text, 10px apart, the text on the normal line starting 10px under the
3211
3429
  title, as the Dq boards draw it. The anchor was a block, so the icon stood
@@ -1182,12 +1182,13 @@
1182
1182
  width: 100%;
1183
1183
  }
1184
1184
 
1185
- /* A wrapping title column (`cn-cell--wrap`, DqZoekresultaten) runs its
1186
- secondary line at a normal line height over its lines, 2px under the
1187
- title, as the board draws it; a single-line secondary keeps the table's
1188
- 1.35.
1189
- @spec openspec/changes/board-wrapped-secondary-line-height/specs/board-wrapped-secondary-line-height/spec.md */
1190
- .cn-look-board .cn-table-container--board .cn-data-table td.cn-table-col--title.cn-cell--wrap .cn-table-cell__secondary {
1185
+ /* The title column's secondary line runs at a normal line height over its
1186
+ lines, 2px under the title, as the boards draw it (DqZoekresultaten,
1187
+ DqFilterBeheren beside the open sidebar); on one line that is the 18.9px
1188
+ of the table's 1.35.
1189
+ @spec openspec/changes/board-wrapped-secondary-line-height/specs/board-wrapped-secondary-line-height/spec.md
1190
+ @spec openspec/changes/board-title-secondary-normal-leading/specs/board-title-secondary-normal-leading/spec.md */
1191
+ .cn-look-board .cn-table-container--board .cn-data-table td.cn-table-col--title .cn-table-cell__secondary {
1191
1192
  margin-top: 2px;
1192
1193
  line-height: normal;
1193
1194
  }
@@ -224,6 +224,15 @@
224
224
  border-width: 0;
225
225
  }
226
226
 
227
+ /* A stacked board tile keeps its label on its top inset when its row is
228
+ taller than the tile itself (a `sameHeight` row where another tile has a
229
+ caption), as the boards draw every tile; centred, the label sat 10px low
230
+ (DqProcesanalyse).
231
+ @spec openspec/changes/board-stat-tile-content-from-top/specs/kpi-card/spec.md#requirement-a-board-stat-tile-holds-its-content-at-the-top */
232
+ .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-kpi-card--board.cn-kpi-card--stacked {
233
+ justify-content: flex-start;
234
+ }
235
+
227
236
  /* ---- Dashboard switch row --------------------------------------------- */
228
237
  /* The switch row under a board dashboard's header (DqMijnWerk, DqMijnTeam).
229
238
  The link pills take the deep primary ink of the boards' primary pills: the
@@ -809,6 +818,29 @@
809
818
  background: var(--color-background-hover);
810
819
  }
811
820
 
821
+ /* ---- The flow page head (cards layout) ---------------------------------- */
822
+ /* Board DqFlow stacks the page head, the notice and the cards 20px apart, and
823
+ the head is one block: the title row 4px under its top, the path 6px under
824
+ the title row and 8px of the head below the path. The canvas layout keeps
825
+ its own head (PqFlow).
826
+ @spec openspec/changes/flow-board-cards-header/specs/flow-board/spec.md#requirement-the-cards-layout-spaces-its-head-as-the-board */
827
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) {
828
+ gap: 20px;
829
+ }
830
+
831
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) > .cn-flow-board__header {
832
+ padding-top: 4px;
833
+ }
834
+
835
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) > .cn-flow-board__path {
836
+ margin-top: -14px;
837
+ padding-bottom: 8px;
838
+ }
839
+
840
+ .cn-look-board .cn-flow-board:not(.cn-flow-board--canvas):not(.cn-look-nextcloud *) > .cn-flow-board__notice {
841
+ margin: 0;
842
+ }
843
+
812
844
  /* ---- An ordered list field ----------------------------------------------- */
813
845
  /* DqPersoonlijkeInstellingen "Weergaven in mijn menu": a row's labelled remove
814
846
  button ("Uit menu halen") is an outlined secondary button, and the select
@@ -1277,6 +1309,14 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
1277
1309
  color: var(--nldesign-component-status-badge-error-color, var(--nl-color-red-text, var(--color-error-text)));
1278
1310
  }
1279
1311
 
1312
+ /* A destructive row action (CnRowActions `destructive`) is the same red, the
1313
+ error tag's #a30000 (PtUitnodigingen "Uitnodiging intrekken", PtPortals
1314
+ "Verwijderen"); it outranks the menu-wide error colour in context-menu.css. */
1315
+ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-item__popper li.action.cn-row-action--destructive > .action-button,
1316
+ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-item__popper li.action.cn-row-action--destructive > .action-link {
1317
+ color: var(--nldesign-component-status-badge-error-color, var(--nl-color-red-text, var(--color-error-text))) !important;
1318
+ }
1319
+
1280
1320
  /* ---- A search select's open list (CnSearchSelect) ------------------------ */
1281
1321
  /* NcSelect teleports its list to <body>, so the rules key on the body as the
1282
1322
  menus above do. The board draws the list as a card 4px under the field: a
@@ -3342,9 +3382,10 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .vs__dropdown-menu:has(.c
3342
3382
  }
3343
3383
 
3344
3384
  /* The placed sentence replaces the card's own text, which stays as the
3345
- sentence for a library without placement. */
3385
+ sentence for a library without placement. Important: the text widget sets
3386
+ its display in its style attribute. */
3346
3387
  .cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper__content:has(> .cn-record-notes__all-sentence--placed) > .cn-text-widget {
3347
- display: none;
3388
+ display: none !important;
3348
3389
  }
3349
3390
 
3350
3391
  /* The card holding that pair draws its title and sentence 24px in, as the
@@ -39,7 +39,10 @@
39
39
  puts the white icon at 4.67:1 and the square's edge at 4.32:1 on the
40
40
  page ground; the brand orange #f36c21 gives 3.01:1 and 2.78:1.
41
41
  @spec openspec/changes/board-buildiq-orange/specs/board-buildiq-orange/spec.md#requirement-the-board-buildiq-square-is-the-boards-orange */
42
- .cn-look-board .cn-buildiq-edit .cn-buildiq-edit__actions .button-vue {
42
+ /* The doubled class outranks the same rule in an older copy of this library
43
+ that another app's bundle injects later on the page (decidiq's integration
44
+ on the case Besluiten tab drew the square in the old #e2611a). */
45
+ .cn-look-board .cn-buildiq-edit .cn-buildiq-edit__actions .button-vue.button-vue {
43
46
  --cn-buildiq-color: #c64e0b;
44
47
  }
45
48
 
@@ -41,6 +41,8 @@
41
41
  <NcNoteCard v-else :type="variant === 'error' ? 'warning' : 'info'">
42
42
  {{ message }}
43
43
  </NcNoteCard>
44
+ <!-- @slot default Extra body content below the message in the confirm phase, such as a checkbox, a list or a note. -->
45
+ <slot />
44
46
  <CnConfirmValueField v-if="confirmValue !== ''"
45
47
  v-model="typedConfirmValue"
46
48
  :value="confirmValue"
@@ -48,7 +50,7 @@
48
50
  </div>
49
51
 
50
52
  <template #actions>
51
- <NcButton @click="$emit('close')">
53
+ <NcButton :disabled="loading" @click="$emit('close')">
52
54
  {{ result !== null ? closeLabel : cancelLabel }}
53
55
  </NcButton>
54
56
  <NcButton
package/src/index.js CHANGED
@@ -78,6 +78,7 @@ export {
78
78
  CnChoicePickerWidget,
79
79
  CnColorPicker,
80
80
  CnCommandPalette,
81
+ CnConditionGroupEditor,
81
82
  CnConditionListEditor,
82
83
  CnConfigurationCard,
83
84
  CnConnectionsPanel,
@@ -118,6 +119,7 @@ export {
118
119
  CnDetailWidgetHost,
119
120
  CnDeviceFramesWidget,
120
121
  CnDialog,
122
+ CnDialogActions,
121
123
  CnDialogHeader,
122
124
  CnDividerWidget,
123
125
  CnDividerWidgetForm,
@@ -226,6 +228,7 @@ export {
226
228
  CnMarkdownWidget,
227
229
  CnMarkdownWidgetForm,
228
230
  CnMassActionBar,
231
+ CnMassActionDialog,
229
232
  CnMassCopyDialog,
230
233
  CnMassDeleteDialog,
231
234
  CnMassExportDialog,
@@ -592,6 +592,23 @@ export function formatUserName(value) {
592
592
  return userDisplayName(value) || String(value)
593
593
  }
594
594
 
595
+ /**
596
+ * A Dutch postcode as people read it: "2999AA" (as the registers store it)
597
+ * becomes "2999 AA". Anything that is not a Dutch postcode comes back as it is.
598
+ *
599
+ * @param {*} value The postcode.
600
+ * @return {string} The postcode with its space, the value as it is, or ''.
601
+ * @spec openspec/changes/facts-postcode-format/specs/facts-postcode-format/spec.md#requirement-a-facts-part-can-write-a-dutch-postcode-with-its-space
602
+ */
603
+ export function formatPostcode(value) {
604
+ if (value === null || value === undefined || typeof value === 'object') {
605
+ return ''
606
+ }
607
+ const text = String(value).trim()
608
+ const match = /^([1-9]\d{3})\s*([a-zA-Z]{2})$/.exec(text)
609
+ return match ? `${match[1]} ${match[2].toUpperCase()}` : text
610
+ }
611
+
595
612
  export const BUILT_IN_FORMATTERS = {
596
613
  date: formatDate,
597
614
  datetime: formatDateTime,
@@ -609,4 +626,5 @@ export const BUILT_IN_FORMATTERS = {
609
626
  termDuration: formatTermDuration,
610
627
  valueMap: formatValueMap,
611
628
  userName: formatUserName,
629
+ postcode: formatPostcode,
612
630
  }
@@ -12,7 +12,19 @@
12
12
  /** A reply this many notes (or more) below its parent shows a one-line quote of it. */
13
13
  export const QUOTE_DISTANCE = 5
14
14
 
15
- const created = (note) => new Date(note.creationDateTime || note.created || 0).getTime()
15
+ /**
16
+ * When a note was written. OpenRegister's notes endpoint sends `createdAt`;
17
+ * older backends sent `creationDateTime` or `created`.
18
+ *
19
+ * @param {object} note The note.
20
+ * @return {string} The moment as the backend wrote it, or '' when unknown.
21
+ * @spec openspec/changes/notes-tab-authored-rows/specs/notes-tab-authored-rows/spec.md#requirement-the-notes-tab-can-draw-a-note-as-an-authored-row
22
+ */
23
+ export function noteCreatedAt(note) {
24
+ return note?.createdAt || note?.creationDateTime || note?.created || ''
25
+ }
26
+
27
+ const created = (note) => new Date(noteCreatedAt(note) || 0).getTime()
16
28
 
17
29
  /**
18
30
  * Whether the notes response says the backend supports replies: its notes carry
@@ -1 +0,0 @@
1
- {"version":3,"file":"CnMassDeleteDialog.vue3.js","sources":["../../../../src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue?vue&type=template&id=be5c1658&lang.js"],"sourcesContent":["<template>\n\t<CnDialog\n\t\t:look=\"look\"\n\t\t:width=\"width\"\n\t\tdefaultWidth=\"confirm\"\n\t\t:eyebrow=\"eyebrow\"\n\t\t:subtitle=\"subtitle\"\n\t\t:name=\"dialogTitle\"\n\t\tsize=\"normal\"\n\t\t:noClose=\"loading\"\n\t\t@closing=\"$emit('close')\">\n\t\t<!-- Review phase -->\n\t\t<div v-if=\"result === null\"\n\t\t\tclass=\"cn-mass-delete__review\"\n\t\t\tdata-testid=\"cn-modal\"\n\t\t\tdata-testid-modal=\"cn-mass-delete-dialog\"\n\t\t\tdata-testid-phase=\"review\">\n\t\t\t<template v-if=\"isBoardLook\">\n\t\t\t\t<p class=\"cn-dialog__sentence\" data-testid=\"cn-mass-delete-sentence\">\n\t\t\t\t\t{{ sentenceParts[0] }}<strong class=\"cn-dialog__name\">{{ countLabel }}</strong>{{ sentenceParts[1] }}\n\t\t\t\t\t<template v-if=\"irreversible\">\n\t\t\t\t\t\t{{ irreversibleText }}\n\t\t\t\t\t</template>\n\t\t\t\t</p>\n\t\t\t\t<p class=\"cn-dialog__note\"\n\t\t\t\t\trole=\"note\"\n\t\t\t\t\tdata-testid=\"cn-mass-delete-note\">\n\t\t\t\t\t<AlertOutline :size=\"20\" aria-hidden=\"true\" />\n\t\t\t\t\t<span>{{ warningText }}</span>\n\t\t\t\t</p>\n\t\t\t</template>\n\t\t\t<NcNoteCard v-else type=\"warning\">\n\t\t\t\t{{ warningText }}\n\t\t\t</NcNoteCard>\n\n\t\t\t<div class=\"cn-mass-delete__list\">\n\t\t\t\t<div\n\t\t\t\t\tv-for=\"item in localItems\"\n\t\t\t\t\t:key=\"item.id\"\n\t\t\t\t\tclass=\"cn-mass-delete__item\">\n\t\t\t\t\t<span class=\"cn-mass-delete__item-name\">\n\t\t\t\t\t\t{{ getItemName(item) }}\n\t\t\t\t\t</span>\n\t\t\t\t\t<NcButton\n\t\t\t\t\t\tvariant=\"tertiary\"\n\t\t\t\t\t\t:aria-label=\"removeLabel\"\n\t\t\t\t\t\t@click=\"removeItem(item.id)\">\n\t\t\t\t\t\t<template #icon>\n\t\t\t\t\t\t\t<Close :size=\"16\" />\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</NcButton>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<p v-if=\"localItems.length === 0\" class=\"cn-mass-delete__empty\">\n\t\t\t\t{{ emptyText }}\n\t\t\t</p>\n\t\t\t<CnConfirmValueField v-if=\"confirmValue !== ''\"\n\t\t\t\tv-model=\"typedConfirmValue\"\n\t\t\t\t:value=\"confirmValue\"\n\t\t\t\t:label=\"confirmFieldLabel\" />\n\t\t</div>\n\n\t\t<!-- Result phase -->\n\t\t<div v-else\n\t\t\tclass=\"cn-mass-delete__result\"\n\t\t\tdata-testid=\"cn-modal\"\n\t\t\tdata-testid-modal=\"cn-mass-delete-dialog\"\n\t\t\tdata-testid-phase=\"result\">\n\t\t\t<NcNoteCard v-if=\"result.success\" type=\"success\">\n\t\t\t\t{{ successText }}\n\t\t\t</NcNoteCard>\n\t\t\t<NcNoteCard v-if=\"result.error\" type=\"error\">\n\t\t\t\t{{ result.error }}\n\t\t\t</NcNoteCard>\n\t\t</div>\n\n\t\t<template #actions>\n\t\t\t<NcButton @click=\"$emit('close')\">\n\t\t\t\t{{ result === null ? cancelLabel : closeLabel }}\n\t\t\t</NcButton>\n\t\t\t<NcButton\n\t\t\t\tv-if=\"result === null\"\n\t\t\t\tvariant=\"error\"\n\t\t\t\t:class=\"{ 'cn-dialog__confirm-pending': confirmValuePending }\"\n\t\t\t\t:disabled=\"loading || localItems.length === 0 || confirmValuePending\"\n\t\t\t\t:aria-disabled=\"confirmValuePending ? 'true' : undefined\"\n\t\t\t\tdata-testid=\"cn-mass-delete-dialog-confirm\"\n\t\t\t\t@click=\"executeDelete\">\n\t\t\t\t<template #icon>\n\t\t\t\t\t<NcLoadingIcon v-if=\"loading\" :size=\"20\" />\n\t\t\t\t\t<TrashCanOutline v-else :size=\"20\" />\n\t\t\t\t</template>\n\t\t\t\t{{ confirmLabel }}\n\t\t\t</NcButton>\n\t\t</template>\n\t</CnDialog>\n</template>\n\n<script>\nimport { translatePlural as n, translate as t } from '@nextcloud/l10n'\nimport { NcButton, NcLoadingIcon, NcNoteCard } from '@nextcloud/vue'\nimport AlertOutline from 'vue-material-design-icons/AlertOutline.vue'\nimport Close from 'vue-material-design-icons/Close.vue'\nimport TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'\nimport CnConfirmValueField from '../CnConfirmValueField/CnConfirmValueField.vue'\nimport CnDialog from '../CnDialog/CnDialog.vue'\nimport { confirmValueMixin } from '../../mixins/confirmValue.js'\nimport { dialogBoardMixin } from '../../mixins/dialogBoard.js'\nimport { splitAroundPlaceholder } from '../../utils/dialogSentence.js'\n\n/**\n * CnMassDeleteDialog — Two-phase mass delete confirmation dialog.\n *\n * Phase 1 (review): Shows the items to be deleted with the ability to remove\n * individual items before confirming. Phase 2 (result): Shows success or error.\n *\n * The dialog does NOT perform the delete itself — it emits a `confirm` event\n * with the item IDs. The parent component performs the actual API call and\n * calls `setResult()` via a ref.\n *\n * ```vue\n * <CnMassDeleteDialog\n * v-if=\"showDeleteDialog\"\n * :items=\"selectedObjects\"\n * :name-field=\"'title'\"\n * @confirm=\"onDeleteConfirm\"\n * @close=\"showDeleteDialog = false\" />\n * ```\n *\n * // In methods:\n * async onDeleteConfirm(ids) {\n * try {\n * await store.massDelete(ids)\n * this.$refs.deleteDialog.setResult({ success: true })\n * } catch (e) {\n * this.$refs.deleteDialog.setResult({ error: e.message })\n * }\n * }\n *\n * @event close Emitted when the dialog should be closed (cancel, close button, or auto-close after success).\n */\nexport default {\n\tname: 'CnMassDeleteDialog',\n\n\tcomponents: {\n\t\tCnDialog,\n\t\tNcButton,\n\t\tNcNoteCard,\n\t\tNcLoadingIcon,\n\t\tTrashCanOutline,\n\t\tClose,\n\t\tAlertOutline,\n\t\tCnConfirmValueField,\n\t},\n\n\tmixins: [dialogBoardMixin, confirmValueMixin],\n\n\tprops: {\n\t\t/** Items to delete. Each must have an `id` property. */\n\t\titems: {\n\t\t\ttype: Array,\n\t\t\trequired: true,\n\t\t},\n\n\t\t/** Property name used for display (e.g., 'title', 'name') */\n\t\tnameField: {\n\t\t\ttype: String,\n\t\t\tdefault: 'title',\n\t\t},\n\n\t\t/** Optional function to format the item name. Receives the item, returns a string. Overrides nameField when provided. */\n\t\tnameFormatter: {\n\t\t\ttype: Function,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/** Dialog title */\n\t\tdialogTitle: {\n\t\t\ttype: String,\n\t\t\tdefault: () => t('nextcloud-vue', 'Delete items'),\n\t\t},\n\n\t\t/** Warning text shown above the item list */\n\t\twarningText: {\n\t\t\ttype: String,\n\t\t\tdefault: () => t('nextcloud-vue', 'The following items will be permanently deleted. Remove any items you want to keep.'),\n\t\t},\n\n\t\t/** Text when all items removed from list */\n\t\temptyText: {\n\t\t\ttype: String,\n\t\t\tdefault: () => t('nextcloud-vue', 'No items selected for deletion.'),\n\t\t},\n\n\t\t/** Success message */\n\t\tsuccessText: {\n\t\t\ttype: String,\n\t\t\tdefault: () => t('nextcloud-vue', 'Items successfully deleted.'),\n\t\t},\n\n\t\t/** Label for the cancel button (visible before the delete runs). */\n\t\tcancelLabel: { type: String, default: () => t('nextcloud-vue', 'Cancel') },\n\t\t/** Label for the close button (visible after delete completes). */\n\t\tcloseLabel: { type: String, default: () => t('nextcloud-vue', 'Close') },\n\t\t/** Label for the primary confirm button that triggers the delete. */\n\t\tconfirmLabel: { type: String, default: () => t('nextcloud-vue', 'Delete') },\n\t\t/** Aria label for the per-row \"remove from list\" icon button. */\n\t\tremoveLabel: { type: String, default: () => t('nextcloud-vue', 'Remove from list') },\n\n\t\t/** Board look: end the sentence with \"This action cannot be undone.\" */\n\t\tirreversible: { type: Boolean, default: true },\n\t},\n\n\temits: ['close', 'confirm'],\n\n\tdata() {\n\t\treturn {\n\t\t\tlocalItems: [...this.items],\n\t\t\tloading: false,\n\t\t\tresult: null,\n\t\t\tcloseTimeout: null,\n\t\t}\n\t},\n\n\tcomputed: {\n\t\t/** The board sentence around the bold item count. */\n\t\tsentenceParts() {\n\t\t\treturn splitAroundPlaceholder(t('nextcloud-vue', 'Are you sure you want to permanently delete {count}?'), 'count')\n\t\t},\n\n\t\tcountLabel() {\n\t\t\treturn n('nextcloud-vue', '%n item', '%n items', this.localItems.length)\n\t\t},\n\n\t\tirreversibleText() {\n\t\t\treturn t('nextcloud-vue', 'This action cannot be undone.')\n\t\t},\n\t},\n\n\twatch: {\n\t\titems(val) {\n\t\t\tthis.localItems = [...val]\n\t\t},\n\t},\n\n\tbeforeUnmount() {\n\t\tif (this.closeTimeout) {\n\t\t\tclearTimeout(this.closeTimeout)\n\t\t}\n\t},\n\n\tmethods: {\n\t\tgetItemName(item) {\n\t\t\tif (this.nameFormatter) {\n\t\t\t\treturn this.nameFormatter(item)\n\t\t\t}\n\t\t\treturn item[this.nameField] || item.name || item.title || item.id\n\t\t},\n\n\t\tremoveItem(id) {\n\t\t\tthis.localItems = this.localItems.filter((i) => i.id !== id)\n\t\t},\n\n\t\texecuteDelete() {\n\t\t\tif (!this.confirmValueMatches) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tthis.loading = true\n\t\t\tconst ids = this.localItems.map((i) => i.id)\n\t\t\t/**\n\t\t\t * @event confirm Emitted when the user confirms deletion.\n\t\t\t * Payload: array of item IDs to delete.\n\t\t\t */\n\t\t\tthis.$emit('confirm', ids)\n\t\t},\n\n\t\t/**\n\t\t * Set the result of the delete operation. Call this from the parent\n\t\t * after the API call completes.\n\t\t *\n\t\t * @param {{ success?: boolean, error?: string }} resultData - Result data to pass to the dialog\n\t\t * @public\n\t\t */\n\t\tsetResult(resultData) {\n\t\t\tthis.loading = false\n\t\t\tthis.result = resultData\n\t\t\tif (resultData.success) {\n\t\t\t\tthis.closeTimeout = setTimeout(() => {\n\t\t\t\t\tthis.$emit('close')\n\t\t\t\t}, 2000)\n\t\t\t}\n\t\t},\n\t},\n}\n</script>\n\n<style scoped>\n.cn-mass-delete__list {\n\tmax-height: 300px;\n\toverflow-y: auto;\n\tmargin-top: 12px;\n}\n\n.cn-mass-delete__item {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tpadding: 8px 12px;\n\tborder-bottom: 1px solid var(--color-border);\n}\n\n.cn-mass-delete__item:last-child {\n\tborder-bottom: none;\n}\n\n.cn-mass-delete__item-name {\n\tfont-weight: 500;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.cn-mass-delete__empty {\n\ttext-align: center;\n\tcolor: var(--color-text-maxcontrast);\n\tfont-style: italic;\n\tpadding: 20px;\n}\n</style>\n"],"names":["_createBlock","_createVNode","_createTextVNode","_openBlock","_createElementBlock","_Fragment","_createElementVNode","_toDisplayString","_renderList"],"mappings":";;;;AAaG,EAAA,KAAK,EAAC,wBAAuB;AAC7B,EAAA,aAAW,EAAC,UAAS;AACrB,EAAA,mBAAiB,EAAC,uBAAsB;AACxC,EAAA,mBAAiB,EAAC,QAAQ;;;AAEtB,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