Skip to content

Commit 92c32f0

Browse files
Merge branch 'main' into v15/feature/validate-specific-cultures
2 parents fe5d8b8 + 3b8ec46 commit 92c32f0

File tree

694 files changed

+2605
-1081
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

694 files changed

+2605
-1081
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"eslint-plugin-wc": "^2.1.1",
245245
"glob": "^11.0.0",
246246
"globals": "^15.8.0",
247-
"lucide-static": "^0.441.0",
247+
"lucide-static": "^0.446.0",
248248
"madge": "^8.0.0",
249249
"msw": "^1.3.2",
250250
"playwright-msw": "^3.0.1",

src/packages/block/block/workspace/views/edit/block-workspace-view-edit-properties.element.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ export class UmbBlockWorkspaceViewEditPropertiesElement extends UmbLitElement {
3535
@state()
3636
_dataPaths?: Array<string>;
3737

38+
@state()
39+
private _ownerEntityType?: string;
40+
3841
constructor() {
3942
super();
4043

4144
this.consumeContext(UMB_BLOCK_WORKSPACE_CONTEXT, (workspaceContext) => {
4245
this.#blockWorkspace = workspaceContext;
46+
this._ownerEntityType = this.#blockWorkspace.getEntityType();
4347
this.#setStructureManager();
4448
});
4549
}
@@ -70,6 +74,7 @@ export class UmbBlockWorkspaceViewEditPropertiesElement extends UmbLitElement {
7074
html`<umb-property-type-based-property
7175
class="property"
7276
data-path=${this._dataPaths![index]}
77+
.ownerEntityType=${this._ownerEntityType}
7378
.property=${property}
7479
${umbDestroyOnDisconnect()}></umb-property-type-based-property>`,
7580
);

src/packages/core/content-type/components/property-type-based-property/property-type-based-property.element.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
88
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
99
import type { UmbDataTypeDetailModel } from '@umbraco-cms/backoffice/data-type';
1010
import type { UmbObserverController } from '@umbraco-cms/backoffice/observable-api';
11+
import { UMB_UNSUPPORTED_EDITOR_SCHEMA_ALIASES } from '@umbraco-cms/backoffice/property';
1112

1213
@customElement('umb-property-type-based-property')
1314
export class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
@@ -27,9 +28,26 @@ export class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
2728
@property({ type: String, attribute: 'data-path' })
2829
public dataPath?: string;
2930

31+
@property({ type: String })
32+
public get ownerEntityType(): string | undefined {
33+
return this._ownerEntityType;
34+
}
35+
public set ownerEntityType(value: string | undefined) {
36+
// Change this to ownerSchemaEditorAlias and retrieve the correct information.
37+
this._ownerEntityType = value;
38+
}
39+
40+
private _ownerEntityType?: string;
41+
3042
@state()
3143
private _propertyEditorUiAlias?: string;
3244

45+
@state()
46+
private _propertyEditorSchemaAlias?: string;
47+
48+
@state()
49+
private _isUnsupported?: boolean;
50+
3351
@state()
3452
private _dataTypeData?: UmbPropertyEditorConfig;
3553

@@ -38,6 +56,16 @@ export class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
3856

3957
#contentPropertyContext = new UmbContentPropertyContext(this);
4058

59+
private async _checkSchemaSupport() {
60+
if (!this._ownerEntityType || !this._propertyEditorSchemaAlias) return;
61+
62+
if (this._ownerEntityType in UMB_UNSUPPORTED_EDITOR_SCHEMA_ALIASES) {
63+
this._isUnsupported = UMB_UNSUPPORTED_EDITOR_SCHEMA_ALIASES[this._ownerEntityType].includes(
64+
this._propertyEditorSchemaAlias,
65+
);
66+
}
67+
}
68+
4169
private async _observeDataType(dataTypeUnique?: string) {
4270
this._dataTypeObserver?.destroy();
4371
if (dataTypeUnique) {
@@ -51,6 +79,9 @@ export class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
5179

5280
this._dataTypeData = dataType?.values;
5381
this._propertyEditorUiAlias = dataType?.editorUiAlias || undefined;
82+
this._propertyEditorSchemaAlias = dataType?.editorAlias || undefined;
83+
this._checkSchemaSupport();
84+
5485
// If there is no UI, we will look up the Property editor model to find the default UI alias:
5586
if (!this._propertyEditorUiAlias && dataType?.editorAlias) {
5687
//use 'dataType.editorAlias' to look up the extension in the registry:
@@ -75,6 +106,12 @@ export class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
75106

76107
override render() {
77108
if (!this._propertyEditorUiAlias || !this._property?.alias) return;
109+
if (this._isUnsupported) {
110+
return html`<umb-unsupported-property
111+
.alias=${this._property.alias}
112+
.ownerEntityType=${this._ownerEntityType}
113+
.schema=${this._propertyEditorSchemaAlias!}></umb-unsupported-property>`;
114+
}
78115
return html`
79116
<umb-property
80117
.dataPath=${this.dataPath}

src/packages/core/icon-registry/icons/icon-activity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default `<!-- @license lucide-static v0.441.0 - ISC -->
1+
export default `<!-- @license lucide-static v0.446.0 - ISC -->
22
<svg
33
class="lucide lucide-activity"
44
xmlns="http://www.w3.org/2000/svg"

src/packages/core/icon-registry/icons/icon-add.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default `<!-- @license lucide-static v0.441.0 - ISC -->
1+
export default `<!-- @license lucide-static v0.446.0 - ISC -->
22
<svg
33
class="lucide lucide-plus"
44
xmlns="http://www.w3.org/2000/svg"

src/packages/core/icon-registry/icons/icon-addressbook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default `<!-- @license lucide-static v0.441.0 - ISC -->
1+
export default `<!-- @license lucide-static v0.446.0 - ISC -->
22
<svg
33
class="lucide lucide-book-user"
44
xmlns="http://www.w3.org/2000/svg"

src/packages/core/icon-registry/icons/icon-alarm-clock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default `<!-- @license lucide-static v0.441.0 - ISC -->
1+
export default `<!-- @license lucide-static v0.446.0 - ISC -->
22
<svg
33
class="lucide lucide-alarm-clock"
44
xmlns="http://www.w3.org/2000/svg"

src/packages/core/icon-registry/icons/icon-alert-alt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default `<!-- @license lucide-static v0.441.0 - ISC -->
1+
export default `<!-- @license lucide-static v0.446.0 - ISC -->
22
<svg
33
class="lucide lucide-triangle-alert"
44
xmlns="http://www.w3.org/2000/svg"

src/packages/core/icon-registry/icons/icon-alert.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default `<!-- @license lucide-static v0.441.0 - ISC -->
1+
export default `<!-- @license lucide-static v0.446.0 - ISC -->
22
<svg
33
class="lucide lucide-triangle-alert"
44
xmlns="http://www.w3.org/2000/svg"

0 commit comments

Comments
 (0)