@conduction/nextcloud-vue 2.56.0-beta.73 → 2.56.0-beta.75

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 (204) hide show
  1. package/dist/esm/components/CnActionDialog/CnActionDialog.vue.js +1 -1
  2. package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js +90 -7
  3. package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
  4. package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js +82 -79
  5. package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
  6. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue.js +1 -1
  7. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js +12 -1
  8. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js.map +1 -1
  9. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue3.js.map +1 -1
  10. package/dist/esm/components/CnCardNotices/CnCardNotices.vue.js +1 -1
  11. package/dist/esm/components/CnCardNotices/CnCardNotices.vue2.js +45 -7
  12. package/dist/esm/components/CnCardNotices/CnCardNotices.vue2.js.map +1 -1
  13. package/dist/esm/components/CnCardNotices/CnCardNotices.vue3.js +1 -1
  14. package/dist/esm/components/CnCardNotices/CnCardNotices.vue3.js.map +1 -1
  15. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue.js +1 -1
  16. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +10 -8
  17. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
  18. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js +95 -88
  19. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js.map +1 -1
  20. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
  21. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +40 -1
  22. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
  23. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +149 -109
  24. package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
  25. package/dist/esm/components/CnFilesBrowser/filesBrowserColumns.js +10 -4
  26. package/dist/esm/components/CnFilesBrowser/filesBrowserColumns.js.map +1 -1
  27. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue.js +1 -1
  28. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js +86 -8
  29. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js.map +1 -1
  30. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js +137 -121
  31. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js.map +1 -1
  32. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue.js +1 -1
  33. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js +56 -4
  34. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js.map +1 -1
  35. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js +166 -70
  36. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js.map +1 -1
  37. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js +9 -0
  38. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js.map +1 -0
  39. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js +123 -0
  40. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js.map +1 -0
  41. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js +268 -0
  42. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js.map +1 -0
  43. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js +9 -0
  44. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js.map +1 -0
  45. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js +49 -0
  46. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js.map +1 -0
  47. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js +41 -0
  48. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js.map +1 -0
  49. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
  50. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +116 -8
  51. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
  52. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +110 -58
  53. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
  54. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +78 -1
  55. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
  56. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +44 -3
  57. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js.map +1 -1
  58. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue.js +1 -1
  59. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js +112 -1
  60. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue2.js.map +1 -1
  61. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js +53 -18
  62. package/dist/esm/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue3.js.map +1 -1
  63. package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue2.js +3 -3
  64. package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue2.js.map +1 -1
  65. package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue3.js +108 -74
  66. package/dist/esm/components/CnIndexPage/CnIndexHeaderMenu.vue3.js.map +1 -1
  67. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +219 -83
  68. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  69. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +92 -58
  70. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  71. package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue.js +1 -1
  72. package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue2.js +56 -0
  73. package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue2.js.map +1 -1
  74. package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue3.js +185 -123
  75. package/dist/esm/components/CnObjectDataWidget/CnObjectDataWidget.vue3.js.map +1 -1
  76. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue.js +1 -1
  77. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js +2 -0
  78. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue2.js.map +1 -1
  79. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js +2 -1
  80. package/dist/esm/components/CnObjectSidebar/CnFilesTab.vue3.js.map +1 -1
  81. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
  82. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +197 -63
  83. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
  84. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +244 -161
  85. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
  86. package/dist/esm/components/CnSearchPage/CnSearchPage.vue.js +1 -1
  87. package/dist/esm/components/CnSearchPage/CnSearchPage.vue2.js +39 -1
  88. package/dist/esm/components/CnSearchPage/CnSearchPage.vue2.js.map +1 -1
  89. package/dist/esm/components/CnSearchPage/CnSearchPage.vue3.js +12 -2
  90. package/dist/esm/components/CnSearchPage/CnSearchPage.vue3.js.map +1 -1
  91. package/dist/esm/components/CnStepper/CnStepper.vue.js +1 -1
  92. package/dist/esm/components/CnStepper/CnStepper.vue2.js.map +1 -1
  93. package/dist/esm/components/CnStepper/CnStepper.vue3.js.map +1 -1
  94. package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue.js +1 -1
  95. package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue2.js +51 -2
  96. package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue2.js.map +1 -1
  97. package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue3.js +49 -11
  98. package/dist/esm/components/CnTaskFormFields/CnTaskFormFields.vue3.js.map +1 -1
  99. package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue.js +9 -0
  100. package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue.js.map +1 -0
  101. package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue2.js +328 -0
  102. package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue2.js.map +1 -0
  103. package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue3.js +85 -0
  104. package/dist/esm/components/CnTaskFormWidget/CnTaskFormWidget.vue3.js.map +1 -0
  105. package/dist/esm/components/CnTaskFormWidget/index.js +24 -0
  106. package/dist/esm/components/CnTaskFormWidget/index.js.map +1 -0
  107. package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue.js +1 -1
  108. package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue2.js +8 -2
  109. package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue2.js.map +1 -1
  110. package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue3.js +16 -3
  111. package/dist/esm/components/CnTasksWidget/CnTasksWidget.vue3.js.map +1 -1
  112. package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
  113. package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js.map +1 -1
  114. package/dist/esm/composables/indexSources.js +24 -4
  115. package/dist/esm/composables/indexSources.js.map +1 -1
  116. package/dist/esm/composables/useFlowStore.js +75 -4
  117. package/dist/esm/composables/useFlowStore.js.map +1 -1
  118. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue.js +1 -1
  119. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js +17 -0
  120. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js.map +1 -1
  121. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js +9 -1
  122. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js.map +1 -1
  123. package/dist/esm/dialogs/CnFlowEditModal.vue.js +1 -1
  124. package/dist/esm/dialogs/CnFlowEditModal.vue2.js +15 -0
  125. package/dist/esm/dialogs/CnFlowEditModal.vue2.js.map +1 -1
  126. package/dist/esm/dialogs/CnFlowEditModal.vue3.js +13 -3
  127. package/dist/esm/dialogs/CnFlowEditModal.vue3.js.map +1 -1
  128. package/dist/esm/dialogs/CnFlowStepPickerModal.vue.js +1 -1
  129. package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js +13 -1
  130. package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js.map +1 -1
  131. package/dist/esm/dialogs/CnFlowStepPickerModal.vue3.js.map +1 -1
  132. package/dist/esm/index.js +3 -0
  133. package/dist/esm/index.js.map +1 -1
  134. package/dist/esm/l10n/en.json.js +52 -1
  135. package/dist/esm/l10n/en.json.js.map +1 -1
  136. package/dist/esm/l10n/nl.json.js +51 -1
  137. package/dist/esm/l10n/nl.json.js.map +1 -1
  138. package/dist/esm/library-style.js +1 -1
  139. package/dist/esm/nextcloud-vue.css +1203 -812
  140. package/dist/esm/utils/dialogWidths.js +6 -4
  141. package/dist/esm/utils/dialogWidths.js.map +1 -1
  142. package/dist/esm/utils/fieldPill.js +77 -0
  143. package/dist/esm/utils/fieldPill.js.map +1 -0
  144. package/dist/esm/utils/flowCondition.js +177 -0
  145. package/dist/esm/utils/flowCondition.js.map +1 -0
  146. package/dist/esm/utils/flowRunStatus.js +64 -1
  147. package/dist/esm/utils/flowRunStatus.js.map +1 -1
  148. package/dist/esm/utils/flowStepList.js +385 -0
  149. package/dist/esm/utils/flowStepList.js.map +1 -0
  150. package/dist/esm/utils/libraryWidgetKeys.js +1 -0
  151. package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
  152. package/dist/esm/utils/searchRefusal.js +35 -1
  153. package/dist/esm/utils/searchRefusal.js.map +1 -1
  154. package/dist/esm/utils/widgetDispatch.js +1 -1
  155. package/dist/esm/utils/widgetDispatch.js.map +1 -1
  156. package/dist/nextcloud-vue.cjs.js +14837 -11411
  157. package/dist/nextcloud-vue.cjs.js.map +2 -2
  158. package/dist/nextcloud-vue.css +1203 -812
  159. package/l10n/en.json +52 -1
  160. package/l10n/nl.json +51 -1
  161. package/package.json +1 -1
  162. package/src/components/CnActionDialog/CnActionDialog.vue +116 -9
  163. package/src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue +12 -1
  164. package/src/components/CnCardNotices/CnCardNotices.vue +46 -8
  165. package/src/components/CnCellRenderer/CnCellRenderer.vue +8 -0
  166. package/src/components/CnFilesBrowser/CnFilesBrowser.vue +61 -2
  167. package/src/components/CnFilesBrowser/filesBrowserColumns.js +10 -4
  168. package/src/components/CnFlowDetail/CnFlowDetail.vue +110 -12
  169. package/src/components/CnFlowDetail/CnFlowDryRunResult.vue +163 -5
  170. package/src/components/CnFlowDetail/CnFlowStepList.vue +408 -0
  171. package/src/components/CnFlowDetail/CnFlowViewSwitch.vue +117 -0
  172. package/src/components/CnFlowDetail/index.js +2 -0
  173. package/src/components/CnFlowsPage/CnFlowBoard.vue +182 -25
  174. package/src/components/CnFlowsPage/CnFlowEditorPage.vue +101 -3
  175. package/src/components/CnGroupedCardsWidget/CnGroupedCardsWidget.vue +141 -1
  176. package/src/components/CnIndexPage/CnIndexHeaderMenu.vue +22 -4
  177. package/src/components/CnIndexPage/CnIndexPage.vue +172 -13
  178. package/src/components/CnObjectDataWidget/CnObjectDataWidget.vue +148 -4
  179. package/src/components/CnObjectSidebar/CnFilesTab.vue +3 -0
  180. package/src/components/CnRecordListWidget/CnRecordListWidget.vue +310 -66
  181. package/src/components/CnSearchPage/CnSearchPage.vue +50 -1
  182. package/src/components/CnStepper/CnStepper.vue +14 -5
  183. package/src/components/CnTaskFormFields/CnTaskFormFields.md +1 -0
  184. package/src/components/CnTaskFormFields/CnTaskFormFields.vue +89 -3
  185. package/src/components/CnTaskFormWidget/CnTaskFormWidget.vue +400 -0
  186. package/src/components/CnTaskFormWidget/index.js +23 -0
  187. package/src/components/CnTasksWidget/CnTasksWidget.vue +17 -3
  188. package/src/components/CnWidgetGrid/registerDashboardWidgets.js +1 -0
  189. package/src/components/index.js +2 -1
  190. package/src/composables/indexSources.js +24 -4
  191. package/src/composables/useFlowStore.js +75 -4
  192. package/src/css/index-page.css +10 -0
  193. package/src/dialogs/CnFlowEdgeEditModal.vue +28 -0
  194. package/src/dialogs/CnFlowEditModal.vue +26 -6
  195. package/src/dialogs/CnFlowStepPickerModal.vue +13 -1
  196. package/src/index.js +3 -0
  197. package/src/utils/dialogWidths.js +6 -4
  198. package/src/utils/fieldPill.js +73 -0
  199. package/src/utils/flowCondition.js +173 -0
  200. package/src/utils/flowRunStatus.js +63 -0
  201. package/src/utils/flowStepList.js +381 -0
  202. package/src/utils/libraryWidgetKeys.js +1 -0
  203. package/src/utils/searchRefusal.js +33 -0
  204. package/src/utils/widgetDispatch.js +1 -1
