application-sidebar 1.0.6 → 1.0.7
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/lib/application-sidebar.component.mjs +69 -62
- package/esm2022/lib/constants.mjs +9 -1020
- package/esm2022/lib/nav-menus/nav-menus.component.mjs +40 -36
- package/esm2022/lib/services/application-sidebar.service.mjs +225 -90
- package/esm2022/lib/services/rest-api.services.mjs +26 -29
- package/esm2022/lib/services/translation.service.mjs +46 -0
- package/esm2022/lib/translations/translations-en.mjs +89 -33
- package/esm2022/lib/translations/translations-ja.mjs +89 -33
- package/fesm2022/application-sidebar.mjs +570 -1287
- package/fesm2022/application-sidebar.mjs.map +1 -1
- package/lib/application-sidebar.component.d.ts +8 -4
- package/lib/constants.d.ts +8 -497
- package/lib/nav-menus/nav-menus.component.d.ts +5 -2
- package/lib/services/application-sidebar.service.d.ts +15 -5
- package/lib/services/rest-api.services.d.ts +7 -10
- package/lib/services/translation.service.d.ts +12 -0
- package/lib/translations/translations-en.d.ts +88 -32
- package/lib/translations/translations-ja.d.ts +88 -32
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
1
2
|
import { Router } from '@angular/router';
|
|
2
3
|
import { OnInit, OnDestroy, QueryList } from '@angular/core';
|
|
3
4
|
import { ApplicationSidebarService } from './services/application-sidebar.service';
|
|
@@ -7,18 +8,20 @@ import { OffsetTopDirective, ScrollableDirective } from './nav-menu.directive';
|
|
|
7
8
|
import { RestApiService } from './services/rest-api.services';
|
|
8
9
|
import { NavMenusComponent } from './nav-menus/nav-menus.component';
|
|
9
10
|
import { CookieService } from 'ngx-cookie-service';
|
|
11
|
+
import { TranslationService } from './services/translation.service';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
export declare class ApplicationSidebarComponent implements OnInit, OnDestroy {
|
|
12
|
-
|
|
14
|
+
navigation: ApplicationSidebarService;
|
|
13
15
|
private router;
|
|
14
16
|
private RestApiService;
|
|
15
17
|
private cookie;
|
|
18
|
+
private cdref;
|
|
19
|
+
private translation;
|
|
16
20
|
applicationDetails: appDetails;
|
|
17
21
|
sidenav: MatSidenav;
|
|
18
22
|
listItems: QueryList<OffsetTopDirective>;
|
|
19
23
|
list: ScrollableDirective;
|
|
20
24
|
navMenusComponent: NavMenusComponent;
|
|
21
|
-
translation: any;
|
|
22
25
|
accountName: any;
|
|
23
26
|
activePanel: any;
|
|
24
27
|
navCollapsed: boolean;
|
|
@@ -29,7 +32,7 @@ export declare class ApplicationSidebarComponent implements OnInit, OnDestroy {
|
|
|
29
32
|
sideNavStatusSubscription: any;
|
|
30
33
|
myObserver: any;
|
|
31
34
|
expandGlobalSettings: any;
|
|
32
|
-
constructor(
|
|
35
|
+
constructor(navigation: ApplicationSidebarService, router: Router, RestApiService: RestApiService, cookie: CookieService, cdref: ChangeDetectorRef, translation: TranslationService);
|
|
33
36
|
panelOpenState: boolean;
|
|
34
37
|
mainPanelOpenState: boolean;
|
|
35
38
|
prevActiveHeadMenu: any;
|
|
@@ -47,7 +50,8 @@ export declare class ApplicationSidebarComponent implements OnInit, OnDestroy {
|
|
|
47
50
|
expandCurrentMenuOnly(applicationDetails: any, onMenuClicked: any): void;
|
|
48
51
|
getTooltipInfo(headmenu: any): any;
|
|
49
52
|
selectedApplication(headmenu: any): any;
|
|
50
|
-
|
|
53
|
+
get sideIdInfo(): number;
|
|
54
|
+
checkForRedirection(applicationDetails: appDetails, menulists: any): void;
|
|
51
55
|
validateRouteByState(state: any, listMenus: any): any;
|
|
52
56
|
getStructureAPISupportData(currentAccount: any): Promise<void>;
|
|
53
57
|
scrollToActiveMenu(): void;
|
package/lib/constants.d.ts
CHANGED
|
@@ -1,497 +1,8 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
defaulturl: string;
|
|
10
|
-
children: any[];
|
|
11
|
-
visibility_roles_not_in: string[];
|
|
12
|
-
organization_setting_not_in: string[];
|
|
13
|
-
account_type?: undefined;
|
|
14
|
-
subscription_types?: undefined;
|
|
15
|
-
visibility_roles?: undefined;
|
|
16
|
-
organization_ids_not_in?: undefined;
|
|
17
|
-
badge?: undefined;
|
|
18
|
-
app_org_setting?: undefined;
|
|
19
|
-
org_user_ctrl?: undefined;
|
|
20
|
-
siteIds?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
id: string;
|
|
23
|
-
name: string;
|
|
24
|
-
app_name: string;
|
|
25
|
-
type: string;
|
|
26
|
-
level: string;
|
|
27
|
-
icon: string;
|
|
28
|
-
account_type: string[];
|
|
29
|
-
subscription_types: string[];
|
|
30
|
-
order: number;
|
|
31
|
-
defaulturl: string;
|
|
32
|
-
visibility_roles_not_in: string[];
|
|
33
|
-
organization_setting_not_in: string[];
|
|
34
|
-
children: ({
|
|
35
|
-
id: string;
|
|
36
|
-
name: string;
|
|
37
|
-
type: string;
|
|
38
|
-
level: string;
|
|
39
|
-
icon: string;
|
|
40
|
-
route: string;
|
|
41
|
-
link: string;
|
|
42
|
-
subscription_types: string[];
|
|
43
|
-
account_type: string[];
|
|
44
|
-
visibility_roles: string[];
|
|
45
|
-
campaign_types?: undefined;
|
|
46
|
-
children?: undefined;
|
|
47
|
-
} | {
|
|
48
|
-
id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
type: string;
|
|
51
|
-
icon: string;
|
|
52
|
-
level: string;
|
|
53
|
-
campaign_types: any[];
|
|
54
|
-
subscription_types: string[];
|
|
55
|
-
account_type: string[];
|
|
56
|
-
visibility_roles: string[];
|
|
57
|
-
children: {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
type: string;
|
|
61
|
-
icon: string;
|
|
62
|
-
link: string;
|
|
63
|
-
route: string;
|
|
64
|
-
subscription_types: string[];
|
|
65
|
-
account_type: string[];
|
|
66
|
-
visibility_roles: string[];
|
|
67
|
-
}[];
|
|
68
|
-
route?: undefined;
|
|
69
|
-
link?: undefined;
|
|
70
|
-
})[];
|
|
71
|
-
visibility_roles?: undefined;
|
|
72
|
-
organization_ids_not_in?: undefined;
|
|
73
|
-
badge?: undefined;
|
|
74
|
-
app_org_setting?: undefined;
|
|
75
|
-
org_user_ctrl?: undefined;
|
|
76
|
-
siteIds?: undefined;
|
|
77
|
-
} | {
|
|
78
|
-
id: string;
|
|
79
|
-
name: string;
|
|
80
|
-
app_name: string;
|
|
81
|
-
type: string;
|
|
82
|
-
icon: string;
|
|
83
|
-
level: string;
|
|
84
|
-
account_type: string[];
|
|
85
|
-
subscription_types: string[];
|
|
86
|
-
visibility_roles: string[];
|
|
87
|
-
organization_ids_not_in: number[];
|
|
88
|
-
order: number;
|
|
89
|
-
defaulturl: string;
|
|
90
|
-
children: any[];
|
|
91
|
-
visibility_roles_not_in: string[];
|
|
92
|
-
organization_setting_not_in: string[];
|
|
93
|
-
badge?: undefined;
|
|
94
|
-
app_org_setting?: undefined;
|
|
95
|
-
org_user_ctrl?: undefined;
|
|
96
|
-
siteIds?: undefined;
|
|
97
|
-
} | {
|
|
98
|
-
id: string;
|
|
99
|
-
name: string;
|
|
100
|
-
app_name: string;
|
|
101
|
-
type: string;
|
|
102
|
-
icon: string;
|
|
103
|
-
level: string;
|
|
104
|
-
order: number;
|
|
105
|
-
defaulturl: string;
|
|
106
|
-
badge: string;
|
|
107
|
-
visibility_roles_not_in: string[];
|
|
108
|
-
organization_setting_not_in: string[];
|
|
109
|
-
app_org_setting: string[];
|
|
110
|
-
org_user_ctrl: {
|
|
111
|
-
visibilityroles: string[];
|
|
112
|
-
organizations: number[];
|
|
113
|
-
visibility_sa_roles: string[];
|
|
114
|
-
}[];
|
|
115
|
-
children: {
|
|
116
|
-
id: string;
|
|
117
|
-
name: string;
|
|
118
|
-
type: string;
|
|
119
|
-
level: string;
|
|
120
|
-
icon: string;
|
|
121
|
-
route: string;
|
|
122
|
-
link: string;
|
|
123
|
-
app_org_setting: string[];
|
|
124
|
-
org_user_ctrl: {
|
|
125
|
-
visibilityroles: string[];
|
|
126
|
-
organizations: number[];
|
|
127
|
-
visibility_sa_roles: string[];
|
|
128
|
-
}[];
|
|
129
|
-
}[];
|
|
130
|
-
account_type?: undefined;
|
|
131
|
-
subscription_types?: undefined;
|
|
132
|
-
visibility_roles?: undefined;
|
|
133
|
-
organization_ids_not_in?: undefined;
|
|
134
|
-
siteIds?: undefined;
|
|
135
|
-
} | {
|
|
136
|
-
id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
app_name: string;
|
|
139
|
-
type: string;
|
|
140
|
-
icon: string;
|
|
141
|
-
level: string;
|
|
142
|
-
order: number;
|
|
143
|
-
defaulturl: string;
|
|
144
|
-
badge: string;
|
|
145
|
-
visibility_roles: string[];
|
|
146
|
-
app_org_setting: string[];
|
|
147
|
-
visibility_roles_not_in: string[];
|
|
148
|
-
organization_setting_not_in: string[];
|
|
149
|
-
children: {
|
|
150
|
-
id: string;
|
|
151
|
-
name: string;
|
|
152
|
-
type: string;
|
|
153
|
-
level: string;
|
|
154
|
-
icon: string;
|
|
155
|
-
route: string;
|
|
156
|
-
link: string;
|
|
157
|
-
visibility_roles: string[];
|
|
158
|
-
app_org_setting: string[];
|
|
159
|
-
}[];
|
|
160
|
-
account_type?: undefined;
|
|
161
|
-
subscription_types?: undefined;
|
|
162
|
-
organization_ids_not_in?: undefined;
|
|
163
|
-
org_user_ctrl?: undefined;
|
|
164
|
-
siteIds?: undefined;
|
|
165
|
-
} | {
|
|
166
|
-
id: string;
|
|
167
|
-
name: string;
|
|
168
|
-
app_name: string;
|
|
169
|
-
type: string;
|
|
170
|
-
level: string;
|
|
171
|
-
icon: string;
|
|
172
|
-
order: number;
|
|
173
|
-
defaulturl: string;
|
|
174
|
-
siteIds: number[];
|
|
175
|
-
visibility_roles: string[];
|
|
176
|
-
visibility_roles_not_in: string[];
|
|
177
|
-
organization_setting_not_in: string[];
|
|
178
|
-
children: ({
|
|
179
|
-
id: string;
|
|
180
|
-
name: string;
|
|
181
|
-
type: string;
|
|
182
|
-
level: string;
|
|
183
|
-
icon: string;
|
|
184
|
-
route: string;
|
|
185
|
-
link: string;
|
|
186
|
-
visibility_roles: string[];
|
|
187
|
-
siteIds: number[];
|
|
188
|
-
badge?: undefined;
|
|
189
|
-
} | {
|
|
190
|
-
id: string;
|
|
191
|
-
name: string;
|
|
192
|
-
type: string;
|
|
193
|
-
level: string;
|
|
194
|
-
icon: string;
|
|
195
|
-
route: string;
|
|
196
|
-
link: string;
|
|
197
|
-
badge: string;
|
|
198
|
-
visibility_roles: string[];
|
|
199
|
-
siteIds: number[];
|
|
200
|
-
})[];
|
|
201
|
-
account_type?: undefined;
|
|
202
|
-
subscription_types?: undefined;
|
|
203
|
-
organization_ids_not_in?: undefined;
|
|
204
|
-
badge?: undefined;
|
|
205
|
-
app_org_setting?: undefined;
|
|
206
|
-
org_user_ctrl?: undefined;
|
|
207
|
-
} | {
|
|
208
|
-
id: string;
|
|
209
|
-
name: string;
|
|
210
|
-
app_name: string;
|
|
211
|
-
type: string;
|
|
212
|
-
level: string;
|
|
213
|
-
icon: string;
|
|
214
|
-
badge: string;
|
|
215
|
-
order: number;
|
|
216
|
-
visibility_roles: string[];
|
|
217
|
-
defaulturl: string;
|
|
218
|
-
siteIds: number[];
|
|
219
|
-
visibility_roles_not_in: string[];
|
|
220
|
-
organization_setting_not_in: string[];
|
|
221
|
-
children: ({
|
|
222
|
-
id: string;
|
|
223
|
-
name: string;
|
|
224
|
-
type: string;
|
|
225
|
-
icon: string;
|
|
226
|
-
route: string;
|
|
227
|
-
link: string;
|
|
228
|
-
matchRoutes: string[];
|
|
229
|
-
siteIds: number[];
|
|
230
|
-
level?: undefined;
|
|
231
|
-
} | {
|
|
232
|
-
id: string;
|
|
233
|
-
name: string;
|
|
234
|
-
type: string;
|
|
235
|
-
icon: string;
|
|
236
|
-
route: string;
|
|
237
|
-
link: string;
|
|
238
|
-
siteIds: number[];
|
|
239
|
-
matchRoutes?: undefined;
|
|
240
|
-
level?: undefined;
|
|
241
|
-
} | {
|
|
242
|
-
id: string;
|
|
243
|
-
name: string;
|
|
244
|
-
type: string;
|
|
245
|
-
level: string;
|
|
246
|
-
icon: string;
|
|
247
|
-
route: string;
|
|
248
|
-
link: string;
|
|
249
|
-
siteIds: number[];
|
|
250
|
-
matchRoutes?: undefined;
|
|
251
|
-
})[];
|
|
252
|
-
account_type?: undefined;
|
|
253
|
-
subscription_types?: undefined;
|
|
254
|
-
organization_ids_not_in?: undefined;
|
|
255
|
-
app_org_setting?: undefined;
|
|
256
|
-
org_user_ctrl?: undefined;
|
|
257
|
-
} | {
|
|
258
|
-
id: string;
|
|
259
|
-
name: string;
|
|
260
|
-
app_name: string;
|
|
261
|
-
type: string;
|
|
262
|
-
level: string;
|
|
263
|
-
icon: string;
|
|
264
|
-
account_type: string[];
|
|
265
|
-
subscription_types: string[];
|
|
266
|
-
defaulturl: string;
|
|
267
|
-
visibility_roles: string[];
|
|
268
|
-
order: number;
|
|
269
|
-
visibility_roles_not_in: string[];
|
|
270
|
-
organization_setting_not_in: string[];
|
|
271
|
-
children: ({
|
|
272
|
-
id: string;
|
|
273
|
-
name: string;
|
|
274
|
-
type: string;
|
|
275
|
-
level: string;
|
|
276
|
-
icon: string;
|
|
277
|
-
route: string;
|
|
278
|
-
link: string;
|
|
279
|
-
subscription_types: string[];
|
|
280
|
-
account_type: string[];
|
|
281
|
-
visibility_roles: string[];
|
|
282
|
-
incontext_campaign_targeting_walmart?: undefined;
|
|
283
|
-
campaign_types?: undefined;
|
|
284
|
-
children?: undefined;
|
|
285
|
-
} | {
|
|
286
|
-
id: string;
|
|
287
|
-
name: string;
|
|
288
|
-
type: string;
|
|
289
|
-
level: string;
|
|
290
|
-
icon: string;
|
|
291
|
-
route: string;
|
|
292
|
-
link: string;
|
|
293
|
-
subscription_types: string[];
|
|
294
|
-
account_type: string[];
|
|
295
|
-
visibility_roles: string[];
|
|
296
|
-
incontext_campaign_targeting_walmart: string[];
|
|
297
|
-
campaign_types?: undefined;
|
|
298
|
-
children?: undefined;
|
|
299
|
-
} | {
|
|
300
|
-
id: string;
|
|
301
|
-
name: string;
|
|
302
|
-
type: string;
|
|
303
|
-
icon: string;
|
|
304
|
-
level: string;
|
|
305
|
-
campaign_types: any[];
|
|
306
|
-
subscription_types: string[];
|
|
307
|
-
account_type: string[];
|
|
308
|
-
visibility_roles: string[];
|
|
309
|
-
children: {
|
|
310
|
-
id: string;
|
|
311
|
-
name: string;
|
|
312
|
-
type: string;
|
|
313
|
-
level: string;
|
|
314
|
-
icon: string;
|
|
315
|
-
route: string;
|
|
316
|
-
link: string;
|
|
317
|
-
subscription_types: string[];
|
|
318
|
-
account_type: string[];
|
|
319
|
-
visibility_roles: string[];
|
|
320
|
-
}[];
|
|
321
|
-
route?: undefined;
|
|
322
|
-
link?: undefined;
|
|
323
|
-
incontext_campaign_targeting_walmart?: undefined;
|
|
324
|
-
})[];
|
|
325
|
-
organization_ids_not_in?: undefined;
|
|
326
|
-
badge?: undefined;
|
|
327
|
-
app_org_setting?: undefined;
|
|
328
|
-
org_user_ctrl?: undefined;
|
|
329
|
-
siteIds?: undefined;
|
|
330
|
-
} | {
|
|
331
|
-
id: string;
|
|
332
|
-
name: string;
|
|
333
|
-
app_name: string;
|
|
334
|
-
type: string;
|
|
335
|
-
level: string;
|
|
336
|
-
icon: string;
|
|
337
|
-
defaulturl: string;
|
|
338
|
-
account_type: string[];
|
|
339
|
-
subscription_types: string[];
|
|
340
|
-
order: number;
|
|
341
|
-
visibility_roles_not_in: string[];
|
|
342
|
-
organization_setting_not_in: string[];
|
|
343
|
-
children: ({
|
|
344
|
-
id: string;
|
|
345
|
-
name: string;
|
|
346
|
-
type: string;
|
|
347
|
-
level: string;
|
|
348
|
-
icon: string;
|
|
349
|
-
route: string;
|
|
350
|
-
link: string;
|
|
351
|
-
subscription_types: string[];
|
|
352
|
-
account_type: string[];
|
|
353
|
-
visibility_roles: string[];
|
|
354
|
-
campaign_types?: undefined;
|
|
355
|
-
children?: undefined;
|
|
356
|
-
} | {
|
|
357
|
-
id: string;
|
|
358
|
-
name: string;
|
|
359
|
-
type: string;
|
|
360
|
-
icon: string;
|
|
361
|
-
level: string;
|
|
362
|
-
campaign_types: any[];
|
|
363
|
-
subscription_types: string[];
|
|
364
|
-
account_type: string[];
|
|
365
|
-
visibility_roles: string[];
|
|
366
|
-
children: {
|
|
367
|
-
id: string;
|
|
368
|
-
name: string;
|
|
369
|
-
type: string;
|
|
370
|
-
icon: string;
|
|
371
|
-
link: string;
|
|
372
|
-
route: string;
|
|
373
|
-
campaign_types: any[];
|
|
374
|
-
subscription_types: string[];
|
|
375
|
-
account_type: string[];
|
|
376
|
-
visibility_roles: string[];
|
|
377
|
-
}[];
|
|
378
|
-
route?: undefined;
|
|
379
|
-
link?: undefined;
|
|
380
|
-
})[];
|
|
381
|
-
visibility_roles?: undefined;
|
|
382
|
-
organization_ids_not_in?: undefined;
|
|
383
|
-
badge?: undefined;
|
|
384
|
-
app_org_setting?: undefined;
|
|
385
|
-
org_user_ctrl?: undefined;
|
|
386
|
-
siteIds?: undefined;
|
|
387
|
-
} | {
|
|
388
|
-
id: string;
|
|
389
|
-
name: string;
|
|
390
|
-
app_name: string;
|
|
391
|
-
type: string;
|
|
392
|
-
level: string;
|
|
393
|
-
icon: string;
|
|
394
|
-
account_type: string[];
|
|
395
|
-
subscription_types: string[];
|
|
396
|
-
visibility_roles: string[];
|
|
397
|
-
order: number;
|
|
398
|
-
visibility_roles_not_in: string[];
|
|
399
|
-
organization_setting_not_in: string[];
|
|
400
|
-
children: ({
|
|
401
|
-
id: string;
|
|
402
|
-
name: string;
|
|
403
|
-
type: string;
|
|
404
|
-
level: string;
|
|
405
|
-
icon: string;
|
|
406
|
-
route: string;
|
|
407
|
-
link: string;
|
|
408
|
-
subscription_types: string[];
|
|
409
|
-
account_type: string[];
|
|
410
|
-
visibility_roles: string[];
|
|
411
|
-
campaign_types?: undefined;
|
|
412
|
-
children?: undefined;
|
|
413
|
-
} | {
|
|
414
|
-
id: string;
|
|
415
|
-
name: string;
|
|
416
|
-
type: string;
|
|
417
|
-
icon: string;
|
|
418
|
-
level: string;
|
|
419
|
-
campaign_types: any[];
|
|
420
|
-
subscription_types: string[];
|
|
421
|
-
account_type: string[];
|
|
422
|
-
visibility_roles: string[];
|
|
423
|
-
children: {
|
|
424
|
-
id: string;
|
|
425
|
-
name: string;
|
|
426
|
-
type: string;
|
|
427
|
-
icon: string;
|
|
428
|
-
route: string;
|
|
429
|
-
link: string;
|
|
430
|
-
subscription_types: string[];
|
|
431
|
-
account_type: string[];
|
|
432
|
-
visibility_roles: string[];
|
|
433
|
-
}[];
|
|
434
|
-
route?: undefined;
|
|
435
|
-
link?: undefined;
|
|
436
|
-
})[];
|
|
437
|
-
defaulturl?: undefined;
|
|
438
|
-
organization_ids_not_in?: undefined;
|
|
439
|
-
badge?: undefined;
|
|
440
|
-
app_org_setting?: undefined;
|
|
441
|
-
org_user_ctrl?: undefined;
|
|
442
|
-
siteIds?: undefined;
|
|
443
|
-
})[];
|
|
444
|
-
export declare const GLOBAL_SETTING_LIST: {
|
|
445
|
-
id: string;
|
|
446
|
-
name: string;
|
|
447
|
-
type: string;
|
|
448
|
-
level: string;
|
|
449
|
-
icon: string;
|
|
450
|
-
order: number;
|
|
451
|
-
visibility_roles_not_in: string[];
|
|
452
|
-
children: ({
|
|
453
|
-
id: string;
|
|
454
|
-
name: string;
|
|
455
|
-
type: string;
|
|
456
|
-
level: string;
|
|
457
|
-
icon: string;
|
|
458
|
-
route: string;
|
|
459
|
-
link: string;
|
|
460
|
-
visibility_roles: string[];
|
|
461
|
-
separator?: undefined;
|
|
462
|
-
organization_setting_not_in?: undefined;
|
|
463
|
-
} | {
|
|
464
|
-
name: string;
|
|
465
|
-
type: string;
|
|
466
|
-
separator: boolean;
|
|
467
|
-
visibility_roles: string[];
|
|
468
|
-
id?: undefined;
|
|
469
|
-
level?: undefined;
|
|
470
|
-
icon?: undefined;
|
|
471
|
-
route?: undefined;
|
|
472
|
-
link?: undefined;
|
|
473
|
-
organization_setting_not_in?: undefined;
|
|
474
|
-
} | {
|
|
475
|
-
id: string;
|
|
476
|
-
name: string;
|
|
477
|
-
type: string;
|
|
478
|
-
level: string;
|
|
479
|
-
icon: string;
|
|
480
|
-
route: string;
|
|
481
|
-
link: string;
|
|
482
|
-
organization_setting_not_in: string[];
|
|
483
|
-
visibility_roles: string[];
|
|
484
|
-
separator?: undefined;
|
|
485
|
-
} | {
|
|
486
|
-
name: string;
|
|
487
|
-
type: string;
|
|
488
|
-
separator: boolean;
|
|
489
|
-
organization_setting_not_in: string[];
|
|
490
|
-
visibility_roles: string[];
|
|
491
|
-
id?: undefined;
|
|
492
|
-
level?: undefined;
|
|
493
|
-
icon?: undefined;
|
|
494
|
-
route?: undefined;
|
|
495
|
-
link?: undefined;
|
|
496
|
-
})[];
|
|
497
|
-
}[];
|
|
1
|
+
export declare const constants: {
|
|
2
|
+
baseProdURL: string;
|
|
3
|
+
baseStagingURL: string;
|
|
4
|
+
kBaseDspApiURL: string;
|
|
5
|
+
kBaseDspTestApiURL: string;
|
|
6
|
+
STAGING_MENU_BUCKET: string;
|
|
7
|
+
PROD_MENU_BUCKET: string;
|
|
8
|
+
};
|
|
@@ -5,13 +5,15 @@ import { ApplicationSidebarService } from '../services/application-sidebar.servi
|
|
|
5
5
|
import { UrlContextService } from '../services/url-context.service';
|
|
6
6
|
import { CookieService } from 'ngx-cookie-service';
|
|
7
7
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
8
|
+
import { TranslationService } from '../services/translation.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class NavMenusComponent implements OnInit {
|
|
10
|
-
|
|
11
|
+
navigation: ApplicationSidebarService;
|
|
11
12
|
private router;
|
|
12
13
|
private activatedRoute;
|
|
13
14
|
private urlContextService;
|
|
14
15
|
private cookie;
|
|
16
|
+
private translate;
|
|
15
17
|
menuClicked: EventEmitter<object>;
|
|
16
18
|
item: NavMenuItem;
|
|
17
19
|
applicationId: string;
|
|
@@ -26,9 +28,10 @@ export declare class NavMenusComponent implements OnInit {
|
|
|
26
28
|
y: string;
|
|
27
29
|
};
|
|
28
30
|
translation: any;
|
|
29
|
-
constructor(
|
|
31
|
+
constructor(navigation: ApplicationSidebarService, router: Router, activatedRoute: ActivatedRoute, urlContextService: UrlContextService, cookie: CookieService, translate: TranslationService);
|
|
30
32
|
ngOnInit(): void;
|
|
31
33
|
hasIcon(item: NavMenuItem): boolean;
|
|
34
|
+
selectedApplication(name: any): any;
|
|
32
35
|
getSpecifiedValue(key: string): any;
|
|
33
36
|
onSelectMenu(event: any, listMenu: NavMenuItem, appId?: any): void;
|
|
34
37
|
onContextMenu(event: MouseEvent, item: NavMenuItem): void;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { RestApiService } from './rest-api.services';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { UrlContextService } from './url-context.service';
|
|
4
|
+
import { TranslationService } from './translation.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ApplicationSidebarService {
|
|
6
7
|
private RestApiService;
|
|
7
8
|
private activatedRoute;
|
|
9
|
+
private translate;
|
|
8
10
|
private urlContextService;
|
|
9
11
|
conditions: string[];
|
|
10
12
|
MenuList: any[];
|
|
11
|
-
applicationIds:
|
|
13
|
+
applicationIds: any[];
|
|
12
14
|
enableAllMenusByOrg: number[];
|
|
13
15
|
appDetails: any;
|
|
14
16
|
isStructureApiSupport: any;
|
|
15
17
|
SettingsMenuList: any[];
|
|
16
18
|
appNames: string[];
|
|
19
|
+
private menulists;
|
|
17
20
|
contentAppRoutes: string[];
|
|
18
21
|
sovAppRoutes: string[];
|
|
19
22
|
sellerAnalyticsAppRoutes: string[];
|
|
@@ -40,7 +43,7 @@ export declare class ApplicationSidebarService {
|
|
|
40
43
|
COMPETITOR_PRODUCT: boolean;
|
|
41
44
|
SPONSORED_BRAND_KEYWORD: boolean;
|
|
42
45
|
};
|
|
43
|
-
constructor(RestApiService: RestApiService, activatedRoute: ActivatedRoute, urlContextService: UrlContextService);
|
|
46
|
+
constructor(RestApiService: RestApiService, activatedRoute: ActivatedRoute, translate: TranslationService, urlContextService: UrlContextService);
|
|
44
47
|
getTypeStatusConfigs(): {
|
|
45
48
|
SPONSORED_KEYWORD_BIDS: boolean;
|
|
46
49
|
SPONSORED_PRODUCT_MANUAL_TARGETING_BIDS: boolean;
|
|
@@ -64,12 +67,14 @@ export declare class ApplicationSidebarService {
|
|
|
64
67
|
SPONSORED_BRAND_KEYWORD: boolean;
|
|
65
68
|
};
|
|
66
69
|
constructChildMenus(menuItems: any): any;
|
|
67
|
-
getMenuList(appDetails: any): any[];
|
|
70
|
+
getMenuList(appDetails: any, menulists: any): any[];
|
|
68
71
|
getApplicationMenuItem(currentMenuItem: any): any;
|
|
69
|
-
getGlobalSettingsMenu(appDetails: any): any[];
|
|
70
|
-
checkAllConditions(currentMenuItem: any, allKeys: string[]): any;
|
|
72
|
+
getGlobalSettingsMenu(appDetails: any, menulists: any): any[];
|
|
73
|
+
checkAllConditions(currentMenuItem: any, conditions: any, allKeys: string[]): any;
|
|
71
74
|
checkForNotAccName(possibleValues: any): boolean;
|
|
72
75
|
checkForCampaignType(possibleValues: any): boolean;
|
|
76
|
+
checkForTargettingType(possibleValues: any): boolean;
|
|
77
|
+
checkForNotTargettingType(possibleValues: any): boolean;
|
|
73
78
|
checkForCampaignTargeting(possibleValues: any): boolean;
|
|
74
79
|
checkForCampaignTargetingWalmart(possibleValues: any): boolean;
|
|
75
80
|
authenticateUserMailMenu(possibleValues: any): boolean;
|
|
@@ -78,7 +83,12 @@ export declare class ApplicationSidebarService {
|
|
|
78
83
|
checkForSiteNotIds(possibleValues: any): boolean;
|
|
79
84
|
checkForOrgSettings(possibleValues: any): boolean;
|
|
80
85
|
checkForOrgAppSettings(possibleValues: any): boolean;
|
|
86
|
+
checkForOrgAppSettingsNotIn(possibleValues: any): boolean;
|
|
87
|
+
checkCustomerTypeIn(possibleValues: any): boolean;
|
|
88
|
+
checkCustomerTypeNotIn(possibleValues: any): boolean;
|
|
81
89
|
checkForNotOrgSettings(possibleValues: any): boolean;
|
|
90
|
+
checkContextSettings(possibleValues: any): boolean;
|
|
91
|
+
checkContextSettingNotIn(possibleValues: any): boolean;
|
|
82
92
|
checkForAccType(menuItem: any): boolean;
|
|
83
93
|
checkForSpecifiedIds(possibleValues: any, currentMenuItem: any, id: number): boolean;
|
|
84
94
|
checkForOrgWithUserRole(possibleValues: any, currentMenuItem: any, id: number): boolean;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import { HttpClient
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CookieService } from 'ngx-cookie-service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class RestApiService {
|
|
6
6
|
private http;
|
|
7
7
|
private cookie;
|
|
8
|
-
private
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
httpOptions: {
|
|
13
|
-
headers: HttpHeaders;
|
|
14
|
-
};
|
|
15
|
-
kBaseDspApiURL: string;
|
|
16
|
-
kBaseDspTestApiURL: string;
|
|
8
|
+
private baseURL;
|
|
9
|
+
private DSPbaseURL;
|
|
10
|
+
private token;
|
|
11
|
+
private httpOptions;
|
|
17
12
|
constructor(http: HttpClient, cookie: CookieService);
|
|
13
|
+
get menuDownloadURL(): string;
|
|
18
14
|
getRecommendationData(orgId: any, businessId: any, accountId: any): Observable<any>;
|
|
19
15
|
getStructureAPISupportData(organizationId: any, businessGroupId: any, amsAccountId: any): Observable<any>;
|
|
16
|
+
getjsonMenulists(applicationDetails: any): Observable<any>;
|
|
20
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestApiService, never>;
|
|
21
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestApiService>;
|
|
22
19
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CookieService } from 'ngx-cookie-service';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TranslationService {
|
|
4
|
+
private cookie;
|
|
5
|
+
private translation;
|
|
6
|
+
constructor(cookie: CookieService);
|
|
7
|
+
getLabel(key: any): any;
|
|
8
|
+
selectedApplication(applicationDetails: any, headmenu: any): any;
|
|
9
|
+
translateName(name: any): any;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
|
|
12
|
+
}
|