@volo/abp.ng.openiddictpro 8.0.0-rc.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/config/openiddictpro-config.module.mjs +4 -4
- package/esm2022/lib/components/application-form-modal/application-form-modal.component.mjs +9 -9
- package/esm2022/lib/components/applications/applications.component.mjs +3 -3
- package/esm2022/lib/components/scope-form-modal/scope-form-modal.component.mjs +3 -3
- package/esm2022/lib/components/scopes/scopes.component.mjs +3 -3
- package/esm2022/lib/defaults/default-applications-form-props.mjs +28 -5
- package/esm2022/lib/defaults/default-applications-types.mjs +5 -1
- package/esm2022/lib/guards/extensions.guard.mjs +3 -3
- package/esm2022/lib/openiddictpro-routing.module.mjs +4 -4
- package/esm2022/lib/openiddictpro.module.mjs +11 -7
- package/esm2022/proxy/lib/proxy/application.service.mjs +3 -3
- package/esm2022/proxy/lib/proxy/scope.service.mjs +3 -3
- package/fesm2022/volo-abp.ng.openiddictpro-config.mjs +4 -4
- package/fesm2022/volo-abp.ng.openiddictpro-proxy.mjs +6 -6
- package/fesm2022/volo-abp.ng.openiddictpro.mjs +63 -34
- package/fesm2022/volo-abp.ng.openiddictpro.mjs.map +1 -1
- package/lib/components/application-form-modal/application-form-modal.component.d.ts +2 -2
- package/lib/defaults/default-applications-types.d.ts +4 -0
- package/lib/openiddictpro.module.d.ts +2 -1
- package/package.json +5 -5
|
@@ -44,11 +44,11 @@ class OpeniddictproConfigModule {
|
|
|
44
44
|
providers: [OPENIDDICT_ROUTE_PROVIDERS],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
48
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
|
49
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
48
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproConfigModule }); }
|
|
49
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproConfigModule }); }
|
|
50
50
|
}
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproConfigModule, decorators: [{
|
|
52
52
|
type: NgModule
|
|
53
53
|
}] });
|
|
54
54
|
|
|
@@ -54,10 +54,10 @@ class ApplicationService {
|
|
|
54
54
|
body: input,
|
|
55
55
|
}, { apiName: this.apiName, ...config });
|
|
56
56
|
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
58
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ApplicationService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
58
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ApplicationService, providedIn: 'root' }); }
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ApplicationService, decorators: [{
|
|
61
61
|
type: Injectable,
|
|
62
62
|
args: [{
|
|
63
63
|
providedIn: 'root',
|
|
@@ -102,10 +102,10 @@ class ScopeService {
|
|
|
102
102
|
body: input,
|
|
103
103
|
}, { apiName: this.apiName, ...config });
|
|
104
104
|
}
|
|
105
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
106
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
105
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ScopeService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
106
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ScopeService, providedIn: 'root' }); }
|
|
107
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ScopeService, decorators: [{
|
|
109
109
|
type: Injectable,
|
|
110
110
|
args: [{
|
|
111
111
|
providedIn: 'root',
|
|
@@ -7,7 +7,7 @@ import { RouterModule } from '@angular/router';
|
|
|
7
7
|
import * as i8 from '@abp/ng.theme.shared';
|
|
8
8
|
import { Confirmation, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
9
9
|
import * as i5$1 from '@abp/ng.components/extensible';
|
|
10
|
-
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, ToolbarAction, FormProp, ExtensionsService, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, getObjectExtensionEntitiesFromStore } from '@abp/ng.components/extensible';
|
|
10
|
+
import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, EntityAction, EntityProp, ToolbarAction, FormProp, ExtensionsService, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, getObjectExtensionEntitiesFromStore, ExtensibleFormComponent } from '@abp/ng.components/extensible';
|
|
11
11
|
import * as i1 from '@volo/abp.ng.openiddictpro/proxy';
|
|
12
12
|
import { ScopeService } from '@volo/abp.ng.openiddictpro/proxy';
|
|
13
13
|
import * as i6 from '@volo/abp.commercial.ng.ui';
|
|
@@ -52,6 +52,10 @@ const defaultApplicationTypes = {
|
|
|
52
52
|
public: 'public',
|
|
53
53
|
confidential: 'confidential',
|
|
54
54
|
};
|
|
55
|
+
const defaultApplicationTypesList = {
|
|
56
|
+
web: 'web',
|
|
57
|
+
native: 'native',
|
|
58
|
+
};
|
|
55
59
|
|
|
56
60
|
const separatorRegex = /\r?\n/;
|
|
57
61
|
const separator = '\n';
|
|
@@ -100,7 +104,7 @@ class ApplicationFormModalComponent {
|
|
|
100
104
|
this.options = { size: 'lg' };
|
|
101
105
|
this.isModalVisible$ = this.applicationsService.isModalVisible$;
|
|
102
106
|
}
|
|
103
|
-
ngOnChanges(
|
|
107
|
+
ngOnChanges() {
|
|
104
108
|
this.createForm();
|
|
105
109
|
this.hideFlowToType();
|
|
106
110
|
}
|
|
@@ -145,12 +149,12 @@ class ApplicationFormModalComponent {
|
|
|
145
149
|
postLogoutRedirectUris: hashSetParser(this.selected.postLogoutRedirectUris),
|
|
146
150
|
extensionGrantTypes: hashSetParser(this.selected.extensionGrantTypes),
|
|
147
151
|
}
|
|
148
|
-
: {
|
|
152
|
+
: { clientType: null };
|
|
149
153
|
const data = new FormPropData(this.injector, selected);
|
|
150
154
|
this.form = generateFormFromProps(data);
|
|
151
155
|
}
|
|
152
156
|
hideFlowToType() {
|
|
153
|
-
const formType = this.form.controls['
|
|
157
|
+
const formType = this.form.controls['clientType'];
|
|
154
158
|
this.subscription.removeOne(this.formValueChanges$);
|
|
155
159
|
this.formValueChanges$ = this.subscription.addOne(formType.valueChanges, value => {
|
|
156
160
|
if (value == defaultApplicationTypes.public) {
|
|
@@ -163,7 +167,7 @@ class ApplicationFormModalComponent {
|
|
|
163
167
|
}
|
|
164
168
|
changeTextToType(displayName) {
|
|
165
169
|
const form = this.getFormValue();
|
|
166
|
-
if (form.
|
|
170
|
+
if (form.clientType === defaultApplicationTypes.public) {
|
|
167
171
|
return (this.localizationService.instant(displayName) +
|
|
168
172
|
' (' +
|
|
169
173
|
this.localizationService.instant('AbpOpenIddict::NotAvailableForThisType') +
|
|
@@ -173,10 +177,10 @@ class ApplicationFormModalComponent {
|
|
|
173
177
|
return this.localizationService.instant(displayName);
|
|
174
178
|
}
|
|
175
179
|
}
|
|
176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
177
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
|
180
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ApplicationFormModalComponent, deps: [{ token: i1.ApplicationService }, { token: ApplicationsService }, { token: i3.LocalizationService }, { token: i3.SubscriptionService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
181
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: ApplicationFormModalComponent, selector: "abp-application-form-modal", inputs: { selected: "selected" }, outputs: { saved: "saved" }, providers: [], usesOnChanges: true, ngImport: i0, template: "\r\n<abp-modal *ngIf=\"isModalVisible$ | async as isModalVisible\" [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange($event) \" [options]=\"options\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewApplication') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\" *ngIf=\"isModalVisible\">\r\n </abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"applicationForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i5$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "directive", type: i7.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i8.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i8.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i8.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
178
182
|
}
|
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ApplicationFormModalComponent, decorators: [{
|
|
180
184
|
type: Component,
|
|
181
185
|
args: [{ selector: 'abp-application-form-modal', providers: [], template: "\r\n<abp-modal *ngIf=\"isModalVisible$ | async as isModalVisible\" [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange($event) \" [options]=\"options\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewApplication') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"applicationForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\" *ngIf=\"isModalVisible\">\r\n </abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"applicationForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
182
186
|
}], ctorParameters: () => [{ type: i1.ApplicationService }, { type: ApplicationsService }, { type: i3.LocalizationService }, { type: i3.SubscriptionService }, { type: i0.Injector }], propDecorators: { saved: [{
|
|
@@ -234,8 +238,8 @@ class ApplicationsComponent {
|
|
|
234
238
|
hookToQuery() {
|
|
235
239
|
this.list.hookToQuery(query => this.service.getList(query)).subscribe(res => (this.data = res));
|
|
236
240
|
}
|
|
237
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
238
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
|
241
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ApplicationsComponent, deps: [{ token: i1.ApplicationService }, { token: ApplicationsService }, { token: i8.ConfirmationService }, { token: i3.ListService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
242
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: ApplicationsComponent, selector: "abp-applications", providers: [
|
|
239
243
|
ListService,
|
|
240
244
|
{
|
|
241
245
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -243,7 +247,7 @@ class ApplicationsComponent {
|
|
|
243
247
|
},
|
|
244
248
|
], ngImport: i0, template: "\r\n<abp-page [title]=\"'AbpOpenIddict::Applications' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpOpenIddict\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n<abp-application-form-modal [selected]=\"selected\" (saved)=\"onSaved()\">\r\n</abp-application-form-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'C' },\r\n providerKey: { value: providerKey },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n providerName=\"C\"\r\n [providerKey]=\"providerKey\"\r\n>\r\n</abp-permission-management>\r\n", dependencies: [{ kind: "directive", type: i3.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i5$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i7$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: i8$1.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: ApplicationFormModalComponent, selector: "abp-application-form-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "pipe", type: i3.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
245
249
|
}
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ApplicationsComponent, decorators: [{
|
|
247
251
|
type: Component,
|
|
248
252
|
args: [{ selector: 'abp-applications', providers: [
|
|
249
253
|
ListService,
|
|
@@ -308,10 +312,10 @@ class ScopeFormModalComponent {
|
|
|
308
312
|
const data = new FormPropData(this.injector, selected);
|
|
309
313
|
this.form = generateFormFromProps(data);
|
|
310
314
|
}
|
|
311
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
312
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
|
315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ScopeFormModalComponent, deps: [{ token: i0.Injector }, { token: ScopesService }, { token: i1.ScopeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
316
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: ScopeFormModalComponent, selector: "abp-scope-form-modal", inputs: { selected: "selected" }, outputs: { saved: "saved" }, usesOnChanges: true, ngImport: i0, template: "\r\n<abp-modal [visible]=\"isModalVisible$ | async\" (visibleChange)=\"visibleChange($event)\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewScope') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"scopeForm\" [blueprints]=\"blueprints\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"scopeForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i5.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i5.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i5.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "component", type: i5$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "directive", type: i7.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "component", type: i8.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i8.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i8.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
313
317
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ScopeFormModalComponent, decorators: [{
|
|
315
319
|
type: Component,
|
|
316
320
|
args: [{ selector: 'abp-scope-form-modal', template: "\r\n<abp-modal [visible]=\"isModalVisible$ | async\" (visibleChange)=\"visibleChange($event)\" >\r\n\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpOpenIddict::Edit' : 'AbpOpenIddict::NewScope') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"scopeForm\" [blueprints]=\"blueprints\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpOpenIddict::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"scopeForm\">{{\r\n 'AbpOpenIddict::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
317
321
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: ScopesService }, { type: i1.ScopeService }], propDecorators: { selected: [{
|
|
@@ -359,8 +363,8 @@ class ScopesComponent {
|
|
|
359
363
|
onSaved() {
|
|
360
364
|
this.list.get();
|
|
361
365
|
}
|
|
362
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
363
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.
|
|
366
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ScopesComponent, deps: [{ token: i3.ListService }, { token: i1.ScopeService }, { token: ScopesService }, { token: i8.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
367
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.7", type: ScopesComponent, selector: "abp-scopes", providers: [
|
|
364
368
|
ListService,
|
|
365
369
|
{
|
|
366
370
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -368,7 +372,7 @@ class ScopesComponent {
|
|
|
368
372
|
},
|
|
369
373
|
], ngImport: i0, template: "<abp-page [title]=\"'AbpOpenIddict::Scopes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"wrapper\">\r\n\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpOpenIddict\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-scope-form-modal [selected]=\"selected\" (saved)=\"onSaved()\">\r\n</abp-scope-form-modal>\r\n", dependencies: [{ kind: "component", type: i5$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i7$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ScopeFormModalComponent, selector: "abp-scope-form-modal", inputs: ["selected"], outputs: ["saved"] }, { kind: "pipe", type: i3.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
370
374
|
}
|
|
371
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: ScopesComponent, decorators: [{
|
|
372
376
|
type: Component,
|
|
373
377
|
args: [{ selector: 'abp-scopes', providers: [
|
|
374
378
|
ListService,
|
|
@@ -487,6 +491,27 @@ const groupRight = {
|
|
|
487
491
|
};
|
|
488
492
|
const className = 'mb-1 form-group';
|
|
489
493
|
const DEFAULT_APPLICATIONS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
494
|
+
{
|
|
495
|
+
type: "string" /* ePropType.String */,
|
|
496
|
+
options: data => {
|
|
497
|
+
const languageService = data.getInjected(LocalizationService);
|
|
498
|
+
const webText = languageService.instant('AbpOpenIddict::Web');
|
|
499
|
+
const nativeText = languageService.instant('AbpOpenIddict::Native');
|
|
500
|
+
return of([
|
|
501
|
+
{ key: webText, value: defaultApplicationTypesList.web },
|
|
502
|
+
{
|
|
503
|
+
key: nativeText,
|
|
504
|
+
value: defaultApplicationTypesList.native,
|
|
505
|
+
},
|
|
506
|
+
]);
|
|
507
|
+
},
|
|
508
|
+
name: 'applicationType',
|
|
509
|
+
displayName: 'AbpOpenIddict::ApplicationType',
|
|
510
|
+
id: 'applicationType',
|
|
511
|
+
group: groupLeft,
|
|
512
|
+
className: className,
|
|
513
|
+
validators: () => [Validators.required],
|
|
514
|
+
},
|
|
490
515
|
{
|
|
491
516
|
type: "string" /* ePropType.String */,
|
|
492
517
|
name: 'clientId',
|
|
@@ -524,9 +549,9 @@ const DEFAULT_APPLICATIONS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
|
524
549
|
},
|
|
525
550
|
{
|
|
526
551
|
type: "string" /* ePropType.String */,
|
|
527
|
-
name: '
|
|
528
|
-
displayName: 'AbpOpenIddict::
|
|
529
|
-
id: '
|
|
552
|
+
name: 'clientType',
|
|
553
|
+
displayName: 'AbpOpenIddict::ClientType',
|
|
554
|
+
id: 'clientType',
|
|
530
555
|
validators: () => [Validators.required],
|
|
531
556
|
options: data => {
|
|
532
557
|
const key = data.getInjected(LocalizationService).instant('AbpUi::NotAssigned');
|
|
@@ -660,6 +685,7 @@ const DEFAULT_APPLICATIONS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
|
660
685
|
name: 'scopes',
|
|
661
686
|
displayName: 'AbpOpenIddict::Scopes',
|
|
662
687
|
id: 'scopes',
|
|
688
|
+
defaultValue: [],
|
|
663
689
|
options: data => {
|
|
664
690
|
return data
|
|
665
691
|
.getInjected(ScopeService)
|
|
@@ -899,11 +925,11 @@ const routes = [
|
|
|
899
925
|
},
|
|
900
926
|
];
|
|
901
927
|
class OpeniddictproRoutingModule {
|
|
902
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
903
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
|
904
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
|
928
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
929
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] }); }
|
|
930
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
905
931
|
}
|
|
906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproRoutingModule, decorators: [{
|
|
907
933
|
type: NgModule,
|
|
908
934
|
args: [{
|
|
909
935
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -950,8 +976,8 @@ class OpeniddictproModule {
|
|
|
950
976
|
static forLazy(options = {}) {
|
|
951
977
|
return new LazyModuleFactory(OpeniddictproModule.forChild(options));
|
|
952
978
|
}
|
|
953
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
954
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.
|
|
979
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
980
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproModule, declarations: [ApplicationsComponent,
|
|
955
981
|
ApplicationFormModalComponent,
|
|
956
982
|
ScopesComponent,
|
|
957
983
|
ScopeFormModalComponent], imports: [OpeniddictproRoutingModule,
|
|
@@ -962,11 +988,12 @@ class OpeniddictproModule {
|
|
|
962
988
|
NgxValidateCoreModule,
|
|
963
989
|
PageModule,
|
|
964
990
|
AdvancedEntityFiltersModule,
|
|
965
|
-
PermissionManagementModule
|
|
991
|
+
PermissionManagementModule,
|
|
992
|
+
ExtensibleFormComponent], exports: [ApplicationsComponent,
|
|
966
993
|
ApplicationFormModalComponent,
|
|
967
994
|
ScopesComponent,
|
|
968
995
|
ScopeFormModalComponent] }); }
|
|
969
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.
|
|
996
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproModule, imports: [OpeniddictproRoutingModule,
|
|
970
997
|
CoreModule,
|
|
971
998
|
CommercialUiModule,
|
|
972
999
|
ThemeSharedModule,
|
|
@@ -974,9 +1001,10 @@ class OpeniddictproModule {
|
|
|
974
1001
|
NgxValidateCoreModule,
|
|
975
1002
|
PageModule,
|
|
976
1003
|
AdvancedEntityFiltersModule,
|
|
977
|
-
PermissionManagementModule
|
|
1004
|
+
PermissionManagementModule,
|
|
1005
|
+
ExtensibleFormComponent] }); }
|
|
978
1006
|
}
|
|
979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1007
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpeniddictproModule, decorators: [{
|
|
980
1008
|
type: NgModule,
|
|
981
1009
|
args: [{
|
|
982
1010
|
imports: [
|
|
@@ -989,6 +1017,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
|
|
|
989
1017
|
PageModule,
|
|
990
1018
|
AdvancedEntityFiltersModule,
|
|
991
1019
|
PermissionManagementModule,
|
|
1020
|
+
ExtensibleFormComponent,
|
|
992
1021
|
],
|
|
993
1022
|
declarations: [...components],
|
|
994
1023
|
exports: [...components],
|
|
@@ -1023,10 +1052,10 @@ class OpenIddictProExtensionsGuard {
|
|
|
1023
1052
|
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
1024
1053
|
}), mapTo(true));
|
|
1025
1054
|
}
|
|
1026
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.
|
|
1027
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.
|
|
1055
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpenIddictProExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1056
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpenIddictProExtensionsGuard }); }
|
|
1028
1057
|
}
|
|
1029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.
|
|
1058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.7", ngImport: i0, type: OpenIddictProExtensionsGuard, decorators: [{
|
|
1030
1059
|
type: Injectable
|
|
1031
1060
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1032
1061
|
|
|
@@ -1034,5 +1063,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImpor
|
|
|
1034
1063
|
* Generated bundle index. Do not edit.
|
|
1035
1064
|
*/
|
|
1036
1065
|
|
|
1037
|
-
export { ApplicationFormModalComponent, ApplicationsComponent, ApplicationsService, DEFAULT_APPLICATIONS_CREATE_FORM_PROPS, DEFAULT_APPLICATIONS_ENTITY_ACTIONS, DEFAULT_APPLICATIONS_ENTITY_PROPS, DEFAULT_APPLICATIONS_FORM_PROPS, DEFAULT_APPLICATIONS_TOOLBAR_ACTIONS, DEFAULT_OPENIDDICT_PRO_CREATE_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_ENTITY_ACTIONS, DEFAULT_OPENIDDICT_PRO_ENTITY_PROPS, DEFAULT_OPENIDDICT_PRO_TOOLBAR_ACTIONS, DEFAULT_SCOPES_ENTITY_PROPS, DEFAULT_SCOPES_FORM_PROPS, DEFAULT_SCOPES_TOOLBAR_ACTIONS, DEFAULT_SCOPE_CREATE_FORM_PROPS, DEFAULT_SCOPE_ENTITY_ACTIONS, DefaultApplicationsConsentType, OPENIDDICT_PRO_CREATE_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_EDIT_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_ACTION_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_PROP_CONTRIBUTORS, OPENIDDICT_PRO_TOOLBAR_ACTION_CONTRIBUTORS, OpenIddictProExtensionsGuard, OpeniddictproModule, ScopeFormModalComponent, ScopesComponent, ScopesService, UrisValidator, allowFlow, defaultApplicationTypes, defaultApplicationsTypeList, defaultUriPattern, hashSetParser };
|
|
1066
|
+
export { ApplicationFormModalComponent, ApplicationsComponent, ApplicationsService, DEFAULT_APPLICATIONS_CREATE_FORM_PROPS, DEFAULT_APPLICATIONS_ENTITY_ACTIONS, DEFAULT_APPLICATIONS_ENTITY_PROPS, DEFAULT_APPLICATIONS_FORM_PROPS, DEFAULT_APPLICATIONS_TOOLBAR_ACTIONS, DEFAULT_OPENIDDICT_PRO_CREATE_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_EDIT_FORM_PROPS, DEFAULT_OPENIDDICT_PRO_ENTITY_ACTIONS, DEFAULT_OPENIDDICT_PRO_ENTITY_PROPS, DEFAULT_OPENIDDICT_PRO_TOOLBAR_ACTIONS, DEFAULT_SCOPES_ENTITY_PROPS, DEFAULT_SCOPES_FORM_PROPS, DEFAULT_SCOPES_TOOLBAR_ACTIONS, DEFAULT_SCOPE_CREATE_FORM_PROPS, DEFAULT_SCOPE_ENTITY_ACTIONS, DefaultApplicationsConsentType, OPENIDDICT_PRO_CREATE_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_EDIT_FORM_PROP_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_ACTION_CONTRIBUTORS, OPENIDDICT_PRO_ENTITY_PROP_CONTRIBUTORS, OPENIDDICT_PRO_TOOLBAR_ACTION_CONTRIBUTORS, OpenIddictProExtensionsGuard, OpeniddictproModule, ScopeFormModalComponent, ScopesComponent, ScopesService, UrisValidator, allowFlow, defaultApplicationTypes, defaultApplicationTypesList, defaultApplicationsTypeList, defaultUriPattern, hashSetParser };
|
|
1038
1067
|
//# sourceMappingURL=volo-abp.ng.openiddictpro.mjs.map
|