ngx-material-entity 16.0.4 → 16.0.6
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 -4
- package/classes/base.builder.d.ts +0 -4
- package/classes/entity.model.d.ts +7 -0
- package/components/confirm-dialog/confirm-dialog-data.d.ts +0 -3
- package/components/confirm-dialog/confirm-dialog.component.d.ts +6 -0
- package/components/create-page/create-data.route.d.ts +16 -0
- package/components/create-page/create-page.component.d.ts +147 -0
- package/components/create-page/page-create-data.builder.d.ts +18 -0
- package/components/edit-page/edit-data.route.d.ts +3 -0
- package/components/edit-page/edit-page.component.d.ts +34 -9
- package/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.d.ts +3 -3
- package/components/input/array/array-string-chips-input/array-string-chips-input.component.d.ts +0 -2
- package/components/input/array/array-table.class.d.ts +0 -1
- package/components/input/base-input.component.d.ts +5 -2
- package/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.d.ts +0 -1
- package/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.d.ts +0 -1
- package/components/input/date/date-range-input/date-range-input.component.d.ts +2 -6
- package/components/input/date/date-time-input/date-time-input.component.d.ts +0 -1
- package/components/input/file/file-input/file-input.component.d.ts +1 -0
- package/components/input/input.component.d.ts +160 -38
- package/components/input/input.module.d.ts +48 -47
- package/components/input/number/number-input/number-input.component.d.ts +1 -1
- package/components/input/relations/references-many-input/references-many-input.component.d.ts +0 -1
- package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts +0 -1
- package/components/input/string/string-input/string-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-dialog-data.builder.d.ts → create-data.builder.d.ts} +7 -7
- package/components/table/create-dialog/create-entity-dialog-data.builder.d.ts +11 -13
- package/components/table/create-dialog/create-entity-dialog-data.d.ts +7 -9
- package/components/table/create-dialog/create-entity-dialog.component.d.ts +26 -5
- package/components/table/default.actions.d.ts +0 -4
- package/components/table/display-column-value/base-display-column-value.component.d.ts +3 -0
- package/components/table/display-column-value/display-column-value.component.d.ts +9 -0
- package/components/table/edit-dialog/edit-data.builder.d.ts +3 -3
- package/components/table/edit-dialog/edit-entity-data.d.ts +2 -4
- package/components/table/edit-dialog/edit-entity-dialog.component.d.ts +34 -4
- package/components/table/edit-dialog/edit-entity.builder.d.ts +3 -5
- package/components/table/table-data.builder.d.ts +6 -8
- package/components/table/table-data.d.ts +8 -18
- package/components/table/table.component.d.ts +35 -9
- package/components/tooltip/tooltip.component.d.ts +3 -0
- package/decorators/array/array-decorator-internal.data.d.ts +3 -2
- package/decorators/array/array-decorator.data.d.ts +6 -17
- package/decorators/array/array.decorator.d.ts +0 -1
- package/decorators/base/base-property.decorator.d.ts +0 -1
- package/decorators/base/property-decorator-internal.data.d.ts +0 -2
- package/decorators/base/property-decorator.data.d.ts +0 -10
- package/decorators/boolean/boolean-decorator.data.d.ts +0 -2
- package/decorators/boolean/boolean.decorator.d.ts +0 -1
- package/decorators/custom/custom-decorator.data.d.ts +0 -2
- package/decorators/custom/custom.decorator.d.ts +0 -1
- package/decorators/date/date-decorator.data.d.ts +0 -3
- package/decorators/date/date.decorator.d.ts +0 -1
- package/decorators/file/file-decorator.data.d.ts +0 -6
- package/decorators/file/file.decorator.d.ts +0 -1
- package/decorators/has-many/has-many-decorator-internal.data.d.ts +2 -4
- package/decorators/has-many/has-many-decorator.data.d.ts +2 -6
- package/decorators/has-many/has-many.decorator.d.ts +0 -1
- package/decorators/number/number-decorator-internal.data.d.ts +0 -1
- package/decorators/number/number.decorator.d.ts +0 -1
- package/decorators/object/object.decorator.d.ts +0 -1
- package/decorators/references-many/references-many-decorator-internal.data.d.ts +0 -1
- package/decorators/references-many/references-many-decorator.data.d.ts +0 -5
- package/decorators/references-many/references-many.decorator.d.ts +0 -1
- package/decorators/references-one/references-one.decorator.d.ts +0 -1
- package/decorators/string/string-decorator-internal.data.d.ts +1 -0
- package/decorators/string/string-decorator.data.d.ts +4 -2
- package/decorators/string/string.decorator.d.ts +0 -1
- package/default-global-configuration-values.d.ts +12 -0
- package/directives/drag-drop.directive.d.ts +0 -3
- package/directives/included-in.directive.d.ts +14 -0
- package/directives/number.directive.d.ts +0 -1
- package/encapsulation/js-2-xml.utilities.d.ts +0 -1
- package/encapsulation/jszip.utilities.d.ts +0 -1
- package/encapsulation/lodash.utilities.d.ts +2 -11
- package/encapsulation/reflect.utilities.d.ts +0 -7
- package/encapsulation/uuid.utilities.d.ts +0 -1
- package/esm2022/classes/base.builder.mjs +3 -6
- package/esm2022/classes/entity.model.mjs +1 -1
- package/esm2022/components/confirm-dialog/confirm-dialog-data.builder.mjs +1 -3
- package/esm2022/components/confirm-dialog/confirm-dialog-data.mjs +1 -1
- package/esm2022/components/confirm-dialog/confirm-dialog.component.mjs +9 -3
- package/esm2022/components/create-page/create-data.route.mjs +11 -0
- package/esm2022/components/create-page/create-page.component.mjs +275 -0
- package/esm2022/components/create-page/page-create-data.builder.mjs +30 -0
- package/esm2022/components/edit-page/edit-data.route.mjs +4 -1
- package/esm2022/components/edit-page/edit-page.component.mjs +43 -18
- package/esm2022/components/edit-page/page-edit-data.builder.mjs +3 -3
- package/esm2022/components/input/array/array-date-input/array-date-input.component.mjs +11 -10
- package/esm2022/components/input/array/array-date-range-input/array-date-range-input.component.mjs +10 -9
- package/esm2022/components/input/array/array-date-time-input/array-date-time-input.component.mjs +13 -12
- package/esm2022/components/input/array/array-string-autocomplete-chips/array-string-autocomplete-chips.component.mjs +17 -13
- package/esm2022/components/input/array/array-string-chips-input/array-string-chips-input.component.mjs +8 -9
- package/esm2022/components/input/array/array-table.class.mjs +4 -6
- package/esm2022/components/input/base-input.component.mjs +8 -4
- package/esm2022/components/input/boolean/boolean-checkbox-input/boolean-checkbox-input.component.mjs +8 -11
- package/esm2022/components/input/boolean/boolean-dropdown-input/boolean-dropdown-input.component.mjs +8 -7
- package/esm2022/components/input/boolean/boolean-toggle-input/boolean-toggle-input.component.mjs +6 -9
- package/esm2022/components/input/custom/custom.component.mjs +2 -1
- package/esm2022/components/input/date/date-input/date-input.component.mjs +8 -7
- package/esm2022/components/input/date/date-range-input/date-range-input.component.mjs +38 -43
- package/esm2022/components/input/date/date-time-input/date-time-input.component.mjs +10 -10
- package/esm2022/components/input/file/file-default-input/file-default-input.component.mjs +4 -3
- package/esm2022/components/input/file/file-image-input/file-image-input.component.mjs +6 -5
- package/esm2022/components/input/file/file-input/file-input.component.mjs +9 -6
- package/esm2022/components/input/input.component.mjs +225 -91
- package/esm2022/components/input/input.module.mjs +84 -81
- package/esm2022/components/input/number/number-dropdown-input/number-dropdown-input.component.mjs +8 -7
- package/esm2022/components/input/number/number-input/number-input.component.mjs +6 -5
- package/esm2022/components/input/number/number-slider-input/number-slider-input.component.mjs +6 -5
- package/esm2022/components/input/relations/references-many-input/references-many-input.component.mjs +24 -19
- package/esm2022/components/input/string/string-autocomplete-input/string-autocomplete-input.component.mjs +12 -8
- package/esm2022/components/input/string/string-dropdown-input/string-dropdown-input.component.mjs +8 -7
- package/esm2022/components/input/string/string-input/string-input.component.mjs +6 -5
- package/esm2022/components/input/string/string-password-input/string-password-input.component.mjs +8 -7
- package/esm2022/components/input/string/string-textbox-input/string-textbox-input.component.mjs +7 -6
- package/esm2022/components/table/create-dialog/create-data.builder.mjs +44 -0
- package/esm2022/components/table/create-dialog/create-entity-dialog-data.builder.mjs +8 -9
- package/esm2022/components/table/create-dialog/create-entity-dialog-data.mjs +1 -1
- package/esm2022/components/table/create-dialog/create-entity-dialog.component.mjs +30 -9
- package/esm2022/components/table/default.actions.mjs +1 -5
- package/esm2022/components/table/display-column-value/base-display-column-value.component.mjs +5 -1
- package/esm2022/components/table/display-column-value/display-column-value.component.mjs +10 -2
- package/esm2022/components/table/edit-dialog/edit-data.builder.mjs +3 -3
- package/esm2022/components/table/edit-dialog/edit-entity-data.mjs +1 -1
- package/esm2022/components/table/edit-dialog/edit-entity-dialog.component.mjs +37 -7
- package/esm2022/components/table/edit-dialog/edit-entity.builder.mjs +3 -3
- package/esm2022/components/table/table-data.builder.mjs +12 -12
- package/esm2022/components/table/table-data.mjs +1 -1
- package/esm2022/components/table/table.component.mjs +63 -34
- package/esm2022/components/tooltip/tooltip.component.mjs +6 -3
- package/esm2022/decorators/array/array-decorator-internal.data.mjs +4 -2
- package/esm2022/decorators/array/array-decorator.data.mjs +1 -2
- package/esm2022/decorators/array/array.decorator.mjs +2 -3
- package/esm2022/decorators/base/base-property.decorator.mjs +1 -2
- package/esm2022/decorators/base/decorator-types.enum.mjs +1 -1
- package/esm2022/decorators/base/property-decorator-internal.data.mjs +1 -3
- package/esm2022/decorators/base/property-decorator.data.mjs +5 -11
- package/esm2022/decorators/boolean/boolean-decorator.data.mjs +1 -1
- package/esm2022/decorators/boolean/boolean.decorator.mjs +1 -2
- package/esm2022/decorators/custom/custom-decorator-internal.data.mjs +1 -2
- package/esm2022/decorators/custom/custom-decorator.data.mjs +1 -1
- package/esm2022/decorators/custom/custom.decorator.mjs +1 -2
- package/esm2022/decorators/date/date-decorator-internal.data.mjs +2 -2
- package/esm2022/decorators/date/date-decorator.data.mjs +1 -1
- package/esm2022/decorators/date/date.decorator.mjs +2 -3
- package/esm2022/decorators/file/file-decorator-internal.data.mjs +1 -4
- package/esm2022/decorators/file/file-decorator.data.mjs +1 -6
- package/esm2022/decorators/file/file.decorator.mjs +2 -3
- package/esm2022/decorators/has-many/has-many-decorator-internal.data.mjs +1 -2
- package/esm2022/decorators/has-many/has-many-decorator.data.mjs +1 -1
- package/esm2022/decorators/has-many/has-many.decorator.mjs +1 -2
- package/esm2022/decorators/number/number-decorator-internal.data.mjs +4 -5
- package/esm2022/decorators/number/number-decorator.data.mjs +1 -1
- package/esm2022/decorators/number/number.decorator.mjs +1 -2
- package/esm2022/decorators/object/object.decorator.mjs +1 -2
- package/esm2022/decorators/references-many/references-many-decorator-internal.data.mjs +1 -2
- package/esm2022/decorators/references-many/references-many-decorator.data.mjs +1 -1
- package/esm2022/decorators/references-many/references-many.decorator.mjs +1 -2
- package/esm2022/decorators/references-one/references-one.decorator.mjs +1 -2
- package/esm2022/decorators/string/string-decorator-internal.data.mjs +7 -4
- package/esm2022/decorators/string/string-decorator.data.mjs +1 -1
- package/esm2022/decorators/string/string.decorator.mjs +1 -2
- package/esm2022/default-global-configuration-values.mjs +16 -1
- package/esm2022/directives/drag-drop.directive.mjs +1 -4
- package/esm2022/directives/included-in.directive.mjs +33 -0
- package/esm2022/directives/number.directive.mjs +1 -2
- package/esm2022/directives/password-match.directive.mjs +2 -2
- package/esm2022/encapsulation/js-2-xml.utilities.mjs +1 -2
- package/esm2022/encapsulation/jszip.utilities.mjs +1 -2
- package/esm2022/encapsulation/lodash.utilities.mjs +12 -19
- package/esm2022/encapsulation/reflect.utilities.mjs +1 -8
- package/esm2022/encapsulation/uuid.utilities.mjs +1 -2
- package/esm2022/functions/default-false.function.mjs +1 -2
- package/esm2022/functions/default-true.function.mjs +1 -2
- package/esm2022/functions/get-config-value.function.mjs +1 -2
- package/esm2022/functions/get-validation-error-message.function.mjs +13 -7
- package/esm2022/functions/get-validation-errors-tooltip-content.function.ts.mjs +6 -4
- package/esm2022/functions/is-async-function.function.mjs +1 -2
- package/esm2022/global-configuration-values.mjs +5 -2
- package/esm2022/mocks/placeholder-data.png.mjs +3 -3
- package/esm2022/public-api.mjs +3 -1
- package/esm2022/services/entity.service.mjs +15 -21
- package/esm2022/services/unsaved-changes.guard.mjs +7 -2
- package/esm2022/utilities/date.utilities.mjs +3 -9
- package/esm2022/utilities/entity.utilities.mjs +82 -79
- package/esm2022/utilities/file.utilities.mjs +1 -10
- package/esm2022/utilities/selection.utilities.mjs +4 -7
- package/esm2022/utilities/validation.utilities.mjs +40 -35
- package/fesm2022/ngx-material-entity.mjs +1309 -752
- package/fesm2022/ngx-material-entity.mjs.map +1 -1
- package/functions/default-false.function.d.ts +0 -1
- package/functions/default-true.function.d.ts +0 -1
- package/functions/get-config-value.function.d.ts +0 -1
- package/functions/get-validation-error-message.function.d.ts +3 -0
- package/functions/get-validation-errors-tooltip-content.function.ts.d.ts +4 -2
- package/functions/is-async-function.function.d.ts +0 -1
- package/global-configuration-values.d.ts +9 -34
- package/mocks/placeholder-data.png.d.ts +1 -1
- package/package.json +2 -1
- package/public-api.d.ts +2 -0
- package/services/entity.service.d.ts +11 -16
- package/services/unsaved-changes.guard.d.ts +13 -1
- package/utilities/date.utilities.d.ts +0 -6
- package/utilities/entity.utilities.d.ts +10 -36
- package/utilities/file.utilities.d.ts +0 -9
- package/utilities/selection.utilities.d.ts +0 -3
- package/utilities/validation.utilities.d.ts +0 -3
- package/esm2022/components/table/create-dialog/create-dialog-data.builder.mjs +0 -44
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { EnvironmentInjector, EventEmitter, OnInit
|
|
3
|
+
import { EnvironmentInjector, EventEmitter, OnInit } from '@angular/core';
|
|
4
4
|
import { NgModel } from '@angular/forms';
|
|
5
|
-
import { MatDialog
|
|
5
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
6
|
import { MatPaginator } from '@angular/material/paginator';
|
|
7
|
-
import { MatSort } from '@angular/material/sort';
|
|
8
7
|
import { MatTableDataSource } from '@angular/material/table';
|
|
9
8
|
import { Router } from '@angular/router';
|
|
10
9
|
import { BaseEntityType } from '../../classes/entity.model';
|
|
@@ -20,7 +19,7 @@ import { DateUtilities } from '../../utilities/date.utilities';
|
|
|
20
19
|
import { EntityTab, EntityUtilities } from '../../utilities/entity.utilities';
|
|
21
20
|
import { SelectionUtilities } from '../../utilities/selection.utilities';
|
|
22
21
|
import { ValidationError } from '../../utilities/validation.utilities';
|
|
23
|
-
import {
|
|
22
|
+
import { CreateDataInternal } from '../table/create-dialog/create-data.builder';
|
|
24
23
|
import { EditActionInternal } from '../table/edit-dialog/edit-data.builder';
|
|
25
24
|
import { DisplayColumn } from '../table/table-data';
|
|
26
25
|
import { BaseTableActionInternal, TableActionInternal } from '../table/table-data.builder';
|
|
@@ -59,59 +58,127 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
59
58
|
/**
|
|
60
59
|
* Whether to hide a value if it is omitted for creation.
|
|
61
60
|
* Is used internally for the object property.
|
|
62
|
-
*
|
|
63
61
|
* @default false
|
|
64
62
|
*/
|
|
65
63
|
hideOmitForCreate?: boolean;
|
|
66
64
|
/**
|
|
67
65
|
* Whether to hide a value if it is omitted for editing.
|
|
68
66
|
* Is used internally for the object property.
|
|
69
|
-
*
|
|
70
67
|
* @default false
|
|
71
68
|
*/
|
|
72
69
|
hideOmitForEdit?: boolean;
|
|
73
70
|
/**
|
|
74
71
|
* Whether or not an empty value should be valid.
|
|
75
72
|
* Is used internally for the object property.
|
|
76
|
-
*
|
|
77
73
|
* @default undefined
|
|
78
74
|
*/
|
|
79
75
|
validEmpty?: boolean;
|
|
80
76
|
/**
|
|
81
77
|
* Whether or not the input should be readonly.
|
|
82
78
|
* In that case it is disabled, but most of the default styling is overwritten.
|
|
83
|
-
*
|
|
84
79
|
* @default false
|
|
85
80
|
*/
|
|
86
81
|
isReadOnly?: boolean;
|
|
87
82
|
internalIsReadOnly: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Emits when the input value has been changed.
|
|
85
|
+
*/
|
|
88
86
|
inputChangeEvent: EventEmitter<void>;
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
editArrayItemDialogRef: MatDialogRef<unknown>;
|
|
87
|
+
/**
|
|
88
|
+
* The type of the decorator for this input.
|
|
89
|
+
*/
|
|
93
90
|
type: DecoratorTypes;
|
|
91
|
+
/**
|
|
92
|
+
* The property metadata received from the decorator.
|
|
93
|
+
*/
|
|
94
94
|
metadata: PropertyDecoratorConfigInternal<unknown>;
|
|
95
|
+
/**
|
|
96
|
+
* The metadata of an object property.
|
|
97
|
+
*/
|
|
95
98
|
metadataDefaultObject: DefaultObjectDecoratorConfigInternal<EntityType>;
|
|
99
|
+
/**
|
|
100
|
+
* The object property value.
|
|
101
|
+
*/
|
|
96
102
|
objectProperty: EntityType;
|
|
103
|
+
/**
|
|
104
|
+
* The tabs for the object property.
|
|
105
|
+
*/
|
|
97
106
|
objectPropertyTabs: EntityTab<EntityType>[];
|
|
107
|
+
private readonly addArrayItemDialog;
|
|
108
|
+
private addArrayItemDialogRef;
|
|
109
|
+
private readonly editArrayItemDialog;
|
|
110
|
+
private editArrayItemDialogRef;
|
|
111
|
+
/**
|
|
112
|
+
* The metadata of an entity array property.
|
|
113
|
+
*/
|
|
98
114
|
metadataEntityArray: EntityArrayDecoratorConfigInternal<EntityType>;
|
|
115
|
+
/**
|
|
116
|
+
* The entity array property value.
|
|
117
|
+
*/
|
|
99
118
|
entityArrayValues: EntityType[];
|
|
119
|
+
/**
|
|
120
|
+
* The current array item to be added or updated.
|
|
121
|
+
*/
|
|
100
122
|
arrayItem: EntityType;
|
|
123
|
+
/**
|
|
124
|
+
* The array item before any changes have been made. Used to check if the form is dirty.
|
|
125
|
+
*/
|
|
101
126
|
arrayItemPriorChanges: EntityType;
|
|
127
|
+
/**
|
|
128
|
+
* The inline tabs for adding an array item.
|
|
129
|
+
*/
|
|
102
130
|
arrayItemInlineTabs: EntityTab<EntityType>[];
|
|
131
|
+
/**
|
|
132
|
+
* The dataSource for the entity array.
|
|
133
|
+
*/
|
|
103
134
|
entityArrayDataSource: MatTableDataSource<EntityType>;
|
|
135
|
+
/**
|
|
136
|
+
* The selection for the entity array.
|
|
137
|
+
*/
|
|
104
138
|
entityArraySelection: SelectionModel<EntityType>;
|
|
139
|
+
/**
|
|
140
|
+
* The columns to display in the entity array table.
|
|
141
|
+
*/
|
|
105
142
|
entityArrayDisplayedColumns: string[];
|
|
143
|
+
/**
|
|
144
|
+
* Whether or not the array item is valid.
|
|
145
|
+
*/
|
|
106
146
|
isArrayItemValid: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Whether or not the array item is dirty.
|
|
149
|
+
*/
|
|
107
150
|
isArrayItemDirty: boolean;
|
|
108
|
-
|
|
109
|
-
|
|
151
|
+
/**
|
|
152
|
+
* The index of the array item that is being edited.
|
|
153
|
+
*/
|
|
154
|
+
private indexOfEditedArrayItem;
|
|
155
|
+
/**
|
|
156
|
+
* Config for the dialog that adds a new array item.
|
|
157
|
+
*/
|
|
158
|
+
addArrayItemDialogData: CreateDataInternal;
|
|
159
|
+
/**
|
|
160
|
+
* The tabs to display inside the create array item dialog.
|
|
161
|
+
*/
|
|
110
162
|
arrayItemDialogTabs: EntityTab<EntityType>[];
|
|
163
|
+
/**
|
|
164
|
+
* The tabs to display inside the edit array item dialog.
|
|
165
|
+
*/
|
|
111
166
|
editArrayItemDialogData: EditArrayItemDialogDataInternal<EntityType>;
|
|
167
|
+
/**
|
|
168
|
+
* All validation errors for the array item.
|
|
169
|
+
*/
|
|
112
170
|
arrayItemValidationErrors: ValidationError[];
|
|
171
|
+
/**
|
|
172
|
+
* What to display inside the array item tooltip.
|
|
173
|
+
*/
|
|
113
174
|
arrayItemTooltipContent: string;
|
|
175
|
+
/**
|
|
176
|
+
* Metadata of a has many property.
|
|
177
|
+
*/
|
|
114
178
|
metadataHasMany: HasManyDecoratorConfigInternal<EntityType, EntityType>;
|
|
179
|
+
/**
|
|
180
|
+
* Whether or not has many is currently loading.
|
|
181
|
+
*/
|
|
115
182
|
hasManyIsLoading: boolean;
|
|
116
183
|
/**
|
|
117
184
|
* A setter for the has many paginator.
|
|
@@ -124,41 +191,109 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
124
191
|
* Is needed because the sort is inside a switch case,
|
|
125
192
|
* which means that at ngOnInit it can't be initialized.
|
|
126
193
|
*/
|
|
127
|
-
set hasManySort(
|
|
128
|
-
hasManyFilter
|
|
194
|
+
private set hasManySort(value);
|
|
195
|
+
private readonly hasManyFilter;
|
|
196
|
+
/**
|
|
197
|
+
* The columns of the has many table.
|
|
198
|
+
*/
|
|
129
199
|
displayedHasManyColumns: string[];
|
|
200
|
+
/**
|
|
201
|
+
* The data source of the has many table.
|
|
202
|
+
*/
|
|
130
203
|
hasManyDataSource: MatTableDataSource<EntityType>;
|
|
204
|
+
/**
|
|
205
|
+
* The selection of the has many table.
|
|
206
|
+
*/
|
|
131
207
|
hasManySelection: SelectionModel<EntityType>;
|
|
208
|
+
/**
|
|
209
|
+
* The has many import action.
|
|
210
|
+
*/
|
|
132
211
|
hasManyImportAction: BaseTableActionInternal;
|
|
133
212
|
private hasManyEntityService;
|
|
134
|
-
createHasManyDialog
|
|
135
|
-
createHasManyDialogRef
|
|
136
|
-
editHasManyDialog
|
|
137
|
-
editHasManyDialogRef
|
|
213
|
+
private readonly createHasManyDialog;
|
|
214
|
+
private createHasManyDialogRef;
|
|
215
|
+
private readonly editHasManyDialog;
|
|
216
|
+
private editHasManyDialogRef;
|
|
217
|
+
/**
|
|
218
|
+
* A single has many entity.
|
|
219
|
+
*/
|
|
138
220
|
hasManyEntity: EntityType;
|
|
221
|
+
/**
|
|
222
|
+
* The single has many entity before any changes have been made. Is used to determine if the form is dirty.
|
|
223
|
+
*/
|
|
139
224
|
hasManyEntityPriorChanges: EntityType;
|
|
225
|
+
/**
|
|
226
|
+
* Whether or not the has many entity is valid.
|
|
227
|
+
*/
|
|
140
228
|
isHasManyEntityValid: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* All validation errors of the has many entity.
|
|
231
|
+
*/
|
|
141
232
|
hasManyValidationErrors: ValidationError[];
|
|
233
|
+
/**
|
|
234
|
+
* What to display inside the has many tooltip.
|
|
235
|
+
*/
|
|
142
236
|
hasManyTooltipContent: string;
|
|
237
|
+
/**
|
|
238
|
+
* Whether or not the has many entity is dirty.
|
|
239
|
+
*/
|
|
143
240
|
isHasManyEntityDirty: boolean;
|
|
241
|
+
/**
|
|
242
|
+
* Whether or not the current user is allowed to create a has many entity.
|
|
243
|
+
*/
|
|
144
244
|
hasManyAllowCreate: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* The tabs to display when creating a new has many entity.
|
|
247
|
+
*/
|
|
145
248
|
hasManyCreateTabs: EntityTab<EntityType>[];
|
|
249
|
+
/**
|
|
250
|
+
* The tabs to display when updating a has many entity.
|
|
251
|
+
*/
|
|
146
252
|
hasManyUpdateTabs: EntityTab<EntityType>[];
|
|
147
253
|
private hasManyCreateBaseUrl;
|
|
254
|
+
/**
|
|
255
|
+
* The metadata for a references one property.
|
|
256
|
+
*/
|
|
148
257
|
metadataReferencesOne: ReferencesOneDecoratorConfigInternal<EntityType>;
|
|
258
|
+
/**
|
|
259
|
+
* The references one object.
|
|
260
|
+
*/
|
|
149
261
|
referencesOneObject: EntityType;
|
|
262
|
+
/**
|
|
263
|
+
* The tabs to display for the references one entity.
|
|
264
|
+
*/
|
|
150
265
|
referencesOnePropertyTabs: EntityTab<EntityType>[];
|
|
151
|
-
|
|
266
|
+
/**
|
|
267
|
+
* The values that can be possibly referenced.
|
|
268
|
+
*/
|
|
269
|
+
private referencesOneAllReferencedEntities;
|
|
270
|
+
/**
|
|
271
|
+
* The possible references one dropdown values.
|
|
272
|
+
*/
|
|
152
273
|
referencesOneDropdownValues: DropdownValue<string>[];
|
|
274
|
+
/**
|
|
275
|
+
* A unique input name for the references one property.
|
|
276
|
+
*/
|
|
277
|
+
referencesOneName: string;
|
|
278
|
+
/**
|
|
279
|
+
* The enum Values for all the different DecoratorTypes.
|
|
280
|
+
*/
|
|
153
281
|
readonly DecoratorTypes: typeof DecoratorTypes;
|
|
282
|
+
/**
|
|
283
|
+
* Contains HelperMethods around handling Entities and their property-metadata.
|
|
284
|
+
*/
|
|
154
285
|
EntityUtilities: typeof EntityUtilities;
|
|
286
|
+
/**
|
|
287
|
+
* Contains Helper Functions for handling date properties.
|
|
288
|
+
*/
|
|
155
289
|
DateUtilities: typeof DateUtilities;
|
|
290
|
+
/**
|
|
291
|
+
* Provides functionality around material selections inside of tables.
|
|
292
|
+
*/
|
|
156
293
|
SelectionUtilities: typeof SelectionUtilities;
|
|
157
|
-
referencesOneUUID: string;
|
|
158
294
|
constructor(dialog: MatDialog, injector: EnvironmentInjector, router: Router, defaultGetValidationErrorMessage: (model: NgModel) => string, globalConfig: NgxGlobalDefaultValues, http: HttpClient);
|
|
159
295
|
/**
|
|
160
296
|
* Checks if the input with the given key on the given property is readonly.
|
|
161
|
-
*
|
|
162
297
|
* @param property - The property on which to check the input.
|
|
163
298
|
* @param key - The key for the input to check.
|
|
164
299
|
* @returns Whether or not the input is readonly.
|
|
@@ -166,7 +301,6 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
166
301
|
isPropertyReadOnly(property: EntityType, key: keyof EntityType): boolean;
|
|
167
302
|
/**
|
|
168
303
|
* This is needed for the inputs to work inside an ngFor.
|
|
169
|
-
*
|
|
170
304
|
* @param index - The index of the element in the ngFor.
|
|
171
305
|
* @returns The index.
|
|
172
306
|
*/
|
|
@@ -174,7 +308,6 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
174
308
|
/**
|
|
175
309
|
* Gets the value to display in the column.
|
|
176
310
|
* Runs in environment context to enable injection.
|
|
177
|
-
*
|
|
178
311
|
* @param entity - The entity to get the value from.
|
|
179
312
|
* @param displayColumn - The display column to get the value from.
|
|
180
313
|
* @returns The value of the display column.
|
|
@@ -193,7 +326,6 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
193
326
|
setReferencesOneObject(): void;
|
|
194
327
|
/**
|
|
195
328
|
* Edits an entity. This either calls the edit-Method provided by the user or uses a default edit-dialog.
|
|
196
|
-
*
|
|
197
329
|
* @param entity - The entity that should be updated.
|
|
198
330
|
* @param dCol - The display column that was clicked on.
|
|
199
331
|
* @throws When no EntityClass was provided, as a new call is needed to initialize metadata.
|
|
@@ -201,35 +333,30 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
201
333
|
editHasManyEntity(entity: EntityType, dCol: DisplayColumn<EntityType>): void;
|
|
202
334
|
/**
|
|
203
335
|
* Whether updating the provided entity from the has many property is allowed.
|
|
204
|
-
*
|
|
205
336
|
* @param entity - A single value of the has many property that the user wants to edit.
|
|
206
337
|
* @returns True when the user can edit the provided entity and false otherwise.
|
|
207
338
|
*/
|
|
208
339
|
hasManyAllowUpdate(entity: EntityType): boolean;
|
|
209
340
|
/**
|
|
210
341
|
* Whether viewing the provided entity from the has many property is allowed.
|
|
211
|
-
*
|
|
212
342
|
* @param entity - A single value of the has many property that the user wants to view.
|
|
213
343
|
* @returns True when the user can view the provided entity and false otherwise.
|
|
214
344
|
*/
|
|
215
345
|
hasManyAllowRead(entity: EntityType): boolean;
|
|
216
346
|
/**
|
|
217
347
|
* Whether deleting the provided entity from the has many property is allowed.
|
|
218
|
-
*
|
|
219
348
|
* @param entity - A single value of the has many property that the user wants to delete.
|
|
220
349
|
* @returns True when the user can delete the provided entity and false otherwise.
|
|
221
350
|
*/
|
|
222
351
|
hasManyAllowDelete(entity: EntityType): boolean;
|
|
223
352
|
/**
|
|
224
353
|
* Checks if an EditAction is disabled (e.g. Because the current entry doesn't fullfil the requirements).
|
|
225
|
-
*
|
|
226
354
|
* @param action - The EditAction to check.
|
|
227
355
|
* @returns Whether or not the Action can be used.
|
|
228
356
|
*/
|
|
229
357
|
hasManyEditActionDisabled(action: EditActionInternal<EntityType>): boolean;
|
|
230
358
|
/**
|
|
231
359
|
* Runs the edit action on the entity.
|
|
232
|
-
*
|
|
233
360
|
* @param action - The action to run.
|
|
234
361
|
*/
|
|
235
362
|
hasManyRunEditAction(action: EditActionInternal<EntityType>): void;
|
|
@@ -254,11 +381,11 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
254
381
|
dialogCancelEditHasMany(): void;
|
|
255
382
|
/**
|
|
256
383
|
* Creates a new Entity. This either calls the create-Method provided by the user or uses a default create-dialog.
|
|
257
|
-
*
|
|
258
384
|
* @throws When no EntityClass was provided, as a new call is needed to initialize metadata.
|
|
259
385
|
*/
|
|
260
386
|
createHasManyEntity(): void;
|
|
261
|
-
private
|
|
387
|
+
private createHasManyDefaultPage;
|
|
388
|
+
private createHasManyDefaultDialog;
|
|
262
389
|
/**
|
|
263
390
|
* Creates the has many entity over the dialog.
|
|
264
391
|
*/
|
|
@@ -271,21 +398,18 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
271
398
|
/**
|
|
272
399
|
* Runs the TableAction for all selected entries.
|
|
273
400
|
* Also handles confirmation with an additional dial#og if configured.
|
|
274
|
-
*
|
|
275
401
|
* @param action - The TableAction to run.
|
|
276
402
|
*/
|
|
277
403
|
runHasManyTableAction(action: TableActionInternal<EntityType>): void;
|
|
278
404
|
private confirmRunHasManyTableAction;
|
|
279
405
|
/**
|
|
280
406
|
* Checks if an TableAction is disabled (e.g. Because no entries have been selected).
|
|
281
|
-
*
|
|
282
407
|
* @param action - The TableAction to check.
|
|
283
408
|
* @returns Whether or not the Action can be used.
|
|
284
409
|
*/
|
|
285
410
|
hasManyTableActionDisabled(action: TableActionInternal<EntityType>): boolean;
|
|
286
411
|
/**
|
|
287
412
|
* Applies the search input to filter the table entries.
|
|
288
|
-
*
|
|
289
413
|
* @param event - The keyup-event which contains the search-string of the user.
|
|
290
414
|
*/
|
|
291
415
|
applyHasManyFilter(event: Event): void;
|
|
@@ -295,7 +419,6 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
295
419
|
checkHasManyEntity(): Promise<void>;
|
|
296
420
|
/**
|
|
297
421
|
* Checks if the entity is valid.
|
|
298
|
-
*
|
|
299
422
|
* @param omit - Whether values omitted for create or update should be left out.
|
|
300
423
|
*/
|
|
301
424
|
checkIsHasManyEntityValid(omit: 'create' | 'update'): void;
|
|
@@ -331,7 +454,6 @@ export declare class NgxMatEntityInputComponent<EntityType extends BaseEntityTyp
|
|
|
331
454
|
closeAddArrayItemDialog(): void;
|
|
332
455
|
/**
|
|
333
456
|
* Edits an entity array item.
|
|
334
|
-
*
|
|
335
457
|
* @param entity - The entity that has been clicked.
|
|
336
458
|
* @param dCol - The display column that was clicked on.
|
|
337
459
|
*/
|
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./
|
|
3
|
-
import * as i2 from "./
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./
|
|
2
|
+
import * as i1 from "./array/array-date-input/array-date-input.component";
|
|
3
|
+
import * as i2 from "./array/array-date-range-input/array-date-range-input.component";
|
|
4
|
+
import * as i3 from "./array/array-date-time-input/array-date-time-input.component";
|
|
5
|
+
import * as i4 from "./array/array-string-autocomplete-chips/array-string-autocomplete-chips.component";
|
|
6
|
+
import * as i5 from "./array/array-string-chips-input/array-string-chips-input.component";
|
|
7
7
|
import * as i6 from "./boolean/boolean-checkbox-input/boolean-checkbox-input.component";
|
|
8
|
-
import * as i7 from "./boolean/boolean-
|
|
9
|
-
import * as i8 from "./boolean/boolean-
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "./
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./
|
|
18
|
-
import * as i17 from "./
|
|
19
|
-
import * as i18 from "./
|
|
20
|
-
import * as i19 from "./
|
|
21
|
-
import * as i20 from "./
|
|
22
|
-
import * as i21 from "./
|
|
23
|
-
import * as i22 from "./
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "./
|
|
26
|
-
import * as i25 from "./
|
|
27
|
-
import * as i26 from "./input.component";
|
|
8
|
+
import * as i7 from "./boolean/boolean-dropdown-input/boolean-dropdown-input.component";
|
|
9
|
+
import * as i8 from "./boolean/boolean-toggle-input/boolean-toggle-input.component";
|
|
10
|
+
import * as i9 from "./custom/custom.component";
|
|
11
|
+
import * as i10 from "./date/date-input/date-input.component";
|
|
12
|
+
import * as i11 from "./date/date-range-input/date-range-input.component";
|
|
13
|
+
import * as i12 from "./date/date-time-input/date-time-input.component";
|
|
14
|
+
import * as i13 from "../../directives/drag-drop.directive";
|
|
15
|
+
import * as i14 from "./file/file-default-input/file-default-input.component";
|
|
16
|
+
import * as i15 from "./file/file-image-input/file-image-input.component";
|
|
17
|
+
import * as i16 from "./file/file-input/file-input.component";
|
|
18
|
+
import * as i17 from "./input.component";
|
|
19
|
+
import * as i18 from "./number/number-dropdown-input/number-dropdown-input.component";
|
|
20
|
+
import * as i19 from "./number/number-input/number-input.component";
|
|
21
|
+
import * as i20 from "./number/number-slider-input/number-slider-input.component";
|
|
22
|
+
import * as i21 from "./relations/references-many-input/references-many-input.component";
|
|
23
|
+
import * as i22 from "./string/string-autocomplete-input/string-autocomplete-input.component";
|
|
24
|
+
import * as i23 from "./string/string-dropdown-input/string-dropdown-input.component";
|
|
25
|
+
import * as i24 from "./string/string-input/string-input.component";
|
|
26
|
+
import * as i25 from "./string/string-password-input/string-password-input.component";
|
|
27
|
+
import * as i26 from "./string/string-textbox-input/string-textbox-input.component";
|
|
28
28
|
import * as i27 from "@angular/common";
|
|
29
|
-
import * as i28 from "
|
|
29
|
+
import * as i28 from "../table/display-column-value/display-column-value.component";
|
|
30
30
|
import * as i29 from "@angular/forms";
|
|
31
|
-
import * as i30 from "
|
|
32
|
-
import * as i31 from "@angular/material/
|
|
33
|
-
import * as i32 from "@angular/material/
|
|
34
|
-
import * as i33 from "@angular/material/
|
|
35
|
-
import * as i34 from "@angular/material/
|
|
31
|
+
import * as i30 from "../../directives/included-in.directive";
|
|
32
|
+
import * as i31 from "@angular/material/autocomplete";
|
|
33
|
+
import * as i32 from "@angular/material/badge";
|
|
34
|
+
import * as i33 from "@angular/material/button";
|
|
35
|
+
import * as i34 from "@angular/material/checkbox";
|
|
36
36
|
import * as i35 from "@angular/material/chips";
|
|
37
|
-
import * as i36 from "@angular/material/
|
|
38
|
-
import * as i37 from "@angular/material/
|
|
39
|
-
import * as i38 from "@angular/material/
|
|
40
|
-
import * as i39 from "@angular/material/
|
|
41
|
-
import * as i40 from "@angular/material/
|
|
42
|
-
import * as i41 from "@angular/material/
|
|
43
|
-
import * as i42 from "@angular/material/
|
|
44
|
-
import * as i43 from "@angular/material/
|
|
45
|
-
import * as i44 from "@angular/material/
|
|
46
|
-
import * as i45 from "@angular/material/
|
|
47
|
-
import * as i46 from "
|
|
37
|
+
import * as i36 from "@angular/material/datepicker";
|
|
38
|
+
import * as i37 from "@angular/material/dialog";
|
|
39
|
+
import * as i38 from "@angular/material/form-field";
|
|
40
|
+
import * as i39 from "@angular/material/icon";
|
|
41
|
+
import * as i40 from "@angular/material/input";
|
|
42
|
+
import * as i41 from "@angular/material/menu";
|
|
43
|
+
import * as i42 from "@angular/material/paginator";
|
|
44
|
+
import * as i43 from "@angular/material/progress-spinner";
|
|
45
|
+
import * as i44 from "@angular/material/select";
|
|
46
|
+
import * as i45 from "@angular/material/slider";
|
|
47
|
+
import * as i46 from "@angular/material/slide-toggle";
|
|
48
48
|
import * as i47 from "@angular/material/sort";
|
|
49
|
-
import * as i48 from "
|
|
50
|
-
import * as i49 from "
|
|
51
|
-
import * as i50 from "
|
|
52
|
-
import * as i51 from "
|
|
49
|
+
import * as i48 from "@angular/material/table";
|
|
50
|
+
import * as i49 from "@angular/material/tabs";
|
|
51
|
+
import * as i50 from "../../directives/number.directive";
|
|
52
|
+
import * as i51 from "../../directives/password-match.directive";
|
|
53
|
+
import * as i52 from "../tooltip/tooltip.component";
|
|
53
54
|
export declare class NgxMatEntityInputModule {
|
|
54
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxMatEntityInputModule, never>;
|
|
55
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.
|
|
56
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMatEntityInputModule, [typeof i1.ArrayDateInputComponent, typeof i2.ArrayDateRangeInputComponent, typeof i3.ArrayDateTimeInputComponent, typeof i4.ArrayStringAutocompleteChipsComponent, typeof i5.ArrayStringChipsInputComponent, typeof i6.BooleanCheckboxInputComponent, typeof i7.BooleanDropdownInputComponent, typeof i8.BooleanToggleInputComponent, typeof i9.CustomInputComponent, typeof i10.DateInputComponent, typeof i11.DateRangeInputComponent, typeof i12.DateTimeInputComponent, typeof i13.DragDropDirective, typeof i14.FileDefaultInputComponent, typeof i15.FileImageInputComponent, typeof i16.FileInputComponent, typeof i17.NgxMatEntityInputComponent, typeof i18.NumberDropdownInputComponent, typeof i19.NumberInputComponent, typeof i20.NumberSliderInputComponent, typeof i21.ReferencesManyInputComponent, typeof i22.StringAutocompleteInputComponent, typeof i23.StringDropdownInputComponent, typeof i24.StringInputComponent, typeof i25.StringPasswordInputComponent, typeof i26.StringTextboxInputComponent], [typeof i27.CommonModule, typeof i28.DisplayColumnValueComponent, typeof i29.FormsModule, typeof i30.IncludedInValidatorDirective, typeof i31.MatAutocompleteModule, typeof i32.MatBadgeModule, typeof i33.MatButtonModule, typeof i34.MatCheckboxModule, typeof i35.MatChipsModule, typeof i36.MatDatepickerModule, typeof i37.MatDialogModule, typeof i38.MatFormFieldModule, typeof i39.MatIconModule, typeof i40.MatInputModule, typeof i41.MatMenuModule, typeof i42.MatPaginatorModule, typeof i43.MatProgressSpinnerModule, typeof i44.MatSelectModule, typeof i45.MatSliderModule, typeof i46.MatSlideToggleModule, typeof i47.MatSortModule, typeof i48.MatTableModule, typeof i49.MatTabsModule, typeof i50.NumberDirective, typeof i51.PasswordMatchValidatorDirective, typeof i52.TooltipComponent], [typeof i17.NgxMatEntityInputComponent]>;
|
|
56
57
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxMatEntityInputModule>;
|
|
57
58
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
2
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
3
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
4
|
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 {
|
package/components/input/relations/references-many-input/references-many-input.component.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export declare class ReferencesManyInputComponent<EntityType extends BaseEntityT
|
|
|
25
25
|
/**
|
|
26
26
|
* Gets the value to display in the column.
|
|
27
27
|
* Runs in environment context to enable injection.
|
|
28
|
-
*
|
|
29
28
|
* @param entityId - The id of the entity to get the value from.
|
|
30
29
|
* @param displayColumn - The display column to get the value from.
|
|
31
30
|
* @returns The value of the display column.
|
package/components/input/string/string-autocomplete-input/string-autocomplete-input.component.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export declare class StringAutocompleteInputComponent<EntityType extends BaseEnt
|
|
|
9
9
|
ngOnInit(): void;
|
|
10
10
|
/**
|
|
11
11
|
* Dynamically filters the Autocomplete options when the user inputs something.
|
|
12
|
-
*
|
|
13
12
|
* @param input - The input of the user.
|
|
14
13
|
*/
|
|
15
14
|
filterAutocompleteStrings(input?: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
2
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
3
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
4
|
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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
3
2
|
import { BaseEntityType } from '../../../../classes/entity.model';
|
|
3
|
+
import { DecoratorTypes } from '../../../../decorators/base/decorator-types.enum';
|
|
4
4
|
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 {
|
package/components/table/create-dialog/{create-dialog-data.builder.d.ts → create-data.builder.d.ts}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseBuilder } from '../../../classes/base.builder';
|
|
2
2
|
import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
|
|
3
3
|
import { ConfirmDialogDataInternal } from '../../confirm-dialog/confirm-dialog-data.builder';
|
|
4
|
-
import {
|
|
4
|
+
import { CreateData } from '../table-data';
|
|
5
5
|
/**
|
|
6
|
-
* The internal
|
|
6
|
+
* The internal CreateData. Requires all default values the user can leave out.
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class CreateDataInternal implements CreateData {
|
|
9
9
|
title: string;
|
|
10
10
|
createButtonLabel: string;
|
|
11
11
|
cancelButtonLabel: string;
|
|
@@ -14,9 +14,9 @@ export declare class CreateDialogDataInternal implements CreateDialogData {
|
|
|
14
14
|
constructor(title: string, createButtonLabel: string, cancelButtonLabel: string, createRequiresConfirmDialog: boolean, confirmCreateDialogData: ConfirmDialogDataInternal);
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* The Builder for the
|
|
17
|
+
* The Builder for the CreateData. Sets default values.
|
|
18
18
|
*/
|
|
19
|
-
export declare class
|
|
20
|
-
constructor(globalConfig: NgxGlobalDefaultValues, data?:
|
|
21
|
-
protected generateBaseData(data?:
|
|
19
|
+
export declare class CreateDataBuilder extends BaseBuilder<CreateDataInternal, CreateData> {
|
|
20
|
+
constructor(globalConfig: NgxGlobalDefaultValues, data?: CreateData);
|
|
21
|
+
protected generateBaseData(data?: CreateData): CreateDataInternal;
|
|
22
22
|
}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { NgxGlobalDefaultValues } from 'projects/ngx-material-entity/src/global-configuration-values';
|
|
3
1
|
import { BaseBuilder } from '../../../classes/base.builder';
|
|
4
|
-
import { BaseEntityType } from '../../../classes/entity.model';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { BaseEntityType, EntityServiceClassNewable } from '../../../classes/entity.model';
|
|
3
|
+
import { NgxGlobalDefaultValues } from '../../../global-configuration-values';
|
|
4
|
+
import { CreateDataInternal } from './create-data.builder';
|
|
5
|
+
import { CreateEntityData } from './create-entity-dialog-data';
|
|
8
6
|
/**
|
|
9
7
|
* The internal CreateEntityDialogData. Requires all default values the user can leave out.
|
|
10
8
|
*/
|
|
11
|
-
export declare class
|
|
9
|
+
export declare class CreateEntityDataInternal<EntityType extends BaseEntityType<EntityType>> implements CreateEntityData<EntityType> {
|
|
12
10
|
entity: EntityType;
|
|
13
|
-
EntityServiceClass:
|
|
14
|
-
|
|
15
|
-
constructor(entity: EntityType, EntityServiceClass:
|
|
11
|
+
EntityServiceClass: EntityServiceClassNewable<EntityType>;
|
|
12
|
+
createData: CreateDataInternal;
|
|
13
|
+
constructor(entity: EntityType, EntityServiceClass: EntityServiceClassNewable<EntityType>, createData: CreateDataInternal);
|
|
16
14
|
}
|
|
17
15
|
/**
|
|
18
16
|
* The Builder for the CreateEntityDialogData. Sets default values.
|
|
19
17
|
*/
|
|
20
|
-
export declare class CreateEntityDialogDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<
|
|
21
|
-
constructor(data:
|
|
22
|
-
protected generateBaseData(data:
|
|
18
|
+
export declare class CreateEntityDialogDataBuilder<EntityType extends BaseEntityType<EntityType>> extends BaseBuilder<CreateEntityDataInternal<EntityType>, CreateEntityData<EntityType>> {
|
|
19
|
+
constructor(data: CreateEntityData<EntityType>, globalConfig: NgxGlobalDefaultValues);
|
|
20
|
+
protected generateBaseData(data: CreateEntityData<EntityType>): CreateEntityDataInternal<EntityType>;
|
|
23
21
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { EntityService } from '../../../services/entity.service';
|
|
4
|
-
import { CreateDialogData } from '../table-data';
|
|
1
|
+
import { BaseEntityType, EntityServiceClassNewable } from '../../../classes/entity.model';
|
|
2
|
+
import { CreateData } from '../table-data';
|
|
5
3
|
/**
|
|
6
|
-
* The Definition of the Create Entity
|
|
4
|
+
* The Definition of the Create Entity Data.
|
|
7
5
|
*/
|
|
8
|
-
export interface
|
|
6
|
+
export interface CreateEntityData<EntityType extends BaseEntityType<EntityType>> {
|
|
9
7
|
/**
|
|
10
8
|
* An empty entity that is used as the data model.
|
|
11
9
|
*/
|
|
@@ -13,9 +11,9 @@ export interface CreateEntityDialogData<EntityType extends BaseEntityType<Entity
|
|
|
13
11
|
/**
|
|
14
12
|
* The Entity Service class used for the create request.
|
|
15
13
|
*/
|
|
16
|
-
EntityServiceClass:
|
|
14
|
+
EntityServiceClass: EntityServiceClassNewable<EntityType>;
|
|
17
15
|
/**
|
|
18
|
-
* The info of the generic create-dialog.
|
|
16
|
+
* The info of the generic create-dialog or page.
|
|
19
17
|
*/
|
|
20
|
-
|
|
18
|
+
createData?: CreateData;
|
|
21
19
|
}
|