Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
a8d2ae8c
Commit
a8d2ae8c
authored
Dec 05, 2019
by
GD-A-150752
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
message-engine-hiring-team UI-fix.
parent
8e034309
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
76 deletions
+111
-76
message-engine-applicant-view.component.html
...plicant-view/message-engine-applicant-view.component.html
+11
-19
message-engine-applicant-view.component.scss
...plicant-view/message-engine-applicant-view.component.scss
+80
-53
message-engine-applicant-view.component.ts
...applicant-view/message-engine-applicant-view.component.ts
+18
-3
custom.scss
frontend/angular/src/assets/css/custom.scss
+2
-1
No files found.
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.html
View file @
a8d2ae8c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
{{jobApplication?.Candidate?.User?.Name}}
{{jobApplication?.Candidate?.User?.Name}}
</div>
</div>
<a
class=
"arrow-btn-blue ml-0 ng-star-inserted minimize"
(
click
)="
minimize
.
emit
()"
>
<a
class=
"arrow-btn-blue ml-0 ng-star-inserted minimize"
(
click
)="
minimize
.
emit
()"
>
<
img
src=
"assets/images/arrow-left-prev_blue.svg"
alt=
"Minimize"
title=
"Minimize"
>
<
span
class=
"ui-icon-close"
title=
"Close"
></span
>
</a>
</a>
</div>
</div>
<div
*
ngIf=
"!embedded"
class=
"main-tab-template pl-1"
>
<div
*
ngIf=
"!embedded"
class=
"main-tab-template pl-1"
>
...
@@ -75,26 +75,19 @@
...
@@ -75,26 +75,19 @@
<button
class=
"ql-italic"
aria-label=
"Italic"
></button>
<button
class=
"ql-italic"
aria-label=
"Italic"
></button>
<button
class=
"ql-underline"
aria-label=
"Underline"
></button>
<button
class=
"ql-underline"
aria-label=
"Underline"
></button>
</span>
</span>
<button
(
click
)="
triggerUpload
()"
class=
"attachment-icon"
>
<span
class=
"ui-icon-attach-file"
></span>
</button>
</p-header>
</p-header>
</p-editor>
</p-editor>
</div>
</div>
<div
class=
"ui-g-3"
>
<div
class=
"ui-g-3"
>
<app-select-2
*
ngIf=
"sentViaEnum && embedded"
(
valChange
)="
updateSentVia
($
event
)"
<p-splitButton
[
class
.
non-embed
]="!
embedded
"
label=
"Send"
icon=
"ui-icon-send"
[
data
]="
sentViaEnum
"
(
onClick
)="
saveEngineApplicantView
()"
[
value
]="
Message
.
SentVia
"
[
model
]="
items
"
>
fieldLabel=
"Description"
>
</p-splitButton>
</app-select-2>
<div
class=
"buttons-wrapper"
>
<div
class=
"buttons-wrapper"
>
<button
class=
"sendBtn"
(
click
)="
saveEngineApplicantView
()"
<button
*
ngIf=
"embedded"
type=
"button"
pButton
label=
"Mark as read"
[
disabled
]="
showLoader
"
>
<svg
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
x=
"0px"
y=
"0px"
viewBox=
"0 0 512 512"
enable-background=
"new 0 0 512 512"
xml:space=
"preserve"
>
<path
id=
"paper-plane-icon"
d=
"M462,54.955L355.371,437.187l-135.92-128.842L353.388,167l-179.53,124.074L50,260.973L462,54.955z
M202.992,332.528v124.517l58.738-67.927L202.992,332.528z"
></path>
</svg>
</button>
<button
*
ngIf=
"embedded"
type=
"button"
pButton
label=
"Read"
icon=
"ui-icon-check"
icon=
"ui-icon-check"
(
click
)="
markAsRead
()"
></button>
(
click
)="
markAsRead
()"
></button>
</div>
</div>
...
@@ -102,8 +95,7 @@ M202.992,332.528v124.517l58.738-67.927L202.992,332.528z"></path>
...
@@ -102,8 +95,7 @@ M202.992,332.528v124.517l58.738-67.927L202.992,332.528z"></path>
name=
"File"
[
withCredentials
]="
true
"
name=
"File"
[
withCredentials
]="
true
"
id=
"File"
url=
"{{apiUrl}}uploadFile"
auto=
"true"
id=
"File"
url=
"{{apiUrl}}uploadFile"
auto=
"true"
(
onUpload
)="
onUpload
($
event
)"
[
disabled
]="
showLoader
"
(
onUpload
)="
onUpload
($
event
)"
[
disabled
]="
showLoader
"
chooseLabel=
"Browse"
chooseLabel=
"Browse"
#
uploader
multiple=
"multiple"
>
multiple=
"multiple"
accept=
"image/*"
maxFileSize=
"1000000"
>
<ng-template
pTemplate=
"content"
>
<ng-template
pTemplate=
"content"
>
<ul
*
ngIf=
"Message.Attachments.length"
>
<ul
*
ngIf=
"Message.Attachments.length"
>
<li
*
ngFor=
"let file of Message.Attachments"
>
{{file.File.Name}}
</li>
<li
*
ngFor=
"let file of Message.Attachments"
>
{{file.File.Name}}
</li>
...
@@ -129,7 +121,7 @@ M202.992,332.528v124.517l58.738-67.927L202.992,332.528z"></path>
...
@@ -129,7 +121,7 @@ M202.992,332.528v124.517l58.738-67.927L202.992,332.528z"></path>
Please select an application and a user...
Please select an application and a user...
</div>
</div>
<a
class=
"arrow-btn-blue ml-0 ng-star-inserted minimize"
*
ngIf=
"embedded"
(
click
)="
minimize
.
emit
()"
>
<a
class=
"arrow-btn-blue ml-0 ng-star-inserted minimize"
*
ngIf=
"embedded"
(
click
)="
minimize
.
emit
()"
>
<
img
src=
"assets/images/arrow-left-prev_blue.svg"
alt=
"Minimize"
title=
"Minimize"
>
<
span
class=
"ui-icon-close"
title=
"Close"
></span
>
</a>
</a>
</div>
</div>
</div>
</div>
...
...
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.scss
View file @
a8d2ae8c
...
@@ -91,64 +91,34 @@ a {
...
@@ -91,64 +91,34 @@ a {
}
}
.attachment-icon
{
.attachment-icon
{
margin-top
:
25px
;
float
:
right
!
important
;
span
{
font-size
:
large
;
color
:
#444
;
}
}
}
.buttons-wrapper
{
.buttons-wrapper
{
margin-top
:
0
.5em
;
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
margin-top
:
10px
;
justify-content
:
space-between
;
:last-child
{
width
:
60%
;
min-height
:
45px
;
display
:
inline-block
;
cursor
:
pointer
;
border-radius
:
100px
;
}
}
.sendBtn
{
button
{
border-style
:
none
;
border-radius
:
60px
;
color
:
#fff
;
overflow
:
visible
;
position
:
relative
;
position
:
relative
;
width
:
33%
;
border-style
:
none
;
cursor
:
pointer
;
min-width
:
148px
;
border-radius
:
100px
;
height
:
50px
;
background-color
:
#667281
;
background-color
:
#03a0e7
;
display
:
inline-block
;
box-shadow
:
inset
1px
0
0
0
#e5e8eb
;
min-height
:
45px
;
margin-right
:
0
.5em
;
text-transform
:
uppercase
;
color
:
white
;
border-color
:
#667281
;
::ng-deep
{
p
{
.ui-button-text
{
color
:
#fff
;
margin-top
:
4px
;
margin
:
0
;
font-size
:
12px
;
font-weight
:
600
;
}
&
:hover
{
svg
{
transform
:
rotate
(
10deg
);
transition
:
transform
.15s
;
}
}
}
}
svg
{
position
:
absolute
;
top
:
0
;
right
:
30%
;
height
:
30px
;
width
:
auto
;
transition
:
transform
.15s
;
path
{
fill
:
#fff
;
}
}
}
}
}
...
@@ -164,9 +134,66 @@ a {
...
@@ -164,9 +134,66 @@ a {
width
:
20px
;
width
:
20px
;
line-height
:
normal
;
line-height
:
normal
;
img
{
span
{
height
:
10px
;
font-size
:
initial
;
width
:
10px
;
}
}
}
.message-button
{
border-radius
:
10px
;
}
.non-embed
{
::ng-deep
{
.ui-splitbutton-menubutton
{
display
:
none
;
}
}
.ui-splitbutton
.ui-button
{
&
:first-child
{
border-radius
:
20px
;
width
:
100%
!
important
;
}
}
}
}
::ng-deep
{
.ui-fluid
.ui-splitbutton
.ui-button
{
background-color
:
rgb
(
3
,
160
,
231
)
!
important
;
opacity
:
1
!
important
;
&
:first-child
{
width
:
calc
(
100%
-
2
.2em
)
!
important
;
.ui-icon-send
{
transition
:
0
.3s
all
ease
;
}
&
:hover
{
.ui-icon-send
{
transform
:
rotate
(
-45deg
);
}
}
}
&
.ui-splitbutton-menubutton
{
margin-top
:
0
;
}
}
.ui-fileupload-buttonbar
{
display
:
none
;
}
.ui-fileupload-content
{
margin-top
:
0
.5em
;
border-radius
:
10px
;
}
.ql-editor
{
min-height
:
85px
;
}
}
}
}
frontend/angular/src/app/components/message-engine-applicant-view/message-engine-applicant-view.component.ts
View file @
a8d2ae8c
import
{
Component
,
EventEmitter
,
Input
,
OnInit
,
Output
,
ViewChild
}
from
'@angular/core'
;
import
{
Component
,
EventEmitter
,
Input
,
OnInit
,
Output
,
ViewChild
}
from
'@angular/core'
;
import
{
NgForm
}
from
'@angular/forms'
;
import
{
NgForm
}
from
'@angular/forms'
;
import
{
ActivatedRoute
,
NavigationEnd
,
Router
}
from
'@angular/router'
;
import
{
ActivatedRoute
,
NavigationEnd
,
Router
}
from
'@angular/router'
;
import
{
MenuItem
}
from
'primeng/api'
;
import
{
Editor
}
from
'primeng/editor'
;
import
{
Editor
}
from
'primeng/editor'
;
import
{
FileUpload
}
from
'primeng/fileupload'
;
import
{
Subscription
}
from
'rxjs/Subscription'
;
import
{
Subscription
}
from
'rxjs/Subscription'
;
import
{
environment
}
from
'../../../environments/environment'
;
import
{
environment
}
from
'../../../environments/environment'
;
...
@@ -33,6 +35,8 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -33,6 +35,8 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
@
Output
()
minimize
:
EventEmitter
<
any
>
=
new
EventEmitter
<
any
>
();
@
Output
()
minimize
:
EventEmitter
<
any
>
=
new
EventEmitter
<
any
>
();
@
ViewChild
(
'message'
)
messageEditor
:
Editor
;
@
ViewChild
(
'message'
)
messageEditor
:
Editor
;
@
ViewChild
(
'form'
)
form
:
NgForm
;
@
ViewChild
(
'form'
)
form
:
NgForm
;
@
ViewChild
(
'uploader'
)
uploader
:
FileUpload
;
items
:
Array
<
MenuItem
>
;
createdObjs
=
{};
createdObjs
=
{};
updatedObjs
=
{};
updatedObjs
=
{};
deletedObjs
=
{};
deletedObjs
=
{};
...
@@ -66,6 +70,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -66,6 +70,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
}
}
ngOnInit
():
void
{
ngOnInit
():
void
{
this
.
utilsService
.
resetCounter
();
this
.
utilsService
.
resetCounter
();
this
.
showLoader
=
true
;
this
.
showLoader
=
true
;
...
@@ -73,6 +78,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -73,6 +78,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
this
.
appService
.
getTypes
(
'SentVia'
)
this
.
appService
.
getTypes
(
'SentVia'
)
.
subscribe
((
data
:
Array
<
SentViaEnum
>
)
=>
{
.
subscribe
((
data
:
Array
<
SentViaEnum
>
)
=>
{
this
.
sentViaEnum
=
data
;
this
.
sentViaEnum
=
data
;
this
.
items
=
this
.
sentViaEnum
.
map
(
elem
=>
({
label
:
elem
.
Description
,
command
:
()
=>
this
.
Message
.
SentVia
=
elem
}));
// For Hiring Team or Applicant
// For Hiring Team or Applicant
const
service
=
this
.
embedded
?
this
.
adminPortalLayoutService
:
this
.
applicantPortalLayoutService
;
const
service
=
this
.
embedded
?
this
.
adminPortalLayoutService
:
this
.
applicantPortalLayoutService
;
if
(
service
.
userData
)
{
if
(
service
.
userData
)
{
...
@@ -162,6 +171,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -162,6 +171,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
}
}
saveEngineApplicantView
():
void
{
saveEngineApplicantView
():
void
{
if
(
this
.
showLoader
)
{
return
;
}
this
.
utilsService
.
clearErrorMessages
();
this
.
utilsService
.
clearErrorMessages
();
if
(
this
.
form
.
invalid
||
this
.
IsMessageEmpty
())
{
if
(
this
.
form
.
invalid
||
this
.
IsMessageEmpty
())
{
...
@@ -216,8 +229,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -216,8 +229,10 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
* Helper functions
* Helper functions
*/
*/
updateSentVia
(
$event
):
void
{
triggerUpload
():
void
{
this
.
Message
.
SentVia
=
this
.
sentViaEnum
.
find
(
opt
=>
opt
.
Value
===
$event
.
Value
);
// @ts-ignore
this
.
uploader
.
el
.
nativeElement
.
getElementsByTagName
(
'input'
)[
0
]
.
click
();
}
}
setEditorClass
():
void
{
setEditorClass
():
void
{
...
@@ -239,7 +254,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
...
@@ -239,7 +254,7 @@ export class MessageEngineApplicantViewComponent extends BaseComponent implement
}
}
editor
[
0
].
classList
.
add
(
'form-control'
);
editor
[
0
].
classList
.
add
(
'form-control'
);
editor
[
0
].
classList
.
add
(
'editor'
);
//
editor[0].classList.add('editor');
editor
[
0
].
innerHTML
=
''
;
editor
[
0
].
innerHTML
=
''
;
},
0
);
},
0
);
...
...
frontend/angular/src/assets/css/custom.scss
View file @
a8d2ae8c
...
@@ -308,7 +308,8 @@
...
@@ -308,7 +308,8 @@
&
.ui-dialog-draggable
{
&
.ui-dialog-draggable
{
left
:
auto
!
important
;
left
:
auto
!
important
;
right
:
10px
!
important
;
right
:
10px
!
important
;
height
:
600px
!
important
;
min-height
:
560px
!
important
;
max-height
:
600px
!
important
;
bottom
:
0
!
important
;
bottom
:
0
!
important
;
top
:
auto
!
important
;
top
:
auto
!
important
;
width
:
690px
!
important
;
width
:
690px
!
important
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment