@conduction/nextcloud-vue 2.56.0-beta.70 → 2.56.0-beta.71

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 (38) hide show
  1. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  2. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +67 -1
  3. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  4. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  5. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +55 -6
  6. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
  7. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
  8. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +40 -1
  9. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  10. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  11. package/dist/esm/components/CnStorePage/CnStorePage.vue.js +1 -1
  12. package/dist/esm/components/CnStorePage/CnStorePage.vue2.js +3 -3
  13. package/dist/esm/components/CnStorePage/CnStorePage.vue2.js.map +1 -1
  14. package/dist/esm/components/CnStorePage/CnStorePage.vue3.js +5 -5
  15. package/dist/esm/components/CnStorePage/CnStorePage.vue3.js.map +1 -1
  16. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue.js +1 -1
  17. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue2.js +6 -6
  18. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue2.js.map +1 -1
  19. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue3.js +1 -1
  20. package/dist/esm/components/CnStorePage/CnStorePublishDialog.vue3.js.map +1 -1
  21. package/dist/esm/l10n/en.json.js +59 -59
  22. package/dist/esm/l10n/nl.json.js +59 -59
  23. package/dist/esm/library-style.js +1 -1
  24. package/dist/esm/nextcloud-vue.css +55 -55
  25. package/dist/esm/utils/parentCrumb.js +86 -0
  26. package/dist/esm/utils/parentCrumb.js.map +1 -0
  27. package/dist/nextcloud-vue.cjs.js +813 -576
  28. package/dist/nextcloud-vue.cjs.js.map +2 -2
  29. package/dist/nextcloud-vue.css +55 -55
  30. package/l10n/en.json +59 -59
  31. package/l10n/nl.json +59 -59
  32. package/package.json +1 -1
  33. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +67 -1
  34. package/src/components/CnDetailPage/CnDetailPage.vue +55 -6
  35. package/src/components/CnIndexPage/CnIndexPage.vue +40 -1
  36. package/src/components/CnStorePage/CnStorePage.vue +8 -8
  37. package/src/components/CnStorePage/CnStorePublishDialog.vue +7 -7
  38. package/src/utils/parentCrumb.js +83 -0
package/l10n/nl.json CHANGED
@@ -199,19 +199,6 @@
199
199
  "Ownership": "Eigendom",
200
200
  "Record archival metadata": "Archiefmetadata van het object",
201
201
  "Record state": "Archiefstatus",
202
- "Add block": "Blok toevoegen",
203
- "Block type": "Soort blok",
204
- "Blocks": "Blokken",
205
- "No blocks yet.": "Nog geen blokken.",
206
- "Drag to change the order": "Sleep om de volgorde te wijzigen",
207
- "Keep": "Bewaren",
208
- "Draft kept.": "Concept bewaard.",
209
- "Draft discarded.": "Concept weggegooid.",
210
- "Block removed.": "Blok verwijderd.",
211
- "{type} block added at position {position}.": "Blok {type} toegevoegd op positie {position}.",
212
- "Block moved to position {position} of {total}.": "Blok verplaatst naar positie {position} van {total}.",
213
- "Block {position} is still a draft. Keep or discard it first.": "Blok {position} is nog een concept. Bewaar of verwijder het eerst.",
214
- "{action}: {type} block {position}": "{action}: blok {type} {position}",
215
202
  "Recorded on the object": "Vastgelegd op het object",
216
203
  "Retention period": "Bewaartermijn",
217
204
  "Schema archival annotation": "Archiveringsannotatie van het schema",
@@ -512,11 +499,6 @@
512
499
  "Hostname": "Hostnaam",
513
500
  "ID": "ID",
514
501
  "ID / UUID:": "ID / UUID:",
515
- "This text is too long for a QR code.": "Deze tekst is te lang voor een QR-code.",
516
- "This code could not be refreshed and may no longer work.": "Deze code kon niet worden vernieuwd en werkt misschien niet meer.",
517
- "QR code for: {label}": "QR-code voor: {label}",
518
- "QR code": "QR-code",
519
- "Changes in {seconds} s": "Verandert over {seconds} s",
520
502
  "IDN email": "IDN e-mail",
521
503
  "image, document, audio, video": "afbeelding, document, audio, video",
522
504
  "IDN hostname": "IDN-hostnaam",
@@ -817,9 +799,6 @@
817
799
  "Title *": "Titel *",
818
800
  "Type": "Type",
819
801
  "Type to search…": "Typ om te zoeken…",
