Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * SDC |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. |
Piotr Darosz | 2c25cba | 2019-03-27 15:25:50 +0100 | [diff] [blame] | 6 | * Modifications Copyright (C) 2019 Nokia. All rights reserved. |
Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 7 | * ================================================================================ |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
Idan Amit | cb1095e | 2018-01-22 20:55:42 +0200 | [diff] [blame] | 11 | * |
Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
Idan Amit | cb1095e | 2018-01-22 20:55:42 +0200 | [diff] [blame] | 13 | * |
Michael Lando | dd60339 | 2017-07-12 00:54:52 +0300 | [diff] [blame] | 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * ============LICENSE_END========================================================= |
| 20 | */ |
| 21 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 22 | /** |
| 23 | * Created by obarda on 2/18/2016. |
| 24 | */ |
| 25 | |
| 26 | export let DEFAULT_ICON = 'defaulticon'; |
| 27 | export let CP_END_POINT = 'CpEndPoint'; |
| 28 | export let CHANGE_COMPONENT_CSAR_VERSION_FLAG = 'changeComponentCsarVersion'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 29 | export let PREVIOUS_CSAR_COMPONENT = 'previousCsarComponent' |
davsad | 74d32db | 2021-03-01 23:47:07 +0000 | [diff] [blame] | 30 | export let CATEGORY_SERVICE_METADATA_KEYS = ["Naming Policy","Service Type","Service Function","Service Role"]; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 31 | |
| 32 | export class GeneralStatus { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 33 | static OK = 'OK'; |
| 34 | static GENERAL_ERROR = 'GENERAL_ERROR'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 35 | } |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 36 | |
| 37 | export class ComponentType { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 38 | static SERVICE = 'SERVICE'; |
| 39 | static RESOURCE = 'RESOURCE'; |
| 40 | static RESOURCE_INSTANCE = 'RESOURCE_INSTANCE'; |
| 41 | static SERVICE_PROXY = 'ServiceProxy' |
| 42 | static SERVICE_SUBSTITUTION = 'ServiceSubstitution' |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | export class ServerTypeUrl { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 46 | static RESOURCES = 'resources/'; |
| 47 | static SERVICES = 'services/'; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 48 | |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 49 | public static toServerTypeUrl(componentType: ComponentType): string { |
| 50 | if (componentType == ComponentType.SERVICE) { |
| 51 | return ServerTypeUrl.SERVICES.slice(0, -1); |
| 52 | } else if (componentType == ComponentType.RESOURCE) { |
| 53 | return ServerTypeUrl.RESOURCES.slice(0, -1); |
| 54 | } else { |
| 55 | return undefined; |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 56 | } |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 57 | } |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 58 | } |
| 59 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 60 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 61 | export class ResourceType { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 62 | static VF = 'VF'; |
| 63 | static VL = 'VL'; |
| 64 | static CP = 'CP'; |
| 65 | static VFC = 'VFC'; |
| 66 | static VFCMT = 'VFCMT'; |
| 67 | static PNF = 'PNF'; |
| 68 | static CVFC = 'CVFC'; |
| 69 | static CONFIGURATION = 'Configuration'; |
| 70 | static CR = 'CR'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 71 | } |
| 72 | |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 73 | export class SdcElementType { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 74 | static GROUP = 'GROUP'; |
| 75 | static POLICY = 'POLICY'; |
| 76 | static SERVICE_PROXY = 'ServiceProxy' |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 77 | } |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 78 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 79 | export class ComponentState { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 80 | static CERTIFICATION_IN_PROGRESS = 'CERTIFICATION_IN_PROGRESS'; |
| 81 | static CERTIFIED = 'CERTIFIED'; |
| 82 | static NOT_CERTIFIED_CHECKOUT = 'NOT_CERTIFIED_CHECKOUT'; |
| 83 | static NOT_CERTIFIED_CHECKIN = 'NOT_CERTIFIED_CHECKIN'; |
| 84 | static READY_FOR_CERTIFICATION = 'READY_FOR_CERTIFICATION'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 85 | } |
| 86 | |
| 87 | export class DistributionStatus { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 88 | DISTRIBUTION_NOT_APPROVED = 'DISTRIBUTION_NOT_APPROVED'; |
| 89 | DISTRIBUTION_APPROVED = 'DISTRIBUTION_APPROVED'; |
| 90 | DISTRIBUTED = 'DISTRIBUTED'; |
| 91 | DISTRIBUTION_REJECTED = 'DISTRIBUTION_REJECTED'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | export class ArtifactGroupType { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 95 | static DEPLOYMENT = "DEPLOYMENT"; |
| 96 | static INFORMATION = "INFORMATIONAL"; |
| 97 | static SERVICE_API = "SERVICE_API"; |
| 98 | static TOSCA = "TOSCA"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | export class ArtifactType { |
ys9693 | 16a9fce | 2020-01-19 13:50:02 +0200 | [diff] [blame] | 102 | |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 103 | static DEPLOYMENT = "DEPLOYMENT"; |
| 104 | static INFORMATION = "INFORMATIONAL"; |
| 105 | static SERVICE_API = "SERVICE_API"; |
| 106 | static HEAT_ENV = "HEAT_ENV"; |
| 107 | static HEAT = "HEAT"; |
| 108 | static HEAT_VOL = "HEAT_VOL"; |
| 109 | static HEAT_NET = "HEAT_NET"; |
| 110 | static VF_LICENSE = "VF_LICENSE"; |
| 111 | static PM_DICTIONARY = "PM_DICTIONARY"; |
| 112 | static VENDOR_LICENSE = "VENDOR_LICENSE"; |
| 113 | static THIRD_PARTY_RESERVED_TYPES = { |
| 114 | WORKFLOW: "WORKFLOW", |
| 115 | NETWORK_CALL_FLOW: "NETWORK_CALL_FLOW", |
| 116 | AAI_SERVICE_MODEL: "AAI_SERVICE_MODEL", |
| 117 | AAI_VF_MODEL: "AAI_VF_MODEL", |
| 118 | AAI_VF_MODULE_MODEL: "AAI_VF_MODULE_MODEL", |
| 119 | AAI_VF_INSTANCE_MODEL: "AAI_VF_INSTANCE_MODEL" |
| 120 | }; |
| 121 | static TOSCA = {TOSCA_TEMPLATE: "TOSCA_TEMPLATE", TOSCA_CSAR: "TOSCA_CSAR"}; |
| 122 | static VES_EVENTS = "VES_EVENTS"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 123 | } |
| 124 | |
| 125 | export class SEVERITY { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 126 | public static DEBUG = 'DEBUG'; |
| 127 | public static INFO = 'INFO'; |
| 128 | public static WARNING = 'WARNING'; |
| 129 | public static ERROR = 'ERROR'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 130 | } |
| 131 | |
| 132 | export class PROPERTY_TYPES { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 133 | public static STRING = 'string'; |
| 134 | public static INTEGER = 'integer'; |
| 135 | public static FLOAT = 'float'; |
| 136 | public static BOOLEAN = 'boolean'; |
| 137 | public static JSON = 'json'; |
| 138 | public static MAP = 'map'; |
| 139 | public static LIST = 'list'; |
| 140 | public static SCALAR = 'scalar-unit'; |
| 141 | public static SCALAR_FREQUENCY = 'scalar-unit.frequency'; |
| 142 | public static SCALAR_SIZE = 'scalar-unit.size'; |
| 143 | public static SCALAR_TIME = 'scalar-unit.time'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 144 | } |
| 145 | |
| 146 | export class SOURCES { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 147 | public static A_AND_AI = 'A&AI'; |
| 148 | public static ORDER = 'Order'; |
| 149 | public static RUNTIME = 'Runtime'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 150 | } |
| 151 | |
| 152 | export class PROPERTY_DATA { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 153 | public static TYPES = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT, PROPERTY_TYPES.BOOLEAN, PROPERTY_TYPES.JSON, PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME, PROPERTY_TYPES.LIST, PROPERTY_TYPES.MAP]; |
| 154 | public static SIMPLE_TYPES = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT, PROPERTY_TYPES.BOOLEAN, PROPERTY_TYPES.JSON, PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME]; |
| 155 | public static SIMPLE_TYPES_COMPARABLE = [PROPERTY_TYPES.STRING, PROPERTY_TYPES.INTEGER, PROPERTY_TYPES.FLOAT]; |
| 156 | public static SCALAR_TYPES = [PROPERTY_TYPES.SCALAR, PROPERTY_TYPES.SCALAR_FREQUENCY, PROPERTY_TYPES.SCALAR_SIZE, PROPERTY_TYPES.SCALAR_TIME]; |
| 157 | public static ROOT_DATA_TYPE = "tosca.datatypes.Root"; |
| 158 | public static OPENECOMP_ROOT = "org.openecomp.datatypes.Root"; |
| 159 | public static SUPPLEMENTAL_DATA = "supplemental_data"; |
| 160 | public static SOURCES = [SOURCES.A_AND_AI, SOURCES.ORDER, SOURCES.RUNTIME]; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 161 | } |
| 162 | |
| 163 | export class PROPERTY_VALUE_CONSTRAINTS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 164 | public static MAX_LENGTH = 2500; |
| 165 | public static JSON_MAX_LENGTH = 4096; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 166 | } |
| 167 | |
| 168 | export class Role { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 169 | public static ADMIN = 'ADMIN'; |
| 170 | public static DESIGNER = 'DESIGNER'; |
| 171 | public static TESTER = 'TESTER'; |
| 172 | public static OPS = 'OPS'; |
| 173 | public static GOVERNOR = 'GOVERNOR'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 174 | } |
| 175 | |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 176 | export enum FormState { |
| 177 | CREATE, |
| 178 | UPDATE, |
| 179 | IMPORT, |
| 180 | VIEW |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 181 | } |
| 182 | |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 183 | export class instantiationType { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 184 | public static MACRO = 'Macro'; |
| 185 | public static A_LA_CARTE = 'A-la-carte'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 186 | } |
| 187 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 188 | export class WorkspaceMode { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 189 | public static CREATE = 'create'; |
| 190 | public static EDIT = 'edit'; |
| 191 | public static IMPORT = 'import'; |
| 192 | public static VIEW = 'view'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 193 | } |
| 194 | |
| 195 | export class ImagesUrl { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 196 | public static RESOURCE_ICONS = '/assets/styles/images/resource-icons/'; |
| 197 | public static SERVICE_ICONS = '/assets/styles/images/service-icons/'; |
| 198 | public static SERVICE_PROXY_ICONS = '/assets/styles/images/service-proxy-icons/'; |
| 199 | public static SELECTED_UCPE_INSTANCE = '/assets/styles/images/resource-icons/selectedUcpeInstance.png'; |
| 200 | public static SELECTED_CP_INSTANCE = '/assets/styles/images/resource-icons/selectedCPInstance.png'; |
| 201 | public static SELECTED_VL_INSTANCE = '/assets/styles/images/resource-icons/selectedVLInstance.png'; |
| 202 | public static CANVAS_PLUS_ICON = '/assets/styles/images/resource-icons/canvasPlusIcon.png'; |
| 203 | public static CANVAS_TAG_ICON = '/assets/styles/images/canvas-tagging-icons/indication.svg'; |
| 204 | public static CANVAS_POLICY_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/policy_added.svg'; |
| 205 | public static CANVAS_GROUP_TAGGED_ICON = '/assets/styles/images/canvas-tagging-icons/group_added.svg'; |
| 206 | public static MODULE_ICON = '/assets/styles/images/resource-icons/module.png'; |
| 207 | public static OPEN_MODULE_ICON = '/assets/styles/images/resource-icons/openModule.png'; |
| 208 | public static OPEN_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/openModuleHover.png'; |
| 209 | public static CLOSE_MODULE_ICON = '/assets/styles/images/resource-icons/closeModule.png'; |
| 210 | public static CLOSE_MODULE_HOVER_ICON = '/assets/styles/images/resource-icons/closeModuleHover.png'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 211 | } |
| 212 | |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 213 | |
| 214 | export class CanvasHandleTypes { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 215 | public static ADD_EDGE = 'add-edge'; |
| 216 | public static TAG_AVAILABLE = 'tag-available'; |
| 217 | public static TAGGED_POLICY = 'tagged-policy'; |
| 218 | public static TAGGED_GROUP = 'tagged-group'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 219 | } |
| 220 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 221 | export class ModalType { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 222 | static STANDARD = 'standard'; |
| 223 | static ERROR = 'error'; |
| 224 | static ALERT = 'alert'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 225 | } |
| 226 | |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 227 | export class ServerErrors { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 228 | static ERROR_TITLE = 'Error'; |
| 229 | static DEFAULT_ERROR = 'Error getting response from server'; |
| 230 | static MESSAGE_ERROR = 'Wrong error format from server'; |
| 231 | static DOWNLOAD_ERROR = 'Download error'; |
Avi Ziv | f5854fd | 2017-07-31 15:50:46 +0300 | [diff] [blame] | 232 | } |
| 233 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 234 | export class GraphColors { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 235 | public static NOT_CERTIFIED_LINK = 'rgb(218,31,61)'; |
| 236 | public static VL_LINK = 'rgb(216,216,216)'; |
| 237 | public static ACTIVE_LINK = '#30bdf2'; |
| 238 | public static BASE_LINK = 'rgb(55,55,55)'; |
| 239 | public static NODE_BACKGROUND_COLOR = 'rgba(46, 162, 157, 0.24)'; |
| 240 | public static NODE_SHADOW_COLOR = 'rgba(198, 230, 228, 0.7)'; |
| 241 | public static NODE_OVERLAPPING_BACKGROUND_COLOR = 'rgba(179, 10, 60, 0.24)'; |
| 242 | public static NODE_OVERLAPPING_SHADOW_COLOR = 'rgba(236, 194, 206, 0.7)'; |
| 243 | public static NODE_UCPE_CP = '#9063cd'; |
| 244 | public static NODE_UCPE = '#fbfbfb'; |
| 245 | public static NODE_SELECTED_BORDER_COLOR = '#30bdf2'; |
| 246 | public static SERVICE_PATH_LINK = '#70208a'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 247 | } |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 248 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 249 | export class GraphTransactionLogText { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 250 | public static REMOVE_TEMP_LINK = "remove tempLink"; |
| 251 | public static DELETE_LINK = "delete link"; |
| 252 | public static ADD_LINK = "delete link"; |
| 253 | public static ADD_NODE = "adding node"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 254 | } |
| 255 | |
| 256 | export class GraphUIObjects { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 257 | public static HANDLE_SIZE = 18; |
| 258 | public static NODE_OVERLAP_MIN_SIZE = 30; |
| 259 | public static DEFAULT_RESOURCE_WIDTH = 65; |
| 260 | public static SMALL_RESOURCE_WIDTH = 21; |
| 261 | public static LINK_MENU_HEIGHT = 420; |
| 262 | public static TOP_HEADER_HEIGHT = 200; |
| 263 | public static TOOLTIP_OFFSET_X = 50; |
| 264 | public static TOOLTIP_OFFSET_Y = 145; |
| 265 | public static TOOLTIP_LINK_OFFSET_X = 35; |
| 266 | public static TOOLTIP_LINK_OFFSET_Y = 75; |
| 267 | public static MENU_LINK_VL_HEIGHT_OFFSET = 250; |
| 268 | public static MENU_LINK_VL_WIDTH_OFFSET = 200; |
| 269 | public static MENU_LINK_SIMPLE_HEIGHT_OFFSET = 180; |
| 270 | public static MENU_LINK_SIMPLE_WIDTH_OFFSET = 130; |
| 271 | public static DIAGRAM_RIGHT_WIDTH_OFFSET = 248; |
| 272 | public static DIAGRAM_HEADER_OFFSET = 103; |
| 273 | public static DIAGRAM_PALETTE_WIDTH_OFFSET = 247; |
| 274 | // public static COMPOSITION_HEADER_OFFSET = 50; |
| 275 | // public static COMPOSITION_NODE_MENU_WIDTH = 230; |
| 276 | // public static COMPOSITION_NODE_MENU_HEIGHT = 200; |
| 277 | // public static COMPOSITION_RIGHT_PANEL_OFFSET = 300; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 278 | } |
| 279 | |
| 280 | |
| 281 | export class States { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 282 | public static WORKSPACE_GENERAL = 'workspace.general'; |
| 283 | public static WORKSPACE_ACTIVITY_LOG = 'workspace.activity_log'; |
| 284 | public static WORKSPACE_DEPLOYMENT_ARTIFACTS = 'workspace.deployment_artifacts'; |
| 285 | public static WORKSPACE_PROPERTIES = 'workspace.properties'; |
| 286 | public static WORKSPACE_SERVICE_INPUTS = 'workspace.service_inputs'; |
| 287 | public static WORKSPACE_RESOURCE_INPUTS = 'workspace.resource_inputs'; |
| 288 | public static WORKSPACE_ATTRIBUTES = 'workspace.attributes'; |
| 289 | public static WORKSPACE_ATTRIBUTES_OUTPUTS = 'workspace.attributes_outputs'; |
| 290 | public static WORKSPACE_INFORMATION_ARTIFACTS = 'workspace.information_artifacts'; |
| 291 | public static WORKSPACE_TOSCA_ARTIFACTS = 'workspace.tosca_artifacts'; |
| 292 | public static WORKSPACE_COMPOSITION = 'workspace.composition'; |
| 293 | public static WORKSPACE_INTERFACE_OPERATION = 'workspace.interface_operation'; |
| 294 | public static WORKSPACE_NETWORK_CALL_FLOW = 'workspace.network_call_flow'; |
| 295 | public static WORKSPACE_MANAGEMENT_WORKFLOW = 'workspace.management_workflow'; |
| 296 | public static WORKSPACE_DEPLOYMENT = 'workspace.deployment'; |
| 297 | public static WORKSPACE_DISTRIBUTION = 'workspace.distribution'; |
| 298 | public static WORKSPACE_PROPERTIES_ASSIGNMENT = 'workspace.properties_assignment'; |
| 299 | public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES = 'workspace.reqAndCap'; |
| 300 | public static WORKSPACE_REQUIREMENTS_AND_CAPABILITIES_EDITABLE = 'workspace.reqAndCapEditable'; |
| 301 | public static WORKSPACE_PLUGINS = 'workspace.plugins'; |
| 302 | public static WORKSPACE_NG2 = 'workspace.ng2'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 303 | } |
| 304 | |
| 305 | export class EVENTS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 306 | static LEFT_PALETTE_UPDATE_EVENT = "leftPanelUpdateEvent"; |
| 307 | static ON_CSAR_LOADING = "onCsarLoading"; |
| 308 | static DOWNLOAD_ARTIFACT_FINISH_EVENT = "downloadArtifactFinishEvent"; |
| 309 | static ON_WORKSPACE_SAVE_BUTTON_CLICK = "onWorkspaceSaveButtonClick"; |
| 310 | static ON_WORKSPACE_SAVE_BUTTON_SUCCESS = "onWorkspaceSaveButtonSuccess"; |
| 311 | static ON_WORKSPACE_SAVE_BUTTON_ERROR = "onWorkspaceSaveButtonError"; |
| 312 | static ON_WORKSPACE_UNSAVED_CHANGES = "onWorkspaceUnsavedChanges"; |
| 313 | static ON_CHECKOUT = "onCheckout"; |
| 314 | static ON_LIFECYCLE_CHANGE_WITH_SAVE = "onLifecycleChangeWithSave"; |
| 315 | static ON_LIFECYCLE_CHANGE = "onCheckout"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 316 | |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 317 | //Loader events |
| 318 | static SHOW_LOADER_EVENT = "showLoaderEvent"; |
| 319 | static HIDE_LOADER_EVENT = "hideLoaderEvent"; |
| 320 | static UPDATE_PANEL = 'updatePanel'; |
| 321 | static ON_DISTRIBUTION_SUCCESS = 'onDistributionSuccess'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 322 | } |
| 323 | |
| 324 | |
| 325 | export class UNIQUE_GROUP_PROPERTIES_NAME { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 326 | public static MIN_VF_MODULE_INSTANCES = 'min_vf_module_instances'; |
| 327 | public static MAX_VF_MODULE_INSTANCES = 'max_vf_module_instances'; |
| 328 | public static INITIAL_COUNT = 'initial_count'; |
| 329 | public static IS_BASE = 'isBase'; |
| 330 | public static VF_MODULE_TYPE = 'vf_module_type'; |
| 331 | public static VF_MODULE_LABEL = 'vf_module_label'; |
| 332 | public static VF_MODULE_DESCRIPTION = 'vf_module_description'; |
| 333 | public static VOLUME_GROUP = 'volume_group'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 334 | } |
| 335 | |
| 336 | |
| 337 | export class GRAPH_EVENTS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 338 | static ON_COMPOSITION_GRAPH_DATA_LOADED = 'onCompositionGraphDataLoaded'; |
| 339 | static ON_DEPLOYMENT_GRAPH_DATA_LOADED = 'onDeploymentGraphDataLoaded'; |
| 340 | static ON_NODE_SELECTED = "onNodeSelected"; |
| 341 | static ON_ZONE_INSTANCE_SELECTED = "onZoneInstanceSelected"; |
| 342 | static ON_GRAPH_BACKGROUND_CLICKED = "onGraphBackgroundClicked"; |
| 343 | static ON_PALETTE_COMPONENT_HOVER_IN = 'onPaletteComponentHoverIn'; |
| 344 | static ON_PALETTE_COMPONENT_HOVER_OUT = 'onPaletteComponentHoverOut'; |
| 345 | static ON_PALETTE_COMPONENT_DRAG_START = 'onPaletteComponentDragStart'; |
| 346 | static ON_PALETTE_COMPONENT_DRAG_ACTION = 'onPaletteComponentDragAction'; |
| 347 | static ON_PALETTE_COMPONENT_DROP = 'onPaletteComponentDrop'; |
| 348 | static ON_PALETTE_COMPONENT_SHOW_POPUP_PANEL = 'onPaletteComponentShowPopupPanel'; |
| 349 | static ON_PALETTE_COMPONENT_HIDE_POPUP_PANEL = 'onPaletteComponentHidePopupPanel'; |
| 350 | static ON_COMPONENT_INSTANCE_NAME_CHANGED = 'onComponentInstanceNameChanged'; |
davsad | ec7af57 | 2021-02-19 17:13:51 +0000 | [diff] [blame] | 351 | static ON_COMPONENT_INSTANCE_REQUIREMENT_EXTERNAL_CHANGED = 'onComponentInstanceRequirementExternalChanged' |
andre.schmid | 2152a9a | 2021-05-05 15:31:04 +0100 | [diff] [blame^] | 352 | static ON_COMPONENT_INSTANCE_CAPABILITY_EXTERNAL_CHANGED = 'onComponentInstanceCapabilityExternalChanged' |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 353 | static ON_ZONE_INSTANCE_NAME_CHANGED = 'onZoneInstanceNameChanged'; |
| 354 | static ON_DELETE_COMPONENT_INSTANCE = 'onDeleteComponentInstance'; |
| 355 | static ON_DELETE_ZONE_INSTANCE = 'onDeleteZoneInstance'; |
| 356 | static ON_DELETE_COMPONENT_INSTANCE_SUCCESS = 'onDeleteComponentInstanceSuccess'; |
| 357 | static ON_DELETE_EDGE = 'onDeleteEdge'; |
| 358 | static ON_INSERT_NODE_TO_UCPE = 'onInsertNodeToUCPE'; |
| 359 | static ON_REMOVE_NODE_FROM_UCPE = 'onRemoveNodeFromUCPE'; |
| 360 | static ON_VERSION_CHANGED = 'onVersionChanged'; |
| 361 | static ON_CREATE_COMPONENT_INSTANCE = 'onCreateComponentInstance'; |
| 362 | static ON_ADD_ZONE_INSTANCE_FROM_PALETTE = 'onAddZoneInstanceFromPalette'; |
| 363 | static ON_CANVAS_TAG_START = 'onCanvasTagStart'; |
| 364 | static ON_CANVAS_TAG_END = 'onCanvasTagEnd'; |
| 365 | static ON_POLICY_INSTANCE_UPDATE = 'onPolicyInstanceUpdate'; |
| 366 | static ON_GROUP_INSTANCE_UPDATE = 'onGroupInstanceUpdate'; |
| 367 | static ON_SERVICE_PATH_CREATED = 'onServicePathCreated'; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 368 | } |
| 369 | |
miriame | c2ce914 | 2019-02-13 15:17:26 +0200 | [diff] [blame] | 370 | export class DEPENDENCY_EVENTS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 371 | static ON_DEPENDENCY_CHANGE = 'onDependencyStatusChange'; |
miriame | c2ce914 | 2019-02-13 15:17:26 +0200 | [diff] [blame] | 372 | } |
| 373 | |
aribeiro | 6c3e382 | 2020-07-02 14:42:40 +0100 | [diff] [blame] | 374 | export class SUBSTITUTION_FILTER_EVENTS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 375 | static ON_SUBSTITUTION_FILTER_CHANGE = 'onSubstitutionFilterChange'; |
aribeiro | 6c3e382 | 2020-07-02 14:42:40 +0100 | [diff] [blame] | 376 | } |
| 377 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 378 | |
| 379 | export class COMPONENT_FIELDS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 380 | static COMPONENT_INSTANCES_PROPERTIES = "componentInstancesProperties"; |
| 381 | static COMPONENT_INSTANCES_INPUTS = "componentInstancesInputs"; |
| 382 | static COMPONENT_INSTANCES_ATTRIBUTES = "componentInstancesAttributes"; |
| 383 | static COMPONENT_INSTANCES_OUTPUTS = "componentInstancesOutputs"; |
| 384 | static COMPONENT_ATTRIBUTES = "attributes"; |
| 385 | static COMPONENT_INSTANCES = "componentInstances"; |
| 386 | static COMPONENT_INSTANCES_RELATION = "componentInstancesRelations"; |
| 387 | static COMPONENT_INPUTS = "inputs"; |
| 388 | static COMPONENT_OUTPUTS = "outputs"; |
| 389 | static COMPONENT_METADATA = "metadata"; |
| 390 | static COMPONENT_DEPLOYMENT_ARTIFACTS = "deploymentArtifacts"; |
| 391 | static COMPONENT_INFORMATIONAL_ARTIFACTS = "artifacts"; |
| 392 | static COMPONENT_PROPERTIES = "properties"; |
| 393 | static COMPONENT_CAPABILITIES = "capabilities"; |
| 394 | static COMPONENT_CAPABILITIES_PROPERTIES = "instanceCapabiltyProperties"; |
| 395 | static COMPONENT_REQUIREMENTS = "requirements"; |
| 396 | static COMPONENT_TOSCA_ARTIFACTS = "toscaArtifacts"; |
| 397 | static COMPONENT_POLICIES = "policies"; |
| 398 | static COMPONENT_GROUPS = "groups"; |
| 399 | static COMPONENT_INTERFACE_OPERATIONS = "interfaces"; |
| 400 | static COMPONENT_INSTANCES_INTERFACES = "componentInstancesInterfaces"; |
| 401 | static COMPONENT_NON_EXCLUDED_GROUPS = "nonExcludedGroups"; |
| 402 | static COMPONENT_NON_EXCLUDED_POLICIES = "nonExcludedPolicies"; |
| 403 | static FORWARDING_PATHS = "forwardingPaths"; |
| 404 | static SERVICE_API_ARTIFACT = "serviceApiArtifacts"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 405 | } |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 406 | |
| 407 | export class SERVICE_FIELDS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 408 | static FORWARDING_PATHS = "forwardingPaths"; |
| 409 | static NODE_FILTER = "nodeFilter"; |
| 410 | static SUBSTITUTION_FILTER = "substitutionFilter"; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 411 | } |
| 412 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 413 | export class API_QUERY_PARAMS { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 414 | static INCLUDE = "include"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 415 | } |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 416 | |
| 417 | export enum TargetOrMemberType { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 418 | COMPONENT_INSTANCES, |
| 419 | GROUPS |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 420 | } |
| 421 | |
| 422 | export class CANVAS_TAG_MODE { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 423 | static POLICY_TAGGING = "policy-tagging"; |
| 424 | static POLICY_TAGGING_HOVER = "policy-tagging-hover"; |
| 425 | static GROUP_TAGGING = "group-tagging"; |
| 426 | static GROUP_TAGGING_HOVER = "group-tagging-hover"; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 427 | } |
ilanap | 94e7778 | 2020-04-01 14:25:35 +0300 | [diff] [blame] | 428 | |
| 429 | export class DROPDOWN_OPTION_TYPE { |
vasraz | 26e5029 | 2021-02-16 17:37:57 +0000 | [diff] [blame] | 430 | static SIMPLE = "Simple"; |
| 431 | static HEADER = "Header"; |
| 432 | static DISABLE = "Disable"; |
| 433 | static HORIZONTAL_LINE = "HorizontalLine"; |
ilanap | 94e7778 | 2020-04-01 14:25:35 +0300 | [diff] [blame] | 434 | } |