@abp/ng.core 5.3.0 → 5.3.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/esm2020/lib/core.module.mjs +2 -2
- package/esm2020/lib/directives/permission.directive.mjs +12 -3
- package/fesm2015/abp-ng.core.mjs +12 -3
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +12 -3
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/directives/permission.directive.d.ts +2 -1
- package/package.json +2 -2
package/fesm2020/abp-ng.core.mjs
CHANGED
|
@@ -1906,6 +1906,7 @@ class PermissionDirective {
|
|
|
1906
1906
|
this.vcRef = vcRef;
|
|
1907
1907
|
this.permissionService = permissionService;
|
|
1908
1908
|
this.cdRef = cdRef;
|
|
1909
|
+
this.runChangeDetection = true;
|
|
1909
1910
|
}
|
|
1910
1911
|
check() {
|
|
1911
1912
|
if (this.subscription) {
|
|
@@ -1918,7 +1919,12 @@ class PermissionDirective {
|
|
|
1918
1919
|
this.vcRef.clear();
|
|
1919
1920
|
if (isGranted)
|
|
1920
1921
|
this.vcRef.createEmbeddedView(this.templateRef);
|
|
1921
|
-
this.
|
|
1922
|
+
if (this.runChangeDetection) {
|
|
1923
|
+
this.cdRef.detectChanges();
|
|
1924
|
+
}
|
|
1925
|
+
else {
|
|
1926
|
+
this.cdRef.markForCheck();
|
|
1927
|
+
}
|
|
1922
1928
|
});
|
|
1923
1929
|
}
|
|
1924
1930
|
ngOnDestroy() {
|
|
@@ -1930,7 +1936,7 @@ class PermissionDirective {
|
|
|
1930
1936
|
}
|
|
1931
1937
|
}
|
|
1932
1938
|
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionDirective, deps: [{ token: i0.TemplateRef, optional: true }, { token: i0.ViewContainerRef }, { token: PermissionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1933
|
-
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0 });
|
|
1939
|
+
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"], runChangeDetection: ["abpPermissionRunChangeDetection", "runChangeDetection"] }, usesOnChanges: true, ngImport: i0 });
|
|
1934
1940
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1935
1941
|
type: Directive,
|
|
1936
1942
|
args: [{
|
|
@@ -1941,6 +1947,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImpor
|
|
|
1941
1947
|
}] }, { type: i0.ViewContainerRef }, { type: PermissionService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { condition: [{
|
|
1942
1948
|
type: Input,
|
|
1943
1949
|
args: ['abpPermission']
|
|
1950
|
+
}], runChangeDetection: [{
|
|
1951
|
+
type: Input,
|
|
1952
|
+
args: ['abpPermissionRunChangeDetection']
|
|
1944
1953
|
}] } });
|
|
1945
1954
|
|
|
1946
1955
|
class ReplaceableTemplateDirective {
|
|
@@ -3637,6 +3646,7 @@ class CoreModule {
|
|
|
3637
3646
|
return {
|
|
3638
3647
|
ngModule: RootCoreModule,
|
|
3639
3648
|
providers: [
|
|
3649
|
+
OAuthModule.forRoot().providers,
|
|
3640
3650
|
LocaleProvider,
|
|
3641
3651
|
CookieLanguageProvider,
|
|
3642
3652
|
{
|
|
@@ -3691,7 +3701,6 @@ class CoreModule {
|
|
|
3691
3701
|
useValue: localizationContributor(options.localizations),
|
|
3692
3702
|
deps: [LocalizationService],
|
|
3693
3703
|
},
|
|
3694
|
-
OAuthModule.forRoot().providers,
|
|
3695
3704
|
],
|
|
3696
3705
|
};
|
|
3697
3706
|
}
|