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 | 7363f3d | 2018-03-21 12:04:57 +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 | 7363f3d | 2018-03-21 12:04:57 +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 | import {ClickedOutsideDirective} from "../directives/clicked-outside/clicked-outside-directive"; |
| 23 | import {LoaderDirective} from "../directives/loader/loader-directive"; |
| 24 | import {UserHeaderDetailsDirective} from "../directives/user-header-details/user-header-details-directive"; |
| 25 | import {FileTypeDirective} from "../directives/file-type/file-type"; |
| 26 | import {DownloadArtifactDirective} from "../directives/download-artifact/download-artifact"; |
| 27 | import {EllipsisDirective} from "../directives/ellipsis/ellipsis-directive"; |
| 28 | import {InvalidCharactersDirective} from "../directives/invalid-characters/invalid-characters"; |
| 29 | import {ExpandCollapseDirective} from "../directives/utils/expand-collapse/expand-collapse"; |
| 30 | import {PerfectScrollerDirective} from "../directives/perfect-scrollbar/angular-perfect-scrollbar"; |
| 31 | import {SdcModalDirective} from "../directives/modal/sdc-modal"; |
| 32 | import {FileOpenerDirective} from "../directives/file-opener/file-opener"; |
| 33 | import {FileUploadDirective} from "../directives/file-upload/file-upload"; |
| 34 | import {StructureTreeDirective} from "../directives/structure-tree/structure-tree-directive"; |
| 35 | import {SmartTooltipDirective} from "../directives/utils/smart-tooltip/smart-tooltip"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 36 | import {TagDirective} from "../directives/tag/tag-directive"; |
| 37 | import {SdcTagsDirective} from "../directives/utils/sdc-tags/sdc-tags"; |
| 38 | import {SdcKeyboardEventsDirective} from "../directives/utils/sdc-keyboard-events/sdc-keyboard-events"; |
| 39 | import {ExpandCollapseMenuBoxDirective} from "../directives/utils/expand-collapse-menu-box/expand-collaps-menu-box"; |
| 40 | import {PunchOutDirective} from "../directives/punch-out/punch-out"; |
| 41 | import {CustomValidationDirective} from "../directives/custom-validation/custom-validation"; |
| 42 | import {EcompHeaderDirective} from "../directives/ecomp-header/ecomp-header"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 43 | import {EditNamePopoverDirective} from "../directives/edit-name-popover/edit-name-popover-directive"; |
| 44 | import {DataTypeFieldsStructureDirective} from "../directives/property-types/data-type-fields-structure/data-type-fields-structure"; |
| 45 | import {TypeMapDirective} from "../directives/property-types/type-map/type-map-directive"; |
| 46 | import {TypeListDirective} from "../directives/property-types/type-list/type-list-directive"; |
| 47 | import {SelectDataTypeFieldsStructureDirective} from "../directives/select-property-types/select-data-type-fields-structure/select-data-type-fields-structure"; |
| 48 | import {SelectTypeMapDirective} from "../directives/select-property-types/select-type-map/select-type-map-directive"; |
| 49 | import {SelectTypeListDirective} from "../directives/select-property-types/select-type-list/select-type-list-directive"; |
| 50 | import {ValidationOnLoadDirective} from "../directives/utils/validation-on-load/validation-on-load"; |
| 51 | import {InfoTooltipDirective} from "../directives/info-tooltip/info-tooltip"; |
| 52 | import {SdcTabsDirective} from "../directives/sdc-tabs/sdc-tabs-directive"; |
| 53 | import {SdcSingleTabDirective, InnerSdcSingleTabDirective} from "../directives/sdc-tabs/sdc-single-tab/sdc-single-tab-directive"; |
| 54 | import {ExpandCollapseListHeaderDirective} from "../directives/utils/expand-collapse-list-header/expand-collapse-list-header"; |
| 55 | import {JsonExportExcelDirective} from "../directives/export-json-to-excel/export-json-to-excel"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 56 | import {TopProgressDirective} from "../directives/layout/top-progress/top-progress"; |
| 57 | import {CheckboxElementDirective} from "../directives/elements/checkbox/checkbox"; |
| 58 | import {RadiobuttonElementDirective} from "../directives/elements/radiobutton/radiobutton"; |
| 59 | import {OnLastRepeatDirective} from "../directives/events/on-last-repeat/on-last-repeat"; |
| 60 | import {InputRowDirective} from "../directives/inputs-and-properties/inputs/input-row-directive"; |
| 61 | import {PropertyRowDirective} from "../directives/inputs-and-properties/properties/property-row-directive"; |
| 62 | import {NodesFactory} from "../models/graph/nodes/nodes-factory"; |
| 63 | import {LinksFactory} from "../models/graph/graph-links/links-factory"; |
| 64 | import {ImageCreatorService} from "../directives/graphs-v2/image-creator/image-creator.service"; |
| 65 | import {Palette} from "../directives/graphs-v2/palette/palette.directive"; |
| 66 | import {CompositionGraph} from "../directives/graphs-v2/composition-graph/composition-graph.directive"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 67 | import {DeploymentGraph} from "../directives/graphs-v2/deployment-graph/deployment-graph.directive"; |
| 68 | import {CommonGraphUtils} from "../directives/graphs-v2/common/common-graph-utils"; |
| 69 | import {CompositionGraphNodesUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-nodes-utils"; |
| 70 | import {CompositionGraphGeneralUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-general-utils"; |
| 71 | import {CompositionGraphLinkUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-links-utils"; |
| 72 | import {DeploymentGraphGeneralUtils} from "../directives/graphs-v2/deployment-graph/deployment-utils/deployment-graph-general-utils"; |
| 73 | import {CompositionGraphPaletteUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-palette-utils"; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 74 | import {CompositionGraphZoneUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-zone-utils"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 75 | import {MatchCapabilitiesRequirementsUtils} from "../directives/graphs-v2/composition-graph/utils/match-capability-requierment-utils"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 76 | import {CapabilitiesListDirective} from "../directives/capabilities-and-requirements/capability/capabilities-list-directive"; |
| 77 | import {RequirementsListDirective} from "../directives/capabilities-and-requirements/requirement/requirements-list-directive"; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 78 | import {ServicePathGraphUtils} from "../directives/graphs-v2/composition-graph/utils/composition-graph-service-path-utils"; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 79 | import {PreventDoubleClickDirective} from "../directives/prevent-double-click/prevent-double-click"; |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 80 | |
| 81 | let moduleName:string = 'Sdc.Directives'; |
| 82 | let directiveModule:ng.IModule = angular.module(moduleName, []); |
| 83 | |
| 84 | directiveModule.directive('clickedOutside', ClickedOutsideDirective.factory); |
| 85 | directiveModule.directive('loader', LoaderDirective.factory); |
| 86 | directiveModule.directive('userHeaderDetails', UserHeaderDetailsDirective.factory); |
| 87 | directiveModule.directive('ellipsis', EllipsisDirective.factory); |
| 88 | directiveModule.directive('downloadArtifact', DownloadArtifactDirective.factory); |
| 89 | directiveModule.directive('fileType', FileTypeDirective.factory); |
| 90 | directiveModule.directive('invalidCharacters', InvalidCharactersDirective.factory); |
| 91 | directiveModule.directive('perfectScrollbar', PerfectScrollerDirective.factory); |
| 92 | directiveModule.directive('expandCollapse', ExpandCollapseDirective.factory); |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 93 | directiveModule.directive('ng1Modal', SdcModalDirective.factory); |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 94 | directiveModule.directive('fileOpener', FileOpenerDirective.factory); |
| 95 | directiveModule.directive('fileUpload', FileUploadDirective.factory); |
| 96 | directiveModule.directive('structureTree', StructureTreeDirective.factory); |
| 97 | directiveModule.directive('sdcSmartTooltip', SmartTooltipDirective.factory); |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 98 | directiveModule.directive('sdcTag', TagDirective.factory); |
| 99 | directiveModule.directive('sdcTags', SdcTagsDirective.factory); |
| 100 | directiveModule.directive('sdcKeyboardEvents', SdcKeyboardEventsDirective.factory); |
| 101 | directiveModule.directive('expandCollapseMenuBox', ExpandCollapseMenuBoxDirective.factory); |
| 102 | directiveModule.directive('punchOut', PunchOutDirective.factory); |
| 103 | directiveModule.directive('customValidation', CustomValidationDirective.factory); |
| 104 | directiveModule.directive('ecompHeader', EcompHeaderDirective.factory); |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 105 | directiveModule.directive('editNamePopover', EditNamePopoverDirective.factory); |
| 106 | directiveModule.directive('fieldsStructure', DataTypeFieldsStructureDirective.factory); |
| 107 | directiveModule.directive('typeMap', TypeMapDirective.factory); |
| 108 | directiveModule.directive('typeList', TypeListDirective.factory); |
| 109 | directiveModule.directive('selectFieldsStructure', SelectDataTypeFieldsStructureDirective.factory); |
| 110 | directiveModule.directive('selectTypeMap', SelectTypeMapDirective.factory); |
| 111 | directiveModule.directive('selectTypeList', SelectTypeListDirective.factory); |
| 112 | directiveModule.directive('infoTooltip', InfoTooltipDirective.factory); |
| 113 | directiveModule.directive('validationOnLoad', ValidationOnLoadDirective.factory); |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 114 | directiveModule.directive('ng1Tabs', SdcTabsDirective.factory); |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 115 | directiveModule.directive('sdcSingleTab', SdcSingleTabDirective.factory); |
| 116 | directiveModule.directive('innerSdcSingleTab', InnerSdcSingleTabDirective.factory); |
| 117 | directiveModule.directive('jsonExportExcel', JsonExportExcelDirective.factory); |
| 118 | directiveModule.directive('expandCollapseListHeader', ExpandCollapseListHeaderDirective.factory); |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 119 | directiveModule.directive('preventDoubleClick', PreventDoubleClickDirective.factory); |
| 120 | // |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 121 | // |
| 122 | // // Layouts |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 123 | directiveModule.directive('topProgress', TopProgressDirective.factory); |
| 124 | // |
| 125 | // // Elements |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 126 | directiveModule.directive('ng1Checkbox', CheckboxElementDirective.factory); |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 127 | directiveModule.directive('sdcRadioButton', RadiobuttonElementDirective.factory); |
| 128 | // |
| 129 | // // Events |
| 130 | directiveModule.directive('onLastRepeat', OnLastRepeatDirective.factory); |
| 131 | // |
| 132 | // //Inputs & Properties |
| 133 | directiveModule.directive('inputRow', InputRowDirective.factory); |
| 134 | directiveModule.directive('propertyRow', PropertyRowDirective.factory); |
| 135 | // |
| 136 | // |
| 137 | // // ------------------------------------------- Composition & Deployment Graphs------------------------------------------// |
| 138 | // |
| 139 | // //Util service for Graph |
| 140 | directiveModule.service('NodesFactory', NodesFactory); |
| 141 | directiveModule.service('LinksFactory', LinksFactory); |
| 142 | directiveModule.service('ImageCreatorService', ImageCreatorService); |
| 143 | // |
| 144 | // //composition |
| 145 | directiveModule.directive('palette', Palette.factory); |
| 146 | directiveModule.directive('compositionGraph', CompositionGraph.factory); |
Anjali walsatwar | 3527b3e | 2018-09-26 18:53:06 +0530 | [diff] [blame] | 147 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 148 | // |
| 149 | // //deployment |
| 150 | directiveModule.directive('deploymentGraph', DeploymentGraph.factory); |
| 151 | // |
| 152 | // //Graph Utils - Common |
| 153 | directiveModule.service('CommonGraphUtils', CommonGraphUtils); |
| 154 | // |
| 155 | // //Composition Graph Utils |
| 156 | directiveModule.service('CompositionGraphNodesUtils', CompositionGraphNodesUtils); |
| 157 | directiveModule.service('CompositionGraphGeneralUtils', CompositionGraphGeneralUtils); |
| 158 | directiveModule.service('CompositionGraphLinkUtils', CompositionGraphLinkUtils); |
| 159 | directiveModule.service('CompositionGraphPaletteUtils', CompositionGraphPaletteUtils); |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 160 | directiveModule.service('CompositionGraphZoneUtils', CompositionGraphZoneUtils); |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 161 | directiveModule.service('MatchCapabilitiesRequirementsUtils', MatchCapabilitiesRequirementsUtils); |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 162 | directiveModule.service('ServicePathGraphUtils', ServicePathGraphUtils); |
| 163 | |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 164 | // |
| 165 | // //Deployment Graph Utils |
| 166 | directiveModule.service('DeploymentGraphGeneralUtils', DeploymentGraphGeneralUtils); |
| 167 | |
| 168 | |
| 169 | //Compoisiton right tab directives |
| 170 | directiveModule.directive('capabilitiesList', CapabilitiesListDirective.factory); |
| 171 | directiveModule.directive('requirementsList', RequirementsListDirective.factory); |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 172 | |
| 173 | |
| 174 | // *** NG2 Components (downgraded) *** // |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 175 | import { downgradeComponent } from "@angular/upgrade/static"; |
| 176 | import { MenuListNg2Component } from "../ng2/components/downgrade-wrappers/menu-list-ng2/menu-list-ng2.component"; |
| 177 | import { TopNavComponent } from "../ng2/components/layout/top-nav/top-nav.component"; |
| 178 | import { ZoneContainerComponent } from "../ng2/components/ui/canvas-zone/zone-container.component"; |
| 179 | import { ZoneInstanceComponent } from "../ng2/components/ui/canvas-zone/zone-instance/zone-instance.component"; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 180 | import { CompositionPanelComponent } from 'app/ng2/pages/composition/panel/panel.component'; |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 181 | import { PropertiesAssignmentComponent } from "../ng2/pages/properties-assignment/properties-assignment.page.component"; |
| 182 | import { SearchWithAutoCompleteComponent } from "../ng2/components/ui/search-with-autocomplete/search-with-autocomplete.component"; |
| 183 | import { PalettePopupPanelComponent } from "../ng2/components/ui/palette-popup-panel/palette-popup-panel.component"; |
| 184 | import { ServicePathComponent } from '../ng2/components/logic/service-path/service-path.component'; |
| 185 | import { ServicePathSelectorComponent } from '../ng2/components/logic/service-path-selector/service-path-selector.component'; |
ojasdubey | 4192e3c | 2019-03-18 14:15:03 +0530 | [diff] [blame] | 186 | import { ServiceConsumptionComponent } from '../ng2/components/logic/service-consumption/service-consumption.component'; |
miriame | c2ce914 | 2019-02-13 15:17:26 +0200 | [diff] [blame] | 187 | import { ServiceDependenciesComponent } from '../ng2/components/logic/service-dependencies/service-dependencies.component'; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 188 | import { MultilineEllipsisComponent } from "../ng2/shared/multiline-ellipsis/multiline-ellipsis.component"; |
Arielk | 802bd2a | 2018-04-16 15:37:39 +0300 | [diff] [blame] | 189 | import { InterfaceOperationComponent } from '../ng2/pages/interface-operation/interface-operation.page.component'; |
| 190 | import { PluginFrameComponent } from "../ng2/components/ui/plugin/plugin-frame.component"; |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 191 | import { TileComponent } from "../ng2/components/ui/tile/tile.component"; |
| 192 | |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 193 | |
| 194 | directiveModule.directive('menuListNg2', downgradeComponent({ |
| 195 | component: MenuListNg2Component, |
| 196 | inputs: ['props'] |
| 197 | }) as angular.IDirectiveFactory); |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 198 | |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 199 | directiveModule.directive('topNav', downgradeComponent({ |
| 200 | component: TopNavComponent, |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 201 | inputs: ['version', 'menuModel', 'topLvlSelectedIndex', 'hideSearch', 'searchTerm', 'notificationIconCallback', 'unsavedChanges', 'unsavedChangesCallback'], |
Tal Gitelman | 51d50f0 | 2017-12-10 18:55:03 +0200 | [diff] [blame] | 202 | outputs: ['searchTermChange'] |
| 203 | }) as ng.IDirectiveFactory); |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 204 | |
| 205 | directiveModule.directive('ng2ZoneContainer', downgradeComponent({ |
| 206 | component: ZoneContainerComponent, |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 207 | inputs: ['title', 'count', 'type', 'visible', 'minimized'], |
| 208 | outputs: ['minimize', 'backgroundClick'] |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 209 | }) as angular.IDirectiveFactory); |
| 210 | |
| 211 | directiveModule.directive('ng2ZoneInstance', downgradeComponent({ |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 212 | component: ZoneInstanceComponent, |
| 213 | inputs: ['zoneInstance', 'isActive', 'activeInstanceMode', 'defaultIconText', 'isViewOnly', 'hidden', 'forceSave'], |
| 214 | outputs: ['modeChange', 'tagHandleClick', 'assignmentSaveStart', 'assignmentSaveComplete'] |
| 215 | }) as angular.IDirectiveFactory); |
| 216 | |
| 217 | directiveModule.directive('ng2CompositionPanel', downgradeComponent({ |
| 218 | component: CompositionPanelComponent, |
| 219 | inputs: ['isViewOnly', 'isLoading', 'isCertified', 'selectedZoneInstanceId', 'selectedZoneInstanceType', 'selectedZoneInstanceName', 'topologyTemplate'], |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 220 | }) as angular.IDirectiveFactory); |
| 221 | |
| 222 | directiveModule.directive('propertiesAssignment', downgradeComponent({ |
| 223 | component: PropertiesAssignmentComponent |
| 224 | }) as angular.IDirectiveFactory); |
| 225 | |
| 226 | directiveModule.directive('ng2SearchWithAutocomplete', downgradeComponent({ |
| 227 | component: SearchWithAutoCompleteComponent, |
| 228 | inputs: ['searchPlaceholder', 'searchBarClass', 'autoCompleteValues'], |
| 229 | outputs: ['searchChanged', 'searchButtonClicked'] |
| 230 | }) as angular.IDirectiveFactory); |
| 231 | |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 232 | directiveModule.directive('ng2PalettePopupPanel', downgradeComponent({ |
| 233 | component: PalettePopupPanelComponent, |
| 234 | inputs: [], |
| 235 | outputs: [] |
| 236 | }) as angular.IDirectiveFactory); |
| 237 | |
| 238 | directiveModule.directive('ng2ServicePath', downgradeComponent({ |
| 239 | component: ServicePathComponent, |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 240 | inputs: ['onCreate', 'service', 'isViewOnly'], |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame] | 241 | outputs: [] |
| 242 | }) as angular.IDirectiveFactory); |
| 243 | |
| 244 | directiveModule.directive('ng2ServicePathSelector', downgradeComponent({ |
| 245 | component: ServicePathSelectorComponent, |
| 246 | inputs: ['drawPath', 'deletePaths', 'service', 'selectedPathId'], |
| 247 | outputs: [] |
| 248 | }) as angular.IDirectiveFactory); |
Idan Amit | 7363f3d | 2018-03-21 12:04:57 +0200 | [diff] [blame] | 249 | |
ojasdubey | 4192e3c | 2019-03-18 14:15:03 +0530 | [diff] [blame] | 250 | directiveModule.directive('ng2ServiceConsumption', downgradeComponent({ |
| 251 | component: ServiceConsumptionComponent, |
| 252 | inputs: ['parentService', 'selectedService', 'selectedServiceInstanceId', 'instancesMappedList','parentServiceInputs', 'readonly'], |
| 253 | outputs: [] |
| 254 | }) as angular.IDirectiveFactory); |
| 255 | |
miriame | c2ce914 | 2019-02-13 15:17:26 +0200 | [diff] [blame] | 256 | directiveModule.directive('ng2ServiceDependencies', downgradeComponent({ |
| 257 | component: ServiceDependenciesComponent, |
| 258 | inputs: ['compositeService', 'currentServiceInstance', 'selectedInstanceProperties', 'selectedInstanceSiblings', 'selectedInstanceConstraints', 'readonly'], |
| 259 | outputs: ['updateRulesListEvent', 'loadRulesListEvent','dependencyStatus'] |
| 260 | }) as angular.IDirectiveFactory); |
| 261 | |
Arielk | aefe391 | 2018-10-14 16:50:17 +0300 | [diff] [blame] | 262 | directiveModule.directive('interfaceOperation', downgradeComponent({ |
Arielk | 802bd2a | 2018-04-16 15:37:39 +0300 | [diff] [blame] | 263 | component: InterfaceOperationComponent, |
Arielk | bce8986 | 2018-05-30 14:52:00 +0300 | [diff] [blame] | 264 | inputs: ['component', 'readonly'], |
Arielk | 802bd2a | 2018-04-16 15:37:39 +0300 | [diff] [blame] | 265 | outputs: [] |
| 266 | }) as angular.IDirectiveFactory); |
| 267 | |
Michael Lando | 5b59349 | 2018-07-29 16:13:45 +0300 | [diff] [blame] | 268 | directiveModule.directive('ng2MultilineEllipsis', downgradeComponent({ |
| 269 | component: MultilineEllipsisComponent, |
| 270 | inputs: ['lines', 'lineHeight', 'className'], |
| 271 | outputs: ['hasEllipsisChanged'] |
| 272 | }) as angular.IDirectiveFactory); |
| 273 | |
| 274 | directiveModule.directive('ng2UiTile', downgradeComponent({ |
| 275 | component: TileComponent, |
| 276 | inputs: ['component'], |
| 277 | outputs: ['onTileClick'] |
| 278 | }) as angular.IDirectiveFactory); |
| 279 | |
Idan Amit | 7363f3d | 2018-03-21 12:04:57 +0200 | [diff] [blame] | 280 | directiveModule.directive('pluginFrame', downgradeComponent( { |
| 281 | component: PluginFrameComponent, |
| 282 | inputs: ['plugin', 'queryParams'], |
| 283 | outputs: ['onLoadingDone'] |
| 284 | }) as angular.IDirectiveFactory); |