ngx-material-entity 18.2.1 → 18.2.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/components/input/input.component.d.ts +1 -1
- package/decorators/references-one/references-one-decorator-internal.data.d.ts +2 -0
- package/decorators/references-one/references-one-decorator.data.d.ts +8 -0
- package/esm2022/components/input/input.component.mjs +9 -5
- package/esm2022/decorators/references-one/references-one-decorator-internal.data.mjs +12 -2
- package/esm2022/decorators/references-one/references-one-decorator.data.mjs +1 -1
- package/fesm2022/ngx-material-entity.mjs +19 -5
- package/fesm2022/ngx-material-entity.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -349,7 +349,7 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
349
349
|
*/
|
|
350
350
|
referencesOneName: string;
|
|
351
351
|
/**
|
|
352
|
-
* The form context for an
|
|
352
|
+
* The form context for an references one property.
|
|
353
353
|
*/
|
|
354
354
|
referencesOneFormContext: TemplateContext<FormContext<EntityType>>;
|
|
355
355
|
/**
|
|
@@ -10,5 +10,7 @@ export declare class ReferencesOneDecoratorConfigInternal<EntityType extends Bas
|
|
|
10
10
|
getDropdownValues: (referencedEntities: EntityType[]) => DropdownValue<string>[];
|
|
11
11
|
getEntityForId: (entityId: string, allReferencedEntities: EntityType[]) => EntityType;
|
|
12
12
|
EntityClass: EntityClassNewable<EntityType>;
|
|
13
|
+
dropdownOnly: boolean;
|
|
14
|
+
omit: (keyof EntityType)[];
|
|
13
15
|
constructor(data: ReferencesOneDecoratorConfig<EntityType>);
|
|
14
16
|
}
|
|
@@ -21,4 +21,12 @@ export interface ReferencesOneDecoratorConfig<EntityType extends BaseEntityType<
|
|
|
21
21
|
* The class of the entity that gets referenced.
|
|
22
22
|
*/
|
|
23
23
|
EntityClass: EntityClassNewable<EntityType>;
|
|
24
|
+
/**
|
|
25
|
+
* Whether or not to only show the dropdown, instead of all data of the selected entity in read only.
|
|
26
|
+
*/
|
|
27
|
+
dropdownOnly?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Some properties of the objects entity class that should be omitted.
|
|
30
|
+
*/
|
|
31
|
+
omit?: (keyof EntityType)[];
|
|
24
32
|
}
|