@@ -1,4 +1,5 @@
1
1
  import __sfc_main$1 from '../CnFlowDetail/CnFlowDetail.vue.js';
2
+ import __sfc_main$2 from '../CnFlowDetail/CnFlowViewSwitch.vue.js';
2
3
  import __sfc_main from './CnFlowBoard.vue.js';
3
4
  import { useFlowStore } from '../../composables/useFlowStore.js';
4
5
  import { useLook } from '../../composables/useLook.js';
@@ -23,7 +24,7 @@ import { useLook } from '../../composables/useLook.js';
23
24
  var script = {
24
25
  name: 'CnFlowEditorPage',
25
26
 
26
- components: { CnFlowBoard: __sfc_main, CnFlowDetail: __sfc_main$1 },
27
+ components: { CnFlowBoard: __sfc_main, CnFlowDetail: __sfc_main$1, CnFlowViewSwitch: __sfc_main$2 },
27
28
 
28
29
  inject: {
29
30
  cnTranslate: { default: () => (key) => key },
@@ -139,6 +140,16 @@ var script = {
139
140
  default: null,
140
141
  },
141
142
 
143
+ /**
144
+ * Board look: test the flow on an example payload. `true` opens an
145
+ * empty field, text opens it with that JSON. Manifest key
146
+ * `config.testPayload`.
147
+ */
148
+ testPayload: {
149
+ type: [Boolean, String],
150
+ default: false,
151
+ },
152
+
142
153
  /**
143
154
  * Board look: an info notice under the path. Manifest key
144
155
  * `config.notice`, translated with the app's catalogue; `{name}` is
@@ -149,6 +160,25 @@ var script = {
149
160
  default: '',
150
161
  },
151
162
 
163
+ /**
164
+ * Board look: the look of `notice`, `info`, `warning` or `error`.
165
+ * Manifest key `config.noticeLevel`.
166
+ */
167
+ noticeLevel: {
168
+ type: String,
169
+ default: 'info',
170
+ },
171
+
172
+ /**
173
+ * Board look: steps only an admin may change, by node id or step type.
174
+ * Anyone else reads them. The server decides what is saved; this is
175
+ * the screen's side. Manifest key `config.adminSteps`.
176
+ */
177
+ adminSteps: {
178
+ type: Array,
179
+ default: () => [],
180
+ },
181
+
152
182
  /**
153
183
  * Board look: edit a published flow in place; Save publishes the edits
154
184
  * as the next version and runs already started keep theirs. Manifest
@@ -238,6 +268,36 @@ var script = {
238
268
  type: String,
239
269
  default: 'state',
240
270
  },
271
+
272
+ /**
273
+ * Write a line's condition on the line when it has no name of its
274
+ * own ("amount is more than 1000"). Manifest key
275
+ * `config.edgeConditions`.
276
+ */
277
+ edgeConditions: {
278
+ type: Boolean,
279
+ default: false,
280
+ },
281
+
282
+ /**
283
+ * Offer the list view beside the canvas, with the Canvas / List switch:
284
+ * the trigger and the steps in order, editing the same flow. Manifest
285
+ * key `config.listMode`.
286
+ */
287
+ listMode: {
288
+ type: Boolean,
289
+ default: false,
290
+ },
291
+
292
+ /**
293
+ * The view on arrival when `listMode` is on: `canvas` or `list`.
294
+ * Defaults to the `view` query parameter, so a link can open the list.
295
+ * Manifest key `config.view`.
296
+ */
297
+ view: {
298
+ type: String,
299
+ default: '',
300
+ },
241
301
  },
242
302
 
243
303
  /**
@@ -252,7 +312,20 @@ var script = {
252
312
  return { store: useFlowStore(), isBoard }
253
313
  },
254
314
 
315
+ data() {
316
+ return { activeView: 'canvas' }
317
+ },
318
+
255
319
  computed: {
320
+ /**
321
+ * @return {string} The view asked for on arrival.
322
+ */
323
+ arrivalView() {
324
+ const asked = this.view || this.$route?.query?.view;
325
+
326
+ return this.listMode && asked === 'list' ? 'list' : 'canvas'
327
+ },
328
+
256
329
  /**
257
330
  * @return {string} The flow id being edited.
258
331
  */
@@ -281,6 +354,10 @@ var script = {
281
354
  },
282
355
  },
283
356
 
