@volo/abp.ng.identity 9.3.5 → 10.0.0-rc.1
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/config/index.d.ts +5 -8
- package/fesm2022/volo-abp.ng.identity-config.mjs +16 -18
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity-proxy.mjs +38 -39
- package/fesm2022/volo-abp.ng.identity-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +9 -9
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/package.json +7 -7
- package/proxy/index.d.ts +1 -10
package/config/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { OnInit, EventEmitter, TrackByFunction, ComponentRef, ModuleWithProviders } from '@angular/core';
|
|
5
5
|
import * as _abp_ng_core from '@abp/ng.core';
|
|
6
|
-
import { ListService, ConfigStateService, AuthService, EnvironmentService,
|
|
6
|
+
import { ListService, ConfigStateService, AuthService, EnvironmentService, SubscriptionService, PagedAndSortedResultRequestDto, ABP } from '@abp/ng.core';
|
|
7
7
|
import * as i2 from '@abp/ng.theme.shared';
|
|
8
8
|
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
9
9
|
import { Public, IdentityLinkUserService, LinkUserDto, IdentityUserDelegationService, UserLookupDto, UserDelegationDto } from '@volo/abp.ng.account/public/proxy';
|
|
@@ -40,17 +40,16 @@ declare class LinkLoginHandler {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
declare class MyLinkUsersModalComponent implements OnInit {
|
|
43
|
-
|
|
44
|
-
get isModalOpen(): boolean;
|
|
45
|
-
set isModalOpen(value: boolean);
|
|
46
|
-
readonly list: ListService;
|
|
43
|
+
readonly list: ListService<any>;
|
|
47
44
|
protected linkUserService: IdentityLinkUserService;
|
|
48
45
|
protected confirmation: ConfirmationService;
|
|
49
46
|
protected configState: ConfigStateService;
|
|
50
47
|
protected authService: AuthService;
|
|
51
48
|
protected environment: EnvironmentService;
|
|
52
49
|
protected linkLoginHandler: LinkLoginHandler;
|
|
53
|
-
private
|
|
50
|
+
private _isModalOpen;
|
|
51
|
+
get isModalOpen(): boolean;
|
|
52
|
+
set isModalOpen(value: boolean);
|
|
54
53
|
constructor();
|
|
55
54
|
data: LinkUserDto[];
|
|
56
55
|
filteredData: LinkUserDto[];
|
|
@@ -159,7 +158,6 @@ declare namespace identitySettings_d {
|
|
|
159
158
|
declare class IdentityConfigService {
|
|
160
159
|
private restService;
|
|
161
160
|
apiName: string;
|
|
162
|
-
constructor(restService: RestService);
|
|
163
161
|
getSettings(): Observable<Settings>;
|
|
164
162
|
updateSettings(body: Settings): Observable<void>;
|
|
165
163
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityConfigService, never>;
|
|
@@ -271,7 +269,6 @@ declare class AuthorityDelegationComponent {
|
|
|
271
269
|
|
|
272
270
|
declare class IdentityLinkLoginService {
|
|
273
271
|
private authService;
|
|
274
|
-
constructor(authService: AuthService);
|
|
275
272
|
linkLogin(input: Public.Web.Areas.Account.Controllers.Models.LinkUserLoginInfo): rxjs.Observable<_abp_ng_core.AbpAuthResponse>;
|
|
276
273
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityLinkLoginService, never>;
|
|
277
274
|
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityLinkLoginService>;
|
|
@@ -3,8 +3,7 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { inject, Component, ChangeDetectionStrategy, Injectable, Injector, EventEmitter, Output, NgModule, provideAppInitializer, makeEnvironmentProviders } from '@angular/core';
|
|
4
4
|
import { NgbNav, NgbNavItem, NgbNavItemRole, NgbNavLink, NgbNavLinkBase, NgbNavContent, NgbNavOutlet, NgbDropdown, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownButtonItem, NgbDropdownItem, NgbDateAdapter, NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
|
|
5
5
|
import { finalize, filter, map, switchMap, tap, catchError } from 'rxjs/operators';
|
|
6
|
-
import
|
|
7
|
-
import { ConfigStateService, AutofocusDirective, LocalizationPipe, SubscriptionService, ListService, AuthService, EnvironmentService, PIPE_TO_LOGIN_FN_KEY, ShortDateTimePipe, ForDirective, CoreModule, RoutesService, ContentProjectionService, PROJECTION_STRATEGY } from '@abp/ng.core';
|
|
6
|
+
import { ConfigStateService, AutofocusDirective, LocalizationPipe, RestService, SubscriptionService, AuthService, ListService, EnvironmentService, PIPE_TO_LOGIN_FN_KEY, ShortDateTimePipe, ForDirective, CoreModule, RoutesService, ContentProjectionService, PROJECTION_STRATEGY } from '@abp/ng.core';
|
|
8
7
|
import * as i1 from '@angular/forms';
|
|
9
8
|
import { FormsModule, UntypedFormBuilder, Validators, ReactiveFormsModule, FormBuilder } from '@angular/forms';
|
|
10
9
|
import { ToasterService, ButtonComponent, ConfirmationService, Confirmation, NgxDatatableDefaultDirective, NgxDatatableListDirective, ModalComponent, ModalCloseDirective, DateTimeAdapter, AbpVisibleDirective, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
@@ -130,8 +129,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
130
129
|
}], ctorParameters: () => [] });
|
|
131
130
|
|
|
132
131
|
class IdentityConfigService {
|
|
133
|
-
constructor(
|
|
134
|
-
this.restService =
|
|
132
|
+
constructor() {
|
|
133
|
+
this.restService = inject(RestService);
|
|
135
134
|
this.apiName = 'AbpIdentity';
|
|
136
135
|
}
|
|
137
136
|
getSettings() {
|
|
@@ -147,7 +146,7 @@ class IdentityConfigService {
|
|
|
147
146
|
body,
|
|
148
147
|
}, { apiName: this.apiName });
|
|
149
148
|
}
|
|
150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityConfigService, deps: [
|
|
149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
151
150
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityConfigService, providedIn: 'root' }); }
|
|
152
151
|
}
|
|
153
152
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityConfigService, decorators: [{
|
|
@@ -155,7 +154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
155
154
|
args: [{
|
|
156
155
|
providedIn: 'root',
|
|
157
156
|
}]
|
|
158
|
-
}]
|
|
157
|
+
}] });
|
|
159
158
|
|
|
160
159
|
const { required: required$1, max, min } = Validators;
|
|
161
160
|
class IdentityPasswordPolicyComponent {
|
|
@@ -411,8 +410,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
411
410
|
}] });
|
|
412
411
|
|
|
413
412
|
class IdentityLinkLoginService {
|
|
414
|
-
constructor(
|
|
415
|
-
this.authService =
|
|
413
|
+
constructor() {
|
|
414
|
+
this.authService = inject(AuthService);
|
|
416
415
|
}
|
|
417
416
|
linkLogin(input) {
|
|
418
417
|
const grantType = 'LinkLogin';
|
|
@@ -424,7 +423,7 @@ class IdentityLinkLoginService {
|
|
|
424
423
|
}
|
|
425
424
|
return from(this.authService.loginUsingGrant(grantType, params));
|
|
426
425
|
}
|
|
427
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityLinkLoginService, deps: [
|
|
426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityLinkLoginService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
428
427
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityLinkLoginService, providedIn: 'root' }); }
|
|
429
428
|
}
|
|
430
429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityLinkLoginService, decorators: [{
|
|
@@ -432,7 +431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
|
|
|
432
431
|
args: [{
|
|
433
432
|
providedIn: 'root',
|
|
434
433
|
}]
|
|
435
|
-
}]
|
|
434
|
+
}] });
|
|
436
435
|
|
|
437
436
|
class LinkLoginHandler {
|
|
438
437
|
listenToQueryParams() {
|
|
@@ -507,20 +506,19 @@ class MyLinkUsersModalComponent {
|
|
|
507
506
|
this._isModalOpen = value;
|
|
508
507
|
}
|
|
509
508
|
constructor() {
|
|
509
|
+
this.list = inject(ListService);
|
|
510
|
+
this.linkUserService = inject(IdentityLinkUserService);
|
|
511
|
+
this.confirmation = inject(ConfirmationService);
|
|
512
|
+
this.configState = inject(ConfigStateService);
|
|
513
|
+
this.authService = inject(AuthService);
|
|
514
|
+
this.environment = inject(EnvironmentService);
|
|
515
|
+
this.linkLoginHandler = inject(LinkLoginHandler);
|
|
510
516
|
this._isModalOpen = true;
|
|
511
|
-
this.injector = inject(Injector);
|
|
512
517
|
this.data = [];
|
|
513
518
|
this.filteredData = [];
|
|
514
519
|
this.filterText = '';
|
|
515
520
|
this.resultCount = 0;
|
|
516
|
-
this.list = this.injector.get(ListService);
|
|
517
521
|
this.list.maxResultCount = 5;
|
|
518
|
-
this.linkUserService = this.injector.get(IdentityLinkUserService);
|
|
519
|
-
this.confirmation = this.injector.get(ConfirmationService);
|
|
520
|
-
this.configState = this.injector.get(ConfigStateService);
|
|
521
|
-
this.authService = this.injector.get(AuthService);
|
|
522
|
-
this.environment = this.injector.get(EnvironmentService);
|
|
523
|
-
this.linkLoginHandler = this.injector.get(LinkLoginHandler);
|
|
524
522
|
}
|
|
525
523
|
get currentUser() {
|
|
526
524
|
return this.configState.getAll().currentUser;
|