@conduction/nextcloud-vue 2.174.0 → 2.176.1

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 (203) hide show
  1. package/dist/esm/components/CnActionDialog/CnActionDialog.vue.js +1 -1
  2. package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js +114 -11
  3. package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
  4. package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js +67 -17
  5. package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
  6. package/dist/esm/components/CnBlockListEditor/CnBlockListEditor.vue.js +9 -0
  7. package/dist/esm/components/CnBlockListEditor/CnBlockListEditor.vue.js.map +1 -0
  8. package/dist/esm/components/CnBlockListEditor/CnBlockListEditor.vue2.js +352 -0
  9. package/dist/esm/components/CnBlockListEditor/CnBlockListEditor.vue2.js.map +1 -0
  10. package/dist/esm/components/CnBlockListEditor/CnBlockListEditor.vue3.js +266 -0
  11. package/dist/esm/components/CnBlockListEditor/CnBlockListEditor.vue3.js.map +1 -0
  12. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  13. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +323 -7
  14. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  15. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js +113 -59
  16. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  17. package/dist/esm/components/CnChildRecordsField/CnChildRecordsField.vue.js +1 -1
  18. package/dist/esm/components/CnChildRecordsField/CnChildRecordsField.vue2.js +210 -5
  19. package/dist/esm/components/CnChildRecordsField/CnChildRecordsField.vue2.js.map +1 -1
  20. package/dist/esm/components/CnChildRecordsField/CnChildRecordsField.vue3.js +134 -46
  21. package/dist/esm/components/CnChildRecordsField/CnChildRecordsField.vue3.js.map +1 -1
  22. package/dist/esm/components/CnChoiceMatrix/CnChoiceMatrix.vue.js +9 -0
  23. package/dist/esm/components/CnChoiceMatrix/CnChoiceMatrix.vue.js.map +1 -0
  24. package/dist/esm/components/CnChoiceMatrix/CnChoiceMatrix.vue2.js +385 -0
  25. package/dist/esm/components/CnChoiceMatrix/CnChoiceMatrix.vue2.js.map +1 -0
  26. package/dist/esm/components/CnChoiceMatrix/CnChoiceMatrix.vue3.js +277 -0
  27. package/dist/esm/components/CnChoiceMatrix/CnChoiceMatrix.vue3.js.map +1 -0
  28. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue.js +1 -1
  29. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue2.js +175 -20
  30. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue2.js.map +1 -1
  31. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue3.js +30 -8
  32. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue3.js.map +1 -1
  33. package/dist/esm/components/CnCreateFormWidget/CnCreateFormWidget.vue.js +1 -1
  34. package/dist/esm/components/CnCreateFormWidget/CnCreateFormWidget.vue2.js +72 -6
  35. package/dist/esm/components/CnCreateFormWidget/CnCreateFormWidget.vue2.js.map +1 -1
  36. package/dist/esm/components/CnCreateFormWidget/CnCreateFormWidget.vue3.js +48 -14
  37. package/dist/esm/components/CnCreateFormWidget/CnCreateFormWidget.vue3.js.map +1 -1
  38. package/dist/esm/components/CnDataMatrix/CnDataMatrix.vue.js +1 -1
  39. package/dist/esm/components/CnDataMatrix/CnDataMatrix.vue2.js +255 -10
  40. package/dist/esm/components/CnDataMatrix/CnDataMatrix.vue2.js.map +1 -1
  41. package/dist/esm/components/CnDataMatrix/CnDataMatrix.vue3.js +70 -28
  42. package/dist/esm/components/CnDataMatrix/CnDataMatrix.vue3.js.map +1 -1
  43. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +55 -6
  44. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
  45. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
  46. package/dist/esm/components/CnDisplayScreen/CnDisplayScreen.vue.js +9 -0
  47. package/dist/esm/components/CnDisplayScreen/CnDisplayScreen.vue.js.map +1 -0
  48. package/dist/esm/components/CnDisplayScreen/CnDisplayScreen.vue2.js +175 -0
  49. package/dist/esm/components/CnDisplayScreen/CnDisplayScreen.vue2.js.map +1 -0
  50. package/dist/esm/components/CnDisplayScreen/CnDisplayScreen.vue3.js +114 -0
  51. package/dist/esm/components/CnDisplayScreen/CnDisplayScreen.vue3.js.map +1 -0
  52. package/dist/esm/components/CnDurationField/CnDurationField.vue.js +1 -1
  53. package/dist/esm/components/CnDurationField/CnDurationField.vue2.js +218 -4
  54. package/dist/esm/components/CnDurationField/CnDurationField.vue2.js.map +1 -1
  55. package/dist/esm/components/CnDurationField/CnDurationField.vue3.js +133 -44
  56. package/dist/esm/components/CnDurationField/CnDurationField.vue3.js.map +1 -1
  57. package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
  58. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
  59. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +5 -1
  60. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
  61. package/dist/esm/components/CnGeoCaptureField/CnGeoCaptureField.vue.js +9 -0
  62. package/dist/esm/components/CnGeoCaptureField/CnGeoCaptureField.vue.js.map +1 -0
  63. package/dist/esm/components/CnGeoCaptureField/CnGeoCaptureField.vue2.js +113 -0
  64. package/dist/esm/components/CnGeoCaptureField/CnGeoCaptureField.vue2.js.map +1 -0
  65. package/dist/esm/components/CnGeoCaptureField/CnGeoCaptureField.vue3.js +43 -0
  66. package/dist/esm/components/CnGeoCaptureField/CnGeoCaptureField.vue3.js.map +1 -0
  67. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +40 -1
  68. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  69. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  70. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue.js +1 -1
  71. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue2.js +110 -1
  72. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue2.js.map +1 -1
  73. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue3.js +60 -18
  74. package/dist/esm/components/CnMarkdownEditor/CnMarkdownEditor.vue3.js.map +1 -1
  75. package/dist/esm/components/CnMenuTreeNode/CnMenuTreeNode.vue2.js +2 -2
  76. package/dist/esm/components/CnMenuTreeNode/CnMenuTreeNode.vue2.js.map +1 -1
  77. package/dist/esm/components/CnObjectKanban/CnObjectKanban.vue2.js +2 -2
  78. package/dist/esm/components/CnObjectKanban/CnObjectKanban.vue2.js.map +1 -1
  79. package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue2.js +2 -2
  80. package/dist/esm/components/CnPageTreeNode/CnPageTreeNode.vue2.js.map +1 -1
  81. package/dist/esm/components/CnQrCode/CnQrCode.vue.js +9 -0
  82. package/dist/esm/components/CnQrCode/CnQrCode.vue.js.map +1 -0
  83. package/dist/esm/components/CnQrCode/CnQrCode.vue2.js +241 -0
  84. package/dist/esm/components/CnQrCode/CnQrCode.vue2.js.map +1 -0
  85. package/dist/esm/components/CnQrCode/CnQrCode.vue3.js +75 -0
  86. package/dist/esm/components/CnQrCode/CnQrCode.vue3.js.map +1 -0
  87. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue.js +1 -1
  88. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue2.js +34 -3
  89. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue2.js.map +1 -1
  90. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue3.js +81 -19
  91. package/dist/esm/components/CnReadinessChecklist/CnReadinessChecklist.vue3.js.map +1 -1
  92. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
  93. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +11 -0
  94. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
  95. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +112 -88
  96. package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
  97. package/dist/esm/components/CnRevealField/CnRevealField.vue.js +9 -0
  98. package/dist/esm/components/CnRevealField/CnRevealField.vue.js.map +1 -0
  99. package/dist/esm/components/CnRevealField/CnRevealField.vue2.js +157 -0
  100. package/dist/esm/components/CnRevealField/CnRevealField.vue2.js.map +1 -0
  101. package/dist/esm/components/CnRevealField/CnRevealField.vue3.js +116 -0
  102. package/dist/esm/components/CnRevealField/CnRevealField.vue3.js.map +1 -0
  103. package/dist/esm/components/CnStorePage/CnStorePage.vue.js +1 -1
  104. package/dist/esm/components/CnStorePage/CnStorePage.vue2.js +3 -3
  105. package/dist/esm/components/CnStorePage/CnStorePage.vue2.js.map +1 -1
  106. package/dist/esm/components/CnStorePage/CnStorePage.vue3.js +5 -5
  107. package/dist/esm/components/CnStorePage/CnStorePage.vue3.js.map +1 -1
  108. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue.js +1 -1
  109. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue2.js +6 -6
  110. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue2.js.map +1 -1
  111. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue3.js +1 -1
  112. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue3.js.map +1 -1
  113. package/dist/esm/components/CnTextWidget/CnTextWidget.vue.js +1 -1
  114. package/dist/esm/components/CnTextWidget/CnTextWidget.vue2.js +43 -3
  115. package/dist/esm/components/CnTextWidget/CnTextWidget.vue2.js.map +1 -1
  116. package/dist/esm/components/CnTextWidget/CnTextWidget.vue3.js +19 -12
  117. package/dist/esm/components/CnTextWidget/CnTextWidget.vue3.js.map +1 -1
  118. package/dist/esm/components/CnTransferCard/CnTransferCard.vue.js +9 -0
  119. package/dist/esm/components/CnTransferCard/CnTransferCard.vue.js.map +1 -0
  120. package/dist/esm/components/CnTransferCard/CnTransferCard.vue2.js +87 -0
  121. package/dist/esm/components/CnTransferCard/CnTransferCard.vue2.js.map +1 -0
  122. package/dist/esm/components/CnTransferCard/CnTransferCard.vue3.js +126 -0
  123. package/dist/esm/components/CnTransferCard/CnTransferCard.vue3.js.map +1 -0
  124. package/dist/esm/components/CnTreeView/CnTreeNode.vue.js +1 -1
  125. package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js +66 -1
  126. package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js.map +1 -1
  127. package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js +129 -29
  128. package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js.map +1 -1
  129. package/dist/esm/components/CnTreeView/CnTreeView.vue.js +1 -1
  130. package/dist/esm/components/CnTreeView/CnTreeView.vue2.js +158 -6
  131. package/dist/esm/components/CnTreeView/CnTreeView.vue2.js.map +1 -1
  132. package/dist/esm/components/CnTreeView/CnTreeView.vue3.js +100 -39
  133. package/dist/esm/components/CnTreeView/CnTreeView.vue3.js.map +1 -1
  134. package/dist/esm/index.js +8 -0
  135. package/dist/esm/index.js.map +1 -1
  136. package/dist/esm/l10n/en.json.js +79 -14
  137. package/dist/esm/l10n/en.json.js.map +1 -1
  138. package/dist/esm/l10n/nl.json.js +79 -14
  139. package/dist/esm/l10n/nl.json.js.map +1 -1
  140. package/dist/esm/library-style.js +1 -1
  141. package/dist/esm/nextcloud-vue.css +1162 -523
  142. package/dist/esm/node_modules/vuedraggable/dist/vuedraggable.umd.js +2 -2
  143. package/dist/esm/utils/captureLocation.js +32 -0
  144. package/dist/esm/utils/captureLocation.js.map +1 -0
  145. package/dist/esm/utils/childRecordTotals.js +157 -0
  146. package/dist/esm/utils/childRecordTotals.js.map +1 -0
  147. package/dist/esm/utils/isoDuration.js +51 -1
  148. package/dist/esm/utils/isoDuration.js.map +1 -1
  149. package/dist/esm/utils/parentCrumb.js +86 -0
  150. package/dist/esm/utils/parentCrumb.js.map +1 -0
  151. package/dist/esm/utils/qr.js +649 -0
  152. package/dist/esm/utils/qr.js.map +1 -0
  153. package/dist/esm/utils/schema.js +3 -0
  154. package/dist/esm/utils/schema.js.map +1 -1
  155. package/dist/esm/utils/templateVariables.js +54 -0
  156. package/dist/esm/utils/templateVariables.js.map +1 -0
  157. package/dist/nextcloud-vue.cjs.js +21125 -15025
  158. package/dist/nextcloud-vue.cjs.js.map +2 -2
  159. package/dist/nextcloud-vue.css +1162 -523
  160. package/l10n/en.json +79 -14
  161. package/l10n/nl.json +79 -14
  162. package/package.json +1 -1
  163. package/src/components/CnActionDialog/CnActionDialog.vue +156 -9
  164. package/src/components/CnBlockListEditor/CnBlockListEditor.vue +615 -0
  165. package/src/components/CnBlockListEditor/index.js +9 -0
  166. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +377 -10
  167. package/src/components/CnChildRecordsField/CnChildRecordsField.vue +306 -15
  168. package/src/components/CnChoiceMatrix/CnChoiceMatrix.vue +710 -0
  169. package/src/components/CnChoiceMatrix/index.js +9 -0
  170. package/src/components/CnCountdownWidget/CnCountdownWidget.vue +223 -28
  171. package/src/components/CnCreateFormWidget/CnCreateFormWidget.vue +97 -6
  172. package/src/components/CnDataMatrix/CnDataMatrix.vue +304 -17
  173. package/src/components/CnDetailPage/CnDetailPage.vue +55 -6
  174. package/src/components/CnDisplayScreen/CnDisplayScreen.vue +308 -0
  175. package/src/components/CnDisplayScreen/index.js +9 -0
  176. package/src/components/CnDurationField/CnDurationField.vue +330 -5
  177. package/src/components/CnFormDialog/CnFormDialog.vue +4 -0
  178. package/src/components/CnGeoCaptureField/CnGeoCaptureField.vue +148 -0
  179. package/src/components/CnGeoCaptureField/index.js +9 -0
  180. package/src/components/CnIndexPage/CnIndexPage.vue +40 -1
  181. package/src/components/CnMarkdownEditor/CnMarkdownEditor.vue +139 -1
  182. package/src/components/CnQrCode/CnQrCode.vue +321 -0
  183. package/src/components/CnQrCode/index.js +9 -0
  184. package/src/components/CnReadinessChecklist/CnReadinessChecklist.vue +80 -3
  185. package/src/components/CnRecordListWidget/CnRecordListWidget.vue +34 -1
  186. package/src/components/CnRevealField/CnRevealField.vue +273 -0
  187. package/src/components/CnRevealField/index.js +9 -0
  188. package/src/components/CnStorePage/CnStorePage.vue +8 -8
  189. package/src/components/CnStorePage/CnStorePublishDialog.vue +7 -7
  190. package/src/components/CnTextWidget/CnTextWidget.vue +62 -3
  191. package/src/components/CnTransferCard/CnTransferCard.vue +205 -0
  192. package/src/components/CnTransferCard/index.js +9 -0
  193. package/src/components/CnTreeView/CnTreeNode.vue +145 -2
  194. package/src/components/CnTreeView/CnTreeView.vue +210 -6
  195. package/src/components/index.js +7 -0
  196. package/src/index.js +8 -0
  197. package/src/utils/captureLocation.js +29 -0
  198. package/src/utils/childRecordTotals.js +153 -0
  199. package/src/utils/isoDuration.js +50 -0
  200. package/src/utils/parentCrumb.js +83 -0
  201. package/src/utils/qr.js +681 -0
  202. package/src/utils/schema.js +3 -0
  203. package/src/utils/templateVariables.js +51 -0
