ngx-material-entity 20.0.0 → 20.0.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/fesm2022/ngx-material-entity.mjs +30 -29
- package/fesm2022/ngx-material-entity.mjs.map +1 -1
- package/index.d.ts +10 -10
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1604,7 +1604,7 @@ declare class PositionInternal implements Position {
|
|
|
1604
1604
|
declare abstract class PropertyDecoratorConfigInternal<ValueType> implements PropertyDecoratorConfig<ValueType> {
|
|
1605
1605
|
display: (entity: unknown) => boolean;
|
|
1606
1606
|
displayName: string;
|
|
1607
|
-
required: (
|
|
1607
|
+
required: (entity: unknown) => boolean;
|
|
1608
1608
|
omitForCreate: boolean;
|
|
1609
1609
|
omitForUpdate: boolean;
|
|
1610
1610
|
defaultWidths: [Col, Col, Col];
|
|
@@ -2164,8 +2164,8 @@ declare class EditActionInternal<EntityType extends BaseEntityType<EntityType>>
|
|
|
2164
2164
|
protected readonly globalConfig: NgxGlobalDefaultValues;
|
|
2165
2165
|
displayName: string;
|
|
2166
2166
|
action: (entity: EntityType, entityPriorChanges: EntityType) => Promise<unknown>;
|
|
2167
|
-
enabled: (
|
|
2168
|
-
requireConfirmDialog: (
|
|
2167
|
+
enabled: (e: EntityType) => boolean;
|
|
2168
|
+
requireConfirmDialog: (e: EntityType) => boolean;
|
|
2169
2169
|
confirmDialogData: ConfirmDialogData;
|
|
2170
2170
|
constructor(data: EditAction<EntityType>, globalConfig: NgxGlobalDefaultValues);
|
|
2171
2171
|
private functionToAsync;
|
|
@@ -2197,8 +2197,8 @@ declare class BaseTableActionInternal implements BaseTableAction {
|
|
|
2197
2197
|
type: 'default';
|
|
2198
2198
|
displayName: string;
|
|
2199
2199
|
action: () => Promise<unknown>;
|
|
2200
|
-
enabled: (
|
|
2201
|
-
requireConfirmDialog: (
|
|
2200
|
+
enabled: () => boolean;
|
|
2201
|
+
requireConfirmDialog: () => boolean;
|
|
2202
2202
|
confirmDialogData: ConfirmDialogDataInternal;
|
|
2203
2203
|
constructor(data: BaseTableAction, globalConfig: NgxGlobalDefaultValues);
|
|
2204
2204
|
private functionToAsync;
|
|
@@ -2211,8 +2211,8 @@ declare class MultiSelectActionInternal<EntityType extends BaseEntityType<Entity
|
|
|
2211
2211
|
type: 'multi-select';
|
|
2212
2212
|
displayName: string;
|
|
2213
2213
|
action: (selectedEntities: EntityType[]) => Promise<unknown>;
|
|
2214
|
-
enabled: (
|
|
2215
|
-
requireConfirmDialog: (
|
|
2214
|
+
enabled: (selectedEntities: EntityType[]) => boolean;
|
|
2215
|
+
requireConfirmDialog: (selectedEntities: EntityType[]) => boolean;
|
|
2216
2216
|
confirmDialogData: ConfirmDialogDataInternal;
|
|
2217
2217
|
constructor(data: MultiSelectAction<EntityType>, globalConfig: NgxGlobalDefaultValues);
|
|
2218
2218
|
private functionToAsync;
|
|
@@ -2348,7 +2348,7 @@ declare class DefaultNumberDecoratorConfigInternal extends PropertyDecoratorConf
|
|
|
2348
2348
|
*/
|
|
2349
2349
|
declare class DropdownNumberDecoratorConfigInternal extends PropertyDecoratorConfigInternal<number> implements DropdownNumberDecoratorConfig {
|
|
2350
2350
|
displayStyle: 'dropdown';
|
|
2351
|
-
dropdownValues: (
|
|
2351
|
+
dropdownValues: (entity: any) => Promise<DropdownValue<number | undefined>[]>;
|
|
2352
2352
|
constructor(data: DropdownNumberDecoratorConfig);
|
|
2353
2353
|
}
|
|
2354
2354
|
/**
|
|
@@ -2419,7 +2419,7 @@ declare class DropdownObjectDecoratorConfigInternal<EntityType extends BaseEntit
|
|
|
2419
2419
|
displayStyle: 'dropdown';
|
|
2420
2420
|
EntityClass: EntityClassNewable<EntityType>;
|
|
2421
2421
|
omit: (keyof EntityType)[];
|
|
2422
|
-
dropdownValues: (
|
|
2422
|
+
dropdownValues: (entity: any) => Promise<DropdownValue<EntityType | undefined>[]>;
|
|
2423
2423
|
constructor(data: DropdownObjectDecoratorConfig<EntityType>);
|
|
2424
2424
|
}
|
|
2425
2425
|
|
|
@@ -2549,7 +2549,7 @@ declare class ReferencesOneDecoratorConfigInternal<EntityType extends BaseEntity
|
|
|
2549
2549
|
*/
|
|
2550
2550
|
declare class DropdownStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal<string> implements DropdownStringDecoratorConfig {
|
|
2551
2551
|
displayStyle: 'dropdown';
|
|
2552
|
-
dropdownValues: (
|
|
2552
|
+
dropdownValues: (entity: any) => Promise<DropdownValue<string | undefined>[]>;
|
|
2553
2553
|
constructor(data: DropdownStringDecoratorConfig);
|
|
2554
2554
|
}
|
|
2555
2555
|
/**
|