@conduction/nextcloud-vue 2.155.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 (133) hide show
  1. package/dist/esm/components/CnAiCompanion/CnAiInput.vue2.js +3 -1
  2. package/dist/esm/components/CnAiCompanion/CnAiInput.vue2.js.map +1 -1
  3. package/dist/esm/components/CnAiCompanion/CnAiInput.vue3.js.map +1 -1
  4. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue.js +1 -1
  5. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue2.js.map +1 -1
  6. package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue3.js.map +1 -1
  7. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
  8. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
  9. package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
  10. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue.js +1 -1
  11. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue2.js.map +1 -1
  12. package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue3.js.map +1 -1
  13. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
  14. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  15. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  16. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
  17. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
  18. package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
  19. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue.js +1 -1
  20. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js +2 -1
  21. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js.map +1 -1
  22. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js +10 -3
  23. package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js.map +1 -1
  24. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
  25. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +14 -4
  26. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
  27. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +3 -3
  28. package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
  29. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +1 -1
  30. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -1
  31. package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -1
  32. package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
  33. package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
  34. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +2 -1
  35. package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
  36. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue2.js +13 -4
  37. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue2.js.map +1 -1
  38. package/dist/esm/components/CnIndexSidebar/CnIndexSidebar.vue3.js.map +1 -1
  39. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue.js +1 -1
  40. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue2.js +91 -7
  41. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue2.js.map +1 -1
  42. package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue3.js.map +1 -1
  43. package/dist/esm/components/CnMailTab/CnMailTab.vue.js +1 -1
  44. package/dist/esm/components/CnMailTab/CnMailTab.vue2.js +4 -4
  45. package/dist/esm/components/CnMailTab/CnMailTab.vue2.js.map +1 -1
  46. package/dist/esm/components/CnMailTab/CnMailTab.vue3.js.map +1 -1
  47. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue.js +1 -1
  48. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js +3 -0
  49. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js.map +1 -1
  50. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js +10 -2
  51. package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js.map +1 -1
  52. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue.js +1 -1
  53. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js +6 -0
  54. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js.map +1 -1
  55. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js +2 -1
  56. package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js.map +1 -1
  57. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue.js +1 -1
  58. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue2.js.map +1 -1
  59. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js +27 -24
  60. package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js.map +1 -1
  61. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue2.js +25 -0
  62. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue2.js.map +1 -1
  63. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue3.js +40 -8
  64. package/dist/esm/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue3.js.map +1 -1
  65. package/dist/esm/components/CnSchemaFormDialog/CnSchemaFormDialog.vue2.js +10 -0
  66. package/dist/esm/components/CnSchemaFormDialog/CnSchemaFormDialog.vue2.js.map +1 -1
  67. package/dist/esm/components/CnSchemaFormDialog/CnSchemaFormDialog.vue3.js.map +1 -1
  68. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue.js +1 -1
  69. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue2.js.map +1 -1
  70. package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue3.js.map +1 -1
  71. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue.js +1 -1
  72. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js +24 -1
  73. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js.map +1 -1
  74. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js +9 -0
  75. package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js.map +1 -1
  76. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue.js +1 -1
  77. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js +4 -1
  78. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js.map +1 -1
  79. package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue3.js.map +1 -1
  80. package/dist/esm/components/CnStagesWidget/stagesModel.js +10 -2
  81. package/dist/esm/components/CnStagesWidget/stagesModel.js.map +1 -1
  82. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue.js +1 -1
  83. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js +61 -2
  84. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js.map +1 -1
  85. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js +68 -44
  86. package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js.map +1 -1
  87. package/dist/esm/integrations/builtin/email/CnEmailTab.vue.js +1 -1
  88. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js +13 -3
  89. package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js.map +1 -1
  90. package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js.map +1 -1
  91. package/dist/esm/l10n/en.json.js +12 -7
  92. package/dist/esm/l10n/en.json.js.map +1 -1
  93. package/dist/esm/l10n/nl.json.js +14 -9
  94. package/dist/esm/l10n/nl.json.js.map +1 -1
  95. package/dist/esm/library-style.js +1 -1
  96. package/dist/esm/nextcloud-vue.css +777 -469
  97. package/dist/esm/utils/dynamicProperties.js +14 -2
  98. package/dist/esm/utils/dynamicProperties.js.map +1 -1
  99. package/dist/nextcloud-vue.cjs.js +2472 -2120
  100. package/dist/nextcloud-vue.cjs.js.map +2 -2
  101. package/dist/nextcloud-vue.css +777 -469
  102. package/l10n/en.json +12 -7
  103. package/l10n/nl.json +14 -9
  104. package/package.json +1 -1
  105. package/src/components/CnAiCompanion/CnAiInput.vue +3 -1
  106. package/src/components/CnBannerWidget/CnBannerWidget.vue +5 -1
  107. package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +12 -5
  108. package/src/components/CnCountdownWidget/CnCountdownWidget.vue +12 -0
  109. package/src/components/CnDashboardPage/CnDashboardPage.vue +3 -1
  110. package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +1 -0
  111. package/src/components/CnDuplicateWarning/CnDuplicateWarning.vue +8 -4
  112. package/src/components/CnFactsWidget/CnFactsWidget.vue +31 -6
  113. package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +4 -2
  114. package/src/components/CnFormDialog/CnFormDialog.vue +1 -0
  115. package/src/components/CnIndexSidebar/CnIndexSidebar.vue +13 -4
  116. package/src/components/CnLinkedWidget/CnLinkedWidget.vue +91 -7
  117. package/src/components/CnMailTab/CnMailTab.vue +4 -4
  118. package/src/components/CnNotificationMatrix/CnNotificationMatrix.vue +20 -0
  119. package/src/components/CnPartyPicker/CnPartyPicker.vue +7 -0
  120. package/src/components/CnSavedViewLookFields/CnSavedViewLookFields.vue +27 -20
  121. package/src/components/CnSchemaFormDialog/CnSchemaConfigurationTab.vue +42 -0
  122. package/src/components/CnSchemaFormDialog/CnSchemaFormDialog.vue +10 -0
  123. package/src/components/CnSearchSelect/CnSearchSelect.vue +3 -1
  124. package/src/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue +37 -1
  125. package/src/components/CnStagesWidget/CnStagesWidget.vue +4 -1
  126. package/src/components/CnStagesWidget/stagesModel.js +10 -2
  127. package/src/components/CnTimelineWidget/CnTimelineManage.vue +69 -4
  128. package/src/css/dialog.css +33 -0
  129. package/src/css/look-board-detail.css +4 -3
  130. package/src/css/look-board-index.css +34 -3
  131. package/src/css/look-board.css +181 -4
  132. package/src/integrations/builtin/email/CnEmailTab.vue +13 -3
  133. package/src/utils/dynamicProperties.js +13 -1
@@ -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
 
@@ -123,6 +123,23 @@
123
123
  :clearable="true"
124
124
  :inputLabel="t('nextcloud-vue', 'Object summary field')"
125
125
  :placeholder="t('nextcloud-vue', 'Select a property to use as object summary. e.g. summary, abstract, or excerpt')" />
126
+ <NcSelect
127
+ v-model="schema.configuration.objectSlugField"
128
+ :disabled="loading"
129
+ :options="slugFieldOptions"
130
+ :reduce="option => option.id"
131
+ label="label"
132
+ :clearable="true"
133
+ :inputLabel="t('nextcloud-vue', 'Object slug field')"
134
+ :placeholder="t('nextcloud-vue', 'Select a property to build object slugs from')" />
135
+ <NcCheckboxRadioSwitch
136
+ v-model="schema.configuration.objectSlugSuffix"
137
+ :disabled="loading || !schema.configuration.objectSlugField">
138
+ {{ t('nextcloud-vue', 'Append a date-time suffix when a slug is already taken') }}
139
+ </NcCheckboxRadioSwitch>
140
+ <NcNoteCard v-if="schema.configuration.objectSlugField" type="info">
141
+ <p>{{ t('nextcloud-vue', 'A slug is unique within the register and schema and does not change once it is set, also not after the slug field is switched. Objects without a slug get one from the new field on their next save or with occ openregister:backfill-slugs <register> <schema>.') }}</p>
142
+ </NcNoteCard>
126
143
  <NcCheckboxRadioSwitch
