@conduction/nextcloud-vue 2.56.0-beta.66 → 2.56.0-beta.67
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 +4 -6
- 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/CnChoiceCards/CnChoiceCards.vue.js +1 -1
- package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue2.js.map +1 -1
- 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 +18 -3
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +2 -2
- package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
- package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +20 -5
- 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/CnIndexPage/CnIndexPage.vue2.js +56 -13
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +5 -3
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnReportsPage/CnReportsPage.vue.js +1 -1
- package/dist/esm/components/CnReportsPage/CnReportsPage.vue2.js +29 -12
- package/dist/esm/components/CnReportsPage/CnReportsPage.vue2.js.map +1 -1
- package/dist/esm/components/CnReportsPage/CnReportsPage.vue3.js +3 -1
- package/dist/esm/components/CnReportsPage/CnReportsPage.vue3.js.map +1 -1
- package/dist/esm/library-style.js +1 -1
- package/dist/esm/nextcloud-vue.css +152 -181
- package/dist/esm/utils/actionLink.js +104 -1
- package/dist/esm/utils/actionLink.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/nextcloud-vue.cjs.js +241 -50
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +152 -181
- package/package.json +1 -1
- package/src/components/CnActionButtons/CnActionButtons.vue +4 -6
- package/src/components/CnChoiceCards/CnChoiceCards.vue +0 -3
- package/src/components/CnDashboardPage/CnDashboardPage.vue +20 -5
- package/src/components/CnDetailPage/CnDetailPage.vue +20 -5
- package/src/components/CnIndexPage/CnIndexPage.vue +59 -14
- package/src/components/CnReportsPage/CnReportsPage.vue +31 -12
- package/src/css/badge.css +15 -13
- package/src/css/board.css +0 -1
- package/src/css/look-board-index.css +3 -17
- package/src/css/look-board.css +2 -16
- package/src/schemas/app-manifest-v2.schema.json +51 -9
- package/src/utils/actionLink.js +103 -0
- package/src/utils/validateManifestV2.compiled.js +3 -3
|
@@ -29,6 +29,7 @@ import { useIntegrationRegistry } from '../../composables/useIntegrationRegistry
|
|
|
29
29
|
import { normalizeLook } from '../../composables/useLook.js';
|
|
30
30
|
import { pageViews } from '../../mixins/pageViews.js';
|
|
31
31
|
import { mergeUserLayout, resolveUserLayoutApi } from '../../store/plugins/dashboardLayouts.js';
|
|
32
|
+
import { headerActionAsLink } from '../../utils/actionLink.js';
|
|
32
33
|
import { isAppInstalled } from '../../utils/appInstalled.js';
|
|
33
34
|
import { contentHeaderLink } from '../../utils/contentHeaderLink.js';
|
|
34
35
|
import { pickDeclaredProps } from '../../utils/declaredProps.js';
|
|
@@ -678,9 +679,12 @@ var script = {
|
|
|
678
679
|
* in the dashboard header via CnActionButtons — `open-form` (schema
|
|
679
680
|
* create dialog), `api-call` (POST/PUT + toast + refresh), `toggle`
|
|
680
681
|
* (two-way state button), `navigate` / `open-modal` / `refresh`, each
|
|
681
|
-
* with an optional `visibleWhen` predicate.
|
|
682
|
-
*
|
|
683
|
-
*
|
|
682
|
+
* with an optional `visibleWhen` predicate. An entry with `href` is a
|
|
683
|
+
* link button, never dispatched: an absolute `http(s)`, `mailto:`,
|
|
684
|
+
* `tel:` or `//host/...` URL as written, an instance path (leading `/`) through
|
|
685
|
+
* `generateUrl()`, in a new tab with `target: '_blank'`. Empty (the
|
|
686
|
+
* default) renders nothing; the `#header-actions` slot still works
|
|
687
|
+
* alongside it for bespoke buttons.
|
|
684
688
|
*
|
|
685
689
|
* @type {Array<object>}
|
|
686
690
|
*/
|
|
@@ -1087,6 +1091,17 @@ var script = {
|
|
|
1087
1091
|
return typeof this.cnTranslate === 'function' ? this.cnTranslate : (key) => key
|
|
1088
1092
|
},
|
|
1089
1093
|
|
|
1094
|
+
/**
|
|
1095
|
+
* The header actions handed to CnActionButtons, an entry with `href`
|
|
1096
|
+
* in its link form (resolved URL, anchor target, no handler).
|
|
1097
|
+
*
|
|
1098
|
+
* @spec openspec/changes/header-action-href/specs/header-action-href/spec.md#requirement-a-header-action-with-href-is-a-link-that-runs-and-emits-nothing
|
|
1099
|
+
* @return {Array<object>}
|
|
1100
|
+
*/
|
|
1101
|
+
linkedHeaderActions() {
|
|
1102
|
+
return (this.headerActions || []).map(headerActionAsLink)
|
|
1103
|
+
},
|
|
1104
|
+
|
|
1090
1105
|
/**
|
|
1091
1106
|
* The greeting for the time of day, with the reader's first (or
|
|
1092
1107
|
* full) name when known, or '' when `greeting` is off.
|