@conduction/nextcloud-vue 2.170.0 → 2.171.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.
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue.js +9 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue.js.map +1 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue2.js +242 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue2.js.map +1 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue3.js +200 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroup.vue3.js.map +1 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue.js +9 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue.js.map +1 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue2.js +186 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue2.js.map +1 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue3.js +24 -0
- package/dist/esm/components/CnConditionGroupEditor/CnConditionGroupEditor.vue3.js.map +1 -0
- package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue.js +1 -1
- package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue2.js +3 -15
- package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue2.js.map +1 -1
- package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue3.js +16 -61
- package/dist/esm/components/CnConditionListEditor/CnConditionListEditor.vue3.js.map +1 -1
- package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue.js +9 -0
- package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue.js.map +1 -0
- package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue2.js +120 -0
- package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue2.js.map +1 -0
- package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue3.js +86 -0
- package/dist/esm/components/CnConditionListEditor/CnConditionRow.vue3.js.map +1 -0
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +9 -9
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue.js +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue.js +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailWidgetHost/CnDetailWidgetHost.vue3.js.map +1 -1
- package/dist/esm/components/CnDialogActions/CnDialogActions.vue.js +8 -0
- package/dist/esm/components/CnDialogActions/CnDialogActions.vue.js.map +1 -0
- package/dist/esm/components/CnDialogActions/CnDialogActions.vue2.js +101 -0
- package/dist/esm/components/CnDialogActions/CnDialogActions.vue2.js.map +1 -0
- package/dist/esm/components/CnDialogActions/CnDialogActions.vue3.js +54 -0
- package/dist/esm/components/CnDialogActions/CnDialogActions.vue3.js.map +1 -0
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +14 -2
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/filesBrowser.js +21 -2
- package/dist/esm/components/CnFilesBrowser/filesBrowser.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +7 -0
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +2 -2
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js +11 -0
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js +2 -1
- package/dist/esm/components/CnFlowsPage/CnFlowEditorPage.vue3.js.map +1 -1
- package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue.js +1 -1
- package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnLinkedWidget/CnLinkedWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue.js +9 -0
- package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue.js.map +1 -0
- package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue2.js +248 -0
- package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue2.js.map +1 -0
- package/dist/esm/components/{CnMassDeleteDialog/CnMassDeleteDialog.vue3.js → CnMassActionDialog/CnMassActionDialog.vue3.js} +66 -52
- package/dist/esm/components/CnMassActionDialog/CnMassActionDialog.vue3.js.map +1 -0
- package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue.js +0 -3
- package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue.js.map +1 -1
- package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue2.js +25 -121
- package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnNotesCard/CnNotesCard.vue.js +1 -1
- package/dist/esm/components/CnNotesCard/CnNotesCard.vue2.js +11 -3
- package/dist/esm/components/CnNotesCard/CnNotesCard.vue2.js.map +1 -1
- package/dist/esm/components/CnNotesCard/CnNotesCard.vue3.js +1 -1
- package/dist/esm/components/CnNotesCard/CnNotesCard.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue.js +1 -1
- package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue2.js +21 -1
- package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue3.js +2 -2
- package/dist/esm/components/CnObjectSidebar/CnNotesTab.vue3.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue.js +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js +23 -5
- package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue.js +1 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue2.js +3 -0
- package/dist/esm/components/CnTreeView/CnTreeView.vue2.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue3.js +14 -4
- package/dist/esm/components/CnTreeView/CnTreeView.vue3.js.map +1 -1
- package/dist/esm/dialogs/CnConfirmDialog.vue.js +1 -1
- package/dist/esm/dialogs/CnConfirmDialog.vue2.js.map +1 -1
- package/dist/esm/dialogs/CnConfirmDialog.vue3.js +5 -3
- package/dist/esm/dialogs/CnConfirmDialog.vue3.js.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +16 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +16 -1
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +638 -302
- package/dist/esm/utils/noteThreads.js +14 -2
- package/dist/esm/utils/noteThreads.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +11316 -10074
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +638 -302
- package/l10n/en.json +16 -1
- package/l10n/nl.json +16 -1
- package/package.json +1 -1
- package/scripts/.jsdoc-baselines.json +1 -1
- package/src/components/CnConditionGroupEditor/CnConditionGroup.vue +528 -0
- package/src/components/CnConditionGroupEditor/CnConditionGroupEditor.vue +211 -0
- package/src/components/CnConditionGroupEditor/index.js +9 -0
- package/src/components/CnConditionListEditor/CnConditionListEditor.vue +15 -78
- package/src/components/CnConditionListEditor/CnConditionRow.vue +226 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +8 -8
- package/src/components/CnDetailWidgetHost/CnDetailWidgetHeaderItems.vue +6 -0
- package/src/components/CnDetailWidgetHost/CnDetailWidgetHost.vue +0 -6
- package/src/components/CnDialogActions/CnDialogActions.vue +124 -0
- package/src/components/CnDialogActions/index.js +7 -0
- package/src/components/CnFilesBrowser/CnFilesBrowser.vue +15 -3
- package/src/components/CnFilesBrowser/filesBrowser.js +21 -2
- package/src/components/CnFlowsPage/CnFlowBoard.vue +10 -3
- package/src/components/CnFlowsPage/CnFlowEditorPage.vue +12 -0
- package/src/components/CnLinkedWidget/CnLinkedWidget.vue +7 -0
- package/src/components/CnMassActionDialog/CnMassActionDialog.vue +382 -0
- package/src/components/CnMassActionDialog/index.js +7 -0
- package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.md +4 -0
- package/src/components/CnMassDeleteDialog/CnMassDeleteDialog.vue +25 -254
- package/src/components/CnNotesCard/CnNotesCard.vue +12 -4
- package/src/components/CnObjectSidebar/CnNotesTab.vue +23 -3
- package/src/components/CnTreeView/CnTreeNode.vue +10 -1
- package/src/components/CnTreeView/CnTreeView.vue +9 -0
- package/src/components/index.js +3 -0
- package/src/css/context-menu.css +7 -0
- package/src/css/look-board-detail.css +120 -1
- package/src/css/look-board.css +43 -2
- package/src/dialogs/CnConfirmDialog.vue +3 -1
- package/src/index.js +3 -0
- package/src/utils/noteThreads.js +13 -1
- package/dist/esm/components/CnMassDeleteDialog/CnMassDeleteDialog.vue3.js.map +0 -1
|
@@ -1,113 +1,8 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<CnDialog
|
|
3
|
-
:look="look"
|
|
4
|
-
:width="width"
|
|
5
|
-
defaultWidth="confirm"
|
|
6
|
-
:eyebrow="eyebrow"
|
|
7
|
-
:subtitle="subtitle"
|
|
8
|
-
:name="dialogTitle"
|
|
9
|
-
size="normal"
|
|
10
|
-
:noClose="loading"
|
|
11
|
-
@closing="$emit('close')">
|
|
12
|
-
<!-- Review phase -->
|
|
13
|
-
<div v-if="result === null"
|
|
14
|
-
class="cn-mass-delete__review"
|
|
15
|
-
data-testid="cn-modal"
|
|
16
|
-
data-testid-modal="cn-mass-delete-dialog"
|
|
17
|
-
data-testid-phase="review">
|
|
18
|
-
<template v-if="isBoardLook">
|
|
19
|
-
<p class="cn-dialog__sentence" data-testid="cn-mass-delete-sentence">
|
|
20
|
-
{{ sentenceParts[0] }}<strong class="cn-dialog__name">{{ countLabel }}</strong>{{ sentenceParts[1] }}
|
|
21
|
-
<template v-if="irreversible">
|
|
22
|
-
{{ irreversibleText }}
|
|
23
|
-
</template>
|
|
24
|
-
</p>
|
|
25
|
-
<p class="cn-dialog__note"
|
|
26
|
-
role="note"
|
|
27
|
-
data-testid="cn-mass-delete-note">
|
|
28
|
-
<AlertOutline :size="20" aria-hidden="true" />
|
|
29
|
-
<span>{{ warningText }}</span>
|
|
30
|
-
</p>
|
|
31
|
-
</template>
|
|
32
|
-
<NcNoteCard v-else type="warning">
|
|
33
|
-
{{ warningText }}
|
|
34
|
-
</NcNoteCard>
|
|
35
|
-
|
|
36
|
-
<div class="cn-mass-delete__list">
|
|
37
|
-
<div
|
|
38
|
-
v-for="item in localItems"
|
|
39
|
-
:key="item.id"
|
|
40
|
-
class="cn-mass-delete__item">
|
|
41
|
-
<span class="cn-mass-delete__item-name">
|
|
42
|
-
{{ getItemName(item) }}
|
|
43
|
-
</span>
|
|
44
|
-
<NcButton
|
|
45
|
-
variant="tertiary"
|
|
46
|
-
:aria-label="removeLabel"
|
|
47
|
-
@click="removeItem(item.id)">
|
|
48
|
-
<template #icon>
|
|
49
|
-
<Close :size="16" />
|
|
50
|
-
</template>
|
|
51
|
-
</NcButton>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
<p v-if="localItems.length === 0" class="cn-mass-delete__empty">
|
|
56
|
-
{{ emptyText }}
|
|
57
|
-
</p>
|
|
58
|
-
<CnConfirmValueField v-if="confirmValue !== ''"
|
|
59
|
-
v-model="typedConfirmValue"
|
|
60
|
-
:value="confirmValue"
|
|
61
|
-
:label="confirmFieldLabel" />
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<!-- Result phase -->
|
|
65
|
-
<div v-else
|
|
66
|
-
class="cn-mass-delete__result"
|
|
67
|
-
data-testid="cn-modal"
|
|
68
|
-
data-testid-modal="cn-mass-delete-dialog"
|
|
69
|
-
data-testid-phase="result">
|
|
70
|
-
<NcNoteCard v-if="result.success" type="success">
|
|
71
|
-
{{ successText }}
|
|
72
|
-
</NcNoteCard>
|
|
73
|
-
<NcNoteCard v-if="result.error" type="error">
|
|
74
|
-
{{ result.error }}
|
|
75
|
-
</NcNoteCard>
|
|
76
|
-
</div>
|
|
77
|
-
|
|
78
|
-
<template #actions>
|
|
79
|
-
<NcButton @click="$emit('close')">
|
|
80
|
-
{{ result === null ? cancelLabel : closeLabel }}
|
|
81
|
-
</NcButton>
|
|
82
|
-
<NcButton
|
|
83
|
-
v-if="result === null"
|
|
84
|
-
variant="error"
|
|
85
|
-
:class="{ 'cn-dialog__confirm-pending': confirmValuePending }"
|
|
86
|
-
:disabled="loading || localItems.length === 0 || confirmValuePending"
|
|
87
|
-
:aria-disabled="confirmValuePending ? 'true' : undefined"
|
|
88
|
-
data-testid="cn-mass-delete-dialog-confirm"
|
|
89
|
-
@click="executeDelete">
|
|
90
|
-
<template #icon>
|
|
91
|
-
<NcLoadingIcon v-if="loading" :size="20" />
|
|
92
|
-
<TrashCanOutline v-else :size="20" />
|
|
93
|
-
</template>
|
|
94
|
-
{{ confirmLabel }}
|
|
95
|
-
</NcButton>
|
|
96
|
-
</template>
|
|
97
|
-
</CnDialog>
|
|
98
|
-
</template>
|
|
99
|
-
|
|
100
1
|
<script>
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import AlertOutline from 'vue-material-design-icons/AlertOutline.vue'
|
|
104
|
-
import Close from 'vue-material-design-icons/Close.vue'
|
|
2
|
+
import { translate as t } from '@nextcloud/l10n'
|
|
3
|
+
import { markRaw } from 'vue'
|
|
105
4
|
import TrashCanOutline from 'vue-material-design-icons/TrashCanOutline.vue'
|
|
106
|
-
import
|
|
107
|
-
import CnDialog from '../CnDialog/CnDialog.vue'
|
|
108
|
-
import { confirmValueMixin } from '../../mixins/confirmValue.js'
|
|
109
|
-
import { dialogBoardMixin } from '../../mixins/dialogBoard.js'
|
|
110
|
-
import { splitAroundPlaceholder } from '../../utils/dialogSentence.js'
|
|
5
|
+
import CnMassActionDialog from '../CnMassActionDialog/CnMassActionDialog.vue'
|
|
111
6
|
|
|
112
7
|
/**
|
|
113
8
|
* CnMassDeleteDialog — Two-phase mass delete confirmation dialog.
|
|
@@ -119,6 +14,9 @@ import { splitAroundPlaceholder } from '../../utils/dialogSentence.js'
|
|
|
119
14
|
* with the item IDs. The parent component performs the actual API call and
|
|
120
15
|
* calls `setResult()` via a ref.
|
|
121
16
|
*
|
|
17
|
+
* It is `CnMassActionDialog` with the delete texts, the `error` variant and a
|
|
18
|
+
* trash icon as defaults; every prop of that dialog applies here too.
|
|
19
|
+
*
|
|
122
20
|
* ```vue
|
|
123
21
|
* <CnMassDeleteDialog
|
|
124
22
|
* v-if="showDeleteDialog"
|
|
@@ -143,38 +41,11 @@ import { splitAroundPlaceholder } from '../../utils/dialogSentence.js'
|
|
|
143
41
|
export default {
|
|
144
42
|
name: 'CnMassDeleteDialog',
|
|
145
43
|
|
|
146
|
-
|
|
147
|
-
CnDialog,
|
|
148
|
-
NcButton,
|
|
149
|
-
NcNoteCard,
|
|
150
|
-
NcLoadingIcon,
|
|
151
|
-
TrashCanOutline,
|
|
152
|
-
Close,
|
|
153
|
-
AlertOutline,
|
|
154
|
-
CnConfirmValueField,
|
|
155
|
-
},
|
|
44
|
+
extends: CnMassActionDialog,
|
|
156
45
|
|
|
157
|
-
|
|
46
|
+
testidPrefix: 'cn-mass-delete',
|
|
158
47
|
|
|
159
48
|
props: {
|
|
160
|
-
/** Items to delete. Each must have an `id` property. */
|
|
161
|
-
items: {
|
|
162
|
-
type: Array,
|
|
163
|
-
required: true,
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
/** Property name used for display (e.g., 'title', 'name') */
|
|
167
|
-
nameField: {
|
|
168
|
-
type: String,
|
|
169
|
-
default: 'title',
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
/** Optional function to format the item name. Receives the item, returns a string. Overrides nameField when provided. */
|
|
173
|
-
nameFormatter: {
|
|
174
|
-
type: Function,
|
|
175
|
-
default: null,
|
|
176
|
-
},
|
|
177
|
-
|
|
178
49
|
/** Dialog title */
|
|
179
50
|
dialogTitle: {
|
|
180
51
|
type: String,
|
|
@@ -199,132 +70,32 @@ export default {
|
|
|
199
70
|
default: () => t('nextcloud-vue', 'Items successfully deleted.'),
|
|
200
71
|
},
|
|
201
72
|
|
|
202
|
-
/** Label for the cancel button (visible before the delete runs). */
|
|
203
|
-
cancelLabel: { type: String, default: () => t('nextcloud-vue', 'Cancel') },
|
|
204
|
-
/** Label for the close button (visible after delete completes). */
|
|
205
|
-
closeLabel: { type: String, default: () => t('nextcloud-vue', 'Close') },
|
|
206
73
|
/** Label for the primary confirm button that triggers the delete. */
|
|
207
74
|
confirmLabel: { type: String, default: () => t('nextcloud-vue', 'Delete') },
|
|
208
|
-
/** Aria label for the per-row "remove from list" icon button. */
|
|
209
|
-
removeLabel: { type: String, default: () => t('nextcloud-vue', 'Remove from list') },
|
|
210
75
|
|
|
211
|
-
/**
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
data() {
|
|
218
|
-
return {
|
|
219
|
-
localItems: [...this.items],
|
|
220
|
-
loading: false,
|
|
221
|
-
result: null,
|
|
222
|
-
closeTimeout: null,
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
|
|
226
|
-
computed: {
|
|
227
|
-
/** The board sentence around the bold item count. */
|
|
228
|
-
sentenceParts() {
|
|
229
|
-
return splitAroundPlaceholder(t('nextcloud-vue', 'Are you sure you want to permanently delete {count}?'), 'count')
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
countLabel() {
|
|
233
|
-
return n('nextcloud-vue', '%n item', '%n items', this.localItems.length)
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
irreversibleText() {
|
|
237
|
-
return t('nextcloud-vue', 'This action cannot be undone.')
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
watch: {
|
|
242
|
-
items(val) {
|
|
243
|
-
this.localItems = [...val]
|
|
244
|
-
},
|
|
245
|
-
},
|
|
246
|
-
|
|
247
|
-
beforeUnmount() {
|
|
248
|
-
if (this.closeTimeout) {
|
|
249
|
-
clearTimeout(this.closeTimeout)
|
|
250
|
-
}
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
methods: {
|
|
254
|
-
getItemName(item) {
|
|
255
|
-
if (this.nameFormatter) {
|
|
256
|
-
return this.nameFormatter(item)
|
|
257
|
-
}
|
|
258
|
-
return item[this.nameField] || item.name || item.title || item.id
|
|
259
|
-
},
|
|
260
|
-
|
|
261
|
-
removeItem(id) {
|
|
262
|
-
this.localItems = this.localItems.filter((i) => i.id !== id)
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
executeDelete() {
|
|
266
|
-
if (!this.confirmValueMatches) {
|
|
267
|
-
return
|
|
268
|
-
}
|
|
269
|
-
this.loading = true
|
|
270
|
-
const ids = this.localItems.map((i) => i.id)
|
|
271
|
-
/**
|
|
272
|
-
* @event confirm Emitted when the user confirms deletion.
|
|
273
|
-
* Payload: array of item IDs to delete.
|
|
274
|
-
*/
|
|
275
|
-
this.$emit('confirm', ids)
|
|
76
|
+
/** Visual variant of the primary button. */
|
|
77
|
+
variant: {
|
|
78
|
+
type: String,
|
|
79
|
+
default: 'error',
|
|
80
|
+
validator: (v) => ['primary', 'error', 'warning', 'success'].includes(v),
|
|
276
81
|
},
|
|
277
82
|
|
|
278
83
|
/**
|
|
279
|
-
*
|
|
280
|
-
*
|
|
84
|
+
* Icon on the primary button: a CnIcon name or an icon component.
|
|
85
|
+
* Defaults to a trash can.
|
|
281
86
|
*
|
|
282
|
-
* @
|
|
283
|
-
* @public
|
|
87
|
+
* @type {string|object}
|
|
284
88
|
*/
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}, 2000)
|
|
292
|
-
}
|
|
89
|
+
confirmIcon: { type: [String, Object], default: () => markRaw(TrashCanOutline) },
|
|
90
|
+
|
|
91
|
+
/** Board look: the question above the list, with `{count}` where the bold item count goes. */
|
|
92
|
+
sentence: {
|
|
93
|
+
type: String,
|
|
94
|
+
default: () => t('nextcloud-vue', 'Are you sure you want to permanently delete {count}?'),
|
|
293
95
|
},
|
|
96
|
+
|
|
97
|
+
/** Board look: end the sentence with "This action cannot be undone." */
|
|
98
|
+
irreversible: { type: Boolean, default: true },
|
|
294
99
|
},
|
|
295
100
|
}
|
|
296
101
|
</script>
|
|
297
|
-
|
|
298
|
-
<style scoped>
|
|
299
|
-
.cn-mass-delete__list {
|
|
300
|
-
max-height: 300px;
|
|
301
|
-
overflow-y: auto;
|
|
302
|
-
margin-top: 12px;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.cn-mass-delete__item {
|
|
306
|
-
display: flex;
|
|
307
|
-
align-items: center;
|
|
308
|
-
justify-content: space-between;
|
|
309
|
-
padding: 8px 12px;
|
|
310
|
-
border-bottom: 1px solid var(--color-border);
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.cn-mass-delete__item:last-child {
|
|
314
|
-
border-bottom: none;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
.cn-mass-delete__item-name {
|
|
318
|
-
font-weight: 500;
|
|
319
|
-
overflow: hidden;
|
|
320
|
-
text-overflow: ellipsis;
|
|
321
|
-
white-space: nowrap;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.cn-mass-delete__empty {
|
|
325
|
-
text-align: center;
|
|
326
|
-
color: var(--color-text-maxcontrast);
|
|
327
|
-
font-style: italic;
|
|
328
|
-
padding: 20px;
|
|
329
|
-
}
|
|
330
|
-
</style>
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
<strong v-else class="cn-notes-card__author cn-notes-card__author--self">
|
|
108
108
|
{{ getNoteAuthorName(row.note) }}
|
|
109
109
|
</strong>
|
|
110
|
-
<span class="cn-notes-card__time">{{ formatDate(row.note
|
|
110
|
+
<span class="cn-notes-card__time">{{ formatDate(noteCreatedAt(row.note)) }}</span>
|
|
111
111
|
</div>
|
|
112
112
|
<div v-if="visibilityShown" class="cn-notes-card__visibility">
|
|
113
113
|
<CnVisibilityChip :visibility="row.note.visibility" />
|
|
@@ -182,7 +182,7 @@ import { buildHeaders, prefixUrl } from '../../utils/index.js'
|
|
|
182
182
|
import { initialsOf } from '../../utils/initials.js'
|
|
183
183
|
import { leafSourceUrl } from '../../utils/leafSourceUrl.js'
|
|
184
184
|
import { extractMentionedGroupIds, extractMentionedIds } from '../../utils/mentions.js'
|
|
185
|
-
import { quoteFor, supportsReplies, threadNotes, threadRootId } from '../../utils/noteThreads.js'
|
|
185
|
+
import { noteCreatedAt, quoteFor, supportsReplies, threadNotes, threadRootId } from '../../utils/noteThreads.js'
|
|
186
186
|
import { serverErrorMessage } from '../../utils/serverErrorMessage.js'
|
|
187
187
|
import { userLocale } from '../../utils/userLocale.js'
|
|
188
188
|
|
|
@@ -493,11 +493,17 @@ export default {
|
|
|
493
493
|
return this.replyTo ? t('nextcloud-vue', 'Replying to {author}', { author: this.getNoteAuthorName(this.replyTo) }) : ''
|
|
494
494
|
},
|
|
495
495
|
|
|
496
|
+
/**
|
|
497
|
+
* The notes newest first, up to the card's limit.
|
|
498
|
+
*
|
|
499
|
+
* @return {Array<object>} The notes shown.
|
|
500
|
+
* @spec openspec/changes/notes-tab-authored-rows/specs/notes-tab-authored-rows/spec.md#requirement-the-notes-tab-can-draw-a-note-as-an-authored-row
|
|
501
|
+
*/
|
|
496
502
|
displayedNotes() {
|
|
497
503
|
// Reverse chronological, limited to maxDisplay
|
|
498
504
|
const sorted = [...this.allNotes].sort((a, b) => {
|
|
499
|
-
const dateA = new Date(a
|
|
500
|
-
const dateB = new Date(b
|
|
505
|
+
const dateA = new Date(noteCreatedAt(a) || 0)
|
|
506
|
+
const dateB = new Date(noteCreatedAt(b) || 0)
|
|
501
507
|
return dateB - dateA
|
|
502
508
|
})
|
|
503
509
|
return sorted.slice(0, this.maxDisplay)
|
|
@@ -534,6 +540,8 @@ export default {
|
|
|
534
540
|
},
|
|
535
541
|
|
|
536
542
|
methods: {
|
|
543
|
+
noteCreatedAt,
|
|
544
|
+
|
|
537
545
|
/**
|
|
538
546
|
* A note's visibility; an entry with no value reads as internal.
|
|
539
547
|
*
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
</template>
|
|
102
102
|
<template v-if="authoredRows" #subname>
|
|
103
103
|
<span v-if="row.quote" class="cn-notes-tab__quote" data-testid="cn-note-quote">{{ row.quote }}</span>
|
|
104
|
-
<span class="cn-notes-tab__meta">{{ authorOf(row.note) }} · {{
|
|
104
|
+
<span class="cn-notes-tab__meta">{{ authorOf(row.note) }} · {{ authoredTime(row.note) }}</span>
|
|
105
105
|
<span
|
|
106
106
|
v-if="wasEdited(row.note)"
|
|
107
107
|
class="cn-notes-tab__edited"
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</span>
|
|
115
115
|
</template>
|
|
116
116
|
<template v-if="!authoredRows" #details>
|
|
117
|
-
{{ formatDate(row.note
|
|
117
|
+
{{ formatDate(noteCreatedAt(row.note)) }}
|
|
118
118
|
<!-- An edited note says so where its time is, because that
|
|
119
119
|
is where a reader already looks to date what they are
|
|
120
120
|
reading. The line names the editor, so nobody has to
|
|
@@ -204,10 +204,11 @@ import CnIcon from '../CnIcon/CnIcon.vue'
|
|
|
204
204
|
import CnNoteBody from '../CnNoteBody/CnNoteBody.vue'
|
|
205
205
|
import CnNoteComposer from '../CnNoteComposer/CnNoteComposer.vue'
|
|
206
206
|
import { interpolateUrlTokens } from '../../composables/useEndpointSource.js'
|
|
207
|
+
import { formatBoardDate, formatTimeOfDay } from '../../utils/boardDate.js'
|
|
207
208
|
import { buildHeaders, prefixUrl } from '../../utils/index.js'
|
|
208
209
|
import { initialsOf } from '../../utils/initials.js'
|
|
209
210
|
import { extractMentionedGroupIds, extractMentionedIds } from '../../utils/mentions.js'
|
|
210
|
-
import { quoteFor, supportsReplies, threadNotes, threadRootId } from '../../utils/noteThreads.js'
|
|
211
|
+
import { noteCreatedAt, quoteFor, supportsReplies, threadNotes, threadRootId } from '../../utils/noteThreads.js'
|
|
211
212
|
import { searchNextcloudUsers } from '../../utils/userAutocomplete.js'
|
|
212
213
|
import { userLocale } from '../../utils/userLocale.js'
|
|
213
214
|
|
|
@@ -768,6 +769,25 @@ export default {
|
|
|
768
769
|
}
|
|
769
770
|
},
|
|
770
771
|
|
|
772
|
+
noteCreatedAt,
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* The time on an authored row, as the boards write it: "6 okt 15:52",
|
|
776
|
+
* with the year outside the current one.
|
|
777
|
+
*
|
|
778
|
+
* @param {object} note The note.
|
|
779
|
+
* @return {string} The time, or '' when the note has none.
|
|
780
|
+
* @spec openspec/changes/notes-tab-authored-rows/specs/notes-tab-authored-rows/spec.md#requirement-the-notes-tab-can-draw-a-note-as-an-authored-row
|
|
781
|
+
*/
|
|
782
|
+
authoredTime(note) {
|
|
783
|
+
const value = noteCreatedAt(note)
|
|
784
|
+
const date = value ? new Date(value) : null
|
|
785
|
+
if (date === null || Number.isNaN(date.getTime())) {
|
|
786
|
+
return ''
|
|
787
|
+
}
|
|
788
|
+
return formatBoardDate(date) + ' ' + formatTimeOfDay(date)
|
|
789
|
+
},
|
|
790
|
+
|
|
771
791
|
formatDate(dateStr) {
|
|
772
792
|
if (!dateStr) {
|
|
773
793
|
return ''
|
|
@@ -21,7 +21,13 @@
|
|
|
21
21
|
<span v-else class="cn-tree-node__toggle cn-tree-node__toggle--leaf" />
|
|
22
22
|
|
|
23
23
|
<span v-if="node.icon" class="cn-tree-node__icon">{{ node.icon }}</span>
|
|
24
|
-
<span class="cn-tree-node__label">
|
|
24
|
+
<span class="cn-tree-node__label">
|
|
25
|
+
<!-- @slot label The row's label. Scope: { node, depth, expanded }. Defaults to the node's label text. -->
|
|
26
|
+
<slot name="label"
|
|
27
|
+
:node="node"
|
|
28
|
+
:depth="depth"
|
|
29
|
+
:expanded="isExpanded">{{ node[labelKey] }}</slot>
|
|
30
|
+
</span>
|
|
25
31
|
<span v-if="node.badge !== undefined" class="cn-tree-node__badge">{{ node.badge }}</span>
|
|
26
32
|
|
|
27
33
|
<!-- @slot actions Inline per-row actions slot. Scope:
|
|
@@ -47,6 +53,9 @@
|
|
|
47
53
|
<template #actions="scope">
|
|
48
54
|
<slot name="actions" v-bind="scope" />
|
|
49
55
|
</template>
|
|
56
|
+
<template v-if="$slots.label" #label="scope">
|
|
57
|
+
<slot name="label" v-bind="scope" />
|
|
58
|
+
</template>
|
|
50
59
|
</CnTreeNode>
|
|
51
60
|
</ul>
|
|
52
61
|
</li>
|
|
@@ -33,6 +33,12 @@
|
|
|
33
33
|
{ node, depth }. -->
|
|
34
34
|
<slot name="actions" v-bind="scope" />
|
|
35
35
|
</template>
|
|
36
|
+
<template v-if="$slots.label" #label="scope">
|
|
37
|
+
<!-- @slot label Replaces the label text of every row. Scope:
|
|
38
|
+
{ node, depth, expanded }. Unused, the row shows
|
|
39
|
+
`node[labelKey]`. -->
|
|
40
|
+
<slot name="label" v-bind="scope" />
|
|
41
|
+
</template>
|
|
36
42
|
</CnTreeNode>
|
|
37
43
|
</ul>
|
|
38
44
|
</div>
|
|
@@ -69,6 +75,9 @@ import CnTreeNode from './CnTreeNode.vue'
|
|
|
69
75
|
* Slots:
|
|
70
76
|
* - `#actions` — inline per-row actions (e.g. edit / delete
|
|
71
77
|
* buttons). Scope: `{ node, depth }`.
|
|
78
|
+
* - `#label` — the label of every row, for an icon, a marker or a test id
|
|
79
|
+
* next to the text. Scope: `{ node, depth, expanded }`. Unused, the row
|
|
80
|
+
* shows `node[labelKey]`.
|
|
72
81
|
*/
|
|
73
82
|
export default {
|
|
74
83
|
name: 'CnTreeView',
|
package/src/components/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export { CnDataTable } from './CnDataTable/index.js'
|
|
|
8
8
|
export { CnDataMatrix } from './CnDataMatrix/index.js'
|
|
9
9
|
export { CnFilterBar } from './CnFilterBar/index.js'
|
|
10
10
|
export { CnConditionListEditor } from './CnConditionListEditor/index.js'
|
|
11
|
+
export { CnConditionGroupEditor } from './CnConditionGroupEditor/index.js'
|
|
11
12
|
export { CnCronField } from './CnCronField/index.js'
|
|
12
13
|
export { CnFileField } from './CnFileField/index.js'
|
|
13
14
|
export { CnOfflineQueue } from './CnOfflineQueue/index.js'
|
|
@@ -61,9 +62,11 @@ export { CnCopyDialog } from './CnCopyDialog/index.js'
|
|
|
61
62
|
export { CnFieldHelper } from './CnFieldHelper/index.js'
|
|
62
63
|
export { CnFormDialog } from './CnFormDialog/index.js'
|
|
63
64
|
export { CnDialog } from './CnDialog/index.js'
|
|
65
|
+
export { CnDialogActions } from './CnDialogActions/index.js'
|
|
64
66
|
export { CnDialogHeader } from './CnDialogHeader/index.js'
|
|
65
67
|
export { CnFormBuilder } from './CnFormBuilder/index.js'
|
|
66
68
|
export { CnAdvancedFormDialog, CnMetadataTab, CnPropertiesTab, CnPropertyValueCell } from './CnAdvancedFormDialog/index.js'
|
|
69
|
+
export { CnMassActionDialog } from './CnMassActionDialog/index.js'
|
|
67
70
|
export { CnMassDeleteDialog } from './CnMassDeleteDialog/index.js'
|
|
68
71
|
export { CnMassCopyDialog } from './CnMassCopyDialog/index.js'
|
|
69
72
|
export { CnKpiGrid } from './CnKpiGrid/index.js'
|
package/src/css/context-menu.css
CHANGED
|
@@ -39,3 +39,10 @@
|
|
|
39
39
|
.cn-row-action--destructive {
|
|
40
40
|
color: var(--color-error) !important;
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
/* Nextcloud gives the button or link inside the <li> its own ink, so the
|
|
44
|
+
colour names them as well. */
|
|
45
|
+
.cn-row-action--destructive > .action-button,
|
|
46
|
+
.cn-row-action--destructive > .action-link {
|
|
47
|
+
color: var(--color-error) !important;
|
|
48
|
+
}
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
margin-top: 16px;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
/* Row 2: pills, breadcrumb, dot, meta
|
|
180
|
+
/* Row 2: pills, breadcrumb, chips, dot, meta. */
|
|
181
181
|
.cn-look-board .cn-detail-page__header-row2 {
|
|
182
182
|
align-items: center;
|
|
183
183
|
display: flex;
|
|
@@ -206,6 +206,15 @@
|
|
|
206
206
|
margin-bottom: 0;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
/* The header chips sit on row 2's own line, after the breadcrumb (DqTenant
|
|
210
|
+
"Gemeente Waterland waterland · een van ..."), so the list drops the 6px
|
|
211
|
+
top margin it keeps under the title outside this look. The doubled class
|
|
212
|
+
outranks the component's scoped rule.
|
|
213
|
+
@spec openspec/changes/board-header-chips-after-breadcrumb/specs/detail-page-board-look/spec.md#requirement-board-header-chips-follow-the-breadcrumb */
|
|
214
|
+
.cn-look-board .cn-detail-page__header-row2 .cn-detail-header-chips.cn-detail-header-chips {
|
|
215
|
+
margin: 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
209
218
|
/* The breadcrumb is a line of 14px text between the pills and the meta, as
|
|
210
219
|
the boards draw it (screens-detail-header-row-parity). NcBreadcrumbs grows to
|
|
211
220
|
the full row and draws each crumb as a 34px tertiary button, which pushed the
|
|
@@ -883,6 +892,20 @@
|
|
|
883
892
|
padding: calc(12px - var(--cn-board-first-line-leading)) var(--cn-board-card-inline-padding) 20px;
|
|
884
893
|
}
|
|
885
894
|
|
|
895
|
+
/* A plan card's rows carry their own 10px padding and a map has no text, so
|
|
896
|
+
no half-leading comes off the 12px under the title; a Doelen footer row
|
|
897
|
+
placed under the plan stands 4px under it (DqZaak "Zaakplan", DqZaakMeer
|
|
898
|
+
"Locaties").
|
|
899
|
+
@spec openspec/changes/board-plan-card-as-drawn/specs/plan/spec.md */
|
|
900
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-plan:first-child):not(.cn-look-nextcloud *),
|
|
901
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-map-widget:first-child):not(.cn-look-nextcloud *) {
|
|
902
|
+
padding-top: 12px;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.cn-look-board .cn-detail-page .cn-plan + .cn-detail-widget-host--bare > .cn-record-list--rows > .cn-record-list__footer--row:first-child:not(.cn-look-nextcloud *) {
|
|
906
|
+
margin-top: 4px;
|
|
907
|
+
}
|
|
908
|
+
|
|
886
909
|
/* A card that opens on a record-list table starts 12px under its title: the
|
|
887
910
|
table's head row sets its own padding and line height, so no first line
|
|
888
911
|
carries the half-leading the rule above takes off (r31 DqZaaktype
|
|
@@ -1181,6 +1204,14 @@
|
|
|
1181
1204
|
margin-inline: 8px;
|
|
1182
1205
|
}
|
|
1183
1206
|
|
|
1207
|
+
/* A Gekoppeld side card's rows and empty line read at the normal leading, so
|
|
1208
|
+
the first one starts the board's 10px under the title with no half-leading
|
|
1209
|
+
to take off (DqZaak "Gekoppeld").
|
|
1210
|
+
@spec openspec/changes/side-card-text-normal-leading/specs/side-card-text-normal-leading/spec.md#requirement-a-side-cards-texts-read-at-normal-leading */
|
|
1211
|
+
.cn-look-board .cn-detail-page__side .cn-widget-wrapper__content:has(> .cn-linked-widget):not(.cn-look-nextcloud *) {
|
|
1212
|
+
padding-top: 10px;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1184
1215
|
/* A side card that opens on a list draws its first row's hairline 10px below
|
|
1185
1216
|
the title box; the row has no leading for the glyph gap above to subtract
|
|
1186
1217
|
(DqZaaktypeRegels, DqZaaktypeStatussen "Versies").
|
|
@@ -1891,6 +1922,23 @@
|
|
|
1891
1922
|
padding-inline-end: var(--cn-board-card-inline-padding);
|
|
1892
1923
|
}
|
|
1893
1924
|
|
|
1925
|
+
/* A bleed table with nothing under it closes its card: it runs through the
|
|
1926
|
+
card's 20px bottom padding to the bottom edge, its last row rounded with
|
|
1927
|
+
the card (DqZaakContact "Contactmomenten op deze zaak"). A pager, a view
|
|
1928
|
+
all link, a footnote or a total under the table keeps the padding.
|
|
1929
|
+
@spec openspec/changes/object-list-table-bleed/specs/object-list-table-bleed/spec.md#requirement-an-object-list-can-run-its-table-edge-to-edge-in-its-card */
|
|
1930
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed:last-child:has(> .cn-object-list-widget__table):not(:has(> :is(.cn-object-list-widget__pager, .cn-object-list-widget__view-all, .cn-object-list-widget__more, .cn-object-list-widget__summary, .cn-object-list-widget__footnote, .cn-object-list-widget__foot, .cn-object-list-widget__links, .cn-object-list-widget__hidden-note))) {
|
|
1931
|
+
margin-block-end: -20px;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed:last-child:has(> .cn-object-list-widget__table):not(:has(> :is(.cn-object-list-widget__pager, .cn-object-list-widget__view-all, .cn-object-list-widget__more, .cn-object-list-widget__summary, .cn-object-list-widget__footnote, .cn-object-list-widget__foot, .cn-object-list-widget__links, .cn-object-list-widget__hidden-note))) .cn-table-container tbody tr:last-child > :first-child {
|
|
1935
|
+
border-end-start-radius: var(--cn-board-card-radius);
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed:last-child:has(> .cn-object-list-widget__table):not(:has(> :is(.cn-object-list-widget__pager, .cn-object-list-widget__view-all, .cn-object-list-widget__more, .cn-object-list-widget__summary, .cn-object-list-widget__footnote, .cn-object-list-widget__foot, .cn-object-list-widget__links, .cn-object-list-widget__hidden-note))) .cn-table-container tbody tr:last-child > :last-child {
|
|
1939
|
+
border-end-end-radius: var(--cn-board-card-radius);
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1894
1942
|
/* A row menu in the last column keeps its 34px button and 16px start
|
|
1895
1943
|
padding beside the card's end padding, so it is not cut off. */
|
|
1896
1944
|
.cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed .cn-table-container .cn-data-table .cn-table-col--actions:last-child {
|
|
@@ -2362,6 +2410,21 @@
|
|
|
2362
2410
|
border-top: 1px solid var(--cn-board-hairline);
|
|
2363
2411
|
}
|
|
2364
2412
|
|
|
2413
|
+
/* An authored note row reads in the main ink with no underline, its
|
|
2414
|
+
"author · time" line muted (DqZaakEmail "Notities"). NcListItem draws the
|
|
2415
|
+
row as an anchor, and a theme's `a { color; text-decoration }` carries
|
|
2416
|
+
`!important` (thematiq), hence the same here.
|
|
2417
|
+
@spec openspec/changes/notes-tab-authored-rows/specs/notes-tab-authored-rows/spec.md#requirement-the-notes-tab-can-draw-a-note-as-an-authored-row */
|
|
2418
|
+
.cn-look-board .cn-detail-widget-host .cn-notes-tab__row--authored .list-item__anchor:not(.cn-look-nextcloud *) {
|
|
2419
|
+
color: var(--color-main-text) !important;
|
|
2420
|
+
text-decoration: none !important;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
.cn-look-board .cn-detail-widget-host .cn-notes-tab__row--authored .cn-notes-tab__meta:not(.cn-look-nextcloud *) {
|
|
2424
|
+
color: var(--color-text-maxcontrast) !important;
|
|
2425
|
+
text-decoration: none !important;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2365
2428
|
/* The notes tab's "Add note" button, when the add form waits behind it, is
|
|
2366
2429
|
the board's 40px control (DqZaakEmail "Notitie toevoegen").
|
|
2367
2430
|
@spec openspec/changes/notes-tab-composer-button/specs/notes-tab-composer-button/spec.md#requirement-the-notes-tab-can-keep-its-composer-behind-a-button */
|
|
@@ -2669,6 +2732,32 @@
|
|
|
2669
2732
|
font-weight: 600;
|
|
2670
2733
|
}
|
|
2671
2734
|
|
|
2735
|
+
/* A record-list checklist (DqTenant "Inrichten") as the board draws it: rows
|
|
2736
|
+
20px high and 8px apart, the 20px mark 10px before a 15px label, a done mark
|
|
2737
|
+
on the soft green with a 12px tick, the bar 12px above the rows. The
|
|
2738
|
+
component's own rows are 28px tall with a 14px tick. The doubled classes
|
|
2739
|
+
outrank its scoped rules.
|
|
2740
|
+
@spec openspec/changes/board-record-list-checklist-rows/specs/record-list/spec.md#requirement-a-board-checklist-row-is-drawn-as-the-board */
|
|
2741
|
+
.cn-look-board .cn-record-list__check.cn-record-list__check {
|
|
2742
|
+
min-height: 20px;
|
|
2743
|
+
gap: 10px;
|
|
2744
|
+
font-size: 15px;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
.cn-look-board .cn-record-list__checklist-bar.cn-record-list__checklist-bar {
|
|
2748
|
+
margin-block-end: 12px;
|
|
2749
|
+
}
|
|
2750
|
+
|
|
2751
|
+
.cn-look-board .cn-record-list__check--done .cn-record-list__check-mark.cn-record-list__check-mark {
|
|
2752
|
+
background: var(--cn-board-success-tint);
|
|
2753
|
+
color: var(--cn-board-success-ink);
|
|
2754
|
+
}
|
|
2755
|
+
|
|
2756
|
+
.cn-look-board .cn-record-list__check-mark svg {
|
|
2757
|
+
width: 12px;
|
|
2758
|
+
height: 12px;
|
|
2759
|
+
}
|
|
2760
|
+
|
|
2672
2761
|
/* The parties widget's "Dit zaaktype accepteert" strip as DqZaakBetrokkenen
|
|
2673
2762
|
draws it: a sunken strip rounded at 8px, the label 14px bold, the kinds
|
|
2674
2763
|
as outlined 13px chips.
|
|
@@ -3206,6 +3295,36 @@
|
|
|
3206
3295
|
line-height: 1.2;
|
|
3207
3296
|
}
|
|
3208
3297
|
|
|
3298
|
+
/* The visibility select stands 8px under the kind chips without NcSelect's
|
|
3299
|
+
6px above and 4px under it, so the first entry starts 60px under the
|
|
3300
|
+
chips' foot as DqZaakHistorie draws it. The footer starts 16px under the
|
|
3301
|
+
last entry on one 20px line: the checkbox box without its 3px top margin,
|
|
3302
|
+
the audit trail as a 20px link, as drawn, not a 34px button.
|
|
3303
|
+
@spec openspec/changes/board-history-controls-and-footer/specs/timeline/spec.md */
|
|
3304
|
+
.cn-look-board .cn-timeline-manage__chips:not(.cn-look-nextcloud *) {
|
|
3305
|
+
margin-block-end: 8px;
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
.cn-look-board .cn-timeline-manage__controls .v-select.select:not(.cn-look-nextcloud *) {
|
|
3309
|
+
margin: 0;
|
|
3310
|
+
}
|
|
3311
|
+
|
|
3312
|
+
.cn-look-board .cn-timeline-manage .cn-timeline-manage__footer:not(.cn-look-nextcloud *) {
|
|
3313
|
+
margin-block-start: 16px;
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
.cn-look-board .cn-timeline-manage__footer .checkbox-content__icon:not(.cn-look-nextcloud *) {
|
|
3317
|
+
margin-block-start: 0;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
.cn-look-board .cn-timeline-manage__footer .cn-timeline-manage__audit-link.button-vue:not(.cn-look-nextcloud *) {
|
|
3321
|
+
--button-size: 20px;
|
|
3322
|
+
--button-padding: 0;
|
|
3323
|
+
min-height: 20px;
|
|
3324
|
+
height: 20px;
|
|
3325
|
+
padding: 0;
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3209
3328
|
/* A facts card's link with an icon (Werkinstructie) sets the icon beside its
|
|
3210
3329
|
text, 10px apart, the text on the normal line starting 10px under the
|
|
3211
3330
|
title, as the Dq boards draw it. The anchor was a block, so the icon stood
|