357
+ created() {
358
+ this.activeView = this.arrivalView;
359
+ },
360
+
284
361
  methods: {
285
362
  /**
286
363
  * @return {Promise<void>}
@@ -1 +1 @@
1
- {"version":3,"file":"CnFlowEditorPage.vue2.js","sources":["../../../../src/components/CnFlowsPage/CnFlowEditorPage.vue"],"sourcesContent":["<!-- SPDX-License-Identifier: EUPL-1.2 -->\n<!-- Copyright (C) 2026 Conduction B.V. -->\n<template>\n\t<CnFlowBoard v-if=\"isBoard\"\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t:detailRoute=\"detailRoute\"\n\t\t:listLabel=\"listLabel ? cnTranslate(listLabel) : ''\"\n\t\t:breadcrumb=\"(breadcrumb || []).map((crumb) => ({ ...crumb, label: cnTranslate(crumb.label) }))\"\n\t\t:palette=\"palette\"\n\t\t:paletteFootnote=\"paletteFootnote ? cnTranslate(paletteFootnote) : ''\"\n\t\t:paletteGroups=\"translatedPaletteGroups\"\n\t\t:flowDirection=\"flowDirection\"\n\t\t:layout=\"layout\"\n\t\t:toggleLabel=\"toggleLabel\"\n\t\t:nodeLook=\"nodeLook\"\n\t\t:notice=\"notice ? cnTranslate(notice) : ''\"\n\t\t:saveAsVersion=\"saveAsVersion\"\n\t\t:metaParts=\"metaParts\"\n\t\t:metaNote=\"metaNote ? cnTranslate(metaNote) : ''\"\n\t\t:pill=\"pill ? cnTranslate(pill) : ''\"\n\t\t:pillVariant=\"pillVariant\"\n\t\t:testSubject=\"testSubject ? { ...testSubject, label: testSubject.label ? cnTranslate(testSubject.label) : '' } : null\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\" />\n\t<CnFlowDetail v-else\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\" />\n</template>\n\n<script>\nimport CnFlowDetail from '../CnFlowDetail/CnFlowDetail.vue'\nimport CnFlowBoard from './CnFlowBoard.vue'\nimport { useFlowStore } from '../../composables/useFlowStore.js'\nimport { useLook } from '../../composables/useLook.js'\n\n/**\n * The flow canvas — manifest page type `flow-detail`.\n *\n * Mounts the shared `CnFlowDetail` node/edge canvas over OpenRegister's one\n * native flow store (ADR-065, ADR-098), scoped to the owning app. Pair it with\n * a `type: \"flows\"` page at `/flows`; this one takes `/flows/:id`.\n *\n * Controls belong in Nextcloud's app sidebar so the canvas keeps the full\n * width — declare `\"sidebarComponent\"` on the manifest page, or mount\n * `CnFlowSidebar` yourself. Canvas and sidebar share `useFlowStore`, which is\n * why neither needs props from the other.\n *\n * Manifest declaration:\n *\n * { \"id\": \"FlowDetail\", \"route\": \"/flows/:id\", \"type\": \"flow-detail\",\n * \"title\": \"Flow\", \"config\": { \"app\": \"dossiq\" } }\n */\nexport default {\n\tname: 'CnFlowEditorPage',\n\n\tcomponents: { CnFlowBoard, CnFlowDetail },\n\n\tinject: {\n\t\tcnTranslate: { default: () => (key) => key },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The owning app id, stamped on a flow created here so the app-scoped\n\t\t * list finds it again. Omit only on the fleet-wide surface.\n\t\t */\n\t\tapp: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The flow id to open. Defaults to the `id` route param, which is the\n\t\t * normal case; pass it explicitly only when mounting outside a route.\n\t\t * The literal `new` opens an unsaved flow.\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Route path the editor lives under, used to swap the URL once a new\n\t\t * flow gets its server-assigned id.\n\t\t */\n\t\tdetailRoute: {\n\t\t\ttype: String,\n\t\t\tdefault: '/flows',\n\t\t},\n\n\t\t/**\n\t\t * A run to open on arrival. Defaults to the `run` query parameter,\n\t\t * which is where a run's own address lands: `/flow-runs/{uuid}` reads\n\t\t * the run, finds its flow and redirects to `/flows/{id}?run={uuid}`.\n\t\t * Pass it explicitly only when mounting outside a route.\n\t\t */\n\t\trun: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Draw this page in the `board` look (or `nextcloud`) whatever the app\n\t\t * does. Empty follows the app's look. Manifest key `config.look`.\n\t\t */\n\t\tlook: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: where steps come from. `picker` (default) keeps \"Add a\n\t\t * step\" in the canvas toolbar; `column` draws the palette as a card\n\t\t * beside the canvas, grouped by the app that provides each step.\n\t\t * Manifest key `config.palette`.\n\t\t */\n\t\tpalette: {\n\t\t\ttype: String,\n\t\t\tdefault: 'picker',\n\t\t},\n\n\t\t/**\n\t\t * Board look: a line under the palette card. Manifest key\n\t\t * `config.paletteFootnote`, translated with the app's catalogue.\n\t\t */\n\t\tpaletteFootnote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the palette's groups as the page curates them,\n\t\t * `[{ app?, label?, pill?, tone?, entries: [{ type, label?, short? }] }]`;\n\t\t * every other step stays behind \"More steps\". Labels are translated\n\t\t * with the app's catalogue. Manifest key `config.paletteGroups`.\n\t\t */\n\t\tpaletteGroups: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `card` draws each step as a card with its name and the\n\t\t * pill of the app that does it; `type` (default) keeps the type line\n\t\t * over the name. Manifest key `config.nodeLook`.\n\t\t */\n\t\tnodeLook: {\n\t\t\ttype: String,\n\t\t\tdefault: 'type',\n\t\t},\n\n\t\t/**\n\t\t * Board look: `down` lays the steps out top to bottom and opens them\n\t\t * at their own size instead of zoomed to fit; `right` (default) lays\n\t\t * them left to right. Manifest key `config.flowDirection`.\n\t\t */\n\t\tflowDirection: {\n\t\t\ttype: String,\n\t\t\tdefault: 'right',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the records a test run can take as its subject,\n\t\t * `{ register, schema, labelField?, label? }`. Manifest key\n\t\t * `config.testSubject`; `label` is translated with the app's catalogue.\n\t\t */\n\t\ttestSubject: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Board look: an info notice under the path. Manifest key\n\t\t * `config.notice`, translated with the app's catalogue; `{name}` is\n\t\t * the flow's name.\n\t\t */\n\t\tnotice: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: edit a published flow in place; Save publishes the edits\n\t\t * as the next version and runs already started keep theirs. Manifest\n\t\t * key `config.saveAsVersion`.\n\t\t */\n\t\tsaveAsVersion: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Board look: which of `trigger`, `steps`, `version` and `saved` the\n\t\t * path names after the flow, in that order. Manifest key\n\t\t * `config.metaParts`.\n\t\t */\n\t\tmetaParts: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => ['trigger', 'steps', 'version'],\n\t\t},\n\n\t\t/**\n\t\t * Board look: a closing note after the path's meta (\"changes apply to\n\t\t * new cases\"), translated. Manifest key `config.metaNote`.\n\t\t */\n\t\tmetaNote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the pill beside the flow's name (\"Case type flow\").\n\t\t * Empty shows the lifecycle for a draft or retired flow. Manifest key\n\t\t * `config.pill`.\n\t\t */\n\t\tpill: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the tone of `pill` (a CnStatusBadge variant, \"teal\" on\n\t\t * DqFlow). Manifest key `config.pillVariant`.\n\t\t */\n\t\tpillVariant: {\n\t\t\ttype: String,\n\t\t\tdefault: 'default',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the list's name at the start of the path (\"Settings /\n\t\t * Flows\"). Empty reads \"Flows\". Manifest key `config.listLabel`.\n\t\t */\n\t\tlistLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the levels before the flow, each its own link\n\t\t * (`[{ label, href? }]`, \"Settings\" / \"Flows\"); a crumb without an\n\t\t * href links to the flow list. Labels are translated with the app's\n\t\t * catalogue. Manifest key `config.breadcrumb`; wins over `listLabel`.\n\t\t */\n\t\tbreadcrumb: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `canvas` lays the page out as boards PqFlow and PqFlowRun\n\t\t * draw it (actions under the title, the canvas without a frame, a\n\t\t * floating inspector); `cards` keeps the DqFlow grid. Manifest key\n\t\t * `config.layout`.\n\t\t */\n\t\tlayout: {\n\t\t\ttype: String,\n\t\t\tdefault: 'cards',\n\t\t},\n\n\t\t/**\n\t\t * Board look: how the Active switch is named. `state` names it\n\t\t * Active or Paused after the flow; `fixed` always names it Active\n\t\t * and the switch shows the state (DqFlow). Manifest key\n\t\t * `config.toggleLabel`.\n\t\t */\n\t\ttoggleLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: 'state',\n\t\t},\n\t},\n\n\t/**\n\t * Share the one flow store with the toolbar's save/run handlers, and\n\t * resolve the look (`look` is read here, through `useLook`).\n\t *\n\t * @param {object} props The component props.\n\t * @return {object} The setup bindings.\n\t */\n\tsetup(props) {\n\t\tconst { isBoard } = useLook(props)\n\t\treturn { store: useFlowStore(), isBoard }\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * @return {string} The flow id being edited.\n\t\t */\n\t\tflowId() {\n\t\t\treturn this.id || this.$route?.params?.id || ''\n\t\t},\n\n\t\t/**\n\t\t * @return {Array<object>} The curated palette groups with their labels translated.\n\t\t */\n\t\ttranslatedPaletteGroups() {\n\t\t\tconst tr = (text) => (text ? this.cnTranslate(text) : text)\n\t\t\treturn (this.paletteGroups || []).map((group) => ({\n\t\t\t\t...group,\n\t\t\t\tlabel: tr(group?.label),\n\t\t\t\tpill: tr(group?.pill),\n\t\t\t\tentries: (group?.entries || []).map((step) => ({ ...step, label: tr(step?.label), short: tr(step?.short) })),\n\t\t\t}))\n\t\t},\n\n\t\t/**\n\t\t * @return {string} The run to open on arrival, or an empty string.\n\t\t */\n\t\trunUuid() {\n\t\t\treturn this.run || this.$route?.query?.run || ''\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onSave() {\n\t\t\tconst saved = await this.store.save()\n\t\t\t// A newly created flow gets its id from the server, so the route has\n\t\t\t// to catch up or a reload would land back on `new` and lose it.\n\t\t\tif (saved?.id && this.flowId === 'new') {\n\t\t\t\tthis.$router.replace(`${this.detailRoute}/${saved.id}`)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onRun() {\n\t\t\tawait this.store.run({})\n\t\t},\n\t},\n}\n</script>\n"],"names":["CnFlowBoard","CnFlowDetail"],"mappings":";;;;;AAwCA;AACC;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAED,aAAe;CACd,IAAI,EAAE,kBAAkB;;AAExB,CAAA,UAAU,EAAE,eAAEA,UAAW,gBAAEC,cAAc;;AAEzC,CAAA,MAAM,EAAE;AACP,EAAA,WA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- SPDX-License-Identifier: EUPL-1.2 -->\n<!-- Copyright (C) 2026 Conduction B.V. -->\n<template>\n\t<CnFlowBoard v-if=\"isBoard\"\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t:detailRoute=\"detailRoute\"\n\t\t:listLabel=\"listLabel ? cnTranslate(listLabel) : ''\"\n\t\t:breadcrumb=\"(breadcrumb || []).map((crumb) => ({ ...crumb, label: cnTranslate(crumb.label) }))\"\n\t\t:palette=\"palette\"\n\t\t:paletteFootnote=\"paletteFootnote ? cnTranslate(paletteFootnote) : ''\"\n\t\t:paletteGroups=\"translatedPaletteGroups\"\n\t\t:flowDirection=\"flowDirection\"\n\t\t:layout=\"layout\"\n\t\t:toggleLabel=\"toggleLabel\"\n\t\t:nodeLook=\"nodeLook\"\n\t\t:edgeConditions=\"edgeConditions\"\n\t\t:listMode=\"listMode\"\n\t\t:view=\"arrivalView\"\n\t\t:notice=\"notice ? cnTranslate(notice) : ''\"\n\t\t:noticeLevel=\"noticeLevel\"\n\t\t:adminSteps=\"adminSteps\"\n\t\t:saveAsVersion=\"saveAsVersion\"\n\t\t:metaParts=\"metaParts\"\n\t\t:metaNote=\"metaNote ? cnTranslate(metaNote) : ''\"\n\t\t:pill=\"pill ? cnTranslate(pill) : ''\"\n\t\t:pillVariant=\"pillVariant\"\n\t\t:testSubject=\"testSubject ? { ...testSubject, label: testSubject.label ? cnTranslate(testSubject.label) : '' } : null\"\n\t\t:testPayload=\"testPayload\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\">\n\t\t<template v-if=\"$slots.notice\" #notice>\n\t\t\t<!-- @slot notice A notice under the path, such as a drift warning (board look). -->\n\t\t\t<slot name=\"notice\" />\n\t\t</template>\n\t\t<template v-if=\"$slots['step-notice']\" #step-notice=\"scope\">\n\t\t\t<!-- @slot step-notice A notice on the selected step, `{ node }` (board look). -->\n\t\t\t<slot name=\"step-notice\" v-bind=\"scope\" />\n\t\t</template>\n\t</CnFlowBoard>\n\t<CnFlowDetail v-else\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t:edgeConditions=\"edgeConditions\"\n\t\t:view=\"activeView\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\">\n\t\t<template v-if=\"listMode\" #toolbar-start>\n\t\t\t<CnFlowViewSwitch v-model=\"activeView\" />\n\t\t</template>\n\t</CnFlowDetail>\n</template>\n\n<script>\nimport CnFlowDetail from '../CnFlowDetail/CnFlowDetail.vue'\nimport CnFlowViewSwitch from '../CnFlowDetail/CnFlowViewSwitch.vue'\nimport CnFlowBoard from './CnFlowBoard.vue'\nimport { useFlowStore } from '../../composables/useFlowStore.js'\nimport { useLook } from '../../composables/useLook.js'\n\n/**\n * The flow canvas — manifest page type `flow-detail`.\n *\n * Mounts the shared `CnFlowDetail` node/edge canvas over OpenRegister's one\n * native flow store (ADR-065, ADR-098), scoped to the owning app. Pair it with\n * a `type: \"flows\"` page at `/flows`; this one takes `/flows/:id`.\n *\n * Controls belong in Nextcloud's app sidebar so the canvas keeps the full\n * width — declare `\"sidebarComponent\"` on the manifest page, or mount\n * `CnFlowSidebar` yourself. Canvas and sidebar share `useFlowStore`, which is\n * why neither needs props from the other.\n *\n * Manifest declaration:\n *\n * { \"id\": \"FlowDetail\", \"route\": \"/flows/:id\", \"type\": \"flow-detail\",\n * \"title\": \"Flow\", \"config\": { \"app\": \"dossiq\" } }\n */\nexport default {\n\tname: 'CnFlowEditorPage',\n\n\tcomponents: { CnFlowBoard, CnFlowDetail, CnFlowViewSwitch },\n\n\tinject: {\n\t\tcnTranslate: { default: () => (key) => key },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The owning app id, stamped on a flow created here so the app-scoped\n\t\t * list finds it again. Omit only on the fleet-wide surface.\n\t\t */\n\t\tapp: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The flow id to open. Defaults to the `id` route param, which is the\n\t\t * normal case; pass it explicitly only when mounting outside a route.\n\t\t * The literal `new` opens an unsaved flow.\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Route path the editor lives under, used to swap the URL once a new\n\t\t * flow gets its server-assigned id.\n\t\t */\n\t\tdetailRoute: {\n\t\t\ttype: String,\n\t\t\tdefault: '/flows',\n\t\t},\n\n\t\t/**\n\t\t * A run to open on arrival. Defaults to the `run` query parameter,\n\t\t * which is where a run's own address lands: `/flow-runs/{uuid}` reads\n\t\t * the run, finds its flow and redirects to `/flows/{id}?run={uuid}`.\n\t\t * Pass it explicitly only when mounting outside a route.\n\t\t */\n\t\trun: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Draw this page in the `board` look (or `nextcloud`) whatever the app\n\t\t * does. Empty follows the app's look. Manifest key `config.look`.\n\t\t */\n\t\tlook: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: where steps come from. `picker` (default) keeps \"Add a\n\t\t * step\" in the canvas toolbar; `column` draws the palette as a card\n\t\t * beside the canvas, grouped by the app that provides each step.\n\t\t * Manifest key `config.palette`.\n\t\t */\n\t\tpalette: {\n\t\t\ttype: String,\n\t\t\tdefault: 'picker',\n\t\t},\n\n\t\t/**\n\t\t * Board look: a line under the palette card. Manifest key\n\t\t * `config.paletteFootnote`, translated with the app's catalogue.\n\t\t */\n\t\tpaletteFootnote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the palette's groups as the page curates them,\n\t\t * `[{ app?, label?, pill?, tone?, entries: [{ type, label?, short? }] }]`;\n\t\t * every other step stays behind \"More steps\". Labels are translated\n\t\t * with the app's catalogue. Manifest key `config.paletteGroups`.\n\t\t */\n\t\tpaletteGroups: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `card` draws each step as a card with its name and the\n\t\t * pill of the app that does it; `type` (default) keeps the type line\n\t\t * over the name. Manifest key `config.nodeLook`.\n\t\t */\n\t\tnodeLook: {\n\t\t\ttype: String,\n\t\t\tdefault: 'type',\n\t\t},\n\n\t\t/**\n\t\t * Board look: `down` lays the steps out top to bottom and opens them\n\t\t * at their own size instead of zoomed to fit; `right` (default) lays\n\t\t * them left to right. Manifest key `config.flowDirection`.\n\t\t */\n\t\tflowDirection: {\n\t\t\ttype: String,\n\t\t\tdefault: 'right',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the records a test run can take as its subject,\n\t\t * `{ register, schema, labelField?, label? }`. Manifest key\n\t\t * `config.testSubject`; `label` is translated with the app's catalogue.\n\t\t */\n\t\ttestSubject: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Board look: test the flow on an example payload. `true` opens an\n\t\t * empty field, text opens it with that JSON. Manifest key\n\t\t * `config.testPayload`.\n\t\t */\n\t\ttestPayload: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Board look: an info notice under the path. Manifest key\n\t\t * `config.notice`, translated with the app's catalogue; `{name}` is\n\t\t * the flow's name.\n\t\t */\n\t\tnotice: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the look of `notice`, `info`, `warning` or `error`.\n\t\t * Manifest key `config.noticeLevel`.\n\t\t */\n\t\tnoticeLevel: {\n\t\t\ttype: String,\n\t\t\tdefault: 'info',\n\t\t},\n\n\t\t/**\n\t\t * Board look: steps only an admin may change, by node id or step type.\n\t\t * Anyone else reads them. The server decides what is saved; this is\n\t\t * the screen's side. Manifest key `config.adminSteps`.\n\t\t */\n\t\tadminSteps: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: edit a published flow in place; Save publishes the edits\n\t\t * as the next version and runs already started keep theirs. Manifest\n\t\t * key `config.saveAsVersion`.\n\t\t */\n\t\tsaveAsVersion: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Board look: which of `trigger`, `steps`, `version` and `saved` the\n\t\t * path names after the flow, in that order. Manifest key\n\t\t * `config.metaParts`.\n\t\t */\n\t\tmetaParts: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => ['trigger', 'steps', 'version'],\n\t\t},\n\n\t\t/**\n\t\t * Board look: a closing note after the path's meta (\"changes apply to\n\t\t * new cases\"), translated. Manifest key `config.metaNote`.\n\t\t */\n\t\tmetaNote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the pill beside the flow's name (\"Case type flow\").\n\t\t * Empty shows the lifecycle for a draft or retired flow. Manifest key\n\t\t * `config.pill`.\n\t\t */\n\t\tpill: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the tone of `pill` (a CnStatusBadge variant, \"teal\" on\n\t\t * DqFlow). Manifest key `config.pillVariant`.\n\t\t */\n\t\tpillVariant: {\n\t\t\ttype: String,\n\t\t\tdefault: 'default',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the list's name at the start of the path (\"Settings /\n\t\t * Flows\"). Empty reads \"Flows\". Manifest key `config.listLabel`.\n\t\t */\n\t\tlistLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the levels before the flow, each its own link\n\t\t * (`[{ label, href? }]`, \"Settings\" / \"Flows\"); a crumb without an\n\t\t * href links to the flow list. Labels are translated with the app's\n\t\t * catalogue. Manifest key `config.breadcrumb`; wins over `listLabel`.\n\t\t */\n\t\tbreadcrumb: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `canvas` lays the page out as boards PqFlow and PqFlowRun\n\t\t * draw it (actions under the title, the canvas without a frame, a\n\t\t * floating inspector); `cards` keeps the DqFlow grid. Manifest key\n\t\t * `config.layout`.\n\t\t */\n\t\tlayout: {\n\t\t\ttype: String,\n\t\t\tdefault: 'cards',\n\t\t},\n\n\t\t/**\n\t\t * Board look: how the Active switch is named. `state` names it\n\t\t * Active or Paused after the flow; `fixed` always names it Active\n\t\t * and the switch shows the state (DqFlow). Manifest key\n\t\t * `config.toggleLabel`.\n\t\t */\n\t\ttoggleLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: 'state',\n\t\t},\n\n\t\t/**\n\t\t * Write a line's condition on the line when it has no name of its\n\t\t * own (\"amount is more than 1000\"). Manifest key\n\t\t * `config.edgeConditions`.\n\t\t */\n\t\tedgeConditions: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Offer the list view beside the canvas, with the Canvas / List switch:\n\t\t * the trigger and the steps in order, editing the same flow. Manifest\n\t\t * key `config.listMode`.\n\t\t */\n\t\tlistMode: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The view on arrival when `listMode` is on: `canvas` or `list`.\n\t\t * Defaults to the `view` query parameter, so a link can open the list.\n\t\t * Manifest key `config.view`.\n\t\t */\n\t\tview: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\t/**\n\t * Share the one flow store with the toolbar's save/run handlers, and\n\t * resolve the look (`look` is read here, through `useLook`).\n\t *\n\t * @param {object} props The component props.\n\t * @return {object} The setup bindings.\n\t */\n\tsetup(props) {\n\t\tconst { isBoard } = useLook(props)\n\t\treturn { store: useFlowStore(), isBoard }\n\t},\n\n\tdata() {\n\t\treturn { activeView: 'canvas' }\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * @return {string} The view asked for on arrival.\n\t\t */\n\t\tarrivalView() {\n\t\t\tconst asked = this.view || this.$route?.query?.view\n\n\t\t\treturn this.listMode && asked === 'list' ? 'list' : 'canvas'\n\t\t},\n\n\t\t/**\n\t\t * @return {string} The flow id being edited.\n\t\t */\n\t\tflowId() {\n\t\t\treturn this.id || this.$route?.params?.id || ''\n\t\t},\n\n\t\t/**\n\t\t * @return {Array<object>} The curated palette groups with their labels translated.\n\t\t */\n\t\ttranslatedPaletteGroups() {\n\t\t\tconst tr = (text) => (text ? this.cnTranslate(text) : text)\n\t\t\treturn (this.paletteGroups || []).map((group) => ({\n\t\t\t\t...group,\n\t\t\t\tlabel: tr(group?.label),\n\t\t\t\tpill: tr(group?.pill),\n\t\t\t\tentries: (group?.entries || []).map((step) => ({ ...step, label: tr(step?.label), short: tr(step?.short) })),\n\t\t\t}))\n\t\t},\n\n\t\t/**\n\t\t * @return {string} The run to open on arrival, or an empty string.\n\t\t */\n\t\trunUuid() {\n\t\t\treturn this.run || this.$route?.query?.run || ''\n\t\t},\n\t},\n\n\tcreated() {\n\t\tthis.activeView = this.arrivalView\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onSave() {\n\t\t\tconst saved = await this.store.save()\n\t\t\t// A newly created flow gets its id from the server, so the route has\n\t\t\t// to catch up or a reload would land back on `new` and lose it.\n\t\t\tif (saved?.id && this.flowId === 'new') {\n\t\t\t\tthis.$router.replace(`${this.detailRoute}/${saved.id}`)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onRun() {\n\t\t\tawait this.store.run({})\n\t\t},\n\t},\n}\n</script>\n"],"names":["CnFlowBoard","CnFlowDetail","CnFlowViewSwitch"],"mappings":";;;;;;AA8DA;AACC;AACA;AACA;AACA;;AAEA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;;AAED,aAAe;CACd,IAAI,EAAE,kBAAkB;;CAExB,UAAU,EAAE,eAAEA,UAAW,gBAAEC,YAAY,oBAAEC,YAAe,EAAG;;AAE3D,CAAA,MAAM,EAAE;AACP,EAAA,WAAW,EAA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AK,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,CAAA,EAAG,CAAC,CAAC;AAC7G,IAAC,CAAC,CAAA;GACF;;AAED;;;AAGA,EAAA,OAAO,GAAG;AACT,GAAA,OAAO,IAAI,CAAC,GAAI,IAAG,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,GAAI,IAAG,EAAC;GAC/C;EACD;;AAED,CAAA,OAAO,GAAG;AACT,EAAA,IAAI,CAAC,UAAS,GAAI,IAAI,CAAC,YAAU;EACjC;;AAED,CAAA,OAAO,EAAE;AACR;;;EAGA,MAAM,MAAM,GAAG;AACd,GAAA,MAAM,KAAM,GAAE,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,GAAC;;;AAGpC,GAAA,IAAI,KAAK,EAAE,EAAC,IAAK,IAAI,CAAC,MAAO,KAAI,KAAK,EAAE;IACvC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,EAAA;AACvD,IAAA;GACA;;AAED;;;EAGA,MAAM,KAAK,GAAG;GACb,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EAAA;GACvB;EACD;AACF;;;;"}
@@ -1,7 +1,8 @@
1
- import { resolveComponent, openBlock, createBlock } from 'vue';
1
+ import { resolveComponent, openBlock, createBlock, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode } from 'vue';
2
2
 
3
3
  function render(_ctx, _cache, $props, $setup, $data, $options) {
4
4
  const _component_CnFlowBoard = resolveComponent("CnFlowBoard");
5
+ const _component_CnFlowViewSwitch = resolveComponent("CnFlowViewSwitch");
5
6
  const _component_CnFlowDetail = resolveComponent("CnFlowDetail");
6
7
 
7
8
  return ($setup.isBoard)
@@ -20,24 +21,64 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
20
21
  layout: $props.layout,
21
22
  toggleLabel: $props.toggleLabel,
22
23
  nodeLook: $props.nodeLook,
24
+ edgeConditions: $props.edgeConditions,
25
+ listMode: $props.listMode,
26
+ view: $options.arrivalView,
23
27
  notice: $props.notice ? $options.cnTranslate($props.notice) : '',
28
+ noticeLevel: $props.noticeLevel,
29
+ adminSteps: $props.adminSteps,
24
30
  saveAsVersion: $props.saveAsVersion,
25
31
  metaParts: $props.metaParts,
26
32
  metaNote: $props.metaNote ? $options.cnTranslate($props.metaNote) : '',
27
33
  pill: $props.pill ? $options.cnTranslate($props.pill) : '',
28
34
  pillVariant: $props.pillVariant,
29
35
  testSubject: $props.testSubject ? { ...$props.testSubject, label: $props.testSubject.label ? $options.cnTranslate($props.testSubject.label) : '' } : null,
36
+ testPayload: $props.testPayload,
30
37
  onSave: $options.onSave,
31
38
  onRun: $options.onRun
32
- }, null, 8 /* PROPS */, ["id", "app", "run", "detailRoute", "listLabel", "breadcrumb", "palette", "paletteFootnote", "paletteGroups", "flowDirection", "layout", "toggleLabel", "nodeLook", "notice", "saveAsVersion", "metaParts", "metaNote", "pill", "pillVariant", "testSubject", "onSave", "onRun"]))
39
+ }, createSlots({ _: 2 /* DYNAMIC */ }, [
40
+ (_ctx.$slots.notice)
41
+ ? {
42
+ name: "notice",
43
+ fn: withCtx(() => [
44
+ renderSlot(_ctx.$slots, "notice")
45
+ ]),
46
+ key: "0"
47
+ }
48
+ : undefined,
49
+ (_ctx.$slots['step-notice'])
50
+ ? {
51
+ name: "step-notice",
52
+ fn: withCtx((scope) => [
53
+ renderSlot(_ctx.$slots, "step-notice", normalizeProps(guardReactiveProps(scope)))
54
+ ]),
55
+ key: "1"
56
+ }
57
+ : undefined
58
+ ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["id", "app", "run", "detailRoute", "listLabel", "breadcrumb", "palette", "paletteFootnote", "paletteGroups", "flowDirection", "layout", "toggleLabel", "nodeLook", "edgeConditions", "listMode", "view", "notice", "noticeLevel", "adminSteps", "saveAsVersion", "metaParts", "metaNote", "pill", "pillVariant", "testSubject", "testPayload", "onSave", "onRun"]))
33
59
  : (openBlock(), createBlock(_component_CnFlowDetail, {
34
60
  key: 1,
35
61
  id: $options.flowId,
36
62
  app: $props.app,
37
63
  run: $options.runUuid,
64
+ edgeConditions: $props.edgeConditions,
65
+ view: $data.activeView,
38
66
  onSave: $options.onSave,
39
67
  onRun: $options.onRun
40
- }, null, 8 /* PROPS */, ["id", "app", "run", "onSave", "onRun"]))
68
+ }, createSlots({ _: 2 /* DYNAMIC */ }, [
69
+ ($props.listMode)
70
+ ? {
71
+ name: "toolbar-start",
72
+ fn: withCtx(() => [
73
+ createVNode(_component_CnFlowViewSwitch, {
74
+ modelValue: $data.activeView,
75
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (($data.activeView) = $event))
76
+ }, null, 8 /* PROPS */, ["modelValue"])
77
+ ]),
78
+ key: "0"
79
+ }
80
+ : undefined
81
+ ]), 1032 /* PROPS, DYNAMIC_SLOTS */, ["id", "app", "run", "edgeConditions", "view", "onSave", "onRun"]))
41
82
  }
