@conduction/nextcloud-vue 2.156.0 → 2.157.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 (95) hide show
  1. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue.js +1 -1
  2. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue2.js.map +1 -1
  3. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue3.js.map +1 -1
  4. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  5. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  6. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  7. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue.js +1 -1
  8. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue2.js.map +1 -1
  9. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue3.js.map +1 -1
  10. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
  11. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
  12. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
  13. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue.js +1 -1
  14. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js +2 -1
  15. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js.map +1 -1
  16. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js +10 -3
  17. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js.map +1 -1
  18. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
  19. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +14 -4
  20. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
  21. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +3 -3
  22. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
  23. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +1 -1
  24. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -1
  25. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -1
  26. package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
  27. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
  28. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +2 -1
  29. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
  30. package/dist/esm/components/CnMailTab/CnMailTab.vue.js +1 -1
  31. package/dist/esm/components/CnMailTab/CnMailTab.vue2.js +4 -4
  32. package/dist/esm/components/CnMailTab/CnMailTab.vue2.js.map +1 -1
  33. package/dist/esm/components/CnMailTab/CnMailTab.vue3.js.map +1 -1
  34. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue.js +1 -1
  35. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js +3 -0
  36. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js.map +1 -1
  37. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js +10 -2
  38. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js.map +1 -1
  39. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue.js +1 -1
  40. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js +6 -0
  41. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js.map +1 -1
  42. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js +2 -1
  43. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js.map +1 -1
  44. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue.js +1 -1
  45. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue2.js.map +1 -1
  46. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js +27 -24
  47. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js.map +1 -1
  48. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue.js +1 -1
  49. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue2.js.map +1 -1
  50. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue3.js.map +1 -1
  51. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue.js +1 -1
  52. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js +4 -1
  53. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js.map +1 -1
  54. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue3.js.map +1 -1
  55. package/dist/esm/components/CnStagesWidget/stagesModel.js +10 -2
  56. package/dist/esm/components/CnStagesWidget/stagesModel.js.map +1 -1
  57. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue.js +1 -1
  58. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js +61 -2
  59. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js.map +1 -1
  60. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js +68 -44
  61. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js.map +1 -1
  62. package/dist/esm/integrations/builtin/email/CnEmailTab.vue.js +1 -1
  63. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js +13 -3
  64. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js.map +1 -1
  65. package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js.map +1 -1
  66. package/dist/esm/library-style.js +1 -1
  67. package/dist/esm/nextcloud-vue.css +667 -375
  68. package/dist/esm/utils/dynamicProperties.js +14 -2
  69. package/dist/esm/utils/dynamicProperties.js.map +1 -1
  70. package/dist/nextcloud-vue.cjs.js +829 -678
  71. package/dist/nextcloud-vue.cjs.js.map +2 -2
  72. package/dist/nextcloud-vue.css +667 -375
  73. package/package.json +1 -1
  74. package/src/components/CnBannerWidget/CnBannerWidget.vue +5 -1
  75. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +12 -5
  76. package/src/components/CnCountdownWidget/CnCountdownWidget.vue +12 -0
  77. package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +1 -0
  78. package/src/components/CnDuplicateWarning/CnDuplicateWarning.vue +8 -4
  79. package/src/components/CnFactsWidget/CnFactsWidget.vue +31 -6
  80. package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +4 -2
  81. package/src/components/CnFormDialog/CnFormDialog.vue +1 -0
  82. package/src/components/CnMailTab/CnMailTab.vue +4 -4
  83. package/src/components/CnNotificationMatrix/CnNotificationMatrix.vue +20 -0
  84. package/src/components/CnPartyPicker/CnPartyPicker.vue +7 -0
  85. package/src/components/CnSavedViewLookFields/CnSavedViewLookFields.vue +27 -20
  86. package/src/components/CnSearchSelect/CnSearchSelect.vue +3 -1
  87. package/src/components/CnStagesWidget/CnStagesWidget.vue +4 -1
  88. package/src/components/CnStagesWidget/stagesModel.js +10 -2
  89. package/src/components/CnTimelineWidget/CnTimelineManage.vue +69 -4
  90. package/src/css/dialog.css +33 -0
  91. package/src/css/look-board-detail.css +4 -3
  92. package/src/css/look-board-index.css +34 -3
  93. package/src/css/look-board.css +170 -4
  94. package/src/integrations/builtin/email/CnEmailTab.vue +13 -3
  95. package/src/utils/dynamicProperties.js +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduction/nextcloud-vue",
3
- "version": "2.156.0",
3
+ "version": "2.157.0",
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": {
@@ -992,7 +992,11 @@ export default {
992
992
  width: 100%;
993
993
  }
994
994
 
