ngx-material-entity 20.0.0 → 20.0.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/fesm2022/ngx-material-entity.mjs +37 -29
- package/fesm2022/ngx-material-entity.mjs.map +1 -1
- package/index.d.ts +18 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -985,7 +985,14 @@ declare abstract class DateUtilities {
|
|
|
985
985
|
* @returns Times in the 24 hour format from 0:00 until 23:30 in 30 minute steps.
|
|
986
986
|
*/
|
|
987
987
|
static getDefaultTimes(format?: 12 | 24, minuteSteps?: MinuteSteps): DropdownValue<Time>[];
|
|
988
|
-
|
|
988
|
+
/**
|
|
989
|
+
* Creates a time dropdown value for the given data.
|
|
990
|
+
* @param format - The time format. Defaults to 24.
|
|
991
|
+
* @param hour - The hour value of the time.
|
|
992
|
+
* @param minute - The minute value of the time.
|
|
993
|
+
* @returns The dropdown value.
|
|
994
|
+
*/
|
|
995
|
+
static getTimeDropdownValue(format: 12 | 24, hour: Hour, minute: Minute): DropdownValue<Time>;
|
|
989
996
|
private static getFormattedHour;
|
|
990
997
|
private static getFormattedMinute;
|
|
991
998
|
/**
|
|
@@ -1604,7 +1611,7 @@ declare class PositionInternal implements Position {
|
|
|
1604
1611
|
declare abstract class PropertyDecoratorConfigInternal<ValueType> implements PropertyDecoratorConfig<ValueType> {
|
|
1605
1612
|
display: (entity: unknown) => boolean;
|
|
1606
1613
|
displayName: string;
|
|
1607
|
-
required: (
|
|
1614
|
+
required: (entity: unknown) => boolean;
|
|
1608
1615
|
omitForCreate: boolean;
|
|
1609
1616
|
omitForUpdate: boolean;
|
|
1610
1617
|
defaultWidths: [Col, Col, Col];
|
|
@@ -2164,8 +2171,8 @@ declare class EditActionInternal<EntityType extends BaseEntityType<EntityType>>
|
|
|
2164
2171
|
protected readonly globalConfig: NgxGlobalDefaultValues;
|
|
2165
2172
|
displayName: string;
|
|
2166
2173
|
action: (entity: EntityType, entityPriorChanges: EntityType) => Promise<unknown>;
|
|
2167
|
-
enabled: (
|
|
2168
|
-
requireConfirmDialog: (
|
|
2174
|
+
enabled: (e: EntityType) => boolean;
|
|
2175
|
+
requireConfirmDialog: (e: EntityType) => boolean;
|
|
2169
2176
|
confirmDialogData: ConfirmDialogData;
|
|
2170
2177
|
constructor(data: EditAction<EntityType>, globalConfig: NgxGlobalDefaultValues);
|
|
2171
2178
|
private functionToAsync;
|
|
@@ -2197,8 +2204,8 @@ declare class BaseTableActionInternal implements BaseTableAction {
|
|
|
2197
2204
|
type: 'default';
|
|
2198
2205
|
displayName: string;
|
|
2199
2206
|
action: () => Promise<unknown>;
|
|
2200
|
-
enabled: (
|
|
2201
|
-
requireConfirmDialog: (
|
|
2207
|
+
enabled: () => boolean;
|
|
2208
|
+
requireConfirmDialog: () => boolean;
|
|
2202
2209
|
confirmDialogData: ConfirmDialogDataInternal;
|
|
2203
2210
|
constructor(data: BaseTableAction, globalConfig: NgxGlobalDefaultValues);
|
|
2204
2211
|
private functionToAsync;
|
|
@@ -2211,8 +2218,8 @@ declare class MultiSelectActionInternal<EntityType extends BaseEntityType<Entity
|
|
|
2211
2218
|
type: 'multi-select';
|
|
2212
2219
|
displayName: string;
|
|
2213
2220
|
action: (selectedEntities: EntityType[]) => Promise<unknown>;
|
|
2214
|
-
enabled: (
|
|
2215
|
-
requireConfirmDialog: (
|
|
2221
|
+
enabled: (selectedEntities: EntityType[]) => boolean;
|
|
2222
|
+
requireConfirmDialog: (selectedEntities: EntityType[]) => boolean;
|
|
2216
2223
|
confirmDialogData: ConfirmDialogDataInternal;
|
|
2217
2224
|
constructor(data: MultiSelectAction<EntityType>, globalConfig: NgxGlobalDefaultValues);
|
|
2218
2225
|
private functionToAsync;
|
|
@@ -2348,7 +2355,7 @@ declare class DefaultNumberDecoratorConfigInternal extends PropertyDecoratorConf
|
|
|
2348
2355
|
*/
|
|
2349
2356
|
declare class DropdownNumberDecoratorConfigInternal extends PropertyDecoratorConfigInternal<number> implements DropdownNumberDecoratorConfig {
|
|
2350
2357
|
displayStyle: 'dropdown';
|
|
2351
|
-
dropdownValues: (
|
|
2358
|
+
dropdownValues: (entity: any) => Promise<DropdownValue<number | undefined>[]>;
|
|
2352
2359
|
constructor(data: DropdownNumberDecoratorConfig);
|
|
2353
2360
|
}
|
|
2354
2361
|
/**
|
|
@@ -2419,7 +2426,7 @@ declare class DropdownObjectDecoratorConfigInternal<EntityType extends BaseEntit
|
|
|
2419
2426
|
displayStyle: 'dropdown';
|
|
2420
2427
|
EntityClass: EntityClassNewable<EntityType>;
|
|
2421
2428
|
omit: (keyof EntityType)[];
|
|
2422
|
-
dropdownValues: (
|
|
2429
|
+
dropdownValues: (entity: any) => Promise<DropdownValue<EntityType | undefined>[]>;
|
|
2423
2430
|
constructor(data: DropdownObjectDecoratorConfig<EntityType>);
|
|
2424
2431
|
}
|
|
2425
2432
|
|
|
@@ -2549,7 +2556,7 @@ declare class ReferencesOneDecoratorConfigInternal<EntityType extends BaseEntity
|
|
|
2549
2556
|
*/
|
|
2550
2557
|
declare class DropdownStringDecoratorConfigInternal extends PropertyDecoratorConfigInternal<string> implements DropdownStringDecoratorConfig {
|
|
2551
2558
|
displayStyle: 'dropdown';
|
|
2552
|
-
dropdownValues: (
|
|
2559
|
+
dropdownValues: (entity: any) => Promise<DropdownValue<string | undefined>[]>;
|
|
2553
2560
|
constructor(data: DropdownStringDecoratorConfig);
|
|
2554
2561
|
}
|
|
2555
2562
|
/**
|