42
83
 
43
84
  export { render };
@@ -1 +1 @@
1
- {"version":3,"file":"CnFlowEditorPage.vue3.js","sources":["../../../../src/components/CnFlowsPage/CnFlowEditorPage.vue?vue&type=template&id=d8a88ce6&lang.js"],"sourcesContent":["<!-- SPDX-License-Identifier: EUPL-1.2 -->\n<!-- Copyright (C) 2026 Conduction B.V. -->\n<template>\n\t<CnFlowBoard v-if=\"isBoard\"\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t:detailRoute=\"detailRoute\"\n\t\t:listLabel=\"listLabel ? cnTranslate(listLabel) : ''\"\n\t\t:breadcrumb=\"(breadcrumb || []).map((crumb) => ({ ...crumb, label: cnTranslate(crumb.label) }))\"\n\t\t:palette=\"palette\"\n\t\t:paletteFootnote=\"paletteFootnote ? cnTranslate(paletteFootnote) : ''\"\n\t\t:paletteGroups=\"translatedPaletteGroups\"\n\t\t:flowDirection=\"flowDirection\"\n\t\t:layout=\"layout\"\n\t\t:toggleLabel=\"toggleLabel\"\n\t\t:nodeLook=\"nodeLook\"\n\t\t:notice=\"notice ? cnTranslate(notice) : ''\"\n\t\t:saveAsVersion=\"saveAsVersion\"\n\t\t:metaParts=\"metaParts\"\n\t\t:metaNote=\"metaNote ? cnTranslate(metaNote) : ''\"\n\t\t:pill=\"pill ? cnTranslate(pill) : ''\"\n\t\t:pillVariant=\"pillVariant\"\n\t\t:testSubject=\"testSubject ? { ...testSubject, label: testSubject.label ? cnTranslate(testSubject.label) : '' } : null\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\" />\n\t<CnFlowDetail v-else\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\" />\n</template>\n\n<script>\nimport CnFlowDetail from '../CnFlowDetail/CnFlowDetail.vue'\nimport CnFlowBoard from './CnFlowBoard.vue'\nimport { useFlowStore } from '../../composables/useFlowStore.js'\nimport { useLook } from '../../composables/useLook.js'\n\n/**\n * The flow canvas — manifest page type `flow-detail`.\n *\n * Mounts the shared `CnFlowDetail` node/edge canvas over OpenRegister's one\n * native flow store (ADR-065, ADR-098), scoped to the owning app. Pair it with\n * a `type: \"flows\"` page at `/flows`; this one takes `/flows/:id`.\n *\n * Controls belong in Nextcloud's app sidebar so the canvas keeps the full\n * width — declare `\"sidebarComponent\"` on the manifest page, or mount\n * `CnFlowSidebar` yourself. Canvas and sidebar share `useFlowStore`, which is\n * why neither needs props from the other.\n *\n * Manifest declaration:\n *\n * { \"id\": \"FlowDetail\", \"route\": \"/flows/:id\", \"type\": \"flow-detail\",\n * \"title\": \"Flow\", \"config\": { \"app\": \"dossiq\" } }\n */\nexport default {\n\tname: 'CnFlowEditorPage',\n\n\tcomponents: { CnFlowBoard, CnFlowDetail },\n\n\tinject: {\n\t\tcnTranslate: { default: () => (key) => key },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The owning app id, stamped on a flow created here so the app-scoped\n\t\t * list finds it again. Omit only on the fleet-wide surface.\n\t\t */\n\t\tapp: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The flow id to open. Defaults to the `id` route param, which is the\n\t\t * normal case; pass it explicitly only when mounting outside a route.\n\t\t * The literal `new` opens an unsaved flow.\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Route path the editor lives under, used to swap the URL once a new\n\t\t * flow gets its server-assigned id.\n\t\t */\n\t\tdetailRoute: {\n\t\t\ttype: String,\n\t\t\tdefault: '/flows',\n\t\t},\n\n\t\t/**\n\t\t * A run to open on arrival. Defaults to the `run` query parameter,\n\t\t * which is where a run's own address lands: `/flow-runs/{uuid}` reads\n\t\t * the run, finds its flow and redirects to `/flows/{id}?run={uuid}`.\n\t\t * Pass it explicitly only when mounting outside a route.\n\t\t */\n\t\trun: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Draw this page in the `board` look (or `nextcloud`) whatever the app\n\t\t * does. Empty follows the app's look. Manifest key `config.look`.\n\t\t */\n\t\tlook: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: where steps come from. `picker` (default) keeps \"Add a\n\t\t * step\" in the canvas toolbar; `column` draws the palette as a card\n\t\t * beside the canvas, grouped by the app that provides each step.\n\t\t * Manifest key `config.palette`.\n\t\t */\n\t\tpalette: {\n\t\t\ttype: String,\n\t\t\tdefault: 'picker',\n\t\t},\n\n\t\t/**\n\t\t * Board look: a line under the palette card. Manifest key\n\t\t * `config.paletteFootnote`, translated with the app's catalogue.\n\t\t */\n\t\tpaletteFootnote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the palette's groups as the page curates them,\n\t\t * `[{ app?, label?, pill?, tone?, entries: [{ type, label?, short? }] }]`;\n\t\t * every other step stays behind \"More steps\". Labels are translated\n\t\t * with the app's catalogue. Manifest key `config.paletteGroups`.\n\t\t */\n\t\tpaletteGroups: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `card` draws each step as a card with its name and the\n\t\t * pill of the app that does it; `type` (default) keeps the type line\n\t\t * over the name. Manifest key `config.nodeLook`.\n\t\t */\n\t\tnodeLook: {\n\t\t\ttype: String,\n\t\t\tdefault: 'type',\n\t\t},\n\n\t\t/**\n\t\t * Board look: `down` lays the steps out top to bottom and opens them\n\t\t * at their own size instead of zoomed to fit; `right` (default) lays\n\t\t * them left to right. Manifest key `config.flowDirection`.\n\t\t */\n\t\tflowDirection: {\n\t\t\ttype: String,\n\t\t\tdefault: 'right',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the records a test run can take as its subject,\n\t\t * `{ register, schema, labelField?, label? }`. Manifest key\n\t\t * `config.testSubject`; `label` is translated with the app's catalogue.\n\t\t */\n\t\ttestSubject: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Board look: an info notice under the path. Manifest key\n\t\t * `config.notice`, translated with the app's catalogue; `{name}` is\n\t\t * the flow's name.\n\t\t */\n\t\tnotice: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: edit a published flow in place; Save publishes the edits\n\t\t * as the next version and runs already started keep theirs. Manifest\n\t\t * key `config.saveAsVersion`.\n\t\t */\n\t\tsaveAsVersion: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Board look: which of `trigger`, `steps`, `version` and `saved` the\n\t\t * path names after the flow, in that order. Manifest key\n\t\t * `config.metaParts`.\n\t\t */\n\t\tmetaParts: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => ['trigger', 'steps', 'version'],\n\t\t},\n\n\t\t/**\n\t\t * Board look: a closing note after the path's meta (\"changes apply to\n\t\t * new cases\"), translated. Manifest key `config.metaNote`.\n\t\t */\n\t\tmetaNote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the pill beside the flow's name (\"Case type flow\").\n\t\t * Empty shows the lifecycle for a draft or retired flow. Manifest key\n\t\t * `config.pill`.\n\t\t */\n\t\tpill: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the tone of `pill` (a CnStatusBadge variant, \"teal\" on\n\t\t * DqFlow). Manifest key `config.pillVariant`.\n\t\t */\n\t\tpillVariant: {\n\t\t\ttype: String,\n\t\t\tdefault: 'default',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the list's name at the start of the path (\"Settings /\n\t\t * Flows\"). Empty reads \"Flows\". Manifest key `config.listLabel`.\n\t\t */\n\t\tlistLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the levels before the flow, each its own link\n\t\t * (`[{ label, href? }]`, \"Settings\" / \"Flows\"); a crumb without an\n\t\t * href links to the flow list. Labels are translated with the app's\n\t\t * catalogue. Manifest key `config.breadcrumb`; wins over `listLabel`.\n\t\t */\n\t\tbreadcrumb: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `canvas` lays the page out as boards PqFlow and PqFlowRun\n\t\t * draw it (actions under the title, the canvas without a frame, a\n\t\t * floating inspector); `cards` keeps the DqFlow grid. Manifest key\n\t\t * `config.layout`.\n\t\t */\n\t\tlayout: {\n\t\t\ttype: String,\n\t\t\tdefault: 'cards',\n\t\t},\n\n\t\t/**\n\t\t * Board look: how the Active switch is named. `state` names it\n\t\t * Active or Paused after the flow; `fixed` always names it Active\n\t\t * and the switch shows the state (DqFlow). Manifest key\n\t\t * `config.toggleLabel`.\n\t\t */\n\t\ttoggleLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: 'state',\n\t\t},\n\t},\n\n\t/**\n\t * Share the one flow store with the toolbar's save/run handlers, and\n\t * resolve the look (`look` is read here, through `useLook`).\n\t *\n\t * @param {object} props The component props.\n\t * @return {object} The setup bindings.\n\t */\n\tsetup(props) {\n\t\tconst { isBoard } = useLook(props)\n\t\treturn { store: useFlowStore(), isBoard }\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * @return {string} The flow id being edited.\n\t\t */\n\t\tflowId() {\n\t\t\treturn this.id || this.$route?.params?.id || ''\n\t\t},\n\n\t\t/**\n\t\t * @return {Array<object>} The curated palette groups with their labels translated.\n\t\t */\n\t\ttranslatedPaletteGroups() {\n\t\t\tconst tr = (text) => (text ? this.cnTranslate(text) : text)\n\t\t\treturn (this.paletteGroups || []).map((group) => ({\n\t\t\t\t...group,\n\t\t\t\tlabel: tr(group?.label),\n\t\t\t\tpill: tr(group?.pill),\n\t\t\t\tentries: (group?.entries || []).map((step) => ({ ...step, label: tr(step?.label), short: tr(step?.short) })),\n\t\t\t}))\n\t\t},\n\n\t\t/**\n\t\t * @return {string} The run to open on arrival, or an empty string.\n\t\t */\n\t\trunUuid() {\n\t\t\treturn this.run || this.$route?.query?.run || ''\n\t\t},\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onSave() {\n\t\t\tconst saved = await this.store.save()\n\t\t\t// A newly created flow gets its id from the server, so the route has\n\t\t\t// to catch up or a reload would land back on `new` and lose it.\n\t\t\tif (saved?.id && this.flowId === 'new') {\n\t\t\t\tthis.$router.replace(`${this.detailRoute}/${saved.id}`)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onRun() {\n\t\t\tawait this.store.run({})\n\t\t},\n\t},\n}\n</script>\n"],"names":["_createBlock"],"mappings":";;;;;;UAKW,MAAA,CAAA,OAAA;oBAATA,WAsBW,CAAA,sBAAA,EAAA;;AArBV,QAAA,EAAE,EAAE,Q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QAAA,WAAW,EAAC,MAAA,CAAA,WAAA;AACZ,QAAA,WAAU,EAAG,MAAA,CAAA,WAAA,GAAA,EAAA,GAAA,MAAA,CAAA,WAAA,EAAA,KAAA,EAAA,MAAA,CAAA,WAAA,CAAA,KAAA,GAAA,QAAA,CAAA,WAAA,CAAA,MAAA,CAAA,WAAA,CAAA,KAAA,CAAA,GAAA,EAAA,EAAA,GAAA,IAAA;AACb,QAAA,MAAI,EAAE,QAAM,CAAA,MAAA;AACZ,QAAA,KAAG,EAAE,QAAK,CAAA,KAAA;;oBACXA;;AACC,QAAA,EAAE,EAAE,QAAM,CAAA,MAAA;AACV,QAAA,GAAG,EAAE,MAAG,CAAA,GAAA;AACR,QAAA,GAAG,EAAE,QAAO,CAAA,OAAA;;;;;;;;"}
1
+ {"version":3,"file":"CnFlowEditorPage.vue3.js","sources":["../../../../src/components/CnFlowsPage/CnFlowEditorPage.vue?vue&type=template&id=b3ac108a&lang.js"],"sourcesContent":["<!-- SPDX-License-Identifier: EUPL-1.2 -->\n<!-- Copyright (C) 2026 Conduction B.V. -->\n<template>\n\t<CnFlowBoard v-if=\"isBoard\"\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t:detailRoute=\"detailRoute\"\n\t\t:listLabel=\"listLabel ? cnTranslate(listLabel) : ''\"\n\t\t:breadcrumb=\"(breadcrumb || []).map((crumb) => ({ ...crumb, label: cnTranslate(crumb.label) }))\"\n\t\t:palette=\"palette\"\n\t\t:paletteFootnote=\"paletteFootnote ? cnTranslate(paletteFootnote) : ''\"\n\t\t:paletteGroups=\"translatedPaletteGroups\"\n\t\t:flowDirection=\"flowDirection\"\n\t\t:layout=\"layout\"\n\t\t:toggleLabel=\"toggleLabel\"\n\t\t:nodeLook=\"nodeLook\"\n\t\t:edgeConditions=\"edgeConditions\"\n\t\t:listMode=\"listMode\"\n\t\t:view=\"arrivalView\"\n\t\t:notice=\"notice ? cnTranslate(notice) : ''\"\n\t\t:noticeLevel=\"noticeLevel\"\n\t\t:adminSteps=\"adminSteps\"\n\t\t:saveAsVersion=\"saveAsVersion\"\n\t\t:metaParts=\"metaParts\"\n\t\t:metaNote=\"metaNote ? cnTranslate(metaNote) : ''\"\n\t\t:pill=\"pill ? cnTranslate(pill) : ''\"\n\t\t:pillVariant=\"pillVariant\"\n\t\t:testSubject=\"testSubject ? { ...testSubject, label: testSubject.label ? cnTranslate(testSubject.label) : '' } : null\"\n\t\t:testPayload=\"testPayload\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\">\n\t\t<template v-if=\"$slots.notice\" #notice>\n\t\t\t<!-- @slot notice A notice under the path, such as a drift warning (board look). -->\n\t\t\t<slot name=\"notice\" />\n\t\t</template>\n\t\t<template v-if=\"$slots['step-notice']\" #step-notice=\"scope\">\n\t\t\t<!-- @slot step-notice A notice on the selected step, `{ node }` (board look). -->\n\t\t\t<slot name=\"step-notice\" v-bind=\"scope\" />\n\t\t</template>\n\t</CnFlowBoard>\n\t<CnFlowDetail v-else\n\t\t:id=\"flowId\"\n\t\t:app=\"app\"\n\t\t:run=\"runUuid\"\n\t\t:edgeConditions=\"edgeConditions\"\n\t\t:view=\"activeView\"\n\t\t@save=\"onSave\"\n\t\t@run=\"onRun\">\n\t\t<template v-if=\"listMode\" #toolbar-start>\n\t\t\t<CnFlowViewSwitch v-model=\"activeView\" />\n\t\t</template>\n\t</CnFlowDetail>\n</template>\n\n<script>\nimport CnFlowDetail from '../CnFlowDetail/CnFlowDetail.vue'\nimport CnFlowViewSwitch from '../CnFlowDetail/CnFlowViewSwitch.vue'\nimport CnFlowBoard from './CnFlowBoard.vue'\nimport { useFlowStore } from '../../composables/useFlowStore.js'\nimport { useLook } from '../../composables/useLook.js'\n\n/**\n * The flow canvas — manifest page type `flow-detail`.\n *\n * Mounts the shared `CnFlowDetail` node/edge canvas over OpenRegister's one\n * native flow store (ADR-065, ADR-098), scoped to the owning app. Pair it with\n * a `type: \"flows\"` page at `/flows`; this one takes `/flows/:id`.\n *\n * Controls belong in Nextcloud's app sidebar so the canvas keeps the full\n * width — declare `\"sidebarComponent\"` on the manifest page, or mount\n * `CnFlowSidebar` yourself. Canvas and sidebar share `useFlowStore`, which is\n * why neither needs props from the other.\n *\n * Manifest declaration:\n *\n * { \"id\": \"FlowDetail\", \"route\": \"/flows/:id\", \"type\": \"flow-detail\",\n * \"title\": \"Flow\", \"config\": { \"app\": \"dossiq\" } }\n */\nexport default {\n\tname: 'CnFlowEditorPage',\n\n\tcomponents: { CnFlowBoard, CnFlowDetail, CnFlowViewSwitch },\n\n\tinject: {\n\t\tcnTranslate: { default: () => (key) => key },\n\t},\n\n\tprops: {\n\t\t/**\n\t\t * The owning app id, stamped on a flow created here so the app-scoped\n\t\t * list finds it again. Omit only on the fleet-wide surface.\n\t\t */\n\t\tapp: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * The flow id to open. Defaults to the `id` route param, which is the\n\t\t * normal case; pass it explicitly only when mounting outside a route.\n\t\t * The literal `new` opens an unsaved flow.\n\t\t */\n\t\tid: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Route path the editor lives under, used to swap the URL once a new\n\t\t * flow gets its server-assigned id.\n\t\t */\n\t\tdetailRoute: {\n\t\t\ttype: String,\n\t\t\tdefault: '/flows',\n\t\t},\n\n\t\t/**\n\t\t * A run to open on arrival. Defaults to the `run` query parameter,\n\t\t * which is where a run's own address lands: `/flow-runs/{uuid}` reads\n\t\t * the run, finds its flow and redirects to `/flows/{id}?run={uuid}`.\n\t\t * Pass it explicitly only when mounting outside a route.\n\t\t */\n\t\trun: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Draw this page in the `board` look (or `nextcloud`) whatever the app\n\t\t * does. Empty follows the app's look. Manifest key `config.look`.\n\t\t */\n\t\tlook: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: where steps come from. `picker` (default) keeps \"Add a\n\t\t * step\" in the canvas toolbar; `column` draws the palette as a card\n\t\t * beside the canvas, grouped by the app that provides each step.\n\t\t * Manifest key `config.palette`.\n\t\t */\n\t\tpalette: {\n\t\t\ttype: String,\n\t\t\tdefault: 'picker',\n\t\t},\n\n\t\t/**\n\t\t * Board look: a line under the palette card. Manifest key\n\t\t * `config.paletteFootnote`, translated with the app's catalogue.\n\t\t */\n\t\tpaletteFootnote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the palette's groups as the page curates them,\n\t\t * `[{ app?, label?, pill?, tone?, entries: [{ type, label?, short? }] }]`;\n\t\t * every other step stays behind \"More steps\". Labels are translated\n\t\t * with the app's catalogue. Manifest key `config.paletteGroups`.\n\t\t */\n\t\tpaletteGroups: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `card` draws each step as a card with its name and the\n\t\t * pill of the app that does it; `type` (default) keeps the type line\n\t\t * over the name. Manifest key `config.nodeLook`.\n\t\t */\n\t\tnodeLook: {\n\t\t\ttype: String,\n\t\t\tdefault: 'type',\n\t\t},\n\n\t\t/**\n\t\t * Board look: `down` lays the steps out top to bottom and opens them\n\t\t * at their own size instead of zoomed to fit; `right` (default) lays\n\t\t * them left to right. Manifest key `config.flowDirection`.\n\t\t */\n\t\tflowDirection: {\n\t\t\ttype: String,\n\t\t\tdefault: 'right',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the records a test run can take as its subject,\n\t\t * `{ register, schema, labelField?, label? }`. Manifest key\n\t\t * `config.testSubject`; `label` is translated with the app's catalogue.\n\t\t */\n\t\ttestSubject: {\n\t\t\ttype: Object,\n\t\t\tdefault: null,\n\t\t},\n\n\t\t/**\n\t\t * Board look: test the flow on an example payload. `true` opens an\n\t\t * empty field, text opens it with that JSON. Manifest key\n\t\t * `config.testPayload`.\n\t\t */\n\t\ttestPayload: {\n\t\t\ttype: [Boolean, String],\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Board look: an info notice under the path. Manifest key\n\t\t * `config.notice`, translated with the app's catalogue; `{name}` is\n\t\t * the flow's name.\n\t\t */\n\t\tnotice: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the look of `notice`, `info`, `warning` or `error`.\n\t\t * Manifest key `config.noticeLevel`.\n\t\t */\n\t\tnoticeLevel: {\n\t\t\ttype: String,\n\t\t\tdefault: 'info',\n\t\t},\n\n\t\t/**\n\t\t * Board look: steps only an admin may change, by node id or step type.\n\t\t * Anyone else reads them. The server decides what is saved; this is\n\t\t * the screen's side. Manifest key `config.adminSteps`.\n\t\t */\n\t\tadminSteps: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: edit a published flow in place; Save publishes the edits\n\t\t * as the next version and runs already started keep theirs. Manifest\n\t\t * key `config.saveAsVersion`.\n\t\t */\n\t\tsaveAsVersion: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Board look: which of `trigger`, `steps`, `version` and `saved` the\n\t\t * path names after the flow, in that order. Manifest key\n\t\t * `config.metaParts`.\n\t\t */\n\t\tmetaParts: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => ['trigger', 'steps', 'version'],\n\t\t},\n\n\t\t/**\n\t\t * Board look: a closing note after the path's meta (\"changes apply to\n\t\t * new cases\"), translated. Manifest key `config.metaNote`.\n\t\t */\n\t\tmetaNote: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the pill beside the flow's name (\"Case type flow\").\n\t\t * Empty shows the lifecycle for a draft or retired flow. Manifest key\n\t\t * `config.pill`.\n\t\t */\n\t\tpill: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the tone of `pill` (a CnStatusBadge variant, \"teal\" on\n\t\t * DqFlow). Manifest key `config.pillVariant`.\n\t\t */\n\t\tpillVariant: {\n\t\t\ttype: String,\n\t\t\tdefault: 'default',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the list's name at the start of the path (\"Settings /\n\t\t * Flows\"). Empty reads \"Flows\". Manifest key `config.listLabel`.\n\t\t */\n\t\tlistLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\n\t\t/**\n\t\t * Board look: the levels before the flow, each its own link\n\t\t * (`[{ label, href? }]`, \"Settings\" / \"Flows\"); a crumb without an\n\t\t * href links to the flow list. Labels are translated with the app's\n\t\t * catalogue. Manifest key `config.breadcrumb`; wins over `listLabel`.\n\t\t */\n\t\tbreadcrumb: {\n\t\t\ttype: Array,\n\t\t\tdefault: () => [],\n\t\t},\n\n\t\t/**\n\t\t * Board look: `canvas` lays the page out as boards PqFlow and PqFlowRun\n\t\t * draw it (actions under the title, the canvas without a frame, a\n\t\t * floating inspector); `cards` keeps the DqFlow grid. Manifest key\n\t\t * `config.layout`.\n\t\t */\n\t\tlayout: {\n\t\t\ttype: String,\n\t\t\tdefault: 'cards',\n\t\t},\n\n\t\t/**\n\t\t * Board look: how the Active switch is named. `state` names it\n\t\t * Active or Paused after the flow; `fixed` always names it Active\n\t\t * and the switch shows the state (DqFlow). Manifest key\n\t\t * `config.toggleLabel`.\n\t\t */\n\t\ttoggleLabel: {\n\t\t\ttype: String,\n\t\t\tdefault: 'state',\n\t\t},\n\n\t\t/**\n\t\t * Write a line's condition on the line when it has no name of its\n\t\t * own (\"amount is more than 1000\"). Manifest key\n\t\t * `config.edgeConditions`.\n\t\t */\n\t\tedgeConditions: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * Offer the list view beside the canvas, with the Canvas / List switch:\n\t\t * the trigger and the steps in order, editing the same flow. Manifest\n\t\t * key `config.listMode`.\n\t\t */\n\t\tlistMode: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\n\t\t/**\n\t\t * The view on arrival when `listMode` is on: `canvas` or `list`.\n\t\t * Defaults to the `view` query parameter, so a link can open the list.\n\t\t * Manifest key `config.view`.\n\t\t */\n\t\tview: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t},\n\n\t/**\n\t * Share the one flow store with the toolbar's save/run handlers, and\n\t * resolve the look (`look` is read here, through `useLook`).\n\t *\n\t * @param {object} props The component props.\n\t * @return {object} The setup bindings.\n\t */\n\tsetup(props) {\n\t\tconst { isBoard } = useLook(props)\n\t\treturn { store: useFlowStore(), isBoard }\n\t},\n\n\tdata() {\n\t\treturn { activeView: 'canvas' }\n\t},\n\n\tcomputed: {\n\t\t/**\n\t\t * @return {string} The view asked for on arrival.\n\t\t */\n\t\tarrivalView() {\n\t\t\tconst asked = this.view || this.$route?.query?.view\n\n\t\t\treturn this.listMode && asked === 'list' ? 'list' : 'canvas'\n\t\t},\n\n\t\t/**\n\t\t * @return {string} The flow id being edited.\n\t\t */\n\t\tflowId() {\n\t\t\treturn this.id || this.$route?.params?.id || ''\n\t\t},\n\n\t\t/**\n\t\t * @return {Array<object>} The curated palette groups with their labels translated.\n\t\t */\n\t\ttranslatedPaletteGroups() {\n\t\t\tconst tr = (text) => (text ? this.cnTranslate(text) : text)\n\t\t\treturn (this.paletteGroups || []).map((group) => ({\n\t\t\t\t...group,\n\t\t\t\tlabel: tr(group?.label),\n\t\t\t\tpill: tr(group?.pill),\n\t\t\t\tentries: (group?.entries || []).map((step) => ({ ...step, label: tr(step?.label), short: tr(step?.short) })),\n\t\t\t}))\n\t\t},\n\n\t\t/**\n\t\t * @return {string} The run to open on arrival, or an empty string.\n\t\t */\n\t\trunUuid() {\n\t\t\treturn this.run || this.$route?.query?.run || ''\n\t\t},\n\t},\n\n\tcreated() {\n\t\tthis.activeView = this.arrivalView\n\t},\n\n\tmethods: {\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onSave() {\n\t\t\tconst saved = await this.store.save()\n\t\t\t// A newly created flow gets its id from the server, so the route has\n\t\t\t// to catch up or a reload would land back on `new` and lose it.\n\t\t\tif (saved?.id && this.flowId === 'new') {\n\t\t\t\tthis.$router.replace(`${this.detailRoute}/${saved.id}`)\n\t\t\t}\n\t\t},\n\n\t\t/**\n\t\t * @return {Promise<void>}\n\t\t */\n\t\tasync onRun() {\n\t\t\tawait this.store.run({})\n\t\t},\n\t},\n}\n</script>\n"],"names":["_createBlock","_renderSlot","_withCtx","_createVNode"],"mappings":";;;;;;;UAKW,MAAA,CAAA,OAAA;oBAATA,WAqCW,CAAA,sBAAA,EAAA;;AApCV,QAAA,EAAE,EAAE,QAAM,CAAA,MAAA;AACV,QAAA,GAAG,EAAE,MAAG,CAAA,GAAA;AACR,QAAA,GAAG,EAAE,QAAO,CAAA,OAAA;AACZ,QAAA,WAAW,EAAE,MAAW,CAAA,WAAA;AACxB,QAAA,SAAS,EAAE,MAAA,CAAA,SAAK,GAAA,QAAA,CAAA,WAAA,CAAA,MAAA,CAAA,SAAA,CAAA,GAAA,EAAA;AAChB,QAAA,UAAU,EAAG,CAAA,MAAA,CAAA,UAAU,IAAQ,EAAA,EAAA,GAAE,CAAG,CAAA,KAAK,MAAW,EAAA,GAAA,KAAK,EAAS,KAAA,EAAA,QAAA,CAAA,WAAE,CAAA,KAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA;AACpE,QAAA,OAAO,EAAE,MAAO,CAAA,OAAA;AAChB,QAAA,eAAe,EAAE,MAAA,CAAA,eAAW,GAAA,QAAA,CAAA,WAAA,CAAA,MAAA,CAAA,eAAA,CAAA,GAAA,EAAA;AAC5B,QAAA,aAAa,EAAC,QAAA,CAAA,uBAAA;AACd,QAAA,aAAa,EAAE,MAAS,CAAA,aAAA;AACxB,QAAA,MAAM,EAAE,MAAM,CAAA,MAAA;AACd,QAAA,WAAW,EAAE,MAAW,CAAA,WAAA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A,aAAA,CAAA;;iCAAoB;AAEzC,cAAA,EAAA,EAAAC,OAAA,CAAA,CAFyC,KAAA,KAAA;AAEzC,gBAAAD,UAAA,CAAW,8DAAA,KAAA,CAAA,CAAA,CAAA;;;;;;oBAGZD;;AACC,QAAA,EAAE,EAAE,QAAM,CAAA,MAAA;AACV,QAAA,GAAG,EAAE,MAAG,CAAA,GAAA;AACR,QAAA,GAAG,EAAE,QAAO,CAAA,OAAA;AACZ,QAAA,cAAY,EAAA,MAAA,CAAA,cAAA;AACZ,QAAA,IAAI,EAAE,KAAK,CAAA,UAAA;AACX,QAAA,MAAI,EAAE,QAAM,CAAA,MAAA;AACZ,QAAA,KAAG,EAAE,QAAK,CAAA,KAAA;;SACD,MAAA,CAAA,QAAA;;oBAAA,eAAA;0BACT,MAAY;gBAAZG,WAAY,CAAA,2BAAA,EAAA;8BAAA,KAAA,CAAA,UAAA;+EAAA,KAAA,CAAA,UAAA,IAAA,MAAA,CAAA,CAAA;;;;;;;;;;;"}
@@ -2,7 +2,7 @@ import script from './CnGroupedCardsWidget.vue2.js';
2
2
  import { render } from './CnGroupedCardsWidget.vue3.js';
