@sunbird-cb/access-settings 0.0.1-ang-17-20
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/index.d.ts
ADDED
|
@@ -0,0 +1,748 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, WritableSignal, AfterViewInit, OnDestroy, EventEmitter, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
3
|
+
import * as i27 from '@angular/material/snack-bar';
|
|
4
|
+
import { MatSnackBarRef, MatSnackBar } from '@angular/material/snack-bar';
|
|
5
|
+
import * as i3 from '@angular/material/icon';
|
|
6
|
+
import * as i4 from '@angular/common';
|
|
7
|
+
import * as i13 from '@angular/material/dialog';
|
|
8
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
9
|
+
import * as i22 from '@angular/forms';
|
|
10
|
+
import { FormGroup, FormBuilder, FormArray, FormControl } from '@angular/forms';
|
|
11
|
+
import { HttpClient } from '@angular/common/http';
|
|
12
|
+
import { Observable } from 'rxjs';
|
|
13
|
+
import * as i11 from '@angular/material/radio';
|
|
14
|
+
import { MatRadioChange } from '@angular/material/radio';
|
|
15
|
+
import * as node_modules__angular_material_paginator_d from 'node_modules/@angular/material/paginator.d';
|
|
16
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
17
|
+
import * as i25 from '@angular/material/table';
|
|
18
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
19
|
+
import * as i28 from '@angular/material/sort';
|
|
20
|
+
import { MatSort, Sort } from '@angular/material/sort';
|
|
21
|
+
import { LiveAnnouncer } from '@angular/cdk/a11y';
|
|
22
|
+
import * as i24 from '@angular/material/tabs';
|
|
23
|
+
import { MatTabChangeEvent } from '@angular/material/tabs';
|
|
24
|
+
import * as i15 from '@angular/material/checkbox';
|
|
25
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
26
|
+
import * as i14 from '@angular/material/menu';
|
|
27
|
+
import * as i16 from '@angular/material/slide-toggle';
|
|
28
|
+
import * as i17 from '@angular/material/select';
|
|
29
|
+
import * as i18 from '@angular/material/core';
|
|
30
|
+
import * as i19 from '@angular/material/input';
|
|
31
|
+
import * as i20 from '@angular/material/form-field';
|
|
32
|
+
import * as i21 from '@angular/material/expansion';
|
|
33
|
+
import * as i23 from '@angular/material/button';
|
|
34
|
+
import * as i26 from '@angular/material/progress-spinner';
|
|
35
|
+
import * as i29 from '@angular/material/tooltip';
|
|
36
|
+
|
|
37
|
+
declare class AccessSettingsComponent implements OnInit {
|
|
38
|
+
constructor();
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessSettingsComponent, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccessSettingsComponent, "sb-uic-access-settings", never, {}, {}, never, never, false, never>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class SnackbarComponent {
|
|
45
|
+
snackBarRef: MatSnackBarRef<SnackbarComponent>;
|
|
46
|
+
readonly data: {
|
|
47
|
+
message: string;
|
|
48
|
+
type: "success | error";
|
|
49
|
+
};
|
|
50
|
+
constructor(snackBarRef: MatSnackBarRef<SnackbarComponent>);
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SnackbarComponent, "sb-uic-snackbar", never, {}, {}, never, never, false, never>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare class AccessSettingsModule {
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessSettingsModule, never>;
|
|
57
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AccessSettingsModule, [typeof AccessSettingsComponent, typeof SnackbarComponent], [typeof i3.MatIconModule, typeof i4.CommonModule], [typeof AccessSettingsComponent]>;
|
|
58
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AccessSettingsModule>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare namespace NsAccessControlConfig {
|
|
62
|
+
interface IAccessControlConfig {
|
|
63
|
+
accessControlCriteriaSelection: IAccessControlCriteriaSelection;
|
|
64
|
+
usersTableConfig: ITableConfig;
|
|
65
|
+
bulkUploadKarmayogi: IBulkUploadKarmayogi;
|
|
66
|
+
accessControlGuide: IAccessControlGuide;
|
|
67
|
+
visiblilityOnOff: IVisiblilityOnOff;
|
|
68
|
+
userConfig: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
userRoles: any;
|
|
71
|
+
org?: any;
|
|
72
|
+
};
|
|
73
|
+
content: any;
|
|
74
|
+
application: string;
|
|
75
|
+
mdoContent: any;
|
|
76
|
+
}
|
|
77
|
+
interface IAccessControlCriteriaSelection {
|
|
78
|
+
optionsEntity: IOptionsEntity[];
|
|
79
|
+
optionsConditions: IOptionsCondition[];
|
|
80
|
+
organizationRadioSelection: ISelectionOption[];
|
|
81
|
+
designationRadioSelection: ISelectionOption[];
|
|
82
|
+
servicesRadioSelection: ISelectionOption[];
|
|
83
|
+
cadreRadioSelection: ISelectionOption[];
|
|
84
|
+
batchRadioSelection: ISelectionOption[];
|
|
85
|
+
groupsOptions: string[];
|
|
86
|
+
verificationStatus: ISelectionOption[];
|
|
87
|
+
accessTypes: {
|
|
88
|
+
name: string;
|
|
89
|
+
value: string;
|
|
90
|
+
tooltip: string;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
}[];
|
|
93
|
+
readOnly: boolean;
|
|
94
|
+
canShowAccessTypeRadio: boolean;
|
|
95
|
+
shouldShowVisibilityToggle: boolean;
|
|
96
|
+
allowCustomsField: boolean;
|
|
97
|
+
centralDeputation?: ISelectionOption[];
|
|
98
|
+
paginationLimit: number;
|
|
99
|
+
}
|
|
100
|
+
interface IOptionsEntity {
|
|
101
|
+
value: string;
|
|
102
|
+
label: string;
|
|
103
|
+
disabled: boolean;
|
|
104
|
+
isCustomField?: boolean;
|
|
105
|
+
}
|
|
106
|
+
interface IOptionsCondition {
|
|
107
|
+
value: string;
|
|
108
|
+
label: string;
|
|
109
|
+
}
|
|
110
|
+
interface ITableConfig {
|
|
111
|
+
allLearners: ITableParameters;
|
|
112
|
+
selectedUsers: ITableParameters;
|
|
113
|
+
bulkUploadTable: ITableParameters;
|
|
114
|
+
}
|
|
115
|
+
interface ITableParameters {
|
|
116
|
+
displayedColumns: string[];
|
|
117
|
+
type: string;
|
|
118
|
+
initialPaginationSize: number;
|
|
119
|
+
initialPaginationSizeOptions: number[];
|
|
120
|
+
canShowPagination: boolean;
|
|
121
|
+
canShowMasterSelect: boolean;
|
|
122
|
+
canShowRefreshBtn: boolean;
|
|
123
|
+
canShowDeleteBtn: boolean;
|
|
124
|
+
canShowSelectedItems: boolean;
|
|
125
|
+
canSortColumn: boolean;
|
|
126
|
+
}
|
|
127
|
+
type IUserTableType = "allLearners" | "selectedUsers" | "bulkUploadTable";
|
|
128
|
+
type IManageSelectionType = "add_karmayogis" | "bulk_upload_karmayogis";
|
|
129
|
+
interface IBulkUploadKarmayogi {
|
|
130
|
+
uploadInstructions: string[];
|
|
131
|
+
downloadSampleFile: {
|
|
132
|
+
path: string;
|
|
133
|
+
fileName: string;
|
|
134
|
+
};
|
|
135
|
+
bulkUploadTable: ITableParameters;
|
|
136
|
+
}
|
|
137
|
+
enum SelectionType {
|
|
138
|
+
Users = "user",
|
|
139
|
+
Organizations = "rootOrgId",
|
|
140
|
+
Group = "group",
|
|
141
|
+
Designation = "designation",
|
|
142
|
+
VerificationStatus = "profilestatus",
|
|
143
|
+
Cadre = "Cadre",
|
|
144
|
+
Service = "service",
|
|
145
|
+
Batch = "batch",
|
|
146
|
+
CustomField = "customeField",
|
|
147
|
+
CentralDeputation = "isOnCentralDeputation"
|
|
148
|
+
}
|
|
149
|
+
interface ISelectionOption {
|
|
150
|
+
value: string;
|
|
151
|
+
label: string;
|
|
152
|
+
}
|
|
153
|
+
enum IActions {
|
|
154
|
+
Confirm = "confirm",
|
|
155
|
+
Reject = "reject"
|
|
156
|
+
}
|
|
157
|
+
enum IAccessTypes {
|
|
158
|
+
Public = "public",
|
|
159
|
+
Custom = "custom"
|
|
160
|
+
}
|
|
161
|
+
type ITypeAccessType = "public" | "custom";
|
|
162
|
+
interface IAccessControlGuide {
|
|
163
|
+
summaryText: string;
|
|
164
|
+
canShowSummaryTab: boolean;
|
|
165
|
+
canShowTranscriptTab: boolean;
|
|
166
|
+
instructionVideoPath: string;
|
|
167
|
+
}
|
|
168
|
+
enum IAccessSetting {
|
|
169
|
+
ALL_USERS = "allUsers",
|
|
170
|
+
MDO_SPECIFIC = "mdoSpecific",
|
|
171
|
+
CUSTOME_USER = "customeUser"
|
|
172
|
+
}
|
|
173
|
+
enum Application {
|
|
174
|
+
MDO = "mdo_portal",
|
|
175
|
+
Creation_Portal = "cbp_portal"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
interface IUserGroupRequest {
|
|
179
|
+
contentId: string;
|
|
180
|
+
accessControl: {
|
|
181
|
+
version: number;
|
|
182
|
+
userGroups: {
|
|
183
|
+
userGroupId: string;
|
|
184
|
+
userGroupName: string;
|
|
185
|
+
userGroupCriteriaList: {
|
|
186
|
+
userGroupKey: string;
|
|
187
|
+
userGroupValue: string[];
|
|
188
|
+
}[];
|
|
189
|
+
}[];
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
interface IVisiblilityOnOff {
|
|
193
|
+
label: string;
|
|
194
|
+
disabled: boolean;
|
|
195
|
+
on: string;
|
|
196
|
+
off: string;
|
|
197
|
+
default: string;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
declare class AccessControlService {
|
|
201
|
+
private readonly http;
|
|
202
|
+
accessControlConfig: WritableSignal<NsAccessControlConfig.IAccessControlConfig>;
|
|
203
|
+
holdServiceCadrebatch: WritableSignal<{
|
|
204
|
+
service: {
|
|
205
|
+
id: string;
|
|
206
|
+
name: string;
|
|
207
|
+
}[];
|
|
208
|
+
batch: number[];
|
|
209
|
+
cadre: {
|
|
210
|
+
id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
}[];
|
|
213
|
+
}>;
|
|
214
|
+
customesFieldData: WritableSignal<any[]>;
|
|
215
|
+
constructor(http: HttpClient);
|
|
216
|
+
fetchUserListWithAdmin(queryString: string): Observable<any>;
|
|
217
|
+
fetchUserList(query: string, pagination: {
|
|
218
|
+
limit: number;
|
|
219
|
+
offset: number;
|
|
220
|
+
}, userIds?: string[], filters?: any, sorting?: any): Observable<any>;
|
|
221
|
+
fetchOrgList(query: string, pagination: {
|
|
222
|
+
limit: number;
|
|
223
|
+
offset: number;
|
|
224
|
+
}, selectedData?: string[], characterSearch?: string): Observable<any>;
|
|
225
|
+
validateUser(request: any): Observable<any>;
|
|
226
|
+
fetchGroupsList(): Observable<any>;
|
|
227
|
+
fetchCadreConfig(): Promise<any>;
|
|
228
|
+
fetchDesignation(query: string, pagination: {
|
|
229
|
+
pageSize: number;
|
|
230
|
+
pageNumber: number;
|
|
231
|
+
}, selectedData?: string[], characterSearch?: string): Observable<any>;
|
|
232
|
+
fetchDesignationsWithOrg(paginationOffset: number, categories: string[], query: string, selectedData?: string[], characterSearch?: string): Observable<any>;
|
|
233
|
+
applyUserGroupAccessControl(request: IUserGroupRequest): Observable<any>;
|
|
234
|
+
fetchUserGroupAccessControl(id: string): Observable<any>;
|
|
235
|
+
updateContentV3(meta: any, id: string): Observable<any>;
|
|
236
|
+
updateContentV4(meta: any, id: string): Observable<any>;
|
|
237
|
+
downloadFile(data: any, filename?: string): void;
|
|
238
|
+
convertToCSV(objArray: any, headerList: any): string;
|
|
239
|
+
createRequestContent(apiResponse: any, accessSettingsEnabled: boolean): {
|
|
240
|
+
request: {
|
|
241
|
+
content: {
|
|
242
|
+
versionKey: any;
|
|
243
|
+
accessSettingsEnabled: boolean;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
};
|
|
247
|
+
createRequesForMDOContent(apiResponse: any, accessSettingsEnabled: boolean, secureSettings: any): {
|
|
248
|
+
request: {
|
|
249
|
+
content: {
|
|
250
|
+
versionKey: any;
|
|
251
|
+
accessSettingsEnabled: boolean;
|
|
252
|
+
secureSettings: any;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
fetchCustomsField(filterCriteria: any): Observable<any>;
|
|
257
|
+
enableDeputation(value: boolean): void;
|
|
258
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlService, never>;
|
|
259
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccessControlService>;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
interface CivilServiceData {
|
|
263
|
+
civilServiceType: {
|
|
264
|
+
civilServiceTypeList: Array<{
|
|
265
|
+
id: string;
|
|
266
|
+
name: string;
|
|
267
|
+
serviceList: Array<{
|
|
268
|
+
id: string;
|
|
269
|
+
name: string;
|
|
270
|
+
commonBatchStartYear: number;
|
|
271
|
+
commonBatchEndYear: number;
|
|
272
|
+
cadreList?: Array<{
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
startBatchYear: number;
|
|
276
|
+
endBatchYear: number;
|
|
277
|
+
}>;
|
|
278
|
+
}>;
|
|
279
|
+
}>;
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
declare class CadreMappingService {
|
|
283
|
+
private allCadres;
|
|
284
|
+
private allServices;
|
|
285
|
+
private cadreToServiceMap;
|
|
286
|
+
private serviceToCadresMap;
|
|
287
|
+
private batchYearToCadresMap;
|
|
288
|
+
private batchYearToServicesMap;
|
|
289
|
+
private cadreConfigData;
|
|
290
|
+
private addToMapSet;
|
|
291
|
+
initialize(data: CivilServiceData): void;
|
|
292
|
+
getAllBatchYears(): number[];
|
|
293
|
+
getAllCadres(): Array<{
|
|
294
|
+
id: string;
|
|
295
|
+
name: string;
|
|
296
|
+
}>;
|
|
297
|
+
getAllServices(): Array<{
|
|
298
|
+
id: string;
|
|
299
|
+
name: string;
|
|
300
|
+
}>;
|
|
301
|
+
getServicesByCadres(cadreIds: string[]): Array<{
|
|
302
|
+
id: string;
|
|
303
|
+
name: string;
|
|
304
|
+
}>;
|
|
305
|
+
getCadresByServices(serviceIds: string[]): Array<{
|
|
306
|
+
id: string;
|
|
307
|
+
name: string;
|
|
308
|
+
}>;
|
|
309
|
+
getCadresByBatchYears(years: number[]): Array<{
|
|
310
|
+
id: string;
|
|
311
|
+
name: string;
|
|
312
|
+
}>;
|
|
313
|
+
getServicesByBatchYears(years: number[]): Array<{
|
|
314
|
+
id: string;
|
|
315
|
+
name: string;
|
|
316
|
+
}>;
|
|
317
|
+
getServicesByCadresAndBatch(cadreIds: string[], years: number[]): Array<{
|
|
318
|
+
id: string;
|
|
319
|
+
name: string;
|
|
320
|
+
}>;
|
|
321
|
+
getCadresByServicesAndBatch(serviceIds: string[], years: number[]): Array<{
|
|
322
|
+
id: string;
|
|
323
|
+
name: string;
|
|
324
|
+
}>;
|
|
325
|
+
getBatchYearsByCadres(cadreIds: string[]): number[];
|
|
326
|
+
getBatchYearsByServices(serviceIds: string[]): number[];
|
|
327
|
+
getBatchYearsByServicesAndCadres(serviceIds: string[], cadreIds: string[]): number[];
|
|
328
|
+
getCadreIdsByName(names: string[]): any[];
|
|
329
|
+
getServiceIdsByName(names: string[]): any[];
|
|
330
|
+
setCadreConfigData(data: CivilServiceData): void;
|
|
331
|
+
getCadreConfigData(): CivilServiceData | null;
|
|
332
|
+
getServicesByNames(names: string[]): Array<{
|
|
333
|
+
id: string;
|
|
334
|
+
name: string;
|
|
335
|
+
}>;
|
|
336
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CadreMappingService, never>;
|
|
337
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CadreMappingService>;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
declare class AccessControlComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
341
|
+
private dialog;
|
|
342
|
+
private fb;
|
|
343
|
+
private accessControlService;
|
|
344
|
+
private cadreMappingService;
|
|
345
|
+
private snackbar;
|
|
346
|
+
config: NsAccessControlConfig.IAccessControlConfig;
|
|
347
|
+
contentId: string;
|
|
348
|
+
content: any;
|
|
349
|
+
tempAccessControl: any;
|
|
350
|
+
accessControlData: EventEmitter<{
|
|
351
|
+
userGroup: any;
|
|
352
|
+
accessType: string;
|
|
353
|
+
}>;
|
|
354
|
+
refreshContentMeta: EventEmitter<boolean>;
|
|
355
|
+
sendForCQF: EventEmitter<boolean>;
|
|
356
|
+
private destroy$;
|
|
357
|
+
accessType: NsAccessControlConfig.ITypeAccessType;
|
|
358
|
+
accessTypeDup: NsAccessControlConfig.ITypeAccessType;
|
|
359
|
+
ACCESS_TYPE_ENUM: typeof NsAccessControlConfig.IAccessTypes;
|
|
360
|
+
ACCESS_SETTING_ENUM: typeof NsAccessControlConfig.IAccessSetting;
|
|
361
|
+
isLoading: boolean;
|
|
362
|
+
isVisibilityEnabled: boolean;
|
|
363
|
+
filterCriteria: boolean;
|
|
364
|
+
defaultConditionRelationship: string;
|
|
365
|
+
defaultUserGroupRelationship: string;
|
|
366
|
+
accessControlCriteriaSelection: NsAccessControlConfig.IAccessControlCriteriaSelection;
|
|
367
|
+
usersTableConfig: NsAccessControlConfig.ITableConfig;
|
|
368
|
+
accessControlForm: FormGroup;
|
|
369
|
+
MDO_SPECIFIC: NsAccessControlConfig.IAccessSetting;
|
|
370
|
+
MDO_APPLICATION: NsAccessControlConfig.Application;
|
|
371
|
+
CBP_APPLICATION: NsAccessControlConfig.Application;
|
|
372
|
+
cadreConfigData: any;
|
|
373
|
+
isSaveFltrBtnDisabled: boolean;
|
|
374
|
+
isAddUserGroupBtnDisabled: boolean;
|
|
375
|
+
isSaving: boolean;
|
|
376
|
+
userCount: any;
|
|
377
|
+
initialUserGroupValue: any;
|
|
378
|
+
canShowAccessControlTypeRadio: boolean;
|
|
379
|
+
shouldShowVisibilityToggle: boolean;
|
|
380
|
+
isCCA: boolean;
|
|
381
|
+
mdoContent: any;
|
|
382
|
+
constructor(dialog: MatDialog, fb: FormBuilder, accessControlService: AccessControlService, cadreMappingService: CadreMappingService, snackbar: MatSnackBar);
|
|
383
|
+
ngOnInit(): Promise<void>;
|
|
384
|
+
ngAfterViewInit(): void;
|
|
385
|
+
ngOnDestroy(): void;
|
|
386
|
+
fetchCadreConfigData(): Promise<void>;
|
|
387
|
+
initForm(): void;
|
|
388
|
+
get userGroup(): FormArray;
|
|
389
|
+
ruleConditions(ruleIndex: number): FormArray;
|
|
390
|
+
onAccessTypeChange(event: MatRadioChange): void;
|
|
391
|
+
addUserGroup(): void;
|
|
392
|
+
addCondition(userGroupIndex: number): void;
|
|
393
|
+
createConditionGroup(id: number, userGroupIndex: number): FormGroup;
|
|
394
|
+
/**
|
|
395
|
+
* Check if any user group has All India Services selected
|
|
396
|
+
*/
|
|
397
|
+
private hasAllIndiaServicesInAnyGroup;
|
|
398
|
+
/**
|
|
399
|
+
* Check if a specific user group has All India Services selected
|
|
400
|
+
*/
|
|
401
|
+
private hasAllIndiaServicesInUserGroup;
|
|
402
|
+
onEntityChange(userGroupIndex: number, conditionIndex: number): void;
|
|
403
|
+
onOpeningEntityChange(event: boolean, userGroupIndex: number, conditionIndex: number): void;
|
|
404
|
+
getAvailableEntities(userGroupIndex: number, currentConditionIndex: number): any[];
|
|
405
|
+
removeUserGroup(index: number): void;
|
|
406
|
+
private reindexUserCount;
|
|
407
|
+
resetUserGroup(index: number): void;
|
|
408
|
+
resetUserGroupWithSelections(userGroupIndex: number): void;
|
|
409
|
+
checkServicesAndResetReleated(userGroupIndex: number, conditionIndex: number): void;
|
|
410
|
+
removeCondition(userGroupIndex: number, conditionIndex: number): void;
|
|
411
|
+
resetCondition(userGroupIndex: number, conditionIndex: number): void;
|
|
412
|
+
manageSelections(conditionForm: any, ruleForm: any, userGroupIndex: number, activeTabSelected?: number): void;
|
|
413
|
+
openSelectionDialog(rule: any, condition: any, activeTabSelected: number, isDisabled: boolean): void;
|
|
414
|
+
private areSelectionsEqual;
|
|
415
|
+
processCadreConfigMapping(userGroupIndex: number): void;
|
|
416
|
+
processDisableAddConditionOnClose(userGroupIndex: number): void;
|
|
417
|
+
openInviteUserDialog(condition: any, rule: any, activeTabSelected: number, isDisabled: boolean): void;
|
|
418
|
+
callSnackbar(message: string, type: "success" | "error"): void;
|
|
419
|
+
validateFormData(): boolean;
|
|
420
|
+
applyAccessControlValue(shouldProceedWithoutValidation?: boolean, displaySuccessMessage?: boolean): Promise<void>;
|
|
421
|
+
processRequestCreation(): Promise<IUserGroupRequest>;
|
|
422
|
+
openInstructonsDialog(): void;
|
|
423
|
+
getAccessControl(): Promise<void>;
|
|
424
|
+
private setupFormChangeDetection;
|
|
425
|
+
processAccessControlResult(accessControl: any): void;
|
|
426
|
+
updateContentAccessSetting(): Promise<void>;
|
|
427
|
+
get hasUserGroupBeenAdded(): boolean;
|
|
428
|
+
get getTotalUserCount(): number;
|
|
429
|
+
processConditionsForContentType(): void;
|
|
430
|
+
calculateUserCountForUserGroup(userGroupIndex: number, conditionIndex?: number): Promise<void>;
|
|
431
|
+
isUserGroupFormChanged(initialValue: any): boolean;
|
|
432
|
+
checkForResetFilter(condition: any, rule: any, userGroupIndex: any): boolean;
|
|
433
|
+
hasOnlyOneArrayWithLength(data: any, key: any): boolean;
|
|
434
|
+
resetActiveUserGroupFields(condition: any, rule: any, userGroupIndex: any): void;
|
|
435
|
+
getCustomsField(): void;
|
|
436
|
+
private getStorageKey;
|
|
437
|
+
private saveInitialState;
|
|
438
|
+
private getInitialState;
|
|
439
|
+
processTempAccessControl(tempAccessControl: any): void;
|
|
440
|
+
get canAddUserGroup(): boolean;
|
|
441
|
+
get isCuratedContentWithExternalId(): boolean;
|
|
442
|
+
saveAccessSettings(): void;
|
|
443
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlComponent, never>;
|
|
444
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccessControlComponent, "sb-uic-access-control", never, { "config": { "alias": "config"; "required": false; }; "contentId": { "alias": "contentId"; "required": false; }; "content": { "alias": "content"; "required": false; }; "tempAccessControl": { "alias": "tempAccessControl"; "required": false; }; }, { "accessControlData": "accessControlData"; "refreshContentMeta": "refreshContentMeta"; "sendForCQF": "sendForCQF"; }, never, never, false, never>;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
interface PageChangeEmitter {
|
|
448
|
+
currentPage: number;
|
|
449
|
+
previousPage: number;
|
|
450
|
+
limit: number;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare class InviteUsersComponent implements OnInit, OnDestroy {
|
|
454
|
+
dialogRef: MatDialogRef<InviteUsersComponent>;
|
|
455
|
+
private accessControlService;
|
|
456
|
+
private snackbar;
|
|
457
|
+
readonly data: any;
|
|
458
|
+
private destroy$;
|
|
459
|
+
searchControl: FormControl<string>;
|
|
460
|
+
filterValue: NsAccessControlConfig.IManageSelectionType;
|
|
461
|
+
usersList: any[];
|
|
462
|
+
totalUsers: number;
|
|
463
|
+
holdSelectedUsers: any[];
|
|
464
|
+
finalSelectedUsers: any[];
|
|
465
|
+
usersFinalList: any[];
|
|
466
|
+
bulkUploadUserList: any[];
|
|
467
|
+
usersTableConfig: NsAccessControlConfig.ITableConfig;
|
|
468
|
+
usersLoading: boolean;
|
|
469
|
+
activeTab: number;
|
|
470
|
+
sortState: any;
|
|
471
|
+
pagination: {
|
|
472
|
+
limit: number;
|
|
473
|
+
offset: number;
|
|
474
|
+
};
|
|
475
|
+
filters: any;
|
|
476
|
+
currentPage: number;
|
|
477
|
+
isCCA: boolean;
|
|
478
|
+
constructor(dialogRef: MatDialogRef<InviteUsersComponent>, accessControlService: AccessControlService, snackbar: MatSnackBar);
|
|
479
|
+
ngOnInit(): void;
|
|
480
|
+
ngOnDestroy(): void;
|
|
481
|
+
onClose(): void;
|
|
482
|
+
search(): void;
|
|
483
|
+
onFilterChange(event: any): void;
|
|
484
|
+
getUsersList(query: string, limit?: number, offset?: number, userIds?: string[], filters?: any, sorting?: any): void;
|
|
485
|
+
onSelectingUser(event: any): void;
|
|
486
|
+
selectUsers(): void;
|
|
487
|
+
onPageChange(event: PageChangeEmitter): void;
|
|
488
|
+
removedUserData(event: any): void;
|
|
489
|
+
onSelectingUserToApply(event: any): void;
|
|
490
|
+
applySelections(): void;
|
|
491
|
+
isArrayOfObjects(arr: any): boolean;
|
|
492
|
+
onSortChange(sortState: any): void;
|
|
493
|
+
resetPagination(): void;
|
|
494
|
+
onApplyingUserBulkUpload(event: any): void;
|
|
495
|
+
applySelectionsBulk(): void;
|
|
496
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InviteUsersComponent, never>;
|
|
497
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InviteUsersComponent, "sb-uic-invite-users", never, {}, {}, never, never, false, never>;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare class ListTableComponent implements OnInit, OnChanges, AfterViewInit {
|
|
501
|
+
private _liveAnnouncer;
|
|
502
|
+
data: any[];
|
|
503
|
+
count: number;
|
|
504
|
+
initialPaginationSize: number;
|
|
505
|
+
initialPaginationSizeOptions: number[];
|
|
506
|
+
tableConfig: any;
|
|
507
|
+
selected: any;
|
|
508
|
+
bulkUploadEntriesCount: any;
|
|
509
|
+
currentPage: number;
|
|
510
|
+
isDisabled: boolean;
|
|
511
|
+
selectedDataChange: EventEmitter<any>;
|
|
512
|
+
pageChange: EventEmitter<PageChangeEmitter>;
|
|
513
|
+
removeSelectedData: EventEmitter<any>;
|
|
514
|
+
sortChange: EventEmitter<any>;
|
|
515
|
+
sort: MatSort;
|
|
516
|
+
dataSource: MatTableDataSource<any, node_modules__angular_material_paginator_d.MatPaginator>;
|
|
517
|
+
selection: SelectionModel<any>;
|
|
518
|
+
selectedTablerow: any[];
|
|
519
|
+
constructor(_liveAnnouncer: LiveAnnouncer);
|
|
520
|
+
ngOnInit(): void;
|
|
521
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
522
|
+
ngAfterViewInit(): void;
|
|
523
|
+
setPaginatedUsers(page: number): void;
|
|
524
|
+
isAllSelected(): boolean;
|
|
525
|
+
masterToggle(): void;
|
|
526
|
+
toggleSelection(row: any): void;
|
|
527
|
+
onPageChange(event: PageChangeEmitter): void;
|
|
528
|
+
removeUserFromSelected(): void;
|
|
529
|
+
onSortChange(sortState: Sort): void;
|
|
530
|
+
refreshSelected(): void;
|
|
531
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListTableComponent, never>;
|
|
532
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ListTableComponent, "sb-uic-list-table", never, { "data": { "alias": "data"; "required": false; }; "count": { "alias": "count"; "required": false; }; "initialPaginationSize": { "alias": "initialPaginationSize"; "required": false; }; "initialPaginationSizeOptions": { "alias": "initialPaginationSizeOptions"; "required": false; }; "tableConfig": { "alias": "tableConfig"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "bulkUploadEntriesCount": { "alias": "bulkUploadEntriesCount"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, { "selectedDataChange": "selectedDataChange"; "pageChange": "pageChange"; "removeSelectedData": "removeSelectedData"; "sortChange": "sortChange"; }, never, never, false, never>;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
declare class PaginationComponent implements OnInit, OnChanges {
|
|
536
|
+
private _currentPage;
|
|
537
|
+
defaultPaginationSize: number;
|
|
538
|
+
defaultPaginationSizeOptions: number[];
|
|
539
|
+
totalItemsCount: number;
|
|
540
|
+
set currentPage(value: number);
|
|
541
|
+
get currentPage(): number;
|
|
542
|
+
pageChange: EventEmitter<PageChangeEmitter>;
|
|
543
|
+
pagination: any;
|
|
544
|
+
rangeWithDots: any;
|
|
545
|
+
showingArray: any[];
|
|
546
|
+
lastPage: number;
|
|
547
|
+
firstPage: number;
|
|
548
|
+
previousPage: number;
|
|
549
|
+
ngOnInit(): void;
|
|
550
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
551
|
+
paginationInListing(): void;
|
|
552
|
+
paginationDup(c: any, m: any): any;
|
|
553
|
+
goToPage(page: number): void;
|
|
554
|
+
navigateToLastPage(page: number): void;
|
|
555
|
+
navigateToFirstPage(page: number): void;
|
|
556
|
+
navigateToNextPage(page: number): void;
|
|
557
|
+
navigateToPrevPage(page: number): void;
|
|
558
|
+
onChangePageSize(event: any): void;
|
|
559
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
560
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "sb-uic-pagination", never, { "defaultPaginationSize": { "alias": "defaultPaginationSize"; "required": false; }; "defaultPaginationSizeOptions": { "alias": "defaultPaginationSizeOptions"; "required": false; }; "totalItemsCount": { "alias": "totalItemsCount"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, { "pageChange": "pageChange"; }, never, never, false, never>;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare class BulkUploadKarmayogiComponent {
|
|
564
|
+
private accessControlService;
|
|
565
|
+
private snackBar;
|
|
566
|
+
appliedUser: EventEmitter<any>;
|
|
567
|
+
isDisabled: boolean;
|
|
568
|
+
bulkUploadConfig: NsAccessControlConfig.IBulkUploadKarmayogi;
|
|
569
|
+
file: File | null;
|
|
570
|
+
currrentFilterType: string;
|
|
571
|
+
csvContent: any;
|
|
572
|
+
contacts: any;
|
|
573
|
+
properties: any;
|
|
574
|
+
flag: boolean;
|
|
575
|
+
fileUploading: boolean;
|
|
576
|
+
isSuccessUserlist: any;
|
|
577
|
+
isErrorUserlist: any;
|
|
578
|
+
fileName: string;
|
|
579
|
+
currentDate: Date;
|
|
580
|
+
holdSelectedUsers: any[];
|
|
581
|
+
finalSelectedUsers: any[];
|
|
582
|
+
isCCA: boolean;
|
|
583
|
+
constructor(accessControlService: AccessControlService, snackBar: MatSnackBar);
|
|
584
|
+
downloadSample(): void;
|
|
585
|
+
onDrop(input: HTMLInputElement): void;
|
|
586
|
+
onFileLoad(fileLoadedEvent: any): Promise<void>;
|
|
587
|
+
callUserCheckApi(userData: any, key: any): Promise<any>;
|
|
588
|
+
manageData(userEmailData: any, userMobileData: any): void;
|
|
589
|
+
onFilterChange(type: string): void;
|
|
590
|
+
downloadErrorFile(): void;
|
|
591
|
+
onSelectingUser(event: any): void;
|
|
592
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BulkUploadKarmayogiComponent, never>;
|
|
593
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BulkUploadKarmayogiComponent, "sb-uic-bulk-upload-karmayogi", never, { "isDisabled": { "alias": "isDisabled"; "required": false; }; }, { "appliedUser": "appliedUser"; }, never, never, false, never>;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
declare class DragDropDirective {
|
|
597
|
+
fileDropped: EventEmitter<any>;
|
|
598
|
+
opacity: string;
|
|
599
|
+
onDragOver(evt: Event): void;
|
|
600
|
+
onDragLeave(evt: Event): void;
|
|
601
|
+
ondrop(evt: any): void;
|
|
602
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
|
|
603
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[wsAuthDragDrop]", never, {}, { "fileDropped": "fileDropped"; }, never, never, false, never>;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
declare class EntitySelectionsComponent implements OnInit, OnDestroy {
|
|
607
|
+
dialogRef: MatDialogRef<EntitySelectionsComponent>;
|
|
608
|
+
private accessControlService;
|
|
609
|
+
private cadreMappingService;
|
|
610
|
+
tabGroupRef: ElementRef;
|
|
611
|
+
private destroy$;
|
|
612
|
+
isLoading: boolean;
|
|
613
|
+
searchControl: FormControl<string>;
|
|
614
|
+
filterValue: "all" | "selected" | "notSelected";
|
|
615
|
+
alphabet: string[];
|
|
616
|
+
dataList: any[];
|
|
617
|
+
dataListDup: any[];
|
|
618
|
+
selectedCentralDeputation: boolean;
|
|
619
|
+
selectedData: any[];
|
|
620
|
+
selectedDataTemp: any[];
|
|
621
|
+
groupedEntityData: {
|
|
622
|
+
[key: string]: any[];
|
|
623
|
+
};
|
|
624
|
+
selectionType: any;
|
|
625
|
+
selectionTypeEnum: typeof NsAccessControlConfig.SelectionType;
|
|
626
|
+
radioSelections: {
|
|
627
|
+
value: string;
|
|
628
|
+
label: string;
|
|
629
|
+
}[];
|
|
630
|
+
batchRanges: any;
|
|
631
|
+
selectedCharacterRange: string;
|
|
632
|
+
accessControlCriteriaSelection: NsAccessControlConfig.IAccessControlCriteriaSelection;
|
|
633
|
+
activeTab: number;
|
|
634
|
+
userProfile: any;
|
|
635
|
+
content: any;
|
|
636
|
+
searchedOrganisationFlagWithQuery: boolean;
|
|
637
|
+
readonly data: {
|
|
638
|
+
rule: any;
|
|
639
|
+
condition: any;
|
|
640
|
+
selected: any[];
|
|
641
|
+
activeTabSelected: number;
|
|
642
|
+
disabled: boolean;
|
|
643
|
+
};
|
|
644
|
+
searchedDesignationFlagWithQuery: any;
|
|
645
|
+
orgSelectionIds: any[];
|
|
646
|
+
paginationOffset: number;
|
|
647
|
+
totalItemsCount: number;
|
|
648
|
+
paginationLImit: number;
|
|
649
|
+
isFetchingMore: boolean;
|
|
650
|
+
application: string;
|
|
651
|
+
APPLICATION_ENUM: typeof NsAccessControlConfig.Application;
|
|
652
|
+
rawCadreconfigData: any;
|
|
653
|
+
accessControlConfig: NsAccessControlConfig.IAccessControlConfig | null;
|
|
654
|
+
serviceSelectionTypes: string[];
|
|
655
|
+
selectedServiceType: string;
|
|
656
|
+
customeFieldValues: any;
|
|
657
|
+
isEntityCustomField: boolean;
|
|
658
|
+
entityFilterOptions: {
|
|
659
|
+
label: string;
|
|
660
|
+
value: string;
|
|
661
|
+
}[];
|
|
662
|
+
isCCA: boolean;
|
|
663
|
+
environment: any;
|
|
664
|
+
ODCSMasterFramework: any;
|
|
665
|
+
applyNewServiceSelections: boolean;
|
|
666
|
+
canLoadMasterDesignation: boolean;
|
|
667
|
+
constructor(dialogRef: MatDialogRef<EntitySelectionsComponent>, accessControlService: AccessControlService, cadreMappingService: CadreMappingService, environment: any);
|
|
668
|
+
ngOnInit(): void;
|
|
669
|
+
initializeDisplay(): void;
|
|
670
|
+
onClose(): void;
|
|
671
|
+
private getSelectionValue;
|
|
672
|
+
isSelected(item: any): boolean;
|
|
673
|
+
toggleSelection(item: any): void;
|
|
674
|
+
setSelected(): void;
|
|
675
|
+
onFilterChange(event: MatTabChangeEvent): void;
|
|
676
|
+
search(): void;
|
|
677
|
+
getFilteredEntityGrouped(): void;
|
|
678
|
+
scrollToSection(letter: string): void;
|
|
679
|
+
private updateAlphabet;
|
|
680
|
+
get checkIfData(): boolean;
|
|
681
|
+
onScrollPaginate(event: any): void;
|
|
682
|
+
loadMore(): void;
|
|
683
|
+
getOrganisationsList(query: string, selectedData?: string[], character?: string, append?: boolean): void;
|
|
684
|
+
getDesignationsList(paginationOffset: number, query: string, selectedData?: string[], character?: string, append?: boolean): void;
|
|
685
|
+
getServicesList(query: string): void;
|
|
686
|
+
getCadreList(query: string): void;
|
|
687
|
+
getBatchList(query: string): void;
|
|
688
|
+
getGroupList(): void;
|
|
689
|
+
getVerificationStatus(): void;
|
|
690
|
+
getCustomsFieldList(): void;
|
|
691
|
+
updateBatchRanges(): void;
|
|
692
|
+
groupBatchByRange(batchList: number[]): {
|
|
693
|
+
[key: string]: number[];
|
|
694
|
+
};
|
|
695
|
+
getModalTitle(): string;
|
|
696
|
+
applySelections(): void;
|
|
697
|
+
chunkArray<T>(array: T[], chunkSize: number): T[][];
|
|
698
|
+
ngOnDestroy(): void;
|
|
699
|
+
onVerificationChange(event: MatRadioChange): void;
|
|
700
|
+
isSelectedVerification(event: any): boolean;
|
|
701
|
+
disableOrganisationIfModerated(item: any): boolean;
|
|
702
|
+
disabledVerifiedIfModerated(item: any): boolean;
|
|
703
|
+
onChangeServiceSelectionType(event: MatRadioChange): void;
|
|
704
|
+
checkIfCustomeField(condition: any): boolean;
|
|
705
|
+
isCentralDeputationSelected(isDeputation: string): boolean;
|
|
706
|
+
onCentralDeputationChange(event: any): void;
|
|
707
|
+
selectAvailableOptions(event: MatCheckboxChange): void;
|
|
708
|
+
areAllSelected(): boolean;
|
|
709
|
+
isOptionSelected(value: string): boolean;
|
|
710
|
+
capitalizeFirstLetter(str: string): string;
|
|
711
|
+
loadMoreDesignation(): void;
|
|
712
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EntitySelectionsComponent, never>;
|
|
713
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EntitySelectionsComponent, "sb-uic-entity-selections", never, {}, {}, never, never, false, never>;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
declare class ConfirmDialogComponent {
|
|
717
|
+
dialogRef: MatDialogRef<ConfirmDialogComponent>;
|
|
718
|
+
readonly data: {
|
|
719
|
+
additionalData: string;
|
|
720
|
+
type: "delete" | "confirm-access-type";
|
|
721
|
+
};
|
|
722
|
+
constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>);
|
|
723
|
+
confirmNo(): void;
|
|
724
|
+
confirmYes(): void;
|
|
725
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
|
|
726
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "sb-uic-confirm-dialog", never, {}, {}, never, never, false, never>;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
declare class AccessControlGuideComponent implements OnInit {
|
|
730
|
+
dialogRef: MatDialogRef<AccessControlGuideComponent>;
|
|
731
|
+
private accessControlService;
|
|
732
|
+
accessControlGuideConfig: NsAccessControlConfig.IAccessControlGuide;
|
|
733
|
+
constructor(dialogRef: MatDialogRef<AccessControlGuideComponent>, accessControlService: AccessControlService);
|
|
734
|
+
ngOnInit(): void;
|
|
735
|
+
onClose(): void;
|
|
736
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlGuideComponent, never>;
|
|
737
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccessControlGuideComponent, "sb-uic-access-control-guide", never, {}, {}, never, never, false, never>;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
declare class AccessControlModule {
|
|
741
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlModule, never>;
|
|
742
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AccessControlModule, [typeof AccessControlComponent, typeof InviteUsersComponent, typeof ListTableComponent, typeof PaginationComponent, typeof BulkUploadKarmayogiComponent, typeof DragDropDirective, typeof EntitySelectionsComponent, typeof ConfirmDialogComponent, typeof AccessControlGuideComponent], [typeof i4.CommonModule, typeof i11.MatRadioModule, typeof i3.MatIconModule, typeof i13.MatDialogModule, typeof i14.MatMenuModule, typeof i15.MatCheckboxModule, typeof i16.MatSlideToggleModule, typeof i17.MatSelectModule, typeof i18.MatRippleModule, typeof i19.MatInputModule, typeof i20.MatFormFieldModule, typeof i21.MatExpansionModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule, typeof i23.MatButtonModule, typeof i24.MatTabsModule, typeof i25.MatTableModule, typeof i26.MatProgressSpinnerModule, typeof i27.MatSnackBarModule, typeof i28.MatSortModule, typeof i29.MatTooltipModule], [typeof AccessControlComponent, typeof PaginationComponent]>;
|
|
743
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AccessControlModule>;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export { AccessControlComponent, AccessControlModule, AccessSettingsComponent, AccessSettingsModule, NsAccessControlConfig, PaginationComponent };
|
|
747
|
+
export type { IUserGroupRequest, IVisiblilityOnOff };
|
|
748
|
+
//# sourceMappingURL=index.d.ts.map
|