@conduction/nextcloud-vue 2.171.0 → 2.173.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/CnActionDialog/CnActionDialog.vue.js +1 -1
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnActionDialog/CnActionDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue2.js +3 -2
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue3.js +2 -1
- package/dist/esm/components/CnAiCompanion/CnAiChatWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue2.js +39 -0
- package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue2.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiCompanion.vue3.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js +22 -3
- 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/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
- 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 +75 -4
- 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/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +7 -3
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue.js +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js +34 -4
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue2.js.map +1 -1
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js +42 -34
- package/dist/esm/components/CnFilesBrowser/CnFilesBrowser.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +21 -6
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue.js +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js +54 -4
- package/dist/esm/components/CnTreeView/CnTreeNode.vue2.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeNode.vue3.js +32 -26
- 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 +28 -4
- package/dist/esm/components/CnTreeView/CnTreeView.vue2.js.map +1 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue3.js +4 -1
- package/dist/esm/components/CnTreeView/CnTreeView.vue3.js.map +1 -1
- package/dist/esm/composables/aiChatConfig.js +13 -1
- package/dist/esm/composables/aiChatConfig.js.map +1 -1
- package/dist/esm/composables/useAiChatStream.js +53 -1
- package/dist/esm/composables/useAiChatStream.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +745 -403
- package/dist/esm/utils/builtInFormatters.js +19 -1
- package/dist/esm/utils/builtInFormatters.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +919 -569
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +745 -403
- package/package.json +1 -1
- package/src/components/CnActionDialog/CnActionDialog.vue +4 -1
- package/src/components/CnAiCompanion/CnAiChatWidget.md +1 -0
- package/src/components/CnAiCompanion/CnAiChatWidget.vue +4 -2
- package/src/components/CnAiCompanion/CnAiCompanion.md +1 -0
- package/src/components/CnAiCompanion/CnAiCompanion.vue +39 -0
- package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +24 -3
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +5 -2
- package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +75 -4
- package/src/components/CnFactsWidget/CnFactsWidget.vue +7 -3
- package/src/components/CnFilesBrowser/CnFilesBrowser.vue +45 -4
- package/src/components/CnFlowsPage/CnFlowBoard.vue +27 -6
- package/src/components/CnTreeView/CnTreeNode.vue +69 -6
- package/src/components/CnTreeView/CnTreeView.vue +31 -4
- package/src/composables/aiChatConfig.js +12 -0
- package/src/composables/useAiChatStream.js +53 -0
- package/src/css/look-board-detail.css +200 -6
- package/src/css/look-board-index.css +7 -6
- package/src/css/look-board.css +118 -0
- package/src/css/patches.css +4 -1
- package/src/utils/builtInFormatters.js +18 -0
|
@@ -9,12 +9,16 @@
|
|
|
9
9
|
:aria-expanded="hasChildren ? isExpanded : undefined"
|
|
10
10
|
:aria-selected="isSelected">
|
|
11
11
|
<div class="cn-tree-node__row"
|
|
12
|
+
v-bind="extraRowAttrs"
|
|
12
13
|
:style="{ paddingLeft: (depth * indent) + 'px' }"
|
|
13
|
-
|
|
14
|
+
:tabindex="focusableRows ? 0 : undefined"
|
|
15
|
+
@click="onRowClick"
|
|
16
|
+
@keydown="onRowKeydown">
|
|
14
17
|
<button v-if="hasChildren"
|
|
15
18
|
type="button"
|
|
19
|
+
v-bind="extraToggleAttrs"
|
|
16
20
|
class="cn-tree-node__toggle"
|
|
17
|
-
:aria-label="
|
|
21
|
+
:aria-label="toggleLabel"
|
|
18
22
|
@click.stop="toggle">
|
|
19
23
|
<span class="cn-tree-node__caret" :class="{ 'cn-tree-node__caret--open': isExpanded }">▸</span>
|
|
20
24
|
</button>
|
|
@@ -48,6 +52,9 @@
|
|
|
48
52
|
:childrenKey="childrenKey"
|
|
49
53
|
:expandLabel="expandLabel"
|
|
50
54
|
:collapseLabel="collapseLabel"
|
|
55
|
+
:toggleAttrs="toggleAttrs"
|
|
56
|
+
:rowAttrs="rowAttrs"
|
|
57
|
+
:focusableRows="focusableRows"
|
|
51
58
|
@toggle="$emit('toggle', $event)"
|
|
52
59
|
@select="$emit('select', $event)">
|
|
53
60
|
<template #actions="scope">
|
|
@@ -87,10 +94,16 @@ export default {
|
|
|
87
94
|
labelKey: { type: String, default: 'label' },
|
|
88
95
|
/** Node-field key for the children array. */
|
|
89
96
|
childrenKey: { type: String, default: 'children' },
|
|
90
|
-
/** A11y label for the expand button
|
|
91
|
-
expandLabel: { type: String, default: 'Expand' },
|
|
92
|
-
/** A11y label for the collapse button
|
|
93
|
-
collapseLabel: { type: String, default: 'Collapse' },
|
|
97
|
+
/** A11y label for the expand button, or `(node) => string`. */
|
|
98
|
+
expandLabel: { type: [String, Function], default: 'Expand' },
|
|
99
|
+
/** A11y label for the collapse button, or `(node) => string`. */
|
|
100
|
+
collapseLabel: { type: [String, Function], default: 'Collapse' },
|
|
101
|
+
/** Extra expand-button attributes per node, `(node, depth) => object`. */
|
|
102
|
+
toggleAttrs: { type: Function, default: null },
|
|
103
|
+
/** Extra row attributes per node, `(node, depth) => object`. */
|
|
104
|
+
rowAttrs: { type: Function, default: null },
|
|
105
|
+
/** Rows take focus and select on Enter or Space. */
|
|
106
|
+
focusableRows: { type: Boolean, default: false },
|
|
94
107
|
},
|
|
95
108
|
|
|
96
109
|
emits: ['select', 'toggle'],
|
|
@@ -122,6 +135,34 @@ export default {
|
|
|
122
135
|
isSelected() {
|
|
123
136
|
return this.selectedId === this.node[this.idKey]
|
|
124
137
|
},
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* The expand button's accessible name for this node.
|
|
141
|
+
*
|
|
142
|
+
* @return {string}
|
|
143
|
+
*/
|
|
144
|
+
toggleLabel() {
|
|
145
|
+
const label = this.isExpanded ? this.collapseLabel : this.expandLabel
|
|
146
|
+
return typeof label === 'function' ? label(this.node) : label
|
|
147
|
+
},
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The host's extra attributes for this row.
|
|
151
|
+
*
|
|
152
|
+
* @return {object}
|
|
153
|
+
*/
|
|
154
|
+
extraRowAttrs() {
|
|
155
|
+
return this.rowAttrs ? this.rowAttrs(this.node, this.depth) : {}
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* The host's extra attributes for this row's expand button.
|
|
160
|
+
*
|
|
161
|
+
* @return {object}
|
|
162
|
+
*/
|
|
163
|
+
extraToggleAttrs() {
|
|
164
|
+
return this.toggleAttrs ? this.toggleAttrs(this.node, this.depth) : {}
|
|
165
|
+
},
|
|
125
166
|
},
|
|
126
167
|
|
|
127
168
|
methods: {
|
|
@@ -132,6 +173,22 @@ export default {
|
|
|
132
173
|
onRowClick() {
|
|
133
174
|
this.$emit('select', this.node)
|
|
134
175
|
},
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Enter or Space on a focusable row selects its node. Keys pressed on
|
|
179
|
+
* the expand button or an action inside the row are theirs.
|
|
180
|
+
*
|
|
181
|
+
* @param {KeyboardEvent} event The key event.
|
|
182
|
+
*/
|
|
183
|
+
onRowKeydown(event) {
|
|
184
|
+
if (!this.focusableRows || event.target !== event.currentTarget) {
|
|
185
|
+
return
|
|
186
|
+
}
|
|
187
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
188
|
+
event.preventDefault()
|
|
189
|
+
this.$emit('select', this.node)
|
|
190
|
+
}
|
|
191
|
+
},
|
|
135
192
|
},
|
|
136
193
|
}
|
|
137
194
|
</script>
|
|
@@ -154,6 +211,12 @@ export default {
|
|
|
154
211
|
background: var(--color-background-hover);
|
|
155
212
|
}
|
|
156
213
|
|
|
214
|
+
/* A row made focusable by `focusableRows` shows where keyboard focus is (WCAG 2.4.7). */
|
|
215
|
+
.cn-tree-node__row[tabindex]:focus-visible {
|
|
216
|
+
outline: 2px solid var(--color-primary-element);
|
|
217
|
+
outline-offset: -2px;
|
|
218
|
+
}
|
|
219
|
+
|
|
157
220
|
.cn-tree-node--selected > .cn-tree-node__row {
|
|
158
221
|
background: var(--color-primary-element-light);
|
|
159
222
|
color: var(--color-main-text);
|
|
@@ -26,6 +26,9 @@
|
|
|
26
26
|
:childrenKey="childrenKey"
|
|
27
27
|
:expandLabel="expandLabel"
|
|
28
28
|
:collapseLabel="collapseLabel"
|
|
29
|
+
:toggleAttrs="toggleAttrs"
|
|
30
|
+
:rowAttrs="rowAttrs"
|
|
31
|
+
:focusableRows="focusableRows"
|
|
29
32
|
@toggle="toggleNode"
|
|
30
33
|
@select="selectNode">
|
|
31
34
|
<template #actions="scope">
|
|
@@ -78,6 +81,14 @@ import CnTreeNode from './CnTreeNode.vue'
|
|
|
78
81
|
* - `#label` — the label of every row, for an icon, a marker or a test id
|
|
79
82
|
* next to the text. Scope: `{ node, depth, expanded }`. Unused, the row
|
|
80
83
|
* shows `node[labelKey]`.
|
|
84
|
+
*
|
|
85
|
+
* Per-node hooks, all off by default:
|
|
86
|
+
* - `expandLabel` / `collapseLabel` take a function `(node) => string` for a
|
|
87
|
+
* name per row, e.g. "Expand {name}".
|
|
88
|
+
* - `toggleAttrs` and `rowAttrs` add attributes per node to the expand button
|
|
89
|
+
* and the row (test ids, `data-*`, an active class, a role).
|
|
90
|
+
* - `focusableRows` lets keyboard users reach a row and select it with
|
|
91
|
+
* Enter or Space.
|
|
81
92
|
*/
|
|
82
93
|
export default {
|
|
83
94
|
name: 'CnTreeView',
|
|
@@ -127,10 +138,26 @@ export default {
|
|
|
127
138
|
description: { type: String, default: '' },
|
|
128
139
|
/** Empty-state text when nodes[] is empty. */
|
|
129
140
|
emptyLabel: { type: String, default: 'No items.' },
|
|
130
|
-
/** A11y label for the expand button. */
|
|
131
|
-
expandLabel: { type: String, default: 'Expand' },
|
|
132
|
-
/** A11y label for the collapse button. */
|
|
133
|
-
collapseLabel: { type: String, default: 'Collapse' },
|
|
141
|
+
/** A11y label for the expand button, or `(node) => string` for a name per row. */
|
|
142
|
+
expandLabel: { type: [String, Function], default: 'Expand' },
|
|
143
|
+
/** A11y label for the collapse button, or `(node) => string` for a name per row. */
|
|
144
|
+
collapseLabel: { type: [String, Function], default: 'Collapse' },
|
|
145
|
+
/**
|
|
146
|
+
* Extra attributes for each row's expand button, as `(node, depth) => object`,
|
|
147
|
+
* e.g. a test id per node. Null adds none.
|
|
148
|
+
*/
|
|
149
|
+
toggleAttrs: { type: Function, default: null },
|
|
150
|
+
/**
|
|
151
|
+
* Extra attributes for each row, as `(node, depth) => object`: a class,
|
|
152
|
+
* `data-*` attributes, or a `role` and `aria-label`. `class` and `style`
|
|
153
|
+
* merge with the row's own. Null adds none.
|
|
154
|
+
*/
|
|
155
|
+
rowAttrs: { type: Function, default: null },
|
|
156
|
+
/**
|
|
157
|
+
* Makes each row reachable with Tab (`tabindex="0"`); Enter or Space on
|
|
158
|
+
* the row selects its node, like a click. Off, rows are click-only.
|
|
159
|
+
*/
|
|
160
|
+
focusableRows: { type: Boolean, default: false },
|
|
134
161
|
/** Expand all nodes on mount. */
|
|
135
162
|
expandAllOnMount: { type: Boolean, default: false },
|
|
136
163
|
},
|
|
@@ -107,6 +107,18 @@ export function conversationsUrl(appId) {
|
|
|
107
107
|
return `${chatApiBase(appId)}/conversations`
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
/**
|
|
111
|
+
* Session list endpoint (`GET`). Takes `subject=<objectUuid>` to list only the
|
|
112
|
+
* caller's sessions about one record, most recent activity first.
|
|
113
|
+
*
|
|
114
|
+
* @param {string} [appId] Backend app id.
|
|
115
|
+
* @return {string}
|
|
116
|
+
* @spec openspec/changes/ai-chat-opens-the-subject-session/specs/ai-companion/spec.md#requirement-an-embedded-chat-may-open-the-users-session-about-the-pages-record
|
|
117
|
+
*/
|
|
118
|
+
export function sessionsUrl(appId) {
|
|
119
|
+
return `${chatApiBase(appId)}/sessions`
|
|
120
|
+
}
|
|
121
|
+
|
|
110
122
|
/**
|
|
111
123
|
* Messages of a single conversation (`GET`).
|
|
112
124
|
*
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
chatStreamUrl,
|
|
37
37
|
conversationMessagesUrl,
|
|
38
38
|
DEFAULT_CHAT_APP_ID,
|
|
39
|
+
sessionsUrl,
|
|
39
40
|
} from './aiChatConfig.js'
|
|
40
41
|
import { useAiContext } from './useAiContext.js'
|
|
41
42
|
|
|
@@ -483,8 +484,13 @@ export function useAiChatStream(contextInstance, options = {}) {
|
|
|
483
484
|
* conversations identically to live ones. OR does not persist tool calls
|
|
484
485
|
* on messages, so toolCalls degrades to [].
|
|
485
486
|
*
|
|
487
|
+
* The approvals the agent still waits on come with the messages
|
|
488
|
+
* (`pendingApprovals`, the shape of the stream's `final` event), so a
|
|
489
|
+
* reopened conversation shows them as a live turn does.
|
|
490
|
+
*
|
|
486
491
|
* @param {string} conversationUuid - UUID of the conversation to resume
|
|
487
492
|
* @returns {Promise<void>}
|
|
493
|
+
* @spec openspec/changes/ai-chat-opens-the-subject-session/specs/ai-companion/spec.md#requirement-a-loaded-conversation-keeps-its-pending-approvals
|
|
488
494
|
*/
|
|
489
495
|
async function loadConversation(conversationUuid) {
|
|
490
496
|
try {
|
|
@@ -503,6 +509,7 @@ export function useAiChatStream(contextInstance, options = {}) {
|
|
|
503
509
|
content: m.content || '',
|
|
504
510
|
toolCalls: m.toolCalls || m.tool_calls || [],
|
|
505
511
|
}))
|
|
512
|
+
state.pendingApprovals = Array.isArray(data.pendingApprovals) ? data.pendingApprovals : []
|
|
506
513
|
// Don't force a new thread — resume this conversation, and remember its
|
|
507
514
|
// uuid so the next send() continues it instead of starting a new one.
|
|
508
515
|
state._newThread = false
|
|
@@ -513,6 +520,35 @@ export function useAiChatStream(contextInstance, options = {}) {
|
|
|
513
520
|
}
|
|
514
521
|
}
|
|
515
522
|
|
|
523
|
+
/**
|
|
524
|
+
* Open the user's most recent session about one record, if there is one.
|
|
525
|
+
*
|
|
526
|
+
* A session is accepted only when its subject is that record, so a backend
|
|
527
|
+
* that ignores the `subject` filter leaves the thread empty instead of
|
|
528
|
+
* opening a conversation about something else.
|
|
529
|
+
*
|
|
530
|
+
* @param {string} objectUuid The record the page is about.
|
|
531
|
+
* @return {Promise<boolean>} Whether a session was opened.
|
|
532
|
+
* @spec openspec/changes/ai-chat-opens-the-subject-session/specs/ai-companion/spec.md#requirement-an-embedded-chat-may-open-the-users-session-about-the-pages-record
|
|
533
|
+
*/
|
|
534
|
+
async function loadSubjectSession(objectUuid) {
|
|
535
|
+
let sessions
|
|
536
|
+
try {
|
|
537
|
+
const response = await axios.get(sessionsUrl(chatAppId), { params: { subject: objectUuid, limit: 1 } })
|
|
538
|
+
sessions = Array.isArray(response.data?.results) ? response.data.results : []
|
|
539
|
+
} catch (err) {
|
|
540
|
+
// eslint-disable-next-line no-console
|
|
541
|
+
console.info('[useAiChatStream] Could not list the sessions about the record:', err?.message)
|
|
542
|
+
return false
|
|
543
|
+
}
|
|
544
|
+
const session = sessions.find((candidate) => subjectOf(candidate) === objectUuid)
|
|
545
|
+
if (!session) {
|
|
546
|
+
return false
|
|
547
|
+
}
|
|
548
|
+
await loadConversation(session.uuid || session.id)
|
|
549
|
+
return state.conversationUuid !== null
|
|
550
|
+
}
|
|
551
|
+
|
|
516
552
|
return {
|
|
517
553
|
// Reactive state (accessed as state.isStreaming etc. from the component)
|
|
518
554
|
state,
|
|
@@ -521,5 +557,22 @@ export function useAiChatStream(contextInstance, options = {}) {
|
|
|
521
557
|
abort,
|
|
522
558
|
startNewThread,
|
|
523
559
|
loadConversation,
|
|
560
|
+
loadSubjectSession,
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* The record a session is about: `subject.objectUuid`, or the same under its
|
|
566
|
+
* `metadata`, where the session stores it.
|
|
567
|
+
*
|
|
568
|
+
* @param {object} session A session from the session list.
|
|
569
|
+
* @return {string} The record's uuid, or '' when the session names none.
|
|
570
|
+
* @spec openspec/changes/ai-chat-opens-the-subject-session/specs/ai-companion/spec.md#requirement-an-embedded-chat-may-open-the-users-session-about-the-pages-record
|
|
571
|
+
*/
|
|
572
|
+
function subjectOf(session) {
|
|
573
|
+
const subject = session?.subject || session?.metadata?.subject
|
|
574
|
+
if (typeof subject === 'string') {
|
|
575
|
+
return subject
|
|
524
576
|
}
|
|
577
|
+
return (subject && typeof subject.objectUuid === 'string') ? subject.objectUuid : ''
|
|
525
578
|
}
|
|
@@ -215,6 +215,13 @@
|
|
|
215
215
|
margin: 0;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
/* The soft pill (`format: "pill"`, DqTenant slug "waterland") takes the
|
|
219
|
+
boards' soft ink on its grey, not the muted text colour.
|
|
220
|
+
@spec openspec/changes/board-header-pill-soft-ink/specs/detail-page-board-look/spec.md#requirement-a-board-header-pill-takes-the-soft-ink */
|
|
221
|
+
.cn-look-board .cn-detail-page__header-row2 .cn-detail-header-chips__chip--pill.cn-detail-header-chips__chip--pill {
|
|
222
|
+
color: var(--cn-board-text-soft);
|
|
223
|
+
}
|
|
224
|
+
|
|
218
225
|
/* The breadcrumb is a line of 14px text between the pills and the meta, as
|
|
219
226
|
the boards draw it (screens-detail-header-row-parity). NcBreadcrumbs grows to
|
|
220
227
|
the full row and draws each crumb as a 34px tertiary button, which pushed the
|
|
@@ -763,6 +770,18 @@
|
|
|
763
770
|
font-size: 14px;
|
|
764
771
|
}
|
|
765
772
|
|
|
773
|
+
/* The reply box's head (DqZaakContact "Antwoord aan de inwoner" and its hint)
|
|
774
|
+
is set on the normal line, the label at 14px, so the field sits where the
|
|
775
|
+
board draws it (r45: the conversation card 4.9px taller).
|
|
776
|
+
@spec openspec/changes/board-dq-card-rhythm-r46/specs/board-dq-card-rhythm-r46/spec.md#requirement-the-reply-boxs-head-is-set-on-the-normal-line */
|
|
777
|
+
.cn-look-board .cn-conversation-thread__reply-head:not(.cn-look-nextcloud *) {
|
|
778
|
+
line-height: normal;
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
.cn-look-board .cn-conversation-thread__reply-label:not(.cn-look-nextcloud *) {
|
|
782
|
+
font-size: 14px;
|
|
783
|
+
}
|
|
784
|
+
|
|
766
785
|
/* The reply box's buttons (Opslaan als concept, Versturen) are the board's
|
|
767
786
|
40px control, as DqBerichtVersturen draws Versturen; NcButton draws 34
|
|
768
787
|
(DqZaakContact r29 controlHeight 34).
|
|
@@ -808,13 +827,23 @@
|
|
|
808
827
|
font-size: 13px;
|
|
809
828
|
}
|
|
810
829
|
|
|
811
|
-
/* The attention flag under the status sits under a hairline (DqZaak)
|
|
830
|
+
/* The attention flag under the status sits under a hairline (DqZaak), 10px
|
|
831
|
+
under the status: the sections column's gap is 8px. */
|
|
812
832
|
.cn-look-board .cn-detail-page__sections-card .cn-attention-flag.cn-attention-flag:not(.cn-look-nextcloud *) {
|
|
813
833
|
gap: 6px;
|
|
834
|
+
margin-block-start: 2px;
|
|
814
835
|
padding: 10px 0 0;
|
|
815
836
|
border-top: 1px solid var(--cn-board-hairline);
|
|
816
837
|
}
|
|
817
838
|
|
|
839
|
+
/* The flag's button sits the column gap (6px) under its hint, as the case
|
|
840
|
+
boards draw it; the hint's own 8px margin stood the button 14px under it
|
|
841
|
+
(Status card 317 vs 311 on every case board).
|
|
842
|
+
@spec openspec/changes/board-attention-flag-button-height/specs/board-attention-flag-button-height/spec.md#requirement-the-attention-flags-button-sits-under-its-hint */
|
|
843
|
+
.cn-look-board .cn-detail-page__sections-card .cn-attention-flag:not(.cn-look-nextcloud *) .cn-attention-flag__hint {
|
|
844
|
+
margin-block-end: 0;
|
|
845
|
+
}
|
|
846
|
+
|
|
818
847
|
/* The side cards' texts read at the font's normal leading, as the boards draw
|
|
819
848
|
them; at Nextcloud's 1.5 each card stood taller and pushed the cards under it.
|
|
820
849
|
@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 */
|
|
@@ -938,6 +967,13 @@
|
|
|
938
967
|
padding-top: 12px;
|
|
939
968
|
}
|
|
940
969
|
|
|
970
|
+
/* The calendar card's "Openen in Agenda" link is set on the normal line, as
|
|
971
|
+
drawn (DqZaakTaken "Afspraken": 179px, live 183 at 1.5).
|
|
972
|
+
@spec openspec/changes/board-dq-card-rhythm-r46/specs/board-dq-card-rhythm-r46/spec.md#requirement-a-cards-footnote-and-foot-link-are-set-on-the-normal-line */
|
|
973
|
+
.cn-look-board .cn-calendar-card__open:not(.cn-look-nextcloud *) {
|
|
974
|
+
line-height: normal;
|
|
975
|
+
}
|
|
976
|
+
|
|
941
977
|
/* A data card (labels over values) starts 14px below its title (DqZaak
|
|
942
978
|
"Zaakgegevens", DqContact "Contact"); its first label sits at the top of
|
|
943
979
|
its line box, so no leading comes off. A side card keeps its 10px.
|
|
@@ -995,6 +1031,22 @@
|
|
|
995
1031
|
padding: var(--cn-board-card-padding);
|
|
996
1032
|
}
|
|
997
1033
|
|
|
1034
|
+
/* A data grid placed bare in a section or a tab panel (PqJourney
|
|
1035
|
+
"Journeygegevens", PqContract "Facturering", PqMailinglijst "Lijstgegevens")
|
|
1036
|
+
is inset once, by the card around it: its chromeless wrapper has no header,
|
|
1037
|
+
so the rule above gave it a second 20px 22px.
|
|
1038
|
+
@spec openspec/changes/board-nested-data-card-single-inset/specs/board-card/spec.md#requirement-a-bare-data-grid-is-inset-once */
|
|
1039
|
+
.cn-look-board .cn-detail-page .cn-detail-widget-host--bare > .cn-widget-wrapper.cn-widget-wrapper--chromeless > .cn-widget-wrapper__content:has(> .cn-object-data-widget__grid-wrap) {
|
|
1040
|
+
padding: 0;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
/* A sections card that opens on such a grid starts it 14px under the card
|
|
1044
|
+
title, as a data card does.
|
|
1045
|
+
@spec openspec/changes/board-nested-data-card-single-inset/specs/board-card/spec.md#requirement-a-sections-card-that-opens-on-a-data-grid-starts-it-14px-under-the-title */
|
|
1046
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-sections-widget > .cn-sections-widget__column:first-child > .cn-sections-widget__section:first-child:not(:has(> .cn-sections-widget__heading)) > .cn-sections-widget__body > .cn-detail-widget-host--bare > .cn-widget-wrapper > .cn-widget-wrapper__content > .cn-object-data-widget__grid-wrap):not(.cn-detail-page__side *) {
|
|
1047
|
+
padding-top: 14px;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
998
1050
|
/* The data card: 200px columns, a 12px 24px gap, label over value, hairline.
|
|
999
1051
|
Each selector holds one class more than the component's scoped rule
|
|
1000
1052
|
(`.cn-object-data-widget__cell[data-v-...]`), which loads after this sheet:
|
|
@@ -1114,6 +1166,15 @@
|
|
|
1114
1166
|
line-height: normal;
|
|
1115
1167
|
}
|
|
1116
1168
|
|
|
1169
|
+
/* A card's footnote is a 13px line on the normal line height, under a data
|
|
1170
|
+
grid (DqZaakContact "Ontvangstbevestiging") or a history list
|
|
1171
|
+
(DqSociaalDomein, DqZaaktype "Historie"): 4.5px less than at 1.5.
|
|
1172
|
+
@spec openspec/changes/board-dq-card-rhythm-r46/specs/board-dq-card-rhythm-r46/spec.md#requirement-a-cards-footnote-and-foot-link-are-set-on-the-normal-line */
|
|
1173
|
+
.cn-look-board .cn-object-data-widget__footnote:not(.cn-look-nextcloud *),
|
|
1174
|
+
.cn-look-board .cn-audit-card__footnote:not(.cn-look-nextcloud *) {
|
|
1175
|
+
line-height: normal;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1117
1178
|
/* A note in a page card starts at the card's inset: no list-item padding
|
|
1118
1179
|
around it, its icon 12px before the text (DqZaakEmail Notities r29: icon
|
|
1119
1180
|
at 31 and text at 71 where the board draws 23 and 67).
|
|
@@ -1141,6 +1202,26 @@
|
|
|
1141
1202
|
align-self: flex-start;
|
|
1142
1203
|
}
|
|
1143
1204
|
|
|
1205
|
+
/* A note row is as tall as its two lines, 35px: the list item keeps no
|
|
1206
|
+
minimum height of its own, and the "author · time" line is 13px, 2px under
|
|
1207
|
+
the note (DqZaakEmail "Notities" r45: 45px items, the card 19.8px taller).
|
|
1208
|
+
Another author's initials are in the soft ink, as drawn.
|
|
1209
|
+
@spec openspec/changes/board-dq-card-rhythm-r46/specs/board-dq-card-rhythm-r46/spec.md#requirement-a-note-row-is-as-tall-as-its-two-lines */
|
|
1210
|
+
.cn-look-board .cn-detail-widget-host .cn-notes-tab__thread .list-item:not(.cn-look-nextcloud *),
|
|
1211
|
+
.cn-look-board .cn-detail-widget-host .cn-notes-tab__thread .list-item__anchor:not(.cn-look-nextcloud *) {
|
|
1212
|
+
height: auto;
|
|
1213
|
+
min-height: 0;
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
.cn-look-board .cn-detail-widget-host .cn-notes-tab__thread .list-item-content__subname:not(.cn-look-nextcloud *) {
|
|
1217
|
+
margin-top: 2px;
|
|
1218
|
+
font-size: 13px;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
.cn-look-board .cn-detail-widget-host .cn-notes-tab__avatar:not(.cn-notes-tab__avatar--own):not(.cn-look-nextcloud *) {
|
|
1222
|
+
color: var(--cn-board-text-soft);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1144
1225
|
/* Side cards: the heading is a 15px muted label, not a title. The tone
|
|
1145
1226
|
carries `!important` against a theme that colours every h3 that way
|
|
1146
1227
|
(thematiq's heading colour). */
|
|
@@ -1249,6 +1330,77 @@
|
|
|
1249
1330
|
gap: 12px;
|
|
1250
1331
|
}
|
|
1251
1332
|
|
|
1333
|
+
/* A side lead card that also lists rows (DqContact "Identiteit") keeps the
|
|
1334
|
+
rows rhythm: 10px under the title and between its parts. The 12px above is
|
|
1335
|
+
for a lead followed by a link (DqZaak "Aanvrager"). An inline row (the BSN
|
|
1336
|
+
with its Tonen button) keeps 10px to the next row, its button without
|
|
1337
|
+
Nextcloud's 3px margin above and below.
|
|
1338
|
+
@spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-side-lead-card-with-rows-keeps-the-rows-rhythm */
|
|
1339
|
+
.cn-look-board .cn-detail-page__side .cn-widget-wrapper__content:has(> .cn-facts-widget > .cn-facts-widget__lead:first-child):has(> .cn-facts-widget > .cn-facts-widget__rows):not(.cn-look-nextcloud *) {
|
|
1340
|
+
padding-top: 10px;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget:has(> .cn-facts-widget__lead:first-child):has(> .cn-facts-widget__rows):not(.cn-look-nextcloud *) {
|
|
1344
|
+
gap: 10px;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget__row--inline:not(.cn-look-nextcloud *) {
|
|
1348
|
+
margin-bottom: 2px;
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget__inline-button:not(.cn-look-nextcloud *) {
|
|
1352
|
+
margin-block: 0;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/* A side card that opens on a text followed by its link (DqContact
|
|
1356
|
+
"Woonadres", "Historie") keeps 8px between them, the link without the
|
|
1357
|
+
first line's leading above.
|
|
1358
|
+
@spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-side-text-keeps-8px-to-its-link */
|
|
1359
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget:has(> .cn-facts-widget__text:first-child + .cn-facts-widget__link):not(.cn-look-nextcloud *) {
|
|
1360
|
+
gap: 8px;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget__text:first-child + .cn-facts-widget__link:not(.cn-look-nextcloud *) {
|
|
1364
|
+
margin-top: 0;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
/* A side card of running text alone (DqTaak "Wat deze taak tegenhoudt") reads
|
|
1368
|
+
as one paragraph: its sentences at 14px on 1.5 with no gap between them,
|
|
1369
|
+
10px under its title, as drawn.
|
|
1370
|
+
@spec openspec/changes/board-dq-card-rhythm-r46/specs/board-dq-card-rhythm-r46/spec.md#requirement-a-side-card-of-running-text-reads-as-one-paragraph */
|
|
1371
|
+
.cn-look-board .cn-detail-page__side .cn-widget-wrapper__header + .cn-widget-wrapper__content:has(> .cn-facts-widget > .cn-facts-widget__text:first-child):not(:has(> .cn-facts-widget > :not(.cn-facts-widget__text))):not(.cn-look-nextcloud *) {
|
|
1372
|
+
padding-top: 10px;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget:has(> .cn-facts-widget__text:first-child):not(:has(> :not(.cn-facts-widget__text))):not(.cn-look-nextcloud *) {
|
|
1376
|
+
gap: 0;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget:has(> .cn-facts-widget__text:first-child):not(:has(> :not(.cn-facts-widget__text))):not(.cn-look-nextcloud *) > .cn-facts-widget__text {
|
|
1380
|
+
font-size: 14px;
|
|
1381
|
+
line-height: 1.5;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
/* A side facts card's action ("Contact vastleggen") is 34px tall with no
|
|
1385
|
+
margin above or below, as DqContact "Bereikbaar via" draws it.
|
|
1386
|
+
@spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-side-facts-action-is-34px-with-no-vertical-margin */
|
|
1387
|
+
.cn-look-board .cn-detail-page__side .cn-facts-widget__action:not(.cn-look-nextcloud *) {
|
|
1388
|
+
margin-block: 0;
|
|
1389
|
+
min-height: 34px;
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/* A feed row's meta line and text sit on the normal line, 3px apart, and the
|
|
1393
|
+
rows are 4px apart (DqContact "Laatste contactmomenten": 65px per row).
|
|
1394
|
+
@spec openspec/changes/board-contact-identity-and-feed-rhythm/specs/board-contact-identity-and-feed-rhythm/spec.md#requirement-a-feed-sets-its-lines-on-the-normal-line */
|
|
1395
|
+
.cn-look-board .cn-record-list--feed .cn-record-list__main:not(.cn-look-nextcloud *) {
|
|
1396
|
+
gap: 3px;
|
|
1397
|
+
line-height: normal;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.cn-look-board .cn-record-list--feed .cn-record-list__item + .cn-record-list__item:not(.cn-look-nextcloud *) {
|
|
1401
|
+
margin-top: 4px;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1252
1404
|
/* A side status card opens on its explanation, set on the normal line, so no
|
|
1253
1405
|
leading comes off the 10px under the title (DqZaak "Status").
|
|
1254
1406
|
@spec openspec/changes/board-side-lead-and-status-gaps/specs/board-side-lead-and-status-gaps/spec.md#requirement-a-side-status-card-starts-10px-under-its-title */
|
|
@@ -1939,6 +2091,25 @@
|
|
|
1939
2091
|
border-end-end-radius: var(--cn-board-card-radius);
|
|
1940
2092
|
}
|
|
1941
2093
|
|
|
2094
|
+
/* The lines under a bleed table stand as the boards draw them in the card's
|
|
2095
|
+
12px column (DqZaakGerelateerd Deelzaken "(0/2 voltooid)" and its footnote,
|
|
2096
|
+
Objecten "Objecttypen beheren"): 12px apart at the font's normal leading. The
|
|
2097
|
+
summary sat flush under the table at a 1.5 leading.
|
|
2098
|
+
@spec openspec/changes/object-list-table-bleed/specs/object-list-table-bleed/spec.md#requirement-the-lines-under-a-bleed-table-stand-as-drawn */
|
|
2099
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed > .cn-object-list-widget__summary {
|
|
2100
|
+
margin-block-start: 12px;
|
|
2101
|
+
line-height: normal;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed > .cn-object-list-widget__summary + .cn-object-list-widget__footnote {
|
|
2105
|
+
margin-block-start: 12px;
|
|
2106
|
+
line-height: normal;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content > .cn-object-list-widget--bleed > .cn-object-list-widget__links {
|
|
2110
|
+
line-height: normal;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
1942
2113
|
/* A row menu in the last column keeps its 34px button and 16px start
|
|
1943
2114
|
padding beside the card's end padding, so it is not cut off. */
|
|
1944
2115
|
.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 {
|
|
@@ -2329,6 +2500,14 @@
|
|
|
2329
2500
|
margin-top: 2px;
|
|
2330
2501
|
}
|
|
2331
2502
|
|
|
2503
|
+
/* A linked mail's sender line on the case's E-mail card wraps, as drawn
|
|
2504
|
+
(DqZaakEmail "Aanvulling op Woo-verzoek": 75px over two lines, live cut it
|
|
2505
|
+
to one).
|
|
2506
|
+
@spec openspec/changes/board-dq-card-rhythm-r46/specs/board-dq-card-rhythm-r46/spec.md#requirement-a-linked-mails-sender-line-wraps-on-the-case-card */
|
|
2507
|
+
.cn-look-board .cn-mail-tab__linked .cn-email-tab__sender:not(.cn-look-nextcloud *) {
|
|
2508
|
+
white-space: normal;
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2332
2511
|
.cn-look-board .cn-email-tab__menu:not(.cn-look-nextcloud *) .action-item__menutoggle {
|
|
2333
2512
|
--button-size: 34px;
|
|
2334
2513
|
box-sizing: border-box;
|
|
@@ -2733,19 +2912,26 @@
|
|
|
2733
2912
|
}
|
|
2734
2913
|
|
|
2735
2914
|
/* 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
|
|
2737
|
-
on the soft green with a 12px tick,
|
|
2738
|
-
|
|
2739
|
-
outrank its scoped
|
|
2915
|
+
20px high and 8px apart, the 20px mark 10px before a 15px label at the
|
|
2916
|
+
font's normal line height, a done mark on the soft green with a 12px tick,
|
|
2917
|
+
the bar 14px under the title and 14px above the rows. The component's own
|
|
2918
|
+
rows are 28px tall with a 14px tick. The doubled classes outrank its scoped
|
|
2919
|
+
rules. The bar has no first-line leading, so the card's 12px-less-leading
|
|
2920
|
+
top padding gives way to the board's 14.
|
|
2740
2921
|
@spec openspec/changes/board-record-list-checklist-rows/specs/record-list/spec.md#requirement-a-board-checklist-row-is-drawn-as-the-board */
|
|
2741
2922
|
.cn-look-board .cn-record-list__check.cn-record-list__check {
|
|
2742
2923
|
min-height: 20px;
|
|
2743
2924
|
gap: 10px;
|
|
2744
2925
|
font-size: 15px;
|
|
2926
|
+
line-height: normal;
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2929
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-record-list--checklist) {
|
|
2930
|
+
padding-top: 14px;
|
|
2745
2931
|
}
|
|
2746
2932
|
|
|
2747
2933
|
.cn-look-board .cn-record-list__checklist-bar.cn-record-list__checklist-bar {
|
|
2748
|
-
margin-block-end:
|
|
2934
|
+
margin-block-end: 14px;
|
|
2749
2935
|
}
|
|
2750
2936
|
|
|
2751
2937
|
.cn-look-board .cn-record-list__check--done .cn-record-list__check-mark.cn-record-list__check-mark {
|
|
@@ -3225,6 +3411,14 @@
|
|
|
3225
3411
|
padding: 12px 0;
|
|
3226
3412
|
}
|
|
3227
3413
|
|
|
3414
|
+
/* A ruled feed in a page card (DqContact and DqOrganisatie "Laatste
|
|
3415
|
+
contactmomenten") starts as a ruled list does: the rule 12px under the
|
|
3416
|
+
title, so the first moment's text is 25px under it (r45 22.8).
|
|
3417
|
+
@spec openspec/changes/board-dq-card-rhythm-r46/specs/board-dq-card-rhythm-r46/spec.md#requirement-a-ruled-feed-starts-12px-under-the-title */
|
|
3418
|
+
.cn-look-board .cn-detail-page .cn-widget-wrapper__content:has(> .cn-record-list--feed.cn-record-list--rule-above):not(.cn-detail-page__side *) {
|
|
3419
|
+
padding-top: 12px;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3228
3422
|
/* A card that opens on a grid of framed tiles (DqZaaktypeOverzicht
|
|
3229
3423
|
"Statussen") sets them 14px under its header, the boards' card gap: no
|
|
3230
3424
|
first line of text carries the half-leading the card content takes off. */
|
|
@@ -1182,12 +1182,13 @@
|
|
|
1182
1182
|
width: 100%;
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
|
-
/*
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
1.35.
|
|
1189
|
-
@spec openspec/changes/board-wrapped-secondary-line-height/specs/board-wrapped-secondary-line-height/spec.md
|
|
1190
|
-
|
|
1185
|
+
/* The title column's secondary line runs at a normal line height over its
|
|
1186
|
+
lines, 2px under the title, as the boards draw it (DqZoekresultaten,
|
|
1187
|
+
DqFilterBeheren beside the open sidebar); on one line that is the 18.9px
|
|
1188
|
+
of the table's 1.35.
|
|
1189
|
+
@spec openspec/changes/board-wrapped-secondary-line-height/specs/board-wrapped-secondary-line-height/spec.md
|
|
1190
|
+
@spec openspec/changes/board-title-secondary-normal-leading/specs/board-title-secondary-normal-leading/spec.md */
|
|
1191
|
+
.cn-look-board .cn-table-container--board .cn-data-table td.cn-table-col--title .cn-table-cell__secondary {
|
|
1191
1192
|
margin-top: 2px;
|
|
1192
1193
|
line-height: normal;
|
|
1193
1194
|
}
|