3
3
 
4
4
  script.render = render;
5
- script.__scopeId = "data-v-1a05ca2a";
5
+ script.__scopeId = "data-v-5f592817";
6
6
  const __sfc_main = script;
7
7
 
8
8
  export { __sfc_main as default };
@@ -1,8 +1,10 @@
1
1
  import { translate } from '@nextcloud/l10n';
2
2
  import { NcButton, NcLoadingIcon, NcProgressBar } from '@nextcloud/vue';
3
3
  import { inject, ref } from 'vue';
4
+ import __sfc_main$1 from '../CnStatusBadge/CnStatusBadge.vue.js';
4
5
  import { useEndpointSource } from '../../composables/useEndpointSource.js';
5
6
  import innerHeading from '../../mixins/innerHeading.js';
7
+ import { fieldPill } from '../../utils/fieldPill.js';
6
8
  import { firstFilled, fillTemplate } from '../../utils/fillTemplate.js';
7
9
  import { unwrapAppConfig } from '../../utils/formatMetric.js';
8
10
  import { languageMapText } from '../../utils/languageMapText.js';
@@ -75,7 +77,7 @@ function readable(row) {
75
77
  var script = {
76
78
  name: 'CnGroupedCardsWidget',
77
79
 
78
- components: { CnActionButtons: __sfc_main, NcButton, NcLoadingIcon, NcProgressBar },
80
+ components: { CnActionButtons: __sfc_main, CnStatusBadge: __sfc_main$1, NcButton, NcLoadingIcon, NcProgressBar },
79
81
 
80
82
  mixins: [innerHeading],
81
83
 
@@ -132,6 +134,17 @@ var script = {
132
134
  * - `itemsPath` with `itemGroupField` reads the cards from one flat list of the payload instead of
133
135
  * from each group: a card belongs to the group whose `id` its `itemGroupField` names. Cards
134
136
  * naming no group gather under `ungroupedTitle`; without that title they are left out.
137
+ * - `groupPill` (a pill config as record-list's `pill`: `{ field, labels?, colorMap?, ... }`)
138
+ * draws a status pill beside the group's title, read from the group.
139
+ * - `itemPill` (the same shape, plus `overdueWhen` and `overdueLabel`) draws a pill at the
140
+ * card's end; while the local condition `overdueWhen` holds on the card, the pill reads
141
+ * `overdueLabel` in the error tone. `itemDate` is a template drawn before that pill
142
+ * (`"{targetDate|date}"`).
143
+ * - `headerSubtitle` is the line under the card title, reported to the host as `header`
144
+ * `{ subtitle }`: a template with `{groups}` and `{items}` (the numbers drawn), or
145
+ * `{ parts, separator?, suffix? }` where a part is such a template or `{ count: "groups" |
146
+ * "items", one, other }`; the parts join with `separator` (default ", "), and `suffix`
147
+ * follows after " · ".
135
148
  *
136
149
  * A language map (`{ nl, en }`) reads in the user's language, and a list
137
150
  * of plain values reads joined with ", ". Texts go through the app's
@@ -157,6 +170,8 @@ var script = {
157
170
  },
158
171
  },
159
172
 
173
+ emits: ['header'],
174
+
160
175
  setup(props) {
161
176
  const objectCtxRaw = inject('cnObjectContext', null);
162
177
  const workspaceRaw = inject('cnWorkspaceContext', null);
@@ -235,6 +250,7 @@ var script = {
235
250
  lines: this.linesOf(group, raw),
236
251
  count: this.countOf(items.length),
237
252
  items,
253
+ pill: this.groupPillOf(raw),
238
254
  action: this.groupActionFor(raw, index),
239
255
  progress: this.progressOf(raw, group),
240
256
  ...this.extraOf(raw),
@@ -285,6 +301,47 @@ var script = {
285
301
  }
286
302
  },
287
303
 
304
+ /**
305
+ * The line under the card title (`content.headerSubtitle`), once the
306
+ * payload is read.
307
+ *
308
+ * @return {string} The line, '' without a declaration or a payload.
309
+ * @spec openspec/changes/grouped-cards-pills-and-counts/specs/grouped-cards-widget/spec.md#requirement-a-grouped-cards-card-can-say-its-counts-under-its-title
310
+ */
311
+ headerSubtitleText() {
312
+ const spec = this.content?.headerSubtitle;
313
+ if (!spec || this.payload === null || this.payload === undefined || this.error) {
314
+ return ''
315
+ }
316
+ const counts = {
317
+ groups: this.groups.length,
318
+ items: this.groups.reduce((sum, group) => sum + group.items.length, 0),
319
+ };
320
+ const fillCounts = (text) => this.translate(text).replace(/\{groups\}/g, String(counts.groups)).replace(/\{items\}/g, String(counts.items));
321
+ if (typeof spec === 'string') {
322
+ return fillCounts(spec)
323
+ }
324
+ if (typeof spec !== 'object' || !Array.isArray(spec.parts)) {
325
+ return ''
326
+ }
327
+ const line = spec.parts
328
+ .map((part) => {
329
+ if (typeof part === 'string') {
330
+ return fillCounts(part)
331
+ }
332
+ if (part && typeof part === 'object' && (part.count === 'groups' || part.count === 'items')) {
333
+ const count = counts[part.count];
334
+ const template = count === 1 ? part.one : part.other;
335
+ return typeof template === 'string' && template !== '' ? this.translate(template).replace(/\{count\}/g, String(count)) : ''
336
+ }
337
+ return ''
338
+ })
339
+ .filter((text) => text !== '')
340
+ .join(typeof spec.separator === 'string' ? spec.separator : ', ');
341
+ const suffix = typeof spec.suffix === 'string' && spec.suffix !== '' ? this.translate(spec.suffix) : '';
342
+ return [line, suffix].filter((text) => text !== '').join(' · ')
343
+ },
344
+
288
345
  /** @return {string} The heading above the groups, filled from the payload. */
289
346
  heading() {
290
347
  const template = this.content?.heading;
@@ -318,7 +375,59 @@ var script = {
318
375
  },
319
376
  },
320
377
 
378
+ watch: {
379
+ /**
380
+ * Report the counts line to the card around the widget.
381
+ *
382
+ * @param {string} subtitle The line, or ''.
383
+ */
384
+ headerSubtitleText: {
385
+ immediate: true,
386
+ /** @spec openspec/changes/grouped-cards-pills-and-counts/specs/grouped-cards-widget/spec.md#requirement-a-grouped-cards-card-can-say-its-counts-under-its-title */
387
+ handler(subtitle) {
388
+ if (this.content?.headerSubtitle) {
389
+ /**
390
+ * @event header The card header's line under the title.
391
+ * @type {{subtitle: string}}
392
+ */
393
+ this.$emit('header', { subtitle });
394
+ }
395
+ },
396
+ },
397
+ },
398
+
321
399
  methods: {
400
+ /**
401
+ * The status pill of a group (`content.groupPill`).
402
+ *
403
+ * @param {object} raw The group as read.
404
+ * @return {{label: string, variant: string}|null} The pill, or null.
405
+ * @spec openspec/changes/grouped-cards-pills-and-counts/specs/grouped-cards-widget/spec.md#requirement-groups-and-cards-can-carry-a-status-pill
406
+ */
407
+ groupPillOf(raw) {
408
+ const spec = this.content?.groupPill;
409
+ return spec ? fieldPill(raw, spec, { translate: (text) => this.translate(text), fill: (template, row) => this.fill(template, readable(row)) }) : null
410
+ },
411
+
412
+ /**
413
+ * The status pill at a card's end (`content.itemPill`): `overdueLabel`
414
+ * in the error tone while `overdueWhen` holds on the card.
415
+ *
416
+ * @param {object} rawItem The card as read.
417
+ * @return {{label: string, variant: string}|null} The pill, or null.
418
+ * @spec openspec/changes/grouped-cards-pills-and-counts/specs/grouped-cards-widget/spec.md#requirement-groups-and-cards-can-carry-a-status-pill
419
+ */
420
+ itemPillOf(rawItem) {
421
+ const spec = this.content?.itemPill;
422
+ if (!spec || typeof spec !== 'object') {
423
+ return null
424
+ }
425
+ if (spec.overdueWhen && typeof spec.overdueLabel === 'string' && spec.overdueLabel !== '' && evaluateVisibleWhenLocal(spec.overdueWhen, rawItem)) {
426
+ return { label: this.translate(spec.overdueLabel), variant: 'error' }
427
+ }
428
+ return fieldPill(rawItem, spec, { translate: (text) => this.translate(text), fill: (template, row) => this.fill(template, readable(row)) })
429
+ },
430
+
322
431
  /**
323
432
  * The `groupAction` for one group, with every `@group.<path>` token in
324
433
  * its strings read from that group, and its id made unique per group.
@@ -415,6 +524,8 @@ var script = {
415
524
  title: this.fill(titleTemplate, item),
416
525
  meta: this.metaOf(item, rawItem, metaSpec),
417
526
  flag,
527
+ pill: spec.title ? null : this.itemPillOf(rawItem),
528
+ date: spec.title || !c.itemDate ? '' : this.fill(c.itemDate, item),
418
529
  actions: this.itemActionsFor(actions, rawItem, rawGroup, key),
419
530
  }
420
531
  })