@volo/abp.ng.openiddictpro 8.0.0 → 8.0.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/esm2022/config/openiddictpro-config.module.mjs +4 -4
- package/esm2022/lib/components/application-form-modal/application-form-modal.component.mjs +6 -6
- package/esm2022/lib/components/applications/applications.component.mjs +37 -33
- package/esm2022/lib/components/index.mjs +2 -1
- package/esm2022/lib/components/scope-form-modal/scope-form-modal.component.mjs +3 -3
- package/esm2022/lib/components/scopes/scopes.component.mjs +3 -3
- package/esm2022/lib/components/token-lifetime-modal/token-lifetime-modal.component.mjs +69 -0
- package/esm2022/lib/defaults/default-applications-entity-actions.mjs +9 -1
- package/esm2022/lib/defaults/default-applications-entity-props.mjs +10 -4
- package/esm2022/lib/defaults/default-applications-form-props.mjs +3 -13
- package/esm2022/lib/defaults/default-applications-types.mjs +11 -5
- package/esm2022/lib/guards/extensions.guard.mjs +3 -3
- package/esm2022/lib/models/applications-service-state.mjs +1 -1
- package/esm2022/lib/openiddictpro-routing.module.mjs +4 -4
- package/esm2022/lib/openiddictpro.module.mjs +15 -8
- package/esm2022/lib/services/applications.service.mjs +15 -4
- package/esm2022/proxy/lib/proxy/application.service.mjs +13 -4
- package/esm2022/proxy/lib/proxy/applications/dtos/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/scope.service.mjs +3 -3
- package/fesm2022/volo-abp.ng.openiddictpro-config.mjs +4 -4
- package/fesm2022/volo-abp.ng.openiddictpro-proxy.mjs +15 -6
- package/fesm2022/volo-abp.ng.openiddictpro-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.openiddictpro.mjs +186 -99
- package/fesm2022/volo-abp.ng.openiddictpro.mjs.map +1 -1
- package/lib/components/application-form-modal/application-form-modal.component.d.ts +1 -1
- package/lib/components/applications/applications.component.d.ts +7 -8
- package/lib/components/index.d.ts +1 -0
- package/lib/components/token-lifetime-modal/token-lifetime-modal.component.d.ts +22 -0
- package/lib/defaults/default-applications-types.d.ts +3 -3
- package/lib/models/applications-service-state.d.ts +1 -0
- package/lib/openiddictpro.module.d.ts +2 -1
- package/lib/services/applications.service.d.ts +4 -1
- package/package.json +5 -5
- package/proxy/lib/proxy/application.service.d.ts +3 -1
- package/proxy/lib/proxy/applications/dtos/models.d.ts +12 -2
|
@@ -1,31 +1,55 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component,
|
|
3
|
-
import * as i3 from '@abp/ng.core';
|
|
4
|
-
import { InternalStore, ListService, LocalizationService, ConfigStateService, RouterOutletComponent, authGuard, permissionGuard, ReplaceableRouteContainerComponent, LazyModuleFactory
|
|
2
|
+
import { signal, computed, inject, EventEmitter, Component, Input, Output, InjectionToken, Injector, NgModule, Injectable } from '@angular/core';
|
|
3
|
+
import * as i3$1 from '@abp/ng.core';
|
|
4
|
+
import { InternalStore, CoreModule, ListService, LocalizationService, ConfigStateService, RouterOutletComponent, authGuard, permissionGuard, ReplaceableRouteContainerComponent, LazyModuleFactory } from '@abp/ng.core';
|
|
5
5
|
import * as i1$1 from '@angular/router';
|
|
6
6
|
import { RouterModule } from '@angular/router';
|
|
7
|
-
import * as
|
|
8
|
-
import {
|
|
9
|
-
import * as i5
|
|
10
|
-
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, ToolbarAction, FormProp, ExtensionsService, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, getObjectExtensionEntitiesFromStore,
|
|
11
|
-
import * as
|
|
12
|
-
import { ScopeService } from '@volo/abp.ng.openiddictpro/proxy';
|
|
13
|
-
import
|
|
7
|
+
import * as i2 from '@abp/ng.theme.shared';
|
|
8
|
+
import { ThemeSharedModule, ConfirmationService, Confirmation } from '@abp/ng.theme.shared';
|
|
9
|
+
import * as i5 from '@abp/ng.components/extensible';
|
|
10
|
+
import { ExtensibleFormComponent, FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, ToolbarAction, FormProp, ExtensionsService, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, getObjectExtensionEntitiesFromStore, ExtensibleTableComponent } from '@abp/ng.components/extensible';
|
|
11
|
+
import * as i2$1 from '@volo/abp.ng.openiddictpro/proxy';
|
|
12
|
+
import { ApplicationService, ScopeService } from '@volo/abp.ng.openiddictpro/proxy';
|
|
13
|
+
import { finalize, of, filter, switchMap, map as map$1, tap } from 'rxjs';
|
|
14
|
+
import * as i3$2 from '@volo/abp.commercial.ng.ui';
|
|
14
15
|
import { SHOW_ENTITY_HISTORY, CommercialUiModule, AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
15
|
-
import * as
|
|
16
|
+
import * as i4$1 from '@abp/ng.components/page';
|
|
16
17
|
import { PageModule } from '@abp/ng.components/page';
|
|
17
|
-
import * as
|
|
18
|
+
import * as i5$1 from '@abp/ng.permission-management';
|
|
18
19
|
import { PermissionManagementModule } from '@abp/ng.permission-management';
|
|
19
|
-
import { of, map as map$1, tap } from 'rxjs';
|
|
20
20
|
import * as i4 from '@angular/common';
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
21
|
+
import { CommonModule } from '@angular/common';
|
|
22
|
+
import * as i3 from '@angular/forms';
|
|
23
|
+
import { FormBuilder, Validators } from '@angular/forms';
|
|
24
|
+
import * as i1 from '@ngx-validate/core';
|
|
24
25
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
25
26
|
import { map, tap as tap$1, mapTo } from 'rxjs/operators';
|
|
26
27
|
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
|
|
27
28
|
|
|
28
29
|
class ApplicationsService {
|
|
30
|
+
constructor() {
|
|
31
|
+
this.state = new InternalStore({
|
|
32
|
+
isModalVisible: false,
|
|
33
|
+
});
|
|
34
|
+
this.#isModalVisible = signal(false);
|
|
35
|
+
this.isModalVisible = computed(() => this.#isModalVisible());
|
|
36
|
+
this.#isTokenLifetimeModalVisible = signal(false);
|
|
37
|
+
this.isTokenLifetimeModalVisible = computed(() => this.#isTokenLifetimeModalVisible());
|
|
38
|
+
}
|
|
39
|
+
#isModalVisible;
|
|
40
|
+
#isTokenLifetimeModalVisible;
|
|
41
|
+
openModal() {
|
|
42
|
+
this.setModalState(true);
|
|
43
|
+
}
|
|
44
|
+
setModalState(value) {
|
|
45
|
+
this.#isModalVisible.set(value);
|
|
46
|
+
}
|
|
47
|
+
setTokenLifetimeModalState(value) {
|
|
48
|
+
this.#isTokenLifetimeModalVisible.set(value);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
class ScopesService {
|
|
29
53
|
constructor() {
|
|
30
54
|
this.state = new InternalStore({ isModalVisible: false });
|
|
31
55
|
this.isModalVisible$ = this.state.sliceState(x => x.isModalVisible);
|
|
@@ -38,6 +62,61 @@ class ApplicationsService {
|
|
|
38
62
|
}
|
|
39
63
|
}
|
|
40
64
|
|
|
65
|
+
class TokenLifetimeModalComponent {
|
|
66
|
+
constructor() {
|
|
67
|
+
this.#service = inject(ApplicationsService);
|
|
68
|
+
this.#proxyService = inject(ApplicationService);
|
|
69
|
+
this.saved = new EventEmitter();
|
|
70
|
+
this.loading = signal(false);
|
|
71
|
+
this.#fb = inject(FormBuilder);
|
|
72
|
+
this.form = this.#fb.group({
|
|
73
|
+
accessTokenLifetime: [null],
|
|
74
|
+
authorizationCodeLifetime: [null],
|
|
75
|
+
deviceCodeLifetime: [null],
|
|
76
|
+
identityTokenLifetime: [null],
|
|
77
|
+
refreshTokenLifetime: [null],
|
|
78
|
+
userCodeLifetime: [null],
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
#service;
|
|
82
|
+
#proxyService;
|
|
83
|
+
#fb;
|
|
84
|
+
save() {
|
|
85
|
+
if (this.form.invalid) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const id = this.selected.id;
|
|
89
|
+
this.#proxyService
|
|
90
|
+
.setTokenLifetime(id, this.form.value)
|
|
91
|
+
.pipe(finalize(() => {
|
|
92
|
+
this.#service.setTokenLifetimeModalState(false);
|
|
93
|
+
this.saved.emit();
|
|
94
|
+
}))
|
|
95
|
+
.subscribe();
|
|
96
|
+
}
|
|
97
|
+
visibleChange($event) {
|
|
98
|
+
if ($event) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
this.#service.setTokenLifetimeModalState(false);
|
|
102
|
+
}
|
|
103
|
+
ngOnInit() {
|
|
104
|
+
this.#proxyService.getTokenLifetime(this.selected.id).subscribe(x => {
|
|
105
|
+
this.form.patchValue(x);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TokenLifetimeModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
109
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: TokenLifetimeModalComponent, isStandalone: true, selector: "abp-token-lifetime-modal", inputs: { selected: "selected" }, outputs: { saved: "saved" }, ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event) \">\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpOpenIddict::TokenLifetime' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n\r\n <blockquote class=\"blockquote\">\r\n <p class=\"mb-0\">{{ \"AbpOpenIddict::TokenLifetimeHit\" | abpLocalization }}</p>\r\n </blockquote>\r\n\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"accessTokenLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::AccessTokenLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"accessTokenLifetime\" class=\"form-control\" formControlName=\"accessTokenLifetime\" />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"authorizationCodeLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::AuthorizationCodeLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"authorizationCodeLifetime\" class=\"form-control\"\r\n formControlName=\"authorizationCodeLifetime\" />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"deviceCodeLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::DeviceCodeLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"deviceCodeLifetime\" class=\"form-control\" formControlName=\"deviceCodeLifetime\" />\r\n </div>\r\n\r\n <div class=\"form-group mb-3\">\r\n <label for=\"identityTokenLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::IdentityTokenLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"identityTokenLifetime\" class=\"form-control\" formControlName=\"identityTokenLifetime\" />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"refreshTokenLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::RefreshTokenLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"refreshTokenLifetime\" class=\"form-control\" formControlName=\"refreshTokenLifetime\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"userCodeLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::UserCodeLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"userCodeLifetime\" class=\"form-control\"\r\n formControlName=\"userCodeLifetime\" />\r\n </div>\r\n </form>\r\n\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\"\r\n [disabled]=\"loading()\"\r\n formName=\"applicationForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}\r\n </abp-button>\r\n </ng-template>\r\n\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i1.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: i3$1.LocalizationPipe, name: "abpLocalization" }, { kind: "directive", type: i3$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }] }); }
|
|
110
|
+
}
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TokenLifetimeModalComponent, decorators: [{
|
|
112
|
+
type: Component,
|
|
113
|
+
args: [{ selector: 'abp-token-lifetime-modal', standalone: true, imports: [CommonModule, ThemeSharedModule, CoreModule, ExtensibleFormComponent], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event) \">\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpOpenIddict::TokenLifetime' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n\r\n <blockquote class=\"blockquote\">\r\n <p class=\"mb-0\">{{ \"AbpOpenIddict::TokenLifetimeHit\" | abpLocalization }}</p>\r\n </blockquote>\r\n\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"accessTokenLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::AccessTokenLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"accessTokenLifetime\" class=\"form-control\" formControlName=\"accessTokenLifetime\" />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"authorizationCodeLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::AuthorizationCodeLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"authorizationCodeLifetime\" class=\"form-control\"\r\n formControlName=\"authorizationCodeLifetime\" />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"deviceCodeLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::DeviceCodeLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"deviceCodeLifetime\" class=\"form-control\" formControlName=\"deviceCodeLifetime\" />\r\n </div>\r\n\r\n <div class=\"form-group mb-3\">\r\n <label for=\"identityTokenLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::IdentityTokenLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"identityTokenLifetime\" class=\"form-control\" formControlName=\"identityTokenLifetime\" />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"refreshTokenLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::RefreshTokenLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"refreshTokenLifetime\" class=\"form-control\" formControlName=\"refreshTokenLifetime\" />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"userCodeLifetime\"\r\n class=\"form-label\"> {{ \"AbpOpenIddict::UserCodeLifetime\" | abpLocalization }} </label>\r\n <input type=\"number\" id=\"userCodeLifetime\" class=\"form-control\"\r\n formControlName=\"userCodeLifetime\" />\r\n </div>\r\n </form>\r\n\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\"\r\n [disabled]=\"loading()\"\r\n formName=\"applicationForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}\r\n </abp-button>\r\n </ng-template>\r\n\r\n</abp-modal>\r\n" }]
|
|
114
|
+
}], propDecorators: { selected: [{
|
|
115
|
+
type: Input
|
|
116
|
+
}], saved: [{
|
|
117
|
+
type: Output
|
|
118
|
+
}] } });
|
|
119
|
+
|
|
41
120
|
const defaultApplicationsTypeList = [
|
|
42
121
|
{
|
|
43
122
|
key: 'Confidential client',
|
|
@@ -52,10 +131,16 @@ const defaultApplicationTypes = {
|
|
|
52
131
|
public: 'public',
|
|
53
132
|
confidential: 'confidential',
|
|
54
133
|
};
|
|
55
|
-
const defaultApplicationTypesList =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
134
|
+
const defaultApplicationTypesList = [
|
|
135
|
+
{
|
|
136
|
+
key: 'Web',
|
|
137
|
+
value: 'web',
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
key: 'Native',
|
|
141
|
+
value: 'native',
|
|
142
|
+
},
|
|
143
|
+
];
|
|
59
144
|
|
|
60
145
|
const separatorRegex = /\r?\n/;
|
|
61
146
|
const separator = '\n';
|
|
@@ -102,7 +187,7 @@ class ApplicationFormModalComponent {
|
|
|
102
187
|
this.types$ = of(defaultApplicationsTypeList);
|
|
103
188
|
this.consentTypes$ = of(DefaultApplicationsConsentType);
|
|
104
189
|
this.options = { size: 'lg' };
|
|
105
|
-
this.isModalVisible
|
|
190
|
+
this.isModalVisible = this.applicationsService.isModalVisible;
|
|
106
191
|
}
|
|
107
192
|
ngOnChanges() {
|
|
108
193
|
this.createForm();
|
|
@@ -177,26 +262,26 @@ class ApplicationFormModalComponent {
|
|
|
177
262
|
return this.localizationService.instant(displayName);
|
|
178
263
|
}
|
|
179
264
|
}
|
|
180
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
181
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
|
265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ApplicationFormModalComponent, deps: [{ token: i2$1.ApplicationService }, { token: ApplicationsService }, { token: i3$1.LocalizationService }, { token: i3$1.SubscriptionService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
266
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: ApplicationFormModalComponent, selector: "abp-application-form-modal", inputs: { selected: "selected" }, outputs: { saved: "saved" }, usesOnChanges: true, ngImport: i0, template: "\r\n<abp-modal *ngIf=\"isModalVisible()\" [visible]=\"true\" (visibleChange)=\"visibleChange($event) \" [options]=\"options\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewApplication') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\">\r\n </abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"applicationForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i5.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "directive", type: i1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i3$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
182
267
|
}
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ApplicationFormModalComponent, decorators: [{
|
|
184
269
|
type: Component,
|
|
185
|
-
args: [{ selector: 'abp-application-form-modal',
|
|
186
|
-
}], ctorParameters: () => [{ type:
|
|
270
|
+
args: [{ selector: 'abp-application-form-modal', template: "\r\n<abp-modal *ngIf=\"isModalVisible()\" [visible]=\"true\" (visibleChange)=\"visibleChange($event) \" [options]=\"options\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewApplication') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\">\r\n </abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"applicationForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
271
|
+
}], ctorParameters: () => [{ type: i2$1.ApplicationService }, { type: ApplicationsService }, { type: i3$1.LocalizationService }, { type: i3$1.SubscriptionService }, { type: i0.Injector }], propDecorators: { saved: [{
|
|
187
272
|
type: Output
|
|
188
273
|
}], selected: [{
|
|
189
274
|
type: Input
|
|
190
275
|
}] } });
|
|
191
276
|
|
|
192
277
|
class ApplicationsComponent {
|
|
193
|
-
constructor(
|
|
194
|
-
this.service =
|
|
195
|
-
this.
|
|
196
|
-
this.confirmationService =
|
|
197
|
-
this.
|
|
278
|
+
constructor() {
|
|
279
|
+
this.service = inject(ApplicationsService);
|
|
280
|
+
this.list = inject(ListService);
|
|
281
|
+
this.confirmationService = inject(ConfirmationService);
|
|
282
|
+
this.proxyService = inject(ApplicationService);
|
|
198
283
|
this.data = { items: [], totalCount: 0 };
|
|
199
|
-
this.selected = {};
|
|
284
|
+
this.selected = signal({});
|
|
200
285
|
this.visiblePermissions = false;
|
|
201
286
|
this.onVisiblePermissionChange = (value) => {
|
|
202
287
|
this.visiblePermissions = value;
|
|
@@ -206,9 +291,9 @@ class ApplicationsComponent {
|
|
|
206
291
|
this.list.get();
|
|
207
292
|
}
|
|
208
293
|
edit(id) {
|
|
209
|
-
this.
|
|
210
|
-
this.selected
|
|
211
|
-
this.
|
|
294
|
+
this.proxyService.get(id).subscribe(res => {
|
|
295
|
+
this.selected.set(res);
|
|
296
|
+
this.service.openModal();
|
|
212
297
|
});
|
|
213
298
|
}
|
|
214
299
|
delete(id, name) {
|
|
@@ -216,18 +301,17 @@ class ApplicationsComponent {
|
|
|
216
301
|
.warn('AbpOpenIddict::ApplicationDeletionWarningMessage', 'AbpOpenIddict::AreYouSure', {
|
|
217
302
|
messageLocalizationParams: [name],
|
|
218
303
|
})
|
|
219
|
-
.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
304
|
+
.pipe(filter(status => status === Confirmation.Status.confirm), switchMap(() => this.proxyService.delete(id)))
|
|
305
|
+
.subscribe(() => {
|
|
306
|
+
this.list.get();
|
|
223
307
|
});
|
|
224
308
|
}
|
|
225
309
|
ngOnInit() {
|
|
226
310
|
this.hookToQuery();
|
|
227
311
|
}
|
|
228
312
|
onAdd() {
|
|
229
|
-
this.selected
|
|
230
|
-
this.
|
|
313
|
+
this.selected.set({});
|
|
314
|
+
this.service.openModal();
|
|
231
315
|
}
|
|
232
316
|
openPermissionsModal(providerKey) {
|
|
233
317
|
this.providerKey = providerKey;
|
|
@@ -236,18 +320,24 @@ class ApplicationsComponent {
|
|
|
236
320
|
}, 0);
|
|
237
321
|
}
|
|
238
322
|
hookToQuery() {
|
|
239
|
-
this.list
|
|
323
|
+
this.list
|
|
324
|
+
.hookToQuery(query => this.proxyService.getList(query))
|
|
325
|
+
.subscribe(res => (this.data = res));
|
|
240
326
|
}
|
|
241
|
-
|
|
242
|
-
|
|
327
|
+
openTokenLifetimeModal(record) {
|
|
328
|
+
this.selected.set(record);
|
|
329
|
+
this.service.setTokenLifetimeModalState(true);
|
|
330
|
+
}
|
|
331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ApplicationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
332
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.0.8", type: ApplicationsComponent, selector: "abp-applications", providers: [
|
|
243
333
|
ListService,
|
|
244
334
|
{
|
|
245
335
|
provide: EXTENSIONS_IDENTIFIER,
|
|
246
336
|
useValue: "OpenIddictPro.Applications" /* eOpenIddictProComponents.Applications */,
|
|
247
337
|
},
|
|
248
|
-
], ngImport: i0, template: "
|
|
338
|
+
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Applications' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpOpenIddict\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n<abp-application-form-modal [selected]=\"selected()\" (saved)=\"onSaved()\">\r\n</abp-application-form-modal>\r\n\r\n@if (service.isTokenLifetimeModalVisible()) {\r\n <abp-token-lifetime-modal [selected]=\"selected()\" />\r\n}\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'C' },\r\n providerKey: { value: providerKey },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n providerName=\"C\"\r\n [providerKey]=\"providerKey\"\r\n>\r\n</abp-permission-management>\r\n", dependencies: [{ kind: "directive", type: i3$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i5.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i5$1.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: TokenLifetimeModalComponent, selector: "abp-token-lifetime-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "component", type: ApplicationFormModalComponent, selector: "abp-application-form-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "pipe", type: i3$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
249
339
|
}
|
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ApplicationsComponent, decorators: [{
|
|
251
341
|
type: Component,
|
|
252
342
|
args: [{ selector: 'abp-applications', providers: [
|
|
253
343
|
ListService,
|
|
@@ -255,21 +345,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
255
345
|
provide: EXTENSIONS_IDENTIFIER,
|
|
256
346
|
useValue: "OpenIddictPro.Applications" /* eOpenIddictProComponents.Applications */,
|
|
257
347
|
},
|
|
258
|
-
], template: "
|
|
259
|
-
}]
|
|
260
|
-
|
|
261
|
-
class ScopesService {
|
|
262
|
-
constructor() {
|
|
263
|
-
this.state = new InternalStore({ isModalVisible: false });
|
|
264
|
-
this.isModalVisible$ = this.state.sliceState(x => x.isModalVisible);
|
|
265
|
-
}
|
|
266
|
-
openModal() {
|
|
267
|
-
this.setModalState(true);
|
|
268
|
-
}
|
|
269
|
-
setModalState(value) {
|
|
270
|
-
this.state.patch({ isModalVisible: value });
|
|
271
|
-
}
|
|
272
|
-
}
|
|
348
|
+
], template: "<abp-page [title]=\"'AbpOpenIddict::Applications' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpOpenIddict\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n<abp-application-form-modal [selected]=\"selected()\" (saved)=\"onSaved()\">\r\n</abp-application-form-modal>\r\n\r\n@if (service.isTokenLifetimeModalVisible()) {\r\n <abp-token-lifetime-modal [selected]=\"selected()\" />\r\n}\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'C' },\r\n providerKey: { value: providerKey },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n providerName=\"C\"\r\n [providerKey]=\"providerKey\"\r\n>\r\n</abp-permission-management>\r\n" }]
|
|
349
|
+
}] });
|
|
273
350
|
|
|
274
351
|
class ScopeFormModalComponent {
|
|
275
352
|
constructor(injector, scopesService, service) {
|
|
@@ -312,13 +389,13 @@ class ScopeFormModalComponent {
|
|
|
312
389
|
const data = new FormPropData(this.injector, selected);
|
|
313
390
|
this.form = generateFormFromProps(data);
|
|
314
391
|
}
|
|
315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
316
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
|
392
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ScopeFormModalComponent, deps: [{ token: i0.Injector }, { token: ScopesService }, { token: i2$1.ScopeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
393
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: ScopeFormModalComponent, selector: "abp-scope-form-modal", inputs: { selected: "selected" }, outputs: { saved: "saved" }, usesOnChanges: true, ngImport: i0, template: "\r\n<abp-modal [visible]=\"isModalVisible$ | async\" (visibleChange)=\"visibleChange($event)\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewScope') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"scopeForm\" [blueprints]=\"blueprints\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"scopeForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i5.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "directive", type: i1.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i2.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
317
394
|
}
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ScopeFormModalComponent, decorators: [{
|
|
319
396
|
type: Component,
|
|
320
397
|
args: [{ selector: 'abp-scope-form-modal', template: "\r\n<abp-modal [visible]=\"isModalVisible$ | async\" (visibleChange)=\"visibleChange($event)\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewScope') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"scopeForm\" [blueprints]=\"blueprints\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"scopeForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
321
|
-
}], ctorParameters: () => [{ type: i0.Injector }, { type: ScopesService }, { type:
|
|
398
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: ScopesService }, { type: i2$1.ScopeService }], propDecorators: { selected: [{
|
|
322
399
|
type: Input
|
|
323
400
|
}], saved: [{
|
|
324
401
|
type: Output
|
|
@@ -363,16 +440,16 @@ class ScopesComponent {
|
|
|
363
440
|
onSaved() {
|
|
364
441
|
this.list.get();
|
|
365
442
|
}
|
|
366
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
367
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
|
443
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ScopesComponent, deps: [{ token: i3$1.ListService }, { token: i2$1.ScopeService }, { token: ScopesService }, { token: i2.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
444
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.8", type: ScopesComponent, selector: "abp-scopes", providers: [
|
|
368
445
|
ListService,
|
|
369
446
|
{
|
|
370
447
|
provide: EXTENSIONS_IDENTIFIER,
|
|
371
448
|
useValue: "OpenIddictPro.Scopes" /* eOpenIddictProComponents.Scopes */,
|
|
372
449
|
},
|
|
373
|
-
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpOpenIddict\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-scope-form-modal [selected]=\"selected\" (saved)=\"onSaved()\">\r\n</abp-scope-form-modal>\r\n", dependencies: [{ kind: "component", type: i5
|
|
450
|
+
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpOpenIddict\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-scope-form-modal [selected]=\"selected\" (saved)=\"onSaved()\">\r\n</abp-scope-form-modal>\r\n", dependencies: [{ kind: "component", type: i5.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ScopeFormModalComponent, selector: "abp-scope-form-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "pipe", type: i3$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
374
451
|
}
|
|
375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: ScopesComponent, decorators: [{
|
|
376
453
|
type: Component,
|
|
377
454
|
args: [{ selector: 'abp-scopes', providers: [
|
|
378
455
|
ListService,
|
|
@@ -381,7 +458,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
381
458
|
useValue: "OpenIddictPro.Scopes" /* eOpenIddictProComponents.Scopes */,
|
|
382
459
|
},
|
|
383
460
|
], template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpOpenIddict\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-scope-form-modal [selected]=\"selected\" (saved)=\"onSaved()\">\r\n</abp-scope-form-modal>\r\n" }]
|
|
384
|
-
}], ctorParameters: () => [{ type: i3.ListService }, { type:
|
|
461
|
+
}], ctorParameters: () => [{ type: i3$1.ListService }, { type: i2$1.ScopeService }, { type: ScopesService }, { type: i2.ConfirmationService }] });
|
|
385
462
|
|
|
386
463
|
const DEFAULT_APPLICATIONS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
387
464
|
{
|
|
@@ -392,6 +469,14 @@ const DEFAULT_APPLICATIONS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
|
392
469
|
},
|
|
393
470
|
permission: 'OpenIddictPro.Application.Update',
|
|
394
471
|
},
|
|
472
|
+
{
|
|
473
|
+
text: 'AbpOpenIddict::TokenLifetime',
|
|
474
|
+
action: data => {
|
|
475
|
+
const component = data.getInjected(ApplicationsComponent);
|
|
476
|
+
component.openTokenLifetimeModal(data.record);
|
|
477
|
+
},
|
|
478
|
+
permission: 'OpenIddictPro.Application.Update',
|
|
479
|
+
},
|
|
395
480
|
{
|
|
396
481
|
text: 'AbpOpenIddict::ChangeHistory',
|
|
397
482
|
action: data => {
|
|
@@ -419,6 +504,12 @@ const DEFAULT_APPLICATIONS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
|
419
504
|
]);
|
|
420
505
|
|
|
421
506
|
const DEFAULT_APPLICATIONS_ENTITY_PROPS = EntityProp.createMany([
|
|
507
|
+
{
|
|
508
|
+
type: "string" /* ePropType.String */,
|
|
509
|
+
name: 'applicationType',
|
|
510
|
+
displayName: 'AbpOpenIddict::ApplicationType',
|
|
511
|
+
columnWidth: 100,
|
|
512
|
+
},
|
|
422
513
|
{
|
|
423
514
|
type: "string" /* ePropType.String */,
|
|
424
515
|
name: 'clientId',
|
|
@@ -429,12 +520,12 @@ const DEFAULT_APPLICATIONS_ENTITY_PROPS = EntityProp.createMany([
|
|
|
429
520
|
type: "string" /* ePropType.String */,
|
|
430
521
|
name: 'displayName',
|
|
431
522
|
displayName: 'AbpOpenIddict::DisplayName',
|
|
432
|
-
columnWidth:
|
|
523
|
+
columnWidth: 100,
|
|
433
524
|
},
|
|
434
525
|
{
|
|
435
526
|
type: "string" /* ePropType.String */,
|
|
436
|
-
name: '
|
|
437
|
-
displayName: 'AbpOpenIddict::
|
|
527
|
+
name: 'clientType',
|
|
528
|
+
displayName: 'AbpOpenIddict::ClientType',
|
|
438
529
|
columnWidth: 200,
|
|
439
530
|
},
|
|
440
531
|
]);
|
|
@@ -490,21 +581,11 @@ const groupRight = {
|
|
|
490
581
|
className: 'col col-md-6',
|
|
491
582
|
};
|
|
492
583
|
const className = 'mb-1 form-group';
|
|
584
|
+
// @ts-ignore
|
|
493
585
|
const DEFAULT_APPLICATIONS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
494
586
|
{
|
|
495
587
|
type: "string" /* ePropType.String */,
|
|
496
|
-
options: data =>
|
|
497
|
-
const languageService = data.getInjected(LocalizationService);
|
|
498
|
-
const webText = languageService.instant('AbpOpenIddict::Web');
|
|
499
|
-
const nativeText = languageService.instant('AbpOpenIddict::Native');
|
|
500
|
-
return of([
|
|
501
|
-
{ key: webText, value: defaultApplicationTypesList.web },
|
|
502
|
-
{
|
|
503
|
-
key: nativeText,
|
|
504
|
-
value: defaultApplicationTypesList.native,
|
|
505
|
-
},
|
|
506
|
-
]);
|
|
507
|
-
},
|
|
588
|
+
options: data => of(defaultApplicationTypesList),
|
|
508
589
|
name: 'applicationType',
|
|
509
590
|
displayName: 'AbpOpenIddict::ApplicationType',
|
|
510
591
|
id: 'applicationType',
|
|
@@ -925,11 +1006,11 @@ const routes = [
|
|
|
925
1006
|
},
|
|
926
1007
|
];
|
|
927
1008
|
class OpeniddictproRoutingModule {
|
|
928
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
929
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
|
930
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
|
1009
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1010
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] }); }
|
|
1011
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
931
1012
|
}
|
|
932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1013
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproRoutingModule, decorators: [{
|
|
933
1014
|
type: NgModule,
|
|
934
1015
|
args: [{
|
|
935
1016
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -976,8 +1057,8 @@ class OpeniddictproModule {
|
|
|
976
1057
|
static forLazy(options = {}) {
|
|
977
1058
|
return new LazyModuleFactory(OpeniddictproModule.forChild(options));
|
|
978
1059
|
}
|
|
979
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
980
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
|
1060
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1061
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproModule, declarations: [ApplicationsComponent,
|
|
981
1062
|
ApplicationFormModalComponent,
|
|
982
1063
|
ScopesComponent,
|
|
983
1064
|
ScopeFormModalComponent], imports: [OpeniddictproRoutingModule,
|
|
@@ -989,11 +1070,13 @@ class OpeniddictproModule {
|
|
|
989
1070
|
PageModule,
|
|
990
1071
|
AdvancedEntityFiltersModule,
|
|
991
1072
|
PermissionManagementModule,
|
|
992
|
-
ExtensibleFormComponent
|
|
1073
|
+
ExtensibleFormComponent,
|
|
1074
|
+
TokenLifetimeModalComponent,
|
|
1075
|
+
ExtensibleTableComponent], exports: [ApplicationsComponent,
|
|
993
1076
|
ApplicationFormModalComponent,
|
|
994
1077
|
ScopesComponent,
|
|
995
1078
|
ScopeFormModalComponent] }); }
|
|
996
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
|
1079
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproModule, imports: [OpeniddictproRoutingModule,
|
|
997
1080
|
CoreModule,
|
|
998
1081
|
CommercialUiModule,
|
|
999
1082
|
ThemeSharedModule,
|
|
@@ -1002,9 +1085,11 @@ class OpeniddictproModule {
|
|
|
1002
1085
|
PageModule,
|
|
1003
1086
|
AdvancedEntityFiltersModule,
|
|
1004
1087
|
PermissionManagementModule,
|
|
1005
|
-
ExtensibleFormComponent
|
|
1088
|
+
ExtensibleFormComponent,
|
|
1089
|
+
TokenLifetimeModalComponent,
|
|
1090
|
+
ExtensibleTableComponent] }); }
|
|
1006
1091
|
}
|
|
1007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpeniddictproModule, decorators: [{
|
|
1008
1093
|
type: NgModule,
|
|
1009
1094
|
args: [{
|
|
1010
1095
|
imports: [
|
|
@@ -1018,6 +1103,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
1018
1103
|
AdvancedEntityFiltersModule,
|
|
1019
1104
|
PermissionManagementModule,
|
|
1020
1105
|
ExtensibleFormComponent,
|
|
1106
|
+
TokenLifetimeModalComponent,
|
|
1107
|
+
ExtensibleTableComponent,
|
|
1021
1108
|
],
|
|
1022
1109
|
declarations: [...components],
|
|
1023
1110
|
exports: [...components],
|
|
@@ -1052,10 +1139,10 @@ class OpenIddictProExtensionsGuard {
|
|
|
1052
1139
|
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
1053
1140
|
}), mapTo(true));
|
|
1054
1141
|
}
|
|
1055
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
1056
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
1142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpenIddictProExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1143
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpenIddictProExtensionsGuard }); }
|
|
1057
1144
|
}
|
|
1058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: OpenIddictProExtensionsGuard, decorators: [{
|
|
1059
1146
|
type: Injectable
|
|
1060
1147
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1061
1148
|
|
|
@@ -1063,5 +1150,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImpor
|
|
|
1063
1150
|
* Generated bundle index. Do not edit.
|
|
1064
1151
|
*/
|
|
1065
1152
|
|
|
1066
|
-
export { ApplicationFormModalComponent, ApplicationsComponent, ApplicationsService, DEFAULT_APPLICATIONS_CREATE_FORM_PROPS, DEFAULT_APPLICATIONS_ENTITY_ACTIONS, DEFAULT_APPLICATIONS_ENTITY_PROPS, DEFAULT_APPLICATIONS_FORM_PROPS, DEFAULT_APPLICATIONS_TOOLBAR_ACTIONS, DEFAULT_OPENIDDICT_PRO_CREATE_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_ENTITY_ACTIONS, DEFAULT_OPENIDDICT_PRO_ENTITY_PROPS, DEFAULT_OPENIDDICT_PRO_TOOLBAR_ACTIONS, DEFAULT_SCOPES_ENTITY_PROPS, DEFAULT_SCOPES_FORM_PROPS, DEFAULT_SCOPES_TOOLBAR_ACTIONS, DEFAULT_SCOPE_CREATE_FORM_PROPS, DEFAULT_SCOPE_ENTITY_ACTIONS, DefaultApplicationsConsentType, OPENIDDICT_PRO_CREATE_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_EDIT_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_ACTION_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_PROP_CONTRIBUTORS, OPENIDDICT_PRO_TOOLBAR_ACTION_CONTRIBUTORS, OpenIddictProExtensionsGuard, OpeniddictproModule, ScopeFormModalComponent, ScopesComponent, ScopesService, UrisValidator, allowFlow, defaultApplicationTypes, defaultApplicationTypesList, defaultApplicationsTypeList, defaultUriPattern, hashSetParser };
|
|
1153
|
+
export { ApplicationFormModalComponent, ApplicationsComponent, ApplicationsService, DEFAULT_APPLICATIONS_CREATE_FORM_PROPS, DEFAULT_APPLICATIONS_ENTITY_ACTIONS, DEFAULT_APPLICATIONS_ENTITY_PROPS, DEFAULT_APPLICATIONS_FORM_PROPS, DEFAULT_APPLICATIONS_TOOLBAR_ACTIONS, DEFAULT_OPENIDDICT_PRO_CREATE_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_ENTITY_ACTIONS, DEFAULT_OPENIDDICT_PRO_ENTITY_PROPS, DEFAULT_OPENIDDICT_PRO_TOOLBAR_ACTIONS, DEFAULT_SCOPES_ENTITY_PROPS, DEFAULT_SCOPES_FORM_PROPS, DEFAULT_SCOPES_TOOLBAR_ACTIONS, DEFAULT_SCOPE_CREATE_FORM_PROPS, DEFAULT_SCOPE_ENTITY_ACTIONS, DefaultApplicationsConsentType, OPENIDDICT_PRO_CREATE_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_EDIT_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_ACTION_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_PROP_CONTRIBUTORS, OPENIDDICT_PRO_TOOLBAR_ACTION_CONTRIBUTORS, OpenIddictProExtensionsGuard, OpeniddictproModule, ScopeFormModalComponent, ScopesComponent, ScopesService, TokenLifetimeModalComponent, UrisValidator, allowFlow, defaultApplicationTypes, defaultApplicationTypesList, defaultApplicationsTypeList, defaultUriPattern, hashSetParser };
|
|
1067
1154
|
//# sourceMappingURL=volo-abp.ng.openiddictpro.mjs.map
|