class CCPMethodEditorController extends HTMLElement {
#boot;
#rootdoc;
#serviceurl;
#infrastructures;
#locked = false;
#isupdate = false;
#cloneornew_dialog = null;
#dragging_method = null;
#tmp_inputs = []
#tmp_outputs = []
#current = null;
#method_template = {
id: "",
title: "New Method",
description: "New empty method",
version: "1.0.0",
jobControlOptions: "async-execute",
metadata: [],
inputs: {},
outputs: {},
additionalParameters: {
parameters: [
{
name: "deploy-script",
value: []
},
{
name: "execute-script",
value: []
},
{
name: "undeploy-script",
value: []
}
]
},
links: []
}
#messages = {
"en" : {
"clone" : "Clone",
"clone_help" : "All setting will be cloned but no relation to cloned method will be kept",
"derive" : "Derive",
"derive_help" : "All settings will be cloned and a relation to the originating method will be kept",
"edit" : "Edit",
"edit_help" : "Edit this method",
"edit_clone_derive_help" : "Choose whether you want to clone this method or edit it",
"save_help" : "Save this method definition",
"reset_help" : "Reset all fields",
"delete_help" : "Permanently delete this method",
"title" : "Title",
"title_help" : "The title for the method",
"version" : "Version",
"version_help" : "The version of the method",
"description" : "Description",
"description_help" : "The description of this method",
"keywords" : "Keywords",
"keywords_help" : "Keywords that can be used to search for the method. Write and add by hitting enter.",
"categories" : "Categories",
"categories_help" : "Categories to classify the method. Select one from the list or type a new one. Add by pressing enter.",
"compatible_infrastructures" : "Compatible infrastructures",
"compatible_infrastructures_help" : "Select the infrastructures that are able to execute your method",
"inputs" : "Inputs",
"outputs" : "Outputs",
"scripts" : "Scripts",
"scripts_help" : "Deploy and execute scripts configure the deployment and execution life cycle of the method on the selected infrastructures. Use {{input_id}} notation to expand the inputs with their default values.",
"add-input_help" : "Add an input to this method",
"add-output_help" : "Add an output to this method",
"add_ccpnote_help" : "Add ccpnote annotation for this method. This helps in identifying executions.",
"add_stdout_help" : "Add standard outout",
"add_stderr_help" : "Add standard error",
"preview" : "Preview",
"err_fetch_infrastructures" : "Unable to fetch insfrastructures",
"err_save_method" : "Unable to save method",
"err_load_method" : "Unable to load method",
"err_delete_method" : "Unable to delete method",
"confirm_reset" : "All unsaved data will be lost. Proceed?",
"confirm_save" : "Confirm updating of method",
"confirm_delete" : "Confirm deletion of method",
"execute-script" : "Execute script",
"deploy-script" : "Deploy script",
}
}
#style = `
`
#erase_icon = `