${this.localize.term('defaultdialogs_linkToPage')}
-
('overlaySize') ?? 'small';
}
+ /**
+ * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
+ * @type {boolean}
+ * @attr
+ * @default false
+ */
+ @property({ type: Boolean, reflect: true })
+ readonly = false;
+
#parseInt(value: unknown, fallback: number): number {
const num = Number(value);
return !isNaN(num) && num > 0 ? num : fallback;
@@ -74,6 +83,7 @@ export class UmbPropertyEditorUIMultiUrlPickerElement extends UmbLitElement impl
.urls=${this.value ?? []}
.variantId=${this._variantId}
?hide-anchor=${this._hideAnchor}
+ ?readonly=${this.readonly}
@change=${this.#onChange}>
`;
diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/components/input-checkbox-list/input-checkbox-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/components/input-checkbox-list/input-checkbox-list.element.ts
index eba6f09baf..14ee1cf435 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/components/input-checkbox-list/input-checkbox-list.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/components/input-checkbox-list/input-checkbox-list.element.ts
@@ -29,6 +29,15 @@ export class UmbInputCheckboxListElement extends UUIFormControlMixin(UmbLitEleme
return this.selection.join(',');
}
+ /**
+ * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
+ * @type {boolean}
+ * @attr
+ * @default false
+ */
+ @property({ type: Boolean, reflect: true })
+ readonly = false;
+
protected override getFormElement() {
return undefined;
}
@@ -64,7 +73,11 @@ export class UmbInputCheckboxListElement extends UUIFormControlMixin(UmbLitEleme
}
#renderCheckbox(item: (typeof this.list)[0]) {
- return html``;
+ return html``;
}
static override styles = [
diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/manifests.ts
index d88679601a..768e35ff23 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/manifests.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/manifests.ts
@@ -12,6 +12,7 @@ export const manifests: Array = [
propertyEditorSchemaAlias: 'Umbraco.CheckBoxList',
icon: 'icon-bulleted-list',
group: 'lists',
+ supportsReadOnly: true,
settings: {
properties: [
{
diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/property-editor-ui-checkbox-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/property-editor-ui-checkbox-list.element.ts
index 0eb81cc05c..45d99914cb 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/property-editor-ui-checkbox-list.element.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/checkbox-list/property-editor-ui-checkbox-list.element.ts
@@ -39,6 +39,15 @@ export class UmbPropertyEditorUICheckboxListElement extends UmbLitElement implem
}
}
+ /**
+ * Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
+ * @type {boolean}
+ * @attr
+ * @default false
+ */
+ @property({ type: Boolean, reflect: true })
+ readonly = false;
+
@state()
private _list: UmbInputCheckboxListElement['list'] = [];
@@ -52,6 +61,7 @@ export class UmbPropertyEditorUICheckboxListElement extends UmbLitElement implem
`;
}
diff --git a/src/Umbraco.Web.UI.Client/src/packages/ufm/index.ts b/src/Umbraco.Web.UI.Client/src/packages/ufm/index.ts
index 6bf7af213f..6ef5cd49bd 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/ufm/index.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/ufm/index.ts
@@ -1,2 +1,3 @@
export * from './components/ufm-render/index.js';
export * from './plugins/marked-ufm.plugin.js';
+export * from './ufm-components/ufm-component-base.js';