127
144
  v-model="schema.configuration.allowFiles"
128
145
  :disabled="loading">
@@ -217,6 +234,21 @@ export default {
217
234
  },
218
235
 
219
236
  computed: {
237
+ /**
238
+ * The choices for the object slug field: every schema property, and first the
239
+ * reserved source `@schema.name` that OpenRegister turns into
240
+ * `<schema slug>-<object name>` (the second choice Robert Zondervan asked for
241
+ * next to a property, 2026-10-26). Stored as the id, shown by its label.
242
+ *
243
+ * @return {Array<{id: string, label: string}>}
244
+ */
245
+ slugFieldOptions() {
246
+ return [
247
+ { id: '@schema.name', label: t('nextcloud-vue', 'Schema name + object name') },
248
+ ...this.propertyOptions.map((property) => ({ id: property, label: property })),
249
+ ]
250
+ },
251
+
220
252
  /** Local alias to avoid vue/no-mutating-props on template bindings */
221
253
  schema() {
222
254
  return this.schemaItem
@@ -224,6 +256,16 @@ export default {
224
256
  },
225
257
 
226
258
  watch: {
259
+ // The suffix only applies together with a slug field; drop it when the
260
+ // field is cleared so it cannot silently re-activate on a later pick.
261
+ 'schema.configuration.objectSlugField': {
262
+ handler(value) {
263
+ if (!value && this.schema.configuration.objectSlugSuffix) {
264
+ this.schema.configuration.objectSlugSuffix = false
265
+ }
266
+ },
267
+ },
268
+
227
269
  'schema.configuration.allowedTags': {
228
270
  immediate: true,
229
271
  handler(tags) {
@@ -342,6 +342,8 @@ export default {
342
342
  objectDescriptionField: '',
343
343
  objectImageField: '',
344
344
  objectSummaryField: '',
345
+ objectSlugField: '',
346
+ objectSlugSuffix: false,
345
347
  allowFiles: false,
346
348
  allowedTags: [],
347
349
  autoPublish: false,
@@ -606,6 +608,8 @@ export default {
606
608
  objectDescriptionField: '',
607
609
  objectImageField: '',
608
610
  objectSummaryField: '',
611
+ objectSlugField: '',
612
+ objectSlugSuffix: false,
609
613
  allowFiles: false,
610
614
  allowedTags: [],
611
615
  autoPublish: false,
@@ -640,6 +644,12 @@ export default {
640
644
  if (!this.schemaItem.configuration.objectSummaryField) {
641
645
  this.schemaItem.configuration.objectSummaryField = ''
642
646
  }
647
+ if (!this.schemaItem.configuration.objectSlugField) {
648
+ this.schemaItem.configuration.objectSlugField = ''
649
+ }
650
+ if (this.schemaItem.configuration.objectSlugSuffix === undefined) {
651
+ this.schemaItem.configuration.objectSlugSuffix = false
652
+ }
643
653
  if (this.schemaItem.configuration.allowFiles === undefined) {
644
654
  this.schemaItem.configuration.allowFiles = false
645
655
  }
@@ -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
  }
@@ -121,6 +121,15 @@
121
121
  <span v-if="dirty" class="cn-settings-fields__dirty" data-testid="cn-settings-fields-dirty">
122
122
  {{ t('nextcloud-vue', 'Unsaved changes') }}
123
123
  </span>
124
+ <!-- An action field with `placement: 'save'` stands beside Save
125
+ (DqBeheerGeavanceerd "Willekeurig geheim genereren"). -->
126
+ <CnSettingsField
127
+ v-for="field in saveRowFields"
128
+ :key="field.key"
129
+ class="cn-settings-fields__save-action"
130
+ :field="field"
131
+ :modelValue="form[field.key]"
132
+ @action="runAction(field)" />
124
133
  <NcButton
125
134
  :variant="saveVariant"
126
135
  type="submit"
@@ -740,7 +749,17 @@ export default {
740
749
  * @return {Array<object>}
741
750
  */
742
751
  mainFields() {
743
- return this.visibleFields.filter((field) => field.advanced !== true)
752
+ return this.visibleFields.filter((field) => field.advanced !== true && !this.inSaveRow(field))
753
+ },
754
+
755
+ /**
756
+ * The visible action fields drawn in the save row, beside Save.
757
+ *
758
+ * @return {Array<object>}
759
+ * @spec openspec/changes/settings-action-in-save-row/specs/settings-action-in-save-row/spec.md#requirement-an-action-field-can-stand-beside-save
760
+ */
761
+ saveRowFields() {
762
+ return this.visibleFields.filter((field) => field.advanced !== true && this.inSaveRow(field))
744
763
  },
745
764
 
746
765
  /**
@@ -870,6 +889,19 @@ export default {
870
889
  return Object.hasOwn(this.form, key) ? this.form[key] : literalFirst(this.values, key)
871
890
  },
872
891
 
892
+ /**
893
+ * Whether an action field stands in the save row: it asks for
894
+ * `placement: 'save'` and the form draws a save row at all.
895
+ *
896
+ * @param {object} field The field.
897
+ * @return {boolean}
898
+ * @spec openspec/changes/settings-action-in-save-row/specs/settings-action-in-save-row/spec.md#requirement-an-action-field-can-stand-beside-save
899
+ */
900
+ inSaveRow(field) {
901
+ return field.type === 'action' && field.placement === 'save'
902
+ && !this.autoSave && this.hasInputs && !this.inlineSave
903
+ },
904
+
873
905
  /**
874
906
  * Whether a field's `visibleWhen` holds; a field without one is always shown.
875
907
  *
@@ -1566,6 +1598,10 @@ export default {
1566
1598
  gap: 12px;
1567
1599
  }
1568
1600
 
1601
+ .cn-settings-fields__save-action {
1602
+ flex: none;
1603
+ }
1604
+
1569
1605
  .cn-settings-fields__dirty {
1570
1606
  font-size: 14px;
1571
1607
  color: var(--color-text-maxcontrast);
@@ -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.
@@ -2731,15 +2731,16 @@
2731
2731
  }
2732
2732
 
2733
2733
  /* The history card's note composer and entries as DqZaakHistorie draws them
2734
- (r31 strict verdict): the note field three lines high on a 1.5 line with
2734
+ (r31 strict verdict): the note field three lines high on the normal line
2735
+ (76px, as the boards draw their textareas since design-system PR 613) with
2735
2736
  10px 12px inside, the add button at the board's 40px, the title-row
2736
2737
  buttons 12px apart, and an entry the requester sees marked with a 12px
2737
2738
  teal pill.
2738
2739
  @spec openspec/changes/board-history-composer/specs/timeline/spec.md */
2739
2740
  .cn-look-board .cn-timeline-manage .cn-timeline-manage__draft:not(.cn-look-nextcloud *) {
2740
- min-height: calc(3 * 1.5em + 22px);
2741
+ min-height: calc(3 * 1.2em + 22px);
2741
2742
  padding: 10px 12px;
2742
- line-height: 1.5;
2743
+ line-height: normal;
2743
2744
  }
2744
2745
 
2745
2746
  .cn-look-board .cn-timeline-manage .cn-timeline-manage__composer-foot .button-vue:where(:not(.cn-look-nextcloud *)) {
@@ -756,7 +756,8 @@
756
756
  flex: none;
757
757
  }
758
758
 
759
- .cn-look-board .cn-index-page__notice--page {
759
+ /* Two classes, so it outweighs NcNoteCard's scoped `.notecard[data-v]` margin, which loads later. */
760
+ .cn-look-board .cn-index-page__notice.cn-index-page__notice--page {
760
761
  margin-top: 0;
761
762
  }
762
763
 
@@ -2220,6 +2221,16 @@
2220
2221
  font-weight: 700;
2221
2222
  }
2222
2223
 
2224
+ /* A waiting age takes the inks a card's deadline takes (DqTeamwachtrij "6
2225
+ dagen" #a30000), not the theme's brighter text-error. */
2226
+ .cn-look-board .cn-cell-renderer__age--error:not(.cn-look-nextcloud *) {
2227
+ color: var(--color-error-text);
2228
+ }
2229
+
2230
+ .cn-look-board .cn-cell-renderer__age--warning:not(.cn-look-nextcloud *) {
2231
+ color: var(--color-warning-text);
2232
+ }
2233
+
2223
2234
  /* A pill in a trailing cell stays inside the cell's width and ends in an
2224
2235
  ellipsis, instead of running over the next cell (DqTeamwachtrij). */
2225
2236
  .cn-look-board .cn-object-row__trail .cn-cell-renderer:not(.cn-look-nextcloud *) {
@@ -2270,6 +2281,25 @@
2270
2281
  its parts and radius 8, its name 6px from top and bottom at 14px/600; the
2271
2282
  row's manage menu a 34px round button.
2272
2283
  @spec openspec/changes/board-saved-views-panel-rows/specs/board-saved-views-panel-rows/spec.md */
2284
+ /* The panel's rhythm (DqFilterBeheren): the panel 2px lower, 6px between
2285
+ its parts, 8px between Save view and its note, 22px above a group
2286
+ heading whose row is 22px tall, and 2px between the rows of a group.
2287
+ @spec openspec/changes/board-saved-views-panel-rhythm/specs/board-saved-views-panel-rhythm/spec.md */
2288
+ .cn-look-board .cn-saved-views-panel:not(.cn-look-nextcloud *) {
2289
+ gap: 6px;
2290
+ padding-top: 2px;
2291
+ }
2292
+
2293
+ .cn-look-board .cn-saved-views-panel:not(.cn-look-nextcloud *) .cn-saved-views-panel__head {
2294
+ gap: 8px;
2295
+ }
2296
+
2297
+ .cn-look-board .cn-saved-views-panel:not(.cn-look-nextcloud *) .cn-saved-views-panel__list {
2298
+ display: flex;
2299
+ flex-direction: column;
2300
+ gap: 2px;
2301
+ }
2302
+
2273
2303
  .cn-look-board .cn-saved-views-panel:not(.cn-look-nextcloud *) .cn-saved-views-panel__head .button-vue {
2274
2304
  --button-size: var(--cn-board-control-height);
2275
2305
  }
@@ -2325,7 +2355,8 @@
2325
2355
  ink, never bold.
2326
2356
  @spec openspec/changes/board-saved-views-panel-type/specs/board-saved-views-panel-type/spec.md */
2327
2357
  .cn-look-board .cn-saved-views-panel:not(.cn-look-nextcloud *) .cn-saved-views-panel__section {
2328
- margin: 12px 0 0;
2358
+ margin: 16px 0 0;
2359
+ padding-bottom: 4px;
2329
2360
  font-size: 15px;
2330
2361
  font-weight: 700;
2331
2362
  line-height: 1.2;
@@ -2335,7 +2366,7 @@
2335
2366
  .cn-look-board .cn-saved-views-panel:not(.cn-look-nextcloud *) .cn-saved-views-panel__note {
2336
2367
  font-size: 13px;
2337
2368
  font-weight: 400;
2338
- line-height: 1.3;
2369
+ line-height: normal;
2339
2370
  color: var(--color-text-maxcontrast);
2340
2371
  }
2341
2372