@conduction/nextcloud-vue 2.92.0 → 2.93.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/CnAppRoot/CnAppRoot.vue2.js +57 -4
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js.map +1 -1
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js +44 -17
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js.map +1 -1
- package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue.js +1 -1
- package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue2.js +44 -2
- package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue2.js.map +1 -1
- package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue3.js +140 -59
- package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +20 -6
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +3 -2
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js +2 -36
- package/dist/esm/components/CnDataTable/CnDataTable.vue2.js.map +1 -1
- package/dist/esm/components/CnDataTable/CnDataTable.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +5 -3
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue.js +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js +6 -4
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnFactsWidget/CnFactsWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapPage/CnFeaturesAndRoadmapPage.vue2.js +46 -0
- package/dist/esm/components/CnFeaturesAndRoadmapPage/CnFeaturesAndRoadmapPage.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapPage/CnFeaturesAndRoadmapPage.vue3.js +6 -2
- package/dist/esm/components/CnFeaturesAndRoadmapPage/CnFeaturesAndRoadmapPage.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue.js +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue2.js +82 -9
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue3.js +104 -90
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +9 -0
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js.map +1 -0
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js +355 -0
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -0
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js +462 -0
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -0
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue.js +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js +21 -0
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +402 -391
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnIcon/semanticIcons.js +2 -2
- package/dist/esm/components/CnIcon/semanticIcons.js.map +1 -1
- package/dist/esm/components/CnNcWidgetWidget/CnNcWidgetWidget.vue.js +1 -1
- package/dist/esm/components/CnNcWidgetWidget/CnNcWidgetWidget.vue2.js +22 -1
- package/dist/esm/components/CnNcWidgetWidget/CnNcWidgetWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnNcWidgetWidget/CnNcWidgetWidget.vue3.js +20 -14
- package/dist/esm/components/CnNcWidgetWidget/CnNcWidgetWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnNotificationPreferences/CnNotificationPreferences.vue.js +1 -1
- package/dist/esm/components/CnNotificationPreferences/CnNotificationPreferences.vue2.js +2 -0
- package/dist/esm/components/CnNotificationPreferences/CnNotificationPreferences.vue2.js.map +1 -1
- package/dist/esm/components/CnNotificationPreferences/CnNotificationPreferences.vue3.js +15 -5
- package/dist/esm/components/CnNotificationPreferences/CnNotificationPreferences.vue3.js.map +1 -1
- package/dist/esm/components/CnRoadmapTab/CnRoadmapTab.vue.js +1 -1
- package/dist/esm/components/CnRoadmapTab/CnRoadmapTab.vue2.js +8 -30
- package/dist/esm/components/CnRoadmapTab/CnRoadmapTab.vue2.js.map +1 -1
- package/dist/esm/components/CnRoadmapTab/CnRoadmapTab.vue3.js.map +1 -1
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue.js +9 -0
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue.js.map +1 -0
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue2.js +164 -0
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue2.js.map +1 -0
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue3.js +93 -0
- package/dist/esm/components/CnUserSettingsDialog/CnUserSettingsDialog.vue3.js.map +1 -0
- package/dist/esm/components/CnWidgetWrapper/CnWidgetWrapper.vue.js +1 -1
- package/dist/esm/components/CnWidgetWrapper/CnWidgetWrapper.vue2.js +12 -0
- package/dist/esm/components/CnWidgetWrapper/CnWidgetWrapper.vue2.js.map +1 -1
- package/dist/esm/components/CnWidgetWrapper/CnWidgetWrapper.vue3.js.map +1 -1
- package/dist/esm/l10n/en.json.js +24 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +24 -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 +887 -247
- package/dist/esm/utils/featureCatalog.js +135 -0
- package/dist/esm/utils/featureCatalog.js.map +1 -0
- package/dist/esm/utils/fillTemplate.js +74 -3
- package/dist/esm/utils/fillTemplate.js.map +1 -1
- package/dist/esm/utils/headerMeta.js +62 -12
- package/dist/esm/utils/headerMeta.js.map +1 -1
- package/dist/esm/utils/roadmapIssues.js +86 -0
- package/dist/esm/utils/roadmapIssues.js.map +1 -0
- package/dist/esm/utils/userDisplayName.js +47 -0
- package/dist/esm/utils/userDisplayName.js.map +1 -0
- package/dist/esm/utils/validateManifestV2.compiled.js +3 -3
- package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +14820 -12966
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +887 -247
- package/l10n/en.json +24 -1
- package/l10n/nl.json +24 -1
- package/package.json +1 -1
- package/src/components/CnAppRoot/CnAppRoot.md +2 -0
- package/src/components/CnAppRoot/CnAppRoot.vue +66 -5
- package/src/components/CnChoiceCards/CnChoiceCards.md +27 -0
- package/src/components/CnChoiceCards/CnChoiceCards.vue +168 -3
- package/src/components/CnDashboardPage/CnDashboardPage.vue +45 -6
- package/src/components/CnDataTable/CnDataTable.vue +2 -36
- package/src/components/CnDetailPage/CnDetailPage.vue +5 -3
- package/src/components/CnFactsWidget/CnFactsWidget.vue +6 -4
- package/src/components/CnFeaturesAndRoadmapPage/CnFeaturesAndRoadmapPage.vue +51 -1
- package/src/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue +98 -13
- package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +1053 -0
- package/src/components/CnFormDialog/CnFormDialog.vue +606 -562
- package/src/components/CnNcWidgetWidget/CnNcWidgetWidget.vue +23 -2
- package/src/components/CnNotificationPreferences/CnNotificationPreferences.vue +5 -0
- package/src/components/CnRoadmapTab/CnRoadmapTab.vue +6 -28
- package/src/components/CnUserSettingsDialog/CnUserSettingsDialog.vue +305 -0
- package/src/components/CnWidgetWrapper/CnWidgetWrapper.vue +12 -0
- package/src/css/dialog.css +47 -0
- package/src/css/look-board-detail.css +8 -0
- package/src/css/look-board.css +33 -0
- package/src/schemas/app-manifest-v2.schema.json +9 -3
- package/src/utils/featureCatalog.js +132 -0
- package/src/utils/fillTemplate.js +73 -2
- package/src/utils/headerMeta.js +62 -12
- package/src/utils/roadmapIssues.js +82 -0
- package/src/utils/userDisplayName.js +54 -0
- package/src/utils/validateManifestV2.compiled.js +3 -3
|
@@ -2631,8 +2631,10 @@ export default {
|
|
|
2631
2631
|
/**
|
|
2632
2632
|
* The meta line on row 2 of the board look's header (manifest
|
|
2633
2633
|
* `config.headerMeta`): a field template such as `"via {channel}"`.
|
|
2634
|
-
* Every `{path}` is read from the record
|
|
2635
|
-
*
|
|
2634
|
+
* Every `{path}` is read from the record (an enum field as its label);
|
|
2635
|
+
* `{path|format}` formats it (`weekday`, `longdate`, `time`, `user`,
|
|
2636
|
+
* `currency:EUR`, ...). An empty token drops itself and its separator;
|
|
2637
|
+
* a line with no value at all is dropped. Only the board look draws it.
|
|
2636
2638
|
*
|
|
2637
2639
|
* @spec openspec/changes/screens-detail-page-parity/specs/detail-page-board-look/spec.md#requirement-the-detail-header-is-two-rows-on-the-ground
|
|
2638
2640
|
*/
|
|
@@ -2991,7 +2993,7 @@ export default {
|
|
|
2991
2993
|
* @spec openspec/changes/screens-detail-page-parity/specs/detail-page-board-look/spec.md#requirement-the-detail-header-is-two-rows-on-the-ground
|
|
2992
2994
|
*/
|
|
2993
2995
|
headerMetaText() {
|
|
2994
|
-
return resolveHeaderMeta(this.headerMeta ? this.effectiveTranslate(this.headerMeta) : '', this.resolvedObject)
|
|
2996
|
+
return resolveHeaderMeta(this.headerMeta ? this.effectiveTranslate(this.headerMeta) : '', this.resolvedObject, { schema: this.currentSchema, translate: this.effectiveTranslate })
|
|
2995
2997
|
},
|
|
2996
2998
|
|
|
2997
2999
|
/**
|
|
@@ -257,7 +257,7 @@ export default {
|
|
|
257
257
|
/**
|
|
258
258
|
* The widget configuration.
|
|
259
259
|
*
|
|
260
|
-
* - `fields` — the entries, in order. Each is `{ path, label?, as?, format?, map?, itemPath?, parts?, separator?, route?, variant?, variantMap?, colorMap?, icon?, copy?, reveal?, text?, title?, subtitle?, initialsPath?, tone? }`.
|
|
260
|
+
* - `fields` — the entries, in order. Each is `{ path, label?, as?, from?, format?, map?, itemPath?, parts?, separator?, route?, variant?, variantMap?, colorMap?, icon?, copy?, reveal?, text?, title?, subtitle?, initialsPath?, tone? }`.
|
|
261
261
|
* `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`) or `pill`.
|
|
262
262
|
* A row's `format` may also be `email`, `phone` or `url` (a link) or `masked` (the last four characters; `reveal: true` adds Show). `copy: true` adds a copy button; `icon` replaces the label.
|
|
263
263
|
* A part may be `{ text }`, a constant; a `line` or `text` entry without `path` or `parts` shows its `text`.
|
|
@@ -265,7 +265,7 @@ export default {
|
|
|
265
265
|
* - `action` — an action drawn as a button under the facts; `headerAction` — one drawn in the card header (reported through the `header` event).
|
|
266
266
|
* `format` is `text` (default), `date` (board short date), `date-long` (always with the year), `list` (an array joined by ", ", each item read at `itemPath`) or `currency` (a money amount in the reader's language, "€ 1.234,50": the code in `currency`, else the record's `currencyField`, else the app's reporting currency, else EUR; `decimals` defaults to 2).
|
|
267
267
|
* `map` turns a raw value into a label (translated). `parts` (on a `line`) lists paths, or `{ path, label?, format? }`, joined by `separator` (default " · "); empty parts are dropped.
|
|
268
|
-
* - `source` — `{ register, schema, id }` or `{ url }`; omitted = the current object.
|
|
268
|
+
* - `source` — `{ register, schema, id }` or `{ url }`; omitted = the current object. An entry with `from: "object"` reads the current object even then (a client card that also shows the ticket's channel).
|
|
269
269
|
* - `link` — `{ label, route? | href? }` at the foot.
|
|
270
270
|
* - `hideEmpty` — drop an entry whose value is empty (default true).
|
|
271
271
|
* - `emptyText` — shown when no entry has a value.
|
|
@@ -370,8 +370,8 @@ export default {
|
|
|
370
370
|
* @return {Array<object>}
|
|
371
371
|
*/
|
|
372
372
|
blocks() {
|
|
373
|
-
const
|
|
374
|
-
if (!
|
|
373
|
+
const sourceRecord = this.record
|
|
374
|
+
if (!sourceRecord) {
|
|
375
375
|
return []
|
|
376
376
|
}
|
|
377
377
|
const fields = Array.isArray(this.content?.fields) ? this.content.fields : []
|
|
@@ -381,6 +381,8 @@ export default {
|
|
|
381
381
|
if (!field || typeof field !== 'object') {
|
|
382
382
|
return
|
|
383
383
|
}
|
|
384
|
+
// `from: "object"` reads the page's own object while the card shows a `source`.
|
|
385
|
+
const record = field.from === 'object' && this.objectData ? this.objectData : sourceRecord
|
|
384
386
|
const kind = this.kindOf(field)
|
|
385
387
|
const key = String(field.key || field.path || `${kind}-${index}`).replace(/[^\w-]/g, '-')
|
|
386
388
|
const value = this.entryValue(record, field, kind)
|
|
@@ -29,7 +29,11 @@
|
|
|
29
29
|
:llmSkillsUrl="resolvedLlmSkillsUrl"
|
|
30
30
|
:suggestUrl="resolvedSuggestUrl"
|
|
31
31
|
:documentationUrl="resolvedDocumentationUrl"
|
|
32
|
-
:capabilityComparison="resolvedCapabilityComparison"
|
|
32
|
+
:capabilityComparison="resolvedCapabilityComparison"
|
|
33
|
+
:categories="categories || {}"
|
|
34
|
+
:board="board || {}"
|
|
35
|
+
:title="title"
|
|
36
|
+
:appVersion="resolvedAppVersion" />
|
|
33
37
|
</template>
|
|
34
38
|
|
|
35
39
|
<script>
|
|
@@ -188,6 +192,47 @@ export default {
|
|
|
188
192
|
default: null,
|
|
189
193
|
},
|
|
190
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Feature category key to caption, for the board look's groups.
|
|
197
|
+
* Manifest `config.categories`.
|
|
198
|
+
*
|
|
199
|
+
* @type {object|null}
|
|
200
|
+
*/
|
|
201
|
+
categories: {
|
|
202
|
+
type: Object,
|
|
203
|
+
default: null,
|
|
204
|
+
},
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Board look options (`layout`, `tabs`, `filter`, `statusLabels`,
|
|
208
|
+
* `next`, `issueLabels`, `subtitle`, `notice`, `documentationButton`,
|
|
209
|
+
* `suggestButton`). Manifest `config.board`; see CnFeaturesBoard.
|
|
210
|
+
*
|
|
211
|
+
* @type {object|null}
|
|
212
|
+
*/
|
|
213
|
+
board: {
|
|
214
|
+
type: Object,
|
|
215
|
+
default: null,
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Page title, lifted from the manifest page's `title`. Shown in the
|
|
220
|
+
* board look.
|
|
221
|
+
*/
|
|
222
|
+
title: {
|
|
223
|
+
type: String,
|
|
224
|
+
default: '',
|
|
225
|
+
},
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* The app version for the board look's subtitle. Manifest config >
|
|
229
|
+
* initialState (`features_roadmap_app_version`) > ''.
|
|
230
|
+
*/
|
|
231
|
+
appVersion: {
|
|
232
|
+
type: String,
|
|
233
|
+
default: '',
|
|
234
|
+
},
|
|
235
|
+
|
|
191
236
|
/**
|
|
192
237
|
* Override for the appId used to namespace loadState lookups.
|
|
193
238
|
* Tests pass an explicit value; production reads it from the
|
|
@@ -283,6 +328,11 @@ export default {
|
|
|
283
328
|
|| readInitialState(this.effectiveAppId, 'features_roadmap_suggest_url', '')
|
|
284
329
|
},
|
|
285
330
|
|
|
331
|
+
resolvedAppVersion() {
|
|
332
|
+
return this.appVersion
|
|
333
|
+
|| readInitialState(this.effectiveAppId, 'features_roadmap_app_version', '')
|
|
334
|
+
},
|
|
335
|
+
|
|
286
336
|
resolvedDocumentationUrl() {
|
|
287
337
|
return this.documentationUrl
|
|
288
338
|
|| readInitialState(this.effectiveAppId, 'features_roadmap_documentation_url', '')
|
|
@@ -7,6 +7,19 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
</NcEmptyContent>
|
|
9
9
|
</div>
|
|
10
|
+
<CnFeaturesBoard
|
|
11
|
+
v-else-if="isBoardLook"
|
|
12
|
+
:features="features"
|
|
13
|
+
:categories="categories"
|
|
14
|
+
:repo="repo"
|
|
15
|
+
:title="title"
|
|
16
|
+
:appVersion="appVersion"
|
|
17
|
+
:documentationUrl="resolvedDocumentationUrl"
|
|
18
|
+
:suggestUrl="resolvedSuggestUrl"
|
|
19
|
+
:openbuiltUrl="resolvedOpenbuiltUrl"
|
|
20
|
+
:llmSkillsUrl="resolvedLlmSkillsUrl"
|
|
21
|
+
v-bind="boardOptions"
|
|
22
|
+
@support="openSupportDialog" />
|
|
10
23
|
<template v-else>
|
|
11
24
|
<header class="cn-features-and-roadmap-view__header">
|
|
12
25
|
<h2 class="cn-features-and-roadmap-view__title">
|
|
@@ -57,19 +70,18 @@
|
|
|
57
70
|
:comparison="capabilityComparison" />
|
|
58
71
|
<CnRoadmapTab v-else :repo="repo" />
|
|
59
72
|
</main>
|
|
60
|
-
|
|
61
|
-
<CnSupportDialog
|
|
62
|
-
v-if="showSupportDialog"
|
|
63
|
-
:appName="resolvedAppName"
|
|
64
|
-
:appSlug="resolvedAppSlug"
|
|
65
|
-
:appStoreUrl="resolvedAppStoreUrl"
|
|
66
|
-
:featureRequestUrl="resolvedFeatureRequestUrl"
|
|
67
|
-
:donateUrl="donateUrl"
|
|
68
|
-
:supportUrl="supportUrl"
|
|
69
|
-
:founderName="founderName"
|
|
70
|
-
:founderTitle="founderTitle"
|
|
71
|
-
@close="showSupportDialog = false" />
|
|
72
73
|
</template>
|
|
74
|
+
<CnSupportDialog
|
|
75
|
+
v-if="showSupportDialog && !disabled"
|
|
76
|
+
:appName="resolvedAppName"
|
|
77
|
+
:appSlug="resolvedAppSlug"
|
|
78
|
+
:appStoreUrl="resolvedAppStoreUrl"
|
|
79
|
+
:featureRequestUrl="resolvedFeatureRequestUrl"
|
|
80
|
+
:donateUrl="donateUrl"
|
|
81
|
+
:supportUrl="supportUrl"
|
|
82
|
+
:founderName="founderName"
|
|
83
|
+
:founderTitle="founderTitle"
|
|
84
|
+
@close="showSupportDialog = false" />
|
|
73
85
|
</div>
|
|
74
86
|
</template>
|
|
75
87
|
|
|
@@ -111,9 +123,11 @@ import RoadVariant from 'vue-material-design-icons/RoadVariant.vue'
|
|
|
111
123
|
import TableSearch from 'vue-material-design-icons/TableSearch.vue'
|
|
112
124
|
import CnCapabilityTable from '../CnCapabilityTable/CnCapabilityTable.vue'
|
|
113
125
|
import CnFeaturesAndRoadmapSidebar from '../CnFeaturesAndRoadmapSidebar/CnFeaturesAndRoadmapSidebar.vue'
|
|
126
|
+
import CnFeaturesBoard from '../CnFeaturesBoard/CnFeaturesBoard.vue'
|
|
114
127
|
import CnFeaturesTab from '../CnFeaturesTab/CnFeaturesTab.vue'
|
|
115
128
|
import CnRoadmapTab from '../CnRoadmapTab/CnRoadmapTab.vue'
|
|
116
129
|
import CnSupportDialog from '../CnSupportDialog/CnSupportDialog.vue'
|
|
130
|
+
import { normalizeLook } from '../../composables/useLook.js'
|
|
117
131
|
import { warnCapabilityComparisonDeprecated } from '../../utils/capabilityComparison.js'
|
|
118
132
|
import { buildFeatureRequestUrl, DEFAULT_FORGE } from '../../utils/forge.js'
|
|
119
133
|
|
|
@@ -137,6 +151,7 @@ export default {
|
|
|
137
151
|
RoadVariant,
|
|
138
152
|
TableSearch,
|
|
139
153
|
CnCapabilityTable,
|
|
154
|
+
CnFeaturesBoard,
|
|
140
155
|
CnFeaturesTab,
|
|
141
156
|
CnRoadmapTab,
|
|
142
157
|
CnSupportDialog,
|
|
@@ -158,6 +173,8 @@ export default {
|
|
|
158
173
|
* unmount. Same holder CnIndexPage uses.
|
|
159
174
|
*/
|
|
160
175
|
cnIndexSidebarConfig: { default: () => ({ value: null }) },
|
|
176
|
+
/** The app's look, provided by CnAppRoot (`nextcloud` or `board`). */
|
|
177
|
+
cnLook: { default: 'nextcloud' },
|
|
161
178
|
},
|
|
162
179
|
|
|
163
180
|
props: {
|
|
@@ -192,6 +209,46 @@ export default {
|
|
|
192
209
|
default: () => [],
|
|
193
210
|
},
|
|
194
211
|
|
|
212
|
+
/**
|
|
213
|
+
* Feature category key to caption, in the order the board look shows
|
|
214
|
+
* the groups. A feature names its group with `category`.
|
|
215
|
+
*
|
|
216
|
+
* @type {object}
|
|
217
|
+
*/
|
|
218
|
+
categories: {
|
|
219
|
+
type: Object,
|
|
220
|
+
default: () => ({}),
|
|
221
|
+
},
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Board look options, passed to CnFeaturesBoard: `layout` (`cards` or
|
|
225
|
+
* `rows`), `tabs`, `filter` (`chips` or `segmented`), `statusLabels`,
|
|
226
|
+
* `next`, `issueLabels`, `subtitle`, `notice`, `documentationButton`
|
|
227
|
+
* and `suggestButton`. Ignored in the default look.
|
|
228
|
+
*
|
|
229
|
+
* @type {object}
|
|
230
|
+
*/
|
|
231
|
+
board: {
|
|
232
|
+
type: Object,
|
|
233
|
+
default: () => ({}),
|
|
234
|
+
},
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Page title in the board look. Empty reads "Features and roadmap".
|
|
238
|
+
*/
|
|
239
|
+
title: {
|
|
240
|
+
type: String,
|
|
241
|
+
default: '',
|
|
242
|
+
},
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* The app version, for `{appVersion}` in the board look's subtitle.
|
|
246
|
+
*/
|
|
247
|
+
appVersion: {
|
|
248
|
+
type: String,
|
|
249
|
+
default: '',
|
|
250
|
+
},
|
|
251
|
+
|
|
195
252
|
/**
|
|
196
253
|
* Admin opt-out flag — when true the entire view collapses to a
|
|
197
254
|
* single "disabled by admin" empty state.
|
|
@@ -387,6 +444,32 @@ export default {
|
|
|
387
444
|
},
|
|
388
445
|
|
|
389
446
|
computed: {
|
|
447
|
+
/**
|
|
448
|
+
* Whether the page is drawn in the board look.
|
|
449
|
+
*
|
|
450
|
+
* @return {boolean}
|
|
451
|
+
*/
|
|
452
|
+
isBoardLook() {
|
|
453
|
+
return normalizeLook(this.cnLook) === 'board'
|
|
454
|
+
},
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* The board options CnFeaturesBoard declares, so an unknown key in the
|
|
458
|
+
* manifest never lands on its root element as an attribute.
|
|
459
|
+
*
|
|
460
|
+
* @return {object}
|
|
461
|
+
*/
|
|
462
|
+
boardOptions() {
|
|
463
|
+
const keys = ['layout', 'tabs', 'filter', 'statusLabels', 'next', 'issueLabels', 'subtitle', 'notice', 'documentationButton', 'suggestButton']
|
|
464
|
+
const options = {}
|
|
465
|
+
for (const key of keys) {
|
|
466
|
+
if (this.board && this.board[key] !== undefined && this.board[key] !== null) {
|
|
467
|
+
options[key] = this.board[key]
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
return options
|
|
471
|
+
},
|
|
472
|
+
|
|
390
473
|
/**
|
|
391
474
|
* The stops the header toggle cycles through. Without a capability
|
|
392
475
|
* comparison this is the two-stop list every consumer has today, and
|
|
@@ -580,7 +663,9 @@ export default {
|
|
|
580
663
|
if (!this.cnHostsIndexSidebar || !this.cnIndexSidebarConfig) {
|
|
581
664
|
return
|
|
582
665
|
}
|
|
583
|
-
|
|
666
|
+
// The board look has no right-hand column: its links sit in the
|
|
667
|
+
// board's Actions menu.
|
|
668
|
+
if (this.disabled || this.isBoardLook) {
|
|
584
669
|
this.cnIndexSidebarConfig.value = null
|
|
585
670
|
return
|
|
586
671
|
}
|