@conduction/nextcloud-vue 2.112.0 → 2.113.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.
Files changed (47) hide show
  1. package/dist/esm/components/CnActionButtons/CnActionButtons.vue.js +1 -1
  2. package/dist/esm/components/CnActionButtons/CnActionButtons.vue2.js +4 -6
  3. package/dist/esm/components/CnActionButtons/CnActionButtons.vue2.js.map +1 -1
  4. package/dist/esm/components/CnActionButtons/CnActionButtons.vue3.js.map +1 -1
  5. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue.js +1 -1
  6. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue2.js.map +1 -1
  7. package/dist/esm/components/CnChoiceCards/CnChoiceCards.vue3.js.map +1 -1
  8. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue.js +1 -1
  9. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js +18 -3
  10. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue2.js.map +1 -1
  11. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js +2 -2
  12. package/dist/esm/components/CnDashboardPage/CnDashboardPage.vue3.js.map +1 -1
  13. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js +20 -5
  14. package/dist/esm/components/CnDetailPage/CnDetailPage.vue2.js.map +1 -1
  15. package/dist/esm/components/CnDetailPage/CnDetailPage.vue3.js.map +1 -1
  16. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js +56 -13
  17. package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
  18. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +5 -3
  19. package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
  20. package/dist/esm/components/CnReportsPage/CnReportsPage.vue.js +1 -1
  21. package/dist/esm/components/CnReportsPage/CnReportsPage.vue2.js +29 -12
  22. package/dist/esm/components/CnReportsPage/CnReportsPage.vue2.js.map +1 -1
  23. package/dist/esm/components/CnReportsPage/CnReportsPage.vue3.js +3 -1
  24. package/dist/esm/components/CnReportsPage/CnReportsPage.vue3.js.map +1 -1
  25. package/dist/esm/library-style.js +1 -1
  26. package/dist/esm/nextcloud-vue.css +152 -181
  27. package/dist/esm/utils/actionLink.js +104 -1
  28. package/dist/esm/utils/actionLink.js.map +1 -1
  29. package/dist/esm/utils/validateManifestV2.compiled.js +3 -3
  30. package/dist/esm/utils/validateManifestV2.compiled.js.map +1 -1
  31. package/dist/nextcloud-vue.cjs.js +241 -50
  32. package/dist/nextcloud-vue.cjs.js.map +2 -2
  33. package/dist/nextcloud-vue.css +152 -181
  34. package/package.json +1 -1
  35. package/src/components/CnActionButtons/CnActionButtons.vue +4 -6
  36. package/src/components/CnChoiceCards/CnChoiceCards.vue +0 -3
  37. package/src/components/CnDashboardPage/CnDashboardPage.vue +20 -5
  38. package/src/components/CnDetailPage/CnDetailPage.vue +20 -5
  39. package/src/components/CnIndexPage/CnIndexPage.vue +59 -14
  40. package/src/components/CnReportsPage/CnReportsPage.vue +31 -12
  41. package/src/css/badge.css +15 -13
  42. package/src/css/board.css +0 -1
  43. package/src/css/look-board-index.css +3 -17
  44. package/src/css/look-board.css +2 -16
  45. package/src/schemas/app-manifest-v2.schema.json +51 -9
  46. package/src/utils/actionLink.js +103 -0
  47. 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. Empty (the default) renders
682
- * nothing; the `#header-actions` slot still works alongside it for
683
- * bespoke buttons.
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.