@volo/abp.ng.openiddictpro 10.6.0-rc.1 → 10.6.0-rc.2
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-proxy.mjs +6 -6
- package/fesm2022/volo-abp.ng.openiddictpro.mjs +70 -46
- package/fesm2022/volo-abp.ng.openiddictpro.mjs.map +1 -1
- package/package.json +5 -5
- package/types/volo-abp.ng.openiddictpro.d.ts +3 -1
|
@@ -52,11 +52,11 @@ class OpeniddictproConfigModule {
|
|
|
52
52
|
providers: [provideOpeniddictproConfig()],
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
56
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.
|
|
57
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
56
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproConfigModule }); }
|
|
57
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproConfigModule }); }
|
|
58
58
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproConfigModule, decorators: [{
|
|
60
60
|
type: NgModule
|
|
61
61
|
}] });
|
|
62
62
|
|
|
@@ -68,10 +68,10 @@ class ApplicationService {
|
|
|
68
68
|
body: input,
|
|
69
69
|
}, { apiName: this.apiName, ...config });
|
|
70
70
|
}
|
|
71
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
72
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.
|
|
71
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
72
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationService, providedIn: 'root' }); }
|
|
73
73
|
}
|
|
74
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationService, decorators: [{
|
|
75
75
|
type: Injectable,
|
|
76
76
|
args: [{
|
|
77
77
|
providedIn: 'root',
|
|
@@ -111,10 +111,10 @@ class ScopeService {
|
|
|
111
111
|
body: input,
|
|
112
112
|
}, { apiName: this.apiName, ...config });
|
|
113
113
|
}
|
|
114
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
115
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.
|
|
114
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ScopeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
115
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ScopeService, providedIn: 'root' }); }
|
|
116
116
|
}
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ScopeService, decorators: [{
|
|
118
118
|
type: Injectable,
|
|
119
119
|
args: [{
|
|
120
120
|
providedIn: 'root',
|
|
@@ -4,7 +4,7 @@ import { InternalStore, LocalizationService, SubscriptionService, LocalizationPi
|
|
|
4
4
|
import * as i1$1 from '@angular/router';
|
|
5
5
|
import { RouterModule } from '@angular/router';
|
|
6
6
|
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
7
|
-
import { of, skip, finalize, filter, switchMap, map as map$1, tap } from 'rxjs';
|
|
7
|
+
import { of, merge, skip, finalize, filter, switchMap, map as map$1, tap } from 'rxjs';
|
|
8
8
|
import { ToasterService, ModalCloseDirective, ModalComponent, ButtonComponent, ConfirmationService, Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
9
9
|
import { PageComponent, PageModule } from '@abp/ng.components/page';
|
|
10
10
|
import { FormPropData, generateFormFromProps, ExtensibleFormComponent, ExtensibleTableComponent, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, ToolbarAction, EXTENSIONS_FORM_PROP, FormProp, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from '@abp/ng.components/extensible';
|
|
@@ -156,6 +156,7 @@ class ApplicationFormModalComponent {
|
|
|
156
156
|
this.createForm();
|
|
157
157
|
this.hideFlowToType();
|
|
158
158
|
this.togglePushAuthorizationState();
|
|
159
|
+
this.syncDisabledStates();
|
|
159
160
|
}
|
|
160
161
|
visibleChange($event) {
|
|
161
162
|
this.applicationsService.setModalState($event);
|
|
@@ -194,10 +195,12 @@ class ApplicationFormModalComponent {
|
|
|
194
195
|
else {
|
|
195
196
|
sub = this.service.create(formValue);
|
|
196
197
|
}
|
|
197
|
-
sub
|
|
198
|
+
sub
|
|
199
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
200
|
+
.subscribe(() => {
|
|
201
|
+
this.saved.emit();
|
|
198
202
|
this.applicationsService.setModalState(false);
|
|
199
203
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
200
|
-
this.saved.emit(undefined);
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
206
|
hideFlowToType() {
|
|
@@ -223,6 +226,28 @@ class ApplicationFormModalComponent {
|
|
|
223
226
|
}
|
|
224
227
|
});
|
|
225
228
|
}
|
|
229
|
+
syncDisabledStates() {
|
|
230
|
+
const { clientType, allowHybridFlow, allowAuthorizationCodeFlow, allowPasswordFlow, forcePushedAuthorization, } = this.form.controls;
|
|
231
|
+
const update = () => {
|
|
232
|
+
const isPublicClient = clientType.value === defaultApplicationTypes.public;
|
|
233
|
+
const isRefreshTokenFlowAllowed = allowHybridFlow.value || allowAuthorizationCodeFlow.value || allowPasswordFlow.value;
|
|
234
|
+
this.setControlDisabled('allowClientCredentialsFlow', isPublicClient);
|
|
235
|
+
this.setControlDisabled('allowDeviceAuthorizationEndpoint', isPublicClient);
|
|
236
|
+
this.setControlDisabled('allowRefreshTokenFlow', !isRefreshTokenFlowAllowed);
|
|
237
|
+
this.setControlDisabled('allowPushedAuthorizationEndpoint', forcePushedAuthorization.value === true);
|
|
238
|
+
};
|
|
239
|
+
update();
|
|
240
|
+
this.subscription.addOne(merge(clientType.valueChanges, allowHybridFlow.valueChanges, allowAuthorizationCodeFlow.valueChanges, allowPasswordFlow.valueChanges, forcePushedAuthorization.valueChanges), update);
|
|
241
|
+
}
|
|
242
|
+
setControlDisabled(controlName, disabled) {
|
|
243
|
+
const control = this.form.controls[controlName];
|
|
244
|
+
if (disabled && control.enabled) {
|
|
245
|
+
control.disable({ emitEvent: false });
|
|
246
|
+
}
|
|
247
|
+
else if (!disabled && control.disabled) {
|
|
248
|
+
control.enable({ emitEvent: false });
|
|
249
|
+
}
|
|
250
|
+
}
|
|
226
251
|
togglePushAuthorizationState() {
|
|
227
252
|
const forcePushedAuthorizationControl = this.form.controls['forcePushedAuthorization'];
|
|
228
253
|
let valueChangeStream = forcePushedAuthorizationControl.valueChanges.pipe(takeUntilDestroyed(this.destroyRef));
|
|
@@ -250,10 +275,10 @@ class ApplicationFormModalComponent {
|
|
|
250
275
|
return this.localizationService.instant(displayName);
|
|
251
276
|
}
|
|
252
277
|
}
|
|
253
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
254
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
278
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationFormModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
279
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", 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" }] }); }
|
|
255
280
|
}
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationFormModalComponent, decorators: [{
|
|
257
282
|
type: Component,
|
|
258
283
|
args: [{ selector: 'abp-application-form-modal', imports: [
|
|
259
284
|
FormsModule,
|
|
@@ -341,10 +366,10 @@ class TokenLifetimeModalComponent {
|
|
|
341
366
|
}
|
|
342
367
|
this.#service.setTokenLifetimeModalState(false);
|
|
343
368
|
}
|
|
344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
345
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
369
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TokenLifetimeModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
370
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", 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" }] }); }
|
|
346
371
|
}
|
|
347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TokenLifetimeModalComponent, decorators: [{
|
|
348
373
|
type: Component,
|
|
349
374
|
args: [{ selector: 'abp-token-lifetime-modal', imports: [
|
|
350
375
|
FormsModule,
|
|
@@ -430,10 +455,10 @@ class GenerateAccessTokenModalComponent {
|
|
|
430
455
|
}
|
|
431
456
|
this.#service.setGenerateAccessTokenModalState(false);
|
|
432
457
|
}
|
|
433
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
434
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: GenerateAccessTokenModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", 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
460
|
}
|
|
436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: GenerateAccessTokenModalComponent, decorators: [{
|
|
437
462
|
type: Component,
|
|
438
463
|
args: [{ selector: 'abp-generate-access-token-modal', imports: [
|
|
439
464
|
FormsModule,
|
|
@@ -461,9 +486,10 @@ class ApplicationsComponent {
|
|
|
461
486
|
});
|
|
462
487
|
this.selected = signal({}, /* @ts-ignore */
|
|
463
488
|
...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
464
|
-
this.visiblePermissions = false
|
|
489
|
+
this.visiblePermissions = signal(false, /* @ts-ignore */
|
|
490
|
+
...(ngDevMode ? [{ debugName: "visiblePermissions" }] : /* istanbul ignore next */ []));
|
|
465
491
|
this.onVisiblePermissionChange = (value) => {
|
|
466
|
-
this.visiblePermissions
|
|
492
|
+
this.visiblePermissions.set(value);
|
|
467
493
|
};
|
|
468
494
|
}
|
|
469
495
|
onSaved() {
|
|
@@ -492,9 +518,7 @@ class ApplicationsComponent {
|
|
|
492
518
|
}
|
|
493
519
|
openPermissionsModal(providerKey) {
|
|
494
520
|
this.providerKey = providerKey;
|
|
495
|
-
|
|
496
|
-
this.visiblePermissions = true;
|
|
497
|
-
}, 0);
|
|
521
|
+
this.visiblePermissions.set(true);
|
|
498
522
|
}
|
|
499
523
|
openTokenLifetimeModal(record) {
|
|
500
524
|
this.selected.set(record);
|
|
@@ -504,16 +528,16 @@ class ApplicationsComponent {
|
|
|
504
528
|
this.selected.set(record);
|
|
505
529
|
this.service.setGenerateAccessTokenModalState(true);
|
|
506
530
|
}
|
|
507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
508
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
532
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: ApplicationsComponent, isStandalone: true, selector: "abp-applications", providers: [
|
|
509
533
|
ListService,
|
|
510
534
|
{
|
|
511
535
|
provide: EXTENSIONS_IDENTIFIER,
|
|
512
536
|
useValue: "OpenIddictPro.Applications" /* eOpenIddictProComponents.Applications */,
|
|
513
537
|
},
|
|
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" }] }); }
|
|
538
|
+
], 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" }] }); }
|
|
515
539
|
}
|
|
516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationsComponent, decorators: [{
|
|
517
541
|
type: Component,
|
|
518
542
|
args: [{ selector: 'abp-applications', providers: [
|
|
519
543
|
ListService,
|
|
@@ -531,7 +555,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImpor
|
|
|
531
555
|
GenerateAccessTokenModalComponent,
|
|
532
556
|
PageComponent,
|
|
533
557
|
PermissionManagementComponent,
|
|
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" }]
|
|
558
|
+
], 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" }]
|
|
535
559
|
}] });
|
|
536
560
|
|
|
537
561
|
class ScopeFormModalComponent {
|
|
@@ -580,10 +604,10 @@ class ScopeFormModalComponent {
|
|
|
580
604
|
const data = new FormPropData(this.injector, selected);
|
|
581
605
|
this.form = generateFormFromProps(data);
|
|
582
606
|
}
|
|
583
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
584
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.
|
|
607
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ScopeFormModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
608
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.7", 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" }] }); }
|
|
585
609
|
}
|
|
586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ScopeFormModalComponent, decorators: [{
|
|
587
611
|
type: Component,
|
|
588
612
|
args: [{ selector: 'abp-scope-form-modal', imports: [
|
|
589
613
|
FormsModule,
|
|
@@ -637,8 +661,8 @@ class ScopesComponent {
|
|
|
637
661
|
onSaved() {
|
|
638
662
|
this.list.get();
|
|
639
663
|
}
|
|
640
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
641
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.
|
|
664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ScopesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
665
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: ScopesComponent, isStandalone: true, selector: "abp-scopes", providers: [
|
|
642
666
|
ListService,
|
|
643
667
|
{
|
|
644
668
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -646,7 +670,7 @@ class ScopesComponent {
|
|
|
646
670
|
},
|
|
647
671
|
], 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" }] }); }
|
|
648
672
|
}
|
|
649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ScopesComponent, decorators: [{
|
|
650
674
|
type: Component,
|
|
651
675
|
args: [{ selector: 'abp-scopes', providers: [
|
|
652
676
|
ListService,
|
|
@@ -798,8 +822,8 @@ class ApplicationClientAuthMethodFieldComponent {
|
|
|
798
822
|
this.jsonWebKeySetControl = jwksCtrl;
|
|
799
823
|
this.authMethod = toSignal(this.clientAuthMethodControl.valueChanges.pipe(startWith(this.clientAuthMethodControl.value), map((v) => v ?? defaultClientAuthenticationMethods.secret)), { initialValue: defaultClientAuthenticationMethods.secret });
|
|
800
824
|
}
|
|
801
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
802
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.
|
|
825
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationClientAuthMethodFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
826
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.7", type: ApplicationClientAuthMethodFieldComponent, isStandalone: true, selector: "abp-application-client-auth-method-field", ngImport: i0, template: `
|
|
803
827
|
<div [id]="prop.id + '-radios'" class="mb-1 form-group" validationTarget>
|
|
804
828
|
@if (prop.displayName) {
|
|
805
829
|
<label class="form-label d-block">{{ prop.displayName | abpLocalization }}</label>
|
|
@@ -867,7 +891,7 @@ class ApplicationClientAuthMethodFieldComponent {
|
|
|
867
891
|
}
|
|
868
892
|
`, 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 }); }
|
|
869
893
|
}
|
|
870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: ApplicationClientAuthMethodFieldComponent, decorators: [{
|
|
871
895
|
type: Component,
|
|
872
896
|
args: [{
|
|
873
897
|
selector: 'abp-application-client-auth-method-field',
|
|
@@ -1025,8 +1049,8 @@ const DEFAULT_APPLICATIONS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
|
1025
1049
|
defaultValue: defaultClientAuthenticationMethods.secret,
|
|
1026
1050
|
template: ApplicationClientAuthMethodFieldComponent,
|
|
1027
1051
|
visible: data => {
|
|
1028
|
-
const
|
|
1029
|
-
return
|
|
1052
|
+
const { clientType } = data.getInjected(ApplicationFormModalComponent).getFormValue();
|
|
1053
|
+
return clientType === defaultApplicationTypes.confidential;
|
|
1030
1054
|
},
|
|
1031
1055
|
group: groupLeft,
|
|
1032
1056
|
className: className,
|
|
@@ -1097,8 +1121,8 @@ const DEFAULT_APPLICATIONS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
|
1097
1121
|
.changeTextToType('AbpOpenIddict::AllowClientCredentialsFlow');
|
|
1098
1122
|
},
|
|
1099
1123
|
disabled: data => {
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1124
|
+
const { clientType } = data.getInjected(ApplicationFormModalComponent).getFormValue();
|
|
1125
|
+
return clientType === defaultApplicationTypes.public;
|
|
1102
1126
|
},
|
|
1103
1127
|
id: 'allowClientCredentialsFlow',
|
|
1104
1128
|
group: groupRight,
|
|
@@ -1433,11 +1457,11 @@ const routes = [
|
|
|
1433
1457
|
},
|
|
1434
1458
|
];
|
|
1435
1459
|
class OpeniddictproRoutingModule {
|
|
1436
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1437
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.
|
|
1438
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.
|
|
1460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1461
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] }); }
|
|
1462
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
1439
1463
|
}
|
|
1440
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproRoutingModule, decorators: [{
|
|
1441
1465
|
type: NgModule,
|
|
1442
1466
|
args: [{
|
|
1443
1467
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -1487,8 +1511,8 @@ class OpeniddictproModule {
|
|
|
1487
1511
|
static forLazy(options = {}) {
|
|
1488
1512
|
return new LazyModuleFactory(OpeniddictproModule.forChild(options));
|
|
1489
1513
|
}
|
|
1490
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1491
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.
|
|
1514
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1515
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproModule, imports: [OpeniddictproRoutingModule,
|
|
1492
1516
|
CoreModule,
|
|
1493
1517
|
CommercialUiModule,
|
|
1494
1518
|
ThemeSharedModule,
|
|
@@ -1507,7 +1531,7 @@ class OpeniddictproModule {
|
|
|
1507
1531
|
ApplicationFormModalComponent,
|
|
1508
1532
|
ScopesComponent,
|
|
1509
1533
|
ScopeFormModalComponent] }); }
|
|
1510
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.
|
|
1534
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproModule, imports: [OpeniddictproRoutingModule,
|
|
1511
1535
|
CoreModule,
|
|
1512
1536
|
CommercialUiModule,
|
|
1513
1537
|
ThemeSharedModule,
|
|
@@ -1521,7 +1545,7 @@ class OpeniddictproModule {
|
|
|
1521
1545
|
ExtensibleTableComponent,
|
|
1522
1546
|
ApplicationClientAuthMethodFieldComponent, components] }); }
|
|
1523
1547
|
}
|
|
1524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpeniddictproModule, decorators: [{
|
|
1525
1549
|
type: NgModule,
|
|
1526
1550
|
args: [{
|
|
1527
1551
|
imports: [
|
|
@@ -1635,10 +1659,10 @@ class OpenIddictProExtensionsGuard {
|
|
|
1635
1659
|
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
1636
1660
|
}), mapTo(true));
|
|
1637
1661
|
}
|
|
1638
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.
|
|
1639
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.
|
|
1662
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpenIddictProExtensionsGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1663
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpenIddictProExtensionsGuard }); }
|
|
1640
1664
|
}
|
|
1641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
1665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: OpenIddictProExtensionsGuard, decorators: [{
|
|
1642
1666
|
type: Injectable
|
|
1643
1667
|
}] });
|
|
1644
1668
|
|