@conduction/nextcloud-vue 2.56.0-beta.24 → 2.56.0-beta.25
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/CnAppNav/CnAppNav.vue2.js +19 -14
- package/dist/esm/components/CnAppNav/CnAppNav.vue2.js.map +1 -1
- package/dist/esm/components/CnAppNav/CnAppNav.vue3.js +2 -2
- package/dist/esm/components/CnAppNav/CnAppNav.vue3.js.map +1 -1
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js +77 -26
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue2.js.map +1 -1
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js +22 -14
- package/dist/esm/components/CnAppRoot/CnAppRoot.vue3.js.map +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue2.js +23 -4
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue2.js.map +1 -1
- package/dist/esm/components/CnBannerWidget/CnBannerWidget.vue3.js.map +1 -1
- package/dist/esm/components/CnBrandBar/CnBrandBar.vue.js +9 -0
- package/dist/esm/components/CnBrandBar/CnBrandBar.vue.js.map +1 -0
- package/dist/esm/components/CnBrandBar/CnBrandBar.vue2.js +107 -0
- package/dist/esm/components/CnBrandBar/CnBrandBar.vue2.js.map +1 -0
- package/dist/esm/components/CnBrandBar/CnBrandBar.vue3.js +79 -0
- package/dist/esm/components/CnBrandBar/CnBrandBar.vue3.js.map +1 -0
- package/dist/esm/components/CnEnvironmentBanner/CnEnvironmentBanner.vue2.js +4 -1
- package/dist/esm/components/CnEnvironmentBanner/CnEnvironmentBanner.vue2.js.map +1 -1
- package/dist/esm/components/CnEnvironmentBanner/CnEnvironmentBanner.vue3.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js +7 -0
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue2.js.map +1 -1
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js +14 -7
- package/dist/esm/components/CnFormDialog/CnFormDialog.vue3.js.map +1 -1
- package/dist/esm/components/CnFormPage/CnFormPage.vue2.js +32 -0
- package/dist/esm/components/CnFormPage/CnFormPage.vue2.js.map +1 -1
- package/dist/esm/components/CnFormPage/CnFormPage.vue3.js +6 -3
- package/dist/esm/components/CnFormPage/CnFormPage.vue3.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue2.js.map +1 -1
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js +2 -2
- package/dist/esm/components/CnIndexPage/CnIndexPage.vue3.js.map +1 -1
- package/dist/esm/components/CnQuickFilterBar/CnQuickFilterBar.vue2.js +18 -2
- package/dist/esm/components/CnQuickFilterBar/CnQuickFilterBar.vue2.js.map +1 -1
- package/dist/esm/components/CnQuickFilterBar/CnQuickFilterBar.vue3.js +2 -2
- package/dist/esm/components/CnQuickFilterBar/CnQuickFilterBar.vue3.js.map +1 -1
- package/dist/esm/components/CnStatsBlock/CnStatsBlock.vue2.js +16 -0
- package/dist/esm/components/CnStatsBlock/CnStatsBlock.vue2.js.map +1 -1
- package/dist/esm/components/CnStatsBlock/CnStatsBlock.vue3.js +2 -2
- package/dist/esm/components/CnStatsBlock/CnStatsBlock.vue3.js.map +1 -1
- package/dist/esm/directives/cnSelectAria.js +55 -0
- package/dist/esm/directives/cnSelectAria.js.map +1 -0
- package/dist/esm/nextcloud-vue.css +66 -1
- package/dist/esm/utils/cnFetch.js +17 -2
- package/dist/esm/utils/cnFetch.js.map +1 -1
- package/dist/esm/utils/resolveBrand.js +38 -0
- package/dist/esm/utils/resolveBrand.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/nextcloud-vue.cjs.js +8775 -8327
- package/dist/nextcloud-vue.cjs.js.map +2 -2
- package/dist/nextcloud-vue.css +66 -1
- package/package.json +1 -1
- package/src/components/CnAppNav/CnAppNav.vue +21 -16
- package/src/components/CnAppRoot/CnAppRoot.vue +53 -0
- package/src/components/CnBannerWidget/CnBannerWidget.vue +23 -4
- package/src/components/CnBrandBar/CnBrandBar.vue +230 -0
- package/src/components/CnEnvironmentBanner/CnEnvironmentBanner.vue +4 -1
- package/src/components/CnFormDialog/CnFormDialog.vue +10 -0
- package/src/components/CnFormPage/CnFormPage.vue +33 -0
- package/src/components/CnIndexPage/CnIndexPage.vue +2 -2
- package/src/components/CnQuickFilterBar/CnQuickFilterBar.vue +20 -4
- package/src/components/CnStatsBlock/CnStatsBlock.vue +18 -2
- package/src/css/form-field.css +1 -1
- package/src/directives/cnSelectAria.js +54 -0
- package/src/schemas/app-manifest-v2.schema.json +6 -1
- package/src/utils/cnFetch.js +16 -1
- package/src/utils/resolveBrand.js +37 -0
- package/src/utils/validateManifestV2.compiled.js +2 -2
|
@@ -14,6 +14,7 @@ import __sfc_main$1 from '../CnMenuWidget/CnMenuItemIcon.vue.js';
|
|
|
14
14
|
import { useLook } from '../../composables/useLook.js';
|
|
15
15
|
import { isAppInstalled } from '../../utils/appInstalled.js';
|
|
16
16
|
import { isSvgPath } from '../../utils/iconUtils.js';
|
|
17
|
+
import { resolveBrand } from '../../utils/resolveBrand.js';
|
|
17
18
|
import { passesContextPredicates } from '../../utils/visibleIfContext.js';
|
|
18
19
|
import __sfc_main from '../CnActionButtons/CnActionButtons.vue.js';
|
|
19
20
|
import { bridgedMdiForCssIcon } from '../CnIcon/cssIconBridge.js';
|
|
@@ -109,6 +110,12 @@ var script = {
|
|
|
109
110
|
|
|
110
111
|
inject: {
|
|
111
112
|
cnManifest: { default: null },
|
|
113
|
+
/**
|
|
114
|
+
* Provided by CnAppRoot as true while the board look draws the brand
|
|
115
|
+
* block in Nextcloud's header (screens-brand-block-top-bar): the
|
|
116
|
+
* navigation then skips its own.
|
|
117
|
+
*/
|
|
118
|
+
cnBrandInHeader: { default: false },
|
|
112
119
|
cnTranslate: { default: () => (key) => key },
|
|
113
120
|
/**
|
|
114
121
|
* Provided by CnAppRoot — opens the host app's
|
|
@@ -338,6 +345,17 @@ var script = {
|
|
|
338
345
|
return this.translate ?? this.cnTranslate
|
|
339
346
|
},
|
|
340
347
|
|
|
348
|
+
/**
|
|
349
|
+
* The brand the navigation draws itself: the resolved brand, or null
|
|
350
|
+
* while the app's top bar draws it.
|
|
351
|
+
*
|
|
352
|
+
* @spec openspec/changes/screens-brand-block-top-bar/specs/layout-components/spec.md#requirement-the-navigation-does-not-draw-a-brand-block-the-bar-already-draws
|
|
353
|
+
* @return {object|null}
|
|
354
|
+
*/
|
|
355
|
+
navBrand() {
|
|
356
|
+
return this.cnBrandInHeader ? null : this.resolvedBrand
|
|
357
|
+
},
|
|
358
|
+
|
|
341
359
|
/**
|
|
342
360
|
* The brand to draw: the `brand` prop, else the manifest's
|
|
343
361
|
* `nav.brand`. Name and caption go through the translate function,
|
|
@@ -349,20 +367,7 @@ var script = {
|
|
|
349
367
|
* @spec openspec/changes/detail-action-model-and-case-surfaces/specs/detail-action-model/spec.md#requirement-navigation-brand
|
|
350
368
|
*/
|
|
351
369
|
resolvedBrand() {
|
|
352
|
-
|
|
353
|
-
if (!declared || typeof declared !== 'object') {
|
|
354
|
-
return null
|
|
355
|
-
}
|
|
356
|
-
const text = (value) => (typeof value === 'string' && value !== '' ? this.effectiveTranslate(value) : '');
|
|
357
|
-
const brand = {
|
|
358
|
-
logo: typeof declared.logo === 'string' ? declared.logo : '',
|
|
359
|
-
// A URL, or `true` for the theme's emblem (--nldesign-emblem-url).
|
|
360
|
-
emblem: declared.emblem === true ? true : (typeof declared.emblem === 'string' ? declared.emblem : ''),
|
|
361
|
-
name: text(declared.name),
|
|
362
|
-
caption: text(declared.caption),
|
|
363
|
-
alt: text(declared.alt),
|
|
364
|
-
};
|
|
365
|
-
return (brand.logo || brand.emblem || brand.name || brand.caption) ? brand : null
|
|
370
|
+
return resolveBrand(this.brand ?? this.effectiveManifest?.nav?.brand, (value) => this.effectiveTranslate(value))
|
|
366
371
|
},
|
|
367
372
|
|
|
368
373
|
/**
|