ngx-material-entity 20.0.3 → 20.0.4
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/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { DateFilterFn } from '@angular/material/datepicker';
|
|
|
10
10
|
import { NgModel, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
11
11
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
12
|
import { MatTableDataSource } from '@angular/material/table';
|
|
13
|
+
import { MatTabChangeEvent } from '@angular/material/tabs';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* A generic EntityService class.
|
|
@@ -4230,6 +4231,66 @@ declare class NgxMatEntityTableComponent<EntityType extends BaseEntityType<Entit
|
|
|
4230
4231
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityTableComponent<any>, "ngx-mat-entity-table", never, { "tableData": { "alias": "tableData"; "required": true; }; }, { "unsavedDialogChanges": "unsavedDialogChanges"; }, never, never, true, never>;
|
|
4231
4232
|
}
|
|
4232
4233
|
|
|
4234
|
+
/**
|
|
4235
|
+
* A form component based on the ngx-material-entity framework.
|
|
4236
|
+
*/
|
|
4237
|
+
declare class NgxMatEntityFormComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
4238
|
+
private readonly injector;
|
|
4239
|
+
EntityUtilities: typeof EntityUtilities;
|
|
4240
|
+
/**
|
|
4241
|
+
* The entity that should be represented by the form.
|
|
4242
|
+
*/
|
|
4243
|
+
entity: EntityType;
|
|
4244
|
+
/**
|
|
4245
|
+
* The tabs to display.
|
|
4246
|
+
*/
|
|
4247
|
+
entityTabs: EntityTab<EntityType>[];
|
|
4248
|
+
/**
|
|
4249
|
+
* Whether or not the entity is readonly.
|
|
4250
|
+
* @default false
|
|
4251
|
+
*/
|
|
4252
|
+
isEntityReadOnly: boolean;
|
|
4253
|
+
/**
|
|
4254
|
+
* Whether to hide a value if it is omitted for creation.
|
|
4255
|
+
* Is used internally for the object property.
|
|
4256
|
+
* @default false
|
|
4257
|
+
*/
|
|
4258
|
+
hideOmitForCreate?: boolean;
|
|
4259
|
+
/**
|
|
4260
|
+
* Whether to hide a value if it is omitted for editing.
|
|
4261
|
+
* Is used internally for the object property.
|
|
4262
|
+
* @default false
|
|
4263
|
+
*/
|
|
4264
|
+
hideOmitForEdit?: boolean;
|
|
4265
|
+
/**
|
|
4266
|
+
* Additional keys that should be omitted.
|
|
4267
|
+
*/
|
|
4268
|
+
additionalOmitKeys?: (keyof EntityType)[];
|
|
4269
|
+
/**
|
|
4270
|
+
* Fires whenever an input of the form changes.
|
|
4271
|
+
*/
|
|
4272
|
+
readonly formChange: EventEmitter<void>;
|
|
4273
|
+
/**
|
|
4274
|
+
* Fires when the selected tab has been changed.
|
|
4275
|
+
*/
|
|
4276
|
+
readonly selectedTabChange: EventEmitter<MatTabChangeEvent>;
|
|
4277
|
+
constructor(injector: EnvironmentInjector);
|
|
4278
|
+
ngOnInit(): void;
|
|
4279
|
+
/**
|
|
4280
|
+
* Checks if the input with the given key is readonly.
|
|
4281
|
+
* @param key - The key for the input to check.
|
|
4282
|
+
* @returns Whether or not the input for the key is read only.
|
|
4283
|
+
*/
|
|
4284
|
+
isReadOnly(key: keyof EntityType): boolean;
|
|
4285
|
+
/**
|
|
4286
|
+
* What happens when an input changes its value.
|
|
4287
|
+
* This refreshes the entity tabs to check if there are now different inputs to display and emits the form change.
|
|
4288
|
+
*/
|
|
4289
|
+
inputChange(): void;
|
|
4290
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityFormComponent<any>, never>;
|
|
4291
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityFormComponent<any>, "ngx-mat-entity-form", never, { "entity": { "alias": "entity"; "required": true; }; "isEntityReadOnly": { "alias": "isEntityReadOnly"; "required": false; }; "hideOmitForCreate": { "alias": "hideOmitForCreate"; "required": false; }; "hideOmitForEdit": { "alias": "hideOmitForEdit"; "required": false; }; "additionalOmitKeys": { "alias": "additionalOmitKeys"; "required": false; }; }, { "formChange": "formChange"; "selectedTabChange": "selectedTabChange"; }, never, never, true, never>;
|
|
4292
|
+
}
|
|
4293
|
+
|
|
4233
4294
|
/**
|
|
4234
4295
|
* A component that displays an info-symbol and a tooltip when it is hovered/clicked.
|
|
4235
4296
|
*/
|
|
@@ -4506,5 +4567,5 @@ declare abstract class FileUtilities {
|
|
|
4506
4567
|
private static transformToBytes;
|
|
4507
4568
|
}
|
|
4508
4569
|
|
|
4509
|
-
export { ArrayDecoratorConfig, DateUtilities, DecoratorTypes, DynamicStyleClassDirective, Entity, EntityService, EntityUtilities, FileUtilities, IncludedInValidatorDirective, NGX_COMPLETE_GLOBAL_DEFAULT_VALUES, NGX_CREATE_DATA, NGX_CREATE_DATA_ENTITY, NGX_CREATE_DATA_ENTITY_SERVICE, NGX_EDIT_DATA, NGX_EDIT_DATA_ENTITY, NGX_EDIT_DATA_ENTITY_SERVICE, NGX_GET_VALIDATION_ERROR_MESSAGE, NGX_GLOBAL_DEFAULT_VALUES, NgxChangesTooltipTitle, NgxMatEntityBaseDisplayColumnValueComponent, NgxMatEntityBaseInputComponent, NgxMatEntityConfirmDialogComponent, NgxMatEntityCreateDialogComponent, NgxMatEntityCreatePageComponent, NgxMatEntityEditDialogComponent, NgxMatEntityEditPageComponent, NgxMatEntityInputComponent, NgxMatEntityTableComponent, NgxValidationErrorsTooltipTitle, NumberDirective, TooltipComponent, TooltipDirective, UnsavedChangesGuard, ValidationUtilities, array, boolean, custom, date, defaultCreateDataRoute, defaultEditDataRoute, exportAsCsvMultiAction, exportAsJsonMultiAction, exportAsXmlMultiAction, file, getChangesTooltipContent, getValidationErrorsTooltipContent, hasMany, importFromJsonMultiAction, number, object, referencesMany, referencesOne, string };
|
|
4570
|
+
export { ArrayDecoratorConfig, DateUtilities, DecoratorTypes, DynamicStyleClassDirective, Entity, EntityService, EntityUtilities, FileUtilities, IncludedInValidatorDirective, NGX_COMPLETE_GLOBAL_DEFAULT_VALUES, NGX_CREATE_DATA, NGX_CREATE_DATA_ENTITY, NGX_CREATE_DATA_ENTITY_SERVICE, NGX_EDIT_DATA, NGX_EDIT_DATA_ENTITY, NGX_EDIT_DATA_ENTITY_SERVICE, NGX_GET_VALIDATION_ERROR_MESSAGE, NGX_GLOBAL_DEFAULT_VALUES, NgxChangesTooltipTitle, NgxMatEntityBaseDisplayColumnValueComponent, NgxMatEntityBaseInputComponent, NgxMatEntityConfirmDialogComponent, NgxMatEntityCreateDialogComponent, NgxMatEntityCreatePageComponent, NgxMatEntityEditDialogComponent, NgxMatEntityEditPageComponent, NgxMatEntityFormComponent, NgxMatEntityInputComponent, NgxMatEntityTableComponent, NgxValidationErrorsTooltipTitle, NumberDirective, TooltipComponent, TooltipDirective, UnsavedChangesGuard, ValidationUtilities, array, boolean, custom, date, defaultCreateDataRoute, defaultEditDataRoute, exportAsCsvMultiAction, exportAsJsonMultiAction, exportAsXmlMultiAction, file, getChangesTooltipContent, getValidationErrorsTooltipContent, hasMany, importFromJsonMultiAction, number, object, referencesMany, referencesOne, string };
|
|
4510
4571
|
export type { AutocompleteStringChipsArrayDecoratorConfig, AutocompleteStringDecoratorConfig, BaseData, BaseEntityType, BaseTableAction, CheckboxBooleanDecoratorConfig, Col, ConfirmDialogData, ConfirmDialogTypes, CreateData, CreateDataRoute, CreateEntityData, CustomDecoratorConfig, DateArrayDecoratorConfig, DateRange, DateRangeArrayDecoratorConfig, DateRangeDateDecoratorConfig, DateTimeArrayDecoratorConfig, DateTimeDateDecoratorConfig, DecoratorType, DefaultDateDecoratorConfig, DefaultFileDecoratorConfig, DefaultNumberDecoratorConfig, DefaultObjectDecoratorConfig, DefaultStringDecoratorConfig, Difference, DisplayColumn, DropdownBooleanDecoratorConfig, DropdownNumberDecoratorConfig, DropdownObjectDecoratorConfig, DropdownStringDecoratorConfig, DropdownValue, DynamicStyleClasses, EditAction, EditArrayItemDialogData, EditData, EditDataRoute, EditEntityData, EntityArrayDecoratorConfig, EntityClassNewable, EntityRow, EntityServiceClassNewable, EntityTab, FileData, HasManyDecoratorConfig, Hour, ImageFileDecoratorConfig, Minute, MultiSelectAction, NgxGlobalDefaultValues, NumberDropdownValues, ObjectDropdownValues, PageCreateData, PageEditData, PasswordStringDecoratorConfig, Position, ReferencesManyDecoratorConfig, ReferencesOneDecoratorConfig, SliderNumberDecoratorConfig, StringAutocompleteValues, StringChipsArrayDecoratorConfig, StringDropdownValues, TableAction, TableColumnValue, TableData, TextboxStringDecoratorConfig, Time, ToggleBooleanDecoratorConfig, UnsavedChangesPage, ValidationError };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-material-entity",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"crud",
|
|
9
9
|
"entity"
|
|
10
10
|
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"url": "https://github.com/Service-Soft/ngx-material-entity"
|
|
13
|
+
},
|
|
11
14
|
"peerDependencies": {
|
|
12
15
|
"@angular/animations": "20",
|
|
13
16
|
"@angular/cdk": "20",
|