package/l10n/en.json CHANGED
@@ -174,15 +174,15 @@
174
174
  "Installed": "Installed",
175
175
  "Installed.": "Installed.",
176
176
  "Installing…": "Installing…",
177
- "No store registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.": "No store registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.",
177
+ "No marketplace registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.": "No marketplace registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.",
178
178
  "Nothing matches that search": "Nothing matches that search",
179
- "Search the store": "Search the store",
179
+ "Search the marketplace": "Search the marketplace",
180
180
  "All items": "All items",
181
181
  "Some parts were not installed: {schemas}": "Some parts were not installed: {schemas}",
182
- "Store": "Store",
182
+ "Marketplace": "Marketplace",
183
183
  "The item could not be installed.": "The item could not be installed.",
184
184
  "The items below ship with this app.": "The items below ship with this app.",
185
- "The store registry did not answer.": "The store registry did not answer.",
185
+ "The marketplace registry did not answer.": "The marketplace registry did not answer.",
186
186
  "Try a different term, or clear the kind filter.": "Try a different term, or clear the kind filter.",
187
187
  "Version {version}": "Version {version}",
188
188
  "App template": "App template",
@@ -2524,8 +2524,8 @@
2524
2524
  "Could not save. Your text is kept here; it is saved again when you type.": "Could not save. Your text is kept here; it is saved again when you type.",