820
- "updated at {time}": "bijgewerkt om {time}",
821
- "Cannot reach the server. This shows what it knew at {time}.": "De server is niet bereikbaar. Dit is de stand van {time}.",
822
- "Cannot reach the server. This may be out of date.": "De server is niet bereikbaar. Dit kan verouderd zijn.",
823
802
  "Type value and press Enter": "Typ een waarde en druk op Enter",
824
803
  "(technical) Property name": "(technische) Eigenschapsnaam",
825
804
  "false — field must not exist": "false — veld mag niet bestaan",
@@ -920,7 +899,6 @@
920
899
  "Start new chat": "Nieuwe chat starten",
921
900
  "History": "Historie",
922
901
  "No audit entries yet": "Nog geen wijzigingen vastgelegd",
923
- "Nothing to set yet.": "Nog niets in te stellen.",
924
902
  "Meetings": "Afspraken",
925
903
  "No meetings": "Geen afspraken",
926
904
  "Open in Calendar": "Openen in Agenda",
@@ -1121,8 +1099,6 @@
1121
1099
  "Create new project": "Nieuw project aanmaken",
1122
1100
  "Search projects": "Projecten zoeken",
1123
1101
  "No projects available": "Geen projecten beschikbaar",
1124
- "Nothing to choose from.": "Niets om uit te kiezen.",
1125
- "Time left: {time}": "Resterende tijd: {time}",
1126
1102
  "Create a project in NC Costs first, or use the create dialog.": "Maak eerst een project aan in NC Kosten, of gebruik het aanmaakvenster.",
1127
1103
  "NC Costs is not installed.": "NC Kosten is niet geïnstalleerd.",
1128
1104
  "Link project": "Project koppelen",
@@ -1323,8 +1299,6 @@
1323
1299
  "This run recorded no steps.": "Deze uitvoering heeft geen stappen vastgelegd.",
1324
1300
  "Replay on the canvas": "Opnieuw afspelen op het canvas",
1325
1301
  "Add a step": "Een stap toevoegen",
1326
- "Start timer": "Timer starten",
1327
- "Stop timer": "Timer stoppen",
1328
1302
  "Version number. A semantic version appears once the flow is published.": "Versienummer. Een semantische versie verschijnt zodra de flow is gepubliceerd.",
1329
1303
  "Numbered when semantic versions were introduced, not derived from a comparison.": "Genummerd toen semantische versies werden ingevoerd, niet afgeleid uit een vergelijking.",
1330
1304
  "A major version means a step, a connection or a setting was removed.": "Een major versie betekent dat een stap, een verbinding of een instelling is verwijderd.",
@@ -1338,15 +1312,15 @@
1338
1312
  "Installed": "Geïnstalleerd",
1339
1313
  "Installed.": "Geïnstalleerd.",
1340
1314
  "Installing…": "Installeren…",
1341
- "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.",
1342
1316
  "Nothing matches that search": "Niets gevonden voor die zoekopdracht",
1343
- "Search the store": "Zoek in de store",
1317
+ "Search the marketplace": "Zoek in de marktplaats",
1344
1318
  "All items": "Alle",
1345
1319
  "Some parts were not installed: {schemas}": "Sommige onderdelen zijn niet geïnstalleerd: {schemas}",
1346
- "Store": "Winkel",
1320
+ "Marketplace": "Marktplaats",
1347
1321
  "The item could not be installed.": "Het item kon niet worden geïnstalleerd.",
1348
1322
  "The items below ship with this app.": "De items hieronder worden met deze app meegeleverd.",
1349
- "The store registry did not answer.": "Het winkelregister gaf geen antwoord.",
1323
+ "The marketplace registry did not answer.": "Het marktplaatsregister gaf geen antwoord.",
1350
1324
  "Try a different term, or clear the kind filter.": "Probeer een andere zoekterm of wis het soortfilter.",
1351
1325
  "Version {version}": "Versie {version}",
1352
1326
  "App template": "App-sjabloon",
@@ -1425,9 +1399,6 @@
1425
1399
  "Show capabilities": "Toon functionaliteiten",
1426
1400
  "Provided by": "Geleverd door",
1427
1401
  "this app": "deze app",
1428
- "Drag to reorder": "Sleep om te ordenen",
1429
- "{action}: {label}": "{action}: {label}",
1430
- "{label} moved to position {position} of {total}.": "{label} verplaatst naar positie {position} van {total}.",
1431
1402
  "another app": "andere app",
1432
1403
  "the platform": "het platform",
1433
1404
  "We matched this row to its feature by judgement.": "Wij hebben deze rij op inschatting aan een functie gekoppeld.",
@@ -1528,10 +1499,6 @@
1528
1499
  "Unpin {column}": "{column} losmaken",
1529
1500
  "Reset columns": "Kolommen herstellen",
1530
1501
  "Open the copy": "De kopie openen",
1531
- "Address (by hand)": "Adres (handmatig)",
1532
- "Looking for your location…": "Je locatie wordt gezocht…",
1533
- "No location found. You can carry on, or add the address by hand.": "Geen locatie gevonden. Je kunt doorgaan, of het adres handmatig toevoegen.",
1534
- "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.",
1535
1502
  "{title} was not linked: {reason}": "{title} is niet gekoppeld: {reason}",
1536
1503
  "no reason given": "geen reden opgegeven",
1537
1504
  "Links to take along": "Koppelingen meenemen",
@@ -1731,14 +1698,7 @@
1731
1698
  "Action completed.": "Actie uitgevoerd.",
1732
1699
  "Run queued": "Run staat in de wachtrij",
1733
1700
  "Agent runtime unavailable": "De agent-runtime is niet beschikbaar",
1734
- "Score: {score} of {max}": "Score: {score} van {max}",
1735
- "(weight {weight})": "(weging {weight})",
1736
- "{points} point": "{points} punt",
1737
- "{points} points": "{points} punten",
1738
1701
  "Run completed.": "Run voltooid.",
1739
- "The connection dropped. It carries on from where it stopped.": "De verbinding viel weg. Het gaat verder waar het was.",
1740
- "Resume": "Hervatten",
1741
- "{done} {unit} of {total} {unit}": "{done} {unit} van {total} {unit}",
1742
1702
  "Edit with Buildiq": "Bewerken met Buildiq",
1743
1703
  "Save page": "Pagina opslaan",
1744
1704
  "Edit in Buildiq": "Bewerken in Buildiq",
@@ -2154,12 +2114,6 @@
2154
2114
  "You are not allowed to see this plan.": "Je mag dit plan niet zien.",
2155
2115
  "The plan could not be loaded. Try again.": "Het plan kon niet worden geladen. Probeer het opnieuw.",
2156
2116
  "Start": "Starten",
2157
- "Reset": "Reset",
2158
- "Timer": "Timer",
2159
- "Close to the norm": "Bijna aan de norm",
2160
- "Over the norm": "Over de norm",
2161
- "{elapsed} of {norm}": "{elapsed} van {norm}",
2162
- "Enter minutes, or minutes and seconds as 04:23.": "Vul minuten in, of minuten en seconden als 04:23.",
2163
2117
  "Stop": "Stoppen",
2164
2118
  "Can start": "Kan starten",
2165
2119
  "Stopped": "Gestopt",
@@ -2835,8 +2789,8 @@
2835
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.",
2836
2790
  "Skip this step": "Deze stap overslaan",
2837
2791
  "{label} (optional)": "{label} (optioneel)",
2838
- "Installed from this store": "Geïnstalleerd uit deze store",
2839
- "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.",
2840
2794
  "Updates": "Updates",
2841
2795
  "Everything is up to date.": "Alles is bijgewerkt.",
2842
2796
  "Check now": "Nu controleren",
@@ -2844,20 +2798,20 @@
2844
2798
  "Updates available": "Updates beschikbaar",
2845
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.",
2846
2800
  "Version {version}, {latest} is out": "Versie {version}, {latest} is uit",
2847
- "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.",
2848
2802
  "Nothing of this kind on this instance yet.": "Hier is nog niets van deze soort.",
2849
- "Publish to the store": "Publiceren in de store",
2850
- "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.",
2851
2805
  "Publisher": "Uitgever",
2852
2806
  "Publishing…": "Publiceren…",
2853
2807
  "Share a template built from your own configuration with the registry.": "Deel een sjabloon uit je eigen inrichting met de registry.",
2854
2808
  "The item could not be published.": "Het item kon niet worden gepubliceerd.",
2855
2809
  "The item is too large to publish.": "Het item is te groot om te publiceren.",
2856
- "The store registry did not answer. Try again later.": "De store-registry antwoordde niet. Probeer het later opnieuw.",
2857
- "The store registry is busy. Try again in a minute.": "De store-registry is bezig. Probeer het over een minuut opnieuw.",
2858
- "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.",
2859
2813
  "What the template carries": "Wat het sjabloon meeneemt",
2860
- "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.",
2861
2815
  "Move {name}": "{name} verplaatsen",
2862
2816
  "Filter on {name}": "Filteren op {name}",
2863
2817
  "(empty)": "(leeg)",
@@ -2921,6 +2875,52 @@
2921
2875
  "Condition": "Voorwaarde",
2922
2876
  "These conditions are kept as written": "Deze voorwaarden blijven zoals ze zijn geschreven",
2923
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
2924
  "Rank": "Rang",
2925
2925
  "Keep this one": "Deze houden",
