From 548c5a220333c7cd666b861e737bff0b45461f18 Mon Sep 17 00:00:00 2001 From: "Stone, Avi (as206k)" Date: Sun, 3 Jun 2018 13:12:12 +0300 Subject: Update FE project Update FE to latest version so that fe can run on docker Change-Id: I9c5dee756b567dbe64fac6d3d6fd89362813bdcc Issue-ID: SDC-1359 Signed-off-by: Stone, Avi (as206k) --- .../app/rule-engine/action/action.component.html | 154 +++++++++++++++++---- .../app/rule-engine/action/action.component.scss | 23 ++- .../src/app/rule-engine/action/action.component.ts | 3 + 3 files changed, 148 insertions(+), 32 deletions(-) (limited to 'public/src/app/rule-engine/action') diff --git a/public/src/app/rule-engine/action/action.component.html b/public/src/app/rule-engine/action/action.component.html index b41ab82..250af34 100644 --- a/public/src/app/rule-engine/action/action.component.html +++ b/public/src/app/rule-engine/action/action.component.html @@ -1,56 +1,151 @@
+
{{action.actionType | uppercase}}
+ - + + - + -
- -
-
+ +
-
-
- From Format - +
+
+ Title +
+
+ + +
-
-
- To Format - +
+
+ Log Text +
-
-
-
-
- From Time-zone - +
+ + +
+
+
+
+
+ From Format + +
+
+
+
+
+
+ To Format + +
+
+
+
+ +
+
+
+
+ From Time-zone + +
+
+
+
+
+
+ To Time-zone + +
+
-
-
-
- To Time-zone - + + +
+ +
+
+
+ +
+ Find what + +
+ +
+
+ +
+ +
+
+
+ +
+ Replace with + +
+ +
+
+ +
+
+ + +
+ +
+
+
+
+ Log Name + +
+
+
+
+ +
+
+
+
+ Log Level +
+
@@ -90,8 +185,8 @@ - @@ -102,8 +197,9 @@
- Add Row
diff --git a/public/src/app/rule-engine/action/action.component.scss b/public/src/app/rule-engine/action/action.component.scss index f903db4..fc36380 100644 --- a/public/src/app/rule-engine/action/action.component.scss +++ b/public/src/app/rule-engine/action/action.component.scss @@ -4,7 +4,7 @@ width: 100%; height: 100%; justify-content: space-between; - margin: 10px 0; + margin-top: 10px; .black { color: black; } @@ -25,9 +25,12 @@ justify-content: center; min-width: 142px; } + .center-content-item { + width: 100%; + } } .map-container { - padding-left: 115px; + padding-left: 172px; .default { display: flex; width: 100%; @@ -82,7 +85,7 @@ display: flex; flex-direction: column; padding: 0 10px; - .from-conatiner { + .from-container { display: flex; flex-direction: column; align-items: flex-start; @@ -114,3 +117,17 @@ color: #009fdb; } } + +.action-container { + display: flex; + flex-direction: column; + align-items: flex-end; +} +.action-item { + width: 100%; + margin-top: 0.5em; +} +.label .action-item-label { + padding: 0 5px; + width: 110px; +} diff --git a/public/src/app/rule-engine/action/action.component.ts b/public/src/app/rule-engine/action/action.component.ts index 9c7023f..1a62e1a 100644 --- a/public/src/app/rule-engine/action/action.component.ts +++ b/public/src/app/rule-engine/action/action.component.ts @@ -27,9 +27,12 @@ export class ActionComponent implements OnInit { if (this.action.from !== '') { console.log('Action %o', this.action); this.fromInstance.updateMode(this.action.from); + } + if (this.action.target !== '') { this.targetInstance.updateMode(this.action); } } + updateFrom(data) { this.action.from = data; } -- cgit 1.2.3-korg