@conduction/nextcloud-vue 2.104.0 → 2.105.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/CnAdminSettingsShell/CnAdminSettingsShell.vue.js +1 -1
- package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue2.js.map +1 -1
- package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue3.js +1 -1
- package/dist/esm/components/CnAdminSettingsShell/CnAdminSettingsShell.vue3.js.map +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue.js +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue2.js +93 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnChartWidget/CnChartWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +6 -3
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +3 -3
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +59 -1
- 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/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue.js +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue2.js +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue3.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue.js +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js +2 -0
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js +32 -29
- package/dist/esm/components/CnFeaturesBoard/CnFeaturesBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue.js +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js +73 -4
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue2.js.map +1 -1
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js +74 -27
- package/dist/esm/components/CnFlowsPage/CnFlowBoard.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +54 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/useSelfFetchList.js +3 -2
- package/dist/esm/components/CnIndexPage/useSelfFetchList.js.map +1 -1
- package/dist/esm/components/CnNoticeWidget/CnNoticeWidget.vue.js +9 -0
- package/dist/esm/components/CnNoticeWidget/CnNoticeWidget.vue.js.map +1 -0
- package/dist/esm/components/CnNoticeWidget/CnNoticeWidget.vue2.js +88 -0
- package/dist/esm/components/CnNoticeWidget/CnNoticeWidget.vue2.js.map +1 -0
- package/dist/esm/components/CnNoticeWidget/CnNoticeWidget.vue3.js +39 -0
- package/dist/esm/components/CnNoticeWidget/CnNoticeWidget.vue3.js.map +1 -0
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue.js +1 -1
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue2.js.map +1 -1
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue3.js +3 -3
- package/dist/esm/components/CnSettingsField/CnSettingsField.vue3.js.map +1 -1
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue.js +1 -1
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue2.js.map +1 -1
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js +16 -4
- package/dist/esm/components/CnSetupWizard/CnSetupWizard.vue3.js.map +1 -1
- package/dist/esm/components/CnVersionInfoCard/CnVersionInfoCard.vue.js +1 -1
- package/dist/esm/components/CnVersionInfoCard/CnVersionInfoCard.vue2.js +11 -0
- package/dist/esm/components/CnVersionInfoCard/CnVersionInfoCard.vue2.js.map +1 -1
- package/dist/esm/components/CnVersionInfoCard/CnVersionInfoCard.vue3.js +4 -4
- package/dist/esm/components/CnVersionInfoCard/CnVersionInfoCard.vue3.js.map +1 -1
- package/dist/esm/components/CnWidgetGrid/builtInWidgets.js +16 -14
- package/dist/esm/components/CnWidgetGrid/builtInWidgets.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/l10n/en.json.js +4 -1
- package/dist/esm/l10n/en.json.js.map +1 -1
- package/dist/esm/l10n/nl.json.js +4 -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 +566 -295
- package/dist/esm/utils/libraryWidgetKeys.js +1 -0
- package/dist/esm/utils/libraryWidgetKeys.js.map +1 -1
- package/dist/esm/utils/nextcloudApps.js +45 -0
- package/dist/esm/utils/nextcloudApps.js.map +1 -0
- package/dist/esm/utils/scopeListLayout.js +9 -2
- package/dist/esm/utils/scopeListLayout.js.map +1 -1
- package/dist/esm/utils/validateManifestV2.compiled.js +3 -3
- package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
- package/dist/esm/utils/visibleWhen.js +12 -4
- package/dist/esm/utils/visibleWhen.js.map +1 -1
- package/dist/nextcloud-vue.cjs.js +3054 -2517
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +566 -295
- package/l10n/en.json +4 -1
- package/l10n/nl.json +4 -1
- package/package.json +1 -1
- package/src/components/CnAdminSettingsShell/CnAdminSettingsShell.vue +1 -1
- package/src/components/CnChartWidget/CnChartWidget.md +2 -0
- package/src/components/CnChartWidget/CnChartWidget.vue +93 -1
- package/src/components/CnDashboardPage/CnDashboardPage.vue +9 -6
- package/src/components/CnDetailPage/CnDetailPage.md +1 -0
- package/src/components/CnDetailPage/CnDetailPage.vue +59 -1
- package/src/components/CnFeaturesAndRoadmapView/CnFeaturesAndRoadmapView.vue +1 -1
- package/src/components/CnFeaturesBoard/CnFeaturesBoard.vue +4 -1
- package/src/components/CnFlowsPage/CnFlowBoard.vue +132 -8
- package/src/components/CnIndexPage/CnIndexPage.md +1 -0
- package/src/components/CnIndexPage/CnIndexPage.vue +54 -1
- package/src/components/CnIndexPage/useSelfFetchList.js +3 -2
- package/src/components/CnNoticeWidget/CnNoticeWidget.vue +153 -0
- package/src/components/CnNoticeWidget/index.js +12 -0
- package/src/components/CnSettingsField/CnSettingsField.vue +4 -1
- package/src/components/CnSetupWizard/CnSetupWizard.vue +9 -1
- package/src/components/CnVersionInfoCard/CnVersionInfoCard.vue +15 -4
- package/src/components/CnWidgetGrid/builtInWidgets.js +2 -0
- package/src/components/index.js +1 -0
- package/src/css/dialog.css +20 -2
- package/src/css/look-board-detail.css +77 -4
- package/src/css/look-board-index.css +36 -2
- package/src/css/look-board.css +97 -12
- package/src/index.js +1 -0
- package/src/schemas/app-manifest-v2.schema.json +36 -3
- package/src/utils/libraryWidgetKeys.js +1 -0
- package/src/utils/nextcloudApps.js +50 -0
- package/src/utils/scopeListLayout.js +9 -2
- package/src/utils/validateManifestV2.compiled.js +3 -3
- package/src/utils/visibleWhen.js +12 -4
|
@@ -1347,6 +1347,22 @@ var script = {
|
|
|
1347
1347
|
default: null,
|
|
1348
1348
|
},
|
|
1349
1349
|
|
|
1350
|
+
/**
|
|
1351
|
+
* A field path whose value picks the tabs of the page's `tabs` widgets
|
|
1352
|
+
* and their order for this record (manifest `config.tabsFrom`), read
|
|
1353
|
+
* like a `visibleWhen` field: `@context.caseType.tabs` reads the list a
|
|
1354
|
+
* case type keeps. A non-empty list of tab ids (a tab's `id`, else its
|
|
1355
|
+
* `widgetId`, or the string entry itself) keeps those tabs in that
|
|
1356
|
+
* order and leaves the rest out. Any other value keeps the declared
|
|
1357
|
+
* tabs. Edit mode shows them all.
|
|
1358
|
+
*
|
|
1359
|
+
* @spec openspec/changes/detail-tabs-from/specs/detail-page/spec.md#requirement-a-record-can-pick-its-tabs-and-their-order
|
|
1360
|
+
*/
|
|
1361
|
+
tabsFrom: {
|
|
1362
|
+
type: String,
|
|
1363
|
+
default: '',
|
|
1364
|
+
},
|
|
1365
|
+
|
|
1350
1366
|
/**
|
|
1351
1367
|
* A column of cards beside the body (manifest `config.sideColumn`),
|
|
1352
1368
|
* for the record's facts: deadline, requester, handler, links. Each
|
|
@@ -3331,7 +3347,7 @@ var script = {
|
|
|
3331
3347
|
*/
|
|
3332
3348
|
bodyGridWidgets() {
|
|
3333
3349
|
if (this.hasGridLayout) {
|
|
3334
|
-
return this.widgets
|
|
3350
|
+
return this.pickTabs(this.widgets)
|
|
3335
3351
|
}
|
|
3336
3352
|
if (this.shouldRenderAutoBody) {
|
|
3337
3353
|
return this.autoBodyWidgets || []
|
|
@@ -3339,6 +3355,21 @@ var script = {
|
|
|
3339
3355
|
return []
|
|
3340
3356
|
},
|
|
3341
3357
|
|
|
3358
|
+
/**
|
|
3359
|
+
* The tab ids `tabsFrom` reads off this record, or null when it reads
|
|
3360
|
+
* no non-empty list (or the body is being edited).
|
|
3361
|
+
*
|
|
3362
|
+
* @spec openspec/changes/detail-tabs-from/specs/detail-page/spec.md#requirement-a-record-can-pick-its-tabs-and-their-order
|
|
3363
|
+
* @return {Array<string>|null}
|
|
3364
|
+
*/
|
|
3365
|
+
pickedTabIds() {
|
|
3366
|
+
if (!this.tabsFrom || this.editingBody || !this.widgetVisibilityData) {
|
|
3367
|
+
return null
|
|
3368
|
+
}
|
|
3369
|
+
const ids = readVisibleWhenPath(this.widgetVisibilityData, this.tabsFrom);
|
|
3370
|
+
return Array.isArray(ids) && ids.length > 0 ? ids.map((id) => String(id)) : null
|
|
3371
|
+
},
|
|
3372
|
+
|
|
3342
3373
|
/**
|
|
3343
3374
|
* Whether the body renders as an adjustable widget grid (vs. the
|
|
3344
3375
|
* hand-authored default slot). True for explicit grid pages and for the
|
|
@@ -3757,6 +3788,33 @@ var script = {
|
|
|
3757
3788
|
},
|
|
3758
3789
|
|
|
3759
3790
|
methods: {
|
|
3791
|
+
/**
|
|
3792
|
+
* The widget definitions with each `tabs` widget's tabs narrowed and
|
|
3793
|
+
* ordered by `pickedTabIds`; the definitions as given without a pick.
|
|
3794
|
+
* A new definition is returned for a changed widget; the declared one
|
|
3795
|
+
* is never mutated.
|
|
3796
|
+
*
|
|
3797
|
+
* @spec openspec/changes/detail-tabs-from/specs/detail-page/spec.md#requirement-a-record-can-pick-its-tabs-and-their-order
|
|
3798
|
+
* @param {Array<object>} widgets The widget definitions.
|
|
3799
|
+
* @return {Array<object>}
|
|
3800
|
+
*/
|
|
3801
|
+
pickTabs(widgets) {
|
|
3802
|
+
const ids = this.pickedTabIds;
|
|
3803
|
+
if (!ids || !Array.isArray(widgets)) {
|
|
3804
|
+
return widgets
|
|
3805
|
+
}
|
|
3806
|
+
const idOf = (tab) => String(typeof tab === 'string' ? tab : (tab && (tab.id ?? tab.widgetId)) ?? '');
|
|
3807
|
+
return widgets.map((widget) => {
|
|
3808
|
+
if (!widget || widget.type !== 'tabs' || !Array.isArray(widget.content?.tabs)) {
|
|
3809
|
+
return widget
|
|
3810
|
+
}
|
|
3811
|
+
const tabs = ids
|
|
3812
|
+
.map((id) => widget.content.tabs.find((tab) => idOf(tab) === id))
|
|
3813
|
+
.filter(Boolean);
|
|
3814
|
+
return tabs.length > 0 ? { ...widget, content: { ...widget.content, tabs } } : widget
|
|
3815
|
+
})
|
|
3816
|
+
},
|
|
3817
|
+
|
|
3760
3818
|
/**
|
|
3761
3819
|
* The tag after an admin-only entry in the board look ("beheerder",
|
|
3762
3820
|
* DqZaakMeer), or null for any other entry or look. It is drawn by
|