@conduction/nextcloud-vue 2.178.0 → 2.179.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 (106) hide show
  1. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue.js +1 -1
  2. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js +12 -1
  3. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue2.js.map +1 -1
  4. package/dist/esm/components/CnBuildiqEditButton/CnBuildiqEditButton.vue3.js.map +1 -1
  5. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue.js +1 -1
  6. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js +10 -8
  7. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue2.js.map +1 -1
  8. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js +95 -88
  9. package/dist/esm/components/CnCellRenderer/CnCellRenderer.vue3.js.map +1 -1
  10. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue.js +1 -1
  11. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js +86 -8
  12. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js.map +1 -1
  13. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js +137 -121
  14. package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js.map +1 -1
  15. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue.js +1 -1
  16. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js +56 -4
  17. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue2.js.map +1 -1
  18. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js +166 -70
  19. package/dist/esm/components/CnFlowDetail/CnFlowDryRunResult.vue3.js.map +1 -1
  20. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js +9 -0
  21. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue.js.map +1 -0
  22. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js +123 -0
  23. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue2.js.map +1 -0
  24. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js +268 -0
  25. package/dist/esm/components/CnFlowDetail/CnFlowStepList.vue3.js.map +1 -0
  26. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js +9 -0
  27. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue.js.map +1 -0
  28. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js +49 -0
  29. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue2.js.map +1 -0
  30. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js +41 -0
  31. package/dist/esm/components/CnFlowDetail/CnFlowViewSwitch.vue3.js.map +1 -0
  32. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
  33. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +116 -8
  34. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
  35. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +110 -58
  36. package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
  37. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +78 -1
  38. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
  39. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +44 -3
  40. package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js.map +1 -1
  41. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +90 -75
  42. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  43. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +46 -22
  44. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  45. package/dist/esm/composables/indexSources.js +24 -4
  46. package/dist/esm/composables/indexSources.js.map +1 -1
  47. package/dist/esm/composables/useFlowStore.js +75 -4
  48. package/dist/esm/composables/useFlowStore.js.map +1 -1
  49. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue.js +1 -1
  50. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js +17 -0
  51. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue2.js.map +1 -1
  52. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js +9 -1
  53. package/dist/esm/dialogs/CnFlowEdgeEditModal.vue3.js.map +1 -1
  54. package/dist/esm/dialogs/CnFlowEditModal.vue.js +1 -1
  55. package/dist/esm/dialogs/CnFlowEditModal.vue2.js +15 -0
  56. package/dist/esm/dialogs/CnFlowEditModal.vue2.js.map +1 -1
  57. package/dist/esm/dialogs/CnFlowEditModal.vue3.js +13 -3
  58. package/dist/esm/dialogs/CnFlowEditModal.vue3.js.map +1 -1
  59. package/dist/esm/dialogs/CnFlowStepPickerModal.vue.js +1 -1
  60. package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js +13 -1
  61. package/dist/esm/dialogs/CnFlowStepPickerModal.vue2.js.map +1 -1
  62. package/dist/esm/dialogs/CnFlowStepPickerModal.vue3.js.map +1 -1
  63. package/dist/esm/index.js +2 -0
  64. package/dist/esm/index.js.map +1 -1
  65. package/dist/esm/l10n/en.json.js +40 -1
  66. package/dist/esm/l10n/en.json.js.map +1 -1
  67. package/dist/esm/l10n/nl.json.js +39 -1
  68. package/dist/esm/l10n/nl.json.js.map +1 -1
  69. package/dist/esm/library-style.js +1 -1
  70. package/dist/esm/nextcloud-vue.css +566 -337
  71. package/dist/esm/utils/dialogWidths.js +6 -4
  72. package/dist/esm/utils/dialogWidths.js.map +1 -1
  73. package/dist/esm/utils/flowCondition.js +177 -0
  74. package/dist/esm/utils/flowCondition.js.map +1 -0
  75. package/dist/esm/utils/flowRunStatus.js +64 -1
  76. package/dist/esm/utils/flowRunStatus.js.map +1 -1
  77. package/dist/esm/utils/flowStepList.js +385 -0
  78. package/dist/esm/utils/flowStepList.js.map +1 -0
  79. package/dist/nextcloud-vue.cjs.js +12543 -10668
  80. package/dist/nextcloud-vue.cjs.js.map +2 -2
  81. package/dist/nextcloud-vue.css +566 -337
  82. package/l10n/en.json +40 -1
  83. package/l10n/nl.json +39 -1
  84. package/package.json +1 -1
  85. package/src/components/CnBuildiqEditButton/CnBuildiqEditButton.vue +12 -1
  86. package/src/components/CnCellRenderer/CnCellRenderer.vue +8 -0
  87. package/src/components/CnFlowDetail/CnFlowDetail.vue +110 -12
  88. package/src/components/CnFlowDetail/CnFlowDryRunResult.vue +163 -5
  89. package/src/components/CnFlowDetail/CnFlowStepList.vue +408 -0
  90. package/src/components/CnFlowDetail/CnFlowViewSwitch.vue +117 -0
  91. package/src/components/CnFlowDetail/index.js +2 -0
  92. package/src/components/CnFlowsPage/CnFlowBoard.vue +182 -25
  93. package/src/components/CnFlowsPage/CnFlowEditorPage.vue +101 -3
  94. package/src/components/CnIndexPage/CnIndexPage.vue +29 -0
  95. package/src/components/index.js +1 -1
  96. package/src/composables/indexSources.js +24 -4
  97. package/src/composables/useFlowStore.js +75 -4
  98. package/src/css/index-page.css +4 -0
  99. package/src/dialogs/CnFlowEdgeEditModal.vue +28 -0
  100. package/src/dialogs/CnFlowEditModal.vue +26 -6
  101. package/src/dialogs/CnFlowStepPickerModal.vue +13 -1
  102. package/src/index.js +2 -0
  103. package/src/utils/dialogWidths.js +6 -4
  104. package/src/utils/flowCondition.js +173 -0
  105. package/src/utils/flowRunStatus.js +63 -0
  106. package/src/utils/flowStepList.js +381 -0