2525
2525
  "Skip this step": "Skip this step",
2526
2526
  "{label} (optional)": "{label} (optional)",
2527
- "Installed from this store": "Installed from this store",
2528
- "Nothing from this store is installed yet.": "Nothing from this store is installed yet.",
2527
+ "Installed from this marketplace": "Installed from this marketplace",
2528
+ "Nothing from this marketplace is installed yet.": "Nothing from this marketplace is installed yet.",
2529
2529
  "Updates": "Updates",
2530
2530
  "Everything is up to date.": "Everything is up to date.",
2531
2531
  "Check now": "Check now",
@@ -2533,20 +2533,20 @@
2533
2533
  "Updates available": "Updates available",
2534
2534
  "{items} ship with the app. They show here when no registry is connected.": "{items} ship with the app. They show here when no registry is connected.",
2535
2535
  "Version {version}, {latest} is out": "Version {version}, {latest} is out",
2536
- "No store registry is configured. An administrator connects one under Administration settings.": "No store registry is configured. An administrator connects one under Administration settings.",
2536
+ "No marketplace registry is configured. An administrator connects one under Administration settings.": "No marketplace registry is configured. An administrator connects one under Administration settings.",
2537
2537
  "Nothing of this kind on this instance yet.": "Nothing of this kind on this instance yet.",
2538
- "Publish to the store": "Publish to the store",
2539
- "Published to the store.": "Published to the store.",
2538
+ "Publish to the marketplace": "Publish to the marketplace",
2539
+ "Published to the marketplace.": "Published to the marketplace.",
2540
2540
  "Publisher": "Publisher",
2541
2541
  "Publishing…": "Publishing…",
2542
2542
  "Share a template built from your own configuration with the registry.": "Share a template built from your own configuration with the registry.",
2543
2543
  "The item could not be published.": "The item could not be published.",
2544
2544
  "The item is too large to publish.": "The item is too large to publish.",
2545
- "The store registry did not answer. Try again later.": "The store registry did not answer. Try again later.",
2546
- "The store registry is busy. Try again in a minute.": "The store registry is busy. Try again in a minute.",
2547
- "The store registry refused the item.": "The store registry refused the item.",
2545
+ "The marketplace registry did not answer. Try again later.": "The marketplace registry did not answer. Try again later.",
2546
+ "The marketplace registry is busy. Try again in a minute.": "The marketplace registry is busy. Try again in a minute.",
2547
+ "The marketplace registry refused the item.": "The marketplace registry refused the item.",
2548
2548
  "What the template carries": "What the template carries",
