@conduction/nextcloud-vue 2.151.0 → 2.153.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/CnAiCompanion/CnAiFloatingButton.vue2.js +13 -1
- package/dist/esm/components/CnAiCompanion/CnAiFloatingButton.vue2.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiFloatingButton.vue3.js +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiFloatingButton.vue3.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiInput.vue2.js.map +1 -1
- package/dist/esm/components/CnAiCompanion/CnAiInput.vue3.js.map +1 -1
- package/dist/esm/components/CnAttentionFlagWidget/CnAttentionFlagWidget.vue.js +1 -1
- package/dist/esm/components/CnAttentionFlagWidget/CnAttentionFlagWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnAttentionFlagWidget/CnAttentionFlagWidget.vue3.js +1 -1
- package/dist/esm/components/CnAttentionFlagWidget/CnAttentionFlagWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue.js +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js +30 -5
- 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 +38 -0
- 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/CnConversationThread/CnConversationThread.vue.js +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue2.js +2 -1
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue2.js.map +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue3.js +33 -25
- package/dist/esm/components/CnConversationThread/CnConversationThread.vue3.js.map +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue.js +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue2.js +22 -2
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnConversationThread/CnConversationWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js +7 -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/CnExportsWidget/CnExportsWidget.vue.js +1 -1
- package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue2.js +2 -1
- package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnExportsWidget/CnExportsWidget.vue3.js +6 -2
- package/dist/esm/components/CnExportsWidget/CnExportsWidget.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/CnFieldListWidget/CnFieldListWidget.vue.js +1 -1
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue2.js +3 -1
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue3.js +31 -9
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +21 -3
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnMapWidget/CnMapWidget.vue.js +1 -1
- package/dist/esm/components/CnMapWidget/CnMapWidget.vue2.js +20 -0
- package/dist/esm/components/CnMapWidget/CnMapWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnMapWidget/CnMapWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue.js +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js.map +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js.map +1 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidget.vue.js +1 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidget.vue2.js +18 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidget.vue3.js +4 -2
- package/dist/esm/components/CnPlanWidget/CnPlanWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidgetRow.vue.js +1 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidgetRow.vue2.js +25 -3
- package/dist/esm/components/CnPlanWidget/CnPlanWidgetRow.vue2.js.map +1 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidgetRow.vue3.js +1 -1
- package/dist/esm/components/CnPlanWidget/CnPlanWidgetRow.vue3.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue.js +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js +31 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js +102 -97
- package/dist/esm/components/CnRecordListWidget/CnRecordListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue.js +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue2.js +33 -0
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue2.js.map +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js +2 -2
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js.map +1 -1
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue.js +1 -1
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue2.js +2 -1
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue2.js.map +1 -1
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue3.js +15 -13
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue3.js.map +1 -1
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue.js +1 -1
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js +27 -0
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue2.js.map +1 -1
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js +6 -6
- package/dist/esm/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue3.js.map +1 -1
- package/dist/esm/components/CnStepper/CnStepper.vue.js +1 -1
- package/dist/esm/components/CnStepper/CnStepper.vue2.js.map +1 -1
- package/dist/esm/components/CnStepper/CnStepper.vue3.js.map +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue.js +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js.map +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js +14 -14
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js.map +1 -1
- package/dist/esm/composables/indexSources.js +4 -1
- package/dist/esm/composables/indexSources.js.map +1 -1
- package/dist/esm/l10n/en.json.js +30 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +31 -2
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +1129 -567
- package/dist/esm/utils/fillTemplate.js +12 -2
- package/dist/esm/utils/fillTemplate.js.map +1 -1
- package/dist/esm/utils/libraryTranslate.js +19 -1
- package/dist/esm/utils/libraryTranslate.js.map +1 -1
- package/dist/esm/utils/savedViewSummary.js +109 -4
- package/dist/esm/utils/savedViewSummary.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +1096 -592
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +1129 -567
- package/l10n/en.json +30 -1
- package/l10n/nl.json +31 -2
- package/package.json +1 -1
- package/src/components/CnAiCompanion/CnAiFloatingButton.vue +14 -2
- package/src/components/CnAiCompanion/CnAiInput.vue +19 -0
- package/src/components/CnAttentionFlagWidget/CnAttentionFlagWidget.vue +7 -1
- package/src/components/CnAuditTrailCard/CnAuditTrailCard.vue +30 -5
- package/src/components/CnBannerWidget/CnBannerWidget.vue +38 -0
- package/src/components/CnConversationThread/CnConversationThread.vue +7 -1
- package/src/components/CnConversationThread/CnConversationWidget.vue +22 -2
- package/src/components/CnDashboardPage/CnDashboardPage.vue +17 -0
- package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +16 -1
- package/src/components/CnExportsWidget/CnExportsWidget.vue +5 -1
- package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +2 -0
- package/src/components/CnFieldListWidget/CnFieldListWidget.vue +18 -4
- package/src/components/CnIndexPage/CnIndexPage.vue +21 -3
- package/src/components/CnMapWidget/CnMapWidget.vue +20 -0
- package/src/components/CnNotificationMatrix/CnNotificationMatrix.vue +23 -0
- package/src/components/CnPlanWidget/CnPlanWidget.vue +20 -1
- package/src/components/CnPlanWidget/CnPlanWidgetRow.vue +26 -4
- package/src/components/CnRecordListWidget/CnRecordListWidget.vue +73 -5
- package/src/components/CnSavedViewLookFields/CnSavedViewLookFields.vue +35 -2
- package/src/components/CnSettingsField/CnSettingsField.vue +5 -3
- package/src/components/CnSettingsFieldsSection/CnSettingsFieldsSection.vue +31 -4
- package/src/components/CnStepper/CnStepper.vue +7 -5
- package/src/components/CnTimelineWidget/CnTimelineManage.vue +9 -4
- package/src/composables/indexSources.js +4 -1
- package/src/css/dialog.css +18 -3
- package/src/css/form-field.css +11 -0
- package/src/css/look-board-detail.css +124 -1
- package/src/css/look-board-index.css +75 -9
- package/src/css/look-board.css +242 -6
- package/src/css/patches.css +5 -5
- package/src/utils/fillTemplate.js +12 -2
- package/src/utils/libraryTranslate.js +18 -0
- package/src/utils/savedViewSummary.js +109 -4
|
@@ -1158,6 +1158,29 @@ export default {
|
|
|
1158
1158
|
42px as on the board (10px, the 1px-low checkbox, 10px, the rule). */
|
|
1159
1159
|
display: block;
|
|
1160
1160
|
margin: 1px auto 0;
|
|
1161
|
+
/* Drawn as Nextcloud's checkbox (NcCheckboxRadioSwitch's
|
|
1162
|
+
checkbox-blank-outline / checkbox-marked icons at 20px), as the
|
|
1163
|
+
boards draw it: the native box differs per browser. */
|
|
1164
|
+
appearance: none;
|
|
1165
|
+
border: 0;
|
|
1166
|
+
background-color: var(--color-text-maxcontrast);
|
|
1167
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z'/%3E%3C/svg%3E") center / 20px no-repeat;
|
|
1168
|
+
cursor: pointer;
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
.cn-notification-matrix__table tbody td input[type='checkbox']:checked {
|
|
1172
|
+
background-color: var(--color-primary-element);
|
|
1173
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z'/%3E%3C/svg%3E");
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.cn-notification-matrix__table tbody td input[type='checkbox']:focus-visible {
|
|
1177
|
+
outline: 2px solid var(--color-primary-element);
|
|
1178
|
+
outline-offset: 2px;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
.cn-notification-matrix__table tbody td input[type='checkbox']:disabled {
|
|
1182
|
+
cursor: default;
|
|
1183
|
+
opacity: .5;
|
|
1161
1184
|
}
|
|
1162
1185
|
|
|
1163
1186
|
.cn-notification-matrix__group {
|
|
@@ -18,12 +18,14 @@
|
|
|
18
18
|
<ul v-else-if="roots.length > 0" class="cn-plan__tree">
|
|
19
19
|
<li v-for="node in roots" :key="node.uuid" class="cn-plan__node">
|
|
20
20
|
<CnPlanWidgetRow :item="node"
|
|
21
|
+
:labels="stateLabels"
|
|
21
22
|
:busy="busy"
|
|
22
23
|
@enable="enable"
|
|
23
24
|
@transition="transition" />
|
|
24
25
|
<ul v-if="node.children.length > 0" class="cn-plan__children">
|
|
25
26
|
<li v-for="child in node.children" :key="child.uuid" class="cn-plan__node">
|
|
26
27
|
<CnPlanWidgetRow :item="child"
|
|
28
|
+
:labels="stateLabels"
|
|
27
29
|
:busy="busy"
|
|
28
30
|
@enable="enable"
|
|
29
31
|
@transition="transition" />
|
|
@@ -59,7 +61,8 @@ const PAGE_REFRESH = 'cn:page:refresh'
|
|
|
59
61
|
* retry, never an empty plan. Any app whose records run on OpenRegister's
|
|
60
62
|
* case layer uses it; dossiq's case plan is the first.
|
|
61
63
|
*
|
|
62
|
-
* `content`: `emptyText`,
|
|
64
|
+
* `content`: `emptyText`, and `stateLabels` (`{ active: 'Active' }`, the word
|
|
65
|
+
* for a state), both through the host translate.
|
|
63
66
|
*
|
|
64
67
|
* The record's id comes from `objectId`, else the bound record.
|
|
65
68
|
*/
|
|
@@ -111,6 +114,22 @@ export default {
|
|
|
111
114
|
},
|
|
112
115
|
|
|
113
116
|
computed: {
|
|
117
|
+
/** @return {object} The configured word per state, translated. */
|
|
118
|
+
stateLabels() {
|
|
119
|
+
const map = this.content?.stateLabels
|
|
120
|
+
if (!map || typeof map !== 'object') {
|
|
121
|
+
return {}
|
|
122
|
+
}
|
|
123
|
+
const out = {}
|
|
124
|
+
for (const [state, label] of Object.entries(map)) {
|
|
125
|
+
const text = this.text(label)
|
|
126
|
+
if (text !== '') {
|
|
127
|
+
out[state] = text
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return out
|
|
131
|
+
},
|
|
132
|
+
|
|
114
133
|
/** @return {string} The record id. */
|
|
115
134
|
id() {
|
|
116
135
|
const bound = this.objectData || {}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<span class="cn-plan-row__name">{{ item.name }}</span>
|
|
9
9
|
<span v-if="item.description" class="cn-plan-row__meta" data-testid="cn-plan-row-meta">{{ item.description }}</span>
|
|
10
10
|
</span>
|
|
11
|
-
<span class="cn-plan-row__state" :data-state="item.state">{{ stateLabel(item
|
|
11
|
+
<span class="cn-plan-row__state" :data-state="item.state">{{ stateLabel(item) }}</span>
|
|
12
12
|
<NcButton v-if="item.state === 'enabled' && item.discretionary"
|
|
13
13
|
:disabled="busy"
|
|
14
14
|
:data-testid="`cn-plan-enable-${item.key || item.uuid}`"
|
|
@@ -49,6 +49,16 @@ export default {
|
|
|
49
49
|
required: true,
|
|
50
50
|
},
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* The word per state that replaces the default, already translated.
|
|
54
|
+
*
|
|
55
|
+
* @type {object}
|
|
56
|
+
*/
|
|
57
|
+
labels: {
|
|
58
|
+
type: Object,
|
|
59
|
+
default: () => ({}),
|
|
60
|
+
},
|
|
61
|
+
|
|
52
62
|
/** A move is running. */
|
|
53
63
|
busy: {
|
|
54
64
|
type: Boolean,
|
|
@@ -69,12 +79,24 @@ export default {
|
|
|
69
79
|
t,
|
|
70
80
|
|
|
71
81
|
/**
|
|
72
|
-
* The word for
|
|
82
|
+
* The word for an item's state. A completed milestone is reached, and
|
|
83
|
+
* an optional item nobody has started reads as optional rather than
|
|
84
|
+
* waiting. `labels` replaces the word for a state.
|
|
73
85
|
*
|
|
74
|
-
* @param {
|
|
86
|
+
* @param {object} item The plan item.
|
|
75
87
|
* @return {string}
|
|
76
88
|
*/
|
|
77
|
-
stateLabel(
|
|
89
|
+
stateLabel(item) {
|
|
90
|
+
const state = item.state
|
|
91
|
+
if (typeof this.labels[state] === 'string' && this.labels[state] !== '') {
|
|
92
|
+
return this.labels[state]
|
|
93
|
+
}
|
|
94
|
+
if (state === 'completed' && item.type === 'milestone') {
|
|
95
|
+
return t('nextcloud-vue', 'Reached')
|
|
96
|
+
}
|
|
97
|
+
if (item.discretionary && (state === 'available' || state === 'enabled')) {
|
|
98
|
+
return t('nextcloud-vue', 'Optional')
|
|
99
|
+
}
|
|
78
100
|
const labels = {
|
|
79
101
|
available: t('nextcloud-vue', 'Waiting'),
|
|
80
102
|
enabled: t('nextcloud-vue', 'Can start'),
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<template>
|
|
7
7
|
<div
|
|
8
8
|
class="cn-record-list"
|
|
9
|
-
:class="[`cn-record-list--${presentation}`, { 'cn-record-list--compact': content.density === 'compact', 'cn-record-list--stacked': content.density === 'stacked', 'cn-record-list--tiles': presentation === 'rows' && content.tiles === true, 'cn-record-list--rule-above': content.ruleAbove === true, 'cn-record-list--data-table': presentation === 'table' && content.tableLook === 'data' }]"
|
|
9
|
+
:class="[`cn-record-list--${presentation}`, { 'cn-record-list--compact': content.density === 'compact', 'cn-record-list--pill-aside': presentation === 'cards' && content.cardPillAside === true, 'cn-record-list--stacked': content.density === 'stacked', 'cn-record-list--tiles': presentation === 'rows' && content.tiles === true, 'cn-record-list--rule-above': content.ruleAbove === true, 'cn-record-list--data-table': presentation === 'table' && content.tableLook === 'data' }]"
|
|
10
10
|
data-testid="cn-record-list">
|
|
11
11
|
<p v-if="intro && !absent" class="cn-record-list__intro" data-testid="cn-record-list-intro">
|
|
12
12
|
{{ intro }}
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
<ul
|
|
218
218
|
v-if="group.items.length > 0"
|
|
219
219
|
class="cn-record-list__list"
|
|
220
|
-
:class="{ 'cn-record-list__list--avatar-small': avatarSmall }"
|
|
220
|
+
:class="{ 'cn-record-list__list--avatar-small': avatarSmall, 'cn-record-list__list--avatar-primary': avatarPrimary }"
|
|
221
221
|
:aria-labelledby="group.label ? group.headingId : null"
|
|
222
222
|
:data-testid="isGrouped ? 'cn-record-list-group' : null">
|
|
223
223
|
<li
|
|
@@ -235,6 +235,7 @@
|
|
|
235
235
|
data-testid="cn-record-list-leading">{{ item.leading }}</span>
|
|
236
236
|
<span v-if="item.initials"
|
|
237
237
|
class="cn-record-list__avatar"
|
|
238
|
+
:class="item.avatarTone ? 'cn-status-badge--' + item.avatarTone : ''"
|
|
238
239
|
aria-hidden="true"
|
|
239
240
|
data-testid="cn-record-list-avatar">{{ item.initials }}</span>
|
|
240
241
|
<span v-if="item.dot"
|
|
@@ -281,6 +282,7 @@
|
|
|
281
282
|
v-bind="item.action.attrs"
|
|
282
283
|
data-testid="cn-record-list-action"
|
|
283
284
|
v-on="item.action.tag === 'button' ? { click: () => runRowAction(item.row) } : {}">
|
|
285
|
+
<CnIcon v-if="item.action.icon" :name="item.action.icon" :size="16" />
|
|
284
286
|
{{ item.action.label }}
|
|
285
287
|
</component>
|
|
286
288
|
</div>
|
|
@@ -302,6 +304,7 @@
|
|
|
302
304
|
</span>
|
|
303
305
|
<span v-if="item.initials"
|
|
304
306
|
class="cn-record-list__avatar"
|
|
307
|
+
:class="item.avatarTone ? 'cn-status-badge--' + item.avatarTone : ''"
|
|
305
308
|
aria-hidden="true"
|
|
306
309
|
data-testid="cn-record-list-avatar">{{ item.initials }}</span>
|
|
307
310
|
<span v-if="item.dot"
|
|
@@ -880,6 +883,18 @@ export default {
|
|
|
880
883
|
return Boolean(avatar && typeof avatar === 'object' && Number(avatar.size) === 32)
|
|
881
884
|
},
|
|
882
885
|
|
|
886
|
+
/**
|
|
887
|
+
* Whether the avatar is tinted with the primary colour (`avatar.tone:
|
|
888
|
+
* "primary"`), as DqZaakGerelateerd draws a related case's type initials.
|
|
889
|
+
*
|
|
890
|
+
* @return {boolean}
|
|
891
|
+
* @spec openspec/changes/record-list-avatar-tone/specs/record-list-avatar/spec.md#requirement-a-record-list-avatar-can-carry-the-primary-tint
|
|
892
|
+
*/
|
|
893
|
+
avatarPrimary() {
|
|
894
|
+
const avatar = this.content?.avatar
|
|
895
|
+
return Boolean(avatar && typeof avatar === 'object' && avatar.tone === 'primary')
|
|
896
|
+
},
|
|
897
|
+
|
|
883
898
|
/** @return {boolean} Whether a row's pill comes before its title (`pillAt: "start"`). */
|
|
884
899
|
pillFirst() {
|
|
885
900
|
return this.content?.pillAt === 'start'
|
|
@@ -1140,6 +1155,7 @@ export default {
|
|
|
1140
1155
|
tag: link ? 'router-link' : 'div',
|
|
1141
1156
|
attrs: link ? { to: link } : {},
|
|
1142
1157
|
initials: this.initialsFor(row),
|
|
1158
|
+
avatarTone: this.avatarToneFor(row),
|
|
1143
1159
|
title: this.fill(c.title || (row !== raw ? '{value}' : ''), row),
|
|
1144
1160
|
meta: this.metaOf(row),
|
|
1145
1161
|
text: this.fill(c.text, row),
|
|
@@ -1858,6 +1874,23 @@ export default {
|
|
|
1858
1874
|
return { value, max, share, over }
|
|
1859
1875
|
},
|
|
1860
1876
|
|
|
1877
|
+
/**
|
|
1878
|
+
* The tone of a row's initials, from `avatar.tone: { field, map }`
|
|
1879
|
+
* (`{ field: "status", map: { requested: "warning" } }`: an open advice
|
|
1880
|
+
* request's initials on the warning tint, DqZaakBesluiten); '' without.
|
|
1881
|
+
*
|
|
1882
|
+
* @param {object} row The row.
|
|
1883
|
+
* @return {string} A status variant, or ''.
|
|
1884
|
+
*/
|
|
1885
|
+
avatarToneFor(row) {
|
|
1886
|
+
const tone = this.content?.avatar?.tone
|
|
1887
|
+
if (!tone || typeof tone !== 'object' || typeof tone.field !== 'string' || !tone.map || typeof tone.map !== 'object') {
|
|
1888
|
+
return ''
|
|
1889
|
+
}
|
|
1890
|
+
const variant = tone.map[String(readPath(row, tone.field) ?? '')]
|
|
1891
|
+
return ['default', 'success', 'warning', 'error', 'info', 'purple', 'teal'].includes(variant) ? variant : ''
|
|
1892
|
+
},
|
|
1893
|
+
|
|
1861
1894
|
/**
|
|
1862
1895
|
* The initials of the row's avatar (`avatar`: a name template such as
|
|
1863
1896
|
* `"{client.name}"`, or `{ text }`), or '' without one.
|
|
@@ -2007,7 +2040,7 @@ export default {
|
|
|
2007
2040
|
? { label, tag: 'a', attrs: { href: link.href, target: '_blank', rel: 'noopener' } }
|
|
2008
2041
|
: { label, tag: 'router-link', attrs: { to: link.to } }
|
|
2009
2042
|
}
|
|
2010
|
-
return { label, tag: 'button', attrs: { type: 'button' } }
|
|
2043
|
+
return { label, tag: 'button', attrs: { type: 'button' }, icon: typeof action.icon === 'string' ? action.icon : '' }
|
|
2011
2044
|
},
|
|
2012
2045
|
|
|
2013
2046
|
/**
|
|
@@ -3189,11 +3222,15 @@ export default {
|
|
|
3189
3222
|
margin-inline-end: -4px;
|
|
3190
3223
|
}
|
|
3191
3224
|
|
|
3225
|
+
/* Without a tone (`avatar.tone`) the initials sit on the hover ground. */
|
|
3226
|
+
.cn-record-list__avatar:not([class*='cn-status-badge--']) {
|
|
3227
|
+
background: var(--color-background-hover);
|
|
3228
|
+
color: var(--color-main-text);
|
|
3229
|
+
}
|
|
3230
|
+
|
|
3192
3231
|
.cn-record-list__avatar {
|
|
3193
3232
|
align-items: center;
|
|
3194
|
-
background: var(--color-background-hover);
|
|
3195
3233
|
border-radius: 50%;
|
|
3196
|
-
color: var(--color-main-text);
|
|
3197
3234
|
display: flex;
|
|
3198
3235
|
flex: none;
|
|
3199
3236
|
font-size: 12px;
|
|
@@ -3524,6 +3561,32 @@ export default {
|
|
|
3524
3561
|
line-height: 1.2;
|
|
3525
3562
|
}
|
|
3526
3563
|
|
|
3564
|
+
.cn-record-list--compact .cn-record-list__card .cn-record-list__meta {
|
|
3565
|
+
line-height: normal;
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
/* `cardPillAside: true`: the title over its meta line on the left, 2px
|
|
3569
|
+
apart, the pill beside both at the card's end (DqInspectie outbox). */
|
|
3570
|
+
.cn-record-list--pill-aside .cn-record-list__card {
|
|
3571
|
+
display: grid;
|
|
3572
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
3573
|
+
align-items: center;
|
|
3574
|
+
gap: 2px 8px;
|
|
3575
|
+
}
|
|
3576
|
+
|
|
3577
|
+
.cn-record-list--pill-aside .cn-record-list__card-head {
|
|
3578
|
+
display: contents;
|
|
3579
|
+
}
|
|
3580
|
+
|
|
3581
|
+
.cn-record-list--pill-aside .cn-record-list__card-pills {
|
|
3582
|
+
grid-column: 2;
|
|
3583
|
+
grid-row: 1 / span 2;
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
.cn-record-list--pill-aside .cn-record-list__card .cn-record-list__meta {
|
|
3587
|
+
grid-column: 1;
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3527
3590
|
.cn-record-list__card--link:hover,
|
|
3528
3591
|
.cn-record-list__card--link:focus-visible {
|
|
3529
3592
|
border-color: var(--color-border-dark, var(--color-border));
|
|
@@ -3628,6 +3691,11 @@ a.cn-record-list__inline-title {
|
|
|
3628
3691
|
background: var(--color-background-dark);
|
|
3629
3692
|
color: var(--color-main-text);
|
|
3630
3693
|
}
|
|
3694
|
+
|
|
3695
|
+
.cn-record-list__list--avatar-primary .cn-record-list__avatar {
|
|
3696
|
+
background: var(--color-primary-element-light);
|
|
3697
|
+
color: var(--color-primary-element-light-text);
|
|
3698
|
+
}
|
|
3631
3699
|
</style>
|
|
3632
3700
|
|
|
3633
3701
|
<style>
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
class="cn-saved-view-look__icon"
|
|
26
26
|
:class="{ 'cn-saved-view-look__icon--chosen': name === chosenIcon }"
|
|
27
27
|
:aria-checked="name === chosenIcon ? 'true' : 'false'"
|
|
28
|
-
:aria-label="name"
|
|
29
|
-
:title="name"
|
|
28
|
+
:aria-label="iconLabel(name)"
|
|
29
|
+
:title="iconLabel(name)"
|
|
30
30
|
:data-icon="name"
|
|
31
31
|
@click="onIcon(name)">
|
|
32
32
|
<component :is="componentOf(name)" :size="20" />
|
|
@@ -115,6 +115,39 @@ export default {
|
|
|
115
115
|
|
|
116
116
|
t,
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* The accessible name of an icon option: what it shows, in words.
|
|
120
|
+
*
|
|
121
|
+
* @param {string} name An icon name.
|
|
122
|
+
* @return {string} Its label, or the name when it has none.
|
|
123
|
+
* @spec openspec/changes/saved-view-icon-labels/specs/saved-view-icon-labels/spec.md#requirement-an-icon-option-is-named-in-words
|
|
124
|
+
*/
|
|
125
|
+
iconLabel(name) {
|
|
126
|
+
const labels = {
|
|
127
|
+
FilterVariant: t('nextcloud-vue', 'Filter'),
|
|
128
|
+
ClockOutline: t('nextcloud-vue', 'Clock'),
|
|
129
|
+
ClockAlertOutline: t('nextcloud-vue', 'Clock with warning'),
|
|
130
|
+
CalendarClockOutline: t('nextcloud-vue', 'Calendar with clock'),
|
|
131
|
+
CalendarOutline: t('nextcloud-vue', 'Calendar'),
|
|
132
|
+
AccountOutline: t('nextcloud-vue', 'Person'),
|
|
133
|
+
AccountGroupOutline: t('nextcloud-vue', 'Group'),
|
|
134
|
+
FolderOutline: t('nextcloud-vue', 'Folder'),
|
|
135
|
+
FileDocumentOutline: t('nextcloud-vue', 'Document'),
|
|
136
|
+
AlertCircleOutline: t('nextcloud-vue', 'Attention'),
|
|
137
|
+
CheckCircleOutline: t('nextcloud-vue', 'Ready'),
|
|
138
|
+
EmailOutline: t('nextcloud-vue', 'Email'),
|
|
139
|
+
MapMarkerOutline: t('nextcloud-vue', 'Location'),
|
|
140
|
+
TagOutline: t('nextcloud-vue', 'Label'),
|
|
141
|
+
BellOutline: t('nextcloud-vue', 'Bell'),
|
|
142
|
+
ScaleBalance: t('nextcloud-vue', 'Scales'),
|
|
143
|
+
BriefcaseOutline: t('nextcloud-vue', 'Briefcase'),
|
|
144
|
+
EyeOutline: t('nextcloud-vue', 'Eye'),
|
|
145
|
+
LockOutline: t('nextcloud-vue', 'Lock'),
|
|
146
|
+
CurrencyEur: t('nextcloud-vue', 'Euro'),
|
|
147
|
+
}
|
|
148
|
+
return labels[name] || name
|
|
149
|
+
},
|
|
150
|
+
|
|
118
151
|
/**
|
|
119
152
|
* @param {string} name An icon name.
|
|
120
153
|
* @return {object|null} Its component.
|
|
@@ -181,8 +181,9 @@
|
|
|
181
181
|
:aria-describedby="describedBy"
|
|
182
182
|
:data-testid="`cn-settings-field-upload-${field.key}`"
|
|
183
183
|
@click="$refs.file && $refs.file.click()">
|
|
184
|
-
<template
|
|
185
|
-
<NcLoadingIcon :size="20" />
|
|
184
|
+
<template #icon>
|
|
185
|
+
<NcLoadingIcon v-if="uploading" :size="20" />
|
|
186
|
+
<Upload v-else :size="16" />
|
|
186
187
|
</template>
|
|
187
188
|
{{ field.uploadLabel || t('nextcloud-vue', 'Upload {name}', { name: label }) }}
|
|
188
189
|
</NcButton>
|
|
@@ -310,6 +311,7 @@ import { getDayNames, translate as t } from '@nextcloud/l10n'
|
|
|
310
311
|
import { NcButton, NcCheckboxRadioSwitch, NcLoadingIcon, NcNoteCard, NcSelect, NcTextArea, NcTextField } from '@nextcloud/vue'
|
|
311
312
|
import Close from 'vue-material-design-icons/Close.vue'
|
|
312
313
|
import Plus from 'vue-material-design-icons/Plus.vue'
|
|
314
|
+
import Upload from 'vue-material-design-icons/Upload.vue'
|
|
313
315
|
import { buildHeaders, prefixUrl } from '../../utils/headers.js'
|
|
314
316
|
import { readPath } from '../../utils/readPath.js'
|
|
315
317
|
import { serverErrorMessage } from '../../utils/serverErrorMessage.js'
|
|
@@ -360,7 +362,7 @@ const INPUT_TYPES = ['password', 'date', 'datetime-local', 'email', 'url']
|
|
|
360
362
|
export default {
|
|
361
363
|
name: 'CnSettingsField',
|
|
362
364
|
|
|
363
|
-
components: { Close, NcButton, NcCheckboxRadioSwitch, NcLoadingIcon, NcNoteCard, NcSelect, NcTextArea, NcTextField, Plus },
|
|
365
|
+
components: { Close, NcButton, NcCheckboxRadioSwitch, NcLoadingIcon, NcNoteCard, NcSelect, NcTextArea, NcTextField, Plus, Upload },
|
|
364
366
|
|
|
365
367
|
props: {
|
|
366
368
|
/**
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
</div>
|
|
49
49
|
<div class="cn-settings-fields__inline-save">
|
|
50
50
|
<NcButton
|
|
51
|
-
variant="
|
|
51
|
+
:variant="saveVariant"
|
|
52
52
|
type="submit"
|
|
53
|
-
:disabled="
|
|
53
|
+
:disabled="saveDisabled"
|
|
54
54
|
data-testid="cn-settings-fields-save">
|
|
55
55
|
<template v-if="saving" #icon>
|
|
56
56
|
<NcLoadingIcon :size="20" />
|
|
@@ -122,9 +122,9 @@
|
|
|
122
122
|
{{ t('nextcloud-vue', 'Unsaved changes') }}
|
|
123
123
|
</span>
|
|
124
124
|
<NcButton
|
|
125
|
-
variant="
|
|
125
|
+
:variant="saveVariant"
|
|
126
126
|
type="submit"
|
|
127
|
-
:disabled="
|
|
127
|
+
:disabled="saveDisabled"
|
|
128
128
|
data-testid="cn-settings-fields-save">
|
|
129
129
|
<template v-if="saving" #icon>
|
|
130
130
|
<NcLoadingIcon :size="20" />
|
|
@@ -143,6 +143,7 @@ import { getCanonicalLocale, translate as t } from '@nextcloud/l10n'
|
|
|
143
143
|
import { NcButton, NcLoadingIcon, NcNoteCard } from '@nextcloud/vue'
|
|
144
144
|
import ChevronDown from 'vue-material-design-icons/ChevronDown.vue'
|
|
145
145
|
import ChevronUp from 'vue-material-design-icons/ChevronUp.vue'
|
|
146
|
+
import { normalizeLook } from '../../composables/useLook.js'
|
|
146
147
|
import { prefixUrl } from '../../utils/headers.js'
|
|
147
148
|
import { readPath } from '../../utils/readPath.js'
|
|
148
149
|
import { serverErrorMessage } from '../../utils/serverErrorMessage.js'
|
|
@@ -394,9 +395,21 @@ export default {
|
|
|
394
395
|
inject: {
|
|
395
396
|
/** The app's translate function; identity outside CnAppRoot. */
|
|
396
397
|
cnTranslate: { default: () => (key) => key },
|
|
398
|
+
/** The look the page is drawn in (a string or a ref). */
|
|
399
|
+
cnLook: { default: 'nextcloud' },
|
|
397
400
|
},
|
|
398
401
|
|
|
399
402
|
props: {
|
|
403
|
+
/**
|
|
404
|
+
* The Save button's variant: `primary`, or `secondary` for a card
|
|
405
|
+
* whose Save is one choice among others, as a board draws it
|
|
406
|
+
* (DqBeheerinstellingen "Dit account gebruiken").
|
|
407
|
+
*/
|
|
408
|
+
saveVariant: {
|
|
409
|
+
type: String,
|
|
410
|
+
default: 'primary',
|
|
411
|
+
},
|
|
412
|
+
|
|
400
413
|
/** The section title. */
|
|
401
414
|
name: {
|
|
402
415
|
type: String,
|
|
@@ -627,6 +640,20 @@ export default {
|
|
|
627
640
|
},
|
|
628
641
|
|
|
629
642
|
computed: {
|
|
643
|
+
/**
|
|
644
|
+
* Whether Save is unavailable: while saving, and, in the Nextcloud
|
|
645
|
+
* look, while nothing changed. The boards draw a settings card's Save
|
|
646
|
+
* ready to press (r31: every board settings card's "Opslaan" read
|
|
647
|
+
* grey on live); pressing it with nothing changed sends nothing.
|
|
648
|
+
*
|
|
649
|
+
* @return {boolean}
|
|
650
|
+
* @spec openspec/changes/board-settings-save-ready/specs/settings-board-look/spec.md
|
|
651
|
+
*/
|
|
652
|
+
saveDisabled() {
|
|
653
|
+
const look = this.cnLook && typeof this.cnLook === 'object' && 'value' in this.cnLook ? this.cnLook.value : this.cnLook
|
|
654
|
+
return this.saving || (!this.dirty && normalizeLook(look) !== 'board')
|
|
655
|
+
},
|
|
656
|
+
|
|
630
657
|
/** @return {number} The column count, 1 to 4. */
|
|
631
658
|
columnCount() {
|
|
632
659
|
return [1, 2, 3, 4].includes(this.columns) ? this.columns : 1
|
|
@@ -292,15 +292,17 @@ button.cn-stepper__step {
|
|
|
292
292
|
background: var(--color-success);
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
/* Done: filled success circle, 16px check,
|
|
295
|
+
/* Done: filled success circle, 16px white check, label in the main text. */
|
|
296
296
|
.cn-stepper--board .cn-stepper__item--done .cn-stepper__dot {
|
|
297
297
|
border-color: var(--color-success);
|
|
298
298
|
background: var(--color-success);
|
|
299
|
-
|
|
299
|
+
/* A white check on the green, as the board draws it (DqInstellen); the
|
|
300
|
+
theme's success text tone is a dark green meant for a light ground. */
|
|
301
|
+
color: var(--color-primary-element-text, #fff);
|
|
300
302
|
}
|
|
301
303
|
|
|
302
304
|
.cn-stepper--board .cn-stepper__item--done .cn-stepper__label {
|
|
303
|
-
color: var(--
|
|
305
|
+
color: var(--color-main-text);
|
|
304
306
|
font-weight: 400;
|
|
305
307
|
}
|
|
306
308
|
|
|
@@ -317,12 +319,12 @@ button.cn-stepper__step {
|
|
|
317
319
|
font-weight: 700;
|
|
318
320
|
}
|
|
319
321
|
|
|
320
|
-
/* Upcoming: 2px outline, number 14/
|
|
322
|
+
/* Upcoming: 2px outline, number 14/700, label in the max-contrast tone. */
|
|
321
323
|
.cn-stepper--board .cn-stepper__item--upcoming .cn-stepper__dot {
|
|
322
324
|
border: 2px solid var(--color-border-dark);
|
|
323
325
|
background: transparent;
|
|
324
326
|
color: var(--color-text-maxcontrast);
|
|
325
|
-
font-weight:
|
|
327
|
+
font-weight: 700;
|
|
326
328
|
}
|
|
327
329
|
|
|
328
330
|
.cn-stepper--board .cn-stepper__item--upcoming .cn-stepper__label {
|
|
@@ -97,6 +97,10 @@
|
|
|
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
|
+
<p class="cn-timeline-manage__message">
|
|
101
|
+
{{ entry.message }}
|
|
102
|
+
</p>
|
|
103
|
+
|
|
100
104
|
<div class="cn-timeline-manage__head">
|
|
101
105
|
<span class="cn-timeline-manage__kind">{{ kindLabel(entry) }}</span>
|
|
102
106
|
<span class="cn-timeline-manage__author">{{ entry.author }}</span>
|
|
@@ -113,10 +117,6 @@
|
|
|
113
117
|
</span>
|
|
114
118
|
</div>
|
|
115
119
|
|
|
116
|
-
<p class="cn-timeline-manage__message">
|
|
117
|
-
{{ entry.message }}
|
|
118
|
-
</p>
|
|
119
|
-
|
|
120
120
|
<p v-if="entry.siblings && entry.siblings.length"
|
|
121
121
|
class="cn-timeline-manage__siblings"
|
|
122
122
|
data-testid="cn-timeline-siblings">
|
|
@@ -1054,6 +1054,8 @@ export default {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
1056
|
.cn-timeline-manage__entry {
|
|
1057
|
+
display: flex;
|
|
1058
|
+
flex-direction: column;
|
|
1057
1059
|
border-block-end: 1px solid var(--color-border);
|
|
1058
1060
|
padding-block: 12px;
|
|
1059
1061
|
}
|
|
@@ -1063,7 +1065,10 @@ export default {
|
|
|
1063
1065
|
padding-inline-start: 8px;
|
|
1064
1066
|
}
|
|
1065
1067
|
|
|
1068
|
+
/* The message comes first in the markup (a reader hears what happened
|
|
1069
|
+
before who and when); this look shows the head above it. */
|
|
1066
1070
|
.cn-timeline-manage__head {
|
|
1071
|
+
order: -1;
|
|
1067
1072
|
display: flex;
|
|
1068
1073
|
gap: 8px;
|
|
1069
1074
|
flex-wrap: wrap;
|
|
@@ -1581,6 +1581,9 @@ function usersSource() {
|
|
|
1581
1581
|
today = until
|
|
1582
1582
|
? t('nextcloud-vue', 'Absent until {date}', { date: until.toLocaleDateString(getCanonicalLocale() || undefined, { day: 'numeric', month: 'short' }) })
|
|
1583
1583
|
: t('nextcloud-vue', 'Absent')
|
|
1584
|
+
// An absence reads as a warning; any other line (a status
|
|
1585
|
+
// message such as "Buiten") as information, as the boards draw it.
|
|
1586
|
+
presenceColors[today] = 'warning'
|
|
1584
1587
|
} else if (presence.message) {
|
|
1585
1588
|
today = presence.message
|
|
1586
1589
|
} else if (presenceLabels[presence.state]) {
|
|
@@ -1648,7 +1651,7 @@ function usersSource() {
|
|
|
1648
1651
|
{ key: 'displayname', label: t('nextcloud-vue', 'Employee'), secondary: 'function', sortable: true, cellClass: 'cn-cell--lead' },
|
|
1649
1652
|
{ key: 'roles', label: t('nextcloud-vue', 'Roles'), sortable: true },
|
|
1650
1653
|
{ key: 'email', label: t('nextcloud-vue', 'E-mail'), sortable: true },
|
|
1651
|
-
{ key: 'today', label: t('nextcloud-vue', 'Today'), widget: 'badge', widgetProps: { colorMap: presenceColors, variant: '
|
|
1654
|
+
{ key: 'today', label: t('nextcloud-vue', 'Today'), widget: 'badge', widgetProps: { colorMap: presenceColors, variant: 'info' }, sortable: true },
|
|
1652
1655
|
],
|
|
1653
1656
|
|
|
1654
1657
|
searchFields: {
|
package/src/css/dialog.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
.cn-dialog-board {
|
|
20
20
|
--nldesign-component-dialog-border-radius: var(--cn-board-card-radius, 12px);
|
|
21
21
|
--cn-dialog-width: 640px;
|
|
22
|
-
--cn-dialog-danger: var(--color-error);
|
|
22
|
+
--cn-dialog-danger: color-mix(in srgb, var(--color-error) 80%, #000);
|
|
23
23
|
--cn-dialog-eyebrow-color: var(--color-primary-element-light-text, var(--color-main-text));
|
|
24
24
|
--cn-dialog-eyebrow-transform: none;
|
|
25
25
|
--cn-dialog-eyebrow-tracking: 0;
|
|
@@ -330,11 +330,14 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
|
|
|
330
330
|
margin-inline-end: auto;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
/* A destructive primary is filled with the danger colour
|
|
333
|
+
/* A destructive primary is filled with the danger colour, the error colour
|
|
334
|
+
a fifth darker (#a30000 on #cc0000, DqFilterVerwijderen), with white text
|
|
335
|
+
and no line round it.
|
|
336
|
+
@spec openspec/changes/board-side-panel-rhythm/specs/board-side-panel-rhythm/spec.md */
|
|
334
337
|
.cn-dialog-board .dialog__actions .button-vue--vue-error,
|
|
335
338
|
.cn-dialog-board .dialog__actions .button-vue--error {
|
|
339
|
+
border-width: 0;
|
|
336
340
|
background-color: var(--cn-dialog-danger);
|
|
337
|
-
border-color: var(--cn-dialog-danger);
|
|
338
341
|
color: #fff;
|
|
339
342
|
}
|
|
340
343
|
|
|
@@ -618,3 +621,15 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
|
|
|
618
621
|
.cn-dialog-board .cn-transition-input-fields .cn-transition-input-fields__label {
|
|
619
622
|
line-height: normal;
|
|
620
623
|
}
|
|
624
|
+
|
|
625
|
+
/* A setup step's parts are 16px apart, as the boards draw them (DqInstellen:
|
|
626
|
+
intro, choices and note sat 11 to 26px apart), and a note inside it adds no
|
|
627
|
+
margin of its own.
|
|
628
|
+
@spec openspec/changes/board-wizard-step/specs/setup-wizard/spec.md */
|
|
629
|
+
.cn-dialog-board .cn-wizard-dialog__step-body .cn-setup-step {
|
|
630
|
+
gap: 16px;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.cn-dialog-board .cn-wizard-dialog__step-body .cn-setup-step .notecard.notecard {
|
|
634
|
+
margin: 0;
|
|
635
|
+
}
|
package/src/css/form-field.css
CHANGED
|
@@ -101,6 +101,17 @@
|
|
|
101
101
|
padding: 10px 12px;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/* The boards draw a form's text area three lines tall on the font's own
|
|
105
|
+
leading (DqNieuweZaak "Omschrijving": 76px); the field's 80px minimum, its
|
|
106
|
+
four rows and the server's 3px margin made it 84px in a 90px wrapper. It
|
|
107
|
+
still resizes. */
|
|
108
|
+
.cn-look-board .cn-form-dialog__field .cn-form-dialog__textarea {
|
|
109
|
+
min-height: 0;
|
|
110
|
+
height: calc(3 * 1.2em + 22px);
|
|
111
|
+
margin: 0;
|
|
112
|
+
line-height: normal;
|
|
113
|
+
}
|
|
114
|
+
|
|
104
115
|
/* An invalid field: 2px error border on the control, 4px edge on the group. */
|
|
105
116
|
.cn-look-board .cn-form-field--invalid input:not([type='checkbox']):not([type='radio']),
|
|
106
117
|
.cn-look-board .cn-form-field--invalid textarea,
|