@@ -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;;AAE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,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,EAAA;GACvB;EACD;AACF;;;;"}
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: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;A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E,IAAI,CAAC;IACrB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAM,IAAK,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,MAAM,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,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\tas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AA,WAAG,CAAA,MAAA,CAAA,QAAA,CAAA,GAAA,EAAA;AACxB,QAAA,IAAI,EAAE,MAAA,CAAA,IAAI,GAAG,QAAA,CAAA,WAAU,CAAE,MAAI,CAAA,IAAA,CAAA,GAAA,EAAA;AAC7B,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;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AACM,QAAA,CAAA,IAAA,CAAA,MAAM,CAAA,MAAA;;oBAAA,QAAA;0BAErB,MAAsB;gBAAtBC,UAAsB,CAAA,IAAA,CAAA,MAAA,EAAA,QAAA,CAAA;;;;;SAEP,IAAM,CAAA,MAAA,CAAA,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;;;;;;;;;;;"}
@@ -15,15 +15,17 @@ import ImportIcon from 'vue-material-design-icons/Import.vue';
15
15
  import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue';
16
16
  import Tune from 'vue-material-design-icons/Tune.vue';
17
17
  import ViewColumnOutline from 'vue-material-design-icons/ViewColumnOutline.vue';
18
- import __sfc_main$E from '../../dialogs/CnConfirmDialog.vue.js';
19
- import __sfc_main$F from '../../dialogs/CnQuickEditDialog.vue.js';
20
- import __sfc_main$6 from '../CnBuildiqEditButton/CnBuildiqEditButton.vue.js';
18
+ import __sfc_main$G from '../../dialogs/CnConfirmDialog.vue.js';
19
+ import __sfc_main$H from '../../dialogs/CnQuickEditDialog.vue.js';
20
+ import __sfc_main$8 from '../CnBuildiqEditButton/CnBuildiqEditButton.vue.js';
21
21
  import __sfc_main from '../CnCardNotices/CnCardNotices.vue.js';
22
- import __sfc_main$8 from '../CnEmptyContent/CnEmptyContent.vue.js';
23
- import __sfc_main$7 from '../CnFollowToggle/CnFollowToggle.vue.js';
22
+ import __sfc_main$a from '../CnEmptyContent/CnEmptyContent.vue.js';
23
+ import __sfc_main$9 from '../CnFollowToggle/CnFollowToggle.vue.js';
24
+ import __sfc_main$5 from '../CnKpiGrid/CnKpiGrid.vue.js';
24
25
  import __sfc_main$1 from '../CnRealtimeToast/CnRealtimeToast.vue.js';
25
26
  import __sfc_main$4 from '../CnRelatedFieldFilters/CnRelatedFieldFilters.vue.js';
26
- import __sfc_main$5 from '../CnStatusBadge/CnStatusBadge.vue.js';
27
+ import __sfc_main$6 from '../CnStatsBlock/CnStatsBlock.vue.js';
28
+ import __sfc_main$7 from '../CnStatusBadge/CnStatusBadge.vue.js';
27
29
  import __sfc_main$2 from './CnIndexHeaderMenu.vue.js';
