diff --git a/dist/ueblueprint.js b/dist/ueblueprint.js
index 7ffb4c8..0812066 100755
--- a/dist/ueblueprint.js
+++ b/dist/ueblueprint.js
@@ -1756,6 +1756,9 @@ class ITemplate {
static styles = r$2``
+ /** @type {T} */
+ element
+
/** @type {IInput[]} */
#inputObjects = []
get inputObjects() {
@@ -3214,13 +3217,13 @@ class IInputPinTemplate extends PinTemplate {
super.firstUpdated(changedProperties);
this.#inputContentElements = [...this.element.querySelectorAll(".ueb-pin-input-content")];
if (this.#inputContentElements.length) {
- this.setInputs(this.getInputs(this.element), false);
+ this.setInputs(this.getInputs(), false);
let self = this;
this.onFocusHandler = _ => this.element.blueprint.dispatchEditTextEvent(true);
this.onFocusOutHandler = e => {
e.preventDefault();
document.getSelection()?.removeAllRanges(); // Deselect text inside the input
- self.setInputs(this.getInputs(this.element), true);
+ self.setInputs(this.getInputs(), true);
this.element.blueprint.dispatchEditTextEvent(false);
};
this.#inputContentElements.forEach(element => {
@@ -3246,7 +3249,7 @@ class IInputPinTemplate extends PinTemplate {
}
getInput() {
- return this.getInputs(this.element).reduce((acc, cur) => acc + cur, "")
+ return this.getInputs().reduce((acc, cur) => acc + cur, "")
}
getInputs() {
@@ -3277,7 +3280,7 @@ class IInputPinTemplate extends PinTemplate {
return $`
+ .innerText="${IInputPinTemplate.stringFromUEToInput(this.element.entity.DefaultValue.toString())}">
`
}
@@ -3529,32 +3532,96 @@ class WindowTemplate extends IDraggableTemplate {
- Content
+ ${this.renderContent()}
`
}
+
+ renderContent() {
+ return $``
+ }
+}
+
+/** @typedef {import("../element/WindowElement").default} WindowElement */
+
+class ColorPickerWindowTemplate extends WindowTemplate {
+
+ static windowName = $`Color Picker`
+
+ #picker
+
+ /** @param {Map} changedProperties */
+ firstUpdated(changedProperties) {
+ this.#picker = new iro.ColorPicker(
+ this.element.querySelector(".ueb-color-picker"),
+ {
+ layout: [
+
+ ]
+ }
+ );
+ }
+
+ renderContent() {
+ return $`
+
+ `
+ }
}
/** @extends {ISelectableDraggableElement