2926
2926
  "Keep the server one": "Die van de server",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/nextcloud-vue",
3
- "version": "2.56.0-beta.70",
3
+ "version": "2.56.0-beta.71",
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": {
@@ -354,6 +354,8 @@ function clockOf(seconds) {
354
354
  * follows that moment rather than the page's start, so a reload keeps it. At
355
355
  * zero the page is saved and the run finishes. `submitLabel` adds a button
356
356
  * that finishes from any page, and `savedText` says so while nothing is unsaved.
357
+ * `saveEachAnswer: true` (or a wait in ms) saves each answer a moment after
358
+ * it is given instead of when the user moves on.
357
359
  *
358
360
  * `noteWhen: { answers: [...] }` shows a question's note field only once its
359
361
  * answer is one of those stored values (the board shows a note under "Nee"),
@@ -402,7 +404,8 @@ export default {
402
404
  * answers | answersPath, answerKey?, answerFields?, recordPhotosField?,
403
405
  * record?, saveAction?, finishAction?, pageSize?, allowNote?, noteWhen?,
404
406
  * allowPhotos?, caption?, emptyText?, deadlineField?, serverNowField?,
405
- * timeLeftText?, timeWarningSeconds?, savedText?, submitLabel? }`, as in the component
407
+ * timeLeftText?, timeWarningSeconds?, savedText?, submitLabel?,
408
+ * saveEachAnswer? }`, as in the component
406
409
  * description and docs/components/cn-checklist-run-widget.md.
407
410
  *
408
411
  * @type {object}
@@ -471,11 +474,29 @@ export default {
471
474
  now: Date.now(),
472
475
  recordReadAt: Date.now(),
473
476
  deadlineTimer: null,
477
+ // `saveEachAnswer`: the pending save, and the save that runs now.
478
+ answerSaveTimer: null,
479
+ pageSave: null,
474
480
  finishedRun: false,
475
481
  }
476
482
  },
477
483
 