2549
- "You may not publish to this store.": "You may not publish to this store.",
2549
+ "You may not publish to this marketplace.": "You may not publish to this marketplace.",
2550
2550
  "Move {name}": "Move {name}",
2551
2551
  "Filter on {name}": "Filter on {name}",
2552
2552
  "(empty)": "(empty)",
@@ -2610,6 +2610,56 @@
2610
2610
  "Condition": "Condition",
2611
2611
  "These conditions are kept as written": "These conditions are kept as written",
2612
2612
  "This group has no conditions yet.": "This group has no conditions yet.",
2613
+ "Add block": "Add block",
2614
+ "Block type": "Block type",
2615
+ "Blocks": "Blocks",
2616
+ "No blocks yet.": "No blocks yet.",
2617
+ "Drag to change the order": "Drag to change the order",
2618
+ "Keep": "Keep",
2619
+ "Draft kept.": "Draft kept.",
2620
+ "Draft discarded.": "Draft discarded.",
2621
+ "Block removed.": "Block removed.",
2622
+ "{type} block added at position {position}.": "{type} block added at position {position}.",
2623
+ "Block moved to position {position} of {total}.": "Block moved to position {position} of {total}.",
2624
+ "Block {position} is still a draft. Keep or discard it first.": "Block {position} is still a draft. Keep or discard it first.",
2625
+ "{action}: {type} block {position}": "{action}: {type} block {position}",
2626
+ "This text is too long for a QR code.": "This text is too long for a QR code.",
2627
+ "This code could not be refreshed and may no longer work.": "This code could not be refreshed and may no longer work.",
2628
+ "QR code for: {label}": "QR code for: {label}",
2629
+ "QR code": "QR code",
2630
+ "Changes in {seconds} s": "Changes in {seconds} s",
2631
+ "updated at {time}": "updated at {time}",
2632
+ "Cannot reach the server. This shows what it knew at {time}.": "Cannot reach the server. This shows what it knew at {time}.",
2633
+ "Cannot reach the server. This may be out of date.": "Cannot reach the server. This may be out of date.",
2634
+ "Nothing to set yet.": "Nothing to set yet.",
2635
+ "Nothing to choose from.": "Nothing to choose from.",
2636
+ "Time left: {time}": "Time left: {time}",
2637
+ "Start timer": "Start timer",
2638
+ "Stop timer": "Stop timer",
2639
+ "Drag to reorder": "Drag to reorder",
2640
+ "{action}: {label}": "{action}: {label}",
2641
+ "{label} moved to position {position} of {total}.": "{label} moved to position {position} of {total}.",
2642
+ "Address (by hand)": "Address (by hand)",
2643
+ "Looking for your location…": "Looking for your location…",
2644
+ "No location found. You can carry on, or add the address by hand.": "No location found. You can carry on, or add the address by hand.",
2645
+ "Location is inaccurate (±{accuracy} m). Wait for a better signal or add the address by hand.": "Location is inaccurate (±{accuracy} m). Wait for a better signal or add the address by hand.",
2646
+ "Score: {score} of {max}": "Score: {score} of {max}",
2647
+ "(weight {weight})": "(weight {weight})",
2648
+ "{points} point": "{points} point",
2649
+ "{points} points": "{points} points",
2650
+ "The connection dropped. It carries on from where it stopped.": "The connection dropped. It carries on from where it stopped.",
2651
+ "Resume": "Resume",
2652
+ "{done} {unit} of {total} {unit}": "{done} {unit} of {total} {unit}",
2653
+ "Reset": "Reset",
2654
+ "Timer": "Timer",
2655
+ "Close to the norm": "Close to the norm",
2656
+ "Over the norm": "Over the norm",
2657
+ "{elapsed} of {norm}": "{elapsed} of {norm}",
2658
+ "Enter minutes, or minutes and seconds as 04:23.": "Enter minutes, or minutes and seconds as 04:23.",
2659
+ "Rank": "Rank",
2660
+ "{column}, {row}": "{column}, {row}",
2661
+ "{cell}: empty": "{cell}: empty",
2662
+ "{cell}: {value}": "{cell}: {value}",
2613
2663
  "Keep this one": "Keep this one",
2614
2664
  "Keep the server one": "Keep the server one",
2615
2665
  "Conflict: which version do you keep?": "Conflict: which version do you keep?",
@@ -2617,7 +2667,22 @@
2617
2667
  "The conflicts could not be read.": "The conflicts could not be read.",
2618
2668
  "This choice was not saved.": "This choice was not saved.",
2619
2669
  "On this device: \"{value}\"": "On this device: \"{value}\"",
2620
- "On the server: \"{value}\"": "On the server: \"{value}\""
2670
+ "On the server: \"{value}\"": "On the server: \"{value}\"",
2671
+ "Hide": "Hide",
2672
+ "Hide {label}": "Hide {label}",
2673
+ "Why do you need to see this?": "Why do you need to see this?",
2674
+ "The value could not be shown. Try again later.": "The value could not be shown. Try again later.",
2675
+ "Add from a list": "Add from a list",
2676
+ "Scan or type a code": "Scan or type a code",
2677
+ "No record has the code {code}.": "No record has the code {code}.",
2678
+ "More than one record has the code {code}.": "More than one record has the code {code}.",
2679
+ "The code {code} could not be looked up.": "The code {code} could not be looked up.",
2680
+ "Added {name}.": "Added {name}.",
2681
+ "Insert variable": "Insert variable",
2682
+ "Unknown variable: {names}.": "Unknown variable: {names}.",
2683
+ "Unknown variables: {names}.": "Unknown variables: {names}.",
2684
+ "Remove {row}": "Remove {row}",
2685
+ "Removed {row}.": "Removed {row}."
2621
2686
  },
2622
2687
  "plurals": {
2623
2688
  "{count} member": [
package/l10n/nl.json CHANGED
@@ -1312,15 +1312,15 @@
1312
1312
  "Installed": "Geïnstalleerd",
1313
1313
  "Installed.": "Geïnstalleerd.",
1314
1314
  "Installing…": "Installeren…",
1315
- "No store registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.": "Er is geen winkelregister ingesteld, dus er is niets van het netwerk opgevraagd. Een beheerder kan er een koppelen in de beheerinstellingen.",
1315
+ "No marketplace registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.": "Er is geen marktplaatsregister ingesteld, dus er is niets van het netwerk opgevraagd. Een beheerder kan er een koppelen in de beheerinstellingen.",
1316
1316
  "Nothing matches that search": "Niets gevonden voor die zoekopdracht",
1317
- "Search the store": "Zoek in de store",
1317
+ "Search the marketplace": "Zoek in de marktplaats",
1318
1318
  "All items": "Alle",
1319
1319
  "Some parts were not installed: {schemas}": "Sommige onderdelen zijn niet geïnstalleerd: {schemas}",
1320
- "Store": "Winkel",
1320
+ "Marketplace": "Marktplaats",
1321
1321
  "The item could not be installed.": "Het item kon niet worden geïnstalleerd.",
1322
1322
  "The items below ship with this app.": "De items hieronder worden met deze app meegeleverd.",
1323
- "The store registry did not answer.": "Het winkelregister gaf geen antwoord.",
1323
+ "The marketplace registry did not answer.": "Het marktplaatsregister gaf geen antwoord.",
1324
1324
  "Try a different term, or clear the kind filter.": "Probeer een andere zoekterm of wis het soortfilter.",
1325
1325
  "Version {version}": "Versie {version}",
1326
1326
  "App template": "App-sjabloon",
@@ -2789,8 +2789,8 @@
2789
2789
  "Could not save. Your text is kept here; it is saved again when you type.": "Opslaan is mislukt. Je tekst blijft hier staan en wordt opnieuw opgeslagen zodra je typt.",
2790
2790
  "Skip this step": "Deze stap overslaan",
2791
2791
  "{label} (optional)": "{label} (optioneel)",
2792
- "Installed from this store": "Geïnstalleerd uit deze store",
2793
- "Nothing from this store is installed yet.": "Er is nog niets uit deze store geïnstalleerd.",
2792
+ "Installed from this marketplace": "Geïnstalleerd uit deze marktplaats",
2793
+ "Nothing from this marketplace is installed yet.": "Er is nog niets uit deze marktplaats geïnstalleerd.",
2794
2794
  "Updates": "Updates",
2795
2795
  "Everything is up to date.": "Alles is bijgewerkt.",
2796
2796
  "Check now": "Nu controleren",
@@ -2798,20 +2798,20 @@
2798
2798
  "Updates available": "Updates beschikbaar",
2799
2799
  "{items} ship with the app. They show here when no registry is connected.": "{items} komen mee met de app. Ze staan hier als er geen registry is gekoppeld.",
2800
2800
  "Version {version}, {latest} is out": "Versie {version}, {latest} is uit",
2801
- "No store registry is configured. An administrator connects one under Administration settings.": "Er is geen store-registry ingesteld. Een beheerder koppelt er een onder Beheerinstellingen.",
2801
+ "No marketplace registry is configured. An administrator connects one under Administration settings.": "Er is geen marktplaats-registry ingesteld. Een beheerder koppelt er een onder Beheerinstellingen.",
2802
2802
  "Nothing of this kind on this instance yet.": "Hier is nog niets van deze soort.",
2803
- "Publish to the store": "Publiceren in de store",
2804
- "Published to the store.": "Gepubliceerd in de store.",
2803
+ "Publish to the marketplace": "Publiceren in de marktplaats",
2804
+ "Published to the marketplace.": "Gepubliceerd in de marktplaats.",
2805
2805
  "Publisher": "Uitgever",
2806
2806
  "Publishing…": "Publiceren…",
2807
2807
  "Share a template built from your own configuration with the registry.": "Deel een sjabloon uit je eigen inrichting met de registry.",
2808
2808
  "The item could not be published.": "Het item kon niet worden gepubliceerd.",
2809
2809
  "The item is too large to publish.": "Het item is te groot om te publiceren.",
2810
- "The store registry did not answer. Try again later.": "De store-registry antwoordde niet. Probeer het later opnieuw.",
2811
- "The store registry is busy. Try again in a minute.": "De store-registry is bezig. Probeer het over een minuut opnieuw.",
2812
- "The store registry refused the item.": "De store-registry weigerde het item.",
2810
+ "The marketplace registry did not answer. Try again later.": "De marktplaats-registry antwoordde niet. Probeer het later opnieuw.",
2811
+ "The marketplace registry is busy. Try again in a minute.": "De marktplaats-registry is bezig. Probeer het over een minuut opnieuw.",
2812
+ "The marketplace registry refused the item.": "De marktplaats-registry weigerde het item.",
2813
2813
  "What the template carries": "Wat het sjabloon meeneemt",
2814
- "You may not publish to this store.": "Je mag niet publiceren in deze store.",
2814
+ "You may not publish to this marketplace.": "Je mag niet publiceren in deze marktplaats.",
2815
2815
  "Move {name}": "{name} verplaatsen",
2816
2816
  "Filter on {name}": "Filteren op {name}",
2817
2817
  "(empty)": "(leeg)",
@@ -2875,6 +2875,56 @@
2875
2875
  "Condition": "Voorwaarde",
2876
2876
  "These conditions are kept as written": "Deze voorwaarden blijven zoals ze zijn geschreven",
2877
2877
  "This group has no conditions yet.": "Deze groep heeft nog geen voorwaarden.",
2878
+ "Add block": "Blok toevoegen",
2879
+ "Block type": "Soort blok",
2880
+ "Blocks": "Blokken",
2881
+ "No blocks yet.": "Nog geen blokken.",
2882
+ "Drag to change the order": "Sleep om de volgorde te wijzigen",
2883
+ "Keep": "Bewaren",
2884
+ "Draft kept.": "Concept bewaard.",
2885
+ "Draft discarded.": "Concept weggegooid.",
2886
+ "Block removed.": "Blok verwijderd.",
2887
+ "{type} block added at position {position}.": "Blok {type} toegevoegd op positie {position}.",
2888
+ "Block moved to position {position} of {total}.": "Blok verplaatst naar positie {position} van {total}.",
2889
+ "Block {position} is still a draft. Keep or discard it first.": "Blok {position} is nog een concept. Bewaar of verwijder het eerst.",
2890
+ "{action}: {type} block {position}": "{action}: blok {type} {position}",
2891
+ "This text is too long for a QR code.": "Deze tekst is te lang voor een QR-code.",
2892
+ "This code could not be refreshed and may no longer work.": "Deze code kon niet worden vernieuwd en werkt misschien niet meer.",
2893
+ "QR code for: {label}": "QR-code voor: {label}",
2894
+ "QR code": "QR-code",
2895
+ "Changes in {seconds} s": "Verandert over {seconds} s",
2896
+ "updated at {time}": "bijgewerkt om {time}",
2897
+ "Cannot reach the server. This shows what it knew at {time}.": "De server is niet bereikbaar. Dit is de stand van {time}.",
2898
+ "Cannot reach the server. This may be out of date.": "De server is niet bereikbaar. Dit kan verouderd zijn.",
2899
+ "Nothing to set yet.": "Nog niets in te stellen.",
2900
+ "Nothing to choose from.": "Niets om uit te kiezen.",
2901
+ "Time left: {time}": "Resterende tijd: {time}",
2902
+ "Start timer": "Timer starten",
2903
+ "Stop timer": "Timer stoppen",
2904
+ "Drag to reorder": "Sleep om te ordenen",
2905
+ "{action}: {label}": "{action}: {label}",
2906
+ "{label} moved to position {position} of {total}.": "{label} verplaatst naar positie {position} van {total}.",
2907
+ "Address (by hand)": "Adres (handmatig)",
2908
+ "Looking for your location…": "Je locatie wordt gezocht…",
2909
+ "No location found. You can carry on, or add the address by hand.": "Geen locatie gevonden. Je kunt doorgaan, of het adres handmatig toevoegen.",
2910
+ "Location is inaccurate (±{accuracy} m). Wait for a better signal or add the address by hand.": "Locatie onnauwkeurig (±{accuracy} m). Wacht op beter signaal of voeg het adres handmatig toe.",
2911
+ "Score: {score} of {max}": "Score: {score} van {max}",
2912
+ "(weight {weight})": "(weging {weight})",
2913
+ "{points} point": "{points} punt",
2914
+ "{points} points": "{points} punten",
2915
+ "The connection dropped. It carries on from where it stopped.": "De verbinding viel weg. Het gaat verder waar het was.",
2916
+ "Resume": "Hervatten",
2917
+ "{done} {unit} of {total} {unit}": "{done} {unit} van {total} {unit}",
2918
+ "Reset": "Reset",
2919
+ "Timer": "Timer",
2920
+ "Close to the norm": "Bijna aan de norm",
2921
+ "Over the norm": "Over de norm",
2922
+ "{elapsed} of {norm}": "{elapsed} van {norm}",
2923
+ "Enter minutes, or minutes and seconds as 04:23.": "Vul minuten in, of minuten en seconden als 04:23.",
2924
+ "Rank": "Rang",
2925
+ "{column}, {row}": "{column}, {row}",
2926
+ "{cell}: empty": "{cell}: leeg",
2927
+ "{cell}: {value}": "{cell}: {value}",
2878
2928
  "Keep this one": "Deze houden",
2879
2929
  "Keep the server one": "Die van de server",
2880
2930
  "Conflict: which version do you keep?": "Conflict: welke versie houdt u?",
@@ -2882,7 +2932,22 @@
2882
2932
  "The conflicts could not be read.": "De conflicten konden niet worden gelezen.",
2883
2933
  "This choice was not saved.": "Deze keuze is niet opgeslagen.",
2884
2934
  "On this device: \"{value}\"": "Op dit toestel: \"{value}\"",
2885
- "On the server: \"{value}\"": "Op de server: \"{value}\""
2935
+ "On the server: \"{value}\"": "Op de server: \"{value}\"",
2936
+ "Hide": "Verbergen",
2937
+ "Hide {label}": "{label} verbergen",
2938
+ "Why do you need to see this?": "Waarom wil je dit zien?",
2939
+ "The value could not be shown. Try again later.": "De waarde kon niet worden getoond. Probeer het later opnieuw.",
2940
+ "Add from a list": "Toevoegen uit een lijst",
2941
+ "Scan or type a code": "Scan of typ een code",
2942
+ "No record has the code {code}.": "Geen record heeft de code {code}.",
2943
+ "More than one record has the code {code}.": "Meer dan één record heeft de code {code}.",
2944
+ "The code {code} could not be looked up.": "De code {code} kon niet worden opgezocht.",
2945
+ "Added {name}.": "{name} toegevoegd.",
2946
+ "Insert variable": "Variabele invoegen",
2947
+ "Unknown variable: {names}.": "Onbekende variabele: {names}.",
2948
+ "Unknown variables: {names}.": "Onbekende variabelen: {names}.",
2949
+ "Remove {row}": "{row} verwijderen",
2950
+ "Removed {row}.": "{row} verwijderd."
2886
2951
  },
2887
2952
  "plurals": {
2888
2953
  "{count} member": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/nextcloud-vue",
3
- "version": "2.174.0",
3
+ "version": "2.176.1",
4
4
  "description": "Shared Vue component library for Conduction Nextcloud apps — complements @nextcloud/vue with higher-level components, OpenRegister integration, and NL Design System support",
5
5
  "homepage": "https://github.com/ConductionNL/nextcloud-vue#readme",
6
6
  "bugs": {
@@ -103,6 +103,35 @@
103
103
  :placeholder="fill(field.placeholder)"
104
104
  @search="(typed) => onSearch(field, typed)"
105
105
  @update:modelValue="(value) => setValue(field.field, value && typeof value === 'object' ? value.id : value)" />
106
+ <!-- Several items to tick, listed from the record or the config
107
+ (DqZaakDialogen "Documenten die meegaan"). -->
108
+ <fieldset v-else-if="field.type === 'checks'"
109
+ class="cn-action-dialog__checks"
110
+ :data-testid="`cn-action-dialog-checks-${field.field}`">
111
+ <legend class="cn-action-dialog__checks-legend">
112
+ {{ fill(field.label) || field.field }}
113
+ </legend>
114
+ <NcCheckboxRadioSwitch v-for="item in checkItems(field)"
115
+ :key="item.value"
116
+ :modelValue="checksValue(field).includes(item.value)"
117
+ type="checkbox"
118
+ @update:modelValue="(on) => setCheck(field, item.value, on)">
119
+ <span class="cn-action-dialog__checkbox-text">
120
+ <strong class="cn-action-dialog__checkbox-label">{{ item.label }}</strong>
121
+ <span v-if="item.secondary" class="cn-action-dialog__muted">{{ item.secondary }}</span>
122
+ </span>
123
+ </NcCheckboxRadioSwitch>
124
+ <span v-if="checkItems(field).length === 0" class="cn-action-dialog__muted">
125
+ {{ text(field.emptyText) || t('nextcloud-vue', 'Nothing to choose from.') }}
126
+ </span>
127
+ </fieldset>
128
+ <!-- One choice out of a few explained options (DqZaakSamenwerken
129
+ "Delen" or "Overdragen"). -->
130
+ <CnChoiceCards v-else-if="field.type === 'cards'"
131
+ :modelValue="cardsValue(field)"
132
+ :options="cardOptions(field)"
133
+ :label="fill(field.label) || field.field"
134
+ @update:modelValue="(value) => setValue(field.field, value)" />
106
135
  <!-- An optional select or text field: its label above the control,
107
136
  "(optional)" in grey after it (DqUwWachtrij "Sjabloon (niet
108
137
  verplicht)"). -->
@@ -126,7 +155,7 @@
126
155
  :label="text(field.label) || field.field"
127
156
  :placeholder="secretStored(field) ? t('nextcloud-vue', 'Stored. Type a new value to replace it.') : ''"
128
157
  @update:modelValue="(value) => setValue(field.field, value)" />
129
- <NcTextField v-else-if="field.type !== 'checkbox' && field.type !== 'search'"
158
+ <NcTextField v-else-if="!['checkbox', 'search', 'checks', 'cards'].includes(field.type)"
130
159
  :id="controlId(field)"
131
160
  :modelValue="values[field.field] || ''"
132
161
  :type="field.type === 'datetime' ? 'datetime-local' : (field.type === 'date' ? 'date' : 'text')"
@@ -173,7 +202,7 @@
173
202
  </div>
174
203
 
175
204
  <p v-else role="status" data-testid="cn-action-dialog-done">
176
- {{ text(config.doneText) || t('nextcloud-vue', 'Done') }}
205
+ {{ answerText || text(config.doneText) || t('nextcloud-vue', 'Done') }}
177
206
  </p>
178
207
 
179
208
  <template #actions>
@@ -208,6 +237,7 @@ import { fetchEndpointSource, interpolateUrlTokens } from '../../composables/use
208
237
  import { BUILT_IN_FORMATTERS } from '../../utils/builtInFormatters.js'
209
238
  import { fillTemplate } from '../../utils/fillTemplate.js'
210
239
  import { readPath } from '../../utils/readPath.js'
240
+ import { CnChoiceCards } from '../CnChoiceCards/index.js'
211
241
  import { CnDialog } from '../CnDialog/index.js'
212
242
  import { CnIcon } from '../CnIcon/index.js'
213
243
  import { CnSearchSelect } from '../CnSearchSelect/index.js'
@@ -256,7 +286,13 @@ let reasonSeq = 0
256
286
  * `excludeSelf`, and sends the chosen record's id. Every field's `label`,
257
287
  * `hint` and `placeholder` (search and select) are templates filled from the record.
258
288
  * An optional select or text field (`required: false`) draws its label above
259
- * the control with "(optional)" after it.
289
+ * the control with "(optional)" after it. A `checks` field ticks several
290
+ * items, listed in `options` or read off the record at `itemsPath`
291
+ * (`optionValue`, `optionLabel` and `optionSecondary` name their parts),
292
+ * starts on `default` (a list, or "all") and sends the ticked values as a
293
+ * list; required means at least one. A `cards` field is one choice out of
294
+ * `options` `[{ value, label, description? }]` drawn as cards, starting on
295
+ * `default`.
260
296
  * - `reason`: `{ label?, hint?, required?, field?, rows? }`: a text area; required by
261
297
  * default; sent as `field` (default `reason`). `rows` is its height in lines
262
298
  * (default 2; board DqBesluit draws 4).
@@ -264,16 +300,18 @@ let reasonSeq = 0
264
300
  * icon name in place of the variant's own ("LockOutline").
265
301
  * - `fieldsAfterNote`: true draws the fields after the reason and the note
266
302
  * instead of before them (DqArchiveren's checkbox at the end).
267
- * - `confirm`: `{ label, icon?, request?: { method?, url, body? }, action? }`.
303
+ * - `confirm`: `{ label, icon?, request?: { method?, url, body?, answerPath? }, action? }`.
268
304
  * `request` posts itself (`body` templates filled with the record and
269
305
  * `{reason}`); `action` dispatches a manifest action through the page.
306
+ * `answerPath` shows the text at that path of the answer once the act ran,
307
+ * in place of `doneText` (a lookup that says what it found).
270
308
  *
271
309
  * Tokens (`@objectId`, `@object.<field>`) resolve in every url.
272
310
  */
273
311
  export default {
274
312
  name: 'CnActionDialog',
275
313
 
276
- components: { CheckCircle, CircleOutline, CnDialog, CnFormField, CnIcon, CnSearchSelect, HelpCircleOutline, NcButton, NcCheckboxRadioSwitch, NcNoteCard, NcSelect, NcTextArea, NcTextField },
314
+ components: { CheckCircle, CircleOutline, CnChoiceCards, CnDialog, CnFormField, CnIcon, CnSearchSelect, HelpCircleOutline, NcButton, NcCheckboxRadioSwitch, NcNoteCard, NcSelect, NcTextArea, NcTextField },
277
315
 
278
316
  inject: {
279
317
  /** The host app's translate (CnAppRoot `cnTranslate`). */
@@ -329,6 +367,7 @@ export default {
329
367
  busy: false,
330
368
  refusal: '',
331
369
  done: false,
370
+ answerText: '',
332
371
  reasonId: `cn-action-dialog-reason-${++reasonSeq}`,
333
372
  fieldIdPrefix: `cn-action-dialog-field-${reasonSeq}`,
334
373
  }
@@ -464,7 +503,13 @@ export default {
464
503
  fieldValues() {
465
504
  const out = { ...this.values }
466
505
  for (const field of this.fields) {
467
- out[field.field] = field.type === 'checkbox' ? this.checkboxValue(field) : (this.values[field.field] ?? '')
506
+ if (field.type === 'checks') {
507
+ out[field.field] = this.checksValue(field)
508
+ } else if (field.type === 'cards') {
509
+ out[field.field] = this.cardsValue(field)
510
+ } else {
511
+ out[field.field] = field.type === 'checkbox' ? this.checkboxValue(field) : (this.values[field.field] ?? '')
512
+ }
468
513
  }
469
514
  return out
470
515
  },
@@ -485,6 +530,12 @@ export default {
485
530
  if (f.type === 'checkbox') {
486
531
  return f.required !== true || this.checkboxValue(f)
487
532
  }
533
+ if (f.type === 'checks') {
534
+ return f.required === false || this.checksValue(f).length > 0
535
+ }
536
+ if (f.type === 'cards') {
537
+ return f.required === false || String(this.cardsValue(f)) !== ''
538
+ }
488
539
  return f.required === false || this.secretStored(f) || String(this.values[f.field] ?? '').trim() !== ''
489
540
  })
490
541
  },
@@ -518,7 +569,7 @@ export default {
518
569
  * @return {boolean}
519
570
  */
520
571
  labelsOutside(field) {
521
- return field.required === false && !['checkbox', 'search', 'secret'].includes(field.type)
572
+ return field.required === false && !['checkbox', 'search', 'secret', 'checks', 'cards'].includes(field.type)
522
573
  },
523
574
 
524
575
  /**
@@ -587,6 +638,83 @@ export default {
587
638
  }
588
639
  },
589
640
 
641
+ /**
642
+ * The items of a checks field, from `options` or the record's `itemsPath`.
643
+ *
644
+ * @spec openspec/changes/action-dialog-checks-cards/specs/action-dialog-checks-cards/spec.md#requirement-a-field-ticks-several-items
645
+ * @param {object} field The field.
646
+ * @return {Array<{value: string, label: string, secondary: string}>}
647
+ */
648
+ checkItems(field) {
649
+ const listed = Array.isArray(field.options) ? field.options : readPath(this.record || {}, field.itemsPath || '')
650
+ return (Array.isArray(listed) ? listed : []).map((item) => {
651
+ if (item === null || typeof item !== 'object') {
652
+ return { value: String(item), label: String(item), secondary: '' }
653
+ }
654
+ return {
655
+ value: String(readPath(item, field.optionValue || 'value') ?? item.id ?? ''),
656
+ label: fillTemplate(field.optionLabel || '{label}', item),
657
+ secondary: field.optionSecondary ? fillTemplate(field.optionSecondary, item) : '',
658
+ }
659
+ }).filter((item) => item.value !== '')
660
+ },
661
+
662
+ /**
663
+ * The ticked values of a checks field: what the reader ticked, else its
664
+ * `default`, a list or "all".
665
+ *
666
+ * @spec openspec/changes/action-dialog-checks-cards/specs/action-dialog-checks-cards/spec.md#requirement-a-field-ticks-several-items
667
+ * @param {object} field The field.
668
+ * @return {Array<string>}
669
+ */
670
+ checksValue(field) {
671
+ if (Array.isArray(this.values[field.field])) {
672
+ return this.values[field.field]
673
+ }
674
+ if (field.default === 'all') {
675
+ return this.checkItems(field).map((item) => item.value)
676
+ }
677
+ return Array.isArray(field.default) ? field.default.map(String) : []
678
+ },
679
+
680
+ /**
681
+ * Tick or untick one item of a checks field.
682
+ *
683
+ * @param {object} field The field.
684
+ * @param {string} value The item's value.
685
+ * @param {boolean} on Ticked.
686
+ * @return {void}
687
+ */
688
+ setCheck(field, value, on) {
689
+ const others = this.checksValue(field).filter((held) => held !== value)
690
+ this.values = { ...this.values, [field.field]: on ? [...others, value] : others }
691
+ },
692
+
693
+ /**
694
+ * The options of a cards field, through the host translate.
695
+ *
696
+ * @spec openspec/changes/action-dialog-checks-cards/specs/action-dialog-checks-cards/spec.md#requirement-a-field-offers-one-choice-as-cards
697
+ * @param {object} field The field.
698
+ * @return {Array<object>}
699
+ */
700
+ cardOptions(field) {
701
+ return (Array.isArray(field.options) ? field.options : []).map((option) => ({
702
+ ...option,
703
+ label: this.text(option.label) || String(option.value),
704
+ description: this.text(option.description),
705
+ }))
706
+ },
707
+
708
+ /**
709
+ * The value of a cards field: what the reader chose, else its `default`.
710
+ *
711
+ * @param {object} field The field.
712
+ * @return {string}
713
+ */
714
+ cardsValue(field) {
715
+ return this.values[field.field] ?? field.default ?? ''
716
+ },
717
+
590
718
  /**
591
719
  * A checkbox field's state: what was ticked, else its `default`.
592
720
  *
@@ -774,7 +902,11 @@ export default {
774
902
  }
775
903
  Object.assign(body, values)
776
904
  const method = String(request.method || 'POST').toLowerCase()
777
- await axios[['post', 'put', 'patch', 'delete'].includes(method) ? method : 'post'](/^https?:\/\//i.test(url) ? url : generateUrl(url), body)
905
+ const answer = await axios[['post', 'put', 'patch', 'delete'].includes(method) ? method : 'post'](/^https?:\/\//i.test(url) ? url : generateUrl(url), body)
906
+ if (request.answerPath) {
907
+ const said = readPath(answer?.data, request.answerPath)
908
+ this.answerText = said === null || said === undefined ? '' : String(said)
909
+ }
778
910
  } else if (this.confirmConfig.action && typeof this.cnDispatchAction === 'function') {
779
911
  await this.cnDispatchAction({ ...this.confirmConfig.action, args: [...(this.confirmConfig.action.args || []), { ...this.fieldValues, reason }] })
780
912
  }
@@ -803,7 +935,7 @@ export default {
803
935
  }
804
936
  const values = { ...this.values }
805
937
  for (const field of this.fields) {
806
- if (field.valuePath && field.type !== 'secret' && !(field.field in values)) {
938
+ if (field.valuePath && !['secret', 'checks'].includes(field.type) && !(field.field in values)) {
807
939
  const value = readPath(this.record, field.valuePath)
808
940
  if (value !== null && value !== undefined) {
809
941
  values[field.field] = String(value)
@@ -1042,6 +1174,21 @@ export default {
1042
1174
  font-size: 13px;
1043
1175
  }
1044
1176
 
1177
+ .cn-action-dialog__checks {
1178
+ border: 0;
1179
+ display: flex;
1180
+ flex-direction: column;
1181
+ gap: 4px;
1182
+ margin: 0;
1183
+ padding: 0;
1184
+ }
1185
+
1186
+ .cn-action-dialog__checks-legend {
1187
+ font-weight: 600;
1188
+ margin-bottom: 4px;
1189
+ padding: 0;
1190
+ }
1191
+
1045
1192
  .cn-action-dialog__field {
1046
1193
  display: flex;
1047
1194
  flex-direction: column;