@conduction/nextcloud-vue 2.156.0 → 2.157.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue.js +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js +38 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js.map +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue3.js.map +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue.js +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue.js +1 -1
- package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js +5 -3
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js.map +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue.js +1 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js +2 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js.map +1 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js +10 -3
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +14 -4
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +3 -3
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +2 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnMailTab/CnMailTab.vue.js +1 -1
- package/dist/esm/components/CnMailTab/CnMailTab.vue2.js +4 -4
- package/dist/esm/components/CnMailTab/CnMailTab.vue2.js.map +1 -1
- package/dist/esm/components/CnMailTab/CnMailTab.vue3.js.map +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue.js +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js +3 -0
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js.map +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js +10 -2
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js.map +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue.js +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js +6 -0
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js.map +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js +2 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js.map +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue.js +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue2.js.map +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js +27 -24
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js.map +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue.js +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue2.js.map +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue3.js.map +1 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue.js +1 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js +4 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnStagesWidget/stagesModel.js +10 -2
- package/dist/esm/components/CnStagesWidget/stagesModel.js.map +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue.js +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js +61 -2
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js.map +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js +68 -44
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue.js +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js +13 -3
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +720 -401
- package/dist/esm/utils/dynamicProperties.js +20 -2
- package/dist/esm/utils/dynamicProperties.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +880 -684
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +720 -401
- package/package.json +1 -1
- package/src/components/CnAuditTrailCard/CnAuditTrailCard.vue +38 -1
- package/src/components/CnBannerWidget/CnBannerWidget.vue +5 -1
- package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +12 -5
- package/src/components/CnCountdownWidget/CnCountdownWidget.vue +12 -0
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +5 -3
- package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +1 -0
- package/src/components/CnDuplicateWarning/CnDuplicateWarning.vue +8 -4
- package/src/components/CnFactsWidget/CnFactsWidget.vue +31 -6
- package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +4 -2
- package/src/components/CnFormDialog/CnFormDialog.vue +1 -0
- package/src/components/CnMailTab/CnMailTab.vue +4 -4
- package/src/components/CnNotificationMatrix/CnNotificationMatrix.vue +20 -0
- package/src/components/CnPartyPicker/CnPartyPicker.vue +7 -0
- package/src/components/CnSavedViewLookFields/CnSavedViewLookFields.vue +27 -20
- package/src/components/CnSearchSelect/CnSearchSelect.vue +3 -1
- package/src/components/CnStagesWidget/CnStagesWidget.vue +4 -1
- package/src/components/CnStagesWidget/stagesModel.js +10 -2
- package/src/components/CnTimelineWidget/CnTimelineManage.vue +69 -4
- package/src/css/dialog.css +33 -0
- package/src/css/look-board-detail.css +10 -3
- package/src/css/look-board-index.css +34 -3
- package/src/css/look-board.css +191 -4
- package/src/integrations/builtin/email/CnEmailTab.vue +13 -3
- package/src/utils/dynamicProperties.js +19 -1
|
@@ -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
|
-
|
|
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) {
|
package/src/css/dialog.css
CHANGED
|
@@ -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.
|
|
@@ -2449,6 +2449,12 @@
|
|
|
2449
2449
|
color: var(--color-text-maxcontrast);
|
|
2450
2450
|
}
|
|
2451
2451
|
|
|
2452
|
+
/* The meta line sits 2px under the title (the column's gap); the calendar
|
|
2453
|
+
card's own 2px margin made it 4 and the row 58 against 56 (r33). */
|
|
2454
|
+
.cn-look-board .cn-detail-page .cn-calendar-card__meta:not(.cn-look-nextcloud *) {
|
|
2455
|
+
margin-top: 0;
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2452
2458
|
/* The Deck card's title is a link the theme inks as one with !important
|
|
2453
2459
|
(blue, underlined); the board draws it as the row's title, so the theme's
|
|
2454
2460
|
own link variables are set to the title ink here. */
|
|
@@ -2731,15 +2737,16 @@
|
|
|
2731
2737
|
}
|
|
2732
2738
|
|
|
2733
2739
|
/* The history card's note composer and entries as DqZaakHistorie draws them
|
|
2734
|
-
(r31 strict verdict): the note field three lines high on
|
|
2740
|
+
(r31 strict verdict): the note field three lines high on the normal line
|
|
2741
|
+
(76px, as the boards draw their textareas since design-system PR 613) with
|
|
2735
2742
|
10px 12px inside, the add button at the board's 40px, the title-row
|
|
2736
2743
|
buttons 12px apart, and an entry the requester sees marked with a 12px
|
|
2737
2744
|
teal pill.
|
|
2738
2745
|
@spec openspec/changes/board-history-composer/specs/timeline/spec.md */
|
|
2739
2746
|
.cn-look-board .cn-timeline-manage .cn-timeline-manage__draft:not(.cn-look-nextcloud *) {
|
|
2740
|
-
min-height: calc(3 * 1.
|
|
2747
|
+
min-height: calc(3 * 1.2em + 22px);
|
|
2741
2748
|
padding: 10px 12px;
|
|
2742
|
-
line-height:
|
|
2749
|
+
line-height: normal;
|
|
2743
2750
|
}
|
|
2744
2751
|
|
|
2745
2752
|
.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
|
-
|
|
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:
|
|
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:
|
|
2369
|
+
line-height: normal;
|
|
2339
2370
|
color: var(--color-text-maxcontrast);
|
|
2340
2371
|
}
|
|
2341
2372
|
|
package/src/css/look-board.css
CHANGED
|
@@ -377,6 +377,63 @@
|
|
|
377
377
|
line-height: normal;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
+
/* A card's header link under its title ("Alles bekijken") sits 10px under the
|
|
381
|
+
title at the font's normal line height, as the boards wrap it there
|
|
382
|
+
(DqDashboard: the first row 46px under the title, live 42).
|
|
383
|
+
@spec openspec/changes/board-link-under-title-gap/specs/board-link-under-title-gap/spec.md#requirement-a-board-header-link-under-the-title-sits-10px-under-it */
|
|
384
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper__header-link--under-title {
|
|
385
|
+
line-height: normal;
|
|
386
|
+
margin-top: 8px;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/* A task list with the subject and due line (DqMijnWerk "Mijn taken") wraps
|
|
390
|
+
its title and subject instead of cutting them off, sets the line at the
|
|
391
|
+
font's normal line height 4px under the title, and ends 20px under its last
|
|
392
|
+
row, as the board draws it: rows of 64 to 100px in a 555px card (r33: one
|
|
393
|
+
line each, 447px).
|
|
394
|
+
@spec openspec/changes/board-task-rows-as-drawn/specs/board-task-rows-as-drawn/spec.md#requirement-a-board-task-row-wraps-as-drawn */
|
|
395
|
+
.cn-look-board .cn-tasks-widget--list:has(.cn-tasks-widget__meta--split) {
|
|
396
|
+
padding-bottom: 20px;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.cn-look-board .cn-tasks-widget__row:has(.cn-tasks-widget__meta--split) .cn-tasks-widget__body {
|
|
400
|
+
gap: 4px;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.cn-look-board .cn-tasks-widget__row:has(.cn-tasks-widget__meta--split) .cn-tasks-widget__name {
|
|
404
|
+
white-space: normal;
|
|
405
|
+
overflow: visible;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.cn-look-board .cn-tasks-widget__meta--split {
|
|
409
|
+
line-height: normal;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.cn-look-board .cn-tasks-widget__meta--split .cn-tasks-widget__subject {
|
|
413
|
+
white-space: normal;
|
|
414
|
+
overflow: visible;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/* A sortable column of a table on a dashboard card shows its idle chevron only
|
|
418
|
+
on hover or focus, outside the column's width: the boards draw these heads as
|
|
419
|
+
text (DqDoorlooptijd "Prestaties per zaaktype" 569px; the 14px chevron and its
|
|
420
|
+
4px gap made it 641). A sorted column keeps its chevron in place.
|
|
421
|
+
@spec openspec/changes/board-dashboard-table-idle-chevron/specs/board-dashboard-table-idle-chevron/spec.md#requirement-an-idle-sort-chevron-on-a-dashboard-card-takes-no-room */
|
|
422
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper__content .cn-table-header__sort {
|
|
423
|
+
position: relative;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper__content .cn-table-header__chevron--idle {
|
|
427
|
+
position: absolute;
|
|
428
|
+
inset-inline-start: calc(100% + 2px);
|
|
429
|
+
opacity: 0;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper__content th.cn-table-header--sortable:hover .cn-table-header__chevron--idle,
|
|
433
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-widget-wrapper__content .cn-table-header__sort:focus-visible .cn-table-header__chevron--idle {
|
|
434
|
+
opacity: 1;
|
|
435
|
+
}
|
|
436
|
+
|
|
380
437
|
/* ---- A workspace filter form (CnWorkspaceFilterWidget) ----------------- */
|
|
381
438
|
/* The boards draw the form's field and its load button 40px tall, the button
|
|
382
439
|
16px in at both sides (DqTermijnen "Jaar" with "Rapport laden"); the form
|
|
@@ -687,6 +744,14 @@
|
|
|
687
744
|
button ("Uit menu halen") is an outlined secondary button, and the select
|
|
688
745
|
that adds a row runs the field's full width.
|
|
689
746
|
@spec openspec/changes/board-ordered-list-field/specs/board-ordered-list-field/spec.md */
|
|
747
|
+
/* A row's buttons sit on its 10px padding with no margin of their own, so a
|
|
748
|
+
row is 61px as the board draws it (Nextcloud's 3px button margin made it
|
|
749
|
+
66, DqPersoonlijkeInstellingen "Weergaven in mijn menu").
|
|
750
|
+
@spec openspec/changes/board-ordered-list-field/specs/board-ordered-list-field/spec.md */
|
|
751
|
+
.cn-look-board .cn-ordered-list-field__button:not(.cn-look-nextcloud *) {
|
|
752
|
+
margin: 0;
|
|
753
|
+
}
|
|
754
|
+
|
|
690
755
|
.cn-look-board .cn-ordered-list-field__button--text:not(.cn-look-nextcloud *) {
|
|
691
756
|
box-sizing: border-box;
|
|
692
757
|
height: 34px;
|
|
@@ -1944,11 +2009,12 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
1944
2009
|
|
|
1945
2010
|
/* A settings card's text area sets its lines at 1.5, 8px 12px in, as the
|
|
1946
2011
|
boards draw them (56 board textareas; NcTextArea took the browser's
|
|
1947
|
-
leading, ~1.13).
|
|
2012
|
+
leading, ~1.13). The padding carries `!important` because a theme sets
|
|
2013
|
+
every textarea to 5px 12px with `!important` (r33: 124.5px, board 130.5).
|
|
1948
2014
|
@spec openspec/changes/board-settings-textarea-leading/specs/board-settings-textarea-leading/spec.md#requirement-a-board-settings-text-area-sets-its-lines-at-15 */
|
|
1949
2015
|
.cn-look-board .settings-section:not(.cn-look-nextcloud *) .textarea__input {
|
|
1950
2016
|
box-sizing: border-box;
|
|
1951
|
-
padding: 8px 12px;
|
|
2017
|
+
padding: 8px 12px !important;
|
|
1952
2018
|
font-size: 15px;
|
|
1953
2019
|
line-height: 1.5;
|
|
1954
2020
|
}
|
|
@@ -2522,11 +2588,12 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
2522
2588
|
}
|
|
2523
2589
|
|
|
2524
2590
|
/* ---- Macros rows (CnMacrosWidget) ---------------------------------------- */
|
|
2525
|
-
/* A macro reads as the boards draw a card's list row: the name at
|
|
2526
|
-
over its 13px line, both at the font's normal line height, 56px a row
|
|
2591
|
+
/* A macro reads as the boards draw a card's list row: the name 15px at
|
|
2592
|
+
weight 500 over its 13px line, both at the font's normal line height, 56px a row
|
|
2527
2593
|
(DqZaakAssistent "Macro's").
|
|
2528
2594
|
@spec openspec/changes/board-macros-rows/specs/board-macros-rows/spec.md#requirement-a-board-macros-row-is-a-board-list-row */
|
|
2529
2595
|
.cn-look-board .cn-macros-widget__row:not(.cn-look-nextcloud *) .cn-macros-widget__name {
|
|
2596
|
+
font-size: 15px;
|
|
2530
2597
|
font-weight: 500;
|
|
2531
2598
|
line-height: normal;
|
|
2532
2599
|
}
|
|
@@ -2704,6 +2771,31 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
2704
2771
|
line-height: normal;
|
|
2705
2772
|
}
|
|
2706
2773
|
|
|
2774
|
+
/* What the entry is about follows its message in the normal weight
|
|
2775
|
+
("Document beoordeeld: Mail aannemer over planning", DqZaakHistorie). */
|
|
2776
|
+
.cn-look-board .cn-timeline-manage__detail:not(.cn-look-nextcloud *) {
|
|
2777
|
+
font-weight: 400;
|
|
2778
|
+
}
|
|
2779
|
+
|
|
2780
|
+
/* The icon its kind declares sits in the rail circle in the soft ink, in
|
|
2781
|
+
place of the dot. */
|
|
2782
|
+
.cn-look-board .cn-timeline-manage__entry-icon:not(.cn-look-nextcloud *) {
|
|
2783
|
+
position: absolute;
|
|
2784
|
+
inset-block-start: 0;
|
|
2785
|
+
inset-inline-start: 0;
|
|
2786
|
+
z-index: 1;
|
|
2787
|
+
display: flex;
|
|
2788
|
+
align-items: center;
|
|
2789
|
+
justify-content: center;
|
|
2790
|
+
width: 34px;
|
|
2791
|
+
height: 34px;
|
|
2792
|
+
color: var(--cn-board-text-soft);
|
|
2793
|
+
}
|
|
2794
|
+
|
|
2795
|
+
.cn-look-board .cn-timeline-manage__entry:has(> .cn-timeline-manage__entry-icon):not(.cn-look-nextcloud *)::before {
|
|
2796
|
+
background: var(--color-background-dark);
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2707
2799
|
.cn-look-board .cn-timeline-manage__head:not(.cn-look-nextcloud *) {
|
|
2708
2800
|
gap: 0;
|
|
2709
2801
|
font-size: 13px;
|
|
@@ -2881,6 +2973,27 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
2881
2973
|
border-top: 0;
|
|
2882
2974
|
}
|
|
2883
2975
|
|
|
2976
|
+
/* Its due line sits at the font's normal line height, its footer link 10px
|
|
2977
|
+
under the last row as a block of its own (an inline link's padding did not
|
|
2978
|
+
move it), and the list ends 20px under the link: DqDagAfsluiten "Morgen
|
|
2979
|
+
eerst" 195px, r33 188 (by injection 194.9).
|
|
2980
|
+
@spec openspec/changes/board-stacked-list-as-drawn/specs/board-stacked-list-as-drawn/spec.md#requirement-a-board-stacked-list-is-drawn-as-the-board */
|
|
2981
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked .cn-record-list__due--below {
|
|
2982
|
+
line-height: normal;
|
|
2983
|
+
}
|
|
2984
|
+
|
|
2985
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked .cn-record-list__footer-link {
|
|
2986
|
+
display: block;
|
|
2987
|
+
width: fit-content;
|
|
2988
|
+
margin-top: 10px;
|
|
2989
|
+
padding-top: 0;
|
|
2990
|
+
line-height: normal;
|
|
2991
|
+
}
|
|
2992
|
+
|
|
2993
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-list--stacked:has(.cn-record-list__footer-link) {
|
|
2994
|
+
padding-bottom: 20px;
|
|
2995
|
+
}
|
|
2996
|
+
|
|
2884
2997
|
/* A dashboard card's task list and decision list rule above every row, the
|
|
2885
2998
|
first one under the title included, as the record lists with ruleAbove do
|
|
2886
2999
|
(DqMijnWerk "Mijn taken", "Mijn archiefbeoordelingen"); no rule under the
|
|
@@ -2909,6 +3022,33 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
2909
3022
|
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-notes__all-actions {
|
|
2910
3023
|
flex: 1 1 100%;
|
|
2911
3024
|
justify-content: space-between;
|
|
3025
|
+
padding-inline: 1px;
|
|
3026
|
+
}
|
|
3027
|
+
|
|
3028
|
+
/* The closing pair as the board draws it: Annuleren 14px in with no inner text
|
|
3029
|
+
padding, Dag afsluiten 16px in with an 18px icon, 24px from the card edge
|
|
3030
|
+
(r33 DqDagAfsluiten: Annuleren 4px wider, Dag afsluiten 6px narrower, the
|
|
3031
|
+
gap between them 517 against 512.8; by injection 513.1).
|
|
3032
|
+
@spec openspec/changes/board-close-day-pair-as-drawn/specs/board-close-day-pair-as-drawn/spec.md#requirement-the-board-closing-pair-is-drawn-as-the-board */
|
|
3033
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-notes__all-actions .button-vue.button-vue {
|
|
3034
|
+
--button-padding: 14px;
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-notes__all-actions .button-vue.button-vue[data-testid="cn-record-list-record-all-button"] {
|
|
3038
|
+
--button-padding: 16px;
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-notes__all-actions .button-vue .button-vue__text.button-vue__text {
|
|
3042
|
+
padding-inline: 0;
|
|
3043
|
+
}
|
|
3044
|
+
|
|
3045
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-notes__all-actions .button-vue__icon {
|
|
3046
|
+
width: 18px;
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
.cn-look-board .cn-dashboard-page:not(.cn-look-nextcloud *) .cn-record-notes__all-actions .button-vue__icon .material-design-icon__svg {
|
|
3050
|
+
width: 18px;
|
|
3051
|
+
height: 18px;
|
|
2912
3052
|
}
|
|
2913
3053
|
|
|
2914
3054
|
/* Hover: the whole row takes the hover ground, 8px beyond the text so the
|
|
@@ -3376,6 +3516,14 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
3376
3516
|
color: var(--color-text-maxcontrast);
|
|
3377
3517
|
}
|
|
3378
3518
|
|
|
3519
|
+
/* The darkest step of a scale matrix sets its figure in white, as the boards
|
|
3520
|
+
do (DqProcesanalyse "70 d"; live the light primary tint, 234,240,247).
|
|
3521
|
+
@spec openspec/changes/board-matrix-darkest-white/specs/board-matrix-darkest-white/spec.md#requirement-the-darkest-board-matrix-step-is-white */
|
|
3522
|
+
.cn-look-board .cn-chart-widget__matrix:not(.cn-look-nextcloud *) .cn-chart-widget__matrix-cell--4 {
|
|
3523
|
+
--nldesign-color-on-surface: var(--color-primary-element-text);
|
|
3524
|
+
color: var(--color-primary-element-text);
|
|
3525
|
+
}
|
|
3526
|
+
|
|
3379
3527
|
/* ---- A tree menu on a card (DqCatalogus "Zaaktypen, Attributen ...") ---- */
|
|
3380
3528
|
/* The board draws a card of folders: 14px inside the card, rows 2px apart,
|
|
3381
3529
|
each 8px 10px with an 8px corner at 15px, the open folder on the primary
|
|
@@ -3542,6 +3690,35 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
3542
3690
|
border-radius: 10px;
|
|
3543
3691
|
}
|
|
3544
3692
|
|
|
3693
|
+
/* ---- An empty state on a settings card ---------------------------------- */
|
|
3694
|
+
/* A 48px icon in the control colour over a 20px bold line, 8px apart and 12px
|
|
3695
|
+
in at top and bottom: 104px (DqBeheerGeavanceerd "StUF-ZKN-auditlog",
|
|
3696
|
+
"Tenant-onboarding"); NcEmptyContent drew a 64px faded icon over a 30px
|
|
3697
|
+
line, 127px. Its icon size carries `!important`, so this one does too.
|
|
3698
|
+
@spec openspec/changes/board-settings-empty-state/specs/board-settings-empty-state/spec.md#requirement-a-board-settings-empty-state-is-104px */
|
|
3699
|
+
.cn-look-board .settings-section:not(.cn-look-nextcloud *) .empty-content {
|
|
3700
|
+
gap: 8px;
|
|
3701
|
+
padding: 12px 0;
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
.cn-look-board .settings-section:not(.cn-look-nextcloud *) .empty-content__icon {
|
|
3705
|
+
width: 48px;
|
|
3706
|
+
height: 48px;
|
|
3707
|
+
margin: 0;
|
|
3708
|
+
opacity: 1;
|
|
3709
|
+
color: var(--cn-board-control-border);
|
|
3710
|
+
}
|
|
3711
|
+
|
|
3712
|
+
.cn-look-board .settings-section:not(.cn-look-nextcloud *) .empty-content__icon svg {
|
|
3713
|
+
width: 48px !important;
|
|
3714
|
+
height: 48px !important;
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
.cn-look-board .settings-section:not(.cn-look-nextcloud *) .empty-content__name {
|
|
3718
|
+
margin: 0;
|
|
3719
|
+
line-height: 24px;
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3545
3722
|
/* ---- A setup step's choice radio ---------------------------------------- */
|
|
3546
3723
|
/* The setup wizard's choice cards draw their radio 20px square in the primary
|
|
3547
3724
|
colour (DqInstellen "Voorbeeldgegevens laden"); the browser draws 13px, and
|
|
@@ -3628,6 +3805,15 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .v-popper__popper.action-
|
|
|
3628
3805
|
border-radius: 5px;
|
|
3629
3806
|
}
|
|
3630
3807
|
|
|
3808
|
+
/* Its label wraps in the 150px column instead of being cut off, as the board
|
|
3809
|
+
breaks "Parkeervergunning bewoners" over two lines (r33: one line with an
|
|
3810
|
+
ellipsis, a 234px section against 249).
|
|
3811
|
+
@spec openspec/changes/board-section-bar-label-wraps/specs/board-section-bar-label-wraps/spec.md#requirement-a-board-section-bar-label-wraps */
|
|
3812
|
+
.cn-look-board .cn-sections-widget__section .cn-chart-widget__bar-list:not(.cn-look-nextcloud *) .cn-chart-widget__bar-label {
|
|
3813
|
+
white-space: normal;
|
|
3814
|
+
overflow: visible;
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3631
3817
|
/* A bar list with the value at the bar's end (DqProcesanalyse "Doorlooptijd
|
|
3632
3818
|
per status") sets its rows in 13px, the label in the secondary text, the
|
|
3633
3819
|
value in the main ink at 600, rows 34px apart.
|
|
@@ -3942,6 +4128,7 @@ html :where(.cn-look-board) :is(h2, h3, h5, h6):where(.cn-inner-heading) {
|
|
|
3942
4128
|
line-height: normal;
|
|
3943
4129
|
}
|
|
3944
4130
|
|
|
4131
|
+
.cn-look-board .cn-saved-view-look:not(.cn-look-nextcloud *) .cn-saved-view-look__icon-field,
|
|
3945
4132
|
.cn-look-board .cn-saved-view-look:not(.cn-look-nextcloud *) .cn-saved-view-look__icons {
|
|
3946
4133
|
gap: 7px;
|
|
3947
4134
|
}
|
|
@@ -243,6 +243,11 @@ export default {
|
|
|
243
243
|
*
|
|
244
244
|
* @return {string} The composer URL.
|
|
245
245
|
*/
|
|
246
|
+
/** @return {string} The record, register and schema the list is for. */
|
|
247
|
+
bindingKey() {
|
|
248
|
+
return [this.register, this.schema, this.objectId].join('/')
|
|
249
|
+
},
|
|
250
|
+
|
|
246
251
|
composeUrl() {
|
|
247
252
|
return (typeof OC !== 'undefined' && typeof OC.generateUrl === 'function')
|
|
248
253
|
? OC.generateUrl('/apps/mail/box/draft')
|
|
@@ -251,10 +256,15 @@ export default {
|
|
|
251
256
|
},
|
|
252
257
|
|
|
253
258
|
watch: {
|
|
254
|
-
|
|
259
|
+
/*
|
|
260
|
+
* The record, its register and its schema together: on a detail page
|
|
261
|
+
* the id is known first and the register and schema follow, and the
|
|
262
|
+
* list loads once all three are there.
|
|
263
|
+
*/
|
|
264
|
+
bindingKey: {
|
|
255
265
|
immediate: true,
|
|
256
|
-
handler(
|
|
257
|
-
if (
|
|
266
|
+
handler() {
|
|
267
|
+
if (this.register && this.schema && this.objectId) {
|
|
258
268
|
this.reset()
|
|
259
269
|
this.fetchMessages()
|
|
260
270
|
}
|
|
@@ -103,6 +103,9 @@ const DEFAULT_MAP = {
|
|
|
103
103
|
default: 'defaultValue',
|
|
104
104
|
hideOnCreate: 'hideOnCreate',
|
|
105
105
|
items: 'items',
|
|
106
|
+
label: 'title',
|
|
107
|
+
sort: 'order',
|
|
108
|
+
enumLabels: 'enumLabels',
|
|
106
109
|
}
|
|
107
110
|
|
|
108
111
|
/**
|
|
@@ -325,8 +328,16 @@ export function propertiesFromDefinitions(definitions, config = {}, options = {}
|
|
|
325
328
|
|
|
326
329
|
const properties = {}
|
|
327
330
|
const required = []
|
|
331
|
+
// A definition's own `order` places it; one without follows those that have one, as given.
|
|
332
|
+
const place = (record) => {
|
|
333
|
+
const value = record ? Number(mapped(record, map, 'sort')) : NaN
|
|
334
|
+
return Number.isFinite(value) ? value : Infinity
|
|
335
|
+
}
|
|
328
336
|
const list = (Array.isArray(definitions) ? definitions : [])
|
|
329
337
|
.filter((record) => !(options.create === true && record && mapped(record, map, 'hideOnCreate') === true))
|
|
338
|
+
.map((record, index) => ({ record, index }))
|
|
339
|
+
.sort((a, b) => (place(a.record) - place(b.record)) || (a.index - b.index))
|
|
340
|
+
.map(({ record }) => record)
|
|
330
341
|
|
|
331
342
|
list.forEach((record, index) => {
|
|
332
343
|
if (!record || !record.id) {
|
|
@@ -337,6 +348,7 @@ export function propertiesFromDefinitions(definitions, config = {}, options = {}
|
|
|
337
348
|
const base = typeMap[declaredType] || typeMap.string
|
|
338
349
|
|
|
339
350
|
const title = mapped(record, map, 'title')
|
|
351
|
+
const label = mapped(record, map, 'label')
|
|
340
352
|
const description = mapped(record, map, 'description')
|
|
341
353
|
const enumValues = mapped(record, map, 'enum')
|
|
342
354
|
const defaultValue = mapped(record, map, 'default')
|
|
@@ -345,7 +357,8 @@ export function propertiesFromDefinitions(definitions, config = {}, options = {}
|
|
|
345
357
|
|
|
346
358
|
const prop = {
|
|
347
359
|
...base,
|
|
348
|
-
|
|
360
|
+
// The definition's own label as written ("Soort verzoeker"), else its name made readable.
|
|
361
|
+
title: (typeof label === 'string' && label.trim() !== '') ? label : (humaniseName(title) || key),
|
|
349
362
|
// A definition record separates its short `definition` from its
|
|
350
363
|
// longer `description`; either may be absent, and an empty string
|
|
351
364
|
// must not become the helper text "undefined".
|
|
@@ -362,6 +375,11 @@ export function propertiesFromDefinitions(definitions, config = {}, options = {}
|
|
|
362
375
|
}
|
|
363
376
|
if (Array.isArray(enumValues) && enumValues.length > 0) {
|
|
364
377
|
prop.enum = [...enumValues]
|
|
378
|
+
// What each option reads ("digitaal" shown as "Digitaal"), when the definition says.
|
|
379
|
+
const enumLabels = mapped(record, map, 'enumLabels')
|
|
380
|
+
if (enumLabels && typeof enumLabels === 'object' && !Array.isArray(enumLabels)) {
|
|
381
|
+
prop.enumLabels = { ...enumLabels }
|
|
382
|
+
}
|
|
365
383
|
}
|
|
366
384
|
if (defaultValue !== undefined && defaultValue !== null && defaultValue !== '') {
|
|
367
385
|
prop.default = defaultValue
|