478
484
  computed: {
485
+ /**
486
+ * The wait before an answer saves on its own (`saveEachAnswer`: `true`
487
+ * waits 800 ms, a number that many ms), or null to save on moving on.
488
+ *
489
+ * @return {number|null}
490
+ * @spec openspec/changes/checklist-run-save-each-answer/specs/checklist-run-widget/spec.md#requirement-a-run-can-save-each-answer-as-it-is-given
491
+ */
492
+ answerSaveDelay() {
493
+ const option = this.content?.saveEachAnswer
494
+ if (option === true) {
495
+ return 800
496
+ }
497
+ return typeof option === 'number' && option >= 0 ? option : null
498
+ },
499
+
479
500
  /** @return {object} What the tokens resolve against. */
480
501
  tokenCtx() {
481
502
  const unwrap = (c) => (c && typeof c === 'object' && 'value' in c ? c.value : c)
@@ -785,6 +806,11 @@ export default {
785
806
 
786
807
  beforeUnmount() {
787
808
  clearInterval(this.deadlineTimer)
809
+ if (this.answerSaveTimer) {
810
+ clearTimeout(this.answerSaveTimer)
811
+ this.answerSaveTimer = null
812
+ this.savePage()
813
+ }
788
814
  },
789
815
 
790
816
  methods: {
@@ -1142,6 +1168,26 @@ export default {
1142
1168
  this.dirty = { ...this.dirty, [id]: true }
1143
1169
  this.missing = this.missing.filter((m) => m !== id)
1144
1170
  this.startLocating(id)
1171
+ this.scheduleAnswerSave()
1172
+ },
1173
+
1174
+ /**
1175
+ * With `saveEachAnswer`, save the page a moment after the last change,
1176
+ * so typing saves once and a quick run of answers saves together.
1177
+ *
1178
+ * @return {void}
1179
+ * @spec openspec/changes/checklist-run-save-each-answer/specs/checklist-run-widget/spec.md#requirement-a-run-can-save-each-answer-as-it-is-given
1180
+ */
1181
+ scheduleAnswerSave() {
1182
+ const delay = this.answerSaveDelay
1183
+ if (delay === null) {
1184
+ return
1185
+ }
1186
+ clearTimeout(this.answerSaveTimer)
1187
+ this.answerSaveTimer = setTimeout(() => {
1188
+ this.answerSaveTimer = null
1189
+ this.savePage()
1190
+ }, delay)
1145
1191
  },
1146
1192
 
1147
1193
  /**
@@ -1174,6 +1220,7 @@ export default {
1174
1220
  setLocation(id, location) {
1175
1221
  this.draft[id].location = location
1176
1222
  this.dirty = { ...this.dirty, [id]: true }
1223
+ this.scheduleAnswerSave()
1177
1224
  },
1178
1225
 
1179
1226
  /**
@@ -1205,6 +1252,7 @@ export default {
1205
1252
  }
1206
1253
  this.photos = { ...this.photos, [id]: [...(this.photos[id] || []), ...files] }
1207
1254
  this.dirty = { ...this.dirty, [id]: true }
1255
+ this.scheduleAnswerSave()
1208
1256
  this.missingPhoto = this.missingPhoto.filter((m) => m !== id)
1209
1257
  if (event.target) {
1210
1258
  event.target.value = ''
@@ -1220,6 +1268,24 @@ export default {
1220
1268
  * @spec openspec/changes/checklist-run-widget/specs/checklist-run-widget/spec.md#requirement-answers-are-saved-under-the-readers-own-rights
1221
1269
  */
1222
1270
  async savePage() {
1271
+ // One save at a time, so an answer is never created twice.
1272
+ while (this.pageSave) {
1273
+ await this.pageSave
1274
+ }
1275
+ this.pageSave = this.savePageNow()
1276
+ try {
1277
+ return await this.pageSave
1278
+ } finally {
1279
+ this.pageSave = null
1280
+ }
1281
+ },
1282
+
1283
+ /**
1284
+ * Save the changed answers of this page now (see `savePage`).
1285
+ *
1286
+ * @return {Promise<boolean>} True when everything saved.
1287
+ */
1288
+ async savePageNow() {
1223
1289
  const changed = this.pageQuestions.filter((q) => this.dirty[q.id])
1224
1290
  if (changed.length === 0) {
1225
1291
  return true
@@ -1466,6 +1466,7 @@ import { prefixUrl } from '../../utils/headers.js'
1466
1466
  import { HEADING_LEVEL } from '../../utils/headingLevel.js'
1467
1467
  import { interpolateUrlTokens } from '../../utils/interpolateUrlTokens.js'
1468
1468
  import { followLinkClick } from '../../utils/linkNavigation.js'
1469
+ import { parentCrumb } from '../../utils/parentCrumb.js'
1469
1470
  import { patchStoredSelf } from '../../utils/patchStoredSelf.js'
1470
1471
  import { setReadState } from '../../utils/recordInteractions.js'
1471
1472
  import { saveEdited } from '../../utils/saveEdited.js'
@@ -2448,6 +2449,24 @@ export default {
2448
2449
  default: false,
2449
2450
  },
2450
2451
 
2452
+ /**
2453
+ * A condition on the record, in the `visibleWhen` grammar (manifest
2454
+ * `config.readOnlyWhen`): while it holds, the page treats the record
2455
+ * as one it may not update, as with `can.update` false. The Edit
2456
+ * button, the header actions with role `edit` or `update` and the
2457
+ * inline editors are off. `{ field: "mergedInto", op: "notEmpty" }`
2458
+ * keeps a record merged into another from being edited. It is decided
2459
+ * on the page (no `endpoint` or `source`) and may read the
2460
+ * `visibilityContext` records as `@context.<name>.<path>`. Null
2461
+ * (the default) changes nothing.
2462
+ *
2463
+ * @spec openspec/changes/detail-read-only-when/specs/detail-page/spec.md#requirement-a-detail-page-can-make-a-record-read-only-by-a-condition
2464
+ */
2465
+ readOnlyWhen: {
2466
+ type: Object,
2467
+ default: null,
2468
+ },
2469
+
2451
2470
  /**
2452
2471
  * Hide valueless fields on the auto-rendered data widget, instead of
2453
2472
  * showing them with an em dash. See `CnObjectDataWidget`'s `hide-empty`.
@@ -3033,8 +3052,12 @@ export default {
3033
3052
  * @spec openspec/changes/zuiddrecht-pixel-gaps-3/specs/zuiddrecht-pixel-gaps-3/spec.md#requirement-a-breadcrumb-can-name-the-record-by-a-field-and-use-a-text-separator
3034
3053
  * A list of such crumbs draws a deeper trail ("Settings / Case types /"
3035
3054
  * and then the record); `currentField` and `separator` may sit on any
3036
- * of them.
3055
+ * of them. A crumb with `parent` (a `visibilityContext` name) instead
3056
+ * of `label` is the record's parent: its `labelField` value (else its
3057
+ * name), linked by `route` + `param` (default `id`) or `href` with
3058
+ * `{id}`; it drops out when the record has no parent.
3037
3059
  *
3060
+ * @spec openspec/changes/detail-parent-crumb/specs/detail-page/spec.md#requirement-a-sub-record-trail-can-show-its-parent-record
3038
3061
  * @spec openspec/changes/detail-breadcrumb-trail/specs/detail-page/spec.md#requirement-a-record-page-breadcrumb-can-name-more-than-one-level
3039
3062
  * @type {{label: string, route?: string, params?: object, href?: string, icon?: string, currentField?: string, separator?: string}|Array<object>|null}
3040
3063
  */
@@ -5586,13 +5609,30 @@ export default {
5586
5609
  },
5587
5610
 
5588
5611
  /**
5589
- * Whether the record refuses this reader's updates (`can.update === false`).
5612
+ * Whether the record refuses this reader's updates (`can.update === false`),
5613
+ * or the page's `readOnlyWhen` holds for it.
5590
5614
  *
5591
5615
  * @return {boolean}
5592
5616
  * @spec openspec/changes/detail-page-record-rights/specs/detail-page-record-rights/spec.md#requirement-edit-controls-follow-the-records-update-right
5593
5617
  */
5594
5618
  recordUpdateDenied() {
5595
- return Boolean(this.recordCan && this.recordCan.update === false)
5619
+ return Boolean(this.recordCan && this.recordCan.update === false) || this.readOnlyByCondition
5620
+ },
5621
+
5622
+ /**
5623
+ * Whether the page's `readOnlyWhen` holds for the record (and its
5624
+ * `visibilityContext` records). False without the option, and while
5625
+ * the record or those records are still on their way.
5626
+ *
5627
+ * @return {boolean}
5628
+ * @spec openspec/changes/detail-read-only-when/specs/detail-page/spec.md#requirement-a-detail-page-can-make-a-record-read-only-by-a-condition
5629
+ */
5630
+ readOnlyByCondition() {
5631
+ const when = this.readOnlyWhen
5632
+ if (!when || typeof when !== 'object' || !this.widgetVisibilityData || this.visibilityRowsPending) {
5633
+ return false
5634
+ }
5635
+ return detailWidgetVisible({ visibleWhen: when }, this.widgetVisibilityData)
5596
5636
  },
5597
5637
 
5598
5638
  /**
@@ -5657,7 +5697,7 @@ export default {
5657
5697
  */
5658
5698
  declaredCrumbs() {
5659
5699
  const list = Array.isArray(this.breadcrumb) ? this.breadcrumb : (this.breadcrumb ? [this.breadcrumb] : [])
5660
- return list.filter((crumb) => crumb && typeof crumb.label === 'string' && crumb.label !== ''
5700
+ return list.filter((crumb) => crumb && ((typeof crumb.label === 'string' && crumb.label !== '') || (typeof crumb.parent === 'string' && crumb.parent !== ''))
5661
5701
  && (!crumb.visibleWhen || detailWidgetVisible({ visibleWhen: crumb.visibleWhen }, this.widgetVisibilityData)))
5662
5702
  },
5663
5703
 
@@ -5665,11 +5705,14 @@ export default {
5665
5705
  * The breadcrumb trail: the declared crumbs (each a router target from
5666
5706
  * `route` + `params`, or an `href`), then the record's display name
5667
5707
  * as the current crumb. Empty without a declared crumb. A crumb
5668
- * carries `icon` only when the manifest declares one.
5708
+ * carries `icon` only when the manifest declares one. A crumb with
5709
+ * `parent` is the record's parent (see `parentCrumb`) and drops out
5710
+ * when the record has none.
5669
5711
  *
5670
5712
  * @spec openspec/changes/zuiddrecht-pixel-gaps/specs/zuiddrecht-pixel-gaps/spec.md#requirement-a-detail-page-drops-its-eyebrow-and-shows-a-breadcrumb
5671
5713
  * @spec openspec/changes/zuiddrecht-pixel-gaps-2/specs/zuiddrecht-pixel-gaps-2/spec.md#requirement-a-declared-breadcrumb-label-shows-as-text
5672
5714
  * @spec openspec/changes/detail-breadcrumb-trail/specs/detail-page/spec.md#requirement-a-record-page-breadcrumb-can-name-more-than-one-level
5715
+ * @spec openspec/changes/detail-parent-crumb/specs/detail-page/spec.md#requirement-a-sub-record-trail-can-show-its-parent-record
5673
5716
  * @return {Array<{label: string, to?: object, href?: string, icon?: string}>}
5674
5717
  */
5675
5718
  breadcrumbCrumbs() {
@@ -5677,6 +5720,9 @@ export default {
5677
5720
  return []
5678
5721
  }
5679
5722
  const crumbs = this.declaredCrumbs.map((crumb) => {
5723
+ if (typeof crumb.parent === 'string' && crumb.parent !== '') {
5724
+ return parentCrumb(crumb, this.visibilityRefs, this.visibilityRows, this.effectiveTranslate)
5725
+ }
5680
5726
  const entry = { label: this.effectiveTranslate(crumb.label) }
5681
5727
  if (typeof crumb.icon === 'string' && crumb.icon !== '') {
5682
5728
  entry.icon = crumb.icon
@@ -5687,7 +5733,10 @@ export default {
5687
5733
  entry.href = crumb.href
5688
5734
  }
5689
5735
  return entry
5690
- })
5736
+ }).filter((crumb) => crumb !== null)
5737
+ if (crumbs.length === 0) {
5738
+ return []
5739
+ }
5691
5740
  return [...crumbs, { label: this.breadcrumbCurrentLabel }]
5692
5741
  },
5693
5742
 
@@ -2358,6 +2358,21 @@ export default {
2358
2358
  default: null,
2359
2359
  },
2360
2360
 
2361
+ /**
2362
+ * Text added to the count line after a middle dot while a quick filter
2363
+ * or lens is selected (manifest `config.countSuffixByFilter`),
2364
+ * `{ <tab id or label>: text }`: a lens that sorts by waiting time
2365
+ * says "longest waiting first". A quick filter tab can also carry
2366
+ * its own `countSuffix`, which comes first. The text goes through the
2367
+ * host translate function. Null (the default) adds nothing.
2368
+ *
2369
+ * @spec openspec/changes/index-count-suffix-per-filter/specs/index-page/spec.md#requirement-the-count-line-can-say-what-the-selected-quick-filter-does
2370
+ */
2371
+ countSuffixByFilter: {
2372
+ type: Object,
2373
+ default: null,
2374
+ },
2375
+
2361
2376
  /**
2362
2377
  * The property keys the card's facts list shows, in order (manifest key
2363
2378
  * `config.cardFields`). Without it the board look shows the first four
@@ -9276,7 +9291,8 @@ export default {
9276
9291
  * @return {string}
9277
9292
  */
9278
9293
  headerDescription() {
9279
- const base = this.headerDescriptionBase
9294
+ const suffix = this.quickFilterCountSuffix
9295
+ const base = suffix && this.headerDescriptionBase ? `${this.headerDescriptionBase} · ${suffix}` : this.headerDescriptionBase
9280
9296
  if (this.currentViewMode !== 'map' || !this.mapListEnabled) {
9281
9297
  return base
9282
9298
  }
@@ -9298,6 +9314,29 @@ export default {
9298
9314
  return active || this.quickFilterNarrows
9299
9315
  },
9300
9316
 
9317
+ /**
9318
+ * The count line text of the selected quick filters or lenses: each
9319
+ * tab's `countSuffix`, else its entry in `countSuffixByFilter` (by
9320
+ * id, then by label), translated and joined by a middle dot.
9321
+ *
9322
+ * @return {string}
9323
+ * @spec openspec/changes/index-count-suffix-per-filter/specs/index-page/spec.md#requirement-the-count-line-can-say-what-the-selected-quick-filter-does
9324
+ */
9325
+ quickFilterCountSuffix() {
9326
+ const tabs = this.tabStripEntries || []
9327
+ const byFilter = this.countSuffixByFilter && typeof this.countSuffixByFilter === 'object' ? this.countSuffixByFilter : {}
9328
+ const indices = this.quickFilterMultiple
9329
+ ? (this.selectedQuickFilterIndices || [])
9330
+ : [this.activeQuickFilterIndex]
9331
+ return indices
9332
+ .map((index) => (typeof index === 'number' ? tabs[index] : null))
9333
+ .filter(Boolean)
9334
+ .map((tab) => [tab.countSuffix, byFilter[tab.id], byFilter[tab.label]].find((text) => typeof text === 'string' && text !== ''))
9335
+ .filter(Boolean)
9336
+ .map((text) => this.cnTranslate(text))
9337
+ .join(' · ')
9338
+ },
9339
+
9301
9340
  /**
9302
9341
  * Whether a selected quick filter tab carries a filter (an "All" tab
9303
9342
  * does not).
@@ -114,8 +114,8 @@
114
114
  v-model="query"
115
115
  type="search"
116
116
  class="cn-store-page__lens-search-input"
117
- :placeholder="t('nextcloud-vue', 'Search the store')"
118
- :aria-label="t('nextcloud-vue', 'Search the store')"
117
+ :placeholder="t('nextcloud-vue', 'Search the marketplace')"
118
+ :aria-label="t('nextcloud-vue', 'Search the marketplace')"
119
119
  :disabled="offline"
120
120
  data-testid="store-search"
121
121
  @input="onSearchInput">
@@ -124,7 +124,7 @@
124
124
  <div v-else class="cn-store-page__controls">
125
125
  <NcTextField
126
126
  v-model="query"
127
- :label="t('nextcloud-vue', 'Search the store')"
127
+ :label="t('nextcloud-vue', 'Search the marketplace')"
128
128
  :disabled="offline"
129
129
  data-testid="store-search"
130
130
  @update:modelValue="onSearchInput" />
@@ -294,10 +294,10 @@
294
294
  <aside v-if="isBoardLook && !loading && !offline && !unreachable" class="cn-store-page__aside">
295
295
  <section class="cn-store-page__side-card" data-testid="store-installed">
296
296
  <h2 class="cn-store-page__side-title">
297
- {{ t('nextcloud-vue', 'Installed from this store') }}
297
+ {{ t('nextcloud-vue', 'Installed from this marketplace') }}
298
298
  </h2>
299
299
  <p v-if="installedCards.length === 0" class="cn-store-page__side-note">
300
- {{ t('nextcloud-vue', 'Nothing from this store is installed yet.') }}
300
+ {{ t('nextcloud-vue', 'Nothing from this marketplace is installed yet.') }}
301
301
  </p>
302
302
  <ul v-else class="cn-store-page__installed">
303
303
  <li v-for="card in installedCards" :key="card.slug">
@@ -625,7 +625,7 @@ export default {
625
625
  * @return {string} The heading to render.
626
626
  */
627
627
  resolvedTitle() {
628
- return this.title || this.page?.title || t('nextcloud-vue', 'Store')
628
+ return this.title || this.page?.title || t('nextcloud-vue', 'Marketplace')
629
629
  },
630
630
 
631
631
  /**
@@ -924,7 +924,7 @@ export default {
924
924
  notConfiguredMessage() {
925
925
  const base = t(
926
926
  'nextcloud-vue',
927
- 'No store registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.',
927
+ 'No marketplace registry is configured, so nothing was requested from the network. An administrator can connect one under Administration settings.',
928
928
  )
929
929
 
930
930
  return this.builtIn.length > 0
@@ -938,7 +938,7 @@ export default {
938
938
  * @return {string} The unreachable note.
939
939
  */
940
940
  unreachableMessage() {
941
- const base = t('nextcloud-vue', 'The store registry did not answer.')
941
+ const base = t('nextcloud-vue', 'The marketplace registry did not answer.')
942
942
 
943
943
  return this.builtIn.length > 0
944
944
  ? `${base} ${t('nextcloud-vue', 'The items below ship with this app.')}`
@@ -18,7 +18,7 @@
18
18
  -->
19
19
  <template>
20
20
  <CnDialog
21
- :name="t('nextcloud-vue', 'Publish to the store')"
21
+ :name="t('nextcloud-vue', 'Publish to the marketplace')"
22
22
  :subtitle="t('nextcloud-vue', 'Share a template built from your own configuration with the registry.')"
23
23
  data-testid="store-publish-dialog"
24
24
  @closing="$emit('close')">
@@ -223,7 +223,7 @@ export default {
223
223
  })
224
224
  const body = await response.json()
225
225
  if (body.outcome === 'ok') {
226
- showSuccess(t('nextcloud-vue', 'Published to the store.'))
226
+ showSuccess(t('nextcloud-vue', 'Published to the marketplace.'))
227
227
  this.$emit('published', body.slug)
228
228
  return
229
229
  }
@@ -244,14 +244,14 @@ export default {
244
244
  */
245
245
  outcomeMessage(body, status) {
246
246
  if (status === 403) {
247
- return t('nextcloud-vue', 'You may not publish to this store.')
247
+ return t('nextcloud-vue', 'You may not publish to this marketplace.')
248
248
  }
249
249
  const messages = {
250
- not_configured: t('nextcloud-vue', 'No store registry is configured. An administrator connects one under Administration settings.'),
251
- store_unreachable: t('nextcloud-vue', 'The store registry did not answer. Try again later.'),
252
- store_rejected: t('nextcloud-vue', 'The store registry refused the item.'),
250
+ not_configured: t('nextcloud-vue', 'No marketplace registry is configured. An administrator connects one under Administration settings.'),
251
+ store_unreachable: t('nextcloud-vue', 'The marketplace registry did not answer. Try again later.'),
252
+ store_rejected: t('nextcloud-vue', 'The marketplace registry refused the item.'),
253
253
  too_large: t('nextcloud-vue', 'The item is too large to publish.'),
254
- rate_limited: t('nextcloud-vue', 'The store registry is busy. Try again in a minute.'),
254
+ rate_limited: t('nextcloud-vue', 'The marketplace registry is busy. Try again in a minute.'),
255
255
  }
256
256
  return messages[body?.outcome] || body?.message || t('nextcloud-vue', 'The item could not be published.')
257
257
  },