@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
package/l10n/en.json
CHANGED
|
@@ -2402,7 +2402,24 @@
|
|
|
2402
2402
|
"Move {item}, use the arrow keys": "Move {item}, use the arrow keys",
|
|
2403
2403
|
"Invited": "Invited",
|
|
2404
2404
|
"Accepted": "Accepted",
|
|
2405
|
-
"Declined": "Declined"
|
|
2405
|
+
"Declined": "Declined",
|
|
2406
|
+
"Clock": "Clock",
|
|
2407
|
+
"Clock with warning": "Clock with warning",
|
|
2408
|
+
"Calendar with clock": "Calendar with clock",
|
|
2409
|
+
"Attention": "Attention",
|
|
2410
|
+
"Label": "Label",
|
|
2411
|
+
"Bell": "Bell",
|
|
2412
|
+
"Scales": "Scales",
|
|
2413
|
+
"Briefcase": "Briefcase",
|
|
2414
|
+
"Eye": "Eye",
|
|
2415
|
+
"Euro": "Euro",
|
|
2416
|
+
"Ready": "Ready",
|
|
2417
|
+
"Map layers": "Map layers",
|
|
2418
|
+
"you": "you",
|
|
2419
|
+
"my team": "my team",
|
|
2420
|
+
"Subject: {subject}": "Subject: {subject}",
|
|
2421
|
+
"Optional": "Optional",
|
|
2422
|
+
"Reached": "Reached"
|
|
2406
2423
|
},
|
|
2407
2424
|
"plurals": {
|
|
2408
2425
|
"{count} member": [
|
|
@@ -2611,6 +2628,18 @@
|
|
|
2611
2628
|
"{names} has no location, so it is not on the map.": [
|
|
2612
2629
|
"{names} has no location, so it is not on the map.",
|
|
2613
2630
|
"{names} have no location, so they are not on the map."
|
|
2631
|
+
],
|
|
2632
|
+
"in %n day": [
|
|
2633
|
+
"in %n day",
|
|
2634
|
+
"in %n days"
|
|
2635
|
+
],
|
|
2636
|
+
"%n day ago": [
|
|
2637
|
+
"%n day ago",
|
|
2638
|
+
"%n days ago"
|
|
2639
|
+
],
|
|
2640
|
+
"%n attachment": [
|
|
2641
|
+
"%n attachment",
|
|
2642
|
+
"%n attachments"
|
|
2614
2643
|
]
|
|
2615
2644
|
}
|
|
2616
2645
|
}
|
package/l10n/nl.json
CHANGED
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"Advanced": "Geavanceerd",
|
|
138
138
|
"The item could not be created.": "Het item kon niet worden aangemaakt.",
|
|
139
139
|
"Start over": "Opnieuw beginnen",
|
|
140
|
-
"Continue where you left off": "
|
|
140
|
+
"Continue where you left off": "Verder met de rondleiding",
|
|
141
141
|
"Active": "Actief",
|
|
142
142
|
"Appraisal": "Waardering",
|
|
143
143
|
"Archiving": "Archivering",
|
|
@@ -2657,7 +2657,24 @@
|
|
|
2657
2657
|
"Move {item}, use the arrow keys": "{item} verplaatsen, gebruik de pijltjestoetsen",
|
|
2658
2658
|
"Invited": "Uitgenodigd",
|
|
2659
2659
|
"Accepted": "Geaccepteerd",
|
|
2660
|
-
"Declined": "Afgewezen"
|
|
2660
|
+
"Declined": "Afgewezen",
|
|
2661
|
+
"Clock": "Klok",
|
|
2662
|
+
"Clock with warning": "Klok met waarschuwing",
|
|
2663
|
+
"Calendar with clock": "Agenda met klok",
|
|
2664
|
+
"Attention": "Let op",
|
|
2665
|
+
"Label": "Label",
|
|
2666
|
+
"Bell": "Bel",
|
|
2667
|
+
"Scales": "Weegschaal",
|
|
2668
|
+
"Briefcase": "Koffer",
|
|
2669
|
+
"Eye": "Oog",
|
|
2670
|
+
"Euro": "Euro",
|
|
2671
|
+
"Ready": "Gereed",
|
|
2672
|
+
"Map layers": "Kaartlagen",
|
|
2673
|
+
"you": "jij",
|
|
2674
|
+
"my team": "mijn team",
|
|
2675
|
+
"Subject: {subject}": "Onderwerp: {subject}",
|
|
2676
|
+
"Optional": "Optioneel",
|
|
2677
|
+
"Reached": "Bereikt"
|
|
2661
2678
|
},
|
|
2662
2679
|
"plurals": {
|
|
2663
2680
|
"{count} member": [
|
|
@@ -2883,6 +2900,18 @@
|
|
|
2883
2900
|
"{names} has no location, so it is not on the map.": [
|
|
2884
2901
|
"{names} heeft geen locatie, dus staat niet op de kaart.",
|
|
2885
2902
|
"{names} hebben geen locatie, dus staan ze niet op de kaart."
|
|
2903
|
+
],
|
|
2904
|
+
"in %n day": [
|
|
2905
|
+
"over %n dag",
|
|
2906
|
+
"over %n dagen"
|
|
2907
|
+
],
|
|
2908
|
+
"%n day ago": [
|
|
2909
|
+
"%n dag geleden",
|
|
2910
|
+
"%n dagen geleden"
|
|
2911
|
+
],
|
|
2912
|
+
"%n attachment": [
|
|
2913
|
+
"%n bijlage",
|
|
2914
|
+
"%n bijlagen"
|
|
2886
2915
|
]
|
|
2887
2916
|
}
|
|
2888
2917
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduction/nextcloud-vue",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.153.0",
|
|
4
4
|
"description": "Shared Vue component library for Conduction Nextcloud apps — complements @nextcloud/vue with higher-level components, OpenRegister integration, and NL Design System support",
|
|
5
5
|
"homepage": "https://github.com/ConductionNL/nextcloud-vue#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
:class="[
|
|
26
26
|
`cn-ai-floating-button--${position}`,
|
|
27
27
|
]"
|
|
28
|
-
:aria-label="
|
|
28
|
+
:aria-label="label"
|
|
29
29
|
type="button"
|
|
30
30
|
data-testid="cn-ai-fab"
|
|
31
31
|
@click="$emit('click')">
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
42
|
import Creation from 'vue-material-design-icons/Creation.vue'
|
|
43
|
-
import { libraryTranslate } from '../../utils/libraryTranslate.js'
|
|
43
|
+
import { libraryTranslate, translateLibraryString } from '../../utils/libraryTranslate.js'
|
|
44
44
|
|
|
45
45
|
export default {
|
|
46
46
|
name: 'CnAiFloatingButton',
|
|
@@ -76,6 +76,18 @@ export default {
|
|
|
76
76
|
},
|
|
77
77
|
|
|
78
78
|
emits: ['click'],
|
|
79
|
+
|
|
80
|
+
computed: {
|
|
81
|
+
/**
|
|
82
|
+
* The button's name: the app's translation, else the library's.
|
|
83
|
+
*
|
|
84
|
+
* @return {string}
|
|
85
|
+
* @spec openspec/changes/library-string-host-fallback/specs/i18n/spec.md
|
|
86
|
+
*/
|
|
87
|
+
label() {
|
|
88
|
+
return translateLibraryString(this.cnTranslate, 'Open AI chat')
|
|
89
|
+
},
|
|
90
|
+
},
|
|
79
91
|
}
|
|
80
92
|
</script>
|
|
81
93
|
|
|
@@ -1397,6 +1397,25 @@ export default {
|
|
|
1397
1397
|
white-space: nowrap;
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
|
+
/* server.css styles every button at (0,2,1) (grey ground, 15px, its own
|
|
1401
|
+
margin); the doubled class keeps the send button's primary look and the
|
|
1402
|
+
labelled one's 40px/14px (DqZaakAssistent "Vragen"). */
|
|
1403
|
+
.cn-ai-input__send-button.cn-ai-input__send-button {
|
|
1404
|
+
margin: 0;
|
|
1405
|
+
background: var(--color-primary-element);
|
|
1406
|
+
color: var(--color-primary-element-text);
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
.cn-ai-input__send-button--labelled.cn-ai-input__send-button--labelled {
|
|
1410
|
+
height: 40px;
|
|
1411
|
+
min-height: 40px;
|
|
1412
|
+
font-size: 14px;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
.cn-ai-input__send-button.cn-ai-input__send-button:hover:not(:disabled) {
|
|
1416
|
+
background: var(--color-primary-element-hover, var(--color-primary-element));
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1400
1419
|
.cn-ai-input__send-button:hover:not(:disabled) {
|
|
1401
1420
|
background: var(--color-primary-element-hover, var(--color-primary-element));
|
|
1402
1421
|
}
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
{{ raised ? label('hintClear') : label('hintRaise') }}
|
|
49
49
|
</p>
|
|
50
50
|
<NcButton
|
|
51
|
+
class="cn-attention-flag__compose"
|
|
51
52
|
variant="secondary"
|
|
52
|
-
wide
|
|
53
53
|
data-testid="cn-attention-flag-compose"
|
|
54
54
|
@click="composing = true">
|
|
55
55
|
<template #icon>
|
|
@@ -458,6 +458,12 @@ function hasPassed(date) {
|
|
|
458
458
|
padding: 4px 0;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
+
/* The button is as wide as its label, as the boards draw it (DqZaakAssistent
|
|
462
|
+
"Markeer voor aandacht"), not stretched across the card. */
|
|
463
|
+
.cn-attention-flag__compose {
|
|
464
|
+
align-self: flex-start;
|
|
465
|
+
}
|
|
466
|
+
|
|
461
467
|
.cn-attention-flag__line,
|
|
462
468
|
.cn-attention-flag__act {
|
|
463
469
|
display: flex;
|
|
@@ -106,6 +106,26 @@ function entryTime(entry) {
|
|
|
106
106
|
* surface="detail-page" />
|
|
107
107
|
* ```
|
|
108
108
|
*/
|
|
109
|
+
/**
|
|
110
|
+
* Whether an audit entry is an update that changed no field: its `changed`
|
|
111
|
+
* map holds only `@self` bookkeeping or pairs whose old and new are equal.
|
|
112
|
+
* An entry without a `changed` map is kept, since nothing says it was empty.
|
|
113
|
+
*
|
|
114
|
+
* @param {object} entry The audit entry.
|
|
115
|
+
* @return {boolean}
|
|
116
|
+
*/
|
|
117
|
+
function isEmptyUpdate(entry) {
|
|
118
|
+
if (String((entry && (entry.action || entry.event)) || '').toLowerCase() !== 'update') {
|
|
119
|
+
return false
|
|
120
|
+
}
|
|
121
|
+
const changed = entry.changed
|
|
122
|
+
if (!changed || typeof changed !== 'object' || Array.isArray(changed)) {
|
|
123
|
+
return false
|
|
124
|
+
}
|
|
125
|
+
return Object.entries(changed).every(([field, pair]) => field.startsWith('@')
|
|
126
|
+
|| (pair && typeof pair === 'object' && JSON.stringify(pair.old ?? null) === JSON.stringify(pair.new ?? null)))
|
|
127
|
+
}
|
|
128
|
+
|
|
109
129
|
export default {
|
|
110
130
|
name: 'CnAuditTrailCard',
|
|
111
131
|
|
|
@@ -268,15 +288,20 @@ export default {
|
|
|
268
288
|
return this.title || t('nextcloud-vue', 'Audit trail')
|
|
269
289
|
},
|
|
270
290
|
|
|
271
|
-
/**
|
|
291
|
+
/**
|
|
292
|
+
* The entries without the excluded actions and actors, and without an
|
|
293
|
+
* update that changed nothing: a re-save whose `changed` holds no field
|
|
294
|
+
* whose old and new value differ (only `@self` bookkeeping) is not
|
|
295
|
+
* something that happened to the record.
|
|
296
|
+
*
|
|
297
|
+
* @return {Array<object>}
|
|
298
|
+
*/
|
|
272
299
|
shownEntries() {
|
|
273
300
|
const excluded = this.excludeActions.map((action) => String(action).toLowerCase())
|
|
274
301
|
const actors = this.excludeActors.map((actor) => String(actor).toLowerCase())
|
|
275
|
-
if (excluded.length === 0 && actors.length === 0) {
|
|
276
|
-
return this.entries
|
|
277
|
-
}
|
|
278
302
|
return this.entries.filter((entry) => !excluded.includes(String(entry.action || entry.event || '').toLowerCase())
|
|
279
|
-
&& !actors.includes(String(entry.user || '').toLowerCase())
|
|
303
|
+
&& !actors.includes(String(entry.user || '').toLowerCase())
|
|
304
|
+
&& !isEmptyUpdate(entry))
|
|
280
305
|
},
|
|
281
306
|
|
|
282
307
|
/** @return {boolean} Whether the card leaves entries out, and so reads more than it shows. */
|
|
@@ -406,6 +406,8 @@ export default {
|
|
|
406
406
|
conditionFailed: false,
|
|
407
407
|
/** Why it failed, as the request reported it. */
|
|
408
408
|
conditionFailureReason: '',
|
|
409
|
+
/** Whether the browser says it is online, for `content.connection`. */
|
|
410
|
+
online: typeof navigator === 'undefined' || navigator.onLine !== false,
|
|
409
411
|
}
|
|
410
412
|
},
|
|
411
413
|
|
|
@@ -461,6 +463,24 @@ export default {
|
|
|
461
463
|
return normalizeLook(this.cnLook) === 'board' ? this.resolvedActions.slice(0, 1) : []
|
|
462
464
|
},
|
|
463
465
|
|
|
466
|
+
/**
|
|
467
|
+
* `content.connection`: `offline` shows the banner only while the
|
|
468
|
+
* device is offline, `online` only while it is online (DqInspectie
|
|
469
|
+
* "3 wijzigingen wachten op bereik"); unset shows it either way.
|
|
470
|
+
*
|
|
471
|
+
* @return {boolean}
|
|
472
|
+
*/
|
|
473
|
+
connectionAllows() {
|
|
474
|
+
const connection = this.content && this.content.connection
|
|
475
|
+
if (connection === 'offline') {
|
|
476
|
+
return !this.online
|
|
477
|
+
}
|
|
478
|
+
if (connection === 'online') {
|
|
479
|
+
return this.online
|
|
480
|
+
}
|
|
481
|
+
return true
|
|
482
|
+
},
|
|
483
|
+
|
|
464
484
|
/** The effective visibleWhen condition (prop → content → null). */
|
|
465
485
|
resolvedVisibleWhen() {
|
|
466
486
|
return this.visibleWhen || (this.content && this.content.visibleWhen) || null
|
|
@@ -634,6 +654,9 @@ export default {
|
|
|
634
654
|
* @spec openspec/changes/workplace-dashboard-primitives/specs/workplace-dashboard-primitives/spec.md#requirement-attention-card
|
|
635
655
|
*/
|
|
636
656
|
visible() {
|
|
657
|
+
if (!this.connectionAllows) {
|
|
658
|
+
return false
|
|
659
|
+
}
|
|
637
660
|
const title = this.title || (this.content && this.content.title) || ''
|
|
638
661
|
if (this.resolvedText === '' && this.resolvedLead === '' && !(this.isAttention && title !== '')) {
|
|
639
662
|
return false
|
|
@@ -736,7 +759,22 @@ export default {
|
|
|
736
759
|
},
|
|
737
760
|
},
|
|
738
761
|
|
|
762
|
+
mounted() {
|
|
763
|
+
window.addEventListener('online', this.onConnection)
|
|
764
|
+
window.addEventListener('offline', this.onConnection)
|
|
765
|
+
},
|
|
766
|
+
|
|
767
|
+
beforeUnmount() {
|
|
768
|
+
window.removeEventListener('online', this.onConnection)
|
|
769
|
+
window.removeEventListener('offline', this.onConnection)
|
|
770
|
+
},
|
|
771
|
+
|
|
739
772
|
methods: {
|
|
773
|
+
/** Follow the browser's connection, for `content.connection`. */
|
|
774
|
+
onConnection() {
|
|
775
|
+
this.online = typeof navigator === 'undefined' || navigator.onLine !== false
|
|
776
|
+
},
|
|
777
|
+
|
|
740
778
|
/**
|
|
741
779
|
* A manifest string through the host's label lookup (`cnTranslate`), so a key
|
|
742
780
|
* such as "Mine" reads in the user's language.
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
aria-hidden="true">{{ row.directionWord }}</span>
|
|
77
77
|
<time v-if="row.timeLabel" :datetime="row.datetime || null">{{ row.timeLabel }}</time>
|
|
78
78
|
</span>
|
|
79
|
+
<span v-if="row.subjectLine" class="cn-conversation-thread__subject" data-testid="cn-conversation-subject">{{ row.subjectLine }}</span>
|
|
79
80
|
<span class="cn-conversation-thread__text">{{ row.text }}</span>
|
|
80
81
|
<span v-if="row.note" class="cn-conversation-thread__note" data-testid="cn-conversation-note">{{ row.note }}</span>
|
|
81
82
|
<span v-if="row.actions.length > 0" class="cn-conversation-thread__message-actions">
|
|
@@ -203,7 +204,7 @@ export default {
|
|
|
203
204
|
|
|
204
205
|
props: {
|
|
205
206
|
/**
|
|
206
|
-
* The messages, oldest first: `{ id?, author?, time?, text, side?, channel?, channelIcon?, status?, actions?, note? }`.
|
|
207
|
+
* The messages, oldest first: `{ id?, author?, time?, text, side?, channel?, channelIcon?, status?, subject?, actions?, note? }`.
|
|
207
208
|
* `status` is shown after the channel ("Failed"); `actions` are
|
|
208
209
|
* `{ id, label, disabled? }` buttons under the text, each emitting
|
|
209
210
|
* `message-action`.
|
|
@@ -389,6 +390,7 @@ export default {
|
|
|
389
390
|
channel: typeof message.channel === 'string' ? message.channel : '',
|
|
390
391
|
channelIcon: typeof message.channelIcon === 'string' ? message.channelIcon : '',
|
|
391
392
|
status: typeof message.status === 'string' ? message.status : '',
|
|
393
|
+
subjectLine: typeof message.subject === 'string' && message.subject !== '' ? t('nextcloud-vue', 'Subject: {subject}', { subject: message.subject }) : '',
|
|
392
394
|
actions: Array.isArray(message.actions) ? message.actions.filter((action) => action && action.id && action.label) : [],
|
|
393
395
|
directionLabel: side === 'us' ? t('nextcloud-vue', 'Sent message') : t('nextcloud-vue', 'Received message'),
|
|
394
396
|
directionWord: side === 'us' ? t('nextcloud-vue', 'Outgoing') : t('nextcloud-vue', 'Incoming'),
|
|
@@ -655,6 +657,10 @@ export default {
|
|
|
655
657
|
content: ' ·';
|
|
656
658
|
}
|
|
657
659
|
|
|
660
|
+
.cn-conversation-thread__subject {
|
|
661
|
+
font-weight: 600;
|
|
662
|
+
}
|
|
663
|
+
|
|
658
664
|
.cn-conversation-thread__note {
|
|
659
665
|
color: var(--color-text-maxcontrast);
|
|
660
666
|
font-size: 13px;
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
|
|
86
86
|
<script>
|
|
87
87
|
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
|
|
88
|
-
import { translate as t } from '@nextcloud/l10n'
|
|
88
|
+
import { translatePlural as n, translate as t } from '@nextcloud/l10n'
|
|
89
89
|
import { NcButton, NcCheckboxRadioSwitch } from '@nextcloud/vue'
|
|
90
90
|
import CnIcon from '../CnIcon/CnIcon.vue'
|
|
91
91
|
import CnTemplateSelect from '../CnTemplateSelect/CnTemplateSelect.vue'
|
|
@@ -111,6 +111,9 @@ import { userDisplayName } from '../../utils/userDisplayName.js'
|
|
|
111
111
|
* `outValue`) for the messages the organisation sent, and `channelField` with
|
|
112
112
|
* an optional `channelMap` from stored value to label ("email" to "E-mail")
|
|
113
113
|
* and `channelIcons` from stored value to an icon name, drawn before the label.
|
|
114
|
+
* `subjectField` shows a message's subject on a line of its own above its
|
|
115
|
+
* text ("Subject: ..."); `noteField` a grey line under it, followed by the
|
|
116
|
+
* count `attachmentCountField` holds ("1 attachment").
|
|
114
117
|
*
|
|
115
118
|
* The reply box posts to `endpoint` (`@objectId` filled in), or runs
|
|
116
119
|
* `replyAction`, an action descriptor the app decides the meaning of: it is
|
|
@@ -307,7 +310,8 @@ export default {
|
|
|
307
310
|
return {
|
|
308
311
|
id: key,
|
|
309
312
|
author: this.authorOf(message, sideOf),
|
|
310
|
-
|
|
313
|
+
subject: c.subjectField ? this.textOf(readPath(message, c.subjectField)) : '',
|
|
314
|
+
note: this.noteOf(message),
|
|
311
315
|
time: readPath(message, c.timestampField || c.timeField || 'time'),
|
|
312
316
|
text: readPath(message, c.bodyField || c.textField || 'text'),
|
|
313
317
|
side: sideOf,
|
|
@@ -694,6 +698,22 @@ export default {
|
|
|
694
698
|
return format === 'user' && text !== '' ? (userDisplayName(text) || text) : text
|
|
695
699
|
},
|
|
696
700
|
|
|
701
|
+
/**
|
|
702
|
+
* The grey line under a message: its note, then its attachment count,
|
|
703
|
+
* joined with a comma ("Binnengekomen op het Woo-postvak, 1 bijlage").
|
|
704
|
+
*
|
|
705
|
+
* @param {object} message The stored message.
|
|
706
|
+
* @return {string} The line, or '' when it has neither.
|
|
707
|
+
* @spec openspec/changes/conversation-subject-attachments/specs/conversation-subject-attachments/spec.md#requirement-a-message-can-show-its-subject-note-and-attachment-count
|
|
708
|
+
*/
|
|
709
|
+
noteOf(message) {
|
|
710
|
+
const c = this.content || {}
|
|
711
|
+
const note = c.noteField ? this.textOf(readPath(message, c.noteField)) : ''
|
|
712
|
+
const count = c.attachmentCountField ? Number(readPath(message, c.attachmentCountField)) : 0
|
|
713
|
+
const attachments = Number.isFinite(count) && count > 0 ? n('nextcloud-vue', '%n attachment', '%n attachments', count) : ''
|
|
714
|
+
return [note, attachments].filter((part) => part !== '').join(', ')
|
|
715
|
+
},
|
|
716
|
+
|
|
697
717
|
/**
|
|
698
718
|
* @param {unknown} value A stored value.
|
|
699
719
|
* @return {string} It as text, or '' for none.
|
|
@@ -5467,6 +5467,23 @@ export default {
|
|
|
5467
5467
|
margin-inline: calc(-1 * var(--cn-dashboard-grid-margin, 12px));
|
|
5468
5468
|
}
|
|
5469
5469
|
|
|
5470
|
+
/* Board look, a grid right under the header (DqCatalogus): GridStack's top
|
|
5471
|
+
margin set the first card 12px below the header's 20px; the grid reaches
|
|
5472
|
+
up by that margin too, so the card stands 20px under the header. */
|
|
5473
|
+
.cn-dashboard-page--board .cn-dashboard-page__header + :deep(.cn-dashboard-grid) {
|
|
5474
|
+
margin-top: calc(-1 * var(--cn-dashboard-grid-margin, 12px));
|
|
5475
|
+
}
|
|
5476
|
+
|
|
5477
|
+
/* A header with a breadcrumb trail ends 8px under it, as the boards pad
|
|
5478
|
+
their header (DqCatalogus: 167). */
|
|
5479
|
+
.cn-dashboard-page--board .cn-dashboard-page__header:has(.cn-header-trail) {
|
|
5480
|
+
padding-bottom: 8px;
|
|
5481
|
+
}
|
|
5482
|
+
|
|
5483
|
+
.cn-dashboard-page--board .cn-dashboard-page__header :deep(.cn-header-trail) {
|
|
5484
|
+
margin-bottom: 0;
|
|
5485
|
+
}
|
|
5486
|
+
|
|
5470
5487
|
.cn-dashboard-page__kpi-cell {
|
|
5471
5488
|
display: flex;
|
|
5472
5489
|
min-width: 0;
|
|
@@ -103,6 +103,7 @@ export default {
|
|
|
103
103
|
* `offlineText` while the device is offline and `onlineText` otherwise. `tone` is `warning`
|
|
104
104
|
* (default while offline), `success` or `info`.
|
|
105
105
|
* - `width` — the frame width in pixels (default 350).
|
|
106
|
+
* - `height` — the frame height in pixels (at least 400); what does not fit scrolls inside it. Without it the frame grows with its content.
|
|
106
107
|
*
|
|
107
108
|
* @type {{frames?: Array<object>, status?: object, width?: number}}
|
|
108
109
|
*/
|
|
@@ -190,7 +191,12 @@ export default {
|
|
|
190
191
|
/** @return {object} The frame width. */
|
|
191
192
|
frameStyle() {
|
|
192
193
|
const width = Number(this.content?.width)
|
|
193
|
-
|
|
194
|
+
const height = Number(this.content?.height)
|
|
195
|
+
const style = { '--cn-device-frame-width': `${Number.isFinite(width) && width >= 240 ? width : 350}px` }
|
|
196
|
+
if (Number.isFinite(height) && height >= 400) {
|
|
197
|
+
style['--cn-device-frame-height'] = `${height}px`
|
|
198
|
+
}
|
|
199
|
+
return style
|
|
194
200
|
},
|
|
195
201
|
|
|
196
202
|
/**
|
|
@@ -299,6 +305,7 @@ export default {
|
|
|
299
305
|
width: var(--cn-device-frame-width, 350px);
|
|
300
306
|
max-width: 100%;
|
|
301
307
|
min-height: 600px;
|
|
308
|
+
height: var(--cn-device-frame-height, auto);
|
|
302
309
|
box-sizing: border-box;
|
|
303
310
|
overflow: hidden;
|
|
304
311
|
border: 10px solid var(--color-main-text);
|
|
@@ -349,6 +356,14 @@ export default {
|
|
|
349
356
|
padding: 14px;
|
|
350
357
|
}
|
|
351
358
|
|
|
359
|
+
/* `height` (DqInspectie: 700) makes every frame a phone of that height;
|
|
360
|
+
what does not fit scrolls inside the screen. */
|
|
361
|
+
.cn-device-frames-widget__frame[style*='--cn-device-frame-height'] .cn-device-frames-widget__body {
|
|
362
|
+
flex: 1 1 auto;
|
|
363
|
+
min-height: 0;
|
|
364
|
+
overflow-y: auto;
|
|
365
|
+
}
|
|
366
|
+
|
|
352
367
|
/* On a phone the frame is the screen: no bezel, the full width. */
|
|
353
368
|
@media (max-width: 640px) {
|
|
354
369
|
.cn-device-frames-widget__frame {
|
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
<NcButton v-else-if="run.href"
|
|
29
29
|
:href="run.href"
|
|
30
30
|
data-testid="cn-exports-download">
|
|
31
|
+
<template #icon>
|
|
32
|
+
<DownloadOutline :size="16" />
|
|
33
|
+
</template>
|
|
31
34
|
{{ t('nextcloud-vue', 'Download') }}
|
|
32
35
|
</NcButton>
|
|
33
36
|
</li>
|
|
@@ -41,6 +44,7 @@ import axios from '@nextcloud/axios'
|
|
|
41
44
|
import { translatePlural as n, translate as t } from '@nextcloud/l10n'
|
|
42
45
|
import { generateRemoteUrl, generateUrl } from '@nextcloud/router'
|
|
43
46
|
import { NcButton } from '@nextcloud/vue'
|
|
47
|
+
import DownloadOutline from 'vue-material-design-icons/DownloadOutline.vue'
|
|
44
48
|
import { formatBoardDate } from '../../utils/boardDate.js'
|
|
45
49
|
|
|
46
50
|
/**
|
|
@@ -62,7 +66,7 @@ import { formatBoardDate } from '../../utils/boardDate.js'
|
|
|
62
66
|
export default {
|
|
63
67
|
name: 'CnExportsWidget',
|
|
64
68
|
|
|
65
|
-
components: { NcButton },
|
|
69
|
+
components: { DownloadOutline, NcButton },
|
|
66
70
|
|
|
67
71
|
inject: {
|
|
68
72
|
/** Host translate function provided by CnAppRoot. */
|
|
@@ -727,6 +727,7 @@ export default {
|
|
|
727
727
|
--nldesign-component-paragraph-color: var(--color-text-maxcontrast);
|
|
728
728
|
margin: 0;
|
|
729
729
|
font-size: 14px;
|
|
730
|
+
line-height: normal;
|
|
730
731
|
color: var(--color-text-maxcontrast);
|
|
731
732
|
}
|
|
732
733
|
|
|
@@ -1002,6 +1003,7 @@ export default {
|
|
|
1002
1003
|
display: flex;
|
|
1003
1004
|
flex-direction: column;
|
|
1004
1005
|
gap: 2px;
|
|
1006
|
+
line-height: normal;
|
|
1005
1007
|
}
|
|
1006
1008
|
|
|
1007
1009
|
.cn-features-board__row-title {
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
:disabled="busy !== ''"
|
|
12
12
|
data-testid="cn-field-list-open-add"
|
|
13
13
|
@click="adding = !adding">
|
|
14
|
-
|
|
14
|
+
<template #icon>
|
|
15
|
+
<Plus :size="16" />
|
|
16
|
+
</template>
|
|
17
|
+
{{ addLabel }}
|
|
15
18
|
</NcButton>
|
|
16
19
|
</div>
|
|
17
20
|
<form
|
|
@@ -229,7 +232,13 @@
|
|
|
229
232
|
:aria-label="removeAriaLabel(row)"
|
|
230
233
|
:data-testid="`cn-field-list-remove-${row.key}`"
|
|
231
234
|
@click="remove(row)">
|
|
232
|
-
|
|
235
|
+
<!-- An option row has room for an icon, not a word, beside its name and code. -->
|
|
236
|
+
<template v-if="isOptions" #icon>
|
|
237
|
+
<DeleteOutline :size="18" />
|
|
238
|
+
</template>
|
|
239
|
+
<template v-if="!isOptions" #default>
|
|
240
|
+
{{ removeLabel }}
|
|
241
|
+
</template>
|
|
233
242
|
</NcButton>
|
|
234
243
|
</div>
|
|
235
244
|
<p v-if="row.detail" class="cn-field-list-widget__detail">
|
|
@@ -258,7 +267,10 @@
|
|
|
258
267
|
:disabled="busy !== ''"
|
|
259
268
|
data-testid="cn-field-list-open-add"
|
|
260
269
|
@click="adding = true">
|
|
261
|
-
|
|
270
|
+
<template #icon>
|
|
271
|
+
<Plus :size="16" />
|
|
272
|
+
</template>
|
|
273
|
+
{{ addLabel }}
|
|
262
274
|
</NcButton>
|
|
263
275
|
</div>
|
|
264
276
|
<form
|
|
@@ -325,7 +337,9 @@
|
|
|
325
337
|
<script>
|
|
326
338
|
import { translate as t } from '@nextcloud/l10n'
|
|
327
339
|
import { NcActionButton, NcActions, NcButton, NcCheckboxRadioSwitch, NcNoteCard, NcSelect, NcTextField } from '@nextcloud/vue'
|
|
340
|
+
import DeleteOutline from 'vue-material-design-icons/DeleteOutline.vue'
|
|
328
341
|
import DragVertical from 'vue-material-design-icons/DragVertical.vue'
|
|
342
|
+
import Plus from 'vue-material-design-icons/Plus.vue'
|
|
329
343
|
import CnStatusBadge from '../CnStatusBadge/CnStatusBadge.vue'
|
|
330
344
|
import { isBadgeVariant } from '../../utils/badgeVariants.js'
|
|
331
345
|
import { formatBoardDate } from '../../utils/boardDate.js'
|
|
@@ -386,7 +400,7 @@ function rowHref(entry, spec) {
|
|
|
386
400
|
export default {
|
|
387
401
|
name: 'CnFieldListWidget',
|
|
388
402
|
|
|
389
|
-
components: { CnStatusBadge, DragVertical, NcActionButton, NcActions, NcButton, NcCheckboxRadioSwitch, NcNoteCard, NcSelect, NcTextField },
|
|
403
|
+
components: { CnStatusBadge, DeleteOutline, DragVertical, NcActionButton, NcActions, NcButton, NcCheckboxRadioSwitch, NcNoteCard, NcSelect, NcTextField, Plus },
|
|
390
404
|
|
|
391
405
|
inject: {
|
|
392
406
|
cnTranslate: { default: () => (key) => key },
|
|
@@ -6373,7 +6373,24 @@ export default {
|
|
|
6373
6373
|
if (declared || !from || typeof from.field !== 'string' || from.field === '') {
|
|
6374
6374
|
return ''
|
|
6375
6375
|
}
|
|
6376
|
-
return JSON.stringify({ r: this.register, s: this.exportSchemaSlug, f: this.filter || null, q: from })
|
|
6376
|
+
return JSON.stringify({ r: this.register, s: this.exportSchemaSlug, f: this.filter || null, a: this.quickFiltersFromScope, q: from })
|
|
6377
|
+
},
|
|
6378
|
+
|
|
6379
|
+
/**
|
|
6380
|
+
* The active filters the `quickFiltersFrom` values are counted within,
|
|
6381
|
+
* without the field's own: a saved view's or default filters narrow the
|
|
6382
|
+
* tabs as they narrow the list, and picking a tab keeps the others.
|
|
6383
|
+
*
|
|
6384
|
+
* @return {object}
|
|
6385
|
+
* @spec openspec/changes/quick-filters-from-active-scope/specs/quick-filters-from-active-scope/spec.md#requirement-generated-quick-filters-count-within-the-active-filters
|
|
6386
|
+
*/
|
|
6387
|
+
quickFiltersFromScope() {
|
|
6388
|
+
const field = this.quickFiltersFrom && this.quickFiltersFrom.field
|
|
6389
|
+
const scope = { ...(this.effectiveActiveFilters || {}) }
|
|
6390
|
+
if (field) {
|
|
6391
|
+
delete scope[field]
|
|
6392
|
+
}
|
|
6393
|
+
return scope
|
|
6377
6394
|
},
|
|
6378
6395
|
|
|
6379
6396
|
filterStripCountKey() {
|
|
@@ -9830,7 +9847,8 @@ export default {
|
|
|
9830
9847
|
|
|
9831
9848
|
/**
|
|
9832
9849
|
* Build the `quickFiltersFrom` tabs: the field's distinct values with
|
|
9833
|
-
* their counts
|
|
9850
|
+
* their counts within the page filter and the active filters (not the
|
|
9851
|
+
* field's own) in one grouped request, labelled through the
|
|
9834
9852
|
* reference-label resolver when the values are record ids. A failed
|
|
9835
9853
|
* request draws no tabs.
|
|
9836
9854
|
*
|
|
@@ -9849,7 +9867,7 @@ export default {
|
|
|
9849
9867
|
const ctx = typeof this.selfFetchTokenCtx === 'function' ? this.selfFetchTokenCtx() : {}
|
|
9850
9868
|
let groups
|
|
9851
9869
|
try {
|
|
9852
|
-
groups = await fetchGroupedCounts({ register: this.register, schema, groupBy: from.field, filter: resolveFilterMap(this.filter, params, ctx) }, ctx)
|
|
9870
|
+
groups = await fetchGroupedCounts({ register: this.register, schema, groupBy: from.field, filter: { ...resolveFilterMap(this.filter, params, ctx), ...resolveFilterMap(this.quickFiltersFromScope, params, ctx) } }, ctx)
|
|
9853
9871
|
} catch {
|
|
9854
9872
|
groups = []
|
|
9855
9873
|
}
|
|
@@ -1269,9 +1269,29 @@ export default {
|
|
|
1269
1269
|
// The board look keeps the top right for its control column.
|
|
1270
1270
|
this.layersControl = L.control.layers(baseLayers, {}, { position: this.isBoardLook ? 'topleft' : 'topright' })
|
|
1271
1271
|
this.layersControl.addTo(this.map)
|
|
1272
|
+
this.labelLayersToggle()
|
|
1272
1273
|
}
|
|
1273
1274
|
},
|
|
1274
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* Name the base-map switch in the user's language: Leaflet titles its
|
|
1278
|
+
* toggle "Layers" and gives it no accessible name of its own.
|
|
1279
|
+
*
|
|
1280
|
+
* @spec openspec/changes/board-map-layers-button/specs/board-map-layers-button/spec.md#requirement-the-base-map-switch-is-a-named-board-button
|
|
1281
|
+
*/
|
|
1282
|
+
labelLayersToggle() {
|
|
1283
|
+
const container = this.layersControl && typeof this.layersControl.getContainer === 'function'
|
|
1284
|
+
? this.layersControl.getContainer()
|
|
1285
|
+
: null
|
|
1286
|
+
const toggle = container ? container.querySelector('.leaflet-control-layers-toggle') : null
|
|
1287
|
+
if (!toggle) {
|
|
1288
|
+
return
|
|
1289
|
+
}
|
|
1290
|
+
const label = t('nextcloud-vue', 'Map layers')
|
|
1291
|
+
toggle.setAttribute('title', label)
|
|
1292
|
+
toggle.setAttribute('aria-label', label)
|
|
1293
|
+
},
|
|
1294
|
+
|
|
1275
1295
|
/**
|
|
1276
1296
|
* Mount the custom control bar (fit-all / locate / fullscreen). Leaflet's own
|
|
1277
1297
|
* zoom + attribution controls are enabled separately in `initMap`; in the
|