ngx-dynamic-entity 1.5.0 → 1.6.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-dynamic-entity",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Angular standalone UI library for rendering dynamic entity forms.",
|
|
5
5
|
"//typings": "Local workspace resolution only: ng-packagr 21 writes types/ngx-dynamic-entity.d.ts into dist/package.json. Do NOT add a 'main' field here — ng-packagr does not generate one, so it would be copied verbatim and resolve wrongly in the published package.",
|
|
6
6
|
"typings": "types/ngx-dynamic-entity.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
9
9
|
"@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
10
10
|
"@angular/forms": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
|
|
11
|
-
"@dynamic-entity/core": "^1.
|
|
11
|
+
"@dynamic-entity/core": "^1.6.0",
|
|
12
12
|
"rxjs": "^7.0.0"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [
|
|
@@ -1011,6 +1011,7 @@ declare class DynamicRecordFormComponent implements OnChanges {
|
|
|
1011
1011
|
}>;
|
|
1012
1012
|
dynamicFormComp?: DynamicFormComponent;
|
|
1013
1013
|
private readonly rulesEvaluation;
|
|
1014
|
+
private readonly rbacService;
|
|
1014
1015
|
private readonly host;
|
|
1015
1016
|
private readonly injector;
|
|
1016
1017
|
readonly currentData: i0.WritableSignal<Record<string, any>>;
|
|
@@ -1035,6 +1036,16 @@ declare class DynamicRecordFormComponent implements OnChanges {
|
|
|
1035
1036
|
message: string;
|
|
1036
1037
|
}[];
|
|
1037
1038
|
dismissInfoBanner(fieldId: string): void;
|
|
1039
|
+
/**
|
|
1040
|
+
* Whether the current roles may edit this record.
|
|
1041
|
+
*
|
|
1042
|
+
* `userRoles` was declared as an input here and then read by nothing at all — this
|
|
1043
|
+
* component computed no permissions of any kind, so the record view was fully editable
|
|
1044
|
+
* for every role while the plain form at least hid its Save button. Cached on the same
|
|
1045
|
+
* terms as the sibling component: it depends only on `config` and `userRoles`.
|
|
1046
|
+
*/
|
|
1047
|
+
private permissionsCache;
|
|
1048
|
+
get permissions(): ReturnType<RbacService['getPermissions']>;
|
|
1038
1049
|
/** True when nothing in the record may be edited. */
|
|
1039
1050
|
get recordReadOnly(): boolean;
|
|
1040
1051
|
/**
|