995
- .cn-banner-widget__card {
995
+ /* Doubled: NcNoteCard's own `.notecard` margin (15px above and below) is as
996
+ strong as one scoped class and loads later, so the card kept it and stood
997
+ 15px under its grid cell's top (DqDashboard info line, r33).
998
+ @spec openspec/changes/banner-card-no-margin/specs/banner-card-no-margin/spec.md#requirement-a-banner-card-draws-no-margin-of-its-own */
999
+ .cn-banner-widget__card.cn-banner-widget__card {
996
1000
  margin: 0;
997
1001
  }
998
1002
 
@@ -1263,9 +1263,9 @@ export default {
1263
1263
  }
1264
1264
 
1265
1265
  /* A note is two 15px lines on the normal line height, 8px 12px in: 54px, as
1266
- the board draws it (live 48). */
1266
+ the board draws it. A theme pads every textarea 5px 12px with !important. */
1267
1267
  .cn-checklist-run__text.cn-checklist-run__text {
1268
- padding: 8px 12px;
1268
+ padding: 8px 12px !important;
1269
1269
  line-height: normal;
1270
1270
  }
1271
1271
 
@@ -1298,11 +1298,12 @@ export default {
1298
1298
  padding: 0 14px;
1299
1299
  }
1300
1300
 
1301
- /* A theme sets every label bold and at the body size; the photo button is
1302
- the board's 14px/600 control with a camera before its label (DqInspectie). */
1301
+ /* A theme sets every label bold and at the body size, the weight with
1302
+ !important (thematiq's form-field label token); the photo button is the
1303
+ board's 14px/600 control with a camera before its label (DqInspectie). */
1303
1304
  .cn-checklist-run__photo-button.cn-checklist-run__photo-button {
1304
1305
  font-size: 14px;
1305
- font-weight: 600;
1306
+ font-weight: 600 !important;
1306
1307
  }
1307
1308
 
1308
1309
  .cn-checklist-run__photo-button:focus-within {
@@ -1323,6 +1324,12 @@ export default {
1323
1324
  justify-content: space-between;
1324
1325
  }
1325
1326
 
1327
+ /* Previous and Next are as wide as the board draws them: NcButton pads its
1328
+ label 4px a side inside the button's own padding, the board 2px. */
1329
+ .cn-checklist-run__nav :deep(.button-vue__text) {
1330
+ padding-inline: 2px;
1331
+ }
1332
+
1326
1333
  .cn-checklist-run__error {
1327
1334
  color: var(--color-error-text, var(--color-error));
1328
1335
  margin: 0;
@@ -506,6 +506,18 @@ export default {
506
506
  font-size: 13px;
507
507
  }
508
508
 
509
+ /* The board stacks the term card 10px apart: the days, the date line, the
510
+ bar and the action (DqZaak "Termijn": r33 live 2 / 11.9 / 5 against 10,
511
+ card 182.7 against 188). */
512
+ .cn-countdown-widget--board .cn-kpi-card__body {
513
+ gap: 10px;
514
+ }
515
+
516
+ .cn-countdown-widget--board .cn-countdown-widget__progress.cn-countdown-widget__progress,
517
+ .cn-countdown-widget--board .cn-countdown-widget__action.cn-countdown-widget__action {
518
+ margin: 0;
519
+ }
520
+
509
521
  .cn-countdown-widget__action--primary {
510
522
  background: var(--color-primary-element-light);
511
523
  color: var(--color-primary-element-light-text);
@@ -328,6 +328,7 @@ export default {
328
328
  gap: 6px;
329
329
  font-size: 13px;
330
330
  font-weight: 600;
331
+ line-height: normal;
331
332
  }
332
333
 
333
334
  .cn-device-frames-widget__status--warning {
@@ -6,7 +6,7 @@
6
6
  <CnDialog
7
7
  :name="text(title) || t('nextcloud-vue', 'This may already exist')"
8
8
  :eyebrow="text(eyebrow)"
9
- width="form"
9
+ width="confirm"
10
10
  data-testid="cn-duplicate-warning"
11
11
  @closing="close">
12
12
  <div class="cn-duplicate-warning">
@@ -47,7 +47,7 @@
47
47
  </div>
48
48
 
49
49
  <template #actions>
50
- <NcButton variant="tertiary" data-testid="cn-duplicate-warning-cancel" @click="close">
50
+ <NcButton variant="secondary" data-testid="cn-duplicate-warning-cancel" @click="close">
51
51
  {{ t('nextcloud-vue', 'Cancel') }}
52
52
  </NcButton>
53
53
  <NcButton v-if="affordances.mayContinue"
@@ -55,6 +55,9 @@
55
55
  :disabled="!canFile"
56
56
  data-testid="cn-duplicate-warning-continue"
57
57
  @click="fileAnyway">
58
+ <template #icon>
59
+ <CnIcon name="Plus" :size="20" />
60
+ </template>
58
61
  {{ text(continueLabel) || t('nextcloud-vue', 'File it anyway') }}
59
62
  </NcButton>
60
63
  </template>
@@ -65,6 +68,7 @@
65
68
  import { translatePlural as n, translate as t } from '@nextcloud/l10n'
66
69
  import { generateUrl } from '@nextcloud/router'
67
70
  import { NcButton, NcNoteCard, NcTextField } from '@nextcloud/vue'
71
+ import CnIcon from '../CnIcon/CnIcon.vue'
68
72
  import { duplicateAffordances } from '../../utils/duplicateWarning.js'
69
73
  import { fillTemplate, firstFilled } from '../../utils/fillTemplate.js'
70
74
  import { CnDialog } from '../CnDialog/index.js'
@@ -96,7 +100,7 @@ import { CnDialog } from '../CnDialog/index.js'
96
100
  export default {
97
101
  name: 'CnDuplicateWarning',
98
102
 
99
- components: { CnDialog, NcButton, NcNoteCard, NcTextField },
103
+ components: { CnDialog, CnIcon, NcButton, NcNoteCard, NcTextField },
100
104
 
101
105
  inject: {
102
106
  /** The host app's translate (CnAppRoot `cnTranslate`). */
@@ -364,7 +368,7 @@ export default {
364
368
  gap: 4px 12px;
365
369
  padding: 8px 12px;
366
370
  border: 1px solid var(--color-border);
367
- border-radius: var(--border-radius-large, 8px);
371
+ border-radius: 8px;
368
372
  }
369
373
 
370
374
  .cn-duplicate-warning__title {
@@ -41,7 +41,7 @@
41
41
  <dl
42
42
  v-if="block.kind === 'rows'"
43
43
  class="cn-facts-widget__rows"
44
- :class="{ 'cn-facts-widget__rows--columns': twoColumns, 'cn-facts-widget__rows--stacked': stacked }">
44
+ :class="{ 'cn-facts-widget__rows--columns': twoColumns, 'cn-facts-widget__rows--three': threeColumns, 'cn-facts-widget__rows--stacked': stacked }">
45
45
  <div
46
46
  v-for="row in block.rows"
47
47
  :key="row.key"
@@ -118,6 +118,7 @@
118
118
  <span
119
119
  v-else-if="block.kind === 'text'"
120
120
  class="cn-facts-widget__text"
121
+ :class="{ 'cn-facts-widget__text--joined': block.joined }"
121
122
  :data-testid="`cn-fact-${block.key}`">
122
123
  {{ block.value }}
123
124
  </span>
@@ -474,7 +475,7 @@ export default {
474
475
  * `as` is `row` (default when `label` or `icon` is set), `title`, `line`, `text` (a line in the normal ink), `lead` (an icon tile or initials beside `title` and `subtitle`), `pill` or `meter`.
475
476
  * `countFrom` (`{ register, schema, filter? }`, `@objectId` / `@object.<field>` in the filter) shows how many records that list holds ("Lopende zaken 43"); the row is left out while the count cannot be read.
476
477
  * A `meter` shows the amount at `path` against the limit at `limitPath` (or a constant `limit`) as "12 of 50" with a bar; past the limit the bar turns red and the text says "over the limit"; without a positive limit it shows the amount and no bar.
477
- * A `line` or `text` with `joinPrevious: true` is written on after the line or text just before it, as one paragraph (`joinSeparator`, default a space); with none before it, it stands alone.
478
+ * A `line` or `text` with `joinPrevious: true` is written on after the line or text just before it, as one paragraph (`joinSeparator`, default a space); with none before it, it stands alone. A text joined with a line break (`joinSeparator: "\n"`) keeps it: two address lines as one block.
478
479
  * A row with `inline: true` spans both columns as one line, the label, the value and its buttons side by side (a masked BSN with Show).
479
480
  * A row's `format` may also be `email`, `phone` or `url` (a link) or `masked` (the last four characters; `reveal: true` adds Show, which unmasks the record's value; `reveal: { url, path? }` makes Show ask the server for the value at `url` (tokens resolved), read at `path` (else the entry's path), so a server that answers the mask can check and record the reveal). `copy: true` adds a copy button; `icon` replaces the label.
480
481
  * A part may be `{ text }`, a constant; a `line` or `text` entry without `path` or `parts` shows its `text`.
@@ -499,7 +500,7 @@ export default {
499
500
  * - `emptyWhen` — a path; when the record's value there is truthy the card shows `emptyText` (an endpoint that answers `empty: true`).
500
501
  * - `link` — `{ label, route? | href? }` at the foot. `{ label, icon?, sidebarTab }` instead opens the page's object sidebar on that tab (no link without a sidebar).
501
502
  * - `hideEmpty` — drop an entry whose value is empty (default true).
502
- * - `columns` — `2` lays the rows out in two columns with the label above the value (board DqContact); a row with `parts` joins them like a line (an address on one row). `1` stacks each label above its value in one column, for a narrow card with long labels (board DqHandhaving "Afwijking en definitief").
503
+ * - `columns` — `2` lays the rows out in two columns with the label above the value (board DqContact), `3` in three (board DqSociaalDomein "De melding"); a row with `parts` joins them like a line (an address on one row). `1` stacks each label above its value in one column, for a narrow card with long labels (board DqHandhaving "Afwijking en definitief").
503
504
  * - `emptyText` — shown when no entry has a value.
504
505
  *
505
506
  * @type {{fields?: Array<object>, source?: object, link?: object, hideEmpty?: boolean, emptyText?: string}}
@@ -575,13 +576,23 @@ export default {
575
576
  },
576
577
 
577
578
  /**
578
- * Whether the rows sit in two columns, label above value.
579
+ * Whether the rows sit in columns, label above value: two, or three.
579
580
  *
580
581
  * @spec openspec/changes/facts-columns/specs/facts-widget/spec.md#requirement-facts-rows-can-sit-in-two-columns
581
582
  * @return {boolean}
582
583
  */
583
584
  twoColumns() {
584
- return Number(this.content?.columns) === 2
585
+ return [2, 3].includes(Number(this.content?.columns))
586
+ },
587
+
588
+ /**
589
+ * Whether the rows sit in three columns (board DqSociaalDomein "De melding").
590
+ *
591
+ * @spec openspec/changes/facts-columns/specs/facts-widget/spec.md#requirement-facts-rows-can-sit-in-three-columns
592
+ * @return {boolean}
593
+ */
594
+ threeColumns() {
595
+ return Number(this.content?.columns) === 3
585
596
  },
586
597
 
587
598
  /**
@@ -2283,6 +2294,12 @@ export default {
2283
2294
  font-size: 15px;
2284
2295
  }
2285
2296
 
2297
+ /* Text joined on with a line break (`joinSeparator: "\n"`) keeps the break:
2298
+ an address as two lines of one block (DqOrganisatie "KvK en adres"). */
2299
+ .cn-facts-widget__text--joined {
2300
+ white-space: pre-line;
2301
+ }
2302
+
2286
2303
  /* A lead: an icon tile or initials beside a bold title and a muted subtitle. */
2287
2304
  .cn-facts-widget__lead {
2288
2305
  align-items: center;
@@ -2412,6 +2429,13 @@ export default {
2412
2429
  font-size: 13px;
2413
2430
  }
2414
2431
 
2432
+ /* `columns: 3` (board DqSociaalDomein "De melding"): three columns, 12px
2433
+ between the rows of facts. */
2434
+ .cn-facts-widget__rows--three {
2435
+ grid-template-columns: repeat(3, minmax(0, 1fr));
2436
+ row-gap: 12px;
2437
+ }
2438
+
2415
2439
  /* One column, label above value: 2px under its label, 10px to the next
2416
2440
  label, so a long label never squeezes its value (DqHandhaving). */
2417
2441
  .cn-facts-widget__rows--stacked {
@@ -2424,7 +2448,8 @@ export default {
2424
2448
  }
2425
2449
 
2426
2450
  @media (max-width: 640px) {
2427
- .cn-facts-widget__rows--columns {
2451
+ .cn-facts-widget__rows--columns,
2452
+ .cn-facts-widget__rows--three {
2428
2453
  grid-template-columns: minmax(0, 1fr);
2429
2454
  }
2430
2455
  }
@@ -780,7 +780,7 @@ export default {
780
780
  .cn-features-board__panel {
781
781
  display: flex;
782
782
  flex-direction: column;
783
- gap: 22px;
783
+ gap: 20px;
784
784
  }
785
785
 
786
786
  .cn-features-board__panel--tabbed {
@@ -1105,7 +1105,9 @@ export default {
1105
1105
  color: var(--color-text-maxcontrast);
1106
1106
  }
1107
1107
 
1108
- .cn-features-board__notice {
1108
+ /* The panel's gap is the notice's only space: NcNoteCard's own margin
1109
+ outranks a plain class, so the notice is held by its place in the panel. */
1110
+ .cn-features-board__panel > .cn-features-board__notice {
1109
1111
  margin: 0;
1110
1112
  }
1111
1113
  </style>
@@ -215,6 +215,7 @@
215
215
  `sources`; the form stores the chosen row's id only. -->
216
216
  <div v-if="field.widget === 'party'" class="cn-form-dialog__party-wrapper">
217
217
  <CnPartyPicker
218
+ :inputId="'cn-form-' + field.key"
218
219
  :modelValue="formData[field.key] != null ? formData[field.key] : null"
219
220
  :sources="field.sources || []"
220
221
  :inputLabel="fieldLabelText(field)"
@@ -281,14 +281,14 @@ export default {
281
281
  return keyOf(this.objectId) || keyOf(this.record.id) || keyOf(this.record['@self'] && this.record['@self'].id)
282
282
  },
283
283
 
284
- /** @return {string} The register slug or id. */
284
+ /** @return {string} The register slug or id, from the prop or else the record's own `@self`. */
285
285
  registerKey() {
286
- return keyOf(this.register)
286
+ return keyOf(this.register) || keyOf(this.record['@self'] && this.record['@self'].register)
287
287
  },
288
288
 
289
- /** @return {string} The schema slug or id. */
289
+ /** @return {string} The schema slug or id, from the prop or else the record's own `@self`. */
290
290
  schemaKey() {
291
- return keyOf(this.schema)
291
+ return keyOf(this.schema) || keyOf(this.record['@self'] && this.record['@self'].schema)
292
292
  },
293
293
 
294
294
  /** @return {object} The token context for the URLs. */
@@ -186,6 +186,7 @@
186
186
  class="cn-notification-matrix__channels"
187
187
  data-testid="cn-nm-channel-settings">
188
188
  <summary class="cn-notification-matrix__channels-summary">
189
+ <ChevronRight :size="16" class="cn-notification-matrix__channels-chevron" />
189
190
  {{ channelSettingsTitle }}
190
191
  </summary>
191
192
  <div
@@ -265,6 +266,7 @@
265
266
 
266
267
  <script>
267
268
  import { translate as t } from '@nextcloud/l10n'
269
+ import ChevronRight from 'vue-material-design-icons/ChevronRight.vue'
268
270
  import { normalizeLook } from '../../composables/useLook.js'
269
271
  import {
270
272
  channelAvailability,
@@ -351,6 +353,8 @@ function appDefaultFor(event, channel) {
351
353
  export default {
352
354
  name: 'CnNotificationMatrix',
353
355
 
356
+ components: { ChevronRight },
357
+
354
358
  inject: {
355
359
  /** The look CnAppRoot (or the page) draws in. */
356
360
  cnLook: { default: 'nextcloud' },
@@ -1194,12 +1198,28 @@ export default {
1194
1198
  margin-block-start: 16px;
1195
1199
  }
1196
1200
 
1201
+ /* A disclosure line: a 16px chevron 6px before the words, turned down when
1202
+ open, in place of the browser's marker (as DqPersoonlijkeInstellingen
1203
+ draws "Bundeling en testbericht"). */
1197
1204
  .cn-notification-matrix__channels-summary {
1205
+ display: inline-flex;
1206
+ align-items: center;
1207
+ gap: 6px;
1198
1208
  font-size: 14px;
1199
1209
  font-weight: 600;
1210
+ line-height: normal;
1211
+ list-style: none;
1200
1212
  cursor: pointer;
1201
1213
  }
1202
1214
 
1215
+ .cn-notification-matrix__channels-summary::-webkit-details-marker {
1216
+ display: none;
1217
+ }
1218
+
1219
+ .cn-notification-matrix__channels[open] .cn-notification-matrix__channels-chevron {
1220
+ transform: rotate(90deg);
1221
+ }
1222
+
1203
1223
  .cn-notification-matrix__channel {
1204
1224
  display: flex;
1205
1225
  flex-wrap: wrap;
@@ -5,6 +5,7 @@
5
5
  <template>
6
6
  <div class="cn-party-picker">
7
7
  <CnSearchSelect
8
+ :inputId="inputId"
8
9
  :modelValue="selectedOption"
9
10
  :options="options"
10
11
  :inputLabel="inputLabel"
@@ -91,6 +92,12 @@ export default {
91
92
  },
92
93
 
93
94
  props: {
95
+ /** The search input's id, so the form's own label names it. */
96
+ inputId: {
97
+ type: String,
98
+ default: undefined,
99
+ },
100
+
94
101
  /** The chosen party's id. */
95
102
  modelValue: {
96
103
  type: [String, Number],
@@ -11,26 +11,28 @@
11
11
  :helperText="t('nextcloud-vue', 'Shown when you point at the view in the menu.')"
12
12
  data-testid="cn-saved-view-description"
13
13
  @update:modelValue="onDescription" />
14
- <div
15
- class="cn-saved-view-look__icons"
16
- role="radiogroup"
17
- :aria-label="t('nextcloud-vue', 'Icon')"
18
- data-testid="cn-saved-view-icon">
14
+ <div class="cn-saved-view-look__icon-field">
19
15
  <span class="cn-saved-view-look__label" aria-hidden="true">{{ t('nextcloud-vue', 'Icon') }}</span>
20
- <button
21
- v-for="name in iconNames"
22
- :key="name"
23
- type="button"
24
- role="radio"
25
- class="cn-saved-view-look__icon"
26
- :class="{ 'cn-saved-view-look__icon--chosen': name === chosenIcon }"
27
- :aria-checked="name === chosenIcon ? 'true' : 'false'"
28
- :aria-label="iconLabel(name)"
29
- :title="iconLabel(name)"
30
- :data-icon="name"
31
- @click="onIcon(name)">
32
- <component :is="componentOf(name)" :size="20" />
33
- </button>
16
+ <div
17
+ class="cn-saved-view-look__icons"
18
+ role="radiogroup"
19
+ :aria-label="t('nextcloud-vue', 'Icon')"
20
+ data-testid="cn-saved-view-icon">
21
+ <button
22
+ v-for="name in iconNames"
23
+ :key="name"
24
+ type="button"
25
+ role="radio"
26
+ class="cn-saved-view-look__icon"
27
+ :class="{ 'cn-saved-view-look__icon--chosen': name === chosenIcon }"
28
+ :aria-checked="name === chosenIcon ? 'true' : 'false'"
29
+ :aria-label="iconLabel(name)"
30
+ :title="iconLabel(name)"
31
+ :data-icon="name"
32
+ @click="onIcon(name)">
33
+ <component :is="componentOf(name)" :size="20" />
34
+ </button>
35
+ </div>
34
36
  </div>
35
37
  </div>
36
38
  </template>
@@ -172,8 +174,13 @@ export default {
172
174
  gap: 4px;
173
175
  }
174
176
 
177
+ .cn-saved-view-look__icon-field {
178
+ display: flex;
179
+ flex-direction: column;
180
+ gap: 4px;
181
+ }
182
+
175
183
  .cn-saved-view-look__label {
176
- flex: 0 0 100%;
177
184
  font-weight: 600;
178
185
  }
179
186
 
@@ -249,7 +249,7 @@ export default {
249
249
  gap: 10px;
250
250
  width: 100%;
251
251
  min-width: 0;
252
- padding: 4px 0;
252
+ padding: 0;
253
253
  }
254
254
 
255
255
  .cn-search-select__lead {
@@ -275,11 +275,13 @@ export default {
275
275
 
276
276
  .cn-search-select__name {
277
277
  font-weight: 600;
278
+ line-height: normal;
278
279
  overflow-wrap: anywhere;
279
280
  }
280
281
 
281
282
  .cn-search-select__secondary {
282
283
  font-size: 13px;
284
+ line-height: normal;
283
285
  color: var(--color-text-maxcontrast);
284
286
  overflow-wrap: anywhere;
285
287
  }
@@ -289,6 +289,9 @@ function userError(message) {
289
289
  * labelField?, descriptionField?, finalField?, limit? }`, an OpenRegister
290
290
  * query whose filter takes the same tokens.
291
291
  *
292
+ * Both take `offPathField`: a stage whose row holds true there is a side
293
+ * status, left off the strip unless the record is in it.
294
+ *
292
295
  * `datesSource`: `{ url, method?, params?, path?, idField?, dateField? }`, an
293
296
  * endpoint (same token grammar) answering the date the record reached each
294
297
  * stage, when the stage list does not carry it: the case type's statuses list
@@ -666,7 +669,7 @@ export default {
666
669
  const cfg = this.stageConfig
667
670
  const rows = this.endpointStages ? getByPath(this.stagesBody, cfg.path) : this.sourceRows
668
671
  const orderField = cfg.orderField || (this.endpointStages ? '' : cfg.orderBy)
669
- return normalizeStages(rows, { ...cfg, orderField })
672
+ return normalizeStages(rows, { ...cfg, orderField, currentId: this.currentStageId })
670
673
  },
671
674
 
672
675
  /**
@@ -84,13 +84,21 @@ export function isTrue(value) {
84
84
  * and showing it first would misdescribe the process. Without `orderField`
85
85
  * the rows keep the order they arrived in.
86
86
  *
87
+ * A row whose `offPathField` holds true is a side status (a withdrawal, an
88
+ * extension request): it is left out unless it is `currentId`, the stage the
89
+ * record is in, so the strip draws the main path and still shows where a
90
+ * record that took a side turn stands.
91
+ *
87
92
  * @param {Array<object>} rows The stage rows.
88
93
  * @spec openspec/changes/zuiddrecht-pixel-gaps/specs/zuiddrecht-pixel-gaps/spec.md#requirement-a-stages-widget-draws-bars
89
- * @param {{idField?: string, labelField?: string, descriptionField?: string, dateField?: string, orderField?: string, finalField?: string}} [cfg] The field mapping.
94
+ * @spec openspec/changes/stages-off-path/specs/stages-widget/spec.md#requirement-a-side-status-stays-off-the-strip-unless-it-is-current
95
+ * @param {{idField?: string, labelField?: string, descriptionField?: string, dateField?: string, orderField?: string, finalField?: string, offPathField?: string, currentId?: string|null}} [cfg] The field mapping.
90
96
  * @return {Array<{id: string, label: string, subtitle: string, date: string, final: boolean}>} The stages.
91
97
  */
92
98
  export function normalizeStages(rows, cfg = {}) {
93
- const list = Array.isArray(rows) ? rows.filter((r) => r && typeof r === 'object') : []
99
+ const list = Array.isArray(rows)
100
+ ? rows.filter((r) => r && typeof r === 'object' && !(cfg.offPathField && isTrue(getByPath(r, cfg.offPathField)) && rowId(r, cfg.idField) !== cfg.currentId))
101
+ : []
94
102
  const orderField = cfg.orderField
95
103
  const orderOf = (row) => {
96
104
  const raw = getByPath(row, orderField)
@@ -97,13 +97,19 @@
97
97
  :class="{ 'cn-timeline-manage__entry--pinned': entry.pinned }"
98
98
  :data-kind="entry.kind || 'note'"
99
99
  data-testid="cn-timeline-entry">
100
+ <span v-if="kindIcon(entry)"
101
+ class="cn-timeline-manage__entry-icon"
102
+ aria-hidden="true"
103
+ data-testid="cn-timeline-entry-icon">
104
+ <CnIcon :name="kindIcon(entry)" :size="16" />
105
+ </span>
100
106
  <p class="cn-timeline-manage__message">
101
- {{ entry.message }}
107
+ {{ entry.message }}<span v-if="entryDetail(entry)" class="cn-timeline-manage__detail">: {{ entryDetail(entry) }}</span>
102
108
  </p>
103
109
 
104
110
  <div class="cn-timeline-manage__head">
105
111
  <span class="cn-timeline-manage__kind">{{ kindLabel(entry) }}</span>
106
- <span class="cn-timeline-manage__author">{{ entry.author }}</span>
112
+ <span class="cn-timeline-manage__author">{{ authorName(entry.author) }}</span>
107
113
  <span class="cn-timeline-manage__moment">{{ moment(entry.created) }}</span>
108
114
  <span v-if="entry.visibility === 'public'"
109
115
  class="cn-timeline-manage__badge cn-timeline-manage__badge--public"
@@ -252,7 +258,10 @@ import { translatePlural as n, translate as t } from '@nextcloud/l10n'
252
258
  import { NcButton, NcCheckboxRadioSwitch, NcEmptyContent, NcLoadingIcon, NcNoteCard, NcSelect } from '@nextcloud/vue'
253
259
  import Download from 'vue-material-design-icons/Download.vue'
254
260
  import Plus from 'vue-material-design-icons/Plus.vue'
261
+ import CnIcon from '../CnIcon/CnIcon.vue'
255
262
  import { prefixUrl } from '../../utils/headers.js'
263
+ import { userDisplayName } from '../../utils/userDisplayName.js'
264
+ import { userLocale } from '../../utils/userLocale.js'
256
265
 
257
266
  let instanceCount = 0
258
267
 
@@ -279,7 +288,7 @@ function readPath(value, path) {
279
288
  export default {
280
289
  name: 'CnTimelineManage',
281
290
 
282
- components: { Download, NcButton, NcCheckboxRadioSwitch, NcEmptyContent, NcLoadingIcon, NcNoteCard, NcSelect, Plus },
291
+ components: { CnIcon, Download, NcButton, NcCheckboxRadioSwitch, NcEmptyContent, NcLoadingIcon, NcNoteCard, NcSelect, Plus },
283
292
 
284
293
  inject: {
285
294
  /** The app's component registry; entry actions resolve their modal here. */
@@ -312,6 +321,12 @@ export default {
312
321
  * `auditTrailLink` (`true` or a label) draws a footer link that opens
313
322
  * the object sidebar on its audit trail tab, `auditTrailTab` when the
314
323
  * page declares that tab under its own id.
324
+ * `momentFormat: "short"` writes an entry's moment as "6 okt, 15:40"
325
+ * (day, short month and time in the reader's locale).
326
+ * An entry shows its `fields.title` after the message ("Document
327
+ * beoordeeld: Mail aannemer over planning"), its author by display
328
+ * name, and its kind's icon in the rail circle: `kindIcons`
329
+ * (`{ kind: iconName }`), else the `icon` the kind declares.
315
330
  */
316
331
  content: { type: Object, default: () => ({}) },
317
332
  },
@@ -775,6 +790,47 @@ export default {
775
790
  form.querySelector('textarea')?.focus()
776
791
  },
777
792
 
793
+ /**
794
+ * The icon of the entry's kind: `content.kindIcons[kind]`, else the
795
+ * `icon` the kind declares, or ''.
796
+ *
797
+ * @param {object} entry The entry.
798
+ * @return {string} An icon name for CnIcon.
799
+ */
800
+ kindIcon(entry) {
801
+ if (!entry.kind) {
802
+ return ''
803
+ }
804
+ const configured = this.content?.kindIcons?.[entry.kind]
805
+ if (typeof configured === 'string' && configured !== '') {
806
+ return configured
807
+ }
808
+ const declared = this.kinds.find((kind) => kind.slug === entry.kind)
809
+ return declared && typeof declared.icon === 'string' ? declared.icon : ''
810
+ },
811
+
812
+ /**
813
+ * What the entry is about, written after its message: `fields.title`.
814
+ *
815
+ * @param {object} entry The entry.
816
+ * @return {string} The detail, or ''.
817
+ */
818
+ entryDetail(entry) {
819
+ const title = entry.fields && typeof entry.fields.title === 'string' ? entry.fields.title.trim() : ''
820
+ return title
821
+ },
822
+
823
+ /**
824
+ * An author's display name; the user id while it is looked up or
825
+ * when it names no user.
826
+ *
827
+ * @param {string} author The author as stored.
828
+ * @return {string} The name.
829
+ */
830
+ authorName(author) {
831
+ return userDisplayName(author) || author || ''
832
+ },
833
+
778
834
  /**
779
835
  * The label of one entry's kind, falling back to "Note".
780
836
  *
@@ -803,7 +859,16 @@ export default {
803
859
  return ''
804
860
  }
805
861
  const parsed = new Date(value)
806
- return isNaN(parsed.getTime()) ? value : parsed.toLocaleString()
862
+ if (isNaN(parsed.getTime())) {
863
+ return value
864
+ }
865
+ if (this.content?.momentFormat === 'short') {
866
+ const locale = userLocale()
867
+ const day = parsed.toLocaleDateString(locale, { day: 'numeric', month: 'short' }).replace(/\.$/, '')
868
+ const time = parsed.toLocaleTimeString(locale, { hour: '2-digit', minute: '2-digit', hourCycle: 'h23' })
869
+ return `${day}, ${time}`
870
+ }
871
+ return parsed.toLocaleString()
807
872
  },
808
873
 
809
874
  async togglePin(entry) {
@@ -278,6 +278,17 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
278
278
  margin-block-end: -2px;
279
279
  }
280
280
 
281
+ /* The note's help line sits 6px under the text area too (DqOverdragen
282
+ "Verplicht. ..."): the inline text area left a descender gap in its
283
+ wrapper, and the wrapper's 2px ring room came on top. */
284
+ .cn-dialog-board .dialog__content .cn-assign-dialog__field .textarea__input {
285
+ vertical-align: top;
286
+ }
287
+
288
+ .cn-dialog-board .dialog__content .cn-assign-dialog__field > .textarea {
289
+ margin-block-end: -2px;
290
+ }
291
+
281
292
  /* Body: padding 20px 24px, 18px between blocks. */
282
293
  .cn-dialog-board .dialog__content {
283
294
  display: flex;
@@ -664,6 +675,28 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
664
675
  line-height: normal;
665
676
  }
666
677
 
678
+ /* A transition field stacks its label, control and lines 6px apart on the
679
+ normal line, as DqVolgendeStap's Opschorten draws them: NcInputField pads
680
+ its wrapper 2px above and below, the help line sat at 1.3, and a field set
681
+ as a block ran its label and note inline (r33 Opschorten 280.5 against 274,
682
+ every option under it 8 to 11px low; probed with all but the note rule:
683
+ 277.1, the note on the normal line takes 3.9 more off). */
684
+ .cn-dialog-board .cn-transition-input-fields .input-field__main-wrapper {
685
+ height: auto;
686
+ padding-block: 0;
687
+ }
688
+
689
+ .cn-dialog-board .cn-transition-input-fields .input-field__helper-text-message,
690
+ .cn-dialog-board .cn-transition-input-fields .cn-transition-input-fields__muted {
691
+ line-height: normal;
692
+ }
693
+
694
+ .cn-dialog-board .cn-transition-input-fields .cn-transition-input-fields__field {
695
+ display: flex;
696
+ flex-direction: column;
697
+ gap: 6px;
698
+ }
699
+
667
700
  /* A setup step's parts are 16px apart, as the boards draw them (DqInstellen:
668
701
  intro, choices and note sat 11 to 26px apart), and a note inside it adds no
669
702
  margin of its own.