Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 786b477

Browse files
authored
Merge branch 'main' into v14/feature/block-area-permissions-display-content-type-name
2 parents fcb3ed4 + 79323dd commit 786b477

File tree

28 files changed

+408
-46
lines changed

28 files changed

+408
-46
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Property Dataset Dashboard Example
2+
3+
This example is a work in progress example of how to write a property editor.
4+
5+
This example covers a few points:
6+
7+
- Using an existing Property Editor Schema
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
2+
import { html, customElement, LitElement, property, css } from '@umbraco-cms/backoffice/external/lit';
3+
import { UmbElementMixin } from '@umbraco-cms/backoffice/element-api';
4+
import type { UmbBlockDataType, UmbBlockEditorCustomViewElement } from '@umbraco-cms/backoffice/extension-registry';
5+
6+
@customElement('example-block-custom-view')
7+
export class ExampleBlockCustomView extends UmbElementMixin(LitElement) implements UmbBlockEditorCustomViewElement {
8+
//
9+
@property({ attribute: false })
10+
content?: UmbBlockDataType;
11+
12+
override render() {
13+
return html`
14+
<div class="uui-text">
15+
<h5 class="uui-text">My Custom View</h5>
16+
<p>Headline: ${this.content.headline}</p>
17+
</div>
18+
`;
19+
}
20+
21+
static override styles = [
22+
UmbTextStyles,
23+
css`
24+
:host {
25+
display: block;
26+
height: 100%;
27+
box-sizing: border-box;
28+
background-color: #dddddd;
29+
border-radius: 9px;
30+
padding: 12px;
31+
}
32+
`,
33+
];
34+
}
35+
36+
export default ExampleBlockCustomView;
37+
38+
declare global {
39+
interface HTMLElementTagNameMap {
40+
'example-block-custom-view': ExampleBlockCustomView;
41+
}
42+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import type { ManifestBlockEditorCustomView } from '@umbraco-cms/backoffice/extension-registry';
2+
3+
export const manifests: Array<ManifestBlockEditorCustomView> = [
4+
{
5+
type: 'blockEditorCustomView',
6+
alias: 'Umb.blockEditorCustomView.TestView',
7+
name: 'Block Editor Custom View Test',
8+
element: () => import('./block-custom-view.js'),
9+
forContentTypeAlias: 'headlineUmbracoDemoBlock',
10+
forBlockEditor: 'block-grid',
11+
},
12+
];

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"@hey-api/openapi-ts": "^0.48.3",
223223
"@mdx-js/react": "^3.0.1",
224224
"@open-wc/testing": "^4.0.0",
225-
"@playwright/test": "^1.45.2",
225+
"@playwright/test": "^1.45.3",
226226
"@rollup/plugin-commonjs": "^26.0.1",
227227
"@rollup/plugin-json": "^6.1.0",
228228
"@rollup/plugin-node-resolve": "^15.2.3",
@@ -267,7 +267,7 @@
267267
"storybook": "^7.6.17",
268268
"tiny-glob": "^0.2.9",
269269
"tsc-alias": "^1.8.10",
270-
"typedoc": "^0.26.4",
270+
"typedoc": "^0.26.5",
271271
"typescript": "^5.5.3",
272272
"typescript-eslint": "^7.16.1",
273273
"typescript-json-schema": "^0.64.0",

src/packages/core/content-type/modals/composition-picker/composition-picker-modal.element.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,18 @@ export class UmbCompositionPickerModalElement extends UmbModalBaseElement<
9090
await this.#init;
9191
if (!this.#compositionRepository) return;
9292

93-
const isElement = this.data?.isElement;
94-
const currentPropertyAliases = this.data?.currentPropertyAliases;
93+
// Notice isElement is not available on all types that can be composed.
94+
const isElement = this.data?.isElement ?? undefined;
95+
const currentPropertyAliases = this.data?.currentPropertyAliases ?? [];
9596

9697
const { data } = await this.#compositionRepository.availableCompositions({
9798
unique: this.#unique,
9899
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
99100
// @ts-ignore
100101
// TODO: isElement is not available on all types that can be composed.
101-
isElement: isElement ?? false,
102+
isElement: isElement,
102103
currentCompositeUniques: this._selection,
103-
currentPropertyAliases: currentPropertyAliases ?? [],
104+
currentPropertyAliases: currentPropertyAliases,
104105
});
105106

106107
if (!data) return;
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export { UmbDocumentTypeCompositionRepository } from './document-type-composition.repository.js';
21
export { UMB_DOCUMENT_TYPE_COMPOSITION_REPOSITORY_ALIAS } from './manifests.js';

src/packages/documents/document-types/repository/composition/manifests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import type { ManifestRepository, ManifestTypes } from '@umbraco-cms/backoffice/
22

33
export const UMB_DOCUMENT_TYPE_COMPOSITION_REPOSITORY_ALIAS = 'Umb.Repository.DocumentType.Composition';
44

5-
const queryRepository: ManifestRepository = {
5+
const compositionRepository: ManifestRepository = {
66
type: 'repository',
77
alias: UMB_DOCUMENT_TYPE_COMPOSITION_REPOSITORY_ALIAS,
88
name: 'Document Type Composition Repository',
99
api: () => import('./document-type-composition.repository.js'),
1010
};
1111

12-
export const manifests: Array<ManifestTypes> = [queryRepository];
12+
export const manifests: Array<ManifestTypes> = [compositionRepository];

src/packages/health-check/views/health-check-group-box-overview.element.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,25 @@ export class UmbHealthCheckGroupBoxOverviewElement extends UmbLitElement {
6464
_renderCheckResults(resultObject: any) {
6565
return html`${resultObject.success > 0
6666
? html`<uui-tag look="secondary" color="positive">
67-
<uui-icon name="icon-check"></uui-icon>
67+
<uui-icon name="check"></uui-icon>
6868
${resultObject.success}
6969
</uui-tag> `
7070
: nothing}
7171
${resultObject.warning > 0
7272
? html`<uui-tag look="secondary" color="warning">
73-
<uui-icon name="icon-alert"></uui-icon>
73+
<uui-icon name="alert"></uui-icon>
7474
${resultObject.warning}
7575
</uui-tag>`
7676
: nothing}
7777
${resultObject.error > 0
7878
? html`<uui-tag look="secondary" color="danger">
79-
<uui-icon name="icon-wrong"></uui-icon>
79+
<uui-icon name="remove"></uui-icon>
8080
${resultObject.error}
8181
</uui-tag>`
8282
: nothing}
8383
${resultObject.info > 0
8484
? html`<uui-tag look="secondary">
85-
<uui-icon name="icon-info"></uui-icon>
85+
<uui-icon name="info"></uui-icon>
8686
${resultObject.info}
8787
</uui-tag>`
8888
: nothing} `;

src/packages/health-check/views/health-check-group.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class UmbDashboardHealthCheckGroupElement extends UmbLitElement {
129129
case StatusResultTypeModel.SUCCESS:
130130
return html`<uui-icon style="color: var(--uui-color-positive);" name="check"></uui-icon>`;
131131
case StatusResultTypeModel.WARNING:
132-
return html`<uui-icon style="color: var(--uui-color-warning);" name="alert"></uui-icon>`;
132+
return html`<uui-icon style="color: var(--uui-color-warning-standalone);" name="alert"></uui-icon>`;
133133
case StatusResultTypeModel.ERROR:
134134
return html`<uui-icon style="color: var(--uui-color-danger);" name="remove"></uui-icon>`;
135135
case StatusResultTypeModel.INFO:

0 commit comments

Comments
 (0)