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

Commit 22ee68c

Browse files
Merge branch 'main' into v14/feature/doctype-ref-localizations
2 parents b17826a + bc55443 commit 22ee68c

File tree

7 files changed

+84
-23
lines changed

7 files changed

+84
-23
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/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)