@posiwise/dashboard-module 0.0.86 → 0.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/index.mjs +16 -0
- package/esm2022/lib/customizer/customizer.component.mjs +17 -0
- package/esm2022/lib/dashboard.module.mjs +101 -0
- package/esm2022/lib/faq/faq.component.mjs +108 -0
- package/esm2022/lib/faq-details/faq-details.component.mjs +38 -0
- package/esm2022/lib/footer/footer.component.mjs +22 -0
- package/esm2022/lib/home/home.component.mjs +79 -0
- package/esm2022/lib/navbar/navbar.component.mjs +162 -0
- package/esm2022/lib/notifications-page/current-notifications/current-notifications.component.mjs +58 -0
- package/esm2022/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.mjs +73 -0
- package/esm2022/lib/notifications-page/notifications-page.component.mjs +14 -0
- package/esm2022/lib/search/search.component.mjs +48 -0
- package/esm2022/lib/sidebar/sidebar-routes.config.mjs +350 -0
- package/esm2022/lib/sidebar/sidebar.metadata.mjs +2 -0
- package/esm2022/lib/user-feedback/user-feedback.component.mjs +73 -0
- package/esm2022/lib/user-notifications/user-notifications.component.mjs +65 -0
- package/esm2022/posiwise-dashboard-module.mjs +5 -0
- package/fesm2022/posiwise-dashboard-module.mjs +1118 -0
- package/fesm2022/posiwise-dashboard-module.mjs.map +1 -0
- package/{src/index.ts → index.d.ts} +0 -1
- package/lib/customizer/customizer.component.d.ts +7 -0
- package/lib/dashboard.module.d.ts +28 -0
- package/lib/faq/faq.component.d.ts +37 -0
- package/lib/faq-details/faq-details.component.d.ts +16 -0
- package/lib/footer/footer.component.d.ts +12 -0
- package/lib/home/home.component.d.ts +18 -0
- package/lib/navbar/navbar.component.d.ts +35 -0
- package/lib/notifications-page/current-notifications/current-notifications.component.d.ts +17 -0
- package/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.d.ts +18 -0
- package/lib/notifications-page/notifications-page.component.d.ts +5 -0
- package/lib/search/search.component.d.ts +24 -0
- package/lib/sidebar/sidebar-routes.config.d.ts +64 -0
- package/{src/lib/sidebar/sidebar.metadata.ts → lib/sidebar/sidebar.metadata.d.ts} +0 -1
- package/lib/user-feedback/user-feedback.component.d.ts +24 -0
- package/lib/user-notifications/user-notifications.component.d.ts +20 -0
- package/package.json +23 -10
- package/.eslintrc.json +0 -21
- package/ng-package.json +0 -15
- package/project.json +0 -72
- package/src/lib/customizer/customizer.component.html +0 -184
- package/src/lib/customizer/customizer.component.scss +0 -101
- package/src/lib/customizer/customizer.component.ts +0 -13
- package/src/lib/dashboard.module.ts +0 -63
- package/src/lib/faq/faq.component.html +0 -110
- package/src/lib/faq/faq.component.scss +0 -58
- package/src/lib/faq/faq.component.spec.ts +0 -143
- package/src/lib/faq/faq.component.ts +0 -144
- package/src/lib/faq-details/faq-details.component.html +0 -21
- package/src/lib/faq-details/faq-details.component.scss +0 -3
- package/src/lib/faq-details/faq-details.component.spec.ts +0 -69
- package/src/lib/faq-details/faq-details.component.ts +0 -38
- package/src/lib/footer/footer.component.html +0 -14
- package/src/lib/footer/footer.component.spec.ts +0 -42
- package/src/lib/footer/footer.component.ts +0 -24
- package/src/lib/home/home.component.html +0 -93
- package/src/lib/home/home.component.scss +0 -0
- package/src/lib/home/home.component.spec.ts +0 -69
- package/src/lib/home/home.component.ts +0 -88
- package/src/lib/navbar/navbar.component.html +0 -189
- package/src/lib/navbar/navbar.component.scss +0 -92
- package/src/lib/navbar/navbar.component.spec.ts +0 -76
- package/src/lib/navbar/navbar.component.ts +0 -198
- package/src/lib/notifications-page/current-notifications/current-notifications.component.html +0 -61
- package/src/lib/notifications-page/current-notifications/current-notifications.component.spec.ts +0 -57
- package/src/lib/notifications-page/current-notifications/current-notifications.component.ts +0 -63
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.html +0 -65
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.spec.ts +0 -71
- package/src/lib/notifications-page/dismissed-notifications/dismissed-notifications.component.ts +0 -79
- package/src/lib/notifications-page/notifications-page.component.html +0 -24
- package/src/lib/notifications-page/notifications-page.component.scss +0 -28
- package/src/lib/notifications-page/notifications-page.component.spec.ts +0 -26
- package/src/lib/notifications-page/notifications-page.component.ts +0 -8
- package/src/lib/search/search.component.html +0 -215
- package/src/lib/search/search.component.scss +0 -98
- package/src/lib/search/search.component.spec.ts +0 -64
- package/src/lib/search/search.component.ts +0 -50
- package/src/lib/sidebar/sidebar-routes.config.ts +0 -355
- package/src/lib/user-feedback/user-feedback.component.html +0 -53
- package/src/lib/user-feedback/user-feedback.component.scss +0 -18
- package/src/lib/user-feedback/user-feedback.component.spec.ts +0 -54
- package/src/lib/user-feedback/user-feedback.component.ts +0 -83
- package/src/lib/user-notifications/user-notifications.component.html +0 -21
- package/src/lib/user-notifications/user-notifications.component.scss +0 -21
- package/src/lib/user-notifications/user-notifications.component.spec.ts +0 -47
- package/src/lib/user-notifications/user-notifications.component.ts +0 -74
- package/tsconfig.json +0 -30
- package/tsconfig.lib.json +0 -19
- package/tsconfig.lib.prod.json +0 -9
- package/tsconfig.spec.json +0 -11
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
<div class="container-fluid dashboard-card overflow-hidden">
|
|
2
|
-
<div class="dashboard">
|
|
3
|
-
<div class="dashboard-body">
|
|
4
|
-
<div class="row">
|
|
5
|
-
<div class="col-12 my-3 mt-4">
|
|
6
|
-
<h2>Search Results</h2>
|
|
7
|
-
</div>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="row faqlist search-result">
|
|
10
|
-
<div class="col-12">
|
|
11
|
-
<div data-cy="faq-list">
|
|
12
|
-
<ng-container *ngIf="result">
|
|
13
|
-
<div *ngFor="let group of objectKeys(result); let idx = index"
|
|
14
|
-
[ngSwitch]="group">
|
|
15
|
-
<ng-container *ngSwitchCase="'users'">
|
|
16
|
-
<ng-container *ngIf="result[group].length">
|
|
17
|
-
<h6 class="gradient-custom-branding">
|
|
18
|
-
{{ group | uppercase }}
|
|
19
|
-
</h6>
|
|
20
|
-
<div class="row px-2">
|
|
21
|
-
<div class="col-12 ms-2 faq-item"
|
|
22
|
-
*ngFor="
|
|
23
|
-
let user of result[group];
|
|
24
|
-
let idx1 = index;
|
|
25
|
-
trackBy: trackByUserId
|
|
26
|
-
">
|
|
27
|
-
<div class="accordion">
|
|
28
|
-
<div class="accord-title p-2">
|
|
29
|
-
<h5 class="accordion-title mt-2">
|
|
30
|
-
<a href="javascript:void(0)"
|
|
31
|
-
class="accordion-toggle collapsed"
|
|
32
|
-
data-bs-toggle="collapse"
|
|
33
|
-
[href]="'#collapse' + idx1 + idx"><span>{{
|
|
34
|
-
user.first_name !== null
|
|
35
|
-
? user.first_name
|
|
36
|
-
: user?.email
|
|
37
|
-
}}</span></a>
|
|
38
|
-
</h5>
|
|
39
|
-
<p class="m-0 title-font">
|
|
40
|
-
<strong *ngIf="user.user_skills?.length > 0">Skills :
|
|
41
|
-
</strong>
|
|
42
|
-
<span class="badge bg-success m-1"
|
|
43
|
-
*ngFor="
|
|
44
|
-
let skill of user.user_skills;
|
|
45
|
-
let isLast = last;
|
|
46
|
-
trackBy: trackBySkill
|
|
47
|
-
">
|
|
48
|
-
{{ skill.name
|
|
49
|
-
}}{{ isLast ? '' : ', ' }}</span>
|
|
50
|
-
</p>
|
|
51
|
-
<p class="m-0 title-font"
|
|
52
|
-
*ngIf="
|
|
53
|
-
user?.user_profile?.headline
|
|
54
|
-
?.length > 0
|
|
55
|
-
">
|
|
56
|
-
{{ user?.user_profile?.headline }}
|
|
57
|
-
</p>
|
|
58
|
-
<p class="m-0 title-font"
|
|
59
|
-
*ngIf="
|
|
60
|
-
user?.user_profile?.country
|
|
61
|
-
?.length > 0
|
|
62
|
-
">
|
|
63
|
-
<strong>Location : </strong>{{ user?.user_profile?.country }}
|
|
64
|
-
</p>
|
|
65
|
-
</div>
|
|
66
|
-
<div [id]="'collapse' + idx1 + idx"
|
|
67
|
-
class="panel-collapse collapse in p-3">
|
|
68
|
-
<div class="display-block overflow-hidden">
|
|
69
|
-
<div class="row align-items-center">
|
|
70
|
-
<div class="col-sm-3">
|
|
71
|
-
<ng-container *ngIf="
|
|
72
|
-
user?.user_avatar
|
|
73
|
-
?.length > 0;
|
|
74
|
-
else noProfileImg
|
|
75
|
-
">
|
|
76
|
-
<ng-container *ngFor="
|
|
77
|
-
let profile_image of user.user_avatar
|
|
78
|
-
">
|
|
79
|
-
<div class="text-center my-2"
|
|
80
|
-
*ngIf="
|
|
81
|
-
profile_image.width ===
|
|
82
|
-
200
|
|
83
|
-
">
|
|
84
|
-
<div class="avatar">
|
|
85
|
-
<img class="img-fluid"
|
|
86
|
-
[src]="
|
|
87
|
-
profile_image.url
|
|
88
|
-
"
|
|
89
|
-
alt=""
|
|
90
|
-
onerror="this.onerror=null;this.src='assets/img/icons/male.png';" />
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</ng-container>
|
|
94
|
-
</ng-container>
|
|
95
|
-
<ng-template #noProfileImg>
|
|
96
|
-
<div class="text-center my-2">
|
|
97
|
-
<div class="avatar">
|
|
98
|
-
<img src="/assets/img/icons/male.png"
|
|
99
|
-
alt=""
|
|
100
|
-
class="img-fluid" />
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</ng-template>
|
|
104
|
-
</div>
|
|
105
|
-
<div class="col-sm-9">
|
|
106
|
-
<ul class="name-fl">
|
|
107
|
-
<li>
|
|
108
|
-
<strong>First Name:
|
|
109
|
-
</strong>
|
|
110
|
-
<span>{{
|
|
111
|
-
user.first_name !==
|
|
112
|
-
null
|
|
113
|
-
? user.first_name
|
|
114
|
-
: 'N/A'
|
|
115
|
-
}}</span>
|
|
116
|
-
</li>
|
|
117
|
-
<li>
|
|
118
|
-
<strong>Last Name:
|
|
119
|
-
</strong>
|
|
120
|
-
<span>{{
|
|
121
|
-
user.last_name !==
|
|
122
|
-
null
|
|
123
|
-
? user.last_name
|
|
124
|
-
: 'N/A'
|
|
125
|
-
}}</span>
|
|
126
|
-
</li>
|
|
127
|
-
</ul>
|
|
128
|
-
<p>
|
|
129
|
-
<strong>Email: </strong>
|
|
130
|
-
<span>{{
|
|
131
|
-
user.email !== null
|
|
132
|
-
? user.email
|
|
133
|
-
: 'N/A'
|
|
134
|
-
}}</span>
|
|
135
|
-
</p>
|
|
136
|
-
<p>
|
|
137
|
-
<strong>Description:
|
|
138
|
-
</strong>
|
|
139
|
-
<span>{{
|
|
140
|
-
user?.user_profile
|
|
141
|
-
?.description !==
|
|
142
|
-
null
|
|
143
|
-
? user?.user_profile
|
|
144
|
-
?.description
|
|
145
|
-
: 'N/A'
|
|
146
|
-
}}</span>
|
|
147
|
-
</p>
|
|
148
|
-
<div class="view-btn text-end">
|
|
149
|
-
<a class="btn btn-outline-primary inline-block"
|
|
150
|
-
[routerLink]="[
|
|
151
|
-
'/members/' +
|
|
152
|
-
user.slug
|
|
153
|
-
]">View More</a>
|
|
154
|
-
</div>
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
</ng-container>
|
|
163
|
-
</ng-container>
|
|
164
|
-
<ng-container *ngSwitchCase="'faqs'">
|
|
165
|
-
<ng-container *ngIf="result[group].length">
|
|
166
|
-
<h6 class="gradient-custom-branding">
|
|
167
|
-
{{ group | uppercase }}
|
|
168
|
-
</h6>
|
|
169
|
-
<div class="row px-2">
|
|
170
|
-
<div class="col-12 ms-2 faq-item"
|
|
171
|
-
*ngFor="
|
|
172
|
-
let faq of result[group];
|
|
173
|
-
let idx2 = index;
|
|
174
|
-
trackBy: trackByFaqId
|
|
175
|
-
">
|
|
176
|
-
<div class="p-2">
|
|
177
|
-
<div class="accord-title1s">
|
|
178
|
-
<h5 class="accordion-title mt-2">
|
|
179
|
-
<a href="javascript:void(0)"
|
|
180
|
-
class="accordion-toggle collapsed"
|
|
181
|
-
data-bs-toggle="collapse"
|
|
182
|
-
[href]="'#collapse' + idx2 + idx">{{ faq.question }}</a>
|
|
183
|
-
</h5>
|
|
184
|
-
</div>
|
|
185
|
-
<div [id]="'collapse' + idx2 + idx"
|
|
186
|
-
class="panel-collapse collapse in">
|
|
187
|
-
<ng-container *ngIf="faq?.answer">
|
|
188
|
-
<div class="ql-container ql-snow"
|
|
189
|
-
style="border-width: 0;">
|
|
190
|
-
<div class="ql-editor"
|
|
191
|
-
[innerHTML]="faq?.answer |safe:'html'">
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
</ng-container>
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
</div>
|
|
199
|
-
</ng-container>
|
|
200
|
-
</ng-container>
|
|
201
|
-
</div>
|
|
202
|
-
<pw-no-data [withImage]="true" [message]="'Search.NoDataMessage' | transloco" [description]="'Search.NoDataDescription' | transloco"
|
|
203
|
-
*ngIf="
|
|
204
|
-
result.users?.length === 0 &&
|
|
205
|
-
result.faqs?.length === 0 &&
|
|
206
|
-
result.recipients?.length === 0
|
|
207
|
-
">
|
|
208
|
-
</pw-no-data>
|
|
209
|
-
</ng-container>
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
</div>
|
|
213
|
-
</div>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
@import 'variables/branding-variables';
|
|
2
|
-
@import 'variables';
|
|
3
|
-
|
|
4
|
-
h6 {
|
|
5
|
-
background-color: $sidebar-bg !important;
|
|
6
|
-
color: $sidebar-text !important;
|
|
7
|
-
padding: 0.8rem;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
a {
|
|
11
|
-
color: rgb(51 51 51);
|
|
12
|
-
display: block;
|
|
13
|
-
margin: 6px 0;
|
|
14
|
-
position: relative;
|
|
15
|
-
transition: all 0.5s;
|
|
16
|
-
|
|
17
|
-
&:hover {
|
|
18
|
-
color: $titles;
|
|
19
|
-
text-decoration: underline;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.faq-search-answer a {
|
|
24
|
-
color: rgb(20 64 134);
|
|
25
|
-
display: inline-block;
|
|
26
|
-
float: right;
|
|
27
|
-
font-size: 14px;
|
|
28
|
-
margin-right: 15px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.faq-search-answer a::after {
|
|
32
|
-
right: -10px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.faq-item {
|
|
36
|
-
border: 1px dashed rgb(0 0 0 / 10%);
|
|
37
|
-
background-color: map-get($grey, lighten-3);
|
|
38
|
-
border-radius: 3px;
|
|
39
|
-
margin: 10px;
|
|
40
|
-
transition: all 0.2s ease-in-out;
|
|
41
|
-
|
|
42
|
-
&.faq-item {
|
|
43
|
-
flex: auto;
|
|
44
|
-
padding: 0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
a {
|
|
48
|
-
text-decoration: none;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.accord-title1 .faq-search-answer a {
|
|
53
|
-
margin-right: 0 !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
a.accordion-toggle::after {
|
|
57
|
-
display: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.accord-title {
|
|
61
|
-
p {
|
|
62
|
-
&.title-font {
|
|
63
|
-
font-size: 0.8rem;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.panel-collapse {
|
|
69
|
-
&.show {
|
|
70
|
-
border-top: 1px dashed rgb(0 0 0 / 10%);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
ul {
|
|
74
|
-
margin-bottom: 1rem;
|
|
75
|
-
|
|
76
|
-
&.name-fl {
|
|
77
|
-
li {
|
|
78
|
-
display: inline-block;
|
|
79
|
-
padding-right: 15px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.view-btn {
|
|
86
|
-
a {
|
|
87
|
-
display: inline-block;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
.avatar {
|
|
91
|
-
width: 130px;
|
|
92
|
-
margin: 0 auto;
|
|
93
|
-
display: block;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ql-container {
|
|
97
|
-
resize: none !important;
|
|
98
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { CommonServicesModule, DashboardService, PermissionService } from "@posiwise/common-services";
|
|
2
|
-
import { SharedModule } from "@posiwise/shared-module";
|
|
3
|
-
import { DashboardLibModule } from "../dashboard.module";
|
|
4
|
-
import { DEFAULT_USER, TestHelper } from "@posiwise/test-helpers";
|
|
5
|
-
import { MockProvider } from "ng-mocks";
|
|
6
|
-
import { of } from "rxjs";
|
|
7
|
-
import { SearchComponent } from "./search.component";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
describe('SearchComponent', () => {
|
|
11
|
-
const createComponent = TestHelper.createComponentFactory({
|
|
12
|
-
component: SearchComponent,
|
|
13
|
-
imports: [SharedModule,CommonServicesModule,DashboardLibModule],
|
|
14
|
-
providers: [
|
|
15
|
-
...TestHelper.TEST_PROVIDERS,
|
|
16
|
-
MockProvider(DashboardService, {
|
|
17
|
-
search: () =>
|
|
18
|
-
of({
|
|
19
|
-
users: [
|
|
20
|
-
{
|
|
21
|
-
id: 28,
|
|
22
|
-
first_name: 'test',
|
|
23
|
-
last_name: null,
|
|
24
|
-
email: 'test22@gmail.com',
|
|
25
|
-
slug: 'test-494328',
|
|
26
|
-
user_skills: [],
|
|
27
|
-
user_avatar: [
|
|
28
|
-
{
|
|
29
|
-
width: 200,
|
|
30
|
-
height: 200,
|
|
31
|
-
url: 'test'
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
faqs: [
|
|
37
|
-
{
|
|
38
|
-
id: 5,
|
|
39
|
-
question: 'test',
|
|
40
|
-
answer: '\u003cp\u003etest\u003c/p\u003e',
|
|
41
|
-
visible: true,
|
|
42
|
-
position: null,
|
|
43
|
-
category: 'public',
|
|
44
|
-
product_id: 21,
|
|
45
|
-
public: true
|
|
46
|
-
}
|
|
47
|
-
],
|
|
48
|
-
recipients: []
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
]
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
beforeEach(() => {
|
|
55
|
-
TestHelper.setUpPermissionsAndUser();
|
|
56
|
-
PermissionService.selectedSubscription= DEFAULT_USER.subscriptions[0]
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
it('should create', async () => {
|
|
60
|
-
TestHelper.setActivatedRoute({ queryParams: { keyword: 'test' } });
|
|
61
|
-
const spectator = await createComponent();
|
|
62
|
-
expect(spectator.component).toBeTruthy();
|
|
63
|
-
});
|
|
64
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { GlobalSearchResponse } from '@posiwise/common-utilities';
|
|
5
|
-
import { PermissionService, DashboardService } from '@posiwise/common-services';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'pw-search',
|
|
9
|
-
templateUrl: './search.component.html',
|
|
10
|
-
styleUrls: ['./search.component.scss']
|
|
11
|
-
})
|
|
12
|
-
export class SearchComponent implements OnInit {
|
|
13
|
-
keyword: string;
|
|
14
|
-
|
|
15
|
-
result: GlobalSearchResponse;
|
|
16
|
-
|
|
17
|
-
objectKeys = Object.keys;
|
|
18
|
-
|
|
19
|
-
subscriptionId: number;
|
|
20
|
-
|
|
21
|
-
constructor(private route: ActivatedRoute, private service: DashboardService) {}
|
|
22
|
-
|
|
23
|
-
ngOnInit() {
|
|
24
|
-
this.subscriptionId = PermissionService.selectedSubscription.id;
|
|
25
|
-
this.route.queryParams.subscribe(response => {
|
|
26
|
-
this.keyword = response['keyword'];
|
|
27
|
-
if (this.keyword) {
|
|
28
|
-
this.search();
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
search() {
|
|
34
|
-
this.service.search(this.keyword, this.subscriptionId).subscribe(response => {
|
|
35
|
-
this.result = response;
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
trackByUserId(_index: number, item: any) {
|
|
40
|
-
return item.id;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
trackByFaqId(_index: number, item: any) {
|
|
44
|
-
return item.id;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
trackBySkill(_index: number, item: any) {
|
|
48
|
-
return item.id;
|
|
49
|
-
}
|
|
50
|
-
}
|