ngx-material-entity 16.0.9 → 16.1.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/README.md +4 -3
- package/components/create-page/create-page.component.d.ts +7 -7
- package/components/create-page/page-create-data.builder.d.ts +1 -1
- package/components/edit-page/edit-page.component.d.ts +5 -11
- package/components/form/form.component.d.ts +59 -0
- package/components/input/array/array-date-input/array-date-input.component.d.ts +1 -1
- package/components/input/array/array-date-range-input/array-date-range-input.component.d.ts +1 -1
- package/components/input/array/array-date-time-input/array-date-time-input.component.d.ts +1 -1
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +1 -1
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +1 -1
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +1 -1
- package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts +1 -1
- package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +1 -1
- package/components/input/custom/custom.component.d.ts +1 -1
- package/components/input/date/date-input/date-input.component.d.ts +1 -1
- package/components/input/date/date-range-input/date-range-input.component.d.ts +1 -1
- package/components/input/date/date-time-input/date-time-input.component.d.ts +1 -1
- package/components/input/file/file-default-input/file-default-input.component.d.ts +1 -1
- package/components/input/file/file-image-input/file-image-input.component.d.ts +1 -1
- package/components/input/file/file-input/file-input.component.d.ts +1 -1
- package/components/input/input.component.d.ts +3 -5
- package/components/input/number/number-dropdown-input/number-dropdown-input.component.d.ts +1 -1
- package/components/input/number/number-input/number-input.component.d.ts +1 -1
- package/components/input/number/number-slider-input/number-slider-input.component.d.ts +1 -1
- package/components/input/relations/references-many-input/references-many-input.component.d.ts +1 -1
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +1 -1
- package/components/input/string/string-dropdown-input/string-dropdown-input.component.d.ts +1 -1
- package/components/input/string/string-input/string-input.component.d.ts +1 -1
- package/components/input/string/string-password-input/string-password-input.component.d.ts +1 -1
- package/components/input/string/string-textbox-input/string-textbox-input.component.d.ts +1 -1
- package/components/table/create-dialog/{create-entity-dialog-data.builder.d.ts → create-entity-data.builder.d.ts} +1 -1
- package/components/table/create-dialog/create-entity-dialog.component.d.ts +3 -7
- package/components/table/table.component.d.ts +2 -4
- package/default-global-configuration-values.d.ts +0 -5
- package/directives/drag-drop.directive.d.ts +1 -1
- package/directives/tooltip.directive.d.ts +2 -1
- package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +4 -4
- package/esm2022/components/create-page/create-page.component.mjs +20 -24
- package/esm2022/components/create-page/page-create-data.builder.mjs +1 -1
- package/esm2022/components/edit-page/edit-page.component.mjs +19 -37
- package/esm2022/components/form/form.component.mjs +99 -0
- package/esm2022/components/input/array/array-date-input/array-date-input.component.mjs +30 -14
- package/esm2022/components/input/array/array-date-range-input/array-date-range-input.component.mjs +28 -14
- package/esm2022/components/input/array/array-date-time-input/array-date-time-input.component.mjs +34 -15
- package/esm2022/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +22 -10
- package/esm2022/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +18 -9
- package/esm2022/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +14 -6
- package/esm2022/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +19 -11
- package/esm2022/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +16 -8
- package/esm2022/components/input/custom/custom.component.mjs +3 -4
- package/esm2022/components/input/date/date-input/date-input.component.mjs +15 -7
- package/esm2022/components/input/date/date-range-input/date-range-input.component.mjs +19 -11
- package/esm2022/components/input/date/date-time-input/date-time-input.component.mjs +26 -14
- package/esm2022/components/input/file/file-default-input/file-default-input.component.mjs +6 -5
- package/esm2022/components/input/file/file-image-input/file-image-input.component.mjs +8 -7
- package/esm2022/components/input/file/file-input/file-input.component.mjs +23 -13
- package/esm2022/components/input/input.component.mjs +122 -80
- package/esm2022/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +18 -8
- package/esm2022/components/input/number/number-input/number-input.component.mjs +12 -7
- package/esm2022/components/input/number/number-slider-input/number-slider-input.component.mjs +14 -8
- package/esm2022/components/input/relations/references-many-input/references-many-input.component.mjs +32 -17
- package/esm2022/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +22 -11
- package/esm2022/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +21 -11
- package/esm2022/components/input/string/string-input/string-input.component.mjs +12 -6
- package/esm2022/components/input/string/string-password-input/string-password-input.component.mjs +19 -9
- package/esm2022/components/input/string/string-textbox-input/string-textbox-input.component.mjs +12 -6
- package/esm2022/components/table/create-dialog/create-entity-data.builder.mjs +32 -0
- package/esm2022/components/table/create-dialog/create-entity-data.mjs +2 -0
- package/esm2022/components/table/create-dialog/create-entity-dialog.component.mjs +12 -24
- package/esm2022/components/table/edit-dialog/edit-data.builder.mjs +4 -4
- package/esm2022/components/table/edit-dialog/edit-entity-dialog.component.mjs +12 -19
- package/esm2022/components/table/table-data.builder.mjs +5 -5
- package/esm2022/components/table/table.component.mjs +9 -14
- package/esm2022/default-global-configuration-values.mjs +1 -17
- package/esm2022/directives/drag-drop.directive.mjs +4 -3
- package/esm2022/directives/tooltip.directive.mjs +10 -6
- package/esm2022/global-configuration-values.mjs +16 -2
- package/esm2022/public-api.mjs +3 -4
- package/esm2022/services/entity.service.mjs +1 -1
- package/esm2022/utilities/entity.utilities.mjs +6 -6
- package/fesm2022/ngx-material-entity.mjs +2304 -2222
- package/fesm2022/ngx-material-entity.mjs.map +1 -1
- package/global-configuration-values.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -3
- package/utilities/entity.utilities.d.ts +2 -2
- package/components/input/input.module.d.ts +0 -58
- package/esm2022/components/input/input.module.mjs +0 -192
- package/esm2022/components/table/create-dialog/create-entity-dialog-data.builder.mjs +0 -32
- package/esm2022/components/table/create-dialog/create-entity-dialog-data.mjs +0 -2
- /package/components/table/create-dialog/{create-entity-dialog-data.d.ts → create-entity-data.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ NgxMaterialEntity aims to have a fast way to get started with a lot of default o
|
|
|
57
57
|
- [NgxMatEntityTable Configuration](#ngxmatentitytable-configuration)
|
|
58
58
|
- [Display Columns](#display-columns)
|
|
59
59
|
- [Multiselect Actions](#multiselect-actions)
|
|
60
|
-
- [Edit in seperate page](#
|
|
60
|
+
- [Edit/Create in seperate page](#editcreate-in-seperate-page)
|
|
61
61
|
- [1. In the base data entry of your table config add `defaultEdit: 'page'`](#1-in-the-base-data-entry-of-your-table-config-add-defaultedit-page)
|
|
62
62
|
- [2. Add the route on which the entity should be edited:](#2-add-the-route-on-which-the-entity-should-be-edited)
|
|
63
63
|
- [3. Use a custom route (optional)](#3-use-a-custom-route-optional)
|
|
@@ -1279,10 +1279,11 @@ export interface MultiSelectAction<EntityType extends object> {
|
|
|
1279
1279
|
confirmDialogData?: ConfirmDialogData
|
|
1280
1280
|
}
|
|
1281
1281
|
```
|
|
1282
|
-
## Edit in seperate page
|
|
1282
|
+
## Edit/Create in seperate page
|
|
1283
1283
|
When handling entities that have a lot of properties, you might don't want to edit everything inside a dialog but in a separate page.
|
|
1284
1284
|
|
|
1285
|
-
For that case, this library has a generic edit page. It works flawlessly with the table component, but you need to adjust some things
|
|
1285
|
+
For that case, this library has a generic edit page. It works flawlessly with the table component, but you need to adjust some things.
|
|
1286
|
+
The same procedure can also be used to define a create page.
|
|
1286
1287
|
|
|
1287
1288
|
### 1. In the base data entry of your table config add `defaultEdit: 'page'`
|
|
1288
1289
|
### 2. Add the route on which the entity should be edited:
|
|
@@ -6,10 +6,10 @@ import { Observable } from 'rxjs';
|
|
|
6
6
|
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
7
7
|
import { NgxGlobalDefaultValues } from '../../global-configuration-values';
|
|
8
8
|
import { EntityService } from '../../services/entity.service';
|
|
9
|
-
import {
|
|
9
|
+
import { EntityUtilities } from '../../utilities/entity.utilities';
|
|
10
10
|
import { ValidationError } from '../../utilities/validation.utilities';
|
|
11
11
|
import { ConfirmDialogData } from '../confirm-dialog/confirm-dialog-data';
|
|
12
|
-
import { CreateEntityData } from '../table/create-dialog/create-entity-
|
|
12
|
+
import { CreateEntityData } from '../table/create-dialog/create-entity-data';
|
|
13
13
|
import { CreateData } from '../table/table-data';
|
|
14
14
|
import { PageCreateDataInternal } from './page-create-data.builder';
|
|
15
15
|
import * as i0 from "@angular/core";
|
|
@@ -68,10 +68,6 @@ export declare class NgxMatEntityCreatePageComponent<EntityType extends BaseEnti
|
|
|
68
68
|
* Contains HelperMethods around handling Entities and their property-metadata.
|
|
69
69
|
*/
|
|
70
70
|
EntityUtilities: typeof EntityUtilities;
|
|
71
|
-
/**
|
|
72
|
-
* The tabs to display.
|
|
73
|
-
*/
|
|
74
|
-
entityTabs: EntityTab<EntityType>[];
|
|
75
71
|
/**
|
|
76
72
|
* The entity to create.
|
|
77
73
|
*/
|
|
@@ -101,10 +97,14 @@ export declare class NgxMatEntityCreatePageComponent<EntityType extends BaseEnti
|
|
|
101
97
|
* What to display inside the tooltip.
|
|
102
98
|
*/
|
|
103
99
|
tooltipContent: string;
|
|
100
|
+
/**
|
|
101
|
+
* Whether or not the page has been loaded.
|
|
102
|
+
*/
|
|
103
|
+
isLoaded: boolean;
|
|
104
104
|
private inConfirmNavigation;
|
|
105
105
|
get hasUnsavedChanges(): boolean;
|
|
106
106
|
constructor(dialog: MatDialog, location: Location, injector: EnvironmentInjector, entityService: EntityService<EntityType>, EntityClass: EntityClassNewable<EntityType>, inputData: PageCreateData<EntityType>, http: HttpClient, el: ElementRef, renderer: Renderer2, globalConfig: NgxGlobalDefaultValues);
|
|
107
|
-
ngOnInit(): void
|
|
107
|
+
ngOnInit(): Promise<void>;
|
|
108
108
|
/**
|
|
109
109
|
* Whether the page can be left without confirmation (of unsaved changes).
|
|
110
110
|
* @returns Whether or not the page can be left without confirmation.
|
|
@@ -3,7 +3,7 @@ import { BaseEntityType } from '../../classes/entity.model';
|
|
|
3
3
|
import { NgxGlobalDefaultValues } from '../../global-configuration-values';
|
|
4
4
|
import { ConfirmDialogDataInternal } from '../confirm-dialog/confirm-dialog-data.builder';
|
|
5
5
|
import { CreateDataInternal } from '../table/create-dialog/create-data.builder';
|
|
6
|
-
import { CreateEntityDataInternal } from '../table/create-dialog/create-entity-
|
|
6
|
+
import { CreateEntityDataInternal } from '../table/create-dialog/create-entity-data.builder';
|
|
7
7
|
import { PageCreateData } from './create-page.component';
|
|
8
8
|
export type PageCreateDataInternal<EntityType extends BaseEntityType<EntityType>> = Omit<CreateEntityDataInternal<EntityType>, 'entity' | 'EntityServiceClass'> & {
|
|
9
9
|
displayLoadingSpinner: boolean;
|
|
@@ -7,7 +7,7 @@ import { Observable } from 'rxjs';
|
|
|
7
7
|
import { BaseEntityType, EntityClassNewable } from '../../classes/entity.model';
|
|
8
8
|
import { NgxGlobalDefaultValues } from '../../global-configuration-values';
|
|
9
9
|
import { EntityService } from '../../services/entity.service';
|
|
10
|
-
import {
|
|
10
|
+
import { EntityUtilities } from '../../utilities/entity.utilities';
|
|
11
11
|
import { ValidationError } from '../../utilities/validation.utilities';
|
|
12
12
|
import { ConfirmDialogData } from '../confirm-dialog/confirm-dialog-data';
|
|
13
13
|
import { EditActionInternal } from '../table/edit-dialog/edit-data.builder';
|
|
@@ -71,10 +71,6 @@ export declare class NgxMatEntityEditPageComponent<EntityType extends BaseEntity
|
|
|
71
71
|
* Contains HelperMethods around handling Entities and their property-metadata.
|
|
72
72
|
*/
|
|
73
73
|
EntityUtilities: typeof EntityUtilities;
|
|
74
|
-
/**
|
|
75
|
-
* The tabs to display.
|
|
76
|
-
*/
|
|
77
|
-
entityTabs: EntityTab<EntityType>[];
|
|
78
74
|
/**
|
|
79
75
|
* The entity that is being edited.
|
|
80
76
|
*/
|
|
@@ -111,15 +107,13 @@ export declare class NgxMatEntityEditPageComponent<EntityType extends BaseEntity
|
|
|
111
107
|
* Whether or not the current user is allowed to delete the entity.
|
|
112
108
|
*/
|
|
113
109
|
allowDelete: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Whether or not the page has been loaded.
|
|
112
|
+
*/
|
|
113
|
+
isLoaded: boolean;
|
|
114
114
|
private inConfirmNavigation;
|
|
115
115
|
get hasUnsavedChanges(): boolean;
|
|
116
116
|
constructor(dialog: MatDialog, location: Location, route: ActivatedRoute, injector: EnvironmentInjector, entityService: EntityService<EntityType>, EntityClass: EntityClassNewable<EntityType>, inputData: PageEditData<EntityType>, http: HttpClient, el: ElementRef, renderer: Renderer2, globalConfig: NgxGlobalDefaultValues);
|
|
117
|
-
/**
|
|
118
|
-
* Checks if the input with the given key is readonly.
|
|
119
|
-
* @param key - The key for the input to check.
|
|
120
|
-
* @returns Whether or not the input for the key is read only.
|
|
121
|
-
*/
|
|
122
|
-
isReadOnly(key: keyof EntityType): boolean;
|
|
123
117
|
ngOnInit(): Promise<void>;
|
|
124
118
|
/**
|
|
125
119
|
* Checks if the bottom row should be displayed as fixed.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { EnvironmentInjector, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { MatTabChangeEvent } from '@angular/material/tabs';
|
|
3
|
+
import { BaseEntityType } from '../../classes/entity.model';
|
|
4
|
+
import { EntityTab, EntityUtilities } from '../../utilities/entity.utilities';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* A form component based on the ngx-material-entity framework.
|
|
8
|
+
*/
|
|
9
|
+
export declare class NgxMatEntityFormComponent<EntityType extends BaseEntityType<EntityType>> implements OnInit {
|
|
10
|
+
private readonly injector;
|
|
11
|
+
EntityUtilities: typeof EntityUtilities;
|
|
12
|
+
/**
|
|
13
|
+
* The entity that should be represented by the form.
|
|
14
|
+
*/
|
|
15
|
+
entity: EntityType;
|
|
16
|
+
/**
|
|
17
|
+
* The tabs to display.
|
|
18
|
+
*/
|
|
19
|
+
entityTabs: EntityTab<EntityType>[];
|
|
20
|
+
/**
|
|
21
|
+
* Whether or not the entity is readonly.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
isEntityReadOnly: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether to hide a value if it is omitted for creation.
|
|
27
|
+
* Is used internally for the object property.
|
|
28
|
+
* @default false
|
|
29
|
+
*/
|
|
30
|
+
hideOmitForCreate?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to hide a value if it is omitted for editing.
|
|
33
|
+
* Is used internally for the object property.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
hideOmitForEdit?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Additional keys that should be omitted.
|
|
39
|
+
*/
|
|
40
|
+
additionalOmitKeys?: (keyof EntityType)[];
|
|
41
|
+
/**
|
|
42
|
+
* Fires whenever an input of the form changes.
|
|
43
|
+
*/
|
|
44
|
+
formChange: EventEmitter<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Fires when the selected tab has been changed.
|
|
47
|
+
*/
|
|
48
|
+
selectedTabChange: EventEmitter<MatTabChangeEvent>;
|
|
49
|
+
constructor(injector: EnvironmentInjector);
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
/**
|
|
52
|
+
* Checks if the input with the given key is readonly.
|
|
53
|
+
* @param key - The key for the input to check.
|
|
54
|
+
* @returns Whether or not the input for the key is read only.
|
|
55
|
+
*/
|
|
56
|
+
isReadOnly(key: keyof EntityType): boolean;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityFormComponent<any>, never>;
|
|
58
|
+
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>;
|
|
59
|
+
}
|
|
@@ -13,5 +13,5 @@ export declare class ArrayDateInputComponent<EntityType extends BaseEntityType<E
|
|
|
13
13
|
constructor(matDialog: MatDialog, injector: EnvironmentInjector, http: HttpClient, globalConfig: NgxGlobalDefaultValues);
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateInputComponent<any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateInputComponent<any>, "array-date-input", never, {}, {}, never, never,
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateInputComponent<any>, "array-date-input", never, {}, {}, never, never, true, never>;
|
|
17
17
|
}
|
|
@@ -21,5 +21,5 @@ export declare class ArrayDateRangeInputComponent<EntityType extends BaseEntityT
|
|
|
21
21
|
addDateRange(): void;
|
|
22
22
|
protected resetInput(): void;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateRangeInputComponent<any>, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {}, {}, never, never,
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateRangeInputComponent<any>, "array-date-range-input", never, {}, {}, never, never, true, never>;
|
|
25
25
|
}
|
|
@@ -23,5 +23,5 @@ export declare class ArrayDateTimeInputComponent<EntityType extends BaseEntityTy
|
|
|
23
23
|
*/
|
|
24
24
|
addDateTime(): void;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDateTimeInputComponent<any>, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {}, {}, never, never,
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayDateTimeInputComponent<any>, "array-date-time-input", never, {}, {}, never, never, true, never>;
|
|
27
27
|
}
|
|
@@ -26,5 +26,5 @@ export declare class ArrayStringAutocompleteChipsComponent<EntityType extends Ba
|
|
|
26
26
|
*/
|
|
27
27
|
filterAutocompleteStrings(input: string): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringAutocompleteChipsComponent<any>, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {}, {}, never, never,
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringAutocompleteChipsComponent<any>, "array-string-autocomplete-chips", never, {}, {}, never, never, true, never>;
|
|
30
30
|
}
|
package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts
CHANGED
|
@@ -32,5 +32,5 @@ export declare class ArrayStringChipsInputComponent<EntityType extends BaseEntit
|
|
|
32
32
|
removeStringChipArrayValue(value: string): void;
|
|
33
33
|
setValidationErrors(model: NgModel, chipsModel: NgModel): void;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayStringChipsInputComponent<any>, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {}, {}, never, never,
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayStringChipsInputComponent<any>, "array-string-chips-input", never, {}, {}, never, never, true, never>;
|
|
36
36
|
}
|
package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class BooleanCheckboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_CHECKBOX, boolean> implements OnInit {
|
|
7
7
|
updatePropertyValue(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanCheckboxInputComponent<any>, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanCheckboxInputComponent<any>, "boolean-checkbox-input", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
package/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export declare class BooleanDropdownInputComponent<EntityType extends BaseEntity
|
|
|
9
9
|
constructor(globalConfig: NgxGlobalDefaultValues);
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanDropdownInputComponent<any>, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {}, {}, never, never,
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanDropdownInputComponent<any>, "boolean-dropdown-input", never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class BooleanToggleInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.BOOLEAN_TOGGLE, boolean> implements OnInit {
|
|
7
7
|
updatePropertyValue(): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanToggleInputComponent<any>, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanToggleInputComponent<any>, "boolean-toggle-input", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -9,5 +9,5 @@ export declare class CustomInputComponent<EntityType extends BaseEntityType<Enti
|
|
|
9
9
|
constructor(viewContainerRef: ViewContainerRef);
|
|
10
10
|
ngOnInit(): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent<any, any, any, any>, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent<any, any, any, any>, "custom-input", never, {}, {}, never, never,
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent<any, any, any, any>, "custom-input", never, {}, {}, never, never, true, never>;
|
|
13
13
|
}
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class DateInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.DATE, Date> implements OnInit {
|
|
8
8
|
DateUtilities: typeof DateUtilities;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateInputComponent<any>, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {}, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateInputComponent<any>, "date-input", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -18,5 +18,5 @@ export declare class DateRangeInputComponent<EntityType extends BaseEntityType<E
|
|
|
18
18
|
*/
|
|
19
19
|
setDateRangeValues(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeInputComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {}, {}, never, never,
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputComponent<any>, "date-range-input", never, {}, {}, never, never, true, never>;
|
|
22
22
|
}
|
|
@@ -29,5 +29,5 @@ export declare class DateTimeInputComponent<EntityType extends BaseEntityType<En
|
|
|
29
29
|
*/
|
|
30
30
|
setTime(): void;
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeInputComponent<any>, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {}, {}, never, never,
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimeInputComponent<any>, "date-time-input", never, {}, {}, never, never, true, never>;
|
|
33
33
|
}
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class FileDefaultInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.FILE_DEFAULT, FileData | FileData[]> implements OnInit {
|
|
8
8
|
refreshFileData(fileData?: FileData | FileData[]): Promise<void>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileDefaultInputComponent<any>, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {}, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileDefaultInputComponent<any>, "file-default-input", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -21,5 +21,5 @@ export declare class FileImageInputComponent<EntityType extends BaseEntityType<E
|
|
|
21
21
|
next(): Promise<void>;
|
|
22
22
|
setIndex(index: number): Promise<void>;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileImageInputComponent<any>, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageInputComponent<any>, "file-image-input", never, {}, {}, never, never,
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileImageInputComponent<any>, "file-image-input", never, {}, {}, never, never, true, never>;
|
|
25
25
|
}
|
|
@@ -35,5 +35,5 @@ export declare class FileInputComponent<EntityType extends BaseEntityType<Entity
|
|
|
35
35
|
downloadAllEnabled(): boolean;
|
|
36
36
|
downloadAll(): Promise<void>;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent<any>, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent<any>, "file-input", never, { "propertyValue": { "alias": "propertyValue"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "key": { "alias": "key"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; "getValidationErrorMessage": { "alias": "getValidationErrorMessage"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; }, { "fileDataChangeEvent": "fileDataChangeEvent"; }, never, never,
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent<any>, "file-input", never, { "propertyValue": { "alias": "propertyValue"; "required": false; }; "entity": { "alias": "entity"; "required": false; }; "key": { "alias": "key"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; "getValidationErrorMessage": { "alias": "getValidationErrorMessage"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; }, { "fileDataChangeEvent": "fileDataChangeEvent"; }, never, never, true, never>;
|
|
39
39
|
}
|
|
@@ -43,13 +43,11 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
43
43
|
* The entity on which the property exists. Used in conjunction with the "propertyKey"
|
|
44
44
|
* to determine the property for which the input should be generated.
|
|
45
45
|
*/
|
|
46
|
-
entity
|
|
47
|
-
internalEntity: EntityType;
|
|
46
|
+
entity: EntityType;
|
|
48
47
|
/**
|
|
49
48
|
* The name of the property to generate the input for. Used in conjunction with the "entity".
|
|
50
49
|
*/
|
|
51
|
-
propertyKey
|
|
52
|
-
internalPropertyKey: keyof EntityType;
|
|
50
|
+
propertyKey: keyof EntityType;
|
|
53
51
|
/**
|
|
54
52
|
* (optional) A custom function to generate the error-message for invalid inputs.
|
|
55
53
|
*/
|
|
@@ -491,5 +489,5 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
491
489
|
*/
|
|
492
490
|
removeFromEntityArray(): void;
|
|
493
491
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityInputComponent<any>, never>;
|
|
494
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityInputComponent<any>, "ngx-mat-entity-input", never, { "entity": { "alias": "entity"; "required":
|
|
492
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxMatEntityInputComponent<any>, "ngx-mat-entity-input", never, { "entity": { "alias": "entity"; "required": true; }; "propertyKey": { "alias": "propertyKey"; "required": true; }; "getValidationErrorMessage": { "alias": "getValidationErrorMessage"; "required": false; }; "hideOmitForCreate": { "alias": "hideOmitForCreate"; "required": false; }; "hideOmitForEdit": { "alias": "hideOmitForEdit"; "required": false; }; "validEmpty": { "alias": "validEmpty"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; }, { "inputChangeEvent": "inputChangeEvent"; }, never, never, true, never>;
|
|
495
493
|
}
|
|
@@ -18,5 +18,5 @@ export declare class NumberDropdownInputComponent<EntityType extends BaseEntityT
|
|
|
18
18
|
*/
|
|
19
19
|
filterDropdownValues(searchInput: string): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDropdownInputComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {}, {}, never, never,
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberDropdownInputComponent<any>, "number-dropdown-input", never, {}, {}, never, never, true, never>;
|
|
22
22
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class NumberInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER, number> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {}, {}, never, never,
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent<any>, "number-input", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class NumberSliderInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.NUMBER_SLIDER, number> implements OnInit {
|
|
7
7
|
updatePropertyValue(value: number): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberSliderInputComponent<any>, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NumberSliderInputComponent<any>, "number-slider-input", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberSliderInputComponent<any>, "number-slider-input", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
package/components/input/relations/references-many-input/references-many-input.component.d.ts
CHANGED
|
@@ -42,5 +42,5 @@ export declare class ReferencesManyInputComponent<EntityType extends BaseEntityT
|
|
|
42
42
|
addAll(): void;
|
|
43
43
|
remove(): void;
|
|
44
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReferencesManyInputComponent<any>, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReferencesManyInputComponent<any>, "references-many-input", never, {}, {}, never, never,
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReferencesManyInputComponent<any>, "references-many-input", never, {}, {}, never, never, true, never>;
|
|
46
46
|
}
|
package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class StringAutocompleteInputComponent<EntityType extends BaseEnt
|
|
|
15
15
|
*/
|
|
16
16
|
filterAutocompleteStrings(input?: string): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringAutocompleteInputComponent<any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {}, {}, never, never,
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringAutocompleteInputComponent<any>, "string-autocomplete-input", never, {}, {}, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -18,5 +18,5 @@ export declare class StringDropdownInputComponent<EntityType extends BaseEntityT
|
|
|
18
18
|
*/
|
|
19
19
|
filterDropdownValues(searchInput: string): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringDropdownInputComponent<any>, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringDropdownInputComponent<any>, "string-dropdown-input", never, {}, {}, never, never,
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringDropdownInputComponent<any>, "string-dropdown-input", never, {}, {}, never, never, true, never>;
|
|
22
22
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class StringInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING, string> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent<any>, "string-input", never, {}, {}, never, never,
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringInputComponent<any>, "string-input", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -24,5 +24,5 @@ export declare class StringPasswordInputComponent<EntityType extends BaseEntityT
|
|
|
24
24
|
private isPasswordWeak;
|
|
25
25
|
private isPasswordComplex;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringPasswordInputComponent<any>, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringPasswordInputComponent<any>, "string-password-input", never, {}, {}, never, never,
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringPasswordInputComponent<any>, "string-password-input", never, {}, {}, never, never, true, never>;
|
|
28
28
|
}
|
|
@@ -5,5 +5,5 @@ import { NgxMatEntityBaseInputComponent } from '../../base-input.component';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class StringTextboxInputComponent<EntityType extends BaseEntityType<EntityType>> extends NgxMatEntityBaseInputComponent<EntityType, DecoratorTypes.STRING_TEXTBOX, string> implements OnInit {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<StringTextboxInputComponent<any>, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StringTextboxInputComponent<any>, "string-textbox-input", never, {}, {}, never, never,
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringTextboxInputComponent<any>, "string-textbox-input", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -2,7 +2,7 @@ import { BaseBuilder } from '../../../classes/base.builder';
|
|
|
2
2
|
import { BaseEntityType, EntityServiceClassNewable } from '../../../classes/entity.model';
|
|
3
3
|
import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
|
|
4
4
|
import { CreateDataInternal } from './create-data.builder';
|
|
5
|
-
import { CreateEntityData } from './create-entity-
|
|
5
|
+
import { CreateEntityData } from './create-entity-data';
|
|
6
6
|
/**
|
|
7
7
|
* The internal CreateEntityDialogData. Requires all default values the user can leave out.
|
|
8
8
|
*/
|
|
@@ -3,10 +3,10 @@ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
|
3
3
|
import { BaseEntityType } from '../../../classes/entity.model';
|
|
4
4
|
import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
|
|
5
5
|
import { EntityService } from '../../../services/entity.service';
|
|
6
|
-
import {
|
|
6
|
+
import { EntityUtilities } from '../../../utilities/entity.utilities';
|
|
7
7
|
import { ValidationError } from '../../../utilities/validation.utilities';
|
|
8
|
-
import { CreateEntityData } from './create-entity-
|
|
9
|
-
import { CreateEntityDataInternal } from './create-entity-
|
|
8
|
+
import { CreateEntityData } from './create-entity-data';
|
|
9
|
+
import { CreateEntityDataInternal } from './create-entity-data.builder';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
/**
|
|
12
12
|
* The default dialog used to create new entities based on the configuration passed in the MAT_DIALOG_DATA "inputData".
|
|
@@ -24,10 +24,6 @@ export declare class NgxMatEntityCreateDialogComponent<EntityType extends BaseEn
|
|
|
24
24
|
* Contains HelperMethods around handling Entities and their property-metadata.
|
|
25
25
|
*/
|
|
26
26
|
EntityUtilities: typeof EntityUtilities;
|
|
27
|
-
/**
|
|
28
|
-
* The tabs of the entity.
|
|
29
|
-
*/
|
|
30
|
-
entityTabs: EntityTab<EntityType>[];
|
|
31
27
|
/**
|
|
32
28
|
* The services that handles the entity.
|
|
33
29
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
|
-
import { EnvironmentInjector,
|
|
2
|
+
import { EnvironmentInjector, OnInit } from '@angular/core';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { MatPaginator } from '@angular/material/paginator';
|
|
5
5
|
import { MatSort } from '@angular/material/sort';
|
|
@@ -17,7 +17,7 @@ import * as i0 from "@angular/core";
|
|
|
17
17
|
*
|
|
18
18
|
* It offers a lot of customization options which can be found in "TableData".
|
|
19
19
|
*/
|
|
20
|
-
export declare class NgxMatEntityTableComponent<EntityType extends BaseEntityType<Entity>> implements OnInit
|
|
20
|
+
export declare class NgxMatEntityTableComponent<EntityType extends BaseEntityType<Entity>> implements OnInit {
|
|
21
21
|
private readonly dialog;
|
|
22
22
|
private readonly injector;
|
|
23
23
|
private readonly router;
|
|
@@ -39,7 +39,6 @@ export declare class NgxMatEntityTableComponent<EntityType extends BaseEntityTyp
|
|
|
39
39
|
*/
|
|
40
40
|
allowCreate: boolean;
|
|
41
41
|
private entityService;
|
|
42
|
-
private readonly onDestroy;
|
|
43
42
|
/**
|
|
44
43
|
* The paginator from the html.
|
|
45
44
|
*/
|
|
@@ -128,7 +127,6 @@ export declare class NgxMatEntityTableComponent<EntityType extends BaseEntityTyp
|
|
|
128
127
|
* @returns Whether or not the Action can be used.
|
|
129
128
|
*/
|
|
130
129
|
tableActionDisabled(action: TableActionInternal<EntityType>): boolean;
|
|
131
|
-
ngOnDestroy(): void;
|
|
132
130
|
/**
|
|
133
131
|
* Applies the search input to filter the table entries.
|
|
134
132
|
* @param event - The keyup-event which contains the search-string of the user.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
1
|
import { NgxGlobalDefaultValues } from './global-configuration-values';
|
|
3
2
|
/**
|
|
4
3
|
* The default configuration values of the library.
|
|
@@ -12,7 +11,3 @@ export declare const CONFIG_NEEDS_UPDATE_KEY: string;
|
|
|
12
11
|
* The global defaults for a configuration that needs update.
|
|
13
12
|
*/
|
|
14
13
|
export declare const needsUpdateGlobalDefaults: NgxGlobalDefaultValues;
|
|
15
|
-
/**
|
|
16
|
-
* The internal values consisting of default ones and values provided by the user in NGX_GLOBAL_DEFAULT_VALUES.
|
|
17
|
-
*/
|
|
18
|
-
export declare const NGX_INTERNAL_GLOBAL_DEFAULT_VALUES: InjectionToken<NgxGlobalDefaultValues>;
|
|
@@ -25,5 +25,5 @@ export declare class DragDropDirective {
|
|
|
25
25
|
*/
|
|
26
26
|
onDrop(evt: DragEvent): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<DragDropDirective, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[dragDrop]", never, {}, { "files": "files"; }, never, never,
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DragDropDirective, "[dragDrop]", never, {}, { "files": "files"; }, never, never, true, never>;
|
|
29
29
|
}
|
|
@@ -16,8 +16,9 @@ export declare class TooltipDirective implements OnDestroy {
|
|
|
16
16
|
constructor(el: ElementRef, renderer: Renderer2);
|
|
17
17
|
/**
|
|
18
18
|
* Toggles the tooltip.
|
|
19
|
+
* @param event - The click event, is used to stop the propagation that would trigger the global click listener.
|
|
19
20
|
*/
|
|
20
|
-
onClick(): void;
|
|
21
|
+
onClick(event: Event): void;
|
|
21
22
|
/**
|
|
22
23
|
* Shows the tooltip.
|
|
23
24
|
*/
|
|
@@ -4,7 +4,7 @@ import { FormsModule } from '@angular/forms';
|
|
|
4
4
|
import { MatButtonModule } from '@angular/material/button';
|
|
5
5
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
6
6
|
import { MAT_DIALOG_DATA, MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
|
7
|
-
import {
|
|
7
|
+
import { NGX_COMPLETE_GLOBAL_DEFAULT_VALUES } from '../../global-configuration-values';
|
|
8
8
|
import { ConfirmDialogDataBuilder } from './confirm-dialog-data.builder';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
import * as i1 from "@angular/material/dialog";
|
|
@@ -49,7 +49,7 @@ export class NgxMatEntityConfirmDialogComponent {
|
|
|
49
49
|
cancel() {
|
|
50
50
|
this.dialogRef.close(false);
|
|
51
51
|
}
|
|
52
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: NgxMatEntityConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token:
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: NgxMatEntityConfirmDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }, { token: NGX_COMPLETE_GLOBAL_DEFAULT_VALUES }], target: i0.ɵɵFactoryTarget.Component });
|
|
53
53
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: NgxMatEntityConfirmDialogComponent, isStandalone: true, selector: "ngx-mat-entity-confirm-dialog", ngImport: i0, template: "<!-- eslint-disable angular/cyclomatic-complexity -->\n<h2 *ngIf=\"data.title\" mat-dialog-title>{{data.title}}</h2>\n\n<mat-dialog-content>\n <p *ngFor=\"let paragraph of data.text\">{{paragraph}}</p>\n <div *ngIf=\"data.requireConfirmation\" class=\"checkbox-wrapper\">\n <mat-checkbox name=\"confirm\" [(ngModel)]=\"confirm\">\n {{data.confirmationText}}\n </mat-checkbox>\n </div>\n</mat-dialog-content>\n\n<mat-dialog-actions>\n <button *ngIf=\"data.type === 'delete'\" type=\"button\" mat-raised-button color=\"warn\" class=\"confirm-button\" [disabled]=\"data.requireConfirmation && !confirm\" (click)=\"confirmAction()\">\n {{data.confirmButtonLabel}}\n </button>\n <button *ngIf=\"data.type !== 'delete'\" type=\"button\" mat-raised-button class=\"confirm-button\" [disabled]=\"data.requireConfirmation && !confirm\" (click)=\"confirmAction()\">\n {{data.confirmButtonLabel}}\n </button>\n <button *ngIf=\"data.type !== 'info-only'\" type=\"button\" mat-raised-button class=\"cancel-button\" (click)=\"cancel()\">\n {{data.cancelButtonLabel}}\n </button>\n</mat-dialog-actions>", styles: [".checkbox-wrapper{min-height:50px;display:flex}.checkbox-wrapper>mat-checkbox{align-self:center}mat-dialog-actions{justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i3.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
54
54
|
}
|
|
55
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: NgxMatEntityConfirmDialogComponent, decorators: [{
|
|
@@ -67,6 +67,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
|
|
|
67
67
|
args: [MAT_DIALOG_DATA]
|
|
68
68
|
}] }, { type: undefined, decorators: [{
|
|
69
69
|
type: Inject,
|
|
70
|
-
args: [
|
|
70
|
+
args: [NGX_COMPLETE_GLOBAL_DEFAULT_VALUES]
|
|
71
71
|
}] }]; } });
|
|
72
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
72
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybS1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LW1hdGVyaWFsLWVudGl0eS9zcmMvY29tcG9uZW50cy9jb25maXJtLWRpYWxvZy9jb25maXJtLWRpYWxvZy5jb21wb25lbnQudH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