@conduction/nextcloud-vue 2.156.0 → 2.157.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue.js +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js +38 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js.map +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue3.js.map +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue.js +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue.js +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnChecklistRunWidget/CnChecklistRunWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue.js +1 -1
- package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnCountdownWidget/CnCountdownWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js +5 -3
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue3.js.map +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue.js +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue.js +1 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js +2 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue2.js.map +1 -1
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js +10 -3
- package/dist/esm/components/CnDuplicateWarning/CnDuplicateWarning.vue3.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +14 -4
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js +3 -3
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +2 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnMailTab/CnMailTab.vue.js +1 -1
- package/dist/esm/components/CnMailTab/CnMailTab.vue2.js +4 -4
- package/dist/esm/components/CnMailTab/CnMailTab.vue2.js.map +1 -1
- package/dist/esm/components/CnMailTab/CnMailTab.vue3.js.map +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue.js +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js +3 -0
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue2.js.map +1 -1
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js +10 -2
- package/dist/esm/components/CnNotificationMatrix/CnNotificationMatrix.vue3.js.map +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue.js +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js +6 -0
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue2.js.map +1 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js +2 -1
- package/dist/esm/components/CnPartyPicker/CnPartyPicker.vue3.js.map +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue.js +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue2.js.map +1 -1
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js +27 -24
- package/dist/esm/components/CnSavedViewLookFields/CnSavedViewLookFields.vue3.js.map +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue.js +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue2.js.map +1 -1
- package/dist/esm/components/CnSearchSelect/CnSearchSelect.vue3.js.map +1 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue.js +1 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js +4 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnStagesWidget/CnStagesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnStagesWidget/stagesModel.js +10 -2
- package/dist/esm/components/CnStagesWidget/stagesModel.js.map +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue.js +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js +61 -2
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue2.js.map +1 -1
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js +68 -44
- package/dist/esm/components/CnTimelineWidget/CnTimelineManage.vue3.js.map +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue.js +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js +13 -3
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue2.js.map +1 -1
- package/dist/esm/integrations/builtin/email/CnEmailTab.vue3.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +720 -401
- package/dist/esm/utils/dynamicProperties.js +20 -2
- package/dist/esm/utils/dynamicProperties.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +880 -684
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +720 -401
- package/package.json +1 -1
- package/src/components/CnAuditTrailCard/CnAuditTrailCard.vue +38 -1
- package/src/components/CnBannerWidget/CnBannerWidget.vue +5 -1
- package/src/components/CnChecklistRunWidget/CnChecklistRunWidget.vue +12 -5
- package/src/components/CnCountdownWidget/CnCountdownWidget.vue +12 -0
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +5 -3
- package/src/components/CnDeviceFramesWidget/CnDeviceFramesWidget.vue +1 -0
- package/src/components/CnDuplicateWarning/CnDuplicateWarning.vue +8 -4
- package/src/components/CnFactsWidget/CnFactsWidget.vue +31 -6
- package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +4 -2
- package/src/components/CnFormDialog/CnFormDialog.vue +1 -0
- package/src/components/CnMailTab/CnMailTab.vue +4 -4
- package/src/components/CnNotificationMatrix/CnNotificationMatrix.vue +20 -0
- package/src/components/CnPartyPicker/CnPartyPicker.vue +7 -0
- package/src/components/CnSavedViewLookFields/CnSavedViewLookFields.vue +27 -20
- package/src/components/CnSearchSelect/CnSearchSelect.vue +3 -1
- package/src/components/CnStagesWidget/CnStagesWidget.vue +4 -1
- package/src/components/CnStagesWidget/stagesModel.js +10 -2
- package/src/components/CnTimelineWidget/CnTimelineManage.vue +69 -4
- package/src/css/dialog.css +33 -0
- package/src/css/look-board-detail.css +10 -3
- package/src/css/look-board-index.css +34 -3
- package/src/css/look-board.css +191 -4
- package/src/integrations/builtin/email/CnEmailTab.vue +13 -3
- package/src/utils/dynamicProperties.js +19 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conduction/nextcloud-vue",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.157.1",
|
|
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": {
|
|
@@ -391,7 +391,7 @@ export default {
|
|
|
391
391
|
if (response.ok) {
|
|
392
392
|
const data = await response.json()
|
|
393
393
|
const list = data.results || data.rows || data
|
|
394
|
-
const own = Array.isArray(list) ? list : []
|
|
394
|
+
const own = await this.withFollowingPages(url, Array.isArray(list) ? list : [])
|
|
395
395
|
const related = await this.fetchRelatedEntries()
|
|
396
396
|
this.entries = related.length > 0
|
|
397
397
|
? [...own, ...related].sort((a, b) => entryTime(b) - entryTime(a))
|
|
@@ -410,6 +410,43 @@ export default {
|
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
412
|
|
|
413
|
+
/**
|
|
414
|
+
* An object's trail read on until it holds enough entries to show. The
|
|
415
|
+
* card leaves entries out (reads, actors, empty re-saves) after
|
|
416
|
+
* reading, and every page view writes a read, so the newest page alone
|
|
417
|
+
* can be all reads (DqHandhaving Historie: "no changes yet"). Reads at
|
|
418
|
+
* most four more pages.
|
|
419
|
+
*
|
|
420
|
+
* @param {string} url The first page's path.
|
|
421
|
+
* @param {Array<object>} first The first page's entries.
|
|
422
|
+
* @return {Promise<Array<object>>} The entries read.
|
|
423
|
+
*/
|
|
424
|
+
async withFollowingPages(url, first) {
|
|
425
|
+
const entries = [...first]
|
|
426
|
+
if (!this.filtersEntries || this.scope !== 'object' || this.sourceUrl !== null) {
|
|
427
|
+
return entries
|
|
428
|
+
}
|
|
429
|
+
const limit = Number(new URLSearchParams(url.split('?')[1] || '').get('limit')) || first.length
|
|
430
|
+
let page = first
|
|
431
|
+
for (let more = 0; more < 4 && page.length >= limit && limit > 0; more++) {
|
|
432
|
+
this.entries = [...entries]
|
|
433
|
+
if (this.shownEntries.length >= this.maxDisplay) {
|
|
434
|
+
break
|
|
435
|
+
}
|
|
436
|
+
const next = new URL(url, 'http://x')
|
|
437
|
+
next.searchParams.set('offset', String(entries.length))
|
|
438
|
+
const response = await fetch(prefixUrl(next.pathname + next.search), { headers: buildHeaders() })
|
|
439
|
+
if (!response.ok) {
|
|
440
|
+
break
|
|
441
|
+
}
|
|
442
|
+
const data = await response.json()
|
|
443
|
+
const list = data.results || data.rows || data
|
|
444
|
+
page = Array.isArray(list) ? list : []
|
|
445
|
+
entries.push(...page)
|
|
446
|
+
}
|
|
447
|
+
return [...entries]
|
|
448
|
+
},
|
|
449
|
+
|
|
413
450
|
/**
|
|
414
451
|
* The entries of the records beside the object (`relatedSources`),
|
|
415
452
|
* each tagged with its source's `as`. A read that fails leaves that
|
|
@@ -992,7 +992,11 @@ export default {
|
|
|
992
992
|
width: 100%;
|
|
993
993
|
}
|
|
994
994
|
|
|
995
|
-
|
|
995
|
+
/* Doubled: NcNoteCard's own `.notecard` margin (15px above and below) is as
|
|
996
|
+
strong as one scoped class and loads later, so the card kept it and stood
|
|
997
|
+
15px under its grid cell's top (DqDashboard info line, r33).
|
|
998
|
+
@spec openspec/changes/banner-card-no-margin/specs/banner-card-no-margin/spec.md#requirement-a-banner-card-draws-no-margin-of-its-own */
|
|
999
|
+
.cn-banner-widget__card.cn-banner-widget__card {
|
|
996
1000
|
margin: 0;
|
|
997
1001
|
}
|
|
998
1002
|
|
|
@@ -1263,9 +1263,9 @@ export default {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
1265
|
/* A note is two 15px lines on the normal line height, 8px 12px in: 54px, as
|
|
1266
|
-
the board draws it
|
|
1266
|
+
the board draws it. A theme pads every textarea 5px 12px with !important. */
|
|
1267
1267
|
.cn-checklist-run__text.cn-checklist-run__text {
|
|
1268
|
-
padding: 8px 12px;
|
|
1268
|
+
padding: 8px 12px !important;
|
|
1269
1269
|
line-height: normal;
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
@@ -1298,11 +1298,12 @@ export default {
|
|
|
1298
1298
|
padding: 0 14px;
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
/* A theme sets every label bold and at the body size
|
|
1302
|
-
|
|
1301
|
+
/* A theme sets every label bold and at the body size, the weight with
|
|
1302
|
+
!important (thematiq's form-field label token); the photo button is the
|
|
1303
|
+
board's 14px/600 control with a camera before its label (DqInspectie). */
|
|
1303
1304
|
.cn-checklist-run__photo-button.cn-checklist-run__photo-button {
|
|
1304
1305
|
font-size: 14px;
|
|
1305
|
-
font-weight: 600;
|
|
1306
|
+
font-weight: 600 !important;
|
|
1306
1307
|
}
|
|
1307
1308
|
|
|
1308
1309
|
.cn-checklist-run__photo-button:focus-within {
|
|
@@ -1323,6 +1324,12 @@ export default {
|
|
|
1323
1324
|
justify-content: space-between;
|
|
1324
1325
|
}
|
|
1325
1326
|
|
|
1327
|
+
/* Previous and Next are as wide as the board draws them: NcButton pads its
|
|
1328
|
+
label 4px a side inside the button's own padding, the board 2px. */
|
|
1329
|
+
.cn-checklist-run__nav :deep(.button-vue__text) {
|
|
1330
|
+
padding-inline: 2px;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1326
1333
|
.cn-checklist-run__error {
|
|
1327
1334
|
color: var(--color-error-text, var(--color-error));
|
|
1328
1335
|
margin: 0;
|
|
@@ -506,6 +506,18 @@ export default {
|
|
|
506
506
|
font-size: 13px;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
+
/* The board stacks the term card 10px apart: the days, the date line, the
|
|
510
|
+
bar and the action (DqZaak "Termijn": r33 live 2 / 11.9 / 5 against 10,
|
|
511
|
+
card 182.7 against 188). */
|
|
512
|
+
.cn-countdown-widget--board .cn-kpi-card__body {
|
|
513
|
+
gap: 10px;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.cn-countdown-widget--board .cn-countdown-widget__progress.cn-countdown-widget__progress,
|
|
517
|
+
.cn-countdown-widget--board .cn-countdown-widget__action.cn-countdown-widget__action {
|
|
518
|
+
margin: 0;
|
|
519
|
+
}
|
|
520
|
+
|
|
509
521
|
.cn-countdown-widget__action--primary {
|
|
510
522
|
background: var(--color-primary-element-light);
|
|
511
523
|
color: var(--color-primary-element-light-text);
|
|
@@ -108,12 +108,14 @@ const MENU_ANCHOR_OFFSET = 8
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* How many GridStack rows a layout row is drawn as on a grid with
|
|
111
|
-
* size-to-content cells (`wantsRowSplit`): 80px rows become
|
|
112
|
-
* cell sized to its content ends
|
|
111
|
+
* size-to-content cells (`wantsRowSplit`): 80px rows become 1px rows, so a
|
|
112
|
+
* cell sized to its content ends less than 1px under it. On 4px rows each
|
|
113
|
+
* stacked card could end up to 4px low, and the rounding added up down a
|
|
114
|
+
* column (r33 DqHandhaving "De overtreding" y +6).
|
|
113
115
|
*
|
|
114
116
|
* @spec openspec/changes/fit-cells-on-4px-rows/specs/fit-cells-on-4px-rows/spec.md#requirement-a-size-to-content-cell-ends-within-4px-of-its-content
|
|
115
117
|
*/
|
|
116
|
-
const ROW_SPLIT =
|
|
118
|
+
const ROW_SPLIT = 80
|
|
117
119
|
|
|
118
120
|
/**
|
|
119
121
|
* Whether a layout holds a size-to-content cell (`sizeToContent` true or a
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<CnDialog
|
|
7
7
|
:name="text(title) || t('nextcloud-vue', 'This may already exist')"
|
|
8
8
|
:eyebrow="text(eyebrow)"
|
|
9
|
-
width="
|
|
9
|
+
width="confirm"
|
|
10
10
|
data-testid="cn-duplicate-warning"
|
|
11
11
|
@closing="close">
|
|
12
12
|
<div class="cn-duplicate-warning">
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
|
|
49
49
|
<template #actions>
|
|
50
|
-
<NcButton variant="
|
|
50
|
+
<NcButton variant="secondary" data-testid="cn-duplicate-warning-cancel" @click="close">
|
|
51
51
|
{{ t('nextcloud-vue', 'Cancel') }}
|
|
52
52
|
</NcButton>
|
|
53
53
|
<NcButton v-if="affordances.mayContinue"
|
|
@@ -55,6 +55,9 @@
|
|
|
55
55
|
:disabled="!canFile"
|
|
56
56
|
data-testid="cn-duplicate-warning-continue"
|
|
57
57
|
@click="fileAnyway">
|
|
58
|
+
<template #icon>
|
|
59
|
+
<CnIcon name="Plus" :size="20" />
|
|
60
|
+
</template>
|
|
58
61
|
{{ text(continueLabel) || t('nextcloud-vue', 'File it anyway') }}
|
|
59
62
|
</NcButton>
|
|
60
63
|
</template>
|
|
@@ -65,6 +68,7 @@
|
|
|
65
68
|
import { translatePlural as n, translate as t } from '@nextcloud/l10n'
|
|
66
69
|
import { generateUrl } from '@nextcloud/router'
|
|
67
70
|
import { NcButton, NcNoteCard, NcTextField } from '@nextcloud/vue'
|
|
71
|
+
import CnIcon from '../CnIcon/CnIcon.vue'
|
|
68
72
|
import { duplicateAffordances } from '../../utils/duplicateWarning.js'
|
|
69
73
|
import { fillTemplate, firstFilled } from '../../utils/fillTemplate.js'
|
|
70
74
|
import { CnDialog } from '../CnDialog/index.js'
|
|
@@ -96,7 +100,7 @@ import { CnDialog } from '../CnDialog/index.js'
|
|
|
96
100
|
export default {
|
|
97
101
|
name: 'CnDuplicateWarning',
|
|
98
102
|
|
|
99
|
-
components: { CnDialog, NcButton, NcNoteCard, NcTextField },
|
|
103
|
+
components: { CnDialog, CnIcon, NcButton, NcNoteCard, NcTextField },
|
|
100
104
|
|
|
101
105
|
inject: {
|
|
102
106
|
/** The host app's translate (CnAppRoot `cnTranslate`). */
|
|
@@ -364,7 +368,7 @@ export default {
|
|
|
364
368
|
gap: 4px 12px;
|
|
365
369
|
padding: 8px 12px;
|
|
366
370
|
border: 1px solid var(--color-border);
|
|
367
|
-
border-radius:
|
|
371
|
+
border-radius: 8px;
|
|
368
372
|
}
|
|
369
373
|
|
|
370
374
|
.cn-duplicate-warning__title {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<dl
|
|
42
42
|
v-if="block.kind === 'rows'"
|
|
43
43
|
class="cn-facts-widget__rows"
|
|
44
|
-
:class="{ 'cn-facts-widget__rows--columns': twoColumns, 'cn-facts-widget__rows--stacked': stacked }">
|
|
44
|
+
:class="{ 'cn-facts-widget__rows--columns': twoColumns, 'cn-facts-widget__rows--three': threeColumns, 'cn-facts-widget__rows--stacked': stacked }">
|
|
45
45
|
<div
|
|
46
46
|
v-for="row in block.rows"
|
|
47
47
|
:key="row.key"
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
<span
|
|
119
119
|
v-else-if="block.kind === 'text'"
|
|
120
120
|
class="cn-facts-widget__text"
|
|
121
|
+
:class="{ 'cn-facts-widget__text--joined': block.joined }"
|
|
121
122
|
:data-testid="`cn-fact-${block.key}`">
|
|
122
123
|
{{ block.value }}
|
|
123
124
|
</span>
|
|
@@ -474,7 +475,7 @@ export default {
|
|
|
474
475
|
* `as` is `row` (default when `label` or `icon` is set), `title`, `line`, `text` (a line in the normal ink), `lead` (an icon tile or initials beside `title` and `subtitle`), `pill` or `meter`.
|
|
475
476
|
* `countFrom` (`{ register, schema, filter? }`, `@objectId` / `@object.<field>` in the filter) shows how many records that list holds ("Lopende zaken 43"); the row is left out while the count cannot be read.
|
|
476
477
|
* A `meter` shows the amount at `path` against the limit at `limitPath` (or a constant `limit`) as "12 of 50" with a bar; past the limit the bar turns red and the text says "over the limit"; without a positive limit it shows the amount and no bar.
|
|
477
|
-
* A `line` or `text` with `joinPrevious: true` is written on after the line or text just before it, as one paragraph (`joinSeparator`, default a space); with none before it, it stands alone.
|
|
478
|
+
* A `line` or `text` with `joinPrevious: true` is written on after the line or text just before it, as one paragraph (`joinSeparator`, default a space); with none before it, it stands alone. A text joined with a line break (`joinSeparator: "\n"`) keeps it: two address lines as one block.
|
|
478
479
|
* A row with `inline: true` spans both columns as one line, the label, the value and its buttons side by side (a masked BSN with Show).
|
|
479
480
|
* A row's `format` may also be `email`, `phone` or `url` (a link) or `masked` (the last four characters; `reveal: true` adds Show, which unmasks the record's value; `reveal: { url, path? }` makes Show ask the server for the value at `url` (tokens resolved), read at `path` (else the entry's path), so a server that answers the mask can check and record the reveal). `copy: true` adds a copy button; `icon` replaces the label.
|
|
480
481
|
* A part may be `{ text }`, a constant; a `line` or `text` entry without `path` or `parts` shows its `text`.
|
|
@@ -499,7 +500,7 @@ export default {
|
|
|
499
500
|
* - `emptyWhen` — a path; when the record's value there is truthy the card shows `emptyText` (an endpoint that answers `empty: true`).
|
|
500
501
|
* - `link` — `{ label, route? | href? }` at the foot. `{ label, icon?, sidebarTab }` instead opens the page's object sidebar on that tab (no link without a sidebar).
|
|
501
502
|
* - `hideEmpty` — drop an entry whose value is empty (default true).
|
|
502
|
-
* - `columns` — `2` lays the rows out in two columns with the label above the value (board DqContact); a row with `parts` joins them like a line (an address on one row). `1` stacks each label above its value in one column, for a narrow card with long labels (board DqHandhaving "Afwijking en definitief").
|
|
503
|
+
* - `columns` — `2` lays the rows out in two columns with the label above the value (board DqContact), `3` in three (board DqSociaalDomein "De melding"); a row with `parts` joins them like a line (an address on one row). `1` stacks each label above its value in one column, for a narrow card with long labels (board DqHandhaving "Afwijking en definitief").
|
|
503
504
|
* - `emptyText` — shown when no entry has a value.
|
|
504
505
|
*
|
|
505
506
|
* @type {{fields?: Array<object>, source?: object, link?: object, hideEmpty?: boolean, emptyText?: string}}
|
|
@@ -575,13 +576,23 @@ export default {
|
|
|
575
576
|
},
|
|
576
577
|
|
|
577
578
|
/**
|
|
578
|
-
* Whether the rows sit in
|
|
579
|
+
* Whether the rows sit in columns, label above value: two, or three.
|
|
579
580
|
*
|
|
580
581
|
* @spec openspec/changes/facts-columns/specs/facts-widget/spec.md#requirement-facts-rows-can-sit-in-two-columns
|
|
581
582
|
* @return {boolean}
|
|
582
583
|
*/
|
|
583
584
|
twoColumns() {
|
|
584
|
-
return Number(this.content?.columns)
|
|
585
|
+
return [2, 3].includes(Number(this.content?.columns))
|
|
586
|
+
},
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Whether the rows sit in three columns (board DqSociaalDomein "De melding").
|
|
590
|
+
*
|
|
591
|
+
* @spec openspec/changes/facts-columns/specs/facts-widget/spec.md#requirement-facts-rows-can-sit-in-three-columns
|
|
592
|
+
* @return {boolean}
|
|
593
|
+
*/
|
|
594
|
+
threeColumns() {
|
|
595
|
+
return Number(this.content?.columns) === 3
|
|
585
596
|
},
|
|
586
597
|
|
|
587
598
|
/**
|
|
@@ -2283,6 +2294,12 @@ export default {
|
|
|
2283
2294
|
font-size: 15px;
|
|
2284
2295
|
}
|
|
2285
2296
|
|
|
2297
|
+
/* Text joined on with a line break (`joinSeparator: "\n"`) keeps the break:
|
|
2298
|
+
an address as two lines of one block (DqOrganisatie "KvK en adres"). */
|
|
2299
|
+
.cn-facts-widget__text--joined {
|
|
2300
|
+
white-space: pre-line;
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2286
2303
|
/* A lead: an icon tile or initials beside a bold title and a muted subtitle. */
|
|
2287
2304
|
.cn-facts-widget__lead {
|
|
2288
2305
|
align-items: center;
|
|
@@ -2412,6 +2429,13 @@ export default {
|
|
|
2412
2429
|
font-size: 13px;
|
|
2413
2430
|
}
|
|
2414
2431
|
|
|
2432
|
+
/* `columns: 3` (board DqSociaalDomein "De melding"): three columns, 12px
|
|
2433
|
+
between the rows of facts. */
|
|
2434
|
+
.cn-facts-widget__rows--three {
|
|
2435
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
2436
|
+
row-gap: 12px;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2415
2439
|
/* One column, label above value: 2px under its label, 10px to the next
|
|
2416
2440
|
label, so a long label never squeezes its value (DqHandhaving). */
|
|
2417
2441
|
.cn-facts-widget__rows--stacked {
|
|
@@ -2424,7 +2448,8 @@ export default {
|
|
|
2424
2448
|
}
|
|
2425
2449
|
|
|
2426
2450
|
@media (max-width: 640px) {
|
|
2427
|
-
.cn-facts-widget__rows--columns
|
|
2451
|
+
.cn-facts-widget__rows--columns,
|
|
2452
|
+
.cn-facts-widget__rows--three {
|
|
2428
2453
|
grid-template-columns: minmax(0, 1fr);
|
|
2429
2454
|
}
|
|
2430
2455
|
}
|
|
@@ -780,7 +780,7 @@ export default {
|
|
|
780
780
|
.cn-features-board__panel {
|
|
781
781
|
display: flex;
|
|
782
782
|
flex-direction: column;
|
|
783
|
-
gap:
|
|
783
|
+
gap: 20px;
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
.cn-features-board__panel--tabbed {
|
|
@@ -1105,7 +1105,9 @@ export default {
|
|
|
1105
1105
|
color: var(--color-text-maxcontrast);
|
|
1106
1106
|
}
|
|
1107
1107
|
|
|
1108
|
-
|
|
1108
|
+
/* The panel's gap is the notice's only space: NcNoteCard's own margin
|
|
1109
|
+
outranks a plain class, so the notice is held by its place in the panel. */
|
|
1110
|
+
.cn-features-board__panel > .cn-features-board__notice {
|
|
1109
1111
|
margin: 0;
|
|
1110
1112
|
}
|
|
1111
1113
|
</style>
|
|
@@ -215,6 +215,7 @@
|
|
|
215
215
|
`sources`; the form stores the chosen row's id only. -->
|
|
216
216
|
<div v-if="field.widget === 'party'" class="cn-form-dialog__party-wrapper">
|
|
217
217
|
<CnPartyPicker
|
|
218
|
+
:inputId="'cn-form-' + field.key"
|
|
218
219
|
:modelValue="formData[field.key] != null ? formData[field.key] : null"
|
|
219
220
|
:sources="field.sources || []"
|
|
220
221
|
:inputLabel="fieldLabelText(field)"
|
|
@@ -281,14 +281,14 @@ export default {
|
|
|
281
281
|
return keyOf(this.objectId) || keyOf(this.record.id) || keyOf(this.record['@self'] && this.record['@self'].id)
|
|
282
282
|
},
|
|
283
283
|
|
|
284
|
-
/** @return {string} The register slug or id
|
|
284
|
+
/** @return {string} The register slug or id, from the prop or else the record's own `@self`. */
|
|
285
285
|
registerKey() {
|
|
286
|
-
return keyOf(this.register)
|
|
286
|
+
return keyOf(this.register) || keyOf(this.record['@self'] && this.record['@self'].register)
|
|
287
287
|
},
|
|
288
288
|
|
|
289
|
-
/** @return {string} The schema slug or id
|
|
289
|
+
/** @return {string} The schema slug or id, from the prop or else the record's own `@self`. */
|
|
290
290
|
schemaKey() {
|
|
291
|
-
return keyOf(this.schema)
|
|
291
|
+
return keyOf(this.schema) || keyOf(this.record['@self'] && this.record['@self'].schema)
|
|
292
292
|
},
|
|
293
293
|
|
|
294
294
|
/** @return {object} The token context for the URLs. */
|
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
class="cn-notification-matrix__channels"
|
|
187
187
|
data-testid="cn-nm-channel-settings">
|
|
188
188
|
<summary class="cn-notification-matrix__channels-summary">
|
|
189
|
+
<ChevronRight :size="16" class="cn-notification-matrix__channels-chevron" />
|
|
189
190
|
{{ channelSettingsTitle }}
|
|
190
191
|
</summary>
|
|
191
192
|
<div
|
|
@@ -265,6 +266,7 @@
|
|
|
265
266
|
|
|
266
267
|
<script>
|
|
267
268
|
import { translate as t } from '@nextcloud/l10n'
|
|
269
|
+
import ChevronRight from 'vue-material-design-icons/ChevronRight.vue'
|
|
268
270
|
import { normalizeLook } from '../../composables/useLook.js'
|
|
269
271
|
import {
|
|
270
272
|
channelAvailability,
|
|
@@ -351,6 +353,8 @@ function appDefaultFor(event, channel) {
|
|
|
351
353
|
export default {
|
|
352
354
|
name: 'CnNotificationMatrix',
|
|
353
355
|
|
|
356
|
+
components: { ChevronRight },
|
|
357
|
+
|
|
354
358
|
inject: {
|
|
355
359
|
/** The look CnAppRoot (or the page) draws in. */
|
|
356
360
|
cnLook: { default: 'nextcloud' },
|
|
@@ -1194,12 +1198,28 @@ export default {
|
|
|
1194
1198
|
margin-block-start: 16px;
|
|
1195
1199
|
}
|
|
1196
1200
|
|
|
1201
|
+
/* A disclosure line: a 16px chevron 6px before the words, turned down when
|
|
1202
|
+
open, in place of the browser's marker (as DqPersoonlijkeInstellingen
|
|
1203
|
+
draws "Bundeling en testbericht"). */
|
|
1197
1204
|
.cn-notification-matrix__channels-summary {
|
|
1205
|
+
display: inline-flex;
|
|
1206
|
+
align-items: center;
|
|
1207
|
+
gap: 6px;
|
|
1198
1208
|
font-size: 14px;
|
|
1199
1209
|
font-weight: 600;
|
|
1210
|
+
line-height: normal;
|
|
1211
|
+
list-style: none;
|
|
1200
1212
|
cursor: pointer;
|
|
1201
1213
|
}
|
|
1202
1214
|
|
|
1215
|
+
.cn-notification-matrix__channels-summary::-webkit-details-marker {
|
|
1216
|
+
display: none;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.cn-notification-matrix__channels[open] .cn-notification-matrix__channels-chevron {
|
|
1220
|
+
transform: rotate(90deg);
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1203
1223
|
.cn-notification-matrix__channel {
|
|
1204
1224
|
display: flex;
|
|
1205
1225
|
flex-wrap: wrap;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<template>
|
|
6
6
|
<div class="cn-party-picker">
|
|
7
7
|
<CnSearchSelect
|
|
8
|
+
:inputId="inputId"
|
|
8
9
|
:modelValue="selectedOption"
|
|
9
10
|
:options="options"
|
|
10
11
|
:inputLabel="inputLabel"
|
|
@@ -91,6 +92,12 @@ export default {
|
|
|
91
92
|
},
|
|
92
93
|
|
|
93
94
|
props: {
|
|
95
|
+
/** The search input's id, so the form's own label names it. */
|
|
96
|
+
inputId: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: undefined,
|
|
99
|
+
},
|
|
100
|
+
|
|
94
101
|
/** The chosen party's id. */
|
|
95
102
|
modelValue: {
|
|
96
103
|
type: [String, Number],
|
|
@@ -11,26 +11,28 @@
|
|
|
11
11
|
:helperText="t('nextcloud-vue', 'Shown when you point at the view in the menu.')"
|
|
12
12
|
data-testid="cn-saved-view-description"
|
|
13
13
|
@update:modelValue="onDescription" />
|
|
14
|
-
<div
|
|
15
|
-
class="cn-saved-view-look__icons"
|
|
16
|
-
role="radiogroup"
|
|
17
|
-
:aria-label="t('nextcloud-vue', 'Icon')"
|
|
18
|
-
data-testid="cn-saved-view-icon">
|
|
14
|
+
<div class="cn-saved-view-look__icon-field">
|
|
19
15
|
<span class="cn-saved-view-look__label" aria-hidden="true">{{ t('nextcloud-vue', 'Icon') }}</span>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
<div
|
|
17
|
+
class="cn-saved-view-look__icons"
|
|
18
|
+
role="radiogroup"
|
|
19
|
+
:aria-label="t('nextcloud-vue', 'Icon')"
|
|
20
|
+
data-testid="cn-saved-view-icon">
|
|
21
|
+
<button
|
|
22
|
+
v-for="name in iconNames"
|
|
23
|
+
:key="name"
|
|
24
|
+
type="button"
|
|
25
|
+
role="radio"
|
|
26
|
+
class="cn-saved-view-look__icon"
|
|
27
|
+
:class="{ 'cn-saved-view-look__icon--chosen': name === chosenIcon }"
|
|
28
|
+
:aria-checked="name === chosenIcon ? 'true' : 'false'"
|
|
29
|
+
:aria-label="iconLabel(name)"
|
|
30
|
+
:title="iconLabel(name)"
|
|
31
|
+
:data-icon="name"
|
|
32
|
+
@click="onIcon(name)">
|
|
33
|
+
<component :is="componentOf(name)" :size="20" />
|
|
34
|
+
</button>
|
|
35
|
+
</div>
|
|
34
36
|
</div>
|
|
35
37
|
</div>
|
|
36
38
|
</template>
|
|
@@ -172,8 +174,13 @@ export default {
|
|
|
172
174
|
gap: 4px;
|
|
173
175
|
}
|
|
174
176
|
|
|
177
|
+
.cn-saved-view-look__icon-field {
|
|
178
|
+
display: flex;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
gap: 4px;
|
|
181
|
+
}
|
|
182
|
+
|
|
175
183
|
.cn-saved-view-look__label {
|
|
176
|
-
flex: 0 0 100%;
|
|
177
184
|
font-weight: 600;
|
|
178
185
|
}
|
|
179
186
|
|
|
@@ -249,7 +249,7 @@ export default {
|
|
|
249
249
|
gap: 10px;
|
|
250
250
|
width: 100%;
|
|
251
251
|
min-width: 0;
|
|
252
|
-
padding:
|
|
252
|
+
padding: 0;
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
.cn-search-select__lead {
|
|
@@ -275,11 +275,13 @@ export default {
|
|
|
275
275
|
|
|
276
276
|
.cn-search-select__name {
|
|
277
277
|
font-weight: 600;
|
|
278
|
+
line-height: normal;
|
|
278
279
|
overflow-wrap: anywhere;
|
|
279
280
|
}
|
|
280
281
|
|
|
281
282
|
.cn-search-select__secondary {
|
|
282
283
|
font-size: 13px;
|
|
284
|
+
line-height: normal;
|
|
283
285
|
color: var(--color-text-maxcontrast);
|
|
284
286
|
overflow-wrap: anywhere;
|
|
285
287
|
}
|
|
@@ -289,6 +289,9 @@ function userError(message) {
|
|
|
289
289
|
* labelField?, descriptionField?, finalField?, limit? }`, an OpenRegister
|
|
290
290
|
* query whose filter takes the same tokens.
|
|
291
291
|
*
|
|
292
|
+
* Both take `offPathField`: a stage whose row holds true there is a side
|
|
293
|
+
* status, left off the strip unless the record is in it.
|
|
294
|
+
*
|
|
292
295
|
* `datesSource`: `{ url, method?, params?, path?, idField?, dateField? }`, an
|
|
293
296
|
* endpoint (same token grammar) answering the date the record reached each
|
|
294
297
|
* stage, when the stage list does not carry it: the case type's statuses list
|
|
@@ -666,7 +669,7 @@ export default {
|
|
|
666
669
|
const cfg = this.stageConfig
|
|
667
670
|
const rows = this.endpointStages ? getByPath(this.stagesBody, cfg.path) : this.sourceRows
|
|
668
671
|
const orderField = cfg.orderField || (this.endpointStages ? '' : cfg.orderBy)
|
|
669
|
-
return normalizeStages(rows, { ...cfg, orderField })
|
|
672
|
+
return normalizeStages(rows, { ...cfg, orderField, currentId: this.currentStageId })
|
|
670
673
|
},
|
|
671
674
|
|
|
672
675
|
/**
|
|
@@ -84,13 +84,21 @@ export function isTrue(value) {
|
|
|
84
84
|
* and showing it first would misdescribe the process. Without `orderField`
|
|
85
85
|
* the rows keep the order they arrived in.
|
|
86
86
|
*
|
|
87
|
+
* A row whose `offPathField` holds true is a side status (a withdrawal, an
|
|
88
|
+
* extension request): it is left out unless it is `currentId`, the stage the
|
|
89
|
+
* record is in, so the strip draws the main path and still shows where a
|
|
90
|
+
* record that took a side turn stands.
|
|
91
|
+
*
|
|
87
92
|
* @param {Array<object>} rows The stage rows.
|
|
88
93
|
* @spec openspec/changes/zuiddrecht-pixel-gaps/specs/zuiddrecht-pixel-gaps/spec.md#requirement-a-stages-widget-draws-bars
|
|
89
|
-
* @
|
|
94
|
+
* @spec openspec/changes/stages-off-path/specs/stages-widget/spec.md#requirement-a-side-status-stays-off-the-strip-unless-it-is-current
|
|
95
|
+
* @param {{idField?: string, labelField?: string, descriptionField?: string, dateField?: string, orderField?: string, finalField?: string, offPathField?: string, currentId?: string|null}} [cfg] The field mapping.
|
|
90
96
|
* @return {Array<{id: string, label: string, subtitle: string, date: string, final: boolean}>} The stages.
|
|
91
97
|
*/
|
|
92
98
|
export function normalizeStages(rows, cfg = {}) {
|
|
93
|
-
const list = Array.isArray(rows)
|
|
99
|
+
const list = Array.isArray(rows)
|
|
100
|
+
? rows.filter((r) => r && typeof r === 'object' && !(cfg.offPathField && isTrue(getByPath(r, cfg.offPathField)) && rowId(r, cfg.idField) !== cfg.currentId))
|
|
101
|
+
: []
|
|
94
102
|
const orderField = cfg.orderField
|
|
95
103
|
const orderOf = (row) => {
|
|
96
104
|
const raw = getByPath(row, orderField)
|