@volo/abp.ng.openiddictpro 10.5.0 → 10.6.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/fesm2022/volo-abp.ng.openiddictpro-config.mjs +4 -4
- package/fesm2022/volo-abp.ng.openiddictpro-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.openiddictpro-proxy.mjs +17 -7
- package/fesm2022/volo-abp.ng.openiddictpro-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.openiddictpro.mjs +178 -64
- package/fesm2022/volo-abp.ng.openiddictpro.mjs.map +1 -1
- package/package.json +5 -5
- package/types/volo-abp.ng.openiddictpro-proxy.d.ts +15 -2
- package/types/volo-abp.ng.openiddictpro.d.ts +29 -10
|
@@ -3,6 +3,7 @@ import { signal, computed, inject, Injector, DestroyRef, output, input, Componen
|
|
|
3
3
|
import { InternalStore, LocalizationService, SubscriptionService, LocalizationPipe, ListService, ReplaceableTemplateDirective, ReplaceableRouteContainerComponent, authGuard, permissionGuard, RouterOutletComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
|
|
4
4
|
import * as i1$1 from '@angular/router';
|
|
5
5
|
import { RouterModule } from '@angular/router';
|
|
6
|
+
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
6
7
|
import { of, skip, finalize, filter, switchMap, map as map$1, tap } from 'rxjs';
|
|
7
8
|
import { ToasterService, ModalCloseDirective, ModalComponent, ButtonComponent, ConfirmationService, Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
8
9
|
import { PageComponent, PageModule } from '@abp/ng.components/page';
|
|
@@ -12,7 +13,6 @@ import { AdvancedEntityFiltersComponent, SHOW_ENTITY_HISTORY, CommercialUiModule
|
|
|
12
13
|
import { ApplicationService, ScopeService } from '@volo/abp.ng.openiddictpro/proxy';
|
|
13
14
|
import * as i1 from '@angular/forms';
|
|
14
15
|
import { FormsModule, ReactiveFormsModule, FormBuilder, Validators, FormGroupDirective } from '@angular/forms';
|
|
15
|
-
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
16
16
|
import * as i2 from '@ngx-validate/core';
|
|
17
17
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
18
18
|
import { AsyncPipe } from '@angular/common';
|
|
@@ -24,13 +24,22 @@ class ApplicationsService {
|
|
|
24
24
|
this.state = new InternalStore({
|
|
25
25
|
isModalVisible: false,
|
|
26
26
|
});
|
|
27
|
-
this.#isModalVisible = signal(false,
|
|
28
|
-
|
|
29
|
-
this
|
|
30
|
-
|
|
27
|
+
this.#isModalVisible = signal(false, /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "#isModalVisible" }] : /* istanbul ignore next */ []));
|
|
29
|
+
this.isModalVisible = computed(() => this.#isModalVisible(), /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "isModalVisible" }] : /* istanbul ignore next */ []));
|
|
31
|
+
this.#isTokenLifetimeModalVisible = signal(false, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "#isTokenLifetimeModalVisible" }] : /* istanbul ignore next */ []));
|
|
33
|
+
this.isTokenLifetimeModalVisible = computed(() => this.#isTokenLifetimeModalVisible(), /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "isTokenLifetimeModalVisible" }] : /* istanbul ignore next */ []));
|
|
35
|
+
this.#isGenerateAccessTokenModalVisible = signal(false, /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "#isGenerateAccessTokenModalVisible" }] : /* istanbul ignore next */ []));
|
|
37
|
+
this.isGenerateAccessTokenModalVisible = computed(() => this.#isGenerateAccessTokenModalVisible(), /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "isGenerateAccessTokenModalVisible" }] : /* istanbul ignore next */ []));
|
|
31
39
|
}
|
|
32
40
|
#isModalVisible;
|
|
33
41
|
#isTokenLifetimeModalVisible;
|
|
42
|
+
#isGenerateAccessTokenModalVisible;
|
|
34
43
|
openModal() {
|
|
35
44
|
this.setModalState(true);
|
|
36
45
|
}
|
|
@@ -40,6 +49,9 @@ class ApplicationsService {
|
|
|
40
49
|
setTokenLifetimeModalState(value) {
|
|
41
50
|
this.#isTokenLifetimeModalVisible.set(value);
|
|
42
51
|
}
|
|
52
|
+
setGenerateAccessTokenModalState(value) {
|
|
53
|
+
this.#isGenerateAccessTokenModalVisible.set(value);
|
|
54
|
+
}
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
const defaultApplicationsTypeList = [
|
|
@@ -115,7 +127,8 @@ class ApplicationFormModalComponent {
|
|
|
115
127
|
this.toasterService = inject(ToasterService);
|
|
116
128
|
this.destroyRef = inject(DestroyRef);
|
|
117
129
|
this.saved = output();
|
|
118
|
-
this.selected = input(undefined,
|
|
130
|
+
this.selected = input(undefined, /* @ts-ignore */
|
|
131
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
119
132
|
this.types$ = of(defaultApplicationsTypeList);
|
|
120
133
|
this.consentTypes$ = of(DefaultApplicationsConsentType);
|
|
121
134
|
this.options = { size: 'lg' };
|
|
@@ -237,10 +250,10 @@ class ApplicationFormModalComponent {
|
|
|
237
250
|
return this.localizationService.instant(displayName);
|
|
238
251
|
}
|
|
239
252
|
}
|
|
240
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
241
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
253
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApplicationFormModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
254
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: ApplicationFormModalComponent, isStandalone: true, selector: "abp-application-form-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saved: "saved" }, ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\" [options]=\"options\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{\r\n (selected()?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewApplication') | abpLocalization\r\n }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" [validateOnSubmit]=\"true\">\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected()\" />\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-outline-primary\" 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
242
255
|
}
|
|
243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApplicationFormModalComponent, decorators: [{
|
|
244
257
|
type: Component,
|
|
245
258
|
args: [{ selector: 'abp-application-form-modal', imports: [
|
|
246
259
|
FormsModule,
|
|
@@ -251,7 +264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
251
264
|
ExtensibleFormComponent,
|
|
252
265
|
ModalComponent,
|
|
253
266
|
ButtonComponent,
|
|
254
|
-
], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\" [options]=\"options\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{\r\n (selected()?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewApplication') | abpLocalization\r\n }}\r\n </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 </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" 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" }]
|
|
267
|
+
], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\" [options]=\"options\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{\r\n (selected()?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewApplication') | abpLocalization\r\n }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" [validateOnSubmit]=\"true\">\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected()\" />\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-outline-primary\" 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" }]
|
|
255
268
|
}], propDecorators: { saved: [{ type: i0.Output, args: ["saved"] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }] } });
|
|
256
269
|
|
|
257
270
|
class ScopesService {
|
|
@@ -284,9 +297,11 @@ class TokenLifetimeModalComponent {
|
|
|
284
297
|
this.#service = inject(ApplicationsService);
|
|
285
298
|
this.#proxyService = inject(ApplicationService);
|
|
286
299
|
this.#fb = inject(FormBuilder);
|
|
287
|
-
this.selected = input(undefined,
|
|
300
|
+
this.selected = input(undefined, /* @ts-ignore */
|
|
301
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
288
302
|
this.saved = output();
|
|
289
|
-
this.loading = signal(false,
|
|
303
|
+
this.loading = signal(false, /* @ts-ignore */
|
|
304
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
290
305
|
this.form = this.#fb.group(this.generateTokenLifetimeFormControls());
|
|
291
306
|
}
|
|
292
307
|
#service;
|
|
@@ -326,10 +341,10 @@ class TokenLifetimeModalComponent {
|
|
|
326
341
|
}
|
|
327
342
|
this.#service.setTokenLifetimeModalState(false);
|
|
328
343
|
}
|
|
329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
330
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
344
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TokenLifetimeModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
345
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: TokenLifetimeModalComponent, isStandalone: true, selector: "abp-token-lifetime-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saved: "saved" }, ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\">\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 <small>\r\n <p class=\"mb-3\">\r\n {{ 'AbpOpenIddict::TokenLifetimeHit' | abpLocalization }}\r\n </p>\r\n </small>\r\n\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"accessTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::AccessTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"accessTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"accessTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"authorizationCodeLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::AuthorizationCodeLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"authorizationCodeLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"authorizationCodeLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"deviceCodeLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::DeviceCodeLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"deviceCodeLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"deviceCodeLifetime\"\r\n />\r\n </div>\r\n\r\n <div class=\"form-group mb-3\">\r\n <label for=\"identityTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::IdentityTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"identityTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"identityTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"refreshTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::RefreshTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"refreshTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"refreshTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"userCodeLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::UserCodeLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"userCodeLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"userCodeLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"requestTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::RequestTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"requestTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"requestTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"issuedTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::IssuedTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"issuedTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"issuedTokenLifetime\"\r\n />\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-outline-primary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n buttonType=\"submit\"\r\n [disabled]=\"loading()\"\r\n formName=\"applicationForm\"\r\n >{{ 'AbpOpenIddict::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number]:not([ngNoCva])[formControlName],input[type=number]:not([ngNoCva])[formControl],input[type=number]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
331
346
|
}
|
|
332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TokenLifetimeModalComponent, decorators: [{
|
|
333
348
|
type: Component,
|
|
334
349
|
args: [{ selector: 'abp-token-lifetime-modal', imports: [
|
|
335
350
|
FormsModule,
|
|
@@ -339,9 +354,98 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
339
354
|
LocalizationPipe,
|
|
340
355
|
ModalComponent,
|
|
341
356
|
ButtonComponent,
|
|
342
|
-
], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\">\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 <
|
|
357
|
+
], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\">\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 <small>\r\n <p class=\"mb-3\">\r\n {{ 'AbpOpenIddict::TokenLifetimeHit' | abpLocalization }}\r\n </p>\r\n </small>\r\n\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"accessTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::AccessTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"accessTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"accessTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"authorizationCodeLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::AuthorizationCodeLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"authorizationCodeLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"authorizationCodeLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"deviceCodeLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::DeviceCodeLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"deviceCodeLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"deviceCodeLifetime\"\r\n />\r\n </div>\r\n\r\n <div class=\"form-group mb-3\">\r\n <label for=\"identityTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::IdentityTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"identityTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"identityTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"refreshTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::RefreshTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"refreshTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"refreshTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"userCodeLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::UserCodeLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"userCodeLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"userCodeLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group mb-3\">\r\n <label for=\"requestTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::RequestTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"requestTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"requestTokenLifetime\"\r\n />\r\n </div>\r\n <div class=\"form-group\">\r\n <label for=\"issuedTokenLifetime\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::IssuedTokenLifetime' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"number\"\r\n id=\"issuedTokenLifetime\"\r\n class=\"form-control\"\r\n formControlName=\"issuedTokenLifetime\"\r\n />\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-outline-primary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n buttonType=\"submit\"\r\n [disabled]=\"loading()\"\r\n formName=\"applicationForm\"\r\n >{{ 'AbpOpenIddict::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
343
358
|
}], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], saved: [{ type: i0.Output, args: ["saved"] }] } });
|
|
344
359
|
|
|
360
|
+
class GenerateAccessTokenModalComponent {
|
|
361
|
+
constructor() {
|
|
362
|
+
this.toasterService = inject(ToasterService);
|
|
363
|
+
this.#service = inject(ApplicationsService);
|
|
364
|
+
this.#proxyService = inject(ApplicationService);
|
|
365
|
+
this.#fb = inject(FormBuilder);
|
|
366
|
+
this.selected = input(undefined, /* @ts-ignore */
|
|
367
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
368
|
+
this.loading = signal(false, /* @ts-ignore */
|
|
369
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
370
|
+
this.allowedScopes = signal([], /* @ts-ignore */
|
|
371
|
+
...(ngDevMode ? [{ debugName: "allowedScopes" }] : /* istanbul ignore next */ []));
|
|
372
|
+
this.result = signal(null, /* @ts-ignore */
|
|
373
|
+
...(ngDevMode ? [{ debugName: "result" }] : /* istanbul ignore next */ []));
|
|
374
|
+
this.form = this.#fb.group({
|
|
375
|
+
clientSecret: ['', Validators.required],
|
|
376
|
+
scopes: this.#fb.array([]),
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
#service;
|
|
380
|
+
#proxyService;
|
|
381
|
+
#fb;
|
|
382
|
+
get scopesFormArray() {
|
|
383
|
+
return this.form.get('scopes');
|
|
384
|
+
}
|
|
385
|
+
ngOnInit() {
|
|
386
|
+
const sorted = [...(this.selected()?.scopes ?? [])].sort();
|
|
387
|
+
this.allowedScopes.set(sorted);
|
|
388
|
+
sorted.forEach(() => this.scopesFormArray.push(this.#fb.control(false)));
|
|
389
|
+
}
|
|
390
|
+
generate() {
|
|
391
|
+
if (this.form.invalid) {
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
const id = this.selected()?.id;
|
|
395
|
+
const selectedScopes = this.scopesFormArray.controls
|
|
396
|
+
.map((control, i) => (control.value ? this.allowedScopes()[i] : null))
|
|
397
|
+
.filter((scope) => scope !== null);
|
|
398
|
+
const input = {
|
|
399
|
+
clientSecret: this.form.value.clientSecret,
|
|
400
|
+
scopes: selectedScopes,
|
|
401
|
+
};
|
|
402
|
+
this.result.set(null);
|
|
403
|
+
this.loading.set(true);
|
|
404
|
+
this.#proxyService
|
|
405
|
+
.generateAccessToken(id, input, { skipHandleError: true })
|
|
406
|
+
.pipe(finalize(() => this.loading.set(false)))
|
|
407
|
+
.subscribe({
|
|
408
|
+
next: res => this.result.set(res),
|
|
409
|
+
error: err => {
|
|
410
|
+
const message = err?.error?.error?.message ||
|
|
411
|
+
err?.message ||
|
|
412
|
+
'AbpOpenIddict::FailedToGenerateAccessToken';
|
|
413
|
+
this.toasterService.warn(message);
|
|
414
|
+
},
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
copyToken() {
|
|
418
|
+
const token = this.result()?.accessToken;
|
|
419
|
+
if (!token) {
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
navigator.clipboard
|
|
423
|
+
.writeText(token)
|
|
424
|
+
.then(() => this.toasterService.success('AbpOpenIddict::Copied'))
|
|
425
|
+
.catch(() => this.toasterService.error('AbpOpenIddict::FailedToCopyToClipboard'));
|
|
426
|
+
}
|
|
427
|
+
visibleChange($event) {
|
|
428
|
+
if ($event) {
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
this.#service.setGenerateAccessTokenModalState(false);
|
|
432
|
+
}
|
|
433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GenerateAccessTokenModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
434
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: GenerateAccessTokenModalComponent, isStandalone: true, selector: "abp-generate-access-token-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpOpenIddict::GenerateAccessToken' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::ClientId' | abpLocalization }}</div>\r\n <div class=\"fw-semibold text-break\">{{ selected()?.clientId }}</div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::DisplayName' | abpLocalization }}</div>\r\n <div class=\"fw-semibold text-break\">{{ selected()?.displayName || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n\r\n <form [formGroup]=\"form\" id=\"generateAccessTokenForm\" (ngSubmit)=\"generate()\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"clientSecret\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::ClientSecret' | abpLocalization }}\r\n <span class=\"text-danger\">*</span>\r\n </label>\r\n <input\r\n type=\"password\"\r\n id=\"clientSecret\"\r\n class=\"form-control\"\r\n formControlName=\"clientSecret\"\r\n autocomplete=\"off\"\r\n />\r\n </div>\r\n\r\n <div class=\"form-group mb-3\">\r\n <label class=\"form-label\">{{ 'AbpOpenIddict::SelectScopes' | abpLocalization }}</label>\r\n @if (allowedScopes().length === 0) {\r\n <div class=\"text-muted small\">\r\n {{ 'AbpOpenIddict::NoAllowedScopesForApplication' | abpLocalization }}\r\n </div>\r\n } @else {\r\n <div formArrayName=\"scopes\" class=\"row\">\r\n @for (scope of allowedScopes(); track scope; let i = $index) {\r\n <div class=\"col-sm-6 col-md-4\">\r\n <div class=\"form-check\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"scope-{{ scope }}\"\r\n [formControlName]=\"i\"\r\n />\r\n <label class=\"form-check-label\" for=\"scope-{{ scope }}\">{{ scope }}</label>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </form>\r\n\r\n @if (result()) {\r\n <hr />\r\n <div class=\"form-group mb-3\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-1\">\r\n <label class=\"form-label mb-0\">\r\n {{ 'AbpOpenIddict::AccessToken' | abpLocalization }}\r\n </label>\r\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\" (click)=\"copyToken()\">\r\n <i class=\"fa fa-copy\"></i>\r\n {{ 'AbpOpenIddict::CopyToClipboard' | abpLocalization }}\r\n </button>\r\n </div>\r\n <textarea\r\n class=\"form-control font-monospace small\"\r\n rows=\"6\"\r\n readonly\r\n [value]=\"result().accessToken\"\r\n ></textarea>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::TokenType' | abpLocalization }}</div>\r\n <div class=\"fw-semibold\">{{ result().tokenType || '\u2014' }}</div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::ExpiresIn' | abpLocalization }}</div>\r\n <div class=\"fw-semibold\">{{ result().expiresIn ?? '\u2014' }}</div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::Scope' | abpLocalization }}</div>\r\n <div class=\"fw-semibold text-break\">{{ result().scope || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-key\"\r\n buttonType=\"submit\"\r\n [disabled]=\"loading()\"\r\n formName=\"generateAccessTokenForm\"\r\n >\r\n {{ 'AbpOpenIddict::GenerateAccessToken' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
435
|
+
}
|
|
436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GenerateAccessTokenModalComponent, decorators: [{
|
|
437
|
+
type: Component,
|
|
438
|
+
args: [{ selector: 'abp-generate-access-token-modal', imports: [
|
|
439
|
+
FormsModule,
|
|
440
|
+
ReactiveFormsModule,
|
|
441
|
+
NgxValidateCoreModule,
|
|
442
|
+
ModalCloseDirective,
|
|
443
|
+
LocalizationPipe,
|
|
444
|
+
ModalComponent,
|
|
445
|
+
ButtonComponent,
|
|
446
|
+
], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpOpenIddict::GenerateAccessToken' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"row mb-3\">\r\n <div class=\"col-md-6\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::ClientId' | abpLocalization }}</div>\r\n <div class=\"fw-semibold text-break\">{{ selected()?.clientId }}</div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::DisplayName' | abpLocalization }}</div>\r\n <div class=\"fw-semibold text-break\">{{ selected()?.displayName || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n\r\n <form [formGroup]=\"form\" id=\"generateAccessTokenForm\" (ngSubmit)=\"generate()\" [validateOnSubmit]=\"true\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"clientSecret\" class=\"form-label\">\r\n {{ 'AbpOpenIddict::ClientSecret' | abpLocalization }}\r\n <span class=\"text-danger\">*</span>\r\n </label>\r\n <input\r\n type=\"password\"\r\n id=\"clientSecret\"\r\n class=\"form-control\"\r\n formControlName=\"clientSecret\"\r\n autocomplete=\"off\"\r\n />\r\n </div>\r\n\r\n <div class=\"form-group mb-3\">\r\n <label class=\"form-label\">{{ 'AbpOpenIddict::SelectScopes' | abpLocalization }}</label>\r\n @if (allowedScopes().length === 0) {\r\n <div class=\"text-muted small\">\r\n {{ 'AbpOpenIddict::NoAllowedScopesForApplication' | abpLocalization }}\r\n </div>\r\n } @else {\r\n <div formArrayName=\"scopes\" class=\"row\">\r\n @for (scope of allowedScopes(); track scope; let i = $index) {\r\n <div class=\"col-sm-6 col-md-4\">\r\n <div class=\"form-check\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"scope-{{ scope }}\"\r\n [formControlName]=\"i\"\r\n />\r\n <label class=\"form-check-label\" for=\"scope-{{ scope }}\">{{ scope }}</label>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </div>\r\n </form>\r\n\r\n @if (result()) {\r\n <hr />\r\n <div class=\"form-group mb-3\">\r\n <div class=\"d-flex justify-content-between align-items-center mb-1\">\r\n <label class=\"form-label mb-0\">\r\n {{ 'AbpOpenIddict::AccessToken' | abpLocalization }}\r\n </label>\r\n <button type=\"button\" class=\"btn btn-sm btn-outline-primary\" (click)=\"copyToken()\">\r\n <i class=\"fa fa-copy\"></i>\r\n {{ 'AbpOpenIddict::CopyToClipboard' | abpLocalization }}\r\n </button>\r\n </div>\r\n <textarea\r\n class=\"form-control font-monospace small\"\r\n rows=\"6\"\r\n readonly\r\n [value]=\"result().accessToken\"\r\n ></textarea>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::TokenType' | abpLocalization }}</div>\r\n <div class=\"fw-semibold\">{{ result().tokenType || '\u2014' }}</div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::ExpiresIn' | abpLocalization }}</div>\r\n <div class=\"fw-semibold\">{{ result().expiresIn ?? '\u2014' }}</div>\r\n </div>\r\n <div class=\"col-md-4\">\r\n <div class=\"text-muted small\">{{ 'AbpOpenIddict::Scope' | abpLocalization }}</div>\r\n <div class=\"fw-semibold text-break\">{{ result().scope || '\u2014' }}</div>\r\n </div>\r\n </div>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-key\"\r\n buttonType=\"submit\"\r\n [disabled]=\"loading()\"\r\n formName=\"generateAccessTokenForm\"\r\n >\r\n {{ 'AbpOpenIddict::GenerateAccessToken' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
447
|
+
}], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }] } });
|
|
448
|
+
|
|
345
449
|
class ApplicationsComponent {
|
|
346
450
|
constructor() {
|
|
347
451
|
this.service = inject(ApplicationsService);
|
|
@@ -349,8 +453,14 @@ class ApplicationsComponent {
|
|
|
349
453
|
this.proxyService = inject(ApplicationService);
|
|
350
454
|
this.toasterService = inject(ToasterService);
|
|
351
455
|
this.list = inject(ListService);
|
|
352
|
-
this.data =
|
|
353
|
-
|
|
456
|
+
this.data = toSignal(this.list.hookToQuery(query => this.proxyService.getList(query)), {
|
|
457
|
+
initialValue: {
|
|
458
|
+
items: [],
|
|
459
|
+
totalCount: 0,
|
|
460
|
+
},
|
|
461
|
+
});
|
|
462
|
+
this.selected = signal({}, /* @ts-ignore */
|
|
463
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
354
464
|
this.visiblePermissions = false;
|
|
355
465
|
this.onVisiblePermissionChange = (value) => {
|
|
356
466
|
this.visiblePermissions = value;
|
|
@@ -376,9 +486,6 @@ class ApplicationsComponent {
|
|
|
376
486
|
this.list.get();
|
|
377
487
|
});
|
|
378
488
|
}
|
|
379
|
-
ngOnInit() {
|
|
380
|
-
this.hookToQuery();
|
|
381
|
-
}
|
|
382
489
|
onAdd() {
|
|
383
490
|
this.selected.set({});
|
|
384
491
|
this.service.openModal();
|
|
@@ -389,25 +496,24 @@ class ApplicationsComponent {
|
|
|
389
496
|
this.visiblePermissions = true;
|
|
390
497
|
}, 0);
|
|
391
498
|
}
|
|
392
|
-
hookToQuery() {
|
|
393
|
-
this.list
|
|
394
|
-
.hookToQuery(query => this.proxyService.getList(query))
|
|
395
|
-
.subscribe(res => (this.data = res));
|
|
396
|
-
}
|
|
397
499
|
openTokenLifetimeModal(record) {
|
|
398
500
|
this.selected.set(record);
|
|
399
501
|
this.service.setTokenLifetimeModalState(true);
|
|
400
502
|
}
|
|
401
|
-
|
|
402
|
-
|
|
503
|
+
openGenerateAccessTokenModal(record) {
|
|
504
|
+
this.selected.set(record);
|
|
505
|
+
this.service.setGenerateAccessTokenModalState(true);
|
|
506
|
+
}
|
|
507
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApplicationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
508
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ApplicationsComponent, isStandalone: true, selector: "abp-applications", providers: [
|
|
403
509
|
ListService,
|
|
404
510
|
{
|
|
405
511
|
provide: EXTENSIONS_IDENTIFIER,
|
|
406
512
|
useValue: "OpenIddictPro.Applications" /* eOpenIddictProComponents.Applications */,
|
|
407
513
|
},
|
|
408
|
-
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Applications' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table
|
|
514
|
+
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Applications' | abpLocalization\" [toolbar]=\"data().items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\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 />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n@if (service.isModalVisible()) {\r\n <abp-application-form-modal [selected]=\"selected()\" (saved)=\"onSaved()\" />\r\n}\r\n\r\n@if (service.isTokenLifetimeModalVisible()) {\r\n <abp-token-lifetime-modal [selected]=\"selected()\" />\r\n}\r\n\r\n@if (service.isGenerateAccessTokenModalVisible()) {\r\n <abp-generate-access-token-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", dependencies: [{ kind: "directive", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: ApplicationFormModalComponent, selector: "abp-application-form-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "component", type: TokenLifetimeModalComponent, selector: "abp-token-lifetime-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "component", type: GenerateAccessTokenModalComponent, selector: "abp-generate-access-token-modal", inputs: ["selected"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
409
515
|
}
|
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApplicationsComponent, decorators: [{
|
|
411
517
|
type: Component,
|
|
412
518
|
args: [{ selector: 'abp-applications', providers: [
|
|
413
519
|
ListService,
|
|
@@ -422,9 +528,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
422
528
|
ExtensibleTableComponent,
|
|
423
529
|
ApplicationFormModalComponent,
|
|
424
530
|
TokenLifetimeModalComponent,
|
|
531
|
+
GenerateAccessTokenModalComponent,
|
|
425
532
|
PageComponent,
|
|
426
533
|
PermissionManagementComponent,
|
|
427
|
-
], template: "<abp-page [title]=\"'AbpOpenIddict::Applications' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table
|
|
534
|
+
], template: "<abp-page [title]=\"'AbpOpenIddict::Applications' | abpLocalization\" [toolbar]=\"data().items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\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 />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n@if (service.isModalVisible()) {\r\n <abp-application-form-modal [selected]=\"selected()\" (saved)=\"onSaved()\" />\r\n}\r\n\r\n@if (service.isTokenLifetimeModalVisible()) {\r\n <abp-token-lifetime-modal [selected]=\"selected()\" />\r\n}\r\n\r\n@if (service.isGenerateAccessTokenModalVisible()) {\r\n <abp-generate-access-token-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" }]
|
|
428
535
|
}] });
|
|
429
536
|
|
|
430
537
|
class ScopeFormModalComponent {
|
|
@@ -433,7 +540,8 @@ class ScopeFormModalComponent {
|
|
|
433
540
|
this.scopesService = inject(ScopesService);
|
|
434
541
|
this.service = inject(ScopeService);
|
|
435
542
|
this.toasterService = inject(ToasterService);
|
|
436
|
-
this.selected = input(undefined,
|
|
543
|
+
this.selected = input(undefined, /* @ts-ignore */
|
|
544
|
+
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
437
545
|
this.saved = output();
|
|
438
546
|
this.blueprints = { pattern: 'AbpOpenIddict::TheScopeNameCannotContainSpaces' };
|
|
439
547
|
this.isModalVisible$ = this.scopesService.isModalVisible$;
|
|
@@ -472,10 +580,10 @@ class ScopeFormModalComponent {
|
|
|
472
580
|
const data = new FormPropData(this.injector, selected);
|
|
473
581
|
this.form = generateFormFromProps(data);
|
|
474
582
|
}
|
|
475
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
476
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
583
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ScopeFormModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
584
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.5", type: ScopeFormModalComponent, isStandalone: true, selector: "abp-scope-form-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saved: "saved" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible$ | async\" (visibleChange)=\"visibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected()?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewScope') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form\r\n [formGroup]=\"form\"\r\n id=\"scopeForm\"\r\n [blueprints]=\"blueprints\"\r\n (ngSubmit)=\"save()\"\r\n [validateOnSubmit]=\"true\"\r\n >\r\n <abp-extensible-form [selectedRecord]=\"selected()\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" 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: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
477
585
|
}
|
|
478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ScopeFormModalComponent, decorators: [{
|
|
479
587
|
type: Component,
|
|
480
588
|
args: [{ selector: 'abp-scope-form-modal', imports: [
|
|
481
589
|
FormsModule,
|
|
@@ -487,7 +595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
487
595
|
ExtensibleFormComponent,
|
|
488
596
|
ModalComponent,
|
|
489
597
|
ButtonComponent,
|
|
490
|
-
], template: "<abp-modal [visible]=\"isModalVisible$ | async\" (visibleChange)=\"visibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected()?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewScope') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form\r\n [formGroup]=\"form\"\r\n id=\"scopeForm\"\r\n [blueprints]=\"blueprints\"\r\n (ngSubmit)=\"save()\"\r\n validateOnSubmit\r\n >\r\n <abp-extensible-form [selectedRecord]=\"selected()\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" 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" }]
|
|
598
|
+
], template: "<abp-modal [visible]=\"isModalVisible$ | async\" (visibleChange)=\"visibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected()?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewScope') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form\r\n [formGroup]=\"form\"\r\n id=\"scopeForm\"\r\n [blueprints]=\"blueprints\"\r\n (ngSubmit)=\"save()\"\r\n [validateOnSubmit]=\"true\"\r\n >\r\n <abp-extensible-form [selectedRecord]=\"selected()\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" 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" }]
|
|
491
599
|
}], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], saved: [{ type: i0.Output, args: ["saved"] }] } });
|
|
492
600
|
|
|
493
601
|
class ScopesComponent {
|
|
@@ -497,15 +605,11 @@ class ScopesComponent {
|
|
|
497
605
|
this.toasterService = inject(ToasterService);
|
|
498
606
|
this.service = inject(ScopeService);
|
|
499
607
|
this.scopesService = inject(ScopesService);
|
|
500
|
-
this.data =
|
|
608
|
+
this.data = toSignal(this.list.hookToQuery(query => this.service.getList(query)), {
|
|
609
|
+
initialValue: { items: [], totalCount: 0 },
|
|
610
|
+
});
|
|
501
611
|
this.selected = {};
|
|
502
612
|
}
|
|
503
|
-
hookToQuery() {
|
|
504
|
-
this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => (this.data = res));
|
|
505
|
-
}
|
|
506
|
-
ngOnInit() {
|
|
507
|
-
this.hookToQuery();
|
|
508
|
-
}
|
|
509
613
|
onAdd() {
|
|
510
614
|
this.selected = {};
|
|
511
615
|
this.scopesService.openModal();
|
|
@@ -533,16 +637,16 @@ class ScopesComponent {
|
|
|
533
637
|
onSaved() {
|
|
534
638
|
this.list.get();
|
|
535
639
|
}
|
|
536
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
537
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
640
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ScopesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
641
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: ScopesComponent, isStandalone: true, selector: "abp-scopes", providers: [
|
|
538
642
|
ListService,
|
|
539
643
|
{
|
|
540
644
|
provide: EXTENSIONS_IDENTIFIER,
|
|
541
645
|
useValue: "OpenIddictPro.Scopes" /* eOpenIddictProComponents.Scopes */,
|
|
542
646
|
},
|
|
543
|
-
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table
|
|
647
|
+
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data().items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\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 />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-scope-form-modal [selected]=\"selected\" (saved)=\"onSaved()\" />\r\n", dependencies: [{ kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: ScopeFormModalComponent, selector: "abp-scope-form-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
544
648
|
}
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ScopesComponent, decorators: [{
|
|
546
650
|
type: Component,
|
|
547
651
|
args: [{ selector: 'abp-scopes', providers: [
|
|
548
652
|
ListService,
|
|
@@ -556,7 +660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
556
660
|
ScopeFormModalComponent,
|
|
557
661
|
AdvancedEntityFiltersComponent,
|
|
558
662
|
PageComponent,
|
|
559
|
-
], template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table
|
|
663
|
+
], template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data().items\">\r\n <div id=\"wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpOpenIddict\" [list]=\"list\" />\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 />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-scope-form-modal [selected]=\"selected\" (saved)=\"onSaved()\" />\r\n" }]
|
|
560
664
|
}] });
|
|
561
665
|
|
|
562
666
|
const DEFAULT_APPLICATIONS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
@@ -576,6 +680,16 @@ const DEFAULT_APPLICATIONS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
|
576
680
|
},
|
|
577
681
|
permission: 'OpenIddictPro.Application.Update',
|
|
578
682
|
},
|
|
683
|
+
{
|
|
684
|
+
text: 'AbpOpenIddict::GenerateAccessToken',
|
|
685
|
+
action: data => {
|
|
686
|
+
const component = data.getInjected(ApplicationsComponent);
|
|
687
|
+
component.openGenerateAccessTokenModal(data.record);
|
|
688
|
+
},
|
|
689
|
+
permission: 'OpenIddictPro.Application.GenerateAccessToken',
|
|
690
|
+
visible: data => !!data?.record?.allowClientCredentialsFlow &&
|
|
691
|
+
data?.record?.clientType === 'confidential',
|
|
692
|
+
},
|
|
579
693
|
{
|
|
580
694
|
text: 'AbpOpenIddict::ChangeHistory',
|
|
581
695
|
action: data => {
|
|
@@ -684,8 +798,8 @@ class ApplicationClientAuthMethodFieldComponent {
|
|
|
684
798
|
this.jsonWebKeySetControl = jwksCtrl;
|
|
685
799
|
this.authMethod = toSignal(this.clientAuthMethodControl.valueChanges.pipe(startWith(this.clientAuthMethodControl.value), map((v) => v ?? defaultClientAuthenticationMethods.secret)), { initialValue: defaultClientAuthenticationMethods.secret });
|
|
686
800
|
}
|
|
687
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
688
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
801
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApplicationClientAuthMethodFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
802
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ApplicationClientAuthMethodFieldComponent, isStandalone: true, selector: "abp-application-client-auth-method-field", ngImport: i0, template: `
|
|
689
803
|
<div [id]="prop.id + '-radios'" class="mb-1 form-group" validationTarget>
|
|
690
804
|
@if (prop.displayName) {
|
|
691
805
|
<label class="form-label d-block">{{ prop.displayName | abpLocalization }}</label>
|
|
@@ -751,9 +865,9 @@ class ApplicationClientAuthMethodFieldComponent {
|
|
|
751
865
|
}}</small>
|
|
752
866
|
</div>
|
|
753
867
|
}
|
|
754
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.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: i1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationTargetDirective, selector: "[validationTarget]", exportAs: ["validationTarget"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
868
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio]:not([ngNoCva])[formControlName],input[type=radio]:not([ngNoCva])[formControl],input[type=radio]:not([ngNoCva])[ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationTargetDirective, selector: "[validationTarget]", exportAs: ["validationTarget"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
755
869
|
}
|
|
756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ApplicationClientAuthMethodFieldComponent, decorators: [{
|
|
757
871
|
type: Component,
|
|
758
872
|
args: [{
|
|
759
873
|
selector: 'abp-application-client-auth-method-field',
|
|
@@ -1319,11 +1433,11 @@ const routes = [
|
|
|
1319
1433
|
},
|
|
1320
1434
|
];
|
|
1321
1435
|
class OpeniddictproRoutingModule {
|
|
1322
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1323
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1324
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1436
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1437
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] }); }
|
|
1438
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
1325
1439
|
}
|
|
1326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1440
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproRoutingModule, decorators: [{
|
|
1327
1441
|
type: NgModule,
|
|
1328
1442
|
args: [{
|
|
1329
1443
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -1373,8 +1487,8 @@ class OpeniddictproModule {
|
|
|
1373
1487
|
static forLazy(options = {}) {
|
|
1374
1488
|
return new LazyModuleFactory(OpeniddictproModule.forChild(options));
|
|
1375
1489
|
}
|
|
1376
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1377
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1490
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1491
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproModule, imports: [OpeniddictproRoutingModule,
|
|
1378
1492
|
CoreModule,
|
|
1379
1493
|
CommercialUiModule,
|
|
1380
1494
|
ThemeSharedModule,
|
|
@@ -1393,7 +1507,7 @@ class OpeniddictproModule {
|
|
|
1393
1507
|
ApplicationFormModalComponent,
|
|
1394
1508
|
ScopesComponent,
|
|
1395
1509
|
ScopeFormModalComponent] }); }
|
|
1396
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1510
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproModule, imports: [OpeniddictproRoutingModule,
|
|
1397
1511
|
CoreModule,
|
|
1398
1512
|
CommercialUiModule,
|
|
1399
1513
|
ThemeSharedModule,
|
|
@@ -1407,7 +1521,7 @@ class OpeniddictproModule {
|
|
|
1407
1521
|
ExtensibleTableComponent,
|
|
1408
1522
|
ApplicationClientAuthMethodFieldComponent, components] }); }
|
|
1409
1523
|
}
|
|
1410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpeniddictproModule, decorators: [{
|
|
1411
1525
|
type: NgModule,
|
|
1412
1526
|
args: [{
|
|
1413
1527
|
imports: [
|
|
@@ -1521,10 +1635,10 @@ class OpenIddictProExtensionsGuard {
|
|
|
1521
1635
|
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
1522
1636
|
}), mapTo(true));
|
|
1523
1637
|
}
|
|
1524
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1525
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1638
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpenIddictProExtensionsGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1639
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpenIddictProExtensionsGuard }); }
|
|
1526
1640
|
}
|
|
1527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: OpenIddictProExtensionsGuard, decorators: [{
|
|
1528
1642
|
type: Injectable
|
|
1529
1643
|
}] });
|
|
1530
1644
|
|
|
@@ -1532,5 +1646,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
1532
1646
|
* Generated bundle index. Do not edit.
|
|
1533
1647
|
*/
|
|
1534
1648
|
|
|
1535
|
-
export { ApplicationClientAuthMethodFieldComponent, 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, createRoutes, defaultApplicationTypes, defaultApplicationTypesList, defaultApplicationsTypeList, defaultClientAuthenticationMethods, defaultUriPattern, hashSetParser };
|
|
1649
|
+
export { ApplicationClientAuthMethodFieldComponent, 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, GenerateAccessTokenModalComponent, 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, createRoutes, defaultApplicationTypes, defaultApplicationTypesList, defaultApplicationsTypeList, defaultClientAuthenticationMethods, defaultUriPattern, hashSetParser };
|
|
1536
1650
|
//# sourceMappingURL=volo-abp.ng.openiddictpro.mjs.map
|