@cleavelandprice/ngx-lib 3.1.9 → 3.1.11
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/active-directory/gui/components/user-chooser/user-chooser.component.d.ts +54 -0
- package/active-directory/gui/components/user-form-field/user-form-field.component.d.ts +27 -0
- package/active-directory/gui/gui.module.d.ts +20 -0
- package/active-directory/gui/index.d.ts +5 -0
- package/active-directory/gui/model/default-user-chooser-config.d.ts +2 -0
- package/active-directory/gui/model/default-user-chooser-filter-options-config.d.ts +2 -0
- package/active-directory/gui/model/default-user-chooser-pre-processing-group-config.d.ts +2 -0
- package/active-directory/gui/model/selectable-user.d.ts +5 -0
- package/active-directory/gui/model/user-chooser-data.d.ts +21 -0
- package/active-directory/gui/model/user-chooser-filter-options.d.ts +7 -0
- package/active-directory/gui/model/user-chooser-mode.d.ts +4 -0
- package/active-directory/gui/model/user-chooser-pre-processing-group.d.ts +6 -0
- package/active-directory/gui/public_api.d.ts +10 -0
- package/authentication/token/gui/token-gui.module.d.ts +6 -6
- package/esm2020/active-directory/active-directory.module.mjs +3 -2
- package/esm2020/active-directory/gui/cleavelandprice-ngx-lib-active-directory-gui.mjs +5 -0
- package/esm2020/active-directory/gui/components/user-chooser/user-chooser.component.mjs +352 -0
- package/esm2020/active-directory/gui/components/user-form-field/user-form-field.component.mjs +118 -0
- package/esm2020/active-directory/gui/gui.module.mjs +73 -0
- package/esm2020/active-directory/gui/model/default-user-chooser-config.mjs +18 -0
- package/esm2020/active-directory/gui/model/default-user-chooser-filter-options-config.mjs +8 -0
- package/esm2020/active-directory/gui/model/default-user-chooser-pre-processing-group-config.mjs +7 -0
- package/esm2020/active-directory/gui/model/selectable-user.mjs +2 -0
- package/esm2020/active-directory/gui/model/user-chooser-data.mjs +2 -0
- package/esm2020/active-directory/gui/model/user-chooser-filter-options.mjs +2 -0
- package/esm2020/active-directory/gui/model/user-chooser-mode.mjs +6 -0
- package/esm2020/active-directory/gui/model/user-chooser-pre-processing-group.mjs +2 -0
- package/esm2020/active-directory/gui/public_api.mjs +11 -0
- package/esm2020/authentication/token/gui/token-gui.module.mjs +9 -9
- package/fesm2015/cleavelandprice-ngx-lib-active-directory-gui.mjs +574 -0
- package/fesm2015/cleavelandprice-ngx-lib-active-directory-gui.mjs.map +1 -0
- package/fesm2015/cleavelandprice-ngx-lib-active-directory.mjs +2 -1
- package/fesm2015/cleavelandprice-ngx-lib-active-directory.mjs.map +1 -1
- package/fesm2015/cleavelandprice-ngx-lib-authentication-token-gui.mjs +9 -9
- package/fesm2015/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +1 -1
- package/fesm2020/cleavelandprice-ngx-lib-active-directory-gui.mjs +564 -0
- package/fesm2020/cleavelandprice-ngx-lib-active-directory-gui.mjs.map +1 -0
- package/fesm2020/cleavelandprice-ngx-lib-active-directory.mjs +2 -1
- package/fesm2020/cleavelandprice-ngx-lib-active-directory.mjs.map +1 -1
- package/fesm2020/cleavelandprice-ngx-lib-authentication-token-gui.mjs +9 -9
- package/fesm2020/cleavelandprice-ngx-lib-authentication-token-gui.mjs.map +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
+
import { MatListOption, MatSelectionList } from '@angular/material/list';
|
|
5
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
6
|
+
import { ActiveDirectoryService, Group } from '@cleavelandprice/ngx-lib/active-directory';
|
|
7
|
+
import { SharePointService, PhotoItem } from '@cleavelandprice/ngx-lib/sharepoint';
|
|
8
|
+
import { SelectableUser } from '../../model/selectable-user';
|
|
9
|
+
import { UserChooserData } from '../../model/user-chooser-data';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class UserChooserComponent implements OnInit {
|
|
12
|
+
data: UserChooserData;
|
|
13
|
+
private dialogRef;
|
|
14
|
+
private activeDirectoryService;
|
|
15
|
+
private sharePointService;
|
|
16
|
+
selectionList: MatSelectionList | null;
|
|
17
|
+
filterForm: FormGroup<{
|
|
18
|
+
filter: FormControl<any>;
|
|
19
|
+
}>;
|
|
20
|
+
dataSource: MatTableDataSource<SelectableUser> | null;
|
|
21
|
+
photos: PhotoItem[] | null;
|
|
22
|
+
groups: Group[] | null;
|
|
23
|
+
get isMultiMode(): boolean;
|
|
24
|
+
get selectedOptions(): MatListOption[];
|
|
25
|
+
get filterValue(): string;
|
|
26
|
+
get adGroupsNeeded(): boolean;
|
|
27
|
+
constructor(data: UserChooserData, dialogRef: MatDialogRef<UserChooserComponent>, activeDirectoryService: ActiveDirectoryService, sharePointService: SharePointService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
listSelectionChanged(options: MatListOption[]): void;
|
|
30
|
+
optionSelectionChanged(option: MatListOption): void;
|
|
31
|
+
hideUnselectedChanged(selected: boolean): void;
|
|
32
|
+
selectAll(): void;
|
|
33
|
+
deselectAll(): void;
|
|
34
|
+
private getData;
|
|
35
|
+
close(): void;
|
|
36
|
+
getPhoto(user: SelectableUser): string | undefined;
|
|
37
|
+
private excludeUsersByAccountName;
|
|
38
|
+
private excludeUsersByGroupName;
|
|
39
|
+
private excludeUsersByDepartment;
|
|
40
|
+
private excludeUsersByTitle;
|
|
41
|
+
private includeUsersByAccountName;
|
|
42
|
+
private includeUsersByDepartment;
|
|
43
|
+
private includeUsersByTitle;
|
|
44
|
+
private includeUsersByGroupName;
|
|
45
|
+
private preSelectUsersByAccountName;
|
|
46
|
+
private preSelectUsersByDepartment;
|
|
47
|
+
private preSelectUsersByTitle;
|
|
48
|
+
private preSelectUsersByGroupName;
|
|
49
|
+
private setFilterPredicate;
|
|
50
|
+
private listenForFilterChanges;
|
|
51
|
+
tooltip(user: SelectableUser): string;
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserChooserComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserChooserComponent, "user-chooser", never, {}, {}, never, never, false>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { ActiveDirectoryService, User } from '@cleavelandprice/ngx-lib/active-directory';
|
|
4
|
+
import { SharePointService } from '@cleavelandprice/ngx-lib/sharepoint';
|
|
5
|
+
import { UserChooserData } from '../../model/user-chooser-data';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class UserFormFieldComponent implements OnInit {
|
|
8
|
+
private dialog;
|
|
9
|
+
private activeDirectoryService;
|
|
10
|
+
private sharePointService;
|
|
11
|
+
usersSelected: EventEmitter<string[]>;
|
|
12
|
+
placeholder: string;
|
|
13
|
+
clickable: boolean;
|
|
14
|
+
userChooserData: UserChooserData;
|
|
15
|
+
accountNames: string[];
|
|
16
|
+
private users;
|
|
17
|
+
private photos;
|
|
18
|
+
get isEdge(): boolean;
|
|
19
|
+
constructor(dialog: MatDialog, activeDirectoryService: ActiveDirectoryService, sharePointService: SharePointService);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
selectUser(): void;
|
|
22
|
+
private getData;
|
|
23
|
+
getUser(accountName: string): User | undefined;
|
|
24
|
+
getPhoto(accountName: string): string | undefined;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserFormFieldComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserFormFieldComponent, "user-form-field", never, { "placeholder": "placeholder"; "clickable": "clickable"; "userChooserData": "userChooserData"; }, { "usersSelected": "usersSelected"; }, never, never, false>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/user-chooser/user-chooser.component";
|
|
3
|
+
import * as i2 from "./components/user-form-field/user-form-field.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@angular/forms";
|
|
6
|
+
import * as i5 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "@angular/material/dialog";
|
|
8
|
+
import * as i7 from "@angular/material/form-field";
|
|
9
|
+
import * as i8 from "@angular/material/icon";
|
|
10
|
+
import * as i9 from "@angular/material/input";
|
|
11
|
+
import * as i10 from "@angular/material/list";
|
|
12
|
+
import * as i11 from "@angular/material/progress-spinner";
|
|
13
|
+
import * as i12 from "@angular/material/slide-toggle";
|
|
14
|
+
import * as i13 from "@angular/material/table";
|
|
15
|
+
import * as i14 from "@angular/material/tooltip";
|
|
16
|
+
export declare class GuiModule {
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuiModule, never>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GuiModule, [typeof i1.UserChooserComponent, typeof i2.UserFormFieldComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.MatButtonModule, typeof i6.MatDialogModule, typeof i7.MatFormFieldModule, typeof i8.MatIconModule, typeof i9.MatInputModule, typeof i10.MatListModule, typeof i11.MatProgressSpinnerModule, typeof i12.MatSlideToggleModule, typeof i13.MatTableModule, typeof i14.MatTooltipModule], [typeof i1.UserChooserComponent, typeof i2.UserFormFieldComponent]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GuiModule>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { User } from "@cleavelandprice/ngx-lib/active-directory";
|
|
2
|
+
import { PhotoItem } from "@cleavelandprice/ngx-lib/sharepoint";
|
|
3
|
+
import { UserChooserFilterOptions } from "./user-chooser-filter-options";
|
|
4
|
+
import { UserChooserMode } from "./user-chooser-mode";
|
|
5
|
+
import { UserChooserPreProcessingGroup } from "./user-chooser-pre-processing-group";
|
|
6
|
+
export interface UserChooserData {
|
|
7
|
+
closeWhenSelectionMade: boolean;
|
|
8
|
+
includeDisabledUsers: boolean;
|
|
9
|
+
filterOptions: UserChooserFilterOptions;
|
|
10
|
+
mode: UserChooserMode;
|
|
11
|
+
parentOu: string | undefined;
|
|
12
|
+
returnUserObjects: boolean;
|
|
13
|
+
showGroupMembershipTooltips: boolean;
|
|
14
|
+
showPhone: boolean;
|
|
15
|
+
title: string;
|
|
16
|
+
exclusions: UserChooserPreProcessingGroup;
|
|
17
|
+
inclusions: UserChooserPreProcessingGroup;
|
|
18
|
+
preSelections: UserChooserPreProcessingGroup;
|
|
19
|
+
users?: User[];
|
|
20
|
+
photos?: PhotoItem[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './model/default-user-chooser-config';
|
|
2
|
+
export * from './model/default-user-chooser-filter-options-config';
|
|
3
|
+
export * from './model/default-user-chooser-pre-processing-group-config';
|
|
4
|
+
export * from './model/user-chooser-data';
|
|
5
|
+
export * from './model/user-chooser-filter-options';
|
|
6
|
+
export * from './model/user-chooser-mode';
|
|
7
|
+
export * from './model/user-chooser-pre-processing-group';
|
|
8
|
+
export * from './components/user-chooser/user-chooser.component';
|
|
9
|
+
export * from './components/user-form-field/user-form-field.component';
|
|
10
|
+
export * from './gui.module';
|
|
@@ -11,10 +11,10 @@ import * as i7 from "@angular/material/form-field";
|
|
|
11
11
|
import * as i8 from "@angular/material/icon";
|
|
12
12
|
import * as i9 from "@angular/material/input";
|
|
13
13
|
import * as i10 from "@angular/material/progress-spinner";
|
|
14
|
-
export declare class
|
|
15
|
-
static forRoot(config: ServiceConfig): ModuleWithProviders<
|
|
16
|
-
constructor(parentModule:
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
19
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
14
|
+
export declare class GuiModule {
|
|
15
|
+
static forRoot(config: ServiceConfig): ModuleWithProviders<GuiModule>;
|
|
16
|
+
constructor(parentModule: GuiModule);
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GuiModule, [{ optional: true; skipSelf: true; }]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GuiModule, [typeof i1.LoginComponent, typeof i2.LoginFormComponent], [typeof i3.CommonModule, typeof i4.ReactiveFormsModule, typeof i5.MatButtonModule, typeof i6.MatDialogModule, typeof i7.MatFormFieldModule, typeof i8.MatIconModule, typeof i9.MatInputModule, typeof i10.MatProgressSpinnerModule], [typeof i1.LoginComponent, typeof i2.LoginFormComponent]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GuiModule>;
|
|
20
20
|
}
|
|
@@ -28,11 +28,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
28
28
|
declarations: [],
|
|
29
29
|
imports: [
|
|
30
30
|
CommonModule
|
|
31
|
-
]
|
|
31
|
+
],
|
|
32
|
+
exports: []
|
|
32
33
|
}]
|
|
33
34
|
}], ctorParameters: function () { return [{ type: ActiveDirectoryModule, decorators: [{
|
|
34
35
|
type: Optional
|
|
35
36
|
}, {
|
|
36
37
|
type: SkipSelf
|
|
37
38
|
}] }]; } });
|
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aXZlLWRpcmVjdG9yeS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jbGVhdmVsYW5kcHJpY2Uvbmd4LWxpYi9hY3RpdmUtZGlyZWN0b3J5L3NyYy9hY3RpdmUtZGlyZWN0b3J5Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXVCLFFBQVEsRUFBRSxRQUFRLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQ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xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public_api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xlYXZlbGFuZHByaWNlLW5neC1saWItYWN0aXZlLWRpcmVjdG9yeS1ndWkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jbGVhdmVsYW5kcHJpY2Uvbmd4LWxpYi9hY3RpdmUtZGlyZWN0b3J5L2d1aS9zcmMvY2xlYXZlbGFuZHByaWNlLW5neC1saWItYWN0aXZlLWRpcmVjdG9yeS1ndWkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcbiJdfQ==
|