@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.
- package/README.md +24 -0
- package/esm2022/lib/_common/access-control/access-control.component.mjs +561 -0
- package/esm2022/lib/_common/access-control/access-control.module.mjs +125 -0
- package/esm2022/lib/_common/dialogs/access-control-guide/access-control-guide.component.mjs +27 -0
- package/esm2022/lib/_common/dialogs/confirm-dialog/confirm-dialog.component.mjs +27 -0
- package/esm2022/lib/_common/dialogs/entity-selections/entity-selections.component.mjs +371 -0
- package/esm2022/lib/_common/dialogs/invite-users/invite-users.component.mjs +116 -0
- package/esm2022/lib/_common/pagination/pagination.component.mjs +168 -0
- package/esm2022/lib/_constants/app.constants.mjs +6 -0
- package/esm2022/lib/_directives/drag-drop.directive.mjs +53 -0
- package/esm2022/lib/_models/access-control.model.mjs +31 -0
- package/esm2022/lib/_models/pagination.model.mjs +2 -0
- package/esm2022/lib/_services/access-control.service.mjs +195 -0
- package/esm2022/lib/_services/cadre-mapping.service.mjs +164 -0
- package/esm2022/lib/access-settings.component.mjs +13 -0
- package/esm2022/lib/access-settings.module.mjs +21 -0
- package/esm2022/lib/components/bulk-upload-karmayogi/bulk-upload-karmayogi.component.mjs +391 -0
- package/esm2022/lib/components/list-table/list-table.component.mjs +148 -0
- package/esm2022/lib/components/snackbar/snackbar.component.mjs +19 -0
- package/esm2022/public-api.mjs +10 -0
- package/esm2022/sunbird-cb-access-settings.mjs +5 -0
- package/fesm2022/sunbird-cb-access-settings.mjs +2331 -0
- package/fesm2022/sunbird-cb-access-settings.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/lib/_common/access-control/access-control.component.d.ts +71 -0
- package/lib/_common/access-control/access-control.component.d.ts.map +1 -0
- package/lib/_common/access-control/access-control.module.d.ts +36 -0
- package/lib/_common/access-control/access-control.module.d.ts.map +1 -0
- package/lib/_common/dialogs/access-control-guide/access-control-guide.component.d.ts +16 -0
- package/lib/_common/dialogs/access-control-guide/access-control-guide.component.d.ts.map +1 -0
- package/lib/_common/dialogs/confirm-dialog/confirm-dialog.component.d.ts +15 -0
- package/lib/_common/dialogs/confirm-dialog/confirm-dialog.component.d.ts.map +1 -0
- package/lib/_common/dialogs/entity-selections/entity-selections.component.d.ts +65 -0
- package/lib/_common/dialogs/entity-selections/entity-selections.component.d.ts.map +1 -0
- package/lib/_common/dialogs/invite-users/invite-users.component.d.ts +40 -0
- package/lib/_common/dialogs/invite-users/invite-users.component.d.ts.map +1 -0
- package/lib/_common/pagination/pagination.component.d.ts +31 -0
- package/lib/_common/pagination/pagination.component.d.ts.map +1 -0
- package/lib/_constants/app.constants.d.ts +6 -0
- package/lib/_constants/app.constants.d.ts.map +1 -0
- package/lib/_directives/drag-drop.directive.d.ts +12 -0
- package/lib/_directives/drag-drop.directive.d.ts.map +1 -0
- package/lib/_models/access-control.model.d.ts +106 -0
- package/lib/_models/access-control.model.d.ts.map +1 -0
- package/lib/_models/pagination.model.d.ts +6 -0
- package/lib/_models/pagination.model.d.ts.map +1 -0
- package/lib/_services/access-control.service.d.ts +72 -0
- package/lib/_services/access-control.service.d.ts.map +1 -0
- package/lib/_services/cadre-mapping.service.d.ts +71 -0
- package/lib/_services/cadre-mapping.service.d.ts.map +1 -0
- package/lib/access-settings.component.d.ts +9 -0
- package/lib/access-settings.component.d.ts.map +1 -0
- package/lib/access-settings.module.d.ts +12 -0
- package/lib/access-settings.module.d.ts.map +1 -0
- package/lib/components/bulk-upload-karmayogi/bulk-upload-karmayogi.component.d.ts +31 -0
- package/lib/components/bulk-upload-karmayogi/bulk-upload-karmayogi.component.d.ts.map +1 -0
- package/lib/components/list-table/list-table.component.d.ts +40 -0
- package/lib/components/list-table/list-table.component.d.ts.map +1 -0
- package/lib/components/snackbar/snackbar.component.d.ts +13 -0
- package/lib/components/snackbar/snackbar.component.d.ts.map +1 -0
- package/package.json +28 -0
- package/public-api.d.ts +7 -0
- package/public-api.d.ts.map +1 -0
- package/sunbird-cb-access-settings.d.ts.map +1 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AccessSettingsComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessSettingsComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccessSettingsComponent, "sb-uic-access-settings", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=access-settings.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-settings.component.d.ts","sourceRoot":"","sources":["../../../../library/sunbird-cb/access-settings/src/lib/access-settings.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,MAAM,eAAe,CAAC;;AAElD,qBAaa,uBAAwB,YAAW,MAAM;;IAGpD,QAAQ;yCAHG,uBAAuB;2CAAvB,uBAAuB;CAInC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./access-settings.component";
|
|
3
|
+
import * as i2 from "./components/snackbar/snackbar.component";
|
|
4
|
+
import * as i3 from "@angular/material/icon";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
export declare class AccessSettingsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessSettingsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AccessSettingsModule, [typeof i1.AccessSettingsComponent, typeof i2.SnackbarComponent], [typeof i3.MatIconModule, typeof i4.CommonModule], [typeof i1.AccessSettingsComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AccessSettingsModule>;
|
|
10
|
+
}
|
|
11
|
+
export * from "./access-settings.component";
|
|
12
|
+
//# sourceMappingURL=access-settings.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-settings.module.d.ts","sourceRoot":"","sources":["../../../../library/sunbird-cb/access-settings/src/lib/access-settings.module.ts"],"names":[],"mappings":";;;;;AAKA,qBAKa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG;AACpC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AccessControlService } from "../../_services/access-control.service";
|
|
2
|
+
import { NsAccessControlConfig } from "../../_models/access-control.model";
|
|
3
|
+
import { MatLegacySnackBar as MatSnackBar } from "@angular/material/legacy-snack-bar";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BulkUploadKarmayogiComponent {
|
|
6
|
+
private accessControlService;
|
|
7
|
+
private snackBar;
|
|
8
|
+
bulkUploadConfig: NsAccessControlConfig.IBulkUploadKarmayogi;
|
|
9
|
+
file: File | null;
|
|
10
|
+
currrentFilterType: string;
|
|
11
|
+
csvContent: any;
|
|
12
|
+
contacts: any;
|
|
13
|
+
properties: any;
|
|
14
|
+
flag: boolean;
|
|
15
|
+
fileUploading: boolean;
|
|
16
|
+
isSuccessUserlist: any;
|
|
17
|
+
isErrorUserlist: any;
|
|
18
|
+
fileName: string;
|
|
19
|
+
currentDate: Date;
|
|
20
|
+
constructor(accessControlService: AccessControlService, snackBar: MatSnackBar);
|
|
21
|
+
downloadSample(): void;
|
|
22
|
+
onDrop(input: HTMLInputElement): void;
|
|
23
|
+
onFileLoad(fileLoadedEvent: any): Promise<void>;
|
|
24
|
+
callUserCheckApi(userData: any, key: any): Promise<any>;
|
|
25
|
+
manageData(userEmailData: any, userMobileData: any): void;
|
|
26
|
+
onFilterChange(type: string): void;
|
|
27
|
+
downloadErrorFile(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BulkUploadKarmayogiComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BulkUploadKarmayogiComponent, "sb-uic-bulk-upload-karmayogi", never, {}, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=bulk-upload-karmayogi.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-upload-karmayogi.component.d.ts","sourceRoot":"","sources":["../../../../../../library/sunbird-cb/access-settings/src/lib/components/bulk-upload-karmayogi/bulk-upload-karmayogi.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,oCAAoC,CAAC;;AAEtF,qBAKa,4BAA4B;IAerC,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,QAAQ;IAflB,gBAAgB,EAAE,qBAAqB,CAAC,oBAAoB,CAAC;IAC7D,IAAI,EAAG,IAAI,GAAG,IAAI,CAAC;IAEnB,kBAAkB,SAAa;IAC/B,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,GAAG,CAAM;IACnB,UAAU,EAAE,GAAG,CAAM;IACrB,IAAI,UAAS;IACb,aAAa,UAAS;IACtB,iBAAiB,EAAE,GAAG,CAAM;IAC5B,eAAe,EAAE,GAAG,CAAM;IAC1B,QAAQ,EAAE,MAAM,CAAM;IACtB,WAAW,OAAc;gBAEf,oBAAoB,EAAE,oBAAoB,EAC1C,QAAQ,EAAE,WAAW;IAM/B,cAAc;IAYd,MAAM,CAAC,KAAK,EAAE,gBAAgB;IA2CxB,UAAU,CAAC,eAAe,EAAE,GAAG;IA8K/B,gBAAgB,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;IA4C9C,UAAU,CAAC,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG;IAgGlD,cAAc,CAAC,IAAI,EAAE,MAAM;IAI3B,iBAAiB;yCA3YN,4BAA4B;2CAA5B,4BAA4B;CAiZxC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { SelectionModel } from "@angular/cdk/collections";
|
|
2
|
+
import { AfterViewInit, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
3
|
+
import { MatTableDataSource } from "@angular/material/table";
|
|
4
|
+
import { PageChangeEmitter } from "../../_models/pagination.model";
|
|
5
|
+
import { MatSort, Sort } from "@angular/material/sort";
|
|
6
|
+
import { LiveAnnouncer } from "@angular/cdk/a11y";
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ListTableComponent implements OnInit, OnChanges, AfterViewInit {
|
|
9
|
+
private _liveAnnouncer;
|
|
10
|
+
data: any[];
|
|
11
|
+
count: number;
|
|
12
|
+
initialPaginationSize: number;
|
|
13
|
+
initialPaginationSizeOptions: number[];
|
|
14
|
+
tableConfig: any;
|
|
15
|
+
selected: any;
|
|
16
|
+
bulkUploadEntriesCount: any;
|
|
17
|
+
selectedDataChange: EventEmitter<any>;
|
|
18
|
+
pageChange: EventEmitter<PageChangeEmitter>;
|
|
19
|
+
removeSelectedData: EventEmitter<any>;
|
|
20
|
+
sort: MatSort;
|
|
21
|
+
dataSource: MatTableDataSource<any, import("@angular/material/table").MatTableDataSourcePaginator>;
|
|
22
|
+
selection: SelectionModel<any>;
|
|
23
|
+
selectedTablerow: any[];
|
|
24
|
+
currentPage: number;
|
|
25
|
+
constructor(_liveAnnouncer: LiveAnnouncer);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
setPaginatedUsers(page: number): void;
|
|
30
|
+
isAllSelected(): boolean;
|
|
31
|
+
masterToggle(): void;
|
|
32
|
+
toggleSelection(row: any): void;
|
|
33
|
+
onPageChange(event: PageChangeEmitter): void;
|
|
34
|
+
removeUserFromSelected(): void;
|
|
35
|
+
onSortChange(sortState: Sort): void;
|
|
36
|
+
refreshSelected(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListTableComponent, never>;
|
|
38
|
+
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; }; }, { "selectedDataChange": "selectedDataChange"; "pageChange": "pageChange"; "removeSelectedData": "removeSelectedData"; }, never, never, false, never>;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=list-table.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-table.component.d.ts","sourceRoot":"","sources":["../../../../../../library/sunbird-cb/access-settings/src/lib/components/list-table/list-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAa,YAAY,EAAS,SAAS,EAAE,MAAM,EAAU,aAAa,EAAa,MAAM,eAAe,CAAC;AACnI,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;;AAElD,qBAKa,kBAAmB,YAAW,MAAM,EAAE,SAAS,EAAE,aAAa;IAoB7D,OAAO,CAAC,cAAc;IAnBzB,IAAI,EAAE,GAAG,EAAE,CAAM;IACjB,KAAK,EAAE,MAAM,CAAK;IAClB,qBAAqB,EAAE,MAAM,CAAK;IAClC,4BAA4B,EAAE,MAAM,EAAE,CAAoB;IAC1D,WAAW,EAAE,GAAG,CAAC;IACjB,QAAQ,EAAE,GAAG,CAAC;IACd,sBAAsB,EAAE,GAAG,CAAC;IAE3B,kBAAkB,EAAE,YAAY,CAAC,GAAG,CAAC,CAAsB;IAC3D,UAAU,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAsB;IACjE,kBAAkB,EAAE,YAAY,CAAC,GAAG,CAAC,CAAsB;IAEjD,IAAI,EAAE,OAAO,CAAC;IAElC,UAAU,yFAA0C;IACpD,SAAS,sBAAqC;IAC9C,gBAAgB,EAAE,GAAG,EAAE,CAAM;IAE7B,WAAW,EAAE,MAAM,CAAK;gBACJ,cAAc,EAAE,aAAa;IACjD,QAAQ;IAER,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAmCzC,eAAe;IAMf,iBAAiB,CAAC,IAAI,EAAE,MAAM;IAO9B,aAAa;IAMb,YAAY;IAMZ,eAAe,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAM/B,YAAY,CAAC,KAAK,EAAE,iBAAiB;IAIrC,sBAAsB,IAAI,IAAI;IAmB9B,YAAY,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI;IAQnC,eAAe,IAAI,IAAI;yCAxHZ,kBAAkB;2CAAlB,kBAAkB;CA2H9B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MatLegacySnackBarRef as MatSnackBarRef } from "@angular/material/legacy-snack-bar";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SnackbarComponent {
|
|
4
|
+
snackBarRef: MatSnackBarRef<SnackbarComponent>;
|
|
5
|
+
readonly data: {
|
|
6
|
+
message: string;
|
|
7
|
+
type: "success | error";
|
|
8
|
+
};
|
|
9
|
+
constructor(snackBarRef: MatSnackBarRef<SnackbarComponent>);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SnackbarComponent, "sb-uic-snackbar", never, {}, {}, never, never, false, never>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=snackbar.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snackbar.component.d.ts","sourceRoot":"","sources":["../../../../../../library/sunbird-cb/access-settings/src/lib/components/snackbar/snackbar.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAmD,oBAAoB,IAAI,cAAc,EAAE,MAAM,oCAAoC,CAAC;;AAE7I,qBAMa,iBAAiB;IAGT,WAAW,EAAE,cAAc,CAAC,iBAAiB,CAAC;IAFjE,SAAgB,IAAI;iBAAqB,MAAM;cAAQ,iBAAiB;MAAwB;gBAE7E,WAAW,EAAE,cAAc,CAAC,iBAAiB,CAAC;yCAHtD,iBAAiB;2CAAjB,iBAAiB;CAI7B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sunbird-cb/access-settings",
|
|
3
|
+
"version": "0.0.1-cbrelease-4.8.26",
|
|
4
|
+
"dependencies": {
|
|
5
|
+
"tslib": "^2.0.0"
|
|
6
|
+
},
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@angular/common": "^16.2.12",
|
|
9
|
+
"@angular/core": "^16.2.12",
|
|
10
|
+
"@sunbird-cb/design-system": "0.0.3",
|
|
11
|
+
"@sunbird-cb/utils-v2": "0.0.27-ang-13-16",
|
|
12
|
+
"@sunbird-cb/resolver-v2": "0.0.7-ang-13-16"
|
|
13
|
+
},
|
|
14
|
+
"module": "fesm2022/sunbird-cb-access-settings.mjs",
|
|
15
|
+
"typings": "index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
"./package.json": {
|
|
18
|
+
"default": "./package.json"
|
|
19
|
+
},
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./index.d.ts",
|
|
22
|
+
"esm2022": "./esm2022/sunbird-cb-access-settings.mjs",
|
|
23
|
+
"esm": "./esm2022/sunbird-cb-access-settings.mjs",
|
|
24
|
+
"default": "./fesm2022/sunbird-cb-access-settings.mjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false
|
|
28
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "./lib/access-settings.component";
|
|
2
|
+
export * from "./lib/access-settings.module";
|
|
3
|
+
export * from "./lib/_common/access-control/access-control.module";
|
|
4
|
+
export * from "./lib/_common/access-control/access-control.component";
|
|
5
|
+
export * from "./lib/_common/pagination/pagination.component";
|
|
6
|
+
export * from "./lib/_models/access-control.model";
|
|
7
|
+
//# sourceMappingURL=public-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../library/sunbird-cb/access-settings/src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AACtE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sunbird-cb-access-settings.d.ts","sourceRoot":"","sources":["../../../library/sunbird-cb/access-settings/src/sunbird-cb-access-settings.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
|