@sunbird-cb/access-settings 0.0.1-cbrelease-4.8.26

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.
Files changed (64) hide show
  1. package/README.md +24 -0
  2. package/esm2022/lib/_common/access-control/access-control.component.mjs +561 -0
  3. package/esm2022/lib/_common/access-control/access-control.module.mjs +125 -0
  4. package/esm2022/lib/_common/dialogs/access-control-guide/access-control-guide.component.mjs +27 -0
  5. package/esm2022/lib/_common/dialogs/confirm-dialog/confirm-dialog.component.mjs +27 -0
  6. package/esm2022/lib/_common/dialogs/entity-selections/entity-selections.component.mjs +371 -0
  7. package/esm2022/lib/_common/dialogs/invite-users/invite-users.component.mjs +116 -0
  8. package/esm2022/lib/_common/pagination/pagination.component.mjs +168 -0
  9. package/esm2022/lib/_constants/app.constants.mjs +6 -0
  10. package/esm2022/lib/_directives/drag-drop.directive.mjs +53 -0
  11. package/esm2022/lib/_models/access-control.model.mjs +31 -0
  12. package/esm2022/lib/_models/pagination.model.mjs +2 -0
  13. package/esm2022/lib/_services/access-control.service.mjs +195 -0
  14. package/esm2022/lib/_services/cadre-mapping.service.mjs +164 -0
  15. package/esm2022/lib/access-settings.component.mjs +13 -0
  16. package/esm2022/lib/access-settings.module.mjs +21 -0
  17. package/esm2022/lib/components/bulk-upload-karmayogi/bulk-upload-karmayogi.component.mjs +391 -0
  18. package/esm2022/lib/components/list-table/list-table.component.mjs +148 -0
  19. package/esm2022/lib/components/snackbar/snackbar.component.mjs +19 -0
  20. package/esm2022/public-api.mjs +10 -0
  21. package/esm2022/sunbird-cb-access-settings.mjs +5 -0
  22. package/fesm2022/sunbird-cb-access-settings.mjs +2331 -0
  23. package/fesm2022/sunbird-cb-access-settings.mjs.map +1 -0
  24. package/index.d.ts +6 -0
  25. package/lib/_common/access-control/access-control.component.d.ts +71 -0
  26. package/lib/_common/access-control/access-control.component.d.ts.map +1 -0
  27. package/lib/_common/access-control/access-control.module.d.ts +36 -0
  28. package/lib/_common/access-control/access-control.module.d.ts.map +1 -0
  29. package/lib/_common/dialogs/access-control-guide/access-control-guide.component.d.ts +16 -0
  30. package/lib/_common/dialogs/access-control-guide/access-control-guide.component.d.ts.map +1 -0
  31. package/lib/_common/dialogs/confirm-dialog/confirm-dialog.component.d.ts +15 -0
  32. package/lib/_common/dialogs/confirm-dialog/confirm-dialog.component.d.ts.map +1 -0
  33. package/lib/_common/dialogs/entity-selections/entity-selections.component.d.ts +65 -0
  34. package/lib/_common/dialogs/entity-selections/entity-selections.component.d.ts.map +1 -0
  35. package/lib/_common/dialogs/invite-users/invite-users.component.d.ts +40 -0
  36. package/lib/_common/dialogs/invite-users/invite-users.component.d.ts.map +1 -0
  37. package/lib/_common/pagination/pagination.component.d.ts +31 -0
  38. package/lib/_common/pagination/pagination.component.d.ts.map +1 -0
  39. package/lib/_constants/app.constants.d.ts +6 -0
  40. package/lib/_constants/app.constants.d.ts.map +1 -0
  41. package/lib/_directives/drag-drop.directive.d.ts +12 -0
  42. package/lib/_directives/drag-drop.directive.d.ts.map +1 -0
  43. package/lib/_models/access-control.model.d.ts +106 -0
  44. package/lib/_models/access-control.model.d.ts.map +1 -0
  45. package/lib/_models/pagination.model.d.ts +6 -0
  46. package/lib/_models/pagination.model.d.ts.map +1 -0
  47. package/lib/_services/access-control.service.d.ts +72 -0
  48. package/lib/_services/access-control.service.d.ts.map +1 -0
  49. package/lib/_services/cadre-mapping.service.d.ts +71 -0
  50. package/lib/_services/cadre-mapping.service.d.ts.map +1 -0
  51. package/lib/access-settings.component.d.ts +9 -0
  52. package/lib/access-settings.component.d.ts.map +1 -0
  53. package/lib/access-settings.module.d.ts +12 -0
  54. package/lib/access-settings.module.d.ts.map +1 -0
  55. package/lib/components/bulk-upload-karmayogi/bulk-upload-karmayogi.component.d.ts +31 -0
  56. package/lib/components/bulk-upload-karmayogi/bulk-upload-karmayogi.component.d.ts.map +1 -0
  57. package/lib/components/list-table/list-table.component.d.ts +40 -0
  58. package/lib/components/list-table/list-table.component.d.ts.map +1 -0
  59. package/lib/components/snackbar/snackbar.component.d.ts +13 -0
  60. package/lib/components/snackbar/snackbar.component.d.ts.map +1 -0
  61. package/package.json +28 -0
  62. package/public-api.d.ts +7 -0
  63. package/public-api.d.ts.map +1 -0
  64. package/sunbird-cb-access-settings.d.ts.map +1 -0
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sunbird-cb/access-settings" />
5
+ export * from './public-api';
6
+ //# sourceMappingURL=sunbird-cb-access-settings.d.ts.map
@@ -0,0 +1,71 @@
1
+ import { EventEmitter, OnInit } from "@angular/core";
2
+ import { MatDialog } from "@angular/material/dialog";
3
+ import { IUserGroupRequest, NsAccessControlConfig } from "../../_models/access-control.model";
4
+ import { FormBuilder, FormGroup, FormArray } from "@angular/forms";
5
+ import { AccessControlService } from "../../_services/access-control.service";
6
+ import { CadreMappingService } from "../../_services/cadre-mapping.service";
7
+ import { MatLegacySnackBar as MatSnackBar } from "@angular/material/legacy-snack-bar";
8
+ import * as i0 from "@angular/core";
9
+ export declare class AccessControlComponent implements OnInit {
10
+ private dialog;
11
+ private fb;
12
+ private accessControlService;
13
+ private cadreMappingService;
14
+ private snackbar;
15
+ config: NsAccessControlConfig.IAccessControlConfig;
16
+ contentId: string;
17
+ content: any;
18
+ accessControlData: EventEmitter<{
19
+ userGroup: any[];
20
+ accessType: string;
21
+ }>;
22
+ accessType: NsAccessControlConfig.ITypeAccessType;
23
+ ACCESS_TYPE_ENUM: typeof NsAccessControlConfig.IAccessTypes;
24
+ isLoading: boolean;
25
+ isVisibilityEnabled: boolean;
26
+ filterCriteria: boolean;
27
+ defaultConditionRelationship: string;
28
+ defaultUserGroupRelationship: string;
29
+ accessControlCriteriaSelection: NsAccessControlConfig.IAccessControlCriteriaSelection;
30
+ usersTableConfig: NsAccessControlConfig.ITableConfig;
31
+ accessControlForm: FormGroup;
32
+ cadreConfigData: any;
33
+ isSaveFltrBtnDisabled: boolean;
34
+ isApplyBtnDisabled: boolean;
35
+ isApplying: boolean;
36
+ isSaving: boolean;
37
+ constructor(dialog: MatDialog, fb: FormBuilder, accessControlService: AccessControlService, cadreMappingService: CadreMappingService, snackbar: MatSnackBar);
38
+ ngOnInit(): void;
39
+ fetchCadreConfigData(): void;
40
+ initForm(): void;
41
+ get userGroup(): FormArray;
42
+ ruleConditions(ruleIndex: number): FormArray;
43
+ onAccessTypeChange(event: any): void;
44
+ addUserGroup(): void;
45
+ addCondition(userGroupIndex: number): void;
46
+ createConditionGroup(id: number, userGroupIndex: number): FormGroup;
47
+ onEntityChange(userGroupIndex: number, conditionIndex: number): void;
48
+ getAvailableEntities(userGroupIndex: number, currentConditionIndex: number): {
49
+ value: string;
50
+ label: string;
51
+ }[];
52
+ removeUserGroup(index: number): void;
53
+ resetUserGroup(index: number): void;
54
+ removeCondition(userGroupIndex: number, conditionIndex: number): void;
55
+ resetCondition(userGroupIndex: number, conditionIndex: number): void;
56
+ manageSelections(condition: any, rule: any, userGroupIndex: number): void;
57
+ openSelectionDialog(rule: any, condition: any): void;
58
+ private areSelectionsEqual;
59
+ processCadreConfigMapping(userGroupIndex: number): void;
60
+ openInviteUserDialog(condition: any, rule: any): void;
61
+ callSnackbar(message: string, type: "success" | "error"): void;
62
+ applyAccessControlValue(): Promise<void>;
63
+ processRequestCreation(): Promise<IUserGroupRequest>;
64
+ openInstructonsDialog(): void;
65
+ getAccessControl(): Promise<void>;
66
+ processAccessControlResult(accessControl: any): void;
67
+ updateContentAccessSetting(): Promise<void>;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlComponent, never>;
69
+ 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; }; }, { "accessControlData": "accessControlData"; }, never, never, false, never>;
70
+ }
71
+ //# sourceMappingURL=access-control.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-control.component.d.ts","sourceRoot":"","sources":["../../../../../../library/sunbird-cb/access-settings/src/lib/_common/access-control/access-control.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAS,MAAM,EAAU,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAG9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAE5E,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAC;;AAItF,qBAKa,sBAAuB,YAAW,MAAM;IA2BjD,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,EAAE;IACV,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,mBAAmB;IAC3B,OAAO,CAAC,QAAQ;IA9BT,MAAM,EAAG,qBAAqB,CAAC,oBAAoB,CAAC;IACpD,SAAS,EAAE,MAAM,CAAM;IACvB,OAAO,EAAE,GAAG,CAAC;IAEZ,iBAAiB,EAAE,YAAY,CAAC;QAAE,SAAS,EAAE,GAAG,EAAE,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAsB;IAEzG,UAAU,EAAE,qBAAqB,CAAC,eAAe,CAA6C;IAC9F,gBAAgB,4CAAsC;IAEtD,SAAS,UAAS;IAClB,mBAAmB,EAAE,OAAO,CAAS;IACrC,cAAc,EAAE,OAAO,CAAS;IAEhC,4BAA4B,EAAE,MAAM,CAAS;IAC7C,4BAA4B,EAAE,MAAM,CAAQ;IAE5C,8BAA8B,EAAG,qBAAqB,CAAC,+BAA+B,CAAC;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AG,IAAI;IAyCpD,OAAO,CAAC,kBAAkB;IAK1B,yBAAyB,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI;IAyEvD,oBAAoB,CAAC,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,GAAG,IAAI;IAwBrD,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,IAAI;IAgBxD,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC;IAwB9C,sBAAsB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAuCpD,qBAAqB,IAAI,IAAI;IAMvB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAavC,0BAA0B,CAAC,aAAa,EAAE,GAAG,GAAG,IAAI;IAiD9C,0BAA0B,IAAI,OAAO,CAAC,IAAI,CAAC;yCArkBtC,sBAAsB;2CAAtB,sBAAsB;CA0kBlC"}
@@ -0,0 +1,36 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./access-control.component";
3
+ import * as i2 from "../dialogs/invite-users/invite-users.component";
4
+ import * as i3 from "../../components/list-table/list-table.component";
5
+ import * as i4 from "../pagination/pagination.component";
6
+ import * as i5 from "../../components/bulk-upload-karmayogi/bulk-upload-karmayogi.component";
7
+ import * as i6 from "../../_directives/drag-drop.directive";
8
+ import * as i7 from "../dialogs/entity-selections/entity-selections.component";
9
+ import * as i8 from "../dialogs/confirm-dialog/confirm-dialog.component";
10
+ import * as i9 from "../dialogs/access-control-guide/access-control-guide.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@angular/material/legacy-radio";
13
+ import * as i12 from "@angular/material/icon";
14
+ import * as i13 from "@angular/material/dialog";
15
+ import * as i14 from "@angular/material/legacy-menu";
16
+ import * as i15 from "@angular/material/legacy-checkbox";
17
+ import * as i16 from "@angular/material/legacy-slide-toggle";
18
+ import * as i17 from "@angular/material/legacy-select";
19
+ import * as i18 from "@angular/material/core";
20
+ import * as i19 from "@angular/material/legacy-input";
21
+ import * as i20 from "@angular/material/legacy-form-field";
22
+ import * as i21 from "@angular/material/expansion";
23
+ import * as i22 from "@angular/forms";
24
+ import * as i23 from "@angular/material/legacy-button";
25
+ import * as i24 from "@angular/material/tabs";
26
+ import * as i25 from "@angular/material/table";
27
+ import * as i26 from "@angular/material/legacy-progress-spinner";
28
+ import * as i27 from "@angular/material/legacy-snack-bar";
29
+ import * as i28 from "@angular/material/sort";
30
+ import * as i29 from "@angular/material/tooltip";
31
+ export declare class AccessControlModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AccessControlModule, [typeof i1.AccessControlComponent, typeof i2.InviteUsersComponent, typeof i3.ListTableComponent, typeof i4.PaginationComponent, typeof i5.BulkUploadKarmayogiComponent, typeof i6.DragDropDirective, typeof i7.EntitySelectionsComponent, typeof i8.ConfirmDialogComponent, typeof i9.AccessControlGuideComponent], [typeof i10.CommonModule, typeof i11.MatLegacyRadioModule, typeof i12.MatIconModule, typeof i13.MatDialogModule, typeof i14.MatLegacyMenuModule, typeof i15.MatLegacyCheckboxModule, typeof i16.MatLegacySlideToggleModule, typeof i17.MatLegacySelectModule, typeof i18.MatRippleModule, typeof i19.MatLegacyInputModule, typeof i20.MatLegacyFormFieldModule, typeof i21.MatExpansionModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule, typeof i23.MatLegacyButtonModule, typeof i24.MatTabsModule, typeof i25.MatTableModule, typeof i26.MatLegacyProgressSpinnerModule, typeof i27.MatLegacySnackBarModule, typeof i28.MatSortModule, typeof i29.MatTooltipModule], [typeof i1.AccessControlComponent, typeof i4.PaginationComponent]>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<AccessControlModule>;
35
+ }
36
+ //# sourceMappingURL=access-control.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-control.module.d.ts","sourceRoot":"","sources":["../../../../../../library/sunbird-cb/access-settings/src/lib/_common/access-control/access-control.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,qBAqCa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
@@ -0,0 +1,16 @@
1
+ import { OnInit } from "@angular/core";
2
+ import { MatDialogRef } from "@angular/material/dialog";
3
+ import { AccessControlService } from "../../../_services/access-control.service";
4
+ import { NsAccessControlConfig } from "../../../_models/access-control.model";
5
+ import * as i0 from "@angular/core";
6
+ export declare class AccessControlGuideComponent implements OnInit {
7
+ dialogRef: MatDialogRef<AccessControlGuideComponent>;
8
+ private accessControlService;
9
+ accessControlGuideConfig: NsAccessControlConfig.IAccessControlGuide;
10
+ constructor(dialogRef: MatDialogRef<AccessControlGuideComponent>, accessControlService: AccessControlService);
11
+ ngOnInit(): void;
12
+ onClose(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlGuideComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccessControlGuideComponent, "sb-uic-access-control-guide", never, {}, {}, never, never, false, never>;
15
+ }
16
+ //# sourceMappingURL=access-control-guide.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-control-guide.component.d.ts","sourceRoot":"","sources":["../../../../../../../library/sunbird-cb/access-settings/src/lib/_common/dialogs/access-control-guide/access-control-guide.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;;AAE9E,qBAKa,2BAA4B,YAAW,MAAM;IAErC,SAAS,EAAE,YAAY,CAAC,2BAA2B,CAAC;IAAE,OAAO,CAAC,oBAAoB;IADrG,wBAAwB,EAAE,qBAAqB,CAAC,mBAAmB,CAAC;gBACjD,SAAS,EAAE,YAAY,CAAC,2BAA2B,CAAC,EAAU,oBAAoB,EAAE,oBAAoB;IAE3H,QAAQ,IAAI,IAAI;IAIhB,OAAO;yCARI,2BAA2B;2CAA3B,2BAA2B;CAWvC"}
@@ -0,0 +1,15 @@
1
+ import { MatDialogRef } from "@angular/material/dialog";
2
+ import * as i0 from "@angular/core";
3
+ export declare class ConfirmDialogComponent {
4
+ dialogRef: MatDialogRef<ConfirmDialogComponent>;
5
+ readonly data: {
6
+ additionalData: string;
7
+ type: "delete" | "confirm-access-type";
8
+ };
9
+ constructor(dialogRef: MatDialogRef<ConfirmDialogComponent>);
10
+ confirmNo(): void;
11
+ confirmYes(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialogComponent, "sb-uic-confirm-dialog", never, {}, {}, never, never, false, never>;
14
+ }
15
+ //# sourceMappingURL=confirm-dialog.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm-dialog.component.d.ts","sourceRoot":"","sources":["../../../../../../../library/sunbird-cb/access-settings/src/lib/_common/dialogs/confirm-dialog/confirm-dialog.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,YAAY,EAAE,MAAM,0BAA0B,CAAC;;AAGzE,qBAKa,sBAAsB;IAEd,SAAS,EAAE,YAAY,CAAC,sBAAsB,CAAC;IADlE,SAAgB,IAAI;wBAA4B,MAAM;cAAQ,QAAQ,GAAG,qBAAqB;MAAqB;gBAChG,SAAS,EAAE,YAAY,CAAC,sBAAsB,CAAC;IAElE,SAAS,IAAI,IAAI;IAGjB,UAAU,IAAI,IAAI;yCAPP,sBAAsB;2CAAtB,sBAAsB;CAUlC"}
@@ -0,0 +1,65 @@
1
+ import { OnInit, OnDestroy } from "@angular/core";
2
+ import { AccessControlService } from "../../../_services/access-control.service";
3
+ import { MatDialogRef } from "@angular/material/dialog";
4
+ import { FormControl } from "@angular/forms";
5
+ import { NsAccessControlConfig } from "../../../_models/access-control.model";
6
+ import * as i0 from "@angular/core";
7
+ export declare class EntitySelectionsComponent implements OnInit, OnDestroy {
8
+ dialogRef: MatDialogRef<EntitySelectionsComponent>;
9
+ private accessControlService;
10
+ private destroy$;
11
+ isLoading: boolean;
12
+ searchControl: FormControl<string>;
13
+ filterValue: "all" | "selected" | "notSelected";
14
+ alphabet: string[];
15
+ dataList: any[];
16
+ selectedData: number[];
17
+ groupedEntityData: {
18
+ [key: string]: any[];
19
+ };
20
+ selectionType: string;
21
+ selectionTypeEnum: typeof NsAccessControlConfig.SelectionType;
22
+ radioSelections: {
23
+ value: string;
24
+ label: string;
25
+ }[];
26
+ batchRanges: any;
27
+ selectedCharacterRange: string;
28
+ accessControlCriteriaSelection: NsAccessControlConfig.IAccessControlCriteriaSelection;
29
+ readonly data: {
30
+ rule: any;
31
+ condition: any;
32
+ selected: any[];
33
+ };
34
+ constructor(dialogRef: MatDialogRef<EntitySelectionsComponent>, accessControlService: AccessControlService);
35
+ ngOnInit(): void;
36
+ initializeDisplay(): void;
37
+ onClose(): void;
38
+ private getSelectionValue;
39
+ isSelected(item: any): boolean;
40
+ toggleSelection(item: any): void;
41
+ onFilterChange(event: any): void;
42
+ search(): void;
43
+ getFilteredEntityGrouped(): void;
44
+ scrollToSection(letter: string): void;
45
+ private updateAlphabet;
46
+ get checkIfData(): boolean;
47
+ getOrganisationsList(query: string): void;
48
+ getDesignationsList(query: string): void;
49
+ getServicesList(query: string): void;
50
+ getCadreList(query: string): void;
51
+ getBatchList(query: string): void;
52
+ getGroupList(): void;
53
+ getVerificationStatus(): void;
54
+ updateBatchRanges(): void;
55
+ groupBatchByRange(batchList: number[]): {
56
+ [key: string]: number[];
57
+ };
58
+ getModalTitle(): string;
59
+ applySelections(): void;
60
+ chunkArray<T>(array: T[], chunkSize: number): T[][];
61
+ ngOnDestroy(): void;
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntitySelectionsComponent, never>;
63
+ static ɵcmp: i0.ɵɵComponentDeclaration<EntitySelectionsComponent, "sb-uic-entity-selections", never, {}, {}, never, never, false, never>;
64
+ }
65
+ //# sourceMappingURL=entity-selections.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-selections.component.d.ts","sourceRoot":"","sources":["../../../../../../../library/sunbird-cb/access-settings/src/lib/_common/dialogs/entity-selections/entity-selections.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAmB,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;;AAI9E,qBAKa,yBAA0B,YAAW,MAAM,EAAE,SAAS;IAmB9C,SAAS,EAAE,YAAY,CAAC,yBAAyB,CAAC;IAAE,OAAO,CAAC,oBAAoB;IAlBnG,OAAO,CAAC,QAAQ,CAAuB;IACvC,SAAS,UAAS;IAClB,aAAa,sBAAuB;IACpC,WAAW,EAAE,KAAK,GAAG,UAAU,GAAG,aAAa,CAAS;IACxD,QAAQ,WAA2C;IAEnD,QAAQ,EAAE,GAAG,EAAE,CAAM;IAErB,YAAY,EAAE,MAAM,EAAE,CAAM;IAC5B,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,CAAA;KAAE,CAAM;IACjD,aAAa,SAAM;IACnB,iBAAiB,6CAAuC;IACxD,eAAe,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAM;IACzD,WAAW,EAAE,GAAG,CAAC;IACjB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,8BAA8B,EAAG,qBAAqB,CAAC,+BAA+B,CAAC;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ms";
3
+ import { MatDialogRef } from "@angular/material/dialog";
4
+ import { AccessControlService } from "../../../_services/access-control.service";
5
+ import { MatLegacySnackBar as MatSnackBar } from "@angular/material/legacy-snack-bar";
6
+ import { PageChangeEmitter } from "../../../_models/pagination.model";
7
+ import { NsAccessControlConfig } from "../../../_models/access-control.model";
8
+ import * as i0 from "@angular/core";
9
+ export declare class InviteUsersComponent implements OnInit {
10
+ dialogRef: MatDialogRef<InviteUsersComponent>;
11
+ private accessControlService;
12
+ private snackbar;
13
+ readonly data: any;
14
+ searchControl: FormControl<string>;
15
+ filterValue: NsAccessControlConfig.IManageSelectionType;
16
+ usersList: any[];
17
+ totalUsers: number;
18
+ holdSelectedUsers: any[];
19
+ finalSelectedUsers: any[];
20
+ usersFinalList: any[];
21
+ usersTableConfig: NsAccessControlConfig.ITableConfig;
22
+ usersLoading: boolean;
23
+ activeTab: number;
24
+ constructor(dialogRef: MatDialogRef<InviteUsersComponent>, accessControlService: AccessControlService, snackbar: MatSnackBar);
25
+ ngOnInit(): void;
26
+ onClose(): void;
27
+ search(): void;
28
+ onFilterChange(event: any): void;
29
+ getUsersList(query: string, limit?: number, offset?: number, userIds?: string[]): void;
30
+ onSelectingUser(event: any): void;
31
+ selectUsers(): void;
32
+ onPageChange(event: PageChangeEmitter): void;
33
+ removedUserData(event: any): void;
34
+ onSelectingUserToApply(users: any): void;
35
+ applySelections(): void;
36
+ isArrayOfObjects(arr: any): boolean;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<InviteUsersComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<InviteUsersComponent, "sb-uic-invite-users", never, {}, {}, never, never, false, never>;
39
+ }
40
+ //# sourceMappingURL=invite-users.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invite-users.component.d.ts","sourceRoot":"","sources":["../../../../../../../library/sunbird-cb/access-settings/src/lib/_common/dialogs/invite-users/invite-users.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,MAA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BtF,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAIjC,WAAW,IAAI,IAAI;IAWnB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;IAM5C,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAKjC,sBAAsB,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAIxC,eAAe,IAAI,IAAI;IAQvB,gBAAgB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO;yCAvGxB,oBAAoB;2CAApB,oBAAoB;CA0GhC"}
@@ -0,0 +1,31 @@
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
2
+ import { PageChangeEmitter } from "../../_models/pagination.model";
3
+ import * as i0 from "@angular/core";
4
+ export declare class PaginationComponent implements OnInit, OnChanges {
5
+ private _currentPage;
6
+ defaultPaginationSize: number;
7
+ defaultPaginationSizeOptions: number[];
8
+ totalItemsCount: number;
9
+ set currentPage(value: number);
10
+ get currentPage(): number;
11
+ pageChange: EventEmitter<PageChangeEmitter>;
12
+ pagination: any;
13
+ rangeWithDots: any;
14
+ showingArray: any[];
15
+ lastPage: number;
16
+ firstPage: number;
17
+ previousPage: number;
18
+ ngOnInit(): void;
19
+ ngOnChanges(changes: SimpleChanges): void;
20
+ paginationInListing(): void;
21
+ paginationDup(c: any, m: any): any;
22
+ goToPage(page: number): void;
23
+ navigateToLastPage(page: number): void;
24
+ navigateToFirstPage(page: number): void;
25
+ navigateToNextPage(page: number): void;
26
+ navigateToPrevPage(page: number): void;
27
+ onChangePageSize(event: any): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
29
+ 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>;
30
+ }
31
+ //# sourceMappingURL=pagination.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.component.d.ts","sourceRoot":"","sources":["../../../../../../library/sunbird-cb/access-settings/src/lib/_common/pagination/pagination.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,SAAS,EACT,MAAM,EAEN,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;;AACnE,qBAKa,mBAAoB,YAAW,MAAM,EAAE,SAAS;IAC3D,OAAO,CAAC,YAAY,CAAa;IAExB,qBAAqB,EAAE,MAAM,CAAM;IACnC,4BAA4B,EAAE,MAAM,EAAE,CAAM;IAC5C,eAAe,EAAE,MAAM,CAAK;IACrC,IACI,WAAW,CAAC,KAAK,EAAE,MAAM,EAK5B;IACD,IAAI,WAAW,IAAI,MAAM,CAExB;IAES,UAAU,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAsB;IAE3E,UAAU,EAAE,GAAG,CAAM;IACrB,aAAa,EAAE,GAAG,CAAC;IACnB,YAAY,EAAE,GAAG,EAAE,CAAM;IACzB,QAAQ,SAAK;IACb,SAAS,SAAK;IACd,YAAY,SAAK;IAEjB,QAAQ,IAAI,IAAI;IAGhB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAWzC,mBAAmB;IAwCnB,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG;IA8B5B,QAAQ,CAAC,IAAI,EAAE,MAAM;IAWrB,kBAAkB,CAAC,IAAI,EAAE,MAAM;IAO/B,mBAAmB,CAAC,IAAI,EAAE,MAAM;IAMhC,kBAAkB,CAAC,IAAI,EAAE,MAAM;IAc/B,kBAAkB,CAAC,IAAI,EAAE,MAAM;IAc/B,gBAAgB,CAAC,KAAK,EAAE,GAAG;yCAlKhB,mBAAmB;2CAAnB,mBAAmB;CA6K/B"}
@@ -0,0 +1,6 @@
1
+ export declare const BATCH_RANGES: {
2
+ label: string;
3
+ start: number;
4
+ end: number;
5
+ }[];
6
+ //# sourceMappingURL=app.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.constants.d.ts","sourceRoot":"","sources":["../../../../../library/sunbird-cb/access-settings/src/lib/_constants/app.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;GAIxB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class DragDropDirective {
4
+ fileDropped: EventEmitter<any>;
5
+ opacity: string;
6
+ onDragOver(evt: Event): void;
7
+ onDragLeave(evt: Event): void;
8
+ ondrop(evt: any): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
10
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[wsAuthDragDrop]", never, {}, { "fileDropped": "fileDropped"; }, never, never, false, never>;
11
+ }
12
+ //# sourceMappingURL=drag-drop.directive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-drop.directive.d.ts","sourceRoot":"","sources":["../../../../../library/sunbird-cb/access-settings/src/lib/_directives/drag-drop.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAC;;AAEvB,qBAGa,iBAAiB;IAClB,WAAW,oBAA2B;IACX,OAAO,SAAO;IAGb,UAAU,CAAC,GAAG,EAAE,KAAK;IAMb,WAAW,CAAC,GAAG,EAAE,KAAK;IAM3B,MAAM,CAAC,GAAG,EAAE,GAAG;yCAjB7C,iBAAiB;2CAAjB,iBAAiB;CA2B7B"}
@@ -0,0 +1,106 @@
1
+ export declare namespace NsAccessControlConfig {
2
+ interface IAccessControlConfig {
3
+ accessControlCriteriaSelection: IAccessControlCriteriaSelection;
4
+ usersTableConfig: ITableConfig;
5
+ bulkUploadKarmayogi: IBulkUploadKarmayogi;
6
+ accessControlGuide: IAccessControlGuide;
7
+ }
8
+ interface IAccessControlCriteriaSelection {
9
+ optionsEntity: IOptionsEntity[];
10
+ optionsConditions: IOptionsCondition[];
11
+ organizationRadioSelection: ISelectionOption[];
12
+ designationRadioSelection: ISelectionOption[];
13
+ servicesRadioSelection: ISelectionOption[];
14
+ groupsOptions: string[];
15
+ verificationStatus: ISelectionOption[];
16
+ accessTypes: {
17
+ name: string;
18
+ value: string;
19
+ tooltip: string;
20
+ }[];
21
+ }
22
+ interface IOptionsEntity {
23
+ value: string;
24
+ label: string;
25
+ disabled: boolean;
26
+ }
27
+ interface IOptionsCondition {
28
+ value: string;
29
+ label: string;
30
+ }
31
+ interface ITableConfig {
32
+ allLearners: ITableParameters;
33
+ selectedUsers: ITableParameters;
34
+ bulkUploadTable: ITableParameters;
35
+ }
36
+ interface ITableParameters {
37
+ displayedColumns: string[];
38
+ type: string;
39
+ initialPaginationSize: number;
40
+ initialPaginationSizeOptions: number[];
41
+ canShowPagination: boolean;
42
+ canShowMasterSelect: boolean;
43
+ canShowRefreshBtn: boolean;
44
+ canShowDeleteBtn: boolean;
45
+ canShowSelectedItems: boolean;
46
+ canSortColumn: boolean;
47
+ }
48
+ type IUserTableType = "allLearners" | "selectedUsers" | "bulkUploadTable";
49
+ type IManageSelectionType = "add_karmayogis" | "bulk_upload_karmayogis";
50
+ interface IBulkUploadKarmayogi {
51
+ uploadInstructions: string[];
52
+ downloadSampleFile: {
53
+ path: string;
54
+ fileName: string;
55
+ };
56
+ bulkUploadTable: ITableParameters;
57
+ }
58
+ enum SelectionType {
59
+ Users = "user",
60
+ Organizations = "rootOrgId",
61
+ Group = "group",
62
+ Designation = "designation",
63
+ VerificationStatus = "profilestatus",
64
+ Cadre = "Cadre",
65
+ Service = "service",
66
+ Batch = "batch"
67
+ }
68
+ interface ISelectionOption {
69
+ value: string;
70
+ label: string;
71
+ }
72
+ enum IActions {
73
+ Confirm = "confirm",
74
+ Reject = "reject"
75
+ }
76
+ enum IAccessTypes {
77
+ Public = "public",
78
+ Custom = "custom"
79
+ }
80
+ type ITypeAccessType = "public" | "custom";
81
+ interface IAccessControlGuide {
82
+ summaryText: string;
83
+ canShowSummaryTab: boolean;
84
+ canShowTranscriptTab: boolean;
85
+ }
86
+ enum IAccessSetting {
87
+ ALL_USERS = "allUsers",
88
+ MDO_SPECIFIC = "mdoSpecific",
89
+ CUSTOME_USER = "customeUser"
90
+ }
91
+ }
92
+ export interface IUserGroupRequest {
93
+ contentId: string;
94
+ accessControl: {
95
+ version: number;
96
+ userGroups: {
97
+ userGroupId: string;
98
+ userGroupName: string;
99
+ userGroupCriteriaList: {
100
+ userGroupKey: string;
101
+ userGroupValue: string[];
102
+ }[];
103
+ }[];
104
+ };
105
+ }
106
+ //# sourceMappingURL=access-control.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-control.model.d.ts","sourceRoot":"","sources":["../../../../../library/sunbird-cb/access-settings/src/lib/_models/access-control.model.ts"],"names":[],"mappings":"AAAA,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,oBAAoB;QACnC,8BAA8B,EAAE,+BAA+B,CAAC;QAChE,gBAAgB,EAAE,YAAY,CAAC;QAC/B,mBAAmB,EAAE,oBAAoB,CAAC;QAC1C,kBAAkB,EAAE,mBAAmB,CAAC;KACzC;IACD,UAAiB,+BAA+B;QAC9C,aAAa,EAAE,cAAc,EAAE,CAAC;QAChC,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;QACvC,0BAA0B,EAAE,gBAAgB,EAAE,CAAC;QAC/C,yBAAyB,EAAE,gBAAgB,EAAE,CAAC;QAC9C,sBAAsB,EAAE,gBAAgB,EAAE,CAAC;QAC3C,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,kBAAkB,EAAE,gBAAgB,EAAE,CAAC;QACvC,WAAW,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;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UAAiB,gBAAgB;QAC/B,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf;IAED,KAAY,QAAQ;QAClB,OAAO,YAAY;QACnB,MAAM,WAAW;KAClB;IAED,KAAY,YAAY;QACtB,MAAM,WAAW;QACjB,MAAM,WAAW;KAClB;IAED,KAAY,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAClD,UAAiB,mBAAmB;QAClC,WAAW,EAAE,MAAM,CAAC;QACpB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,oBAAoB,EAAE,OAAO,CAAC;KAC/B;IAED,KAAY,cAAc;QACxB,SAAS,aAAa;QACtB,YAAY,gBAAgB;QAC5B,YAAY,gBAAgB;KAC7B;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE;YACV,WAAW,EAAE,MAAM,CAAC;YACpB,aAAa,EAAE,MAAM,CAAC;YACtB,qBAAqB,EAAE;gBACrB,YAAY,EAAE,MAAM,CAAC;gBACrB,cAAc,EAAE,MAAM,EAAE,CAAC;aAC1B,EAAE,CAAC;SACL,EAAE,CAAC;KACL,CAAC;CACH"}
@@ -0,0 +1,6 @@
1
+ export interface PageChangeEmitter {
2
+ currentPage: number;
3
+ previousPage: number;
4
+ limit: number;
5
+ }
6
+ //# sourceMappingURL=pagination.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.model.d.ts","sourceRoot":"","sources":["../../../../../library/sunbird-cb/access-settings/src/lib/_models/pagination.model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,72 @@
1
+ import { HttpClient } from "@angular/common/http";
2
+ import { WritableSignal } from "@angular/core";
3
+ import { Observable } from "rxjs";
4
+ import { IUserGroupRequest, NsAccessControlConfig } from "../_models/access-control.model";
5
+ import * as i0 from "@angular/core";
6
+ export declare class AccessControlService {
7
+ private readonly http;
8
+ accessControlConfig: WritableSignal<NsAccessControlConfig.IAccessControlConfig>;
9
+ holdServiceCadrebatch: WritableSignal<{
10
+ service: {
11
+ id: string;
12
+ name: string;
13
+ }[];
14
+ batch: number[];
15
+ cadre: {
16
+ id: string;
17
+ name: string;
18
+ }[];
19
+ }>;
20
+ constructor(http: HttpClient);
21
+ fetchUserListWithAdmin(queryString: string): Observable<any>;
22
+ fetchUserList(query: string, pagination: {
23
+ limit: number;
24
+ offset: number;
25
+ }, userIds?: string[]): Observable<any>;
26
+ fetchOrgList(query: string, pagination?: {
27
+ limit: number;
28
+ offset: number;
29
+ }): Observable<any>;
30
+ validateUser(request: any): Observable<any>;
31
+ fetchGroupsList(): Observable<any>;
32
+ fetchCadreConfig(): Observable<any>;
33
+ fetchDesignation(query: string): Observable<any>;
34
+ fetchDesignationsWithOrg(categories: string[], query: string): Observable<any>;
35
+ applyUserGroupAccessControl(request: IUserGroupRequest): Observable<any>;
36
+ fetchUserGroupAccessControl(id: string): Observable<any>;
37
+ updateContentV3(meta: any, id: string): Observable<any>;
38
+ downloadFile(data: any, filename?: string): void;
39
+ convertToCSV(objArray: any, headerList: any): string;
40
+ createRequestContent(apiResponse: any, accessSettingsEnabled: boolean): {
41
+ request: {
42
+ content: {
43
+ appIcon: any;
44
+ posterImage: any;
45
+ code: any;
46
+ contentType: any;
47
+ createdBy: any;
48
+ creatorContacts: any;
49
+ creatorIDs: any;
50
+ createdFor: any;
51
+ creator: any;
52
+ framework: any;
53
+ mimeType: any;
54
+ name: any;
55
+ organisation: any;
56
+ isExternal: any;
57
+ primaryCategory: any;
58
+ courseCategory: any;
59
+ license: any;
60
+ ownershipType: any;
61
+ cumulativeTracking: any;
62
+ language: any;
63
+ accessSetting: any;
64
+ versionKey: any;
65
+ accessSettingsEnabled: boolean;
66
+ };
67
+ };
68
+ };
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccessControlService, never>;
70
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccessControlService>;
71
+ }
72
+ //# sourceMappingURL=access-control.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access-control.service.d.ts","sourceRoot":"","sources":["../../../../../library/sunbird-cb/access-settings/src/lib/_services/access-control.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAsB,cAAc,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;;AAiB3F,qBAGa,oBAAoB;IAQnB,OAAO,CAAC,QAAQ,CAAC,IAAI;IAPjC,mBAAmB,EAAE,cAAc,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;IAChF,qBAAqB,EAAE,cAAc,CAAC;QACpC,OAAO,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;QACxC,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,KAAK,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KACvC,CAAC,CAAC;gBAE0B,IAAI,EAAE,UAAU;IAS7C,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAI5D,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC,GAAG,CAAC;IAmBhH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,UAAU,CAAC,GAAG,CAAC;IAgB5F,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;IAI3C,eAAe,IAAI,UAAU,CAAC,GAAG,CAAC;IAIlC,gBAAgB,IAAI,UAAU,CAAC,GAAG,CAAC;IAInC,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAWhD,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAqB9E,2BAA2B,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAAC,GAAG,CAAC;IAIxE,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAIxD,eAAe,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;IAIvD,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,SAAS;IAkBzC,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG;IA6B3C,oBAAoB,CAAC,WAAW,EAAE,GAAG,EAAE,qBAAqB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCA/J1D,oBAAoB;6CAApB,oBAAoB;CA8LhC"}
@@ -0,0 +1,71 @@
1
+ import * as i0 from "@angular/core";
2
+ interface CivilServiceData {
3
+ civilServiceType: {
4
+ civilServiceTypeList: Array<{
5
+ id: string;
6
+ name: string;
7
+ serviceList: Array<{
8
+ id: string;
9
+ name: string;
10
+ commonBatchStartYear: number;
11
+ commonBatchEndYear: number;
12
+ cadreList?: Array<{
13
+ id: string;
14
+ name: string;
15
+ startBatchYear: number;
16
+ endBatchYear: number;
17
+ }>;
18
+ }>;
19
+ }>;
20
+ };
21
+ }
22
+ export declare class CadreMappingService {
23
+ private allCadres;
24
+ private allServices;
25
+ private cadreToServiceMap;
26
+ private serviceToCadresMap;
27
+ private batchYearToCadresMap;
28
+ private batchYearToServicesMap;
29
+ private addToMapSet;
30
+ initialize(data: CivilServiceData): void;
31
+ getAllBatchYears(): number[];
32
+ getAllCadres(): Array<{
33
+ id: string;
34
+ name: string;
35
+ }>;
36
+ getAllServices(): Array<{
37
+ id: string;
38
+ name: string;
39
+ }>;
40
+ getServicesByCadres(cadreIds: string[]): Array<{
41
+ id: string;
42
+ name: string;
43
+ }>;
44
+ getCadresByServices(serviceIds: string[]): Array<{
45
+ id: string;
46
+ name: string;
47
+ }>;
48
+ getCadresByBatchYears(years: number[]): Array<{
49
+ id: string;
50
+ name: string;
51
+ }>;
52
+ getServicesByBatchYears(years: number[]): Array<{
53
+ id: string;
54
+ name: string;
55
+ }>;
56
+ getServicesByCadresAndBatch(cadreIds: string[], year: number): Array<{
57
+ id: string;
58
+ name: string;
59
+ }>;
60
+ getCadresByServicesAndBatch(serviceIds: string[], year: number): Array<{
61
+ id: string;
62
+ name: string;
63
+ }>;
64
+ getBatchYearsByCadres(cadreIds: string[]): number[];
65
+ getBatchYearsByServices(serviceIds: string[]): number[];
66
+ getBatchYearsByServicesAndCadres(serviceIds: string[], cadreIds: string[]): number[];
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<CadreMappingService, never>;
68
+ static ɵprov: i0.ɵɵInjectableDeclaration<CadreMappingService>;
69
+ }
70
+ export {};
71
+ //# sourceMappingURL=cadre-mapping.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cadre-mapping.service.d.ts","sourceRoot":"","sources":["../../../../../library/sunbird-cb/access-settings/src/lib/_services/cadre-mapping.service.ts"],"names":[],"mappings":";AACA,UAAU,gBAAgB;IACxB,gBAAgB,EAAE;QAChB,oBAAoB,EAAE,KAAK,CAAC;YAC1B,EAAE,EAAE,MAAM,CAAC;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