Merge remote-tracking branch 'origin/release/17.0'

This commit is contained in:
Jacob Overgaard
2025-11-04 08:25:04 +01:00
19 changed files with 659 additions and 266 deletions

View File

@@ -142,7 +142,10 @@ export class UmbDataTypePickerFlowModalElement extends UmbModalBaseElement<
}
this.removeUmbController(contentContextConsumer);
this.removeUmbController(propContextConsumer);
const propertyEditorName = this.#propertyEditorUIs.find((ui) => ui.alias === params.uiAlias)?.name;
const propertyEditorUiManifest = this.#propertyEditorUIs.find((ui) => ui.alias === params.uiAlias);
const propertyEditorName = this.localize.string(
propertyEditorUiManifest?.meta?.label || propertyEditorUiManifest?.name || '#general_notFound',
);
const dataTypeName = `${contentContext?.getName() ?? ''} - ${propContext.getName() ?? ''} - ${propertyEditorName}`;
return {

View File

@@ -208,7 +208,7 @@ export class UmbDataTypeWorkspaceContext
umbExtensionsRegistry.byTypeAndAlias('propertyEditorUi', propertyEditorUIAlias),
(manifest) => {
this.#propertyEditorUiIcon.setValue(manifest?.meta.icon || null);
this.#propertyEditorUiName.setValue(manifest?.name || null);
this.#propertyEditorUiName.setValue(manifest?.meta?.label || manifest?.name || null);
// Maps properties to have a weight, so they can be sorted, notice UI properties have a +1000 weight compared to schema properties.
this.#propertyEditorUISettingsProperties = (manifest?.meta.settings?.properties ?? []).map((x, i) => ({

View File

@@ -83,7 +83,7 @@ export class UmbDataTypeDetailsWorkspacePropertyEditorPickerElement extends UmbF
#renderPropertyEditorReference() {
if (!this.propertyEditorUiAlias || !this.propertyEditorSchemaAlias) return nothing;
let name = this.propertyEditorUiName;
let name = this.localize.string(this.propertyEditorUiName);
let alias = this.propertyEditorUiAlias;
let error = false;