diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index 246decb..55d783e 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -78,7 +78,7 @@ class CCPExecutionForm extends HTMLElement{
- +
diff --git a/ccp/js/inputwidgetcontroller.js b/ccp/js/inputwidgetcontroller.js index 08dd748..ca1ae68 100644 --- a/ccp/js/inputwidgetcontroller.js +++ b/ccp/js/inputwidgetcontroller.js @@ -29,6 +29,9 @@ class CCPInputWidgetController extends HTMLElement { }else if(this.isFile()){ this.innerHTML += `` + }else if(this.isRemoteFile()){ + this.innerHTML += `` + }else if(this.isSecret()){ this.innerHTML += `` @@ -80,6 +83,13 @@ class CCPInputWidgetController extends HTMLElement { (this.#data.schema.format.toLowerCase() === "file") } + isRemoteFile(){ + return (this.#data.schema.type === "string") && + ("format" in this.#data.schema) && + (this.#data.schema.format != null) && + (this.#data.schema.format.toLowerCase() === "remotefile") + } + isDateTime(){ return (this.#data.schema.type === "string") && ("format" in this.#data.schema) && @@ -196,30 +206,52 @@ class CCPBaseInputWidgetController extends HTMLElement{ return this.#type } + renderPlusMinus(){ + this.rootdoc.querySelector("div[name=plusminus]").innerHTML = ` + ${this.isIncrementable() ? `+` : ``} + ${this.isDecrementable() ? `-` : ``} + ` + } + + renderContent(){ + this.rootdoc.querySelector("div[name=content]").innerHTML = this.content() + } + render(){ this.rootdoc.innerHTML = `