28
30
  import __sfc_main$3 from './CnIndexPageWidgets.vue.js';
29
31
  import { useLook } from '../../composables/useLook.js';
@@ -84,40 +86,40 @@ import { annotateRows, pageSourceRows, filterSourceRows, rowsFromSourceBody } fr
84
86
  import { stripTrailingSlashes } from '../../utils/trailingSlashes.js';
85
87
  import { userDisplayName } from '../../utils/userDisplayName.js';
86
88
  import { dispatchObjectCreated } from '../../utils/walkthroughSignals.js';
87
- import __sfc_main$b from '../CnActionButtons/CnActionButtons.vue.js';
88
- import __sfc_main$c from '../CnActionsBar/CnActionsBar.vue.js';
89
- import __sfc_main$w from '../CnAdvancedFormDialog/CnAdvancedFormDialog.vue.js';
89
+ import __sfc_main$d from '../CnActionButtons/CnActionButtons.vue.js';
90
+ import __sfc_main$e from '../CnActionsBar/CnActionsBar.vue.js';
91
+ import __sfc_main$y from '../CnAdvancedFormDialog/CnAdvancedFormDialog.vue.js';
90
92
  import '../CnAdvancedFormDialog/CnMetadataTab.vue.js';
91
93
  import '../CnAdvancedFormDialog/CnPropertiesTab.vue.js';
92
94
  import '../CnAdvancedFormDialog/CnPropertyValueCell.vue.js';
93
- import __sfc_main$h from '../CnBoardView/CnBoardView.vue.js';
94
- import __sfc_main$f from '../CnCardGrid/CnCardGrid.vue.js';
95
- import __sfc_main$x from '../CnContextMenu/CnContextMenu.vue.js';
96
- import __sfc_main$u from '../CnCopyDialog/CnCopyDialog.vue.js';
97
- import __sfc_main$e from '../CnDataTable/CnDataTable.vue.js';
98
- import __sfc_main$i from '../CnDateAxisView/CnDateAxisView.vue.js';
99
- import __sfc_main$t from '../CnDeleteDialog/CnDeleteDialog.vue.js';
100
- import __sfc_main$g from '../CnExpandableRow/CnExpandableRow.vue.js';
101
- import __sfc_main$m from '../CnFolderSidebar/CnFolderSidebar.vue.js';
102
- import __sfc_main$v from '../CnFormDialog/CnFormDialog.vue.js';
103
- import __sfc_main$d from '../CnIcon/CnIcon.vue.js';
104
- import __sfc_main$y from '../CnIndexSidebar/CnIndexSidebar.vue.js';
105
- import __sfc_main$k from '../CnMapWidget/CnMapWidget.vue.js';
106
- import __sfc_main$q from '../CnMassCopyDialog/CnMassCopyDialog.vue.js';
107
- import __sfc_main$p from '../CnMassDeleteDialog/CnMassDeleteDialog.vue.js';
108
- import __sfc_main$r from '../CnMassExportDialog/CnMassExportDialog.vue.js';
109
- import __sfc_main$s from '../CnMassImportDialog/CnMassImportDialog.vue.js';
110
- import __sfc_main$j from '../CnObjectCalendar/CnObjectCalendar.vue.js';
111
- import __sfc_main$l from '../CnObjectList/CnObjectList.vue.js';
112
- import __sfc_main$9 from '../CnPageHeader/CnPageHeader.vue.js';
113
- import __sfc_main$n from '../CnPagination/CnPagination.vue.js';
114
- import __sfc_main$a from '../CnQuickFilterBar/CnQuickFilterBar.vue.js';
115
- import __sfc_main$o from '../CnRowActions/CnRowActions.vue.js';
116
- import __sfc_main$B from '../CnSavedViewEditDialog/CnSavedViewEditDialog.vue.js';
117
- import __sfc_main$A from '../CnSavedViewPresentationDialog/CnSavedViewPresentationDialog.vue.js';
118
- import __sfc_main$z from '../CnSavedViewsControl/CnSavedViewsControl.vue.js';
119
- import __sfc_main$C from '../CnSavedViewShareDialog/CnSavedViewShareDialog.vue.js';
120
- import __sfc_main$D from '../CnSaveViewDialog/CnSaveViewDialog.vue.js';
95
+ import __sfc_main$j from '../CnBoardView/CnBoardView.vue.js';
96
+ import __sfc_main$h from '../CnCardGrid/CnCardGrid.vue.js';
97
+ import __sfc_main$z from '../CnContextMenu/CnContextMenu.vue.js';
98
+ import __sfc_main$w from '../CnCopyDialog/CnCopyDialog.vue.js';
99
+ import __sfc_main$g from '../CnDataTable/CnDataTable.vue.js';
100
+ import __sfc_main$k from '../CnDateAxisView/CnDateAxisView.vue.js';
101
+ import __sfc_main$v from '../CnDeleteDialog/CnDeleteDialog.vue.js';
102
+ import __sfc_main$i from '../CnExpandableRow/CnExpandableRow.vue.js';
103
+ import __sfc_main$o from '../CnFolderSidebar/CnFolderSidebar.vue.js';
104
+ import __sfc_main$x from '../CnFormDialog/CnFormDialog.vue.js';
105
+ import __sfc_main$f from '../CnIcon/CnIcon.vue.js';
106
+ import __sfc_main$A from '../CnIndexSidebar/CnIndexSidebar.vue.js';
107
+ import __sfc_main$m from '../CnMapWidget/CnMapWidget.vue.js';
108
+ import __sfc_main$s from '../CnMassCopyDialog/CnMassCopyDialog.vue.js';
109
+ import __sfc_main$r from '../CnMassDeleteDialog/CnMassDeleteDialog.vue.js';
110
+ import __sfc_main$t from '../CnMassExportDialog/CnMassExportDialog.vue.js';
111
+ import __sfc_main$u from '../CnMassImportDialog/CnMassImportDialog.vue.js';
112
+ import __sfc_main$l from '../CnObjectCalendar/CnObjectCalendar.vue.js';
113
+ import __sfc_main$n from '../CnObjectList/CnObjectList.vue.js';
114
+ import __sfc_main$b from '../CnPageHeader/CnPageHeader.vue.js';
115
+ import __sfc_main$p from '../CnPagination/CnPagination.vue.js';
116
+ import __sfc_main$c from '../CnQuickFilterBar/CnQuickFilterBar.vue.js';
117
+ import __sfc_main$q from '../CnRowActions/CnRowActions.vue.js';
118
+ import __sfc_main$D from '../CnSavedViewEditDialog/CnSavedViewEditDialog.vue.js';
119
+ import __sfc_main$C from '../CnSavedViewPresentationDialog/CnSavedViewPresentationDialog.vue.js';
120
+ import __sfc_main$B from '../CnSavedViewsControl/CnSavedViewsControl.vue.js';
121
+ import __sfc_main$E from '../CnSavedViewShareDialog/CnSavedViewShareDialog.vue.js';
122
+ import __sfc_main$F from '../CnSaveViewDialog/CnSaveViewDialog.vue.js';
121
123
  import { applyAiContext } from './aiContext.js';
122
124
  import { buildDefaultActions } from './defaultActions.js';
123
125
  import { dispatchAction as dispatchAction$1 } from './manifestActionDispatch.js';
@@ -524,12 +526,14 @@ var script = {
524
526
  CnIndexHeaderMenu: __sfc_main$2,
525
527
  CnIndexPageWidgets: __sfc_main$3,
526
528
  CnRelatedFieldFilters: __sfc_main$4,
527
- CnStatusBadge: __sfc_main$5,
529
+ CnKpiGrid: __sfc_main$5,
530
+ CnStatsBlock: __sfc_main$6,
531
+ CnStatusBadge: __sfc_main$7,
528
532
  NcNoteCard,
529
- CnBuildiqEditButton: __sfc_main$6,
530
- CnFollowToggle: __sfc_main$7,
533
+ CnBuildiqEditButton: __sfc_main$8,
534
+ CnFollowToggle: __sfc_main$9,
531
535
  NcLoadingIcon,
532
- CnEmptyContent: __sfc_main$8,
536
+ CnEmptyContent: __sfc_main$a,
533
537
  NcActions,
534
538
  NcActionLink,
535
539
  NcActionButton,
@@ -546,39 +550,39 @@ var script = {
546
550
  Tune,
547
551
  ViewColumnOutline,
548
552
  NcCheckboxRadioSwitch,
549
- CnPageHeader: __sfc_main$9,
550
- CnQuickFilterBar: __sfc_main$a,
551
- CnActionButtons: __sfc_main$b,
552
- CnActionsBar: __sfc_main$c,
553
- CnIcon: __sfc_main$d,
554
- CnDataTable: __sfc_main$e,
555
- CnCardGrid: __sfc_main$f,
556
- CnExpandableRow: __sfc_main$g,
557
- CnBoardView: __sfc_main$h,
558
- CnDateAxisView: __sfc_main$i,
559
- CnObjectCalendar: __sfc_main$j,
560
- CnMapWidget: __sfc_main$k,
561
- CnObjectList: __sfc_main$l,
562
- CnFolderSidebar: __sfc_main$m,
563
- CnPagination: __sfc_main$n,
564
- CnRowActions: __sfc_main$o,
565
- CnMassDeleteDialog: __sfc_main$p,
566
- CnMassCopyDialog: __sfc_main$q,
567
- CnMassExportDialog: __sfc_main$r,
568
- CnMassImportDialog: __sfc_main$s,
569
- CnDeleteDialog: __sfc_main$t,
570
- CnCopyDialog: __sfc_main$u,
571
- CnFormDialog: __sfc_main$v,
572
- CnAdvancedFormDialog: __sfc_main$w,
573
- CnContextMenu: __sfc_main$x,
574
- CnIndexSidebar: __sfc_main$y,
575
- CnSavedViewsControl: __sfc_main$z,
576
- CnSavedViewPresentationDialog: __sfc_main$A,
577
- CnSavedViewEditDialog: __sfc_main$B,
578
- CnSavedViewShareDialog: __sfc_main$C,
579
- CnSaveViewDialog: __sfc_main$D,
580
- CnConfirmDialog: __sfc_main$E,
581
- CnQuickEditDialog: __sfc_main$F,
553
+ CnPageHeader: __sfc_main$b,
554
+ CnQuickFilterBar: __sfc_main$c,
555
+ CnActionButtons: __sfc_main$d,
556
+ CnActionsBar: __sfc_main$e,
557
+ CnIcon: __sfc_main$f,
558
+ CnDataTable: __sfc_main$g,
559
+ CnCardGrid: __sfc_main$h,
560
+ CnExpandableRow: __sfc_main$i,
561
+ CnBoardView: __sfc_main$j,
562
+ CnDateAxisView: __sfc_main$k,
563
+ CnObjectCalendar: __sfc_main$l,
564
+ CnMapWidget: __sfc_main$m,
565
+ CnObjectList: __sfc_main$n,
566
+ CnFolderSidebar: __sfc_main$o,
567
+ CnPagination: __sfc_main$p,
568
+ CnRowActions: __sfc_main$q,
569
+ CnMassDeleteDialog: __sfc_main$r,
570
+ CnMassCopyDialog: __sfc_main$s,
571
+ CnMassExportDialog: __sfc_main$t,
572
+ CnMassImportDialog: __sfc_main$u,
573
+ CnDeleteDialog: __sfc_main$v,
574
+ CnCopyDialog: __sfc_main$w,
575
+ CnFormDialog: __sfc_main$x,
576
+ CnAdvancedFormDialog: __sfc_main$y,
577
+ CnContextMenu: __sfc_main$z,
578
+ CnIndexSidebar: __sfc_main$A,
579
+ CnSavedViewsControl: __sfc_main$B,
580
+ CnSavedViewPresentationDialog: __sfc_main$C,
581
+ CnSavedViewEditDialog: __sfc_main$D,
582
+ CnSavedViewShareDialog: __sfc_main$E,
583
+ CnSaveViewDialog: __sfc_main$F,
584
+ CnConfirmDialog: __sfc_main$G,
585
+ CnQuickEditDialog: __sfc_main$H,
582
586
  },
583
587
 
584
588
  /**
@@ -7229,6 +7233,17 @@ var script = {
7229
7233
  return refs
7230
7234
  },
7231
7235
 
7236
+ /**
7237
+ * The counters a named source draws above its rows.
7238
+ *
7239
+ * @return {Array<object>} The tiles, `{id, label, count, note, variant}`.
7240
+ */
7241
+ sourceCounters() {
7242
+ const source = this.isNamedSource ? this.namedSource : null;
7243
+
7244
+ return source && typeof source.counters === 'function' ? source.counters() : []
7245
+ },
7246
+
7232
7247
  /**
7233
7248
  * The page tabs a named source declares, each `{id, label, to, count?}`.
7234
7249
  *
@@ -12107,7 +12122,7 @@ var script = {
12107
12122
  this.cnIndexSidebarConfig.value = {
12108
12123
  // markRaw: the holder is CnAppRoot `data()`, so it is deeply
12109
12124
  // reactive and would proxy the component definition itself.
12110
- component: markRaw(__sfc_main$y),
12125
+ component: markRaw(__sfc_main$A),
12111
12126
  props: this.hoistedSidebarProps,
12112
12127
  listeners: {
12113
12128
  'update:open': (val) => {