@conduction/nextcloud-vue 2.165.0 → 2.166.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/CnActionButtons/CnActionButtons.vue.js +1 -1
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue2.js +7 -0
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue2.js.map +1 -1
- package/dist/esm/components/CnActionButtons/CnActionButtons.vue3.js.map +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue.js +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js +10 -0
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue2.js.map +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue3.js +1 -1
- package/dist/esm/components/CnAuditTrailCard/CnAuditTrailCard.vue3.js.map +1 -1
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue.js +1 -1
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue2.js.map +1 -1
- package/dist/esm/components/CnChipListManager/CnChipListManager.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue.js +1 -1
- package/dist/esm/components/CnDashboardGrid/CnDashboardGrid.vue2.js +50 -7
- 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/CnDataTable/CnDataTable.vue2.js +13 -0
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js +1 -0
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +39 -4
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js +2 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
- package/dist/esm/components/CnExpandableRow/CnExpandableRow.vue.js +1 -1
- package/dist/esm/components/CnExpandableRow/CnExpandableRow.vue2.js.map +1 -1
- package/dist/esm/components/CnExpandableRow/CnExpandableRow.vue3.js.map +1 -1
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue.js +9 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue.js.map +1 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue2.js +232 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue3.js +61 -0
- package/dist/esm/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnFieldGroupsWidget/index.js +28 -0
- package/dist/esm/components/CnFieldGroupsWidget/index.js.map +1 -0
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue.js +1 -1
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue2.js +80 -6
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue3.js +361 -289
- package/dist/esm/components/CnFieldListWidget/CnFieldListWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js +9 -0
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js +2 -1
- package/dist/esm/components/CnFlowDetail/CnFlowDetail.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue.js +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue2.js +21 -0
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue3.js +12 -2
- package/dist/esm/components/CnFlowDetail/CnFlowRunSummary.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +17 -0
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +6 -3
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue2.js +33 -2
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue2.js.map +1 -1
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue3.js +2 -2
- package/dist/esm/components/CnGraphCanvas/CnGraphCanvas.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +83 -8
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +2 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue.js +9 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue2.js +187 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue2.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue3.js +106 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinkDialog.vue3.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue.js +9 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue2.js +421 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue3.js +131 -0
- package/dist/esm/components/CnObjectLinksWidget/CnObjectLinksWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/index.js +29 -0
- package/dist/esm/components/CnObjectLinksWidget/index.js.map +1 -0
- package/dist/esm/components/CnObjectLinksWidget/objectLinks.js +22 -0
- package/dist/esm/components/CnObjectLinksWidget/objectLinks.js.map +1 -0
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue.js +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js +48 -13
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js +44 -20
- package/dist/esm/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnPagination/CnPagination.vue2.js +26 -0
- package/dist/esm/components/CnPagination/CnPagination.vue2.js.map +1 -1
- package/dist/esm/components/CnPagination/CnPagination.vue3.js +40 -37
- package/dist/esm/components/CnPagination/CnPagination.vue3.js.map +1 -1
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js +2 -0
- package/dist/esm/components/CnWidgetGrid/registerDashboardWidgets.js.map +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue.js +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue2.js +4 -0
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue2.js.map +1 -1
- package/dist/esm/components/CnWidgetObjectTable/CnWidgetObjectTable.vue3.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +18 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +18 -1
- package/dist/esm/l10n/nl.json.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +635 -329
- package/dist/esm/utils/actionsDispatcher.js +9 -5
- package/dist/esm/utils/actionsDispatcher.js.map +1 -1
- package/dist/esm/utils/libraryWidgetKeys.js +2 -0
- package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
- package/dist/esm/utils/objectParties.js +68 -1
- package/dist/esm/utils/objectParties.js.map +1 -1
- package/dist/esm/utils/overlayInset.js +60 -0
- package/dist/esm/utils/overlayInset.js.map +1 -0
- package/dist/esm/utils/validateManifestV2.compiled.js +2 -2
- package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
- package/dist/esm/utils/widgetDispatch.js +4 -1
- package/dist/esm/utils/widgetDispatch.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +8444 -6584
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +635 -329
- package/l10n/en.json +18 -1
- package/l10n/nl.json +18 -1
- package/package.json +1 -1
- package/src/components/CnActionButtons/CnActionButtons.vue +7 -0
- package/src/components/CnAuditTrailCard/CnAuditTrailCard.vue +11 -1
- package/src/components/CnChipListManager/CnChipListManager.vue +4 -1
- package/src/components/CnDashboardGrid/CnDashboardGrid.vue +50 -7
- package/src/components/CnDataTable/CnDataTable.md +1 -0
- package/src/components/CnDataTable/CnDataTable.vue +14 -0
- package/src/components/CnDetailPage/CnDetailPage.md +1 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +40 -4
- package/src/components/CnExpandableRow/CnExpandableRow.vue +7 -4
- package/src/components/CnFieldGroupsWidget/CnFieldGroupsWidget.vue +287 -0
- package/src/components/CnFieldGroupsWidget/index.js +27 -0
- package/src/components/CnFieldListWidget/CnFieldListWidget.vue +162 -7
- package/src/components/CnFlowDetail/CnFlowDetail.vue +10 -0
- package/src/components/CnFlowDetail/CnFlowRunSummary.vue +26 -1
- package/src/components/CnFlowsPage/CnFlowBoard.vue +90 -4
- package/src/components/CnGraphCanvas/CnGraphCanvas.vue +35 -4
- package/src/components/CnIndexPage/CnIndexPage.md +1 -1
- package/src/components/CnIndexPage/CnIndexPage.vue +83 -7
- package/src/components/CnObjectLinksWidget/CnObjectLinkDialog.vue +267 -0
- package/src/components/CnObjectLinksWidget/CnObjectLinksWidget.vue +532 -0
- package/src/components/CnObjectLinksWidget/index.js +28 -0
- package/src/components/CnObjectLinksWidget/objectLinks.js +19 -0
- package/src/components/CnObjectPartiesWidget/CnObjectPartiesWidget.vue +65 -15
- package/src/components/CnPagination/CnPagination.md +1 -0
- package/src/components/CnPagination/CnPagination.vue +27 -1
- package/src/components/CnWidgetGrid/registerDashboardWidgets.js +2 -0
- package/src/components/CnWidgetObjectTable/CnWidgetObjectTable.vue +4 -0
- package/src/components/index.js +2 -0
- package/src/css/dialog.css +25 -3
- package/src/css/index-page.css +22 -8
- package/src/css/look-board-detail.css +41 -0
- package/src/css/look-board-index.css +52 -1
- package/src/css/look-board.css +17 -0
- package/src/index.js +2 -0
- package/src/schemas/app-manifest-v2.schema.json +3 -3
- package/src/utils/actionsDispatcher.js +9 -5
- package/src/utils/libraryWidgetKeys.js +2 -0
- package/src/utils/objectParties.js +67 -0
- package/src/utils/overlayInset.js +57 -0
- package/src/utils/validateManifestV2.compiled.js +2 -2
- package/src/utils/widgetDispatch.js +4 -1
|
@@ -126,14 +126,22 @@
|
|
|
126
126
|
v-if="notAccepted(party)"
|
|
127
127
|
class="cn-status-badge cn-status-badge--warning"
|
|
128
128
|
data-testid="cn-object-parties-not-accepted">{{ label('notAccepted') }}</span>
|
|
129
|
+
<span
|
|
130
|
+
v-if="noSecrecy(party)"
|
|
131
|
+
class="cn-status-badge cn-status-badge--default"
|
|
132
|
+
data-testid="cn-object-parties-no-secrecy">{{ label('noSecrecy') }}</span>
|
|
129
133
|
<span
|
|
130
134
|
v-for="indicator in indicatorsFor(party)"
|
|
131
135
|
:key="`${party.partyUuid}-${indicator.key}`"
|
|
132
|
-
class="cn-status-badge
|
|
133
|
-
:class="`cn-object-parties__indicator--${indicator.severity}
|
|
136
|
+
class="cn-status-badge"
|
|
137
|
+
:class="[`cn-object-parties__indicator--${indicator.severity}`, indicator.severity === 'error' ? 'cn-status-badge--error' : 'cn-status-badge--info']"
|
|
134
138
|
:data-effect="indicator.effect"
|
|
135
139
|
:title="indicator.verdict"
|
|
136
|
-
data-testid="cn-object-parties-indicator">{{ indicator.label }}</span>
|
|
140
|
+
data-testid="cn-object-parties-indicator">{{ label('indicatorPill').replaceAll('{label}', indicator.label) }}</span>
|
|
141
|
+
<span
|
|
142
|
+
v-if="untilPillFor(party)"
|
|
143
|
+
class="cn-status-badge cn-status-badge--warning"
|
|
144
|
+
data-testid="cn-object-parties-until">{{ untilPillFor(party) }}</span>
|
|
137
145
|
<NcButton
|
|
138
146
|
v-if="canRemove && party.partyUuid"
|
|
139
147
|
class="cn-object-parties__remove"
|
|
@@ -182,6 +190,10 @@
|
|
|
182
190
|
:data-effect="indicator.effect"
|
|
183
191
|
:title="indicator.verdict"
|
|
184
192
|
data-testid="cn-object-parties-indicator">{{ indicator.label }} · {{ indicator.verdict }}</span>
|
|
193
|
+
<span
|
|
194
|
+
v-if="untilPillFor(party)"
|
|
195
|
+
class="cn-status-badge cn-status-badge--warning"
|
|
196
|
+
data-testid="cn-object-parties-until">{{ untilPillFor(party) }}</span>
|
|
185
197
|
<NcButton
|
|
186
198
|
v-if="canRemove && party.partyUuid"
|
|
187
199
|
class="cn-object-parties__remove"
|
|
@@ -243,6 +255,7 @@ import innerHeading from '../../mixins/innerHeading.js'
|
|
|
243
255
|
import { conditionalLine } from '../../utils/conditionalLine.js'
|
|
244
256
|
import { initialsOf } from '../../utils/initials.js'
|
|
245
257
|
import {
|
|
258
|
+
boardMetaLine,
|
|
246
259
|
documentsOfParty,
|
|
247
260
|
indicatorsOf,
|
|
248
261
|
indicatorVerdict,
|
|
@@ -253,6 +266,8 @@ import {
|
|
|
253
266
|
roleLabel,
|
|
254
267
|
rolesInOrder,
|
|
255
268
|
savedUuid,
|
|
269
|
+
showsNoSecrecy,
|
|
270
|
+
untilPillOf,
|
|
256
271
|
} from '../../utils/objectParties.js'
|
|
257
272
|
import { fetchCallerScope } from '../../utils/objectPermissions.js'
|
|
258
273
|
import { readPath } from '../../utils/readPath.js'
|
|
@@ -275,6 +290,8 @@ function defaultLabels() {
|
|
|
275
290
|
notAccepted: t('nextcloud-vue', 'Kind not accepted here'),
|
|
276
291
|
representedBy: t('nextcloud-vue', 'Represented by'),
|
|
277
292
|
noPrimary: t('nextcloud-vue', 'No main contact yet'),
|
|
293
|
+
noSecrecy: t('nextcloud-vue', 'No secrecy'),
|
|
294
|
+
indicatorPill: '{label}',
|
|
278
295
|
}
|
|
279
296
|
}
|
|
280
297
|
|
|
@@ -316,6 +333,10 @@ function defaultLabels() {
|
|
|
316
333
|
* the foot; `tab` opens that tab of the page through the route hash. It
|
|
317
334
|
* reads the listing only.
|
|
318
335
|
*
|
|
336
|
+
* `representationUntil` (words with `{date}`) draws a warning pill on a
|
|
337
|
+
* party that represents another, naming when its link ends (`validUntil`):
|
|
338
|
+
* "Machtiging tot 31 dec".
|
|
339
|
+
*
|
|
319
340
|
* A failed read says so and is never shown as "no parties".
|
|
320
341
|
*
|
|
321
342
|
* @spec openspec/changes/dq-abstract-record-widgets/specs/record-widgets/spec.md#requirement-a-record-shows-its-parties-by-role
|
|
@@ -1018,26 +1039,55 @@ export default {
|
|
|
1018
1039
|
* @return {Array<object>}
|
|
1019
1040
|
*/
|
|
1020
1041
|
/**
|
|
1021
|
-
* The board row's meta line: the primary mark,
|
|
1022
|
-
*
|
|
1023
|
-
*
|
|
1042
|
+
* The board row's meta line (design-system #811): the primary mark,
|
|
1043
|
+
* the role, the link's note, whom the party represents when no note
|
|
1044
|
+
* says it, its extra lines, e-mail and documents.
|
|
1024
1045
|
*
|
|
1025
1046
|
* @param {object} party The party.
|
|
1026
1047
|
* @param {object} group Its role group.
|
|
1027
1048
|
* @return {string}
|
|
1049
|
+
* @spec openspec/changes/parties-board-rows-r40/specs/record-widgets/spec.md#requirement-a-board-party-row-reads-as-design-system-811-draws-it
|
|
1028
1050
|
*/
|
|
1029
1051
|
boardMetaOf(party, group) {
|
|
1030
|
-
const
|
|
1031
|
-
if (this.primary && party.partyUuid === this.primary) {
|
|
1032
|
-
parts.push(this.label('primary'))
|
|
1033
|
-
}
|
|
1034
|
-
parts.push(group.label, this.kindOf(party))
|
|
1052
|
+
const extras = []
|
|
1035
1053
|
const represented = this.representedBy(party)
|
|
1036
|
-
if (represented) {
|
|
1037
|
-
|
|
1054
|
+
if (represented && !party.note) {
|
|
1055
|
+
extras.push(`${this.label('representedBy')}: ${represented}`)
|
|
1056
|
+
}
|
|
1057
|
+
extras.push(...this.extraLinesOf(party), party.email, this.correspondenceOf(party))
|
|
1058
|
+
return boardMetaLine({
|
|
1059
|
+
primary: this.primary && party.partyUuid === this.primary ? this.label('primary') : '',
|
|
1060
|
+
role: group.label,
|
|
1061
|
+
note: typeof party.note === 'string' ? party.note : '',
|
|
1062
|
+
extras,
|
|
1063
|
+
})
|
|
1064
|
+
},
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Whether the party's row says it has no secrecy (`content.secrecy`).
|
|
1068
|
+
*
|
|
1069
|
+
* @param {object} party The listing row.
|
|
1070
|
+
* @return {boolean}
|
|
1071
|
+
* @spec openspec/changes/parties-board-rows-r40/specs/record-widgets/spec.md#requirement-a-party-of-a-listed-kind-says-it-has-no-secrecy
|
|
1072
|
+
*/
|
|
1073
|
+
noSecrecy(party) {
|
|
1074
|
+
return showsNoSecrecy(party, this.partyRecords[party.partyUuid], this.content?.secrecy, this.primary)
|
|
1075
|
+
},
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* When a representative's representation ends: the link's `validUntil`
|
|
1079
|
+
* in `content.representationUntil`, only for a party that represents another.
|
|
1080
|
+
*
|
|
1081
|
+
* @param {object} party The link row.
|
|
1082
|
+
* @return {string} The pill text, or ''.
|
|
1083
|
+
* @spec openspec/changes/party-representation-end-pill/specs/record-widgets/spec.md#requirement-a-representatives-row-names-when-the-representation-ends
|
|
1084
|
+
*/
|
|
1085
|
+
untilPillFor(party) {
|
|
1086
|
+
const words = this.content?.representationUntil
|
|
1087
|
+
if (!words || !this.representedBy(party)) {
|
|
1088
|
+
return ''
|
|
1038
1089
|
}
|
|
1039
|
-
|
|
1040
|
-
return parts.filter((part) => typeof part === 'string' && part !== '').join(' · ')
|
|
1090
|
+
return untilPillOf(party, this.cnTranslate(words))
|
|
1041
1091
|
},
|
|
1042
1092
|
|
|
1043
1093
|
indicatorsFor(party) {
|
|
@@ -109,6 +109,7 @@ The full control — First/Last, numbered pages, a page-size select — is an in
|
|
|
109
109
|
|---|---|---|---|
|
|
110
110
|
| `compact` | `Boolean` | `false` | Widget-sized variant: one Prev/Next pair plus the item range; no First/Last, no page numbers, no page-size select |
|
|
111
111
|
| `compactInfoFormat` | `String` | `'{from}–{to} of {total}'` | Format string used in compact mode. Placeholders: `{from}`, `{to}`, `{total}` |
|
|
112
|
+
| `pagerOnOnePage` | `Boolean` | `true` | Board variant: whether a list on one page still draws its count and the "1" with an inert Next. Off, one page shows the footer note alone (PqWachtrij); more than one page is unchanged. |
|
|
112
113
|
|
|
113
114
|
Compact mode names the **items**, not the pages: in a widget the row range is what the reader is looking at, and it is the only honest statement of how much is off-screen.
|
|
114
115
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<span class="cn-pagination__page-info cn-pagination__board-count" data-testid="cn-pagination-board-count">
|
|
15
15
|
{{ boardCountText }}
|
|
16
16
|
</span>
|
|
17
|
-
<nav class="cn-pagination__board-pages" :aria-label="t('nextcloud-vue', 'Pagination')">
|
|
17
|
+
<nav v-if="!noteOnly" class="cn-pagination__board-pages" :aria-label="t('nextcloud-vue', 'Pagination')">
|
|
18
18
|
<button
|
|
19
19
|
v-if="currentPage > 1"
|
|
20
20
|
type="button"
|
|
@@ -256,6 +256,18 @@ export default {
|
|
|
256
256
|
default: '',
|
|
257
257
|
},
|
|
258
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Board variant: whether a list on one page still draws its count and
|
|
261
|
+
* the "1" with an inert Next. Off, one page shows the footer note
|
|
262
|
+
* alone (PqWachtrij); more than one page is unchanged.
|
|
263
|
+
*
|
|
264
|
+
* @spec openspec/changes/index-footer-note-on-one-page/specs/index-list-board-look/spec.md#requirement-a-board-list-on-one-page-can-end-in-its-note-alone
|
|
265
|
+
*/
|
|
266
|
+
pagerOnOnePage: {
|
|
267
|
+
type: Boolean,
|
|
268
|
+
default: true,
|
|
269
|
+
},
|
|
270
|
+
|
|
259
271
|
/** Minimum items before pagination is shown */
|
|
260
272
|
minItemsToShow: {
|
|
261
273
|
type: Number,
|
|
@@ -332,6 +344,17 @@ export default {
|
|
|
332
344
|
return this.variant === 'board'
|
|
333
345
|
},
|
|
334
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Whether the board footer shows its note alone: one page, with
|
|
349
|
+
* `pagerOnOnePage` off.
|
|
350
|
+
*
|
|
351
|
+
* @spec openspec/changes/index-footer-note-on-one-page/specs/index-list-board-look/spec.md#requirement-a-board-list-on-one-page-can-end-in-its-note-alone
|
|
352
|
+
* @return {boolean}
|
|
353
|
+
*/
|
|
354
|
+
noteOnly() {
|
|
355
|
+
return this.isBoardVariant && !this.pagerOnOnePage && this.totalPages <= 1 && this.footerNote !== ''
|
|
356
|
+
},
|
|
357
|
+
|
|
335
358
|
/**
|
|
336
359
|
* The board variant's count text: the rows on this page of the total,
|
|
337
360
|
* `"{shown} of {total}"`, plus the page's footer note when it has one.
|
|
@@ -339,6 +362,9 @@ export default {
|
|
|
339
362
|
* @return {string}
|
|
340
363
|
*/
|
|
341
364
|
boardCountText() {
|
|
365
|
+
if (this.noteOnly) {
|
|
366
|
+
return this.footerNote
|
|
367
|
+
}
|
|
342
368
|
const before = (this.currentPage - 1) * this.currentPageSize
|
|
343
369
|
const shown = Math.max(0, Math.min(this.currentPageSize, this.totalItems - before))
|
|
344
370
|
const base = t('nextcloud-vue', '{shown} of {total}', { shown, total: this.totalItems })
|
|
@@ -93,6 +93,8 @@ import '../CnMailTab/dashboardRegistration.js'
|
|
|
93
93
|
import '../CnWorkingCalendarWidget/index.js'
|
|
94
94
|
import '../CnPartyActionsWidget/index.js'
|
|
95
95
|
import '../CnFieldListWidget/index.js'
|
|
96
|
+
import '../CnFieldGroupsWidget/index.js'
|
|
97
|
+
import '../CnObjectLinksWidget/index.js'
|
|
96
98
|
import '../CnSettingsFormWidget/index.js'
|
|
97
99
|
import '../CnSwitchRowsWidget/index.js'
|
|
98
100
|
import '../CnRadioCardsWidget/index.js'
|
|
@@ -981,6 +981,8 @@ export default {
|
|
|
981
981
|
* Row-scoped actions mapped onto the CnRowActions shape: label + icon
|
|
982
982
|
* pass through, `object-op` `delete` renders destructive, and the
|
|
983
983
|
* handler routes back through the widget's confirm-gated dispatcher.
|
|
984
|
+
* `visibleWhen` and `visible` pass through, so CnRowActions decides per
|
|
985
|
+
* row whether the entry shows.
|
|
984
986
|
*
|
|
985
987
|
* @return {Array<object>}
|
|
986
988
|
*/
|
|
@@ -990,6 +992,8 @@ export default {
|
|
|
990
992
|
icon: action.icon,
|
|
991
993
|
destructive: action.type === 'object-op' && action.op === 'delete',
|
|
992
994
|
handler: (row) => this.onActionTriggered(action, row),
|
|
995
|
+
...(action.visibleWhen ? { visibleWhen: action.visibleWhen } : {}),
|
|
996
|
+
...(action.visible !== undefined ? { visible: action.visible } : {}),
|
|
993
997
|
}))
|
|
994
998
|
},
|
|
995
999
|
|
package/src/components/index.js
CHANGED
|
@@ -273,6 +273,8 @@ export { CnMailTab } from './CnMailTab/index.js'
|
|
|
273
273
|
export { CnWorkingCalendarWidget } from './CnWorkingCalendarWidget/index.js'
|
|
274
274
|
export { CnPartyActionsWidget } from './CnPartyActionsWidget/index.js'
|
|
275
275
|
export { CnFieldListWidget } from './CnFieldListWidget/index.js'
|
|
276
|
+
export { CnFieldGroupsWidget } from './CnFieldGroupsWidget/index.js'
|
|
277
|
+
export { CnObjectLinksWidget } from './CnObjectLinksWidget/index.js'
|
|
276
278
|
export { CnSettingsFormWidget } from './CnSettingsFormWidget/index.js'
|
|
277
279
|
export { CnSwitchRowsWidget } from './CnSwitchRowsWidget/index.js'
|
|
278
280
|
export { CnRadioCardsWidget } from './CnRadioCardsWidget/index.js'
|
package/src/css/dialog.css
CHANGED
|
@@ -219,12 +219,15 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
|
|
|
219
219
|
after the box: NcCheckboxRadioSwitch pads its row by half the clickable
|
|
220
220
|
area, which set the box 9px in (DqBerichtVersturen "Dit is een besluit").
|
|
221
221
|
A note under the checkbox lines up with its label through
|
|
222
|
-
--cn-dialog-check-label-inset (the 20px box and the gap).
|
|
222
|
+
--cn-dialog-check-label-inset (the 20px box and the gap). A radio sits the
|
|
223
|
+
same way (PqAanvraagOmzetten "Klant", 7px in on live).
|
|
224
|
+
@spec openspec/changes/board-dialog-radio-flush/specs/board-dialog-radio-flush/spec.md */
|
|
223
225
|
.cn-dialog-board {
|
|
224
226
|
--cn-dialog-check-label-inset: 30px;
|
|
225
227
|
}
|
|
226
228
|
|
|
227
|
-
.cn-dialog-board .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant) .checkbox-content
|
|
229
|
+
.cn-dialog-board .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant) .checkbox-content,
|
|
230
|
+
.cn-dialog-board .checkbox-radio-switch-radio:not(.checkbox-radio-switch--button-variant) .checkbox-content {
|
|
228
231
|
padding-inline: 0;
|
|
229
232
|
gap: 10px;
|
|
230
233
|
}
|
|
@@ -236,7 +239,9 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
|
|
|
236
239
|
probed with these rules: field to note 50, as drawn).
|
|
237
240
|
@spec openspec/changes/board-dialog-checkbox-24-note-flush/specs/board-dialog-checkbox-24-note-flush/spec.md#requirement-a-board-dialogs-checkbox-is-24px-and-its-notes-add-no-margin */
|
|
238
241
|
.cn-dialog-board .dialog__content .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant) .checkbox-content,
|
|
239
|
-
.cn-dialog-board .dialog__content .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant) .checkbox-radio-switch__input
|
|
242
|
+
.cn-dialog-board .dialog__content .checkbox-radio-switch-checkbox:not(.checkbox-radio-switch--button-variant) .checkbox-radio-switch__input,
|
|
243
|
+
.cn-dialog-board .dialog__content .checkbox-radio-switch-radio:not(.checkbox-radio-switch--button-variant) .checkbox-content,
|
|
244
|
+
.cn-dialog-board .dialog__content .checkbox-radio-switch-radio:not(.checkbox-radio-switch--button-variant) .checkbox-radio-switch__input {
|
|
240
245
|
min-height: 24px;
|
|
241
246
|
padding-block: 0;
|
|
242
247
|
}
|
|
@@ -453,6 +458,23 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .modal-mask {
|
|
|
453
458
|
margin-block: 0;
|
|
454
459
|
}
|
|
455
460
|
|
|
461
|
+
/* So does a search select (DqNieuweZaak "Aanvrager"): its 6px top margin set
|
|
462
|
+
it 6px below "Intakekanaal" beside it, and its suggestions with it.
|
|
463
|
+
@spec openspec/changes/board-dialog-field-rhythm/specs/board-dialog-field-rhythm/spec.md#requirement-a-board-dialog-field-row-follows-the-board-rhythm */
|
|
464
|
+
.cn-dialog-board .dialog__content .cn-form-dialog__party-wrapper .cn-search-select > .v-select.select:not(:has(.input-field__label)) {
|
|
465
|
+
margin-block: 0;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/* A field's label and its help line stand on the font's own leading, as the
|
|
469
|
+
boards set them: the body's 1.5 leading added 4px over each label and 4px
|
|
470
|
+
under each help line, so every row of DqNieuweZaak sat 4 to 8px lower.
|
|
471
|
+
@spec openspec/changes/board-dialog-field-rhythm/specs/board-dialog-field-rhythm/spec.md#requirement-a-board-dialog-field-row-follows-the-board-rhythm */
|
|
472
|
+
.cn-dialog-board .dialog__content .cn-form-field__label,
|
|
473
|
+
.cn-dialog-board .dialog__content .cn-form-field__optional,
|
|
474
|
+
.cn-dialog-board .dialog__content .cn-form-dialog__helper {
|
|
475
|
+
line-height: normal;
|
|
476
|
+
}
|
|
477
|
+
|
|
456
478
|
/* A multiple select is the board's 40px field too (DqFilterDelen "Delen
|
|
457
479
|
met"). The edge goes on the toggle, which holds the chips and the search,
|
|
458
480
|
so the chosen people and groups sit inside the field; the search inside it
|
package/src/css/index-page.css
CHANGED
|
@@ -507,13 +507,14 @@
|
|
|
507
507
|
:is(.cn-index-page--with-side-panel, .cn-index-page--split-side) {
|
|
508
508
|
display: grid;
|
|
509
509
|
grid-template-columns: minmax(0, 1fr) var(--cn-index-side-panel-width, 300px);
|
|
510
|
-
grid-template-rows: auto auto auto auto auto minmax(0, 1fr) auto;
|
|
510
|
+
grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr) auto;
|
|
511
511
|
grid-template-areas:
|
|
512
512
|
"head head"
|
|
513
513
|
"below below"
|
|
514
514
|
"stats stats"
|
|
515
515
|
"chips side"
|
|
516
516
|
"bar side"
|
|
517
|
+
"strip side"
|
|
517
518
|
"body side"
|
|
518
519
|
"extra extra";
|
|
519
520
|
column-gap: 20px;
|
|
@@ -545,6 +546,10 @@
|
|
|
545
546
|
grid-area: chips;
|
|
546
547
|
}
|
|
547
548
|
|
|
549
|
+
:is(.cn-index-page--with-side-panel, .cn-index-page--split-side) > .cn-index-page__filter-strip {
|
|
550
|
+
grid-area: strip;
|
|
551
|
+
}
|
|
552
|
+
|
|
548
553
|
:is(.cn-index-page--with-side-panel, .cn-index-page--split-side) > .cn-index-page__body {
|
|
549
554
|
grid-area: body;
|
|
550
555
|
}
|
|
@@ -564,9 +569,10 @@
|
|
|
564
569
|
"side"
|
|
565
570
|
"chips"
|
|
566
571
|
"bar"
|
|
572
|
+
"strip"
|
|
567
573
|
"body"
|
|
568
574
|
"extra";
|
|
569
|
-
grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr) auto;
|
|
575
|
+
grid-template-rows: auto auto auto auto auto auto auto minmax(0, 1fr) auto;
|
|
570
576
|
}
|
|
571
577
|
|
|
572
578
|
:is(.cn-index-page--with-side-panel, .cn-index-page--split-side) > .cn-index-page__side-panel {
|
|
@@ -581,7 +587,9 @@
|
|
|
581
587
|
}
|
|
582
588
|
|
|
583
589
|
/* The second filter strip (`filterStrip`, board PqWachtrij "Kanaal"): 34px
|
|
584
|
-
pills, radius 17, the active one in ink, each with a muted count.
|
|
590
|
+
pills, radius 17, the active one in ink, each with a muted count. The pill
|
|
591
|
+
rules carry the page class: the server's `button:not(.button-vue, ...)`
|
|
592
|
+
rule (0,1,1) otherwise draws them as tonal 8px buttons at 15px bold. */
|
|
585
593
|
.cn-index-page__filter-strip {
|
|
586
594
|
display: flex;
|
|
587
595
|
flex-wrap: wrap;
|
|
@@ -589,7 +597,7 @@
|
|
|
589
597
|
padding: 14px 0;
|
|
590
598
|
}
|
|
591
599
|
|
|
592
|
-
.cn-index-page__filter-strip-pill {
|
|
600
|
+
.cn-index-page .cn-index-page__filter-strip-pill {
|
|
593
601
|
display: inline-flex;
|
|
594
602
|
align-items: center;
|
|
595
603
|
gap: 8px;
|
|
@@ -607,22 +615,28 @@
|
|
|
607
615
|
cursor: pointer;
|
|
608
616
|
}
|
|
609
617
|
|
|
610
|
-
.cn-index-page__filter-strip-pill
|
|
618
|
+
.cn-index-page .cn-index-page__filter-strip-pill:hover {
|
|
619
|
+
border-color: var(--color-main-text);
|
|
620
|
+
background: var(--color-main-background);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.cn-index-page .cn-index-page__filter-strip-pill--active,
|
|
624
|
+
.cn-index-page .cn-index-page__filter-strip-pill--active:hover {
|
|
611
625
|
border-color: var(--color-main-text);
|
|
612
626
|
background: var(--color-main-text);
|
|
613
627
|
color: var(--color-main-background);
|
|
614
628
|
}
|
|
615
629
|
|
|
616
|
-
.cn-index-page__filter-strip-count {
|
|
630
|
+
.cn-index-page .cn-index-page__filter-strip-count {
|
|
617
631
|
color: var(--color-text-maxcontrast);
|
|
618
632
|
font-weight: 400;
|
|
619
633
|
}
|
|
620
634
|
|
|
621
|
-
.cn-index-page__filter-strip-pill--active .cn-index-page__filter-strip-count {
|
|
635
|
+
.cn-index-page .cn-index-page__filter-strip-pill--active .cn-index-page__filter-strip-count {
|
|
622
636
|
color: inherit;
|
|
623
637
|
}
|
|
624
638
|
|
|
625
|
-
.cn-index-page__filter-strip-pill:focus-visible {
|
|
639
|
+
.cn-index-page .cn-index-page__filter-strip-pill:focus-visible {
|
|
626
640
|
outline: 2px solid var(--color-primary-element);
|
|
627
641
|
outline-offset: 2px;
|
|
628
642
|
}
|
|
@@ -1158,9 +1158,23 @@
|
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
1160
|
.cn-look-board .cn-detail-page__side .cn-related-objects-widget .cn-related-objects-widget__links:not(.cn-look-nextcloud *) {
|
|
1161
|
+
gap: 10px;
|
|
1161
1162
|
padding-inline: 8px;
|
|
1162
1163
|
}
|
|
1163
1164
|
|
|
1165
|
+
/* Its links read as the board's side links (PqKassabon, PqKassadienst, PqLead
|
|
1166
|
+
"Gerelateerd"): 14px at the normal leading, 10px apart, the first 10px under
|
|
1167
|
+
the title. At the body's 15px and 1.5 they stood 31px apart, 2px under it.
|
|
1168
|
+
@spec openspec/changes/board-related-side-links-rhythm/specs/board-related-side-links-rhythm/spec.md#requirement-a-related-side-cards-links-take-the-boards-rhythm */
|
|
1169
|
+
.cn-look-board .cn-detail-page__side .cn-related-objects-widget .cn-related-objects-widget__link:not(.cn-look-nextcloud *) {
|
|
1170
|
+
font-size: 14px;
|
|
1171
|
+
line-height: normal;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
.cn-look-board .cn-detail-page__side .cn-widget-wrapper__content:has(> .cn-related-objects-widget > .cn-related-objects-widget__links:first-child):not(.cn-look-nextcloud *) {
|
|
1175
|
+
padding-top: 10px;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1164
1178
|
.cn-look-board .cn-detail-page__side .cn-related-objects-widget .cn-related-objects-widget__show-all:not(.cn-look-nextcloud *) {
|
|
1165
1179
|
margin-inline: 8px;
|
|
1166
1180
|
}
|
|
@@ -2455,6 +2469,33 @@
|
|
|
2455
2469
|
line-height: 1.2;
|
|
2456
2470
|
}
|
|
2457
2471
|
|
|
2472
|
+
/* ---- An app's own table on the legacy `viewTable` class ----------------- */
|
|
2473
|
+
/* The same card table as above: the theme's bare `th` rule (grey ground,
|
|
2474
|
+
bold) and the body's 15px/1.5 otherwise draw the head 15px on the theme's grey,
|
|
2475
|
+
58.5px high (PqService "Opbouw in stappen"). One class more than an app's
|
|
2476
|
+
scoped `.viewTable th` rule.
|
|
2477
|
+
@spec openspec/changes/board-view-table-head/specs/board-view-table-head/spec.md#requirement-a-board-view-table-is-the-boards-card-table */
|
|
2478
|
+
.cn-look-board .viewTable th:not(.cn-look-nextcloud *) {
|
|
2479
|
+
--nldesign-component-table-header-background-color: var(--cn-board-table-head-bg, color-mix(in srgb, var(--color-background-hover) 40%, var(--color-main-background)));
|
|
2480
|
+
--nldesign-component-table-header-color: var(--color-text-maxcontrast);
|
|
2481
|
+
--nldesign-component-table-header-font-weight: 600;
|
|
2482
|
+
padding: 10px 12px;
|
|
2483
|
+
border-bottom: 0;
|
|
2484
|
+
background: var(--cn-board-table-head-bg, color-mix(in srgb, var(--color-background-hover) 40%, var(--color-main-background)));
|
|
2485
|
+
color: var(--color-text-maxcontrast);
|
|
2486
|
+
font-size: 14px;
|
|
2487
|
+
font-weight: 600;
|
|
2488
|
+
line-height: 1.2;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
.cn-look-board .viewTable td:not(.cn-look-nextcloud *) {
|
|
2492
|
+
padding: 11px 12px;
|
|
2493
|
+
border-top: 1px solid var(--cn-board-hairline);
|
|
2494
|
+
border-bottom: 0;
|
|
2495
|
+
font-size: 14px;
|
|
2496
|
+
line-height: 1.2;
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2458
2499
|
/* The contacts tab's rows as DqZaakBetrokkenen "Partijen" draws them: the
|
|
2459
2500
|
role heading 15px bold ink in sentence case, each person on a row 12px
|
|
2460
2501
|
high-padded under a hairline, the details and the period 13px muted.
|
|
@@ -462,6 +462,15 @@
|
|
|
462
462
|
height: 36px;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
+
/* An index list inside a record card draws its Filter 40px (PqEvenement
|
|
466
|
+
"Aanmeldingen"); a list page keeps the 36px above. */
|
|
467
|
+
.cn-look-board .cn-index-list-widget .cn-actions-bar__filter-button.button-vue,
|
|
468
|
+
.cn-look-board .cn-index-list-widget .cn-actions-bar__filter-menu .button-vue {
|
|
469
|
+
--button-size: 40px;
|
|
470
|
+
min-height: 40px;
|
|
471
|
+
height: 40px;
|
|
472
|
+
}
|
|
473
|
+
|
|
465
474
|
/* With the sidebar open the Filter button is pressed: the board draws it on
|
|
466
475
|
the light primary ground with a primary edge and the main ink, not as a
|
|
467
476
|
filled primary button (DqFilterBeheren). Its count badge stays the filled
|
|
@@ -971,6 +980,39 @@
|
|
|
971
980
|
padding: 11px 12px;
|
|
972
981
|
}
|
|
973
982
|
|
|
983
|
+
/* A framed card table (`framed`, PqKassa "Aankoopgeschiedenis", PqKassaRetour,
|
|
984
|
+
PqLoyaliteit): the table in a 1px frame with an 8px radius inside its card,
|
|
985
|
+
18px outer insets, 12px rows and a rule under the head and every row but
|
|
986
|
+
the last, where the frame closes it. Dossiq's card tables have no frame.
|
|
987
|
+
@spec openspec/changes/data-table-framed/specs/data-table-framed/spec.md#requirement-a-data-table-in-a-card-can-be-framed */
|
|
988
|
+
.cn-look-board .cn-table-container--board.cn-table-container--framed {
|
|
989
|
+
border: 1px solid var(--color-border);
|
|
990
|
+
border-radius: 8px;
|
|
991
|
+
overflow: hidden;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.cn-look-board .cn-table-container--board.cn-table-container--framed .cn-data-table th {
|
|
995
|
+
border-bottom: 1px solid var(--cn-board-hairline);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
.cn-look-board .cn-table-container--board.cn-table-container--framed .cn-data-table td {
|
|
999
|
+
padding-block: 12px;
|
|
1000
|
+
border-top: 0;
|
|
1001
|
+
border-bottom: 1px solid var(--cn-board-hairline);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.cn-look-board .cn-table-container--board.cn-table-container--framed .cn-data-table tbody tr:last-child td {
|
|
1005
|
+
border-bottom: 0;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.cn-look-board .cn-table-container--board.cn-table-container--framed .cn-data-table :is(th, td):first-child {
|
|
1009
|
+
padding-inline-start: 18px;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.cn-look-board .cn-table-container--board.cn-table-container--framed .cn-data-table :is(th, td):last-child {
|
|
1013
|
+
padding-inline-end: 18px;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
974
1016
|
.cn-look-board .cn-table-container--board:not(.cn-index-page__main--table > *) .cn-data-table .cn-table-col--checkbox {
|
|
975
1017
|
padding-inline: 16px;
|
|
976
1018
|
}
|
|
@@ -1045,6 +1087,14 @@
|
|
|
1045
1087
|
margin-inline-start: 4px;
|
|
1046
1088
|
}
|
|
1047
1089
|
|
|
1090
|
+
/* The filter and column menus in the row-actions head take the same 22px
|
|
1091
|
+
head control, so the head row keeps the board's height (PqTaken: a 34px
|
|
1092
|
+
menu button made it 58.5 against 49.5).
|
|
1093
|
+
@spec openspec/changes/board-head-menu-keeps-head-row/specs/board-head-menu-keeps-head-row/spec.md#requirement-a-board-head-menu-keeps-the-head-row-height */
|
|
1094
|
+
.cn-look-board .cn-table-container--board .cn-data-table th.cn-table-col--actions .action-item {
|
|
1095
|
+
--default-clickable-area: 22px;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1048
1098
|
/* The selection column: 18px checkboxes, 28px of content between 16px of
|
|
1049
1099
|
padding either side, 60px in all (DqZaken and 130 other boards; the title
|
|
1050
1100
|
column starts 77px in).
|
|
@@ -3080,8 +3130,9 @@
|
|
|
3080
3130
|
unbreakable token such as an id anywhere), a pill
|
|
3081
3131
|
wraps before the row scrolls, and each header keeps its label and icons on
|
|
3082
3132
|
one line. No sideways scroll.
|
|
3133
|
+
The :not() matches the index table's fixed rule, so this one still wins.
|
|
3083
3134
|
@spec openspec/changes/board-table-fits-beside-side-panel/specs/board-table-fits-beside-side-panel/spec.md#requirement-the-table-fits-its-column-beside-the-open-side-panel */
|
|
3084
|
-
.cn-look-board .cn-index-page--sidebar-open .cn-table-container--board .cn-data-table {
|
|
3135
|
+
.cn-look-board .cn-index-page--sidebar-open .cn-table-container--board .cn-data-table:not(.cn-data-table--fit) {
|
|
3085
3136
|
table-layout: auto;
|
|
3086
3137
|
width: 100% !important;
|
|
3087
3138
|
min-width: 0 !important;
|
package/src/css/look-board.css
CHANGED
|
@@ -3958,6 +3958,23 @@ body:has(.cn-look-board):not(:has(.cn-look-nextcloud)) .vs__dropdown-menu:has(.c
|
|
|
3958
3958
|
height: 34px;
|
|
3959
3959
|
}
|
|
3960
3960
|
|
|
3961
|
+
/* A list an app draws itself on a settings card (`cn-settings-list`, rows
|
|
3962
|
+
`cn-settings-row`) is flat: rows flush with the card's title, a hairline
|
|
3963
|
+
below each, no box per row (PqBeheer Vaardigheden, Medewerkerprofielen,
|
|
3964
|
+
Productcategorieën). The repeated class outranks the app's scoped row box.
|
|
3965
|
+
@spec openspec/changes/board-settings-list-rows/specs/board-settings-list-rows/spec.md */
|
|
3966
|
+
.cn-look-board .settings-section:not(.cn-look-nextcloud *) .cn-settings-list.cn-settings-list {
|
|
3967
|
+
gap: 0;
|
|
3968
|
+
}
|
|
3969
|
+
|
|
3970
|
+
.cn-look-board .settings-section:not(.cn-look-nextcloud *) .cn-settings-row.cn-settings-row {
|
|
3971
|
+
padding: 10px 0;
|
|
3972
|
+
border: 0;
|
|
3973
|
+
border-bottom: 1px solid var(--cn-board-hairline);
|
|
3974
|
+
border-radius: 0;
|
|
3975
|
+
background: transparent;
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3961
3978
|
/* A delete in a settings row does not shout. In a list row an app draws
|
|
3962
3979
|
itself it is the soft error tint with red text and no edge (PqBeheer
|
|
3963
3980
|
"Verwijderen"); in a settings table row it is white with a red edge and red
|
package/src/index.js
CHANGED
|
@@ -149,6 +149,7 @@ export {
|
|
|
149
149
|
CnFeaturesAndRoadmapView,
|
|
150
150
|
CnFeaturesTab,
|
|
151
151
|
CnFederationStatus,
|
|
152
|
+
CnFieldGroupsWidget,
|
|
152
153
|
CnFieldHelper,
|
|
153
154
|
CnFieldListWidget,
|
|
154
155
|
CnFileField,
|
|
@@ -257,6 +258,7 @@ export {
|
|
|
257
258
|
CnObjectFilesWidget,
|
|
258
259
|
CnObjectGeoWidget,
|
|
259
260
|
CnObjectKanban,
|
|
261
|
+
CnObjectLinksWidget,
|
|
260
262
|
CnObjectList,
|
|
261
263
|
CnObjectListWidget,
|
|
262
264
|
CnObjectListWidgetForm,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "https://raw.githubusercontent.com/ConductionNL/nextcloud-vue/main/src/schemas/app-manifest-v2.schema.json",
|
|
4
4
|
"title": "Conduction App Manifest v2",
|
|
5
5
|
"description": "v2 schema for the JSON-driven page and navigation manifest consumed by @conduction/nextcloud-vue. Introduces a uniform widgets[] array on every page type with a per-slot grid coordinate system, a typed actions[] discriminator, and the required $schema field for version detection. v1 manifests continue to validate against app-manifest.schema.json (unchanged).",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.169.0",
|
|
7
7
|
"type": "object",
|
|
8
8
|
"required": ["$schema", "version"],
|
|
9
9
|
"allOf": [
|
|
@@ -3488,8 +3488,8 @@
|
|
|
3488
3488
|
},
|
|
3489
3489
|
"method": {
|
|
3490
3490
|
"type": "string",
|
|
3491
|
-
"enum": ["POST", "PUT", "PATCH", "GET"],
|
|
3492
|
-
"description": "api-call: HTTP method (default POST); PATCH changes only the fields in the body (an OpenRegister object); GET sends the resolved params as the query string, and with download: true downloads the file the endpoint answers (DqDoorlooptijd). toggle writeUrl: default PUT."
|
|
3491
|
+
"enum": ["POST", "PUT", "PATCH", "GET", "DELETE"],
|
|
3492
|
+
"description": "api-call: HTTP method (default POST); PATCH changes only the fields in the body (an OpenRegister object); GET sends the resolved params as the query string, and with download: true downloads the file the endpoint answers (DqDoorlooptijd); DELETE sends the body as request data (an OpenRegister unfreeze). toggle writeUrl: default PUT."
|
|
3493
3493
|
},
|
|
3494
3494
|
"payload": {
|
|
3495
3495
|
"type": "object",
|
|
@@ -450,6 +450,7 @@ export function actionLink(action, context = {}) {
|
|
|
450
450
|
* context (`{ objectId?, object?, workspace?, config? }`) the URL/body
|
|
451
451
|
* resolve against.
|
|
452
452
|
* @return {Promise<{ok: boolean, data?: unknown, error?: unknown}>} The call outcome.
|
|
453
|
+
* @spec openspec/changes/api-call-delete/specs/api-call-delete/spec.md#requirement-an-api-call-action-can-send-delete
|
|
453
454
|
*/
|
|
454
455
|
async function executeApiCall(action, context) {
|
|
455
456
|
const tokenCtx = context.tokenCtx || {}
|
|
@@ -467,7 +468,7 @@ async function executeApiCall(action, context) {
|
|
|
467
468
|
return { ok: false, error: new Error('api-call blocked') }
|
|
468
469
|
}
|
|
469
470
|
const verb = String(action.method || 'POST').toUpperCase()
|
|
470
|
-
const method = { PUT: 'put', PATCH: 'patch', GET: 'get' }[verb] || 'post'
|
|
471
|
+
const method = { PUT: 'put', PATCH: 'patch', GET: 'get', DELETE: 'delete' }[verb] || 'post'
|
|
471
472
|
const isDownload = action.download === true
|
|
472
473
|
const [{ default: axios }, { generateUrl }, dialogs] = await Promise.all([
|
|
473
474
|
import('@nextcloud/axios'),
|
|
@@ -481,11 +482,14 @@ async function executeApiCall(action, context) {
|
|
|
481
482
|
// call shape for every existing (non-download) api-call consumer/test.
|
|
482
483
|
// A GET sends the resolved params as the query string: it reads, as a
|
|
483
484
|
// download of what the page shows (DqDoorlooptijd "Downloaden").
|
|
485
|
+
// A DELETE carries its body as the request data (an unfreeze reason).
|
|
484
486
|
const res = method === 'get'
|
|
485
487
|
? await axios.get(target, isDownload ? { params: body, responseType: 'blob' } : { params: body })
|
|
486
|
-
:
|
|
487
|
-
|
|
488
|
-
|
|
488
|
+
: method === 'delete'
|
|
489
|
+
? await axios.delete(target, { data: body })
|
|
490
|
+
: (isDownload
|
|
491
|
+
? await axios[method](target, body, { responseType: 'blob' })
|
|
492
|
+
: await axios[method](target, body))
|
|
489
493
|
if (isDownload) {
|
|
490
494
|
const filename = parseDispositionFilename(
|
|
491
495
|
res && res.headers && res.headers['content-disposition'],
|
|
@@ -736,7 +740,7 @@ export async function postRunNode(action, context, config = {}) {
|
|
|
736
740
|
* through generateUrl) or absolute. May interpolate the shared URL tokens
|
|
737
741
|
* (`@objectId`, `@object.<field>`, `@workspace.<key>`, `@config.<key>`, and the
|
|
738
742
|
* `{objectId}` brace form).
|
|
739
|
-
* @param {string} [action.method] "api-call" only: "POST" (default) | "PUT" | "PATCH" (changes only the fields in the body) | "GET" (the resolved params as the query string).
|
|
743
|
+
* @param {string} [action.method] "api-call" only: "POST" (default) | "PUT" | "PATCH" (changes only the fields in the body) | "GET" (the resolved params as the query string) | "DELETE" (the body as request data).
|
|
740
744
|
* @param {object} [action.payload] "api-call" only: the JSON body — preferred over `params`.
|
|
741
745
|
* Values resolve the shared `@`-token grammar RECURSIVELY at any nesting depth (objects
|
|
742
746
|
* and arrays of objects, e.g. `{ dataRefs: [{ id: '@objectId' }] }`); optional (`…?`)
|
|
@@ -117,6 +117,7 @@ export const DASHBOARD_CATALOG_WIDGET_KEYS = Object.freeze([
|
|
|
117
117
|
'document-review',
|
|
118
118
|
'events',
|
|
119
119
|
'facts',
|
|
120
|
+
'field-groups',
|
|
120
121
|
'field-list',
|
|
121
122
|
'files',
|
|
122
123
|
'flow-runs',
|
|
@@ -143,6 +144,7 @@ export const DASHBOARD_CATALOG_WIDGET_KEYS = Object.freeze([
|
|
|
143
144
|
// `news` was here until the widget moved to LaunchPad, which owns the feed
|
|
144
145
|
// fetching. An app that renders one now gets it from LaunchPad's registry.
|
|
145
146
|
'object-geo',
|
|
147
|
+
'object-links',
|
|
146
148
|
'object-list',
|
|
147
149
|
'object-table',
|
|
148